]>
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" |
45842500 | 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 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_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_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_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 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_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 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 | |
888 | --enable-compat20 enable wxWindows 2.0 compatibility | |
889 | --enable-compat22 enable wxWindows 2.2 compatibility | |
890 | --disable-compat24 disable wxWindows 2.4 compatibility | |
891 | --enable-rpath=DIR output the rpath flag from wx-config | |
892 | --enable-intl use internationalization system | |
893 | --enable-config use wxConfig (and derived) classes | |
894 | --enable-protocols use wxProtocol and derived classes | |
895 | --enable-ftp use wxFTP (requires wxProtocol | |
896 | --enable-http use wxHTTP (requires wxProtocol | |
897 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
898 | --enable-sockets use socket/network classes | |
899 | --enable-ole use OLE classes | |
900 | --enable-dataobj use data object classes | |
901 | --enable-ipc use interprocess communication (wxSocket etc.) | |
902 | --enable-cmdline use wxCmdLineParser class | |
903 | --enable-datetime use wxDateTime class | |
904 | --enable-stopwatch use wxStopWatch class | |
905 | --enable-dialupman use dialup network classes | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
907 | --enable-timer use wxTimer class | |
908 | --enable-wave use wxWave class | |
909 | --enable-fraction use wxFraction class | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-longlong use wxLongLong class | |
913 | --enable-geometry use geometry class | |
914 | --enable-log use logging system | |
915 | --enable-streams use wxStream etc classes | |
916 | --enable-file use wxFile classes | |
917 | --enable-ffile use wxFFile classes | |
918 | --enable-textbuf use wxTextBuffer class | |
919 | --enable-textfile use wxTextFile class | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-unicode compile wxString with Unicode support | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
923 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
924 | --enable-std_iostreams use standard C++ stream classes | |
925 | --enable-filesystem use virtual file systems classes | |
926 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
927 | --enable-fs_zip use virtual ZIP filesystems | |
928 | --enable-zipstream use wxZipInputStream | |
929 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
930 | --enable-snglinst use wxSingleInstanceChecker class | |
931 | --enable-mimetype use wxMimeTypesManager | |
932 | --enable-sysoptions use wxSystemOptions | |
933 | --enable-url use wxURL class | |
934 | --enable-protocol use wxProtocol class | |
935 | --enable-protocol-http HTTP support in wxProtocol | |
936 | --enable-protocol-ftp FTP support in wxProtocol | |
937 | --enable-protocol-file FILE support in wxProtocol | |
938 | --enable-threads use threads | |
939 | --enable-docview use document view architecture | |
940 | --enable-help use help subsystem | |
941 | --enable-mshtmlhelp use MS HTML Help (win32) | |
942 | --enable-html use wxHTML sub-library | |
943 | --enable-htmlhelp use wxHTML-based help | |
944 | --enable-constraints use layout-constraints system | |
945 | --enable-printarch use printing architecture | |
946 | --enable-mdi use multiple document interface architecture | |
947 | --enable-loggui use standard GUI logger | |
948 | --enable-logwin use wxLogWindow | |
949 | --enable-logdialog use wxLogDialog | |
950 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
951 | --enable-prologio not available; see contrib | |
952 | --enable-resources not available; see contrib | |
953 | --enable-clipboard use wxClipboard class | |
954 | --enable-dnd use Drag'n'Drop classes | |
955 | --enable-metafile use win32 metafiles | |
956 | --enable-controls use all usual controls | |
957 | --enable-accel use accelerators | |
958 | --enable-button use wxButton class | |
959 | --enable-bmpbutton use wxBitmapButton class | |
960 | --enable-calendar use wxCalendarCtrl class | |
961 | --enable-caret use wxCaret class | |
962 | --enable-checkbox use wxCheckBox class | |
963 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
964 | --enable-choice use wxChoice class | |
965 | --enable-combobox use wxComboBox class | |
966 | --enable-display use wxDisplay class | |
967 | --enable-gauge use wxGauge class | |
968 | --enable-grid use wxGrid class | |
969 | --enable-imaglist use wxImageList class | |
970 | --enable-listbox use wxListBox class | |
971 | --enable-listctrl use wxListCtrl class | |
972 | --enable-notebook use wxNotebook class | |
973 | --enable-radiobox use wxRadioBox class | |
974 | --enable-radiobtn use wxRadioButton class | |
975 | --enable-sash use wxSashWindow class | |
976 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
977 | --enable-slider use wxSlider class | |
978 | --enable-spinbtn use wxSpinButton class | |
979 | --enable-spinctrl use wxSpinCtrl class | |
980 | --enable-splitter use wxSplitterWindow class | |
981 | --enable-statbmp use wxStaticBitmap class | |
982 | --enable-statbox use wxStaticBox class | |
983 | --enable-statline use wxStaticLine class | |
984 | --enable-stattext use wxStaticText class | |
985 | --enable-statusbar use wxStatusBar class | |
986 | --enable-tabdialog use wxTabControl class | |
987 | --enable-textctrl use wxTextCtrl class | |
988 | --enable-togglebtn use wxToggleButton class | |
989 | --enable-toolbar use wxToolBar class | |
990 | --enable-tbarnative use native wxToolBar class | |
991 | --enable-tbarsmpl use wxToolBarSimple class | |
992 | --enable-treectrl use wxTreeCtrl class | |
993 | --enable-tipwindow use wxTipWindow class | |
994 | --enable-popupwin use wxPopUpWindow class | |
995 | --enable-commondlg use all common dialogs | |
996 | --enable-choicedlg use wxChoiceDialog | |
997 | --enable-coldlg use wxColourDialog | |
998 | --enable-filedlg use wxFileDialog | |
999 | --enable-finddlg use wxFindReplaceDialog | |
1000 | --enable-fontdlg use wxFontDialog | |
1001 | --enable-dirdlg use wxDirDialog | |
1002 | --enable-msgdlg use wxMessageDialog | |
1003 | --enable-numberdlg use wxNumberEntryDialog | |
1004 | --enable-splash use wxSplashScreen | |
1005 | --enable-textdlg use wxTextDialog | |
1006 | --enable-tipdlg use startup tips | |
1007 | --enable-progressdlg use wxProgressDialog | |
1008 | --enable-wizarddlg use wxWizard | |
1009 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1010 | --enable-miniframe use wxMiniFrame class | |
1011 | --enable-tooltips use wxToolTip class | |
1012 | --enable-splines use spline drawing code | |
1013 | --enable-validators use wxValidator and derived classes | |
1014 | --enable-busyinfo use wxBusyInfo | |
1015 | --enable-joystick use wxJoystick (Linux only) | |
1016 | --enable-metafiles use wxMetaFile (Windows only) | |
1017 | --enable-dragimage use wxDragImage | |
1018 | --enable-accessibility enable accessibility support | |
1019 | --enable-palette use wxPalette class | |
1020 | --enable-image use wxImage class | |
1021 | --enable-gif use gif images (GIF file format) | |
1022 | --enable-pcx use pcx images (PCX file format) | |
1023 | --enable-iff use iff images (IFF file format) | |
1024 | --enable-pnm use pnm images (PNM file format) | |
1025 | --enable-xpm use xpm images (XPM file format) | |
1026 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1027 | --enable-official_build official build of wxWindows (win32 DLL only) |
1028 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1029 | --disable-largefile omit support for large files |
1030 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1031 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1032 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1033 | |
1034 | Optional Packages: | |
1035 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1036 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1037 | --with-gtk use GTK+ | |
1038 | --with-motif use Motif/Lesstif | |
1039 | --with-mac use Mac OS X | |
1040 | --with-cocoa use Cocoa | |
1041 | --with-wine use Wine | |
1042 | --with-msw use MS-Windows | |
1043 | --with-pm use OS/2 Presentation Manager | |
1044 | --with-mgl use SciTech MGL | |
1045 | --with-microwin use MicroWindows | |
1046 | --with-x11 use X11 | |
1047 | --with-libpng use libpng (PNG image format) | |
1048 | --with-libjpeg use libjpeg (JPEG file format) | |
1049 | --with-libtiff use libtiff (TIFF file format) | |
1050 | --with-opengl use OpenGL (or Mesa) | |
1051 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1052 | --with-regex enable support for wxRegEx class | |
1053 | --with-zlib use zlib for LZW compression | |
1054 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1055 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1056 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1057 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1058 | --with-x use the X Window System | |
1059 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1060 | ||
1061 | Some influential environment variables: | |
1062 | CC C compiler command | |
1063 | CFLAGS C compiler flags | |
1064 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1065 | nonstandard directory <lib dir> | |
1066 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1067 | headers in a nonstandard directory <include dir> | |
1068 | CPP C preprocessor | |
1069 | CXX C++ compiler command | |
1070 | CXXFLAGS C++ compiler flags | |
1071 | CXXCPP C++ preprocessor | |
1072 | ||
1073 | Use these variables to override the choices made by `configure' or to help | |
1074 | it to find libraries and programs with nonstandard names/locations. | |
1075 | ||
1076 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1077 | _ACEOF | |
1078 | fi | |
1079 | ||
1080 | if test "$ac_init_help" = "recursive"; then | |
1081 | # If there are subdirs, report their specific --help. | |
1082 | ac_popdir=`pwd` | |
1083 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1084 | test -d $ac_dir || continue | |
1085 | ac_builddir=. | |
1086 | ||
1087 | if test "$ac_dir" != .; then | |
1088 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1089 | # A "../" for each directory in $ac_dir_suffix. | |
1090 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1091 | else | |
1092 | ac_dir_suffix= ac_top_builddir= | |
1093 | fi | |
1094 | ||
1095 | case $srcdir in | |
1096 | .) # No --srcdir option. We are building in place. | |
1097 | ac_srcdir=. | |
1098 | if test -z "$ac_top_builddir"; then | |
1099 | ac_top_srcdir=. | |
1100 | else | |
1101 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1102 | fi ;; | |
1103 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1104 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1105 | ac_top_srcdir=$srcdir ;; | |
1106 | *) # Relative path. | |
1107 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1108 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1109 | esac | |
1110 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1111 | # absolute. | |
1112 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1113 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1114 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1115 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1116 | ||
1117 | cd $ac_dir | |
1118 | # Check for guested configure; otherwise get Cygnus style configure. | |
1119 | if test -f $ac_srcdir/configure.gnu; then | |
1120 | echo | |
1121 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1122 | elif test -f $ac_srcdir/configure; then | |
1123 | echo | |
1124 | $SHELL $ac_srcdir/configure --help=recursive | |
1125 | elif test -f $ac_srcdir/configure.ac || | |
1126 | test -f $ac_srcdir/configure.in; then | |
1127 | echo | |
1128 | $ac_configure --help | |
1129 | else | |
1130 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1131 | fi | |
1132 | cd $ac_popdir | |
1133 | done | |
1134 | fi | |
8284b0c5 | 1135 | |
e6cc62c6 VS |
1136 | test -n "$ac_init_help" && exit 0 |
1137 | if $ac_init_version; then | |
1138 | cat <<\_ACEOF | |
1139 | wxWindows configure 2.5.0 | |
1140 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1141 | |
e6cc62c6 VS |
1142 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1143 | Free Software Foundation, Inc. | |
1144 | This configure script is free software; the Free Software Foundation | |
1145 | gives unlimited permission to copy, distribute and modify it. | |
1146 | _ACEOF | |
1147 | exit 0 | |
7c66a493 | 1148 | fi |
e6cc62c6 VS |
1149 | exec 5>config.log |
1150 | cat >&5 <<_ACEOF | |
1151 | This file contains any messages produced by compilers while | |
1152 | running configure, to aid debugging if configure makes a mistake. | |
1153 | ||
1154 | It was created by wxWindows $as_me 2.5.0, which was | |
1155 | generated by GNU Autoconf 2.57. Invocation command line was | |
1156 | ||
1157 | $ $0 $@ | |
1158 | ||
1159 | _ACEOF | |
1160 | { | |
1161 | cat <<_ASUNAME | |
1162 | ## --------- ## | |
1163 | ## Platform. ## | |
1164 | ## --------- ## | |
1165 | ||
1166 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1167 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1168 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1169 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1170 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1171 | ||
1172 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1173 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1174 | ||
1175 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1176 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1177 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1178 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1179 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1180 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1181 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1182 | ||
1183 | _ASUNAME | |
1184 | ||
1185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1186 | for as_dir in $PATH | |
1187 | do | |
1188 | IFS=$as_save_IFS | |
1189 | test -z "$as_dir" && as_dir=. | |
1190 | echo "PATH: $as_dir" | |
1191 | done | |
1192 | ||
1193 | } >&5 | |
1194 | ||
1195 | cat >&5 <<_ACEOF | |
1196 | ||
1197 | ||
1198 | ## ----------- ## | |
1199 | ## Core tests. ## | |
1200 | ## ----------- ## | |
1201 | ||
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | # Keep a trace of the command line. | |
1206 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1207 | # Strip out --silent because we don't want to record it for future runs. | |
1208 | # Also quote any args containing shell meta-characters. | |
1209 | # Make two passes to allow for proper duplicate-argument suppression. | |
1210 | ac_configure_args= | |
1211 | ac_configure_args0= | |
1212 | ac_configure_args1= | |
1213 | ac_sep= | |
1214 | ac_must_keep_next=false | |
1215 | for ac_pass in 1 2 | |
1216 | do | |
1217 | for ac_arg | |
1218 | do | |
1219 | case $ac_arg in | |
1220 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1221 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1222 | | -silent | --silent | --silen | --sile | --sil) | |
1223 | continue ;; | |
1224 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1225 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1226 | esac | |
1227 | case $ac_pass in | |
1228 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1229 | 2) | |
1230 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1231 | if test $ac_must_keep_next = true; then | |
1232 | ac_must_keep_next=false # Got value, back to normal. | |
1233 | else | |
1234 | case $ac_arg in | |
1235 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1236 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1237 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1238 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1239 | case "$ac_configure_args0 " in | |
1240 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1241 | esac | |
1242 | ;; | |
1243 | -* ) ac_must_keep_next=true ;; | |
1244 | esac | |
1245 | fi | |
1246 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1247 | # Get rid of the leading space. | |
1248 | ac_sep=" " | |
1249 | ;; | |
1250 | esac | |
1251 | done | |
1252 | done | |
1253 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1254 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1255 | ||
1256 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1257 | # config.log. We remove comments because anyway the quotes in there | |
1258 | # would cause problems or look ugly. | |
1259 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1260 | # such as our DU 5.0 friend, will then `close' the trap. | |
1261 | trap 'exit_status=$? | |
1262 | # Save into config.log some information that might help in debugging. | |
1263 | { | |
1264 | echo | |
1265 | ||
1266 | cat <<\_ASBOX | |
1267 | ## ---------------- ## | |
1268 | ## Cache variables. ## | |
1269 | ## ---------------- ## | |
1270 | _ASBOX | |
1271 | echo | |
1272 | # The following way of writing the cache mishandles newlines in values, | |
1273 | { | |
1274 | (set) 2>&1 | | |
1275 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1276 | *ac_space=\ *) | |
1277 | sed -n \ | |
1278 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1279 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1280 | ;; | |
1281 | *) | |
1282 | sed -n \ | |
1283 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1284 | ;; | |
1285 | esac; | |
1286 | } | |
1287 | echo | |
1288 | ||
1289 | cat <<\_ASBOX | |
1290 | ## ----------------- ## | |
1291 | ## Output variables. ## | |
1292 | ## ----------------- ## | |
1293 | _ASBOX | |
1294 | echo | |
1295 | for ac_var in $ac_subst_vars | |
1296 | do | |
1297 | eval ac_val=$`echo $ac_var` | |
1298 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1299 | done | sort | |
1300 | echo | |
1301 | ||
1302 | if test -n "$ac_subst_files"; then | |
1303 | cat <<\_ASBOX | |
1304 | ## ------------- ## | |
1305 | ## Output files. ## | |
1306 | ## ------------- ## | |
1307 | _ASBOX | |
1308 | echo | |
1309 | for ac_var in $ac_subst_files | |
1310 | do | |
1311 | eval ac_val=$`echo $ac_var` | |
1312 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1313 | done | sort | |
1314 | echo | |
1315 | fi | |
1316 | ||
1317 | if test -s confdefs.h; then | |
1318 | cat <<\_ASBOX | |
1319 | ## ----------- ## | |
1320 | ## confdefs.h. ## | |
1321 | ## ----------- ## | |
1322 | _ASBOX | |
1323 | echo | |
1324 | sed "/^$/d" confdefs.h | sort | |
1325 | echo | |
1326 | fi | |
1327 | test "$ac_signal" != 0 && | |
1328 | echo "$as_me: caught signal $ac_signal" | |
1329 | echo "$as_me: exit $exit_status" | |
1330 | } >&5 | |
1331 | rm -f core core.* *.core && | |
1332 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1333 | exit $exit_status | |
1334 | ' 0 | |
1335 | for ac_signal in 1 2 13 15; do | |
1336 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1337 | done | |
1338 | ac_signal=0 | |
1339 | ||
1340 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1341 | rm -rf conftest* confdefs.h | |
1342 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1343 | echo >confdefs.h | |
1344 | ||
1345 | # Predefined preprocessor variables. | |
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | cat >>confdefs.h <<_ACEOF | |
1368 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1369 | _ACEOF | |
1370 | ||
1371 | ||
1372 | # Let the site file select an alternate cache file if it wants to. | |
1373 | # Prefer explicitly selected file to automatically selected ones. | |
1374 | if test -z "$CONFIG_SITE"; then | |
1375 | if test "x$prefix" != xNONE; then | |
1376 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1377 | else | |
1378 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1379 | fi | |
1380 | fi | |
1381 | for ac_site_file in $CONFIG_SITE; do | |
1382 | if test -r "$ac_site_file"; then | |
1383 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1384 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1385 | sed 's/^/| /' "$ac_site_file" >&5 | |
1386 | . "$ac_site_file" | |
1387 | fi | |
1388 | done | |
1389 | ||
1390 | if test -r "$cache_file"; then | |
1391 | # Some versions of bash will fail to source /dev/null (special | |
1392 | # files actually), so we avoid doing that. | |
1393 | if test -f "$cache_file"; then | |
1394 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1395 | echo "$as_me: loading cache $cache_file" >&6;} | |
1396 | case $cache_file in | |
1397 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1398 | *) . ./$cache_file;; | |
1399 | esac | |
1400 | fi | |
1401 | else | |
1402 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1403 | echo "$as_me: creating cache $cache_file" >&6;} | |
1404 | >$cache_file | |
1405 | fi | |
1406 | ||
1407 | # Check that the precious variables saved in the cache have kept the same | |
1408 | # value. | |
1409 | ac_cache_corrupted=false | |
1410 | for ac_var in `(set) 2>&1 | | |
1411 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1412 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1413 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1414 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1415 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1416 | case $ac_old_set,$ac_new_set in | |
1417 | set,) | |
1418 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1419 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1420 | ac_cache_corrupted=: ;; | |
1421 | ,set) | |
1422 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1423 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1424 | ac_cache_corrupted=: ;; | |
1425 | ,);; | |
1426 | *) | |
1427 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1428 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1429 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1430 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1431 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1432 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1433 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1434 | ac_cache_corrupted=: | |
1435 | fi;; | |
1436 | esac | |
1437 | # Pass precious variables to config.status. | |
1438 | if test "$ac_new_set" = set; then | |
1439 | case $ac_new_val in | |
1440 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1441 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1442 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1443 | esac | |
1444 | case " $ac_configure_args " in | |
1445 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1446 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1447 | esac | |
1448 | fi | |
1449 | done | |
1450 | if $ac_cache_corrupted; then | |
1451 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1452 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1453 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1454 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1455 | { (exit 1); exit 1; }; } | |
1456 | fi | |
1457 | ||
1458 | ac_ext=c | |
1459 | ac_cpp='$CPP $CPPFLAGS' | |
1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
698dcdb6 | 1480 | |
8284b0c5 | 1481 | |
7c66a493 | 1482 | |
a0b9e27f MB |
1483 | |
1484 | ||
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
a0b9e27f | 1487 | |
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
a0b9e27f | 1490 | |
e6cc62c6 VS |
1491 | |
1492 | ||
1493 | ac_aux_dir= | |
1494 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1495 | if test -f $ac_dir/install-sh; then | |
1496 | ac_aux_dir=$ac_dir | |
1497 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1498 | break | |
1499 | elif test -f $ac_dir/install.sh; then | |
1500 | ac_aux_dir=$ac_dir | |
1501 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1502 | break | |
1503 | elif test -f $ac_dir/shtool; then | |
1504 | ac_aux_dir=$ac_dir | |
1505 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1506 | break | |
1507 | fi | |
1508 | done | |
1509 | if test -z "$ac_aux_dir"; then | |
1510 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1511 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1512 | { (exit 1); exit 1; }; } | |
1513 | fi | |
1514 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1515 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1516 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1517 | ||
1518 | # Make sure we can run config.sub. | |
1519 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1520 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1521 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1522 | { (exit 1); exit 1; }; } | |
1523 | ||
1524 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1525 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1526 | if test "${ac_cv_build+set}" = set; then | |
1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1528 | else | |
1529 | ac_cv_build_alias=$build_alias | |
1530 | test -z "$ac_cv_build_alias" && | |
1531 | ac_cv_build_alias=`$ac_config_guess` | |
1532 | test -z "$ac_cv_build_alias" && | |
1533 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1534 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1535 | { (exit 1); exit 1; }; } | |
1536 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1537 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1538 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1539 | { (exit 1); exit 1; }; } | |
1540 | ||
1541 | fi | |
1542 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1543 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1544 | build=$ac_cv_build | |
1545 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1546 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1547 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1548 | ||
1549 | ||
1550 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1551 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1552 | if test "${ac_cv_host+set}" = set; then | |
1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1554 | else | |
1555 | ac_cv_host_alias=$host_alias | |
1556 | test -z "$ac_cv_host_alias" && | |
1557 | ac_cv_host_alias=$ac_cv_build_alias | |
1558 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1559 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1560 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1561 | { (exit 1); exit 1; }; } | |
1562 | ||
1563 | fi | |
1564 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1565 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1566 | host=$ac_cv_host | |
1567 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1568 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1569 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1570 | ||
1571 | ||
1572 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1573 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1574 | if test "${ac_cv_target+set}" = set; then | |
1575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1576 | else | |
1577 | ac_cv_target_alias=$target_alias | |
1578 | test "x$ac_cv_target_alias" = "x" && | |
1579 | ac_cv_target_alias=$ac_cv_host_alias | |
1580 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1581 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1582 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | fi | |
1586 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1587 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1588 | target=$ac_cv_target | |
1589 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1590 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1591 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1592 | ||
1593 | ||
1594 | # The aliases save the names the user supplied, while $host etc. | |
1595 | # will get canonicalized. | |
1596 | test -n "$target_alias" && | |
7c66a493 VZ |
1597 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1598 | NONENONEs,x,x, && | |
1599 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1600 | |
1601 | ||
a0b9e27f | 1602 | |
10f2d63a | 1603 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1604 | WX_MINOR_VERSION_NUMBER=5 |
1605 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1606 | |
10f2d63a | 1607 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1608 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1609 | |
978f1259 RL |
1610 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1611 | ||
34bed6d9 | 1612 | WX_CURRENT=0 |
6426998c RL |
1613 | WX_REVISION=0 |
1614 | WX_AGE=0 | |
1615 | ||
8284b0c5 MB |
1616 | |
1617 | ||
10f2d63a VZ |
1618 | USE_UNIX=1 |
1619 | USE_WIN32=0 | |
f9bc1684 | 1620 | USE_DOS=0 |
b12915c1 | 1621 | USE_BEOS=0 |
1216f52d | 1622 | USE_MAC=0 |
b12915c1 | 1623 | |
10f2d63a | 1624 | USE_AIX= |
fe0895cf VS |
1625 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1626 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1627 | USE_LINUX= |
f6bcfd97 | 1628 | USE_NETBSD= |
89e3b3e4 | 1629 | USE_OPENBSD= |
fe0895cf VS |
1630 | USE_OSF= USE_SGI= |
1631 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1632 | USE_ULTRIX= |
89e3b3e4 VZ |
1633 | USE_UNIXWARE= |
1634 | ||
1635 | USE_ALPHA= | |
10f2d63a | 1636 | |
ab9b9eab VZ |
1637 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1638 | ||
ac0c4cc3 | 1639 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1640 | |
ac0c4cc3 | 1641 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1642 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1643 | DEFAULT_wxUSE_MAC=0 |
1644 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1645 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1646 | DEFAULT_wxUSE_MOTIF=0 |
1647 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1648 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1649 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1650 | |
ac0c4cc3 | 1651 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1652 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1653 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1654 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1655 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1656 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1657 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1658 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1659 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1660 | |
d6a55c4b | 1661 | PROGRAM_EXT= |
3a922bb4 | 1662 | SO_SUFFIX=so |
fe0895cf | 1663 | SAMPLES_RPATH_FLAG= |
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 |
10f2d63a VZ |
1893 | ;; |
1894 | ||
d08b457b GD |
1895 | powerpc-*-darwin* ) |
1896 | USE_BSD=1 | |
f11bdd03 | 1897 | USE_DARWIN=1 |
3a922bb4 | 1898 | SO_SUFFIX=dylib |
e6cc62c6 | 1899 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1900 | #define __BSD__ 1 |
e6cc62c6 | 1901 | _ACEOF |
b4085ce6 | 1902 | |
e6cc62c6 | 1903 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1904 | #define __DARWIN__ 1 |
e6cc62c6 | 1905 | _ACEOF |
d08b457b | 1906 | |
e6cc62c6 | 1907 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1908 | #define __POWERPC__ 1 |
e6cc62c6 | 1909 | _ACEOF |
82d43113 | 1910 | |
e6cc62c6 | 1911 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1912 | #define TARGET_CARBON 1 |
e6cc62c6 | 1913 | _ACEOF |
b4085ce6 GD |
1914 | |
1915 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1916 | ;; | |
1917 | ||
b12915c1 VZ |
1918 | *-*-beos* ) |
1919 | USE_BEOS=1 | |
e6cc62c6 | 1920 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1921 | #define __BEOS__ 1 |
e6cc62c6 | 1922 | _ACEOF |
b12915c1 VZ |
1923 | |
1924 | ;; | |
1925 | ||
10f2d63a | 1926 | *) |
e6cc62c6 VS |
1927 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1928 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1929 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1930 | esac |
1931 | ||
8284b0c5 MB |
1932 | |
1933 | ||
1934 | ||
1935 | wx_arg_cache_file="configarg.cache" | |
1936 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1937 | rm -f ${wx_arg_cache_file}.tmp |
1938 | touch ${wx_arg_cache_file}.tmp | |
1939 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1940 | |
10f2d63a VZ |
1941 | |
1942 | DEBUG_CONFIGURE=0 | |
1943 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1944 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1945 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1946 | |
d8356fa3 VZ |
1947 | DEFAULT_wxUSE_NANOX=no |
1948 | ||
10f2d63a VZ |
1949 | DEFAULT_wxUSE_THREADS=yes |
1950 | ||
1951 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1952 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1953 | DEFAULT_wxUSE_PROFILE=no |
1954 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1955 | DEFAULT_wxUSE_NO_RTTI=no |
1956 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1957 | DEFAULT_wxUSE_PERMISSIVE=no |
1958 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1959 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1960 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1961 | DEFAULT_wxUSE_MEM_TRACING=no | |
1962 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1963 | DEFAULT_wxUSE_DMALLOC=no | |
1964 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1965 | ||
1966 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1967 | DEFAULT_wxUSE_LOGWINDOW=no |
1968 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1969 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1970 | |
1971 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1972 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1973 | |
3e44f09d | 1974 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
1975 | DEFAULT_wxUSE_XML=no |
1976 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
1977 | DEFAULT_wxUSE_ZLIB=no |
1978 | DEFAULT_wxUSE_LIBPNG=no | |
1979 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1980 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1981 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1982 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1983 | |
eb4efbdc | 1984 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1985 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1986 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1987 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1988 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1989 | DEFAULT_wxUSE_TIMER=no |
1990 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1991 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1992 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1993 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1994 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1995 | DEFAULT_wxUSE_WAVE=no |
1996 | DEFAULT_wxUSE_INTL=no | |
1997 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1998 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1999 | DEFAULT_wxUSE_STREAMS=no |
2000 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2001 | DEFAULT_wxUSE_OLE=no |
2002 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2003 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2004 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2005 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2006 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2007 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2008 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2009 | |
2010 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2011 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2012 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2013 | ||
10f2d63a VZ |
2014 | DEFAULT_wxUSE_CLIPBOARD=no |
2015 | DEFAULT_wxUSE_TOOLTIPS=no | |
2016 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2017 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2018 | DEFAULT_wxUSE_SPLINES=no |
2019 | ||
2020 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2021 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2022 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2023 | ||
10f2d63a VZ |
2024 | DEFAULT_wxUSE_RESOURCES=no |
2025 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2026 | DEFAULT_wxUSE_IPC=no | |
2027 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2028 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2029 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2030 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2031 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2032 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2033 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2034 | DEFAULT_wxUSE_PROTOCOL=no | |
2035 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2036 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2037 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2038 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2039 | |
10f2d63a | 2040 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2041 | DEFAULT_wxUSE_CHOICEDLG=no |
2042 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2043 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2044 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2045 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2046 | DEFAULT_wxUSE_FONTDLG=no |
2047 | DEFAULT_wxUSE_MSGDLG=no | |
2048 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2049 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2050 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2051 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2052 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2053 | DEFAULT_wxUSE_WIZARDDLG=no |
2054 | ||
1e6feb95 | 2055 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2056 | DEFAULT_wxUSE_MINIFRAME=no |
2057 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2058 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2059 | DEFAULT_wxUSE_FS_INET=no |
2060 | DEFAULT_wxUSE_FS_ZIP=no | |
2061 | DEFAULT_wxUSE_BUSYINFO=no | |
2062 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2063 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2064 | |
2065 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2066 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2067 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2068 | DEFAULT_wxUSE_CALCTRL=no |
2069 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2070 | DEFAULT_wxUSE_CHECKBOX=no |
2071 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2072 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2073 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2074 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2075 | DEFAULT_wxUSE_GAUGE=no |
2076 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2077 | DEFAULT_wxUSE_IMAGLIST=no |
2078 | DEFAULT_wxUSE_LISTBOX=no | |
2079 | DEFAULT_wxUSE_LISTCTRL=no | |
2080 | DEFAULT_wxUSE_NOTEBOOK=no | |
2081 | DEFAULT_wxUSE_RADIOBOX=no | |
2082 | DEFAULT_wxUSE_RADIOBTN=no | |
2083 | DEFAULT_wxUSE_SASH=no | |
2084 | DEFAULT_wxUSE_SCROLLBAR=no | |
2085 | DEFAULT_wxUSE_SLIDER=no | |
2086 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2087 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2088 | DEFAULT_wxUSE_SPLITTER=no |
2089 | DEFAULT_wxUSE_STATBMP=no | |
2090 | DEFAULT_wxUSE_STATBOX=no | |
2091 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2092 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2093 | DEFAULT_wxUSE_STATUSBAR=yes |
2094 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2095 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2096 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2097 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2098 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2099 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2100 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2101 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2102 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2103 | |
2104 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2105 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2106 | DEFAULT_wxUSE_WCSRTOMBS=no |
2107 | ||
edae8572 | 2108 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2109 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2110 | DEFAULT_wxUSE_GIF=no |
2111 | DEFAULT_wxUSE_PCX=no | |
2112 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2113 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2114 | DEFAULT_wxUSE_XPM=no |
658974ae | 2115 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2116 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2117 | |
e9e0dc15 | 2118 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2119 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2120 | else |
1e6feb95 | 2121 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2122 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2123 | |
d8356fa3 VZ |
2124 | DEFAULT_wxUSE_NANOX=no |
2125 | ||
10f2d63a VZ |
2126 | DEFAULT_wxUSE_THREADS=yes |
2127 | ||
2128 | DEFAULT_wxUSE_SHARED=yes | |
2129 | DEFAULT_wxUSE_OPTIMISE=yes | |
2130 | DEFAULT_wxUSE_PROFILE=no | |
2131 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2132 | DEFAULT_wxUSE_NO_RTTI=no |
2133 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2134 | DEFAULT_wxUSE_PERMISSIVE=no |
2135 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2136 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2137 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2138 | DEFAULT_wxUSE_MEM_TRACING=no | |
2139 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2140 | DEFAULT_wxUSE_DMALLOC=no | |
2141 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2142 | ||
2143 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2144 | DEFAULT_wxUSE_LOGWINDOW=yes |
2145 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2146 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2147 | |
2148 | DEFAULT_wxUSE_GUI=yes | |
2149 | ||
831b3152 | 2150 | DEFAULT_wxUSE_REGEX=yes |
672abd7a VS |
2151 | DEFAULT_wxUSE_XML=yes |
2152 | DEFAULT_wxUSE_EXPAT=yes | |
10f2d63a VZ |
2153 | DEFAULT_wxUSE_ZLIB=yes |
2154 | DEFAULT_wxUSE_LIBPNG=yes | |
2155 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2156 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2157 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2158 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2159 | |
eb4efbdc | 2160 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2161 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2162 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2163 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2164 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2165 | DEFAULT_wxUSE_TIMER=yes |
2166 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2167 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2168 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2169 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2170 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2171 | DEFAULT_wxUSE_WAVE=no |
2172 | DEFAULT_wxUSE_INTL=yes | |
2173 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2174 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2175 | DEFAULT_wxUSE_STREAMS=yes |
2176 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2177 | DEFAULT_wxUSE_OLE=yes |
2178 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2179 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2180 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2181 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2182 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2183 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2184 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2185 | |
2186 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2187 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2188 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2189 | ||
10f2d63a VZ |
2190 | DEFAULT_wxUSE_CLIPBOARD=yes |
2191 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2192 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2193 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2194 | DEFAULT_wxUSE_SPLINES=yes |
2195 | ||
2196 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2197 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2198 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2199 | ||
2b5f62a0 | 2200 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2201 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2202 | DEFAULT_wxUSE_IPC=yes | |
2203 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2204 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2205 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2206 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2207 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2208 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2209 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2210 | DEFAULT_wxUSE_PROTOCOL=yes |
2211 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2212 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2213 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2214 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2215 | |
2216 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2217 | DEFAULT_wxUSE_CHOICEDLG=yes |
2218 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2219 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2220 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2221 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2222 | DEFAULT_wxUSE_FONTDLG=yes |
2223 | DEFAULT_wxUSE_MSGDLG=yes | |
2224 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2225 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2226 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2227 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2228 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2229 | DEFAULT_wxUSE_WIZARDDLG=yes |
2230 | ||
1e6feb95 | 2231 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2232 | DEFAULT_wxUSE_MINIFRAME=yes |
2233 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2234 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2235 | DEFAULT_wxUSE_FS_INET=yes |
2236 | DEFAULT_wxUSE_FS_ZIP=yes | |
2237 | DEFAULT_wxUSE_BUSYINFO=yes | |
2238 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2239 | DEFAULT_wxUSE_VALIDATORS=yes | |
2240 | ||
2241 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2242 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2243 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2244 | DEFAULT_wxUSE_CALCTRL=yes |
2245 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2246 | DEFAULT_wxUSE_CHECKBOX=yes |
2247 | DEFAULT_wxUSE_CHECKLST=yes | |
2248 | DEFAULT_wxUSE_CHOICE=yes | |
2249 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2250 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2251 | DEFAULT_wxUSE_GAUGE=yes |
2252 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2253 | DEFAULT_wxUSE_IMAGLIST=yes |
2254 | DEFAULT_wxUSE_LISTBOX=yes | |
2255 | DEFAULT_wxUSE_LISTCTRL=yes | |
2256 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2257 | DEFAULT_wxUSE_RADIOBOX=yes | |
2258 | DEFAULT_wxUSE_RADIOBTN=yes | |
2259 | DEFAULT_wxUSE_SASH=yes | |
2260 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2261 | DEFAULT_wxUSE_SLIDER=yes | |
2262 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2263 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2264 | DEFAULT_wxUSE_SPLITTER=yes |
2265 | DEFAULT_wxUSE_STATBMP=yes | |
2266 | DEFAULT_wxUSE_STATBOX=yes | |
2267 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2268 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2269 | DEFAULT_wxUSE_STATUSBAR=yes |
2270 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2271 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2272 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2273 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2274 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2275 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2276 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2277 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2278 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2279 | |
2280 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2281 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2282 | DEFAULT_wxUSE_WCSRTOMBS=no |
2283 | ||
edae8572 | 2284 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2285 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2286 | DEFAULT_wxUSE_GIF=yes |
2287 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2288 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2289 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2290 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2291 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2292 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2293 | |
e9e0dc15 | 2294 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2295 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2296 | fi |
2297 | ||
8284b0c5 MB |
2298 | |
2299 | ||
10f2d63a | 2300 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2301 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2302 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2303 | has_toolkit_in_cache=1 |
2304 | eval "DEFAULT_$LINE" | |
2305 | eval "CACHE_$toolkit=1" | |
2306 | fi | |
2307 | done | |
2308 | ||
8284b0c5 MB |
2309 | |
2310 | ||
5005acfe | 2311 | enablestring= |
e6cc62c6 VS |
2312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2313 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2314 | no_cache=0 |
2315 | # Check whether --enable-gui or --disable-gui was given. | |
2316 | if test "${enable_gui+set}" = set; then | |
2317 | enableval="$enable_gui" | |
e6cc62c6 | 2318 | |
10f2d63a VZ |
2319 | if test "$enableval" = yes; then |
2320 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2321 | else | |
2322 | ac_cv_use_gui='wxUSE_GUI=no' | |
2323 | fi | |
e6cc62c6 | 2324 | |
10f2d63a | 2325 | else |
e6cc62c6 | 2326 | |
10f2d63a VZ |
2327 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2328 | if test "x$LINE" != x ; then | |
2329 | eval "DEFAULT_$LINE" | |
2330 | else | |
2331 | no_cache=1 | |
2332 | fi | |
2333 | ||
2334 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2335 | |
e6cc62c6 | 2336 | fi; |
10f2d63a VZ |
2337 | |
2338 | eval "$ac_cv_use_gui" | |
2339 | if test "$no_cache" != 1; then | |
2340 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2341 | fi | |
2342 | ||
2343 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2344 | echo "$as_me:$LINENO: result: yes" >&5 |
2345 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2346 | else |
e6cc62c6 VS |
2347 | echo "$as_me:$LINENO: result: no" >&5 |
2348 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2349 | fi |
e6cc62c6 | 2350 | |
10f2d63a | 2351 | |
9747f85d VS |
2352 | enablestring= |
2353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2354 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2355 | no_cache=0 | |
2356 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2357 | if test "${enable_monolithic+set}" = set; then | |
2358 | enableval="$enable_monolithic" | |
2359 | ||
2360 | if test "$enableval" = yes; then | |
2361 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2362 | else | |
2363 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2364 | fi | |
2365 | ||
2366 | else | |
2367 | ||
2368 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2369 | if test "x$LINE" != x ; then | |
2370 | eval "DEFAULT_$LINE" | |
2371 | else | |
2372 | no_cache=1 | |
2373 | fi | |
2374 | ||
2375 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2376 | ||
2377 | fi; | |
2378 | ||
2379 | eval "$ac_cv_use_monolithic" | |
2380 | if test "$no_cache" != 1; then | |
2381 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2382 | fi | |
2383 | ||
2384 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2385 | echo "$as_me:$LINENO: result: yes" >&5 | |
2386 | echo "${ECHO_T}yes" >&6 | |
2387 | else | |
2388 | echo "$as_me:$LINENO: result: no" >&5 | |
2389 | echo "${ECHO_T}no" >&6 | |
2390 | fi | |
2391 | ||
2392 | ||
b12915c1 | 2393 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2394 | |
8284b0c5 | 2395 | |
5005acfe | 2396 | enablestring= |
e6cc62c6 VS |
2397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2398 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2399 | no_cache=0 |
2400 | # Check whether --enable-universal or --disable-universal was given. | |
2401 | if test "${enable_universal+set}" = set; then | |
2402 | enableval="$enable_universal" | |
e6cc62c6 | 2403 | |
1e6feb95 VZ |
2404 | if test "$enableval" = yes; then |
2405 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2406 | else | |
2407 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2408 | fi | |
e6cc62c6 | 2409 | |
1e6feb95 | 2410 | else |
e6cc62c6 | 2411 | |
1e6feb95 VZ |
2412 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2413 | if test "x$LINE" != x ; then | |
2414 | eval "DEFAULT_$LINE" | |
2415 | else | |
2416 | no_cache=1 | |
2417 | fi | |
2418 | ||
2419 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2420 | |
e6cc62c6 | 2421 | fi; |
1e6feb95 VZ |
2422 | |
2423 | eval "$ac_cv_use_universal" | |
2424 | if test "$no_cache" != 1; then | |
2425 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2426 | fi | |
2427 | ||
2428 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2429 | echo "$as_me:$LINENO: result: yes" >&5 |
2430 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2431 | else |
e6cc62c6 VS |
2432 | echo "$as_me:$LINENO: result: no" >&5 |
2433 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2434 | fi |
e6cc62c6 VS |
2435 | |
2436 | ||
10f2d63a VZ |
2437 | # Check whether --with-gtk or --without-gtk was given. |
2438 | if test "${with_gtk+set}" = set; then | |
2439 | withval="$with_gtk" | |
2440 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2441 | fi; |
10f2d63a VZ |
2442 | |
2443 | # Check whether --with-motif or --without-motif was given. | |
2444 | if test "${with_motif+set}" = set; then | |
2445 | withval="$with_motif" | |
2446 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2447 | fi; |
10f2d63a | 2448 | |
b4085ce6 GD |
2449 | # Check whether --with-mac or --without-mac was given. |
2450 | if test "${with_mac+set}" = set; then | |
2451 | withval="$with_mac" | |
2452 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2453 | fi; |
b4085ce6 | 2454 | |
ac0c4cc3 DE |
2455 | # Check whether --with-cocoa or --without-cocoa was given. |
2456 | if test "${with_cocoa+set}" = set; then | |
2457 | withval="$with_cocoa" | |
2458 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2459 | fi; |
ac0c4cc3 | 2460 | |
10f2d63a VZ |
2461 | # Check whether --with-wine or --without-wine was given. |
2462 | if test "${with_wine+set}" = set; then | |
2463 | withval="$with_wine" | |
89e6bf6d | 2464 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2465 | fi; |
10f2d63a | 2466 | |
77e13408 RL |
2467 | # Check whether --with-msw or --without-msw was given. |
2468 | if test "${with_msw+set}" = set; then | |
2469 | withval="$with_msw" | |
b4efce5e | 2470 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2471 | fi; |
10f2d63a | 2472 | |
e07802fc VZ |
2473 | # Check whether --with-pm or --without-pm was given. |
2474 | if test "${with_pm+set}" = set; then | |
2475 | withval="$with_pm" | |
2476 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2477 | fi; |
698dcdb6 | 2478 | |
1e6feb95 VZ |
2479 | # Check whether --with-mgl or --without-mgl was given. |
2480 | if test "${with_mgl+set}" = set; then | |
2481 | withval="$with_mgl" | |
6c657b52 | 2482 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2483 | fi; |
1e6feb95 | 2484 | |
1725144d RR |
2485 | # Check whether --with-microwin or --without-microwin was given. |
2486 | if test "${with_microwin+set}" = set; then | |
2487 | withval="$with_microwin" | |
2488 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2489 | fi; |
1725144d | 2490 | |
f79bd02d JS |
2491 | # Check whether --with-x11 or --without-x11 was given. |
2492 | if test "${with_x11+set}" = set; then | |
2493 | withval="$with_x11" | |
3c011993 | 2494 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2495 | fi; |
a0b9e27f | 2496 | |
5005acfe | 2497 | enablestring= |
e6cc62c6 VS |
2498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2499 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2500 | no_cache=0 |
ba875e66 VZ |
2501 | # Check whether --enable-nanox or --disable-nanox was given. |
2502 | if test "${enable_nanox+set}" = set; then | |
2503 | enableval="$enable_nanox" | |
e6cc62c6 | 2504 | |
d8356fa3 | 2505 | if test "$enableval" = yes; then |
ba875e66 | 2506 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2507 | else |
ba875e66 | 2508 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2509 | fi |
e6cc62c6 | 2510 | |
d8356fa3 | 2511 | else |
e6cc62c6 | 2512 | |
d8356fa3 VZ |
2513 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2514 | if test "x$LINE" != x ; then | |
2515 | eval "DEFAULT_$LINE" | |
2516 | else | |
2517 | no_cache=1 | |
2518 | fi | |
2519 | ||
ba875e66 | 2520 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2521 | |
e6cc62c6 | 2522 | fi; |
d8356fa3 | 2523 | |
ba875e66 | 2524 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2525 | if test "$no_cache" != 1; then |
ba875e66 | 2526 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2527 | fi |
2528 | ||
2529 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2530 | echo "$as_me:$LINENO: result: yes" >&5 |
2531 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2532 | else |
e6cc62c6 VS |
2533 | echo "$as_me:$LINENO: result: no" >&5 |
2534 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2535 | fi |
e6cc62c6 | 2536 | |
8284b0c5 | 2537 | |
d74f4b5a | 2538 | |
5005acfe | 2539 | enablestring= |
e6cc62c6 VS |
2540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2541 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2542 | no_cache=0 |
2543 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2544 | if test "${enable_gtk2+set}" = set; then |
2545 | enableval="$enable_gtk2" | |
e6cc62c6 | 2546 | |
d74f4b5a VZ |
2547 | if test "$enableval" = yes; then |
2548 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2549 | else | |
2550 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2551 | fi | |
e6cc62c6 | 2552 | |
10f2d63a | 2553 | else |
e6cc62c6 | 2554 | |
d74f4b5a VZ |
2555 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2556 | if test "x$LINE" != x ; then | |
2557 | eval "DEFAULT_$LINE" | |
2558 | else | |
2559 | no_cache=1 | |
2560 | fi | |
2561 | ||
2562 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2563 | |
e6cc62c6 | 2564 | fi; |
328a083c | 2565 | |
d74f4b5a VZ |
2566 | eval "$ac_cv_use_gtk2" |
2567 | if test "$no_cache" != 1; then | |
2568 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2569 | fi | |
2570 | ||
2571 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2572 | echo "$as_me:$LINENO: result: yes" >&5 |
2573 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2574 | else |
e6cc62c6 VS |
2575 | echo "$as_me:$LINENO: result: no" >&5 |
2576 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2577 | fi |
d74f4b5a | 2578 | |
5c6fa7d2 | 2579 | |
e6cc62c6 VS |
2580 | |
2581 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2582 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2583 | no_cache=0 |
e6cc62c6 VS |
2584 | |
2585 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2586 | if test "${with_libpng+set}" = set; then |
2587 | withval="$with_libpng" | |
e6cc62c6 | 2588 | |
10f2d63a | 2589 | if test "$withval" = yes; then |
b12915c1 | 2590 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2591 | elif test "$withval" = no; then |
b12915c1 | 2592 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2593 | elif test "$withval" = sys; then |
2594 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2595 | elif test "$withval" = builtin; then |
2596 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2597 | else |
e6cc62c6 VS |
2598 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2599 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2600 | { (exit 1); exit 1; }; } | |
10f2d63a | 2601 | fi |
e6cc62c6 | 2602 | |
10f2d63a | 2603 | else |
e6cc62c6 | 2604 | |
b12915c1 | 2605 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2606 | if test "x$LINE" != x ; then |
2607 | eval "DEFAULT_$LINE" | |
2608 | else | |
2609 | no_cache=1 | |
2610 | fi | |
2611 | ||
b12915c1 | 2612 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2613 | |
e6cc62c6 | 2614 | fi; |
10f2d63a | 2615 | |
b12915c1 | 2616 | eval "$ac_cv_use_libpng" |
10f2d63a | 2617 | if test "$no_cache" != 1; then |
b12915c1 | 2618 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2619 | fi |
2620 | ||
b12915c1 | 2621 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2622 | echo "$as_me:$LINENO: result: yes" >&5 |
2623 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2624 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2625 | echo "$as_me:$LINENO: result: no" >&5 |
2626 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2627 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2628 | echo "$as_me:$LINENO: result: system version" >&5 |
2629 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2630 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2631 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2632 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2633 | else |
e6cc62c6 VS |
2634 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2635 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2636 | { (exit 1); exit 1; }; } | |
10f2d63a | 2637 | fi |
10f2d63a | 2638 | |
e6cc62c6 VS |
2639 | |
2640 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2641 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2642 | no_cache=0 |
e6cc62c6 VS |
2643 | |
2644 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2645 | if test "${with_libjpeg+set}" = set; then |
2646 | withval="$with_libjpeg" | |
e6cc62c6 | 2647 | |
10f2d63a | 2648 | if test "$withval" = yes; then |
b12915c1 | 2649 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2650 | elif test "$withval" = no; then |
b12915c1 | 2651 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2652 | elif test "$withval" = sys; then |
2653 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2654 | elif test "$withval" = builtin; then |
2655 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2656 | else |
e6cc62c6 VS |
2657 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2658 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2659 | { (exit 1); exit 1; }; } | |
10f2d63a | 2660 | fi |
e6cc62c6 | 2661 | |
10f2d63a | 2662 | else |
e6cc62c6 | 2663 | |
b12915c1 | 2664 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2665 | if test "x$LINE" != x ; then |
2666 | eval "DEFAULT_$LINE" | |
2667 | else | |
2668 | no_cache=1 | |
2669 | fi | |
2670 | ||
b12915c1 | 2671 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2672 | |
e6cc62c6 | 2673 | fi; |
10f2d63a | 2674 | |
b12915c1 | 2675 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2676 | if test "$no_cache" != 1; then |
b12915c1 | 2677 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2678 | fi |
2679 | ||
b12915c1 | 2680 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2681 | echo "$as_me:$LINENO: result: yes" >&5 |
2682 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2683 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2684 | echo "$as_me:$LINENO: result: no" >&5 |
2685 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2686 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2687 | echo "$as_me:$LINENO: result: system version" >&5 |
2688 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2689 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2690 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2691 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2692 | else |
e6cc62c6 VS |
2693 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2694 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2695 | { (exit 1); exit 1; }; } | |
10f2d63a | 2696 | fi |
10f2d63a | 2697 | |
e6cc62c6 VS |
2698 | |
2699 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2700 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2701 | no_cache=0 |
e6cc62c6 VS |
2702 | |
2703 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2704 | if test "${with_libtiff+set}" = set; then |
2705 | withval="$with_libtiff" | |
e6cc62c6 | 2706 | |
10f2d63a | 2707 | if test "$withval" = yes; then |
b12915c1 | 2708 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2709 | elif test "$withval" = no; then |
b12915c1 | 2710 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2711 | elif test "$withval" = sys; then |
2712 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2713 | elif test "$withval" = builtin; then |
2714 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2715 | else |
e6cc62c6 VS |
2716 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2717 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2718 | { (exit 1); exit 1; }; } | |
10f2d63a | 2719 | fi |
e6cc62c6 | 2720 | |
10f2d63a | 2721 | else |
e6cc62c6 | 2722 | |
b12915c1 | 2723 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2724 | if test "x$LINE" != x ; then |
2725 | eval "DEFAULT_$LINE" | |
2726 | else | |
2727 | no_cache=1 | |
2728 | fi | |
2729 | ||
b12915c1 | 2730 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2731 | |
e6cc62c6 | 2732 | fi; |
10f2d63a | 2733 | |
b12915c1 | 2734 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2735 | if test "$no_cache" != 1; then |
b12915c1 | 2736 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2737 | fi |
2738 | ||
b12915c1 | 2739 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2740 | echo "$as_me:$LINENO: result: yes" >&5 |
2741 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2742 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2743 | echo "$as_me:$LINENO: result: no" >&5 |
2744 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2745 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2746 | echo "$as_me:$LINENO: result: system version" >&5 |
2747 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2748 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2749 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2750 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2751 | else |
e6cc62c6 VS |
2752 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2753 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2754 | { (exit 1); exit 1; }; } | |
10f2d63a | 2755 | fi |
10f2d63a | 2756 | |
e6cc62c6 VS |
2757 | |
2758 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2759 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2760 | no_cache=0 |
e6cc62c6 VS |
2761 | |
2762 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2763 | if test "${with_opengl+set}" = set; then |
2764 | withval="$with_opengl" | |
e6cc62c6 | 2765 | |
10f2d63a | 2766 | if test "$withval" = yes; then |
b12915c1 | 2767 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2768 | else |
b12915c1 | 2769 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2770 | fi |
e6cc62c6 | 2771 | |
10f2d63a | 2772 | else |
e6cc62c6 | 2773 | |
b12915c1 | 2774 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2775 | if test "x$LINE" != x ; then |
2776 | eval "DEFAULT_$LINE" | |
2777 | else | |
2778 | no_cache=1 | |
2779 | fi | |
2780 | ||
b12915c1 | 2781 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2782 | |
e6cc62c6 | 2783 | fi; |
10f2d63a | 2784 | |
b12915c1 | 2785 | eval "$ac_cv_use_opengl" |
10f2d63a | 2786 | if test "$no_cache" != 1; then |
b12915c1 | 2787 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2788 | fi |
2789 | ||
b12915c1 | 2790 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2791 | echo "$as_me:$LINENO: result: yes" >&5 |
2792 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2793 | else |
e6cc62c6 VS |
2794 | echo "$as_me:$LINENO: result: no" >&5 |
2795 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2796 | fi |
e6cc62c6 | 2797 | |
10f2d63a | 2798 | |
b12915c1 VZ |
2799 | fi |
2800 | ||
5c6fa7d2 | 2801 | |
e6cc62c6 VS |
2802 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2803 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2804 | no_cache=0 |
e6cc62c6 VS |
2805 | |
2806 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2807 | if test "${with_dmalloc+set}" = set; then |
2808 | withval="$with_dmalloc" | |
e6cc62c6 | 2809 | |
c7a2bf27 | 2810 | if test "$withval" = yes; then |
b12915c1 | 2811 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2812 | else |
b12915c1 | 2813 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2814 | fi |
e6cc62c6 | 2815 | |
c7a2bf27 | 2816 | else |
e6cc62c6 | 2817 | |
b12915c1 | 2818 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2819 | if test "x$LINE" != x ; then |
2820 | eval "DEFAULT_$LINE" | |
2821 | else | |
2822 | no_cache=1 | |
2823 | fi | |
2824 | ||
b12915c1 | 2825 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2826 | |
e6cc62c6 | 2827 | fi; |
c7a2bf27 | 2828 | |
b12915c1 | 2829 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2830 | if test "$no_cache" != 1; then |
b12915c1 | 2831 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2832 | fi |
2833 | ||
b12915c1 | 2834 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2835 | echo "$as_me:$LINENO: result: yes" >&5 |
2836 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2837 | else |
e6cc62c6 VS |
2838 | echo "$as_me:$LINENO: result: no" >&5 |
2839 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2840 | fi |
c7a2bf27 | 2841 | |
e6cc62c6 VS |
2842 | |
2843 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2844 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2845 | no_cache=0 |
e6cc62c6 VS |
2846 | |
2847 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2848 | if test "${with_regex+set}" = set; then |
2849 | withval="$with_regex" | |
e6cc62c6 | 2850 | |
3e44f09d VZ |
2851 | if test "$withval" = yes; then |
2852 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2853 | elif test "$withval" = no; then | |
2854 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2855 | elif test "$withval" = sys; then | |
2856 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2857 | elif test "$withval" = builtin; then |
2858 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2859 | else |
e6cc62c6 VS |
2860 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2861 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2862 | { (exit 1); exit 1; }; } | |
3e44f09d | 2863 | fi |
e6cc62c6 | 2864 | |
3e44f09d | 2865 | else |
e6cc62c6 | 2866 | |
3e44f09d VZ |
2867 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2868 | if test "x$LINE" != x ; then | |
2869 | eval "DEFAULT_$LINE" | |
2870 | else | |
2871 | no_cache=1 | |
2872 | fi | |
2873 | ||
2874 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2875 | |
e6cc62c6 | 2876 | fi; |
3e44f09d VZ |
2877 | |
2878 | eval "$ac_cv_use_regex" | |
2879 | if test "$no_cache" != 1; then | |
2880 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2881 | fi | |
2882 | ||
2883 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2884 | echo "$as_me:$LINENO: result: yes" >&5 |
2885 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2886 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2887 | echo "$as_me:$LINENO: result: no" >&5 |
2888 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2889 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2890 | echo "$as_me:$LINENO: result: system version" >&5 |
2891 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2892 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2893 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2894 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2895 | else |
e6cc62c6 VS |
2896 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2897 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2898 | { (exit 1); exit 1; }; } | |
3e44f09d | 2899 | fi |
3e44f09d | 2900 | |
e6cc62c6 VS |
2901 | |
2902 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2903 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2904 | no_cache=0 |
e6cc62c6 VS |
2905 | |
2906 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2907 | if test "${with_zlib+set}" = set; then |
2908 | withval="$with_zlib" | |
e6cc62c6 | 2909 | |
10f2d63a | 2910 | if test "$withval" = yes; then |
b12915c1 | 2911 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2912 | elif test "$withval" = no; then |
b12915c1 | 2913 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2914 | elif test "$withval" = sys; then |
2915 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2916 | elif test "$withval" = builtin; then |
2917 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2918 | else |
e6cc62c6 VS |
2919 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2920 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2921 | { (exit 1); exit 1; }; } | |
10f2d63a | 2922 | fi |
e6cc62c6 | 2923 | |
10f2d63a | 2924 | else |
e6cc62c6 | 2925 | |
b12915c1 | 2926 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2927 | if test "x$LINE" != x ; then |
2928 | eval "DEFAULT_$LINE" | |
2929 | else | |
2930 | no_cache=1 | |
2931 | fi | |
2932 | ||
b12915c1 | 2933 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2934 | |
e6cc62c6 | 2935 | fi; |
10f2d63a | 2936 | |
b12915c1 | 2937 | eval "$ac_cv_use_zlib" |
10f2d63a | 2938 | if test "$no_cache" != 1; then |
b12915c1 | 2939 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2940 | fi |
2941 | ||
b12915c1 | 2942 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2943 | echo "$as_me:$LINENO: result: yes" >&5 |
2944 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2945 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2946 | echo "$as_me:$LINENO: result: no" >&5 |
2947 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2948 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2949 | echo "$as_me:$LINENO: result: system version" >&5 |
2950 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2951 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2952 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2953 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2954 | else |
e6cc62c6 VS |
2955 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2956 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2957 | { (exit 1); exit 1; }; } | |
10f2d63a | 2958 | fi |
10f2d63a | 2959 | |
e6cc62c6 VS |
2960 | |
2961 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2962 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2963 | no_cache=0 |
e6cc62c6 VS |
2964 | |
2965 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2966 | if test "${with_odbc+set}" = set; then |
2967 | withval="$with_odbc" | |
e6cc62c6 | 2968 | |
10f2d63a VZ |
2969 | if test "$withval" = yes; then |
2970 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2971 | elif test "$withval" = no; then |
10f2d63a | 2972 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2973 | elif test "$withval" = sys; then |
2974 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2975 | elif test "$withval" = builtin; then | |
2976 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2977 | else | |
e6cc62c6 VS |
2978 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2979 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2980 | { (exit 1); exit 1; }; } | |
10f2d63a | 2981 | fi |
e6cc62c6 | 2982 | |
10f2d63a | 2983 | else |
e6cc62c6 | 2984 | |
10f2d63a VZ |
2985 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2986 | if test "x$LINE" != x ; then | |
2987 | eval "DEFAULT_$LINE" | |
2988 | else | |
2989 | no_cache=1 | |
2990 | fi | |
2991 | ||
2992 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2993 | |
e6cc62c6 | 2994 | fi; |
10f2d63a VZ |
2995 | |
2996 | eval "$ac_cv_use_odbc" | |
2997 | if test "$no_cache" != 1; then | |
2998 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2999 | fi | |
3000 | ||
3001 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3002 | echo "$as_me:$LINENO: result: yes" >&5 |
3003 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3004 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3005 | echo "$as_me:$LINENO: result: no" >&5 |
3006 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3007 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3008 | echo "$as_me:$LINENO: result: system version" >&5 |
3009 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3010 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3011 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3012 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3013 | else |
e6cc62c6 VS |
3014 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3015 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3016 | { (exit 1); exit 1; }; } | |
10f2d63a | 3017 | fi |
e6cc62c6 | 3018 | |
52127426 | 3019 | |
672abd7a VS |
3020 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3021 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3022 | no_cache=0 | |
3023 | ||
3024 | # Check whether --with-expat or --without-expat was given. | |
3025 | if test "${with_expat+set}" = set; then | |
3026 | withval="$with_expat" | |
3027 | ||
3028 | if test "$withval" = yes; then | |
3029 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3030 | elif test "$withval" = no; then | |
3031 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3032 | elif test "$withval" = sys; then | |
3033 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3034 | elif test "$withval" = builtin; then | |
3035 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3036 | else | |
3037 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3038 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3039 | { (exit 1); exit 1; }; } | |
3040 | fi | |
3041 | ||
3042 | else | |
3043 | ||
3044 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3045 | if test "x$LINE" != x ; then | |
3046 | eval "DEFAULT_$LINE" | |
3047 | else | |
3048 | no_cache=1 | |
3049 | fi | |
3050 | ||
3051 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3052 | ||
3053 | fi; | |
3054 | ||
3055 | eval "$ac_cv_use_expat" | |
3056 | if test "$no_cache" != 1; then | |
3057 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3058 | fi | |
3059 | ||
3060 | if test "$wxUSE_EXPAT" = yes; then | |
3061 | echo "$as_me:$LINENO: result: yes" >&5 | |
3062 | echo "${ECHO_T}yes" >&6 | |
3063 | elif test "$wxUSE_EXPAT" = no; then | |
3064 | echo "$as_me:$LINENO: result: no" >&5 | |
3065 | echo "${ECHO_T}no" >&6 | |
3066 | elif test "$wxUSE_EXPAT" = sys; then | |
3067 | echo "$as_me:$LINENO: result: system version" >&5 | |
3068 | echo "${ECHO_T}system version" >&6 | |
3069 | elif test "$wxUSE_EXPAT" = builtin; then | |
3070 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3071 | echo "${ECHO_T}builtin version" >&6 | |
3072 | else | |
3073 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3074 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3075 | { (exit 1); exit 1; }; } | |
3076 | fi | |
3077 | ||
3078 | ||
8284b0c5 MB |
3079 | |
3080 | ||
5005acfe | 3081 | enablestring= |
e6cc62c6 VS |
3082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3083 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3084 | no_cache=0 |
3085 | # Check whether --enable-shared or --disable-shared was given. | |
3086 | if test "${enable_shared+set}" = set; then | |
3087 | enableval="$enable_shared" | |
e6cc62c6 | 3088 | |
10f2d63a VZ |
3089 | if test "$enableval" = yes; then |
3090 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3091 | else | |
3092 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3093 | fi | |
e6cc62c6 | 3094 | |
10f2d63a | 3095 | else |
e6cc62c6 | 3096 | |
10f2d63a VZ |
3097 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3098 | if test "x$LINE" != x ; then | |
3099 | eval "DEFAULT_$LINE" | |
3100 | else | |
3101 | no_cache=1 | |
3102 | fi | |
3103 | ||
3104 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3105 | |
e6cc62c6 | 3106 | fi; |
10f2d63a VZ |
3107 | |
3108 | eval "$ac_cv_use_shared" | |
3109 | if test "$no_cache" != 1; then | |
3110 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3111 | fi | |
3112 | ||
3113 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3114 | echo "$as_me:$LINENO: result: yes" >&5 |
3115 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3116 | else |
e6cc62c6 VS |
3117 | echo "$as_me:$LINENO: result: no" >&5 |
3118 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3119 | fi |
e6cc62c6 | 3120 | |
10f2d63a | 3121 | |
5005acfe | 3122 | enablestring= |
e6cc62c6 VS |
3123 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3124 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3125 | no_cache=0 |
3126 | # Check whether --enable-optimise or --disable-optimise was given. | |
3127 | if test "${enable_optimise+set}" = set; then | |
3128 | enableval="$enable_optimise" | |
e6cc62c6 | 3129 | |
10f2d63a VZ |
3130 | if test "$enableval" = yes; then |
3131 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3132 | else | |
3133 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3134 | fi | |
e6cc62c6 | 3135 | |
10f2d63a | 3136 | else |
e6cc62c6 | 3137 | |
10f2d63a VZ |
3138 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3139 | if test "x$LINE" != x ; then | |
3140 | eval "DEFAULT_$LINE" | |
3141 | else | |
3142 | no_cache=1 | |
3143 | fi | |
3144 | ||
3145 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3146 | |
e6cc62c6 | 3147 | fi; |
10f2d63a VZ |
3148 | |
3149 | eval "$ac_cv_use_optimise" | |
3150 | if test "$no_cache" != 1; then | |
3151 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3152 | fi | |
3153 | ||
3154 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3155 | echo "$as_me:$LINENO: result: yes" >&5 |
3156 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3157 | else |
e6cc62c6 VS |
3158 | echo "$as_me:$LINENO: result: no" >&5 |
3159 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3160 | fi |
e6cc62c6 | 3161 | |
10f2d63a | 3162 | |
5005acfe | 3163 | enablestring= |
e6cc62c6 VS |
3164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3165 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3166 | no_cache=0 |
3167 | # Check whether --enable-debug or --disable-debug was given. | |
3168 | if test "${enable_debug+set}" = set; then | |
3169 | enableval="$enable_debug" | |
e6cc62c6 | 3170 | |
10f2d63a VZ |
3171 | if test "$enableval" = yes; then |
3172 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3173 | else | |
3174 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3175 | fi | |
e6cc62c6 | 3176 | |
10f2d63a | 3177 | else |
e6cc62c6 | 3178 | |
10f2d63a VZ |
3179 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3180 | if test "x$LINE" != x ; then | |
3181 | eval "DEFAULT_$LINE" | |
3182 | else | |
3183 | no_cache=1 | |
3184 | fi | |
3185 | ||
3186 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3187 | |
e6cc62c6 | 3188 | fi; |
10f2d63a VZ |
3189 | |
3190 | eval "$ac_cv_use_debug" | |
3191 | if test "$no_cache" != 1; then | |
3192 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3193 | fi | |
3194 | ||
3195 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3196 | echo "$as_me:$LINENO: result: yes" >&5 |
3197 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3198 | else |
e6cc62c6 VS |
3199 | echo "$as_me:$LINENO: result: no" >&5 |
3200 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3201 | fi |
e6cc62c6 | 3202 | |
52127426 | 3203 | |
df5168c4 MB |
3204 | enablestring= |
3205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3206 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | # Check whether --enable-stl or --disable-stl was given. | |
3209 | if test "${enable_stl+set}" = set; then | |
3210 | enableval="$enable_stl" | |
3211 | ||
3212 | if test "$enableval" = yes; then | |
3213 | ac_cv_use_stl='wxUSE_STL=yes' | |
3214 | else | |
3215 | ac_cv_use_stl='wxUSE_STL=no' | |
3216 | fi | |
3217 | ||
3218 | else | |
3219 | ||
3220 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3221 | if test "x$LINE" != x ; then | |
3222 | eval "DEFAULT_$LINE" | |
3223 | else | |
3224 | no_cache=1 | |
3225 | fi | |
3226 | ||
3227 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3228 | ||
3229 | fi; | |
3230 | ||
3231 | eval "$ac_cv_use_stl" | |
3232 | if test "$no_cache" != 1; then | |
3233 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3234 | fi | |
3235 | ||
3236 | if test "$wxUSE_STL" = yes; then | |
3237 | echo "$as_me:$LINENO: result: yes" >&5 | |
3238 | echo "${ECHO_T}yes" >&6 | |
3239 | else | |
3240 | echo "$as_me:$LINENO: result: no" >&5 | |
3241 | echo "${ECHO_T}no" >&6 | |
3242 | fi | |
3243 | ||
3244 | ||
10f2d63a VZ |
3245 | if test "$wxUSE_DEBUG" = "yes"; then |
3246 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3247 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3248 | BUILD=debug |
10f2d63a VZ |
3249 | elif test "$wxUSE_DEBUG" = "no"; then |
3250 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3251 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3252 | BUILD=release |
10f2d63a VZ |
3253 | fi |
3254 | ||
8284b0c5 | 3255 | |
5005acfe | 3256 | enablestring= |
e6cc62c6 VS |
3257 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3258 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3259 | no_cache=0 |
3260 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3261 | if test "${enable_debug_flag+set}" = set; then | |
3262 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3263 | |
10f2d63a VZ |
3264 | if test "$enableval" = yes; then |
3265 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3266 | else | |
3267 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3268 | fi | |
e6cc62c6 | 3269 | |
10f2d63a | 3270 | else |
e6cc62c6 | 3271 | |
10f2d63a VZ |
3272 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3273 | if test "x$LINE" != x ; then | |
3274 | eval "DEFAULT_$LINE" | |
3275 | else | |
3276 | no_cache=1 | |
3277 | fi | |
3278 | ||
3279 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3280 | |
e6cc62c6 | 3281 | fi; |
10f2d63a VZ |
3282 | |
3283 | eval "$ac_cv_use_debug_flag" | |
3284 | if test "$no_cache" != 1; then | |
3285 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3286 | fi | |
3287 | ||
3288 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3289 | echo "$as_me:$LINENO: result: yes" >&5 |
3290 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3291 | else |
e6cc62c6 VS |
3292 | echo "$as_me:$LINENO: result: no" >&5 |
3293 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3294 | fi |
e6cc62c6 | 3295 | |
10f2d63a | 3296 | |
5005acfe | 3297 | enablestring= |
e6cc62c6 VS |
3298 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3299 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3300 | no_cache=0 |
3301 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3302 | if test "${enable_debug_info+set}" = set; then | |
3303 | enableval="$enable_debug_info" | |
e6cc62c6 | 3304 | |
10f2d63a VZ |
3305 | if test "$enableval" = yes; then |
3306 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3307 | else | |
3308 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3309 | fi | |
e6cc62c6 | 3310 | |
10f2d63a | 3311 | else |
e6cc62c6 | 3312 | |
10f2d63a VZ |
3313 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3314 | if test "x$LINE" != x ; then | |
3315 | eval "DEFAULT_$LINE" | |
3316 | else | |
3317 | no_cache=1 | |
3318 | fi | |
3319 | ||
3320 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3321 | |
e6cc62c6 | 3322 | fi; |
10f2d63a VZ |
3323 | |
3324 | eval "$ac_cv_use_debug_info" | |
3325 | if test "$no_cache" != 1; then | |
3326 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3327 | fi | |
3328 | ||
3329 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3330 | echo "$as_me:$LINENO: result: yes" >&5 |
3331 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3332 | else |
e6cc62c6 VS |
3333 | echo "$as_me:$LINENO: result: no" >&5 |
3334 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3335 | fi |
e6cc62c6 | 3336 | |
10f2d63a | 3337 | |
5005acfe | 3338 | enablestring= |
e6cc62c6 VS |
3339 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3340 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3341 | no_cache=0 |
3342 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3343 | if test "${enable_debug_gdb+set}" = set; then | |
3344 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3345 | |
10f2d63a VZ |
3346 | if test "$enableval" = yes; then |
3347 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3348 | else | |
3349 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3350 | fi | |
e6cc62c6 | 3351 | |
10f2d63a | 3352 | else |
e6cc62c6 | 3353 | |
10f2d63a VZ |
3354 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3355 | if test "x$LINE" != x ; then | |
3356 | eval "DEFAULT_$LINE" | |
3357 | else | |
3358 | no_cache=1 | |
3359 | fi | |
3360 | ||
3361 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3362 | |
e6cc62c6 | 3363 | fi; |
10f2d63a VZ |
3364 | |
3365 | eval "$ac_cv_use_debug_gdb" | |
3366 | if test "$no_cache" != 1; then | |
3367 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3368 | fi | |
3369 | ||
3370 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3371 | echo "$as_me:$LINENO: result: yes" >&5 |
3372 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3373 | else |
e6cc62c6 VS |
3374 | echo "$as_me:$LINENO: result: no" >&5 |
3375 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3376 | fi |
e6cc62c6 | 3377 | |
10f2d63a | 3378 | |
5005acfe | 3379 | enablestring= |
e6cc62c6 VS |
3380 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3381 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3382 | no_cache=0 |
3383 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3384 | if test "${enable_debug_cntxt+set}" = set; then | |
3385 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3386 | |
10f2d63a VZ |
3387 | if test "$enableval" = yes; then |
3388 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3389 | else | |
3390 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3391 | fi | |
e6cc62c6 | 3392 | |
10f2d63a | 3393 | else |
e6cc62c6 | 3394 | |
10f2d63a VZ |
3395 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3396 | if test "x$LINE" != x ; then | |
3397 | eval "DEFAULT_$LINE" | |
3398 | else | |
3399 | no_cache=1 | |
3400 | fi | |
3401 | ||
3402 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3403 | |
e6cc62c6 | 3404 | fi; |
10f2d63a VZ |
3405 | |
3406 | eval "$ac_cv_use_debug_cntxt" | |
3407 | if test "$no_cache" != 1; then | |
3408 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3409 | fi | |
3410 | ||
3411 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3412 | echo "$as_me:$LINENO: result: yes" >&5 |
3413 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3414 | else |
e6cc62c6 VS |
3415 | echo "$as_me:$LINENO: result: no" >&5 |
3416 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3417 | fi |
e6cc62c6 | 3418 | |
10f2d63a | 3419 | |
5005acfe | 3420 | enablestring= |
e6cc62c6 VS |
3421 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3422 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3423 | no_cache=0 |
3424 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3425 | if test "${enable_mem_tracing+set}" = set; then | |
3426 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3427 | |
10f2d63a VZ |
3428 | if test "$enableval" = yes; then |
3429 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3430 | else | |
3431 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3432 | fi | |
e6cc62c6 | 3433 | |
10f2d63a | 3434 | else |
e6cc62c6 | 3435 | |
10f2d63a VZ |
3436 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3437 | if test "x$LINE" != x ; then | |
3438 | eval "DEFAULT_$LINE" | |
3439 | else | |
3440 | no_cache=1 | |
3441 | fi | |
3442 | ||
3443 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3444 | |
e6cc62c6 | 3445 | fi; |
10f2d63a VZ |
3446 | |
3447 | eval "$ac_cv_use_mem_tracing" | |
3448 | if test "$no_cache" != 1; then | |
3449 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3450 | fi | |
3451 | ||
3452 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3453 | echo "$as_me:$LINENO: result: yes" >&5 |
3454 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3455 | else |
e6cc62c6 VS |
3456 | echo "$as_me:$LINENO: result: no" >&5 |
3457 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3458 | fi |
e6cc62c6 | 3459 | |
10f2d63a | 3460 | |
5005acfe | 3461 | enablestring= |
e6cc62c6 VS |
3462 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3463 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3464 | no_cache=0 |
3465 | # Check whether --enable-profile or --disable-profile was given. | |
3466 | if test "${enable_profile+set}" = set; then | |
3467 | enableval="$enable_profile" | |
e6cc62c6 | 3468 | |
10f2d63a VZ |
3469 | if test "$enableval" = yes; then |
3470 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3471 | else | |
3472 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3473 | fi | |
e6cc62c6 | 3474 | |
10f2d63a | 3475 | else |
e6cc62c6 | 3476 | |
10f2d63a VZ |
3477 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3478 | if test "x$LINE" != x ; then | |
3479 | eval "DEFAULT_$LINE" | |
3480 | else | |
3481 | no_cache=1 | |
3482 | fi | |
3483 | ||
3484 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3485 | |
e6cc62c6 | 3486 | fi; |
10f2d63a VZ |
3487 | |
3488 | eval "$ac_cv_use_profile" | |
3489 | if test "$no_cache" != 1; then | |
3490 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3491 | fi | |
3492 | ||
3493 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3494 | echo "$as_me:$LINENO: result: yes" >&5 |
3495 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3496 | else |
e6cc62c6 VS |
3497 | echo "$as_me:$LINENO: result: no" >&5 |
3498 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3499 | fi |
e6cc62c6 | 3500 | |
10f2d63a | 3501 | |
5005acfe | 3502 | enablestring= |
e6cc62c6 VS |
3503 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3504 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3505 | no_cache=0 |
3506 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3507 | if test "${enable_no_rtti+set}" = set; then | |
3508 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3509 | |
10f2d63a VZ |
3510 | if test "$enableval" = yes; then |
3511 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3512 | else | |
3513 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3514 | fi | |
e6cc62c6 | 3515 | |
10f2d63a | 3516 | else |
e6cc62c6 | 3517 | |
10f2d63a VZ |
3518 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3519 | if test "x$LINE" != x ; then | |
3520 | eval "DEFAULT_$LINE" | |
3521 | else | |
3522 | no_cache=1 | |
3523 | fi | |
3524 | ||
3525 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3526 | |
e6cc62c6 | 3527 | fi; |
10f2d63a VZ |
3528 | |
3529 | eval "$ac_cv_use_no_rtti" | |
3530 | if test "$no_cache" != 1; then | |
3531 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3532 | fi | |
3533 | ||
3534 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3535 | echo "$as_me:$LINENO: result: yes" >&5 |
3536 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3537 | else |
e6cc62c6 VS |
3538 | echo "$as_me:$LINENO: result: no" >&5 |
3539 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3540 | fi |
e6cc62c6 | 3541 | |
10f2d63a | 3542 | |
5005acfe | 3543 | enablestring= |
e6cc62c6 VS |
3544 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3545 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3546 | no_cache=0 |
3547 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3548 | if test "${enable_no_exceptions+set}" = set; then | |
3549 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3550 | |
10f2d63a VZ |
3551 | if test "$enableval" = yes; then |
3552 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3553 | else | |
3554 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3555 | fi | |
e6cc62c6 | 3556 | |
10f2d63a | 3557 | else |
e6cc62c6 | 3558 | |
10f2d63a VZ |
3559 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3560 | if test "x$LINE" != x ; then | |
3561 | eval "DEFAULT_$LINE" | |
3562 | else | |
3563 | no_cache=1 | |
3564 | fi | |
3565 | ||
3566 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3567 | |
e6cc62c6 | 3568 | fi; |
10f2d63a VZ |
3569 | |
3570 | eval "$ac_cv_use_no_exceptions" | |
3571 | if test "$no_cache" != 1; then | |
3572 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3573 | fi | |
3574 | ||
3575 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3576 | echo "$as_me:$LINENO: result: yes" >&5 |
3577 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3578 | else |
e6cc62c6 VS |
3579 | echo "$as_me:$LINENO: result: no" >&5 |
3580 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3581 | fi |
e6cc62c6 | 3582 | |
10f2d63a | 3583 | |
5005acfe | 3584 | enablestring= |
e6cc62c6 VS |
3585 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3586 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3587 | no_cache=0 |
3588 | # Check whether --enable-permissive or --disable-permissive was given. | |
3589 | if test "${enable_permissive+set}" = set; then | |
3590 | enableval="$enable_permissive" | |
e6cc62c6 | 3591 | |
10f2d63a VZ |
3592 | if test "$enableval" = yes; then |
3593 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3594 | else | |
3595 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3596 | fi | |
e6cc62c6 | 3597 | |
10f2d63a | 3598 | else |
e6cc62c6 | 3599 | |
10f2d63a VZ |
3600 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3608 | |
e6cc62c6 | 3609 | fi; |
10f2d63a VZ |
3610 | |
3611 | eval "$ac_cv_use_permissive" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3617 | echo "$as_me:$LINENO: result: yes" >&5 |
3618 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3619 | else |
e6cc62c6 VS |
3620 | echo "$as_me:$LINENO: result: no" >&5 |
3621 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3622 | fi |
e6cc62c6 | 3623 | |
10f2d63a | 3624 | |
5005acfe | 3625 | enablestring= |
e6cc62c6 VS |
3626 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3627 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3628 | no_cache=0 |
3629 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3630 | if test "${enable_no_deps+set}" = set; then | |
3631 | enableval="$enable_no_deps" | |
e6cc62c6 | 3632 | |
10f2d63a VZ |
3633 | if test "$enableval" = yes; then |
3634 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3635 | else | |
3636 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3637 | fi | |
e6cc62c6 | 3638 | |
10f2d63a | 3639 | else |
e6cc62c6 | 3640 | |
10f2d63a VZ |
3641 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3642 | if test "x$LINE" != x ; then | |
3643 | eval "DEFAULT_$LINE" | |
3644 | else | |
3645 | no_cache=1 | |
3646 | fi | |
3647 | ||
3648 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3649 | |
e6cc62c6 | 3650 | fi; |
10f2d63a VZ |
3651 | |
3652 | eval "$ac_cv_use_no_deps" | |
3653 | if test "$no_cache" != 1; then | |
3654 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3658 | echo "$as_me:$LINENO: result: yes" >&5 |
3659 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3660 | else |
e6cc62c6 VS |
3661 | echo "$as_me:$LINENO: result: no" >&5 |
3662 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3663 | fi |
e6cc62c6 | 3664 | |
52127426 | 3665 | |
8284b0c5 | 3666 | |
5005acfe | 3667 | enablestring= |
e6cc62c6 VS |
3668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 |
3669 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3670 | no_cache=0 |
3671 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3672 | if test "${enable_compat20+set}" = set; then | |
3673 | enableval="$enable_compat20" | |
e6cc62c6 | 3674 | |
54276ccf VZ |
3675 | if test "$enableval" = yes; then |
3676 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3677 | else | |
3678 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3679 | fi | |
e6cc62c6 | 3680 | |
54276ccf | 3681 | else |
e6cc62c6 | 3682 | |
54276ccf VZ |
3683 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3691 | |
e6cc62c6 | 3692 | fi; |
54276ccf VZ |
3693 | |
3694 | eval "$ac_cv_use_compat20" | |
3695 | if test "$no_cache" != 1; then | |
3696 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3697 | fi | |
3698 | ||
3699 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
e6cc62c6 VS |
3700 | echo "$as_me:$LINENO: result: yes" >&5 |
3701 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3702 | else |
e6cc62c6 VS |
3703 | echo "$as_me:$LINENO: result: no" >&5 |
3704 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3705 | fi |
e6cc62c6 | 3706 | |
54276ccf | 3707 | |
65d8ef1e | 3708 | enablestring= |
e6cc62c6 VS |
3709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3710 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3711 | no_cache=0 |
3712 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3713 | if test "${enable_compat22+set}" = set; then | |
3714 | enableval="$enable_compat22" | |
e6cc62c6 | 3715 | |
54276ccf VZ |
3716 | if test "$enableval" = yes; then |
3717 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3718 | else | |
3719 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3720 | fi | |
e6cc62c6 | 3721 | |
54276ccf | 3722 | else |
e6cc62c6 | 3723 | |
54276ccf VZ |
3724 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3725 | if test "x$LINE" != x ; then | |
3726 | eval "DEFAULT_$LINE" | |
3727 | else | |
3728 | no_cache=1 | |
3729 | fi | |
3730 | ||
3731 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3732 | |
e6cc62c6 | 3733 | fi; |
54276ccf VZ |
3734 | |
3735 | eval "$ac_cv_use_compat22" | |
3736 | if test "$no_cache" != 1; then | |
3737 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3738 | fi | |
3739 | ||
3740 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3741 | echo "$as_me:$LINENO: result: yes" >&5 |
3742 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3743 | else |
e6cc62c6 VS |
3744 | echo "$as_me:$LINENO: result: no" >&5 |
3745 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3746 | fi |
e6cc62c6 | 3747 | |
54276ccf | 3748 | |
65d8ef1e | 3749 | enablestring=disable |
e6cc62c6 VS |
3750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3751 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3752 | no_cache=0 |
3753 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3754 | if test "${enable_compat24+set}" = set; then | |
3755 | enableval="$enable_compat24" | |
e6cc62c6 | 3756 | |
65d8ef1e VS |
3757 | if test "$enableval" = yes; then |
3758 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3759 | else | |
3760 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3761 | fi | |
e6cc62c6 | 3762 | |
65d8ef1e | 3763 | else |
e6cc62c6 | 3764 | |
65d8ef1e VS |
3765 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3766 | if test "x$LINE" != x ; then | |
3767 | eval "DEFAULT_$LINE" | |
3768 | else | |
3769 | no_cache=1 | |
3770 | fi | |
3771 | ||
3772 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3773 | |
e6cc62c6 | 3774 | fi; |
65d8ef1e VS |
3775 | |
3776 | eval "$ac_cv_use_compat24" | |
3777 | if test "$no_cache" != 1; then | |
3778 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3779 | fi | |
3780 | ||
3781 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3782 | echo "$as_me:$LINENO: result: yes" >&5 |
3783 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3784 | else |
e6cc62c6 VS |
3785 | echo "$as_me:$LINENO: result: no" >&5 |
3786 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3787 | fi |
e6cc62c6 | 3788 | |
65d8ef1e | 3789 | |
3bd8fb5f RD |
3790 | # Check whether --enable-rpath or --disable-rpath was given. |
3791 | if test "${enable_rpath+set}" = set; then | |
3792 | enableval="$enable_rpath" | |
3793 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3794 | fi; |
3bd8fb5f RD |
3795 | |
3796 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3797 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3798 | fi | |
3799 | ||
8284b0c5 MB |
3800 | |
3801 | ||
3802 | ||
5005acfe | 3803 | enablestring= |
e6cc62c6 VS |
3804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3805 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3806 | no_cache=0 |
3807 | # Check whether --enable-intl or --disable-intl was given. | |
3808 | if test "${enable_intl+set}" = set; then | |
3809 | enableval="$enable_intl" | |
e6cc62c6 | 3810 | |
10f2d63a VZ |
3811 | if test "$enableval" = yes; then |
3812 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3813 | else | |
3814 | ac_cv_use_intl='wxUSE_INTL=no' | |
3815 | fi | |
e6cc62c6 | 3816 | |
10f2d63a | 3817 | else |
e6cc62c6 | 3818 | |
10f2d63a VZ |
3819 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3820 | if test "x$LINE" != x ; then | |
3821 | eval "DEFAULT_$LINE" | |
3822 | else | |
3823 | no_cache=1 | |
3824 | fi | |
3825 | ||
3826 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3827 | |
e6cc62c6 | 3828 | fi; |
10f2d63a VZ |
3829 | |
3830 | eval "$ac_cv_use_intl" | |
3831 | if test "$no_cache" != 1; then | |
3832 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3833 | fi | |
3834 | ||
3835 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3836 | echo "$as_me:$LINENO: result: yes" >&5 |
3837 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3838 | else |
e6cc62c6 VS |
3839 | echo "$as_me:$LINENO: result: no" >&5 |
3840 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3841 | fi |
e6cc62c6 | 3842 | |
10f2d63a | 3843 | |
5005acfe | 3844 | enablestring= |
e6cc62c6 VS |
3845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3846 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3847 | no_cache=0 |
3848 | # Check whether --enable-config or --disable-config was given. | |
3849 | if test "${enable_config+set}" = set; then | |
3850 | enableval="$enable_config" | |
e6cc62c6 | 3851 | |
10f2d63a VZ |
3852 | if test "$enableval" = yes; then |
3853 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3854 | else | |
3855 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3856 | fi | |
e6cc62c6 | 3857 | |
10f2d63a | 3858 | else |
e6cc62c6 | 3859 | |
10f2d63a VZ |
3860 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3861 | if test "x$LINE" != x ; then | |
3862 | eval "DEFAULT_$LINE" | |
3863 | else | |
3864 | no_cache=1 | |
3865 | fi | |
3866 | ||
3867 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3868 | |
e6cc62c6 | 3869 | fi; |
10f2d63a VZ |
3870 | |
3871 | eval "$ac_cv_use_config" | |
3872 | if test "$no_cache" != 1; then | |
3873 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3874 | fi | |
3875 | ||
3876 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3877 | echo "$as_me:$LINENO: result: yes" >&5 |
3878 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3879 | else |
e6cc62c6 VS |
3880 | echo "$as_me:$LINENO: result: no" >&5 |
3881 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3882 | fi |
e6cc62c6 | 3883 | |
52127426 | 3884 | |
8284b0c5 | 3885 | |
5005acfe | 3886 | enablestring= |
e6cc62c6 VS |
3887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3888 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3889 | no_cache=0 |
3890 | # Check whether --enable-protocols or --disable-protocols was given. | |
3891 | if test "${enable_protocols+set}" = set; then | |
3892 | enableval="$enable_protocols" | |
e6cc62c6 | 3893 | |
a1622950 VZ |
3894 | if test "$enableval" = yes; then |
3895 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3896 | else | |
3897 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3898 | fi | |
e6cc62c6 | 3899 | |
a1622950 | 3900 | else |
e6cc62c6 | 3901 | |
a1622950 VZ |
3902 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3903 | if test "x$LINE" != x ; then | |
3904 | eval "DEFAULT_$LINE" | |
3905 | else | |
3906 | no_cache=1 | |
3907 | fi | |
3908 | ||
3909 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3910 | |
e6cc62c6 | 3911 | fi; |
a1622950 VZ |
3912 | |
3913 | eval "$ac_cv_use_protocols" | |
3914 | if test "$no_cache" != 1; then | |
3915 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3916 | fi | |
3917 | ||
3918 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3919 | echo "$as_me:$LINENO: result: yes" >&5 |
3920 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3921 | else |
e6cc62c6 VS |
3922 | echo "$as_me:$LINENO: result: no" >&5 |
3923 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3924 | fi |
e6cc62c6 | 3925 | |
a1622950 | 3926 | |
5005acfe | 3927 | enablestring= |
e6cc62c6 VS |
3928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3929 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3930 | no_cache=0 |
3931 | # Check whether --enable-ftp or --disable-ftp was given. | |
3932 | if test "${enable_ftp+set}" = set; then | |
3933 | enableval="$enable_ftp" | |
e6cc62c6 | 3934 | |
a1622950 VZ |
3935 | if test "$enableval" = yes; then |
3936 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3937 | else | |
3938 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3939 | fi | |
e6cc62c6 | 3940 | |
a1622950 | 3941 | else |
e6cc62c6 | 3942 | |
a1622950 VZ |
3943 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3944 | if test "x$LINE" != x ; then | |
3945 | eval "DEFAULT_$LINE" | |
3946 | else | |
3947 | no_cache=1 | |
3948 | fi | |
3949 | ||
3950 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3951 | |
e6cc62c6 | 3952 | fi; |
a1622950 VZ |
3953 | |
3954 | eval "$ac_cv_use_ftp" | |
3955 | if test "$no_cache" != 1; then | |
3956 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3957 | fi | |
3958 | ||
3959 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3960 | echo "$as_me:$LINENO: result: yes" >&5 |
3961 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3962 | else |
e6cc62c6 VS |
3963 | echo "$as_me:$LINENO: result: no" >&5 |
3964 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3965 | fi |
e6cc62c6 | 3966 | |
a1622950 | 3967 | |
5005acfe | 3968 | enablestring= |
e6cc62c6 VS |
3969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3970 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3971 | no_cache=0 |
3972 | # Check whether --enable-http or --disable-http was given. | |
3973 | if test "${enable_http+set}" = set; then | |
3974 | enableval="$enable_http" | |
e6cc62c6 | 3975 | |
a1622950 VZ |
3976 | if test "$enableval" = yes; then |
3977 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3978 | else | |
3979 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3980 | fi | |
e6cc62c6 | 3981 | |
a1622950 | 3982 | else |
e6cc62c6 | 3983 | |
a1622950 VZ |
3984 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3985 | if test "x$LINE" != x ; then | |
3986 | eval "DEFAULT_$LINE" | |
3987 | else | |
3988 | no_cache=1 | |
3989 | fi | |
3990 | ||
3991 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3992 | |
e6cc62c6 | 3993 | fi; |
a1622950 VZ |
3994 | |
3995 | eval "$ac_cv_use_http" | |
3996 | if test "$no_cache" != 1; then | |
3997 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3998 | fi | |
3999 | ||
4000 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4001 | echo "$as_me:$LINENO: result: yes" >&5 |
4002 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4003 | else |
e6cc62c6 VS |
4004 | echo "$as_me:$LINENO: result: no" >&5 |
4005 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4006 | fi |
e6cc62c6 | 4007 | |
a1622950 | 4008 | |
5005acfe | 4009 | enablestring= |
e6cc62c6 VS |
4010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4011 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4012 | no_cache=0 |
4013 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4014 | if test "${enable_fileproto+set}" = set; then | |
4015 | enableval="$enable_fileproto" | |
e6cc62c6 | 4016 | |
a1622950 VZ |
4017 | if test "$enableval" = yes; then |
4018 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4019 | else | |
4020 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4021 | fi | |
e6cc62c6 | 4022 | |
a1622950 | 4023 | else |
e6cc62c6 | 4024 | |
a1622950 VZ |
4025 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4026 | if test "x$LINE" != x ; then | |
4027 | eval "DEFAULT_$LINE" | |
4028 | else | |
4029 | no_cache=1 | |
4030 | fi | |
4031 | ||
4032 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4033 | |
e6cc62c6 | 4034 | fi; |
a1622950 VZ |
4035 | |
4036 | eval "$ac_cv_use_fileproto" | |
4037 | if test "$no_cache" != 1; then | |
4038 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4039 | fi | |
4040 | ||
4041 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4042 | echo "$as_me:$LINENO: result: yes" >&5 |
4043 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4044 | else |
e6cc62c6 VS |
4045 | echo "$as_me:$LINENO: result: no" >&5 |
4046 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4047 | fi |
e6cc62c6 | 4048 | |
a1622950 | 4049 | |
5005acfe | 4050 | enablestring= |
e6cc62c6 VS |
4051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4052 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4053 | no_cache=0 |
4054 | # Check whether --enable-sockets or --disable-sockets was given. | |
4055 | if test "${enable_sockets+set}" = set; then | |
4056 | enableval="$enable_sockets" | |
e6cc62c6 | 4057 | |
10f2d63a VZ |
4058 | if test "$enableval" = yes; then |
4059 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4060 | else | |
4061 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4062 | fi | |
e6cc62c6 | 4063 | |
10f2d63a | 4064 | else |
e6cc62c6 | 4065 | |
10f2d63a VZ |
4066 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4067 | if test "x$LINE" != x ; then | |
4068 | eval "DEFAULT_$LINE" | |
4069 | else | |
4070 | no_cache=1 | |
4071 | fi | |
4072 | ||
4073 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4074 | |
e6cc62c6 | 4075 | fi; |
10f2d63a VZ |
4076 | |
4077 | eval "$ac_cv_use_sockets" | |
4078 | if test "$no_cache" != 1; then | |
4079 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4080 | fi | |
4081 | ||
4082 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4083 | echo "$as_me:$LINENO: result: yes" >&5 |
4084 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4085 | else |
e6cc62c6 VS |
4086 | echo "$as_me:$LINENO: result: no" >&5 |
4087 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4088 | fi |
e6cc62c6 | 4089 | |
8284b0c5 | 4090 | |
5005acfe | 4091 | enablestring= |
e6cc62c6 VS |
4092 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4093 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4094 | no_cache=0 |
4095 | # Check whether --enable-ole or --disable-ole was given. | |
4096 | if test "${enable_ole+set}" = set; then | |
4097 | enableval="$enable_ole" | |
e6cc62c6 | 4098 | |
3bce6687 JS |
4099 | if test "$enableval" = yes; then |
4100 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4101 | else | |
4102 | ac_cv_use_ole='wxUSE_OLE=no' | |
4103 | fi | |
e6cc62c6 | 4104 | |
3bce6687 | 4105 | else |
e6cc62c6 | 4106 | |
3bce6687 JS |
4107 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4108 | if test "x$LINE" != x ; then | |
4109 | eval "DEFAULT_$LINE" | |
4110 | else | |
4111 | no_cache=1 | |
4112 | fi | |
4113 | ||
4114 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4115 | |
e6cc62c6 | 4116 | fi; |
3bce6687 JS |
4117 | |
4118 | eval "$ac_cv_use_ole" | |
4119 | if test "$no_cache" != 1; then | |
4120 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4121 | fi | |
4122 | ||
4123 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4124 | echo "$as_me:$LINENO: result: yes" >&5 |
4125 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4126 | else |
e6cc62c6 VS |
4127 | echo "$as_me:$LINENO: result: no" >&5 |
4128 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4129 | fi |
e6cc62c6 | 4130 | |
3bce6687 | 4131 | |
5005acfe | 4132 | enablestring= |
e6cc62c6 VS |
4133 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4134 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4135 | no_cache=0 |
4136 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4137 | if test "${enable_dataobj+set}" = set; then | |
4138 | enableval="$enable_dataobj" | |
e6cc62c6 | 4139 | |
3bce6687 JS |
4140 | if test "$enableval" = yes; then |
4141 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4142 | else | |
4143 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4144 | fi | |
e6cc62c6 | 4145 | |
3bce6687 | 4146 | else |
e6cc62c6 | 4147 | |
3bce6687 JS |
4148 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4149 | if test "x$LINE" != x ; then | |
4150 | eval "DEFAULT_$LINE" | |
4151 | else | |
4152 | no_cache=1 | |
4153 | fi | |
4154 | ||
4155 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4156 | |
e6cc62c6 | 4157 | fi; |
3bce6687 JS |
4158 | |
4159 | eval "$ac_cv_use_dataobj" | |
4160 | if test "$no_cache" != 1; then | |
4161 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4162 | fi | |
4163 | ||
4164 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4165 | echo "$as_me:$LINENO: result: yes" >&5 |
4166 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4167 | else |
e6cc62c6 VS |
4168 | echo "$as_me:$LINENO: result: no" >&5 |
4169 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4170 | fi |
e6cc62c6 | 4171 | |
3bce6687 | 4172 | |
52127426 | 4173 | |
5005acfe | 4174 | enablestring= |
e6cc62c6 VS |
4175 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4176 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4177 | no_cache=0 |
eb4efbdc VZ |
4178 | # Check whether --enable-ipc or --disable-ipc was given. |
4179 | if test "${enable_ipc+set}" = set; then | |
4180 | enableval="$enable_ipc" | |
e6cc62c6 | 4181 | |
10f2d63a | 4182 | if test "$enableval" = yes; then |
eb4efbdc | 4183 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4184 | else |
eb4efbdc | 4185 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4186 | fi |
e6cc62c6 | 4187 | |
10f2d63a | 4188 | else |
e6cc62c6 | 4189 | |
eb4efbdc | 4190 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4191 | if test "x$LINE" != x ; then |
4192 | eval "DEFAULT_$LINE" | |
4193 | else | |
4194 | no_cache=1 | |
4195 | fi | |
4196 | ||
eb4efbdc | 4197 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4198 | |
e6cc62c6 | 4199 | fi; |
10f2d63a | 4200 | |
eb4efbdc | 4201 | eval "$ac_cv_use_ipc" |
10f2d63a | 4202 | if test "$no_cache" != 1; then |
eb4efbdc | 4203 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4204 | fi |
4205 | ||
eb4efbdc | 4206 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4207 | echo "$as_me:$LINENO: result: yes" >&5 |
4208 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4209 | else |
e6cc62c6 VS |
4210 | echo "$as_me:$LINENO: result: no" >&5 |
4211 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4212 | fi |
e6cc62c6 | 4213 | |
52127426 | 4214 | |
8284b0c5 | 4215 | |
5005acfe | 4216 | enablestring= |
e6cc62c6 VS |
4217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4218 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4219 | no_cache=0 |
4220 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4221 | if test "${enable_cmdline+set}" = set; then | |
4222 | enableval="$enable_cmdline" | |
e6cc62c6 | 4223 | |
1e6feb95 VZ |
4224 | if test "$enableval" = yes; then |
4225 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4226 | else | |
4227 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4228 | fi | |
e6cc62c6 | 4229 | |
1e6feb95 | 4230 | else |
e6cc62c6 | 4231 | |
1e6feb95 VZ |
4232 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4233 | if test "x$LINE" != x ; then | |
4234 | eval "DEFAULT_$LINE" | |
4235 | else | |
4236 | no_cache=1 | |
4237 | fi | |
4238 | ||
4239 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4240 | |
e6cc62c6 | 4241 | fi; |
1e6feb95 VZ |
4242 | |
4243 | eval "$ac_cv_use_cmdline" | |
4244 | if test "$no_cache" != 1; then | |
4245 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4246 | fi | |
4247 | ||
4248 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4249 | echo "$as_me:$LINENO: result: yes" >&5 |
4250 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4251 | else |
e6cc62c6 VS |
4252 | echo "$as_me:$LINENO: result: no" >&5 |
4253 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4254 | fi |
e6cc62c6 | 4255 | |
1e6feb95 | 4256 | |
5005acfe | 4257 | enablestring= |
e6cc62c6 VS |
4258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4259 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4260 | no_cache=0 |
4261 | # Check whether --enable-datetime or --disable-datetime was given. | |
4262 | if test "${enable_datetime+set}" = set; then | |
4263 | enableval="$enable_datetime" | |
e6cc62c6 | 4264 | |
1e6feb95 VZ |
4265 | if test "$enableval" = yes; then |
4266 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4267 | else | |
4268 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4269 | fi | |
e6cc62c6 | 4270 | |
1e6feb95 | 4271 | else |
e6cc62c6 | 4272 | |
1e6feb95 VZ |
4273 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4274 | if test "x$LINE" != x ; then | |
4275 | eval "DEFAULT_$LINE" | |
4276 | else | |
4277 | no_cache=1 | |
4278 | fi | |
4279 | ||
4280 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4281 | |
e6cc62c6 | 4282 | fi; |
1e6feb95 VZ |
4283 | |
4284 | eval "$ac_cv_use_datetime" | |
4285 | if test "$no_cache" != 1; then | |
4286 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4287 | fi | |
4288 | ||
4289 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4290 | echo "$as_me:$LINENO: result: yes" >&5 |
4291 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4292 | else |
e6cc62c6 VS |
4293 | echo "$as_me:$LINENO: result: no" >&5 |
4294 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4295 | fi |
e6cc62c6 | 4296 | |
1e6feb95 | 4297 | |
5005acfe | 4298 | enablestring= |
e6cc62c6 VS |
4299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4300 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4301 | no_cache=0 |
4302 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4303 | if test "${enable_stopwatch+set}" = set; then | |
4304 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4305 | |
1e6feb95 VZ |
4306 | if test "$enableval" = yes; then |
4307 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4308 | else | |
4309 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4310 | fi | |
e6cc62c6 | 4311 | |
1e6feb95 | 4312 | else |
e6cc62c6 | 4313 | |
1e6feb95 VZ |
4314 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4315 | if test "x$LINE" != x ; then | |
4316 | eval "DEFAULT_$LINE" | |
4317 | else | |
4318 | no_cache=1 | |
4319 | fi | |
4320 | ||
4321 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4322 | |
e6cc62c6 | 4323 | fi; |
1e6feb95 VZ |
4324 | |
4325 | eval "$ac_cv_use_stopwatch" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4331 | echo "$as_me:$LINENO: result: yes" >&5 |
4332 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4333 | else |
e6cc62c6 VS |
4334 | echo "$as_me:$LINENO: result: no" >&5 |
4335 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4336 | fi |
e6cc62c6 | 4337 | |
1e6feb95 | 4338 | |
5005acfe | 4339 | enablestring= |
e6cc62c6 VS |
4340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4341 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4342 | no_cache=0 |
eb4efbdc VZ |
4343 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4344 | if test "${enable_dialupman+set}" = set; then | |
4345 | enableval="$enable_dialupman" | |
e6cc62c6 | 4346 | |
10f2d63a | 4347 | if test "$enableval" = yes; then |
eb4efbdc | 4348 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4349 | else |
eb4efbdc | 4350 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4351 | fi |
e6cc62c6 | 4352 | |
10f2d63a | 4353 | else |
e6cc62c6 | 4354 | |
eb4efbdc | 4355 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4356 | if test "x$LINE" != x ; then |
4357 | eval "DEFAULT_$LINE" | |
4358 | else | |
4359 | no_cache=1 | |
4360 | fi | |
4361 | ||
eb4efbdc | 4362 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4363 | |
e6cc62c6 | 4364 | fi; |
10f2d63a | 4365 | |
eb4efbdc | 4366 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4367 | if test "$no_cache" != 1; then |
eb4efbdc | 4368 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4369 | fi |
4370 | ||
eb4efbdc | 4371 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4372 | echo "$as_me:$LINENO: result: yes" >&5 |
4373 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4374 | else |
e6cc62c6 VS |
4375 | echo "$as_me:$LINENO: result: no" >&5 |
4376 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4377 | fi |
e6cc62c6 | 4378 | |
10f2d63a | 4379 | |
5005acfe | 4380 | enablestring= |
e6cc62c6 VS |
4381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4382 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4383 | no_cache=0 |
4384 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4385 | if test "${enable_apple_ieee+set}" = set; then | |
4386 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4387 | |
10f2d63a VZ |
4388 | if test "$enableval" = yes; then |
4389 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4390 | else | |
4391 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4392 | fi | |
e6cc62c6 | 4393 | |
10f2d63a | 4394 | else |
e6cc62c6 | 4395 | |
10f2d63a VZ |
4396 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4397 | if test "x$LINE" != x ; then | |
4398 | eval "DEFAULT_$LINE" | |
4399 | else | |
4400 | no_cache=1 | |
4401 | fi | |
4402 | ||
4403 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4404 | |
e6cc62c6 | 4405 | fi; |
10f2d63a VZ |
4406 | |
4407 | eval "$ac_cv_use_apple_ieee" | |
4408 | if test "$no_cache" != 1; then | |
4409 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4410 | fi | |
4411 | ||
4412 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4413 | echo "$as_me:$LINENO: result: yes" >&5 |
4414 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4415 | else |
e6cc62c6 VS |
4416 | echo "$as_me:$LINENO: result: no" >&5 |
4417 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4418 | fi |
e6cc62c6 | 4419 | |
10f2d63a | 4420 | |
5005acfe | 4421 | enablestring= |
e6cc62c6 VS |
4422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4423 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4424 | no_cache=0 |
1e6feb95 VZ |
4425 | # Check whether --enable-timer or --disable-timer was given. |
4426 | if test "${enable_timer+set}" = set; then | |
4427 | enableval="$enable_timer" | |
e6cc62c6 | 4428 | |
10f2d63a | 4429 | if test "$enableval" = yes; then |
1e6feb95 | 4430 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4431 | else |
1e6feb95 | 4432 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4433 | fi |
e6cc62c6 | 4434 | |
10f2d63a | 4435 | else |
e6cc62c6 | 4436 | |
1e6feb95 | 4437 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4438 | if test "x$LINE" != x ; then |
4439 | eval "DEFAULT_$LINE" | |
4440 | else | |
4441 | no_cache=1 | |
4442 | fi | |
4443 | ||
1e6feb95 | 4444 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4445 | |
e6cc62c6 | 4446 | fi; |
10f2d63a | 4447 | |
1e6feb95 | 4448 | eval "$ac_cv_use_timer" |
10f2d63a | 4449 | if test "$no_cache" != 1; then |
1e6feb95 | 4450 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4451 | fi |
4452 | ||
1e6feb95 | 4453 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4454 | echo "$as_me:$LINENO: result: yes" >&5 |
4455 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4456 | else |
e6cc62c6 VS |
4457 | echo "$as_me:$LINENO: result: no" >&5 |
4458 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4459 | fi |
e6cc62c6 | 4460 | |
10f2d63a | 4461 | |
5005acfe | 4462 | enablestring= |
e6cc62c6 VS |
4463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4464 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4465 | no_cache=0 |
4466 | # Check whether --enable-wave or --disable-wave was given. | |
4467 | if test "${enable_wave+set}" = set; then | |
4468 | enableval="$enable_wave" | |
e6cc62c6 | 4469 | |
10f2d63a VZ |
4470 | if test "$enableval" = yes; then |
4471 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4472 | else | |
4473 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4474 | fi | |
e6cc62c6 | 4475 | |
10f2d63a | 4476 | else |
e6cc62c6 | 4477 | |
10f2d63a VZ |
4478 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4479 | if test "x$LINE" != x ; then | |
4480 | eval "DEFAULT_$LINE" | |
4481 | else | |
4482 | no_cache=1 | |
4483 | fi | |
4484 | ||
4485 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4486 | |
e6cc62c6 | 4487 | fi; |
10f2d63a VZ |
4488 | |
4489 | eval "$ac_cv_use_wave" | |
4490 | if test "$no_cache" != 1; then | |
4491 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4492 | fi | |
4493 | ||
4494 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4495 | echo "$as_me:$LINENO: result: yes" >&5 |
4496 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4497 | else |
e6cc62c6 VS |
4498 | echo "$as_me:$LINENO: result: no" >&5 |
4499 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4500 | fi |
e6cc62c6 | 4501 | |
10f2d63a | 4502 | |
5005acfe | 4503 | enablestring= |
e6cc62c6 VS |
4504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4505 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4506 | no_cache=0 |
4507 | # Check whether --enable-fraction or --disable-fraction was given. | |
4508 | if test "${enable_fraction+set}" = set; then | |
4509 | enableval="$enable_fraction" | |
e6cc62c6 | 4510 | |
10f2d63a VZ |
4511 | if test "$enableval" = yes; then |
4512 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4513 | else | |
4514 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4515 | fi | |
e6cc62c6 | 4516 | |
10f2d63a | 4517 | else |
e6cc62c6 | 4518 | |
10f2d63a VZ |
4519 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4520 | if test "x$LINE" != x ; then | |
4521 | eval "DEFAULT_$LINE" | |
4522 | else | |
4523 | no_cache=1 | |
4524 | fi | |
4525 | ||
4526 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4527 | |
e6cc62c6 | 4528 | fi; |
10f2d63a VZ |
4529 | |
4530 | eval "$ac_cv_use_fraction" | |
4531 | if test "$no_cache" != 1; then | |
4532 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4533 | fi | |
4534 | ||
4535 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4536 | echo "$as_me:$LINENO: result: yes" >&5 |
4537 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4538 | else |
e6cc62c6 VS |
4539 | echo "$as_me:$LINENO: result: no" >&5 |
4540 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4541 | fi |
e6cc62c6 | 4542 | |
10f2d63a | 4543 | |
5005acfe | 4544 | enablestring= |
e6cc62c6 VS |
4545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4546 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4547 | no_cache=0 |
4548 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4549 | if test "${enable_dynlib+set}" = set; then | |
4550 | enableval="$enable_dynlib" | |
e6cc62c6 | 4551 | |
10f2d63a VZ |
4552 | if test "$enableval" = yes; then |
4553 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4554 | else | |
4555 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4556 | fi | |
e6cc62c6 | 4557 | |
10f2d63a | 4558 | else |
e6cc62c6 | 4559 | |
10f2d63a VZ |
4560 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4568 | |
e6cc62c6 | 4569 | fi; |
10f2d63a VZ |
4570 | |
4571 | eval "$ac_cv_use_dynlib" | |
4572 | if test "$no_cache" != 1; then | |
4573 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4574 | fi | |
4575 | ||
4576 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4577 | echo "$as_me:$LINENO: result: yes" >&5 |
4578 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4579 | else |
e6cc62c6 VS |
4580 | echo "$as_me:$LINENO: result: no" >&5 |
4581 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4582 | fi |
e6cc62c6 | 4583 | |
10f2d63a | 4584 | |
5005acfe | 4585 | enablestring= |
e6cc62c6 VS |
4586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4587 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4588 | no_cache=0 |
4589 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4590 | if test "${enable_dynamicloader+set}" = set; then | |
4591 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4592 | |
0b9ab0bd RL |
4593 | if test "$enableval" = yes; then |
4594 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4595 | else | |
4596 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4597 | fi | |
e6cc62c6 | 4598 | |
0b9ab0bd | 4599 | else |
e6cc62c6 | 4600 | |
0b9ab0bd RL |
4601 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4602 | if test "x$LINE" != x ; then | |
4603 | eval "DEFAULT_$LINE" | |
4604 | else | |
4605 | no_cache=1 | |
4606 | fi | |
4607 | ||
4608 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4609 | |
e6cc62c6 | 4610 | fi; |
0b9ab0bd RL |
4611 | |
4612 | eval "$ac_cv_use_dynamicloader" | |
4613 | if test "$no_cache" != 1; then | |
4614 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4615 | fi | |
4616 | ||
4617 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4618 | echo "$as_me:$LINENO: result: yes" >&5 |
4619 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4620 | else |
e6cc62c6 VS |
4621 | echo "$as_me:$LINENO: result: no" >&5 |
4622 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4623 | fi |
e6cc62c6 | 4624 | |
0b9ab0bd | 4625 | |
5005acfe | 4626 | enablestring= |
e6cc62c6 VS |
4627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4628 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-longlong or --disable-longlong was given. | |
4631 | if test "${enable_longlong+set}" = set; then | |
4632 | enableval="$enable_longlong" | |
e6cc62c6 | 4633 | |
10f2d63a VZ |
4634 | if test "$enableval" = yes; then |
4635 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4636 | else | |
4637 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4638 | fi | |
e6cc62c6 | 4639 | |
10f2d63a | 4640 | else |
e6cc62c6 | 4641 | |
10f2d63a VZ |
4642 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4650 | |
e6cc62c6 | 4651 | fi; |
10f2d63a VZ |
4652 | |
4653 | eval "$ac_cv_use_longlong" | |
4654 | if test "$no_cache" != 1; then | |
4655 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4656 | fi | |
4657 | ||
4658 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4659 | echo "$as_me:$LINENO: result: yes" >&5 |
4660 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4661 | else |
e6cc62c6 VS |
4662 | echo "$as_me:$LINENO: result: no" >&5 |
4663 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4664 | fi |
e6cc62c6 | 4665 | |
10f2d63a | 4666 | |
5005acfe | 4667 | enablestring= |
e6cc62c6 VS |
4668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4669 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4670 | no_cache=0 |
4671 | # Check whether --enable-geometry or --disable-geometry was given. | |
4672 | if test "${enable_geometry+set}" = set; then | |
4673 | enableval="$enable_geometry" | |
e6cc62c6 | 4674 | |
e8f65ba6 RR |
4675 | if test "$enableval" = yes; then |
4676 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4677 | else | |
4678 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4679 | fi | |
e6cc62c6 | 4680 | |
e8f65ba6 | 4681 | else |
e6cc62c6 | 4682 | |
e8f65ba6 RR |
4683 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4684 | if test "x$LINE" != x ; then | |
4685 | eval "DEFAULT_$LINE" | |
4686 | else | |
4687 | no_cache=1 | |
4688 | fi | |
4689 | ||
4690 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4691 | |
e6cc62c6 | 4692 | fi; |
e8f65ba6 RR |
4693 | |
4694 | eval "$ac_cv_use_geometry" | |
4695 | if test "$no_cache" != 1; then | |
4696 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4697 | fi | |
4698 | ||
4699 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4700 | echo "$as_me:$LINENO: result: yes" >&5 |
4701 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4702 | else |
e6cc62c6 VS |
4703 | echo "$as_me:$LINENO: result: no" >&5 |
4704 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4705 | fi |
e6cc62c6 | 4706 | |
e8f65ba6 | 4707 | |
5005acfe | 4708 | enablestring= |
e6cc62c6 VS |
4709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4710 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4711 | no_cache=0 |
4712 | # Check whether --enable-log or --disable-log was given. | |
4713 | if test "${enable_log+set}" = set; then | |
4714 | enableval="$enable_log" | |
e6cc62c6 | 4715 | |
10f2d63a VZ |
4716 | if test "$enableval" = yes; then |
4717 | ac_cv_use_log='wxUSE_LOG=yes' | |
4718 | else | |
4719 | ac_cv_use_log='wxUSE_LOG=no' | |
4720 | fi | |
e6cc62c6 | 4721 | |
10f2d63a | 4722 | else |
e6cc62c6 | 4723 | |
10f2d63a VZ |
4724 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4725 | if test "x$LINE" != x ; then | |
4726 | eval "DEFAULT_$LINE" | |
4727 | else | |
4728 | no_cache=1 | |
4729 | fi | |
4730 | ||
4731 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4732 | |
e6cc62c6 | 4733 | fi; |
10f2d63a VZ |
4734 | |
4735 | eval "$ac_cv_use_log" | |
4736 | if test "$no_cache" != 1; then | |
4737 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4738 | fi | |
4739 | ||
4740 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4741 | echo "$as_me:$LINENO: result: yes" >&5 |
4742 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4743 | else |
e6cc62c6 VS |
4744 | echo "$as_me:$LINENO: result: no" >&5 |
4745 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4746 | fi |
e6cc62c6 | 4747 | |
10f2d63a | 4748 | |
5005acfe | 4749 | enablestring= |
e6cc62c6 VS |
4750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4751 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4752 | no_cache=0 |
4753 | # Check whether --enable-streams or --disable-streams was given. | |
4754 | if test "${enable_streams+set}" = set; then | |
4755 | enableval="$enable_streams" | |
e6cc62c6 | 4756 | |
10f2d63a VZ |
4757 | if test "$enableval" = yes; then |
4758 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4759 | else | |
4760 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4761 | fi | |
e6cc62c6 | 4762 | |
10f2d63a | 4763 | else |
e6cc62c6 | 4764 | |
10f2d63a VZ |
4765 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4766 | if test "x$LINE" != x ; then | |
4767 | eval "DEFAULT_$LINE" | |
4768 | else | |
4769 | no_cache=1 | |
4770 | fi | |
4771 | ||
4772 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4773 | |
e6cc62c6 | 4774 | fi; |
10f2d63a VZ |
4775 | |
4776 | eval "$ac_cv_use_streams" | |
4777 | if test "$no_cache" != 1; then | |
4778 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4779 | fi | |
4780 | ||
4781 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4782 | echo "$as_me:$LINENO: result: yes" >&5 |
4783 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4784 | else |
e6cc62c6 VS |
4785 | echo "$as_me:$LINENO: result: no" >&5 |
4786 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4787 | fi |
e6cc62c6 | 4788 | |
10f2d63a | 4789 | |
5005acfe | 4790 | enablestring= |
e6cc62c6 VS |
4791 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4792 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4793 | no_cache=0 |
4794 | # Check whether --enable-file or --disable-file was given. | |
4795 | if test "${enable_file+set}" = set; then | |
4796 | enableval="$enable_file" | |
e6cc62c6 | 4797 | |
10f2d63a VZ |
4798 | if test "$enableval" = yes; then |
4799 | ac_cv_use_file='wxUSE_FILE=yes' | |
4800 | else | |
4801 | ac_cv_use_file='wxUSE_FILE=no' | |
4802 | fi | |
e6cc62c6 | 4803 | |
10f2d63a | 4804 | else |
e6cc62c6 | 4805 | |
10f2d63a VZ |
4806 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4807 | if test "x$LINE" != x ; then | |
4808 | eval "DEFAULT_$LINE" | |
4809 | else | |
4810 | no_cache=1 | |
4811 | fi | |
4812 | ||
4813 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4814 | |
e6cc62c6 | 4815 | fi; |
10f2d63a VZ |
4816 | |
4817 | eval "$ac_cv_use_file" | |
4818 | if test "$no_cache" != 1; then | |
4819 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4820 | fi | |
4821 | ||
4822 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4823 | echo "$as_me:$LINENO: result: yes" >&5 |
4824 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4825 | else |
e6cc62c6 VS |
4826 | echo "$as_me:$LINENO: result: no" >&5 |
4827 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4828 | fi |
e6cc62c6 | 4829 | |
10f2d63a | 4830 | |
5005acfe | 4831 | enablestring= |
e6cc62c6 VS |
4832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4833 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4834 | no_cache=0 |
1e6feb95 VZ |
4835 | # Check whether --enable-ffile or --disable-ffile was given. |
4836 | if test "${enable_ffile+set}" = set; then | |
4837 | enableval="$enable_ffile" | |
e6cc62c6 | 4838 | |
10f2d63a | 4839 | if test "$enableval" = yes; then |
1e6feb95 | 4840 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4841 | else |
1e6feb95 | 4842 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4843 | fi |
e6cc62c6 | 4844 | |
10f2d63a | 4845 | else |
e6cc62c6 | 4846 | |
1e6feb95 | 4847 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4848 | if test "x$LINE" != x ; then |
4849 | eval "DEFAULT_$LINE" | |
4850 | else | |
4851 | no_cache=1 | |
4852 | fi | |
4853 | ||
1e6feb95 | 4854 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4855 | |
e6cc62c6 | 4856 | fi; |
10f2d63a | 4857 | |
1e6feb95 | 4858 | eval "$ac_cv_use_ffile" |
10f2d63a | 4859 | if test "$no_cache" != 1; then |
1e6feb95 | 4860 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4861 | fi |
4862 | ||
1e6feb95 | 4863 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4864 | echo "$as_me:$LINENO: result: yes" >&5 |
4865 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4866 | else |
e6cc62c6 VS |
4867 | echo "$as_me:$LINENO: result: no" >&5 |
4868 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4869 | fi |
e6cc62c6 | 4870 | |
10f2d63a | 4871 | |
5005acfe | 4872 | enablestring= |
e6cc62c6 VS |
4873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4874 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4875 | no_cache=0 |
4876 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4877 | if test "${enable_textbuf+set}" = set; then | |
4878 | enableval="$enable_textbuf" | |
e6cc62c6 | 4879 | |
a3a584a7 VZ |
4880 | if test "$enableval" = yes; then |
4881 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4882 | else | |
4883 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4884 | fi | |
e6cc62c6 | 4885 | |
a3a584a7 | 4886 | else |
e6cc62c6 | 4887 | |
a3a584a7 VZ |
4888 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4889 | if test "x$LINE" != x ; then | |
4890 | eval "DEFAULT_$LINE" | |
4891 | else | |
4892 | no_cache=1 | |
4893 | fi | |
4894 | ||
4895 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4896 | |
e6cc62c6 | 4897 | fi; |
a3a584a7 VZ |
4898 | |
4899 | eval "$ac_cv_use_textbuf" | |
4900 | if test "$no_cache" != 1; then | |
4901 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4902 | fi | |
4903 | ||
4904 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4905 | echo "$as_me:$LINENO: result: yes" >&5 |
4906 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4907 | else |
e6cc62c6 VS |
4908 | echo "$as_me:$LINENO: result: no" >&5 |
4909 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4910 | fi |
e6cc62c6 | 4911 | |
a3a584a7 | 4912 | |
5005acfe | 4913 | enablestring= |
e6cc62c6 VS |
4914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4915 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4916 | no_cache=0 |
1e6feb95 VZ |
4917 | # Check whether --enable-textfile or --disable-textfile was given. |
4918 | if test "${enable_textfile+set}" = set; then | |
4919 | enableval="$enable_textfile" | |
e6cc62c6 | 4920 | |
10f2d63a | 4921 | if test "$enableval" = yes; then |
1e6feb95 | 4922 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4923 | else |
1e6feb95 | 4924 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4925 | fi |
e6cc62c6 | 4926 | |
10f2d63a | 4927 | else |
e6cc62c6 | 4928 | |
1e6feb95 | 4929 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4930 | if test "x$LINE" != x ; then |
4931 | eval "DEFAULT_$LINE" | |
4932 | else | |
4933 | no_cache=1 | |
4934 | fi | |
4935 | ||
1e6feb95 | 4936 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4937 | |
e6cc62c6 | 4938 | fi; |
10f2d63a | 4939 | |
1e6feb95 | 4940 | eval "$ac_cv_use_textfile" |
10f2d63a | 4941 | if test "$no_cache" != 1; then |
1e6feb95 | 4942 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4943 | fi |
4944 | ||
1e6feb95 | 4945 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4946 | echo "$as_me:$LINENO: result: yes" >&5 |
4947 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4948 | else |
e6cc62c6 VS |
4949 | echo "$as_me:$LINENO: result: no" >&5 |
4950 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4951 | fi |
e6cc62c6 | 4952 | |
10f2d63a | 4953 | |
5005acfe | 4954 | enablestring= |
e6cc62c6 VS |
4955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4956 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4957 | no_cache=0 |
1e6feb95 VZ |
4958 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4959 | if test "${enable_fontmap+set}" = set; then | |
4960 | enableval="$enable_fontmap" | |
e6cc62c6 | 4961 | |
10f2d63a | 4962 | if test "$enableval" = yes; then |
1e6feb95 | 4963 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4964 | else |
1e6feb95 | 4965 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4966 | fi |
e6cc62c6 | 4967 | |
10f2d63a | 4968 | else |
e6cc62c6 | 4969 | |
1e6feb95 | 4970 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4971 | if test "x$LINE" != x ; then |
4972 | eval "DEFAULT_$LINE" | |
4973 | else | |
4974 | no_cache=1 | |
4975 | fi | |
4976 | ||
1e6feb95 | 4977 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4978 | |
e6cc62c6 | 4979 | fi; |
10f2d63a | 4980 | |
1e6feb95 | 4981 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4982 | if test "$no_cache" != 1; then |
1e6feb95 | 4983 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4984 | fi |
4985 | ||
1e6feb95 | 4986 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4987 | echo "$as_me:$LINENO: result: yes" >&5 |
4988 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4989 | else |
e6cc62c6 VS |
4990 | echo "$as_me:$LINENO: result: no" >&5 |
4991 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4992 | fi |
e6cc62c6 | 4993 | |
10f2d63a | 4994 | |
5005acfe | 4995 | enablestring= |
e6cc62c6 VS |
4996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4997 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4998 | no_cache=0 |
1e6feb95 VZ |
4999 | # Check whether --enable-unicode or --disable-unicode was given. |
5000 | if test "${enable_unicode+set}" = set; then | |
5001 | enableval="$enable_unicode" | |
e6cc62c6 | 5002 | |
1e6feb95 VZ |
5003 | if test "$enableval" = yes; then |
5004 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5005 | else | |
5006 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5007 | fi | |
e6cc62c6 | 5008 | |
1e6feb95 | 5009 | else |
e6cc62c6 | 5010 | |
1e6feb95 VZ |
5011 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
5012 | if test "x$LINE" != x ; then | |
5013 | eval "DEFAULT_$LINE" | |
5014 | else | |
5015 | no_cache=1 | |
5016 | fi | |
5017 | ||
5018 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 5019 | |
e6cc62c6 | 5020 | fi; |
1e6feb95 VZ |
5021 | |
5022 | eval "$ac_cv_use_unicode" | |
5023 | if test "$no_cache" != 1; then | |
5024 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5025 | fi | |
5026 | ||
5027 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
5028 | echo "$as_me:$LINENO: result: yes" >&5 |
5029 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5030 | else |
e6cc62c6 VS |
5031 | echo "$as_me:$LINENO: result: no" >&5 |
5032 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5033 | fi |
e6cc62c6 | 5034 | |
1e6feb95 | 5035 | |
5005acfe | 5036 | enablestring= |
e6cc62c6 VS |
5037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5038 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5039 | no_cache=0 |
5040 | # Check whether --enable-mslu or --disable-mslu was given. | |
5041 | if test "${enable_mslu+set}" = set; then | |
5042 | enableval="$enable_mslu" | |
e6cc62c6 | 5043 | |
a72a4bfa VS |
5044 | if test "$enableval" = yes; then |
5045 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5046 | else | |
5047 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5048 | fi | |
e6cc62c6 | 5049 | |
a72a4bfa | 5050 | else |
e6cc62c6 | 5051 | |
a72a4bfa VS |
5052 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5053 | if test "x$LINE" != x ; then | |
5054 | eval "DEFAULT_$LINE" | |
5055 | else | |
5056 | no_cache=1 | |
5057 | fi | |
5058 | ||
5059 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5060 | |
e6cc62c6 | 5061 | fi; |
a72a4bfa VS |
5062 | |
5063 | eval "$ac_cv_use_mslu" | |
5064 | if test "$no_cache" != 1; then | |
5065 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5066 | fi | |
5067 | ||
5068 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5069 | echo "$as_me:$LINENO: result: yes" >&5 |
5070 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5071 | else |
e6cc62c6 VS |
5072 | echo "$as_me:$LINENO: result: no" >&5 |
5073 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5074 | fi |
e6cc62c6 | 5075 | |
a72a4bfa | 5076 | |
5005acfe | 5077 | enablestring= |
e6cc62c6 VS |
5078 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5079 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5080 | no_cache=0 |
5081 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5082 | if test "${enable_wxprintfv+set}" = set; then | |
5083 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5084 | |
1e6feb95 | 5085 | if test "$enableval" = yes; then |
10f2d63a VZ |
5086 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5087 | else | |
5088 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5089 | fi | |
e6cc62c6 | 5090 | |
10f2d63a | 5091 | else |
e6cc62c6 | 5092 | |
10f2d63a VZ |
5093 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5094 | if test "x$LINE" != x ; then | |
5095 | eval "DEFAULT_$LINE" | |
5096 | else | |
5097 | no_cache=1 | |
5098 | fi | |
5099 | ||
5100 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5101 | |
e6cc62c6 | 5102 | fi; |
10f2d63a VZ |
5103 | |
5104 | eval "$ac_cv_use_wxprintfv" | |
5105 | if test "$no_cache" != 1; then | |
5106 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5107 | fi | |
5108 | ||
5109 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5110 | echo "$as_me:$LINENO: result: yes" >&5 |
5111 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5112 | else |
e6cc62c6 VS |
5113 | echo "$as_me:$LINENO: result: no" >&5 |
5114 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5115 | fi |
e6cc62c6 | 5116 | |
10f2d63a | 5117 | |
5005acfe | 5118 | enablestring= |
e6cc62c6 VS |
5119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5120 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5121 | no_cache=0 |
5122 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5123 | if test "${enable_std_iostreams+set}" = set; then | |
5124 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5125 | |
10f2d63a VZ |
5126 | if test "$enableval" = yes; then |
5127 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5128 | else | |
5129 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5130 | fi | |
e6cc62c6 | 5131 | |
10f2d63a | 5132 | else |
e6cc62c6 | 5133 | |
10f2d63a VZ |
5134 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5135 | if test "x$LINE" != x ; then | |
5136 | eval "DEFAULT_$LINE" | |
5137 | else | |
5138 | no_cache=1 | |
5139 | fi | |
5140 | ||
5141 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5142 | |
e6cc62c6 | 5143 | fi; |
10f2d63a VZ |
5144 | |
5145 | eval "$ac_cv_use_std_iostreams" | |
5146 | if test "$no_cache" != 1; then | |
5147 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5148 | fi | |
5149 | ||
5150 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5151 | echo "$as_me:$LINENO: result: yes" >&5 |
5152 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5153 | else |
e6cc62c6 VS |
5154 | echo "$as_me:$LINENO: result: no" >&5 |
5155 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5156 | fi |
e6cc62c6 | 5157 | |
10f2d63a | 5158 | |
5005acfe | 5159 | enablestring= |
e6cc62c6 VS |
5160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5161 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5162 | no_cache=0 |
5163 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5164 | if test "${enable_filesystem+set}" = set; then | |
5165 | enableval="$enable_filesystem" | |
e6cc62c6 | 5166 | |
24528b0c VS |
5167 | if test "$enableval" = yes; then |
5168 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5169 | else | |
5170 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5171 | fi | |
e6cc62c6 | 5172 | |
24528b0c | 5173 | else |
e6cc62c6 | 5174 | |
24528b0c VS |
5175 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5176 | if test "x$LINE" != x ; then | |
5177 | eval "DEFAULT_$LINE" | |
5178 | else | |
5179 | no_cache=1 | |
5180 | fi | |
5181 | ||
5182 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5183 | |
e6cc62c6 | 5184 | fi; |
24528b0c VS |
5185 | |
5186 | eval "$ac_cv_use_filesystem" | |
5187 | if test "$no_cache" != 1; then | |
5188 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5189 | fi | |
5190 | ||
5191 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5192 | echo "$as_me:$LINENO: result: yes" >&5 |
5193 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5194 | else |
e6cc62c6 VS |
5195 | echo "$as_me:$LINENO: result: no" >&5 |
5196 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5197 | fi |
e6cc62c6 | 5198 | |
24528b0c | 5199 | |
5005acfe | 5200 | enablestring= |
e6cc62c6 VS |
5201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5202 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5203 | no_cache=0 |
5204 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5205 | if test "${enable_fs_inet+set}" = set; then | |
5206 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5207 | |
10f2d63a VZ |
5208 | if test "$enableval" = yes; then |
5209 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5210 | else | |
5211 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5212 | fi | |
e6cc62c6 | 5213 | |
10f2d63a | 5214 | else |
e6cc62c6 | 5215 | |
10f2d63a VZ |
5216 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5217 | if test "x$LINE" != x ; then | |
5218 | eval "DEFAULT_$LINE" | |
5219 | else | |
5220 | no_cache=1 | |
5221 | fi | |
5222 | ||
5223 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5224 | |
e6cc62c6 | 5225 | fi; |
10f2d63a VZ |
5226 | |
5227 | eval "$ac_cv_use_fs_inet" | |
5228 | if test "$no_cache" != 1; then | |
5229 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5230 | fi | |
5231 | ||
5232 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5233 | echo "$as_me:$LINENO: result: yes" >&5 |
5234 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5235 | else |
e6cc62c6 VS |
5236 | echo "$as_me:$LINENO: result: no" >&5 |
5237 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5238 | fi |
e6cc62c6 | 5239 | |
10f2d63a | 5240 | |
5005acfe | 5241 | enablestring= |
e6cc62c6 VS |
5242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5243 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5244 | no_cache=0 |
5245 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5246 | if test "${enable_fs_zip+set}" = set; then | |
5247 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5248 | |
10f2d63a VZ |
5249 | if test "$enableval" = yes; then |
5250 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5251 | else | |
5252 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5253 | fi | |
e6cc62c6 | 5254 | |
10f2d63a | 5255 | else |
e6cc62c6 | 5256 | |
10f2d63a VZ |
5257 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5258 | if test "x$LINE" != x ; then | |
5259 | eval "DEFAULT_$LINE" | |
5260 | else | |
5261 | no_cache=1 | |
5262 | fi | |
5263 | ||
5264 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5265 | |
e6cc62c6 | 5266 | fi; |
10f2d63a VZ |
5267 | |
5268 | eval "$ac_cv_use_fs_zip" | |
5269 | if test "$no_cache" != 1; then | |
5270 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5271 | fi | |
5272 | ||
5273 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5274 | echo "$as_me:$LINENO: result: yes" >&5 |
5275 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5276 | else |
e6cc62c6 VS |
5277 | echo "$as_me:$LINENO: result: no" >&5 |
5278 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5279 | fi |
e6cc62c6 | 5280 | |
10f2d63a | 5281 | |
5005acfe | 5282 | enablestring= |
e6cc62c6 VS |
5283 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5284 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5285 | no_cache=0 |
5286 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5287 | if test "${enable_zipstream+set}" = set; then | |
5288 | enableval="$enable_zipstream" | |
e6cc62c6 | 5289 | |
10f2d63a VZ |
5290 | if test "$enableval" = yes; then |
5291 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5292 | else | |
5293 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5294 | fi | |
e6cc62c6 | 5295 | |
10f2d63a | 5296 | else |
e6cc62c6 | 5297 | |
10f2d63a VZ |
5298 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5299 | if test "x$LINE" != x ; then | |
5300 | eval "DEFAULT_$LINE" | |
5301 | else | |
5302 | no_cache=1 | |
5303 | fi | |
5304 | ||
5305 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5306 | |
e6cc62c6 | 5307 | fi; |
10f2d63a VZ |
5308 | |
5309 | eval "$ac_cv_use_zipstream" | |
5310 | if test "$no_cache" != 1; then | |
5311 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5312 | fi | |
5313 | ||
5314 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5315 | echo "$as_me:$LINENO: result: yes" >&5 |
5316 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5317 | else |
e6cc62c6 VS |
5318 | echo "$as_me:$LINENO: result: no" >&5 |
5319 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5320 | fi |
e6cc62c6 | 5321 | |
8284b0c5 | 5322 | |
52127426 | 5323 | |
5005acfe | 5324 | enablestring= |
e6cc62c6 VS |
5325 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5326 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5327 | no_cache=0 |
5328 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5329 | if test "${enable_catch_segvs+set}" = set; then | |
5330 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5331 | |
eb4efbdc VZ |
5332 | if test "$enableval" = yes; then |
5333 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5334 | else | |
5335 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5336 | fi | |
e6cc62c6 | 5337 | |
eb4efbdc | 5338 | else |
e6cc62c6 | 5339 | |
eb4efbdc VZ |
5340 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5341 | if test "x$LINE" != x ; then | |
5342 | eval "DEFAULT_$LINE" | |
5343 | else | |
5344 | no_cache=1 | |
5345 | fi | |
5346 | ||
5347 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5348 | |
e6cc62c6 | 5349 | fi; |
eb4efbdc VZ |
5350 | |
5351 | eval "$ac_cv_use_catch_segvs" | |
5352 | if test "$no_cache" != 1; then | |
5353 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5354 | fi | |
5355 | ||
5356 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5357 | echo "$as_me:$LINENO: result: yes" >&5 |
5358 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5359 | else |
e6cc62c6 VS |
5360 | echo "$as_me:$LINENO: result: no" >&5 |
5361 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5362 | fi |
e6cc62c6 | 5363 | |
eb4efbdc | 5364 | |
5005acfe | 5365 | enablestring= |
e6cc62c6 VS |
5366 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5367 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5368 | no_cache=0 |
5369 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5370 | if test "${enable_snglinst+set}" = set; then | |
5371 | enableval="$enable_snglinst" | |
e6cc62c6 | 5372 | |
4f3c5f06 VZ |
5373 | if test "$enableval" = yes; then |
5374 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5375 | else | |
5376 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5377 | fi | |
e6cc62c6 | 5378 | |
4f3c5f06 | 5379 | else |
e6cc62c6 | 5380 | |
4f3c5f06 VZ |
5381 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5382 | if test "x$LINE" != x ; then | |
5383 | eval "DEFAULT_$LINE" | |
5384 | else | |
5385 | no_cache=1 | |
5386 | fi | |
5387 | ||
5388 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5389 | |
e6cc62c6 | 5390 | fi; |
4f3c5f06 VZ |
5391 | |
5392 | eval "$ac_cv_use_snglinst" | |
5393 | if test "$no_cache" != 1; then | |
5394 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5395 | fi | |
5396 | ||
5397 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5398 | echo "$as_me:$LINENO: result: yes" >&5 |
5399 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5400 | else |
e6cc62c6 VS |
5401 | echo "$as_me:$LINENO: result: no" >&5 |
5402 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5403 | fi |
e6cc62c6 | 5404 | |
52127426 | 5405 | |
8284b0c5 | 5406 | |
5005acfe | 5407 | enablestring= |
e6cc62c6 VS |
5408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5409 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5410 | no_cache=0 |
5411 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5412 | if test "${enable_mimetype+set}" = set; then | |
5413 | enableval="$enable_mimetype" | |
e6cc62c6 | 5414 | |
1e6feb95 VZ |
5415 | if test "$enableval" = yes; then |
5416 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5417 | else | |
5418 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5419 | fi | |
e6cc62c6 | 5420 | |
1e6feb95 | 5421 | else |
e6cc62c6 | 5422 | |
1e6feb95 VZ |
5423 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5424 | if test "x$LINE" != x ; then | |
5425 | eval "DEFAULT_$LINE" | |
5426 | else | |
5427 | no_cache=1 | |
5428 | fi | |
5429 | ||
5430 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5431 | |
e6cc62c6 | 5432 | fi; |
1e6feb95 VZ |
5433 | |
5434 | eval "$ac_cv_use_mimetype" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5440 | echo "$as_me:$LINENO: result: yes" >&5 |
5441 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5442 | else |
e6cc62c6 VS |
5443 | echo "$as_me:$LINENO: result: no" >&5 |
5444 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5445 | fi |
e6cc62c6 | 5446 | |
1e6feb95 | 5447 | |
5005acfe | 5448 | enablestring= |
e6cc62c6 VS |
5449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5450 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5451 | no_cache=0 |
5452 | # Check whether --enable-system_options or --disable-system_options was given. | |
5453 | if test "${enable_system_options+set}" = set; then | |
5454 | enableval="$enable_system_options" | |
e6cc62c6 | 5455 | |
3e44f09d VZ |
5456 | if test "$enableval" = yes; then |
5457 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5458 | else | |
5459 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5460 | fi | |
e6cc62c6 | 5461 | |
3e44f09d | 5462 | else |
e6cc62c6 | 5463 | |
3e44f09d VZ |
5464 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5465 | if test "x$LINE" != x ; then | |
5466 | eval "DEFAULT_$LINE" | |
5467 | else | |
5468 | no_cache=1 | |
5469 | fi | |
5470 | ||
5471 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5472 | |
e6cc62c6 | 5473 | fi; |
3e44f09d VZ |
5474 | |
5475 | eval "$ac_cv_use_system_options" | |
5476 | if test "$no_cache" != 1; then | |
5477 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5478 | fi | |
5479 | ||
5480 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5481 | echo "$as_me:$LINENO: result: yes" >&5 |
5482 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5483 | else |
e6cc62c6 VS |
5484 | echo "$as_me:$LINENO: result: no" >&5 |
5485 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5486 | fi |
e6cc62c6 | 5487 | |
8284b0c5 | 5488 | |
52127426 | 5489 | |
5005acfe | 5490 | enablestring= |
e6cc62c6 VS |
5491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5492 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5493 | no_cache=0 |
5494 | # Check whether --enable-url or --disable-url was given. | |
5495 | if test "${enable_url+set}" = set; then | |
5496 | enableval="$enable_url" | |
e6cc62c6 | 5497 | |
4cdb0ab0 VS |
5498 | if test "$enableval" = yes; then |
5499 | ac_cv_use_url='wxUSE_URL=yes' | |
5500 | else | |
5501 | ac_cv_use_url='wxUSE_URL=no' | |
5502 | fi | |
e6cc62c6 | 5503 | |
4cdb0ab0 | 5504 | else |
e6cc62c6 | 5505 | |
4cdb0ab0 VS |
5506 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5507 | if test "x$LINE" != x ; then | |
5508 | eval "DEFAULT_$LINE" | |
5509 | else | |
5510 | no_cache=1 | |
5511 | fi | |
5512 | ||
5513 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5514 | |
e6cc62c6 | 5515 | fi; |
4cdb0ab0 VS |
5516 | |
5517 | eval "$ac_cv_use_url" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5523 | echo "$as_me:$LINENO: result: yes" >&5 |
5524 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5525 | else |
e6cc62c6 VS |
5526 | echo "$as_me:$LINENO: result: no" >&5 |
5527 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5528 | fi |
e6cc62c6 | 5529 | |
4cdb0ab0 | 5530 | |
5005acfe | 5531 | enablestring= |
e6cc62c6 VS |
5532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5533 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5534 | no_cache=0 |
5535 | # Check whether --enable-protocol or --disable-protocol was given. | |
5536 | if test "${enable_protocol+set}" = set; then | |
5537 | enableval="$enable_protocol" | |
e6cc62c6 | 5538 | |
4cdb0ab0 VS |
5539 | if test "$enableval" = yes; then |
5540 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5541 | else | |
5542 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5543 | fi | |
e6cc62c6 | 5544 | |
4cdb0ab0 | 5545 | else |
e6cc62c6 | 5546 | |
4cdb0ab0 VS |
5547 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5548 | if test "x$LINE" != x ; then | |
5549 | eval "DEFAULT_$LINE" | |
5550 | else | |
5551 | no_cache=1 | |
5552 | fi | |
5553 | ||
5554 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5555 | |
e6cc62c6 | 5556 | fi; |
4cdb0ab0 VS |
5557 | |
5558 | eval "$ac_cv_use_protocol" | |
5559 | if test "$no_cache" != 1; then | |
5560 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5561 | fi | |
5562 | ||
5563 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5564 | echo "$as_me:$LINENO: result: yes" >&5 |
5565 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5566 | else |
e6cc62c6 VS |
5567 | echo "$as_me:$LINENO: result: no" >&5 |
5568 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5569 | fi |
e6cc62c6 | 5570 | |
4cdb0ab0 | 5571 | |
5005acfe | 5572 | enablestring= |
e6cc62c6 VS |
5573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5574 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5575 | no_cache=0 |
5576 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5577 | if test "${enable_protocol_http+set}" = set; then | |
5578 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5579 | |
4cdb0ab0 VS |
5580 | if test "$enableval" = yes; then |
5581 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5582 | else | |
5583 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5584 | fi | |
e6cc62c6 | 5585 | |
4cdb0ab0 | 5586 | else |
e6cc62c6 | 5587 | |
4cdb0ab0 VS |
5588 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5589 | if test "x$LINE" != x ; then | |
5590 | eval "DEFAULT_$LINE" | |
5591 | else | |
5592 | no_cache=1 | |
5593 | fi | |
5594 | ||
5595 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5596 | |
e6cc62c6 | 5597 | fi; |
4cdb0ab0 VS |
5598 | |
5599 | eval "$ac_cv_use_protocol_http" | |
5600 | if test "$no_cache" != 1; then | |
5601 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5602 | fi | |
5603 | ||
5604 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5605 | echo "$as_me:$LINENO: result: yes" >&5 |
5606 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5607 | else |
e6cc62c6 VS |
5608 | echo "$as_me:$LINENO: result: no" >&5 |
5609 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5610 | fi |
e6cc62c6 | 5611 | |
4cdb0ab0 | 5612 | |
5005acfe | 5613 | enablestring= |
e6cc62c6 VS |
5614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5615 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5616 | no_cache=0 |
5617 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5618 | if test "${enable_protocol_ftp+set}" = set; then | |
5619 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5620 | |
4cdb0ab0 VS |
5621 | if test "$enableval" = yes; then |
5622 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5623 | else | |
5624 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5625 | fi | |
e6cc62c6 | 5626 | |
4cdb0ab0 | 5627 | else |
e6cc62c6 | 5628 | |
4cdb0ab0 VS |
5629 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5630 | if test "x$LINE" != x ; then | |
5631 | eval "DEFAULT_$LINE" | |
5632 | else | |
5633 | no_cache=1 | |
5634 | fi | |
5635 | ||
5636 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5637 | |
e6cc62c6 | 5638 | fi; |
4cdb0ab0 VS |
5639 | |
5640 | eval "$ac_cv_use_protocol_ftp" | |
5641 | if test "$no_cache" != 1; then | |
5642 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5643 | fi | |
5644 | ||
5645 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5646 | echo "$as_me:$LINENO: result: yes" >&5 |
5647 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5648 | else |
e6cc62c6 VS |
5649 | echo "$as_me:$LINENO: result: no" >&5 |
5650 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5651 | fi |
e6cc62c6 | 5652 | |
4cdb0ab0 | 5653 | |
5005acfe | 5654 | enablestring= |
e6cc62c6 VS |
5655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5656 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5657 | no_cache=0 |
5658 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5659 | if test "${enable_protocol_file+set}" = set; then | |
5660 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5661 | |
4cdb0ab0 VS |
5662 | if test "$enableval" = yes; then |
5663 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5664 | else | |
5665 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5666 | fi | |
e6cc62c6 | 5667 | |
4cdb0ab0 | 5668 | else |
e6cc62c6 | 5669 | |
4cdb0ab0 VS |
5670 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5671 | if test "x$LINE" != x ; then | |
5672 | eval "DEFAULT_$LINE" | |
5673 | else | |
5674 | no_cache=1 | |
5675 | fi | |
5676 | ||
5677 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5678 | |
e6cc62c6 | 5679 | fi; |
4cdb0ab0 VS |
5680 | |
5681 | eval "$ac_cv_use_protocol_file" | |
5682 | if test "$no_cache" != 1; then | |
5683 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5684 | fi | |
5685 | ||
5686 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5687 | echo "$as_me:$LINENO: result: yes" >&5 |
5688 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5689 | else |
e6cc62c6 VS |
5690 | echo "$as_me:$LINENO: result: no" >&5 |
5691 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5692 | fi |
e6cc62c6 | 5693 | |
52127426 | 5694 | |
8284b0c5 MB |
5695 | |
5696 | ||
5697 | ||
5005acfe | 5698 | enablestring= |
e6cc62c6 VS |
5699 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5700 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5701 | no_cache=0 |
5702 | # Check whether --enable-threads or --disable-threads was given. | |
5703 | if test "${enable_threads+set}" = set; then | |
5704 | enableval="$enable_threads" | |
e6cc62c6 | 5705 | |
10f2d63a VZ |
5706 | if test "$enableval" = yes; then |
5707 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5708 | else | |
5709 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5710 | fi | |
e6cc62c6 | 5711 | |
10f2d63a | 5712 | else |
e6cc62c6 | 5713 | |
10f2d63a VZ |
5714 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5715 | if test "x$LINE" != x ; then | |
5716 | eval "DEFAULT_$LINE" | |
5717 | else | |
5718 | no_cache=1 | |
5719 | fi | |
5720 | ||
5721 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5722 | |
e6cc62c6 | 5723 | fi; |
10f2d63a VZ |
5724 | |
5725 | eval "$ac_cv_use_threads" | |
5726 | if test "$no_cache" != 1; then | |
5727 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5728 | fi | |
5729 | ||
5730 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5731 | echo "$as_me:$LINENO: result: yes" >&5 |
5732 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5733 | else |
e6cc62c6 VS |
5734 | echo "$as_me:$LINENO: result: no" >&5 |
5735 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5736 | fi |
e6cc62c6 | 5737 | |
10f2d63a | 5738 | |
b12915c1 VZ |
5739 | if test "$wxUSE_GUI" = "yes"; then |
5740 | ||
8284b0c5 MB |
5741 | |
5742 | ||
5005acfe | 5743 | enablestring= |
e6cc62c6 VS |
5744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5745 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5746 | no_cache=0 |
5747 | # Check whether --enable-docview or --disable-docview was given. | |
5748 | if test "${enable_docview+set}" = set; then | |
5749 | enableval="$enable_docview" | |
e6cc62c6 | 5750 | |
10f2d63a VZ |
5751 | if test "$enableval" = yes; then |
5752 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5753 | else | |
5754 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5755 | fi | |
e6cc62c6 | 5756 | |
10f2d63a | 5757 | else |
e6cc62c6 | 5758 | |
10f2d63a VZ |
5759 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5760 | if test "x$LINE" != x ; then | |
5761 | eval "DEFAULT_$LINE" | |
5762 | else | |
5763 | no_cache=1 | |
5764 | fi | |
5765 | ||
5766 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5767 | |
e6cc62c6 | 5768 | fi; |
10f2d63a VZ |
5769 | |
5770 | eval "$ac_cv_use_docview" | |
5771 | if test "$no_cache" != 1; then | |
5772 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5773 | fi | |
5774 | ||
5775 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5776 | echo "$as_me:$LINENO: result: yes" >&5 |
5777 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5778 | else |
e6cc62c6 VS |
5779 | echo "$as_me:$LINENO: result: no" >&5 |
5780 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5781 | fi |
e6cc62c6 | 5782 | |
10f2d63a | 5783 | |
5005acfe | 5784 | enablestring= |
e6cc62c6 VS |
5785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5786 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5787 | no_cache=0 |
5788 | # Check whether --enable-help or --disable-help was given. | |
5789 | if test "${enable_help+set}" = set; then | |
5790 | enableval="$enable_help" | |
e6cc62c6 | 5791 | |
10f2d63a VZ |
5792 | if test "$enableval" = yes; then |
5793 | ac_cv_use_help='wxUSE_HELP=yes' | |
5794 | else | |
5795 | ac_cv_use_help='wxUSE_HELP=no' | |
5796 | fi | |
e6cc62c6 | 5797 | |
10f2d63a | 5798 | else |
e6cc62c6 | 5799 | |
10f2d63a VZ |
5800 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5801 | if test "x$LINE" != x ; then | |
5802 | eval "DEFAULT_$LINE" | |
5803 | else | |
5804 | no_cache=1 | |
5805 | fi | |
5806 | ||
5807 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5808 | |
e6cc62c6 | 5809 | fi; |
10f2d63a VZ |
5810 | |
5811 | eval "$ac_cv_use_help" | |
5812 | if test "$no_cache" != 1; then | |
5813 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5814 | fi | |
5815 | ||
5816 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5817 | echo "$as_me:$LINENO: result: yes" >&5 |
5818 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5819 | else |
e6cc62c6 VS |
5820 | echo "$as_me:$LINENO: result: no" >&5 |
5821 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5822 | fi |
e6cc62c6 | 5823 | |
10f2d63a | 5824 | |
5005acfe | 5825 | enablestring= |
e6cc62c6 VS |
5826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5827 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5828 | no_cache=0 |
5829 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5830 | if test "${enable_mshtmlhelp+set}" = set; then | |
5831 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5832 | |
29fd3c0c VS |
5833 | if test "$enableval" = yes; then |
5834 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5835 | else | |
5836 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5837 | fi | |
e6cc62c6 | 5838 | |
29fd3c0c | 5839 | else |
e6cc62c6 | 5840 | |
29fd3c0c VS |
5841 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5842 | if test "x$LINE" != x ; then | |
5843 | eval "DEFAULT_$LINE" | |
5844 | else | |
5845 | no_cache=1 | |
5846 | fi | |
5847 | ||
5848 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5849 | |
e6cc62c6 | 5850 | fi; |
29fd3c0c VS |
5851 | |
5852 | eval "$ac_cv_use_mshtmlhelp" | |
5853 | if test "$no_cache" != 1; then | |
5854 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5855 | fi | |
5856 | ||
5857 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5858 | echo "$as_me:$LINENO: result: yes" >&5 |
5859 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5860 | else |
e6cc62c6 VS |
5861 | echo "$as_me:$LINENO: result: no" >&5 |
5862 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5863 | fi |
e6cc62c6 | 5864 | |
29fd3c0c | 5865 | |
5005acfe | 5866 | enablestring= |
e6cc62c6 VS |
5867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5868 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5869 | no_cache=0 |
5870 | # Check whether --enable-html or --disable-html was given. | |
5871 | if test "${enable_html+set}" = set; then | |
5872 | enableval="$enable_html" | |
e6cc62c6 | 5873 | |
3379ed37 VZ |
5874 | if test "$enableval" = yes; then |
5875 | ac_cv_use_html='wxUSE_HTML=yes' | |
5876 | else | |
5877 | ac_cv_use_html='wxUSE_HTML=no' | |
5878 | fi | |
e6cc62c6 | 5879 | |
3379ed37 | 5880 | else |
e6cc62c6 | 5881 | |
3379ed37 VZ |
5882 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5890 | |
e6cc62c6 | 5891 | fi; |
3379ed37 VZ |
5892 | |
5893 | eval "$ac_cv_use_html" | |
5894 | if test "$no_cache" != 1; then | |
5895 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5896 | fi | |
5897 | ||
5898 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5899 | echo "$as_me:$LINENO: result: yes" >&5 |
5900 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5901 | else |
e6cc62c6 VS |
5902 | echo "$as_me:$LINENO: result: no" >&5 |
5903 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5904 | fi |
e6cc62c6 | 5905 | |
3379ed37 | 5906 | |
5005acfe | 5907 | enablestring= |
e6cc62c6 VS |
5908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5909 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5910 | no_cache=0 |
5911 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5912 | if test "${enable_htmlhelp+set}" = set; then | |
5913 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5914 | |
3379ed37 VZ |
5915 | if test "$enableval" = yes; then |
5916 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5917 | else | |
5918 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5919 | fi | |
e6cc62c6 | 5920 | |
3379ed37 | 5921 | else |
e6cc62c6 | 5922 | |
3379ed37 VZ |
5923 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5924 | if test "x$LINE" != x ; then | |
5925 | eval "DEFAULT_$LINE" | |
5926 | else | |
5927 | no_cache=1 | |
5928 | fi | |
5929 | ||
5930 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5931 | |
e6cc62c6 | 5932 | fi; |
3379ed37 VZ |
5933 | |
5934 | eval "$ac_cv_use_htmlhelp" | |
5935 | if test "$no_cache" != 1; then | |
5936 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5937 | fi | |
5938 | ||
5939 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5940 | echo "$as_me:$LINENO: result: yes" >&5 |
5941 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5942 | else |
e6cc62c6 VS |
5943 | echo "$as_me:$LINENO: result: no" >&5 |
5944 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5945 | fi |
e6cc62c6 | 5946 | |
3379ed37 | 5947 | |
5005acfe | 5948 | enablestring= |
e6cc62c6 VS |
5949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5950 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5951 | no_cache=0 |
5952 | # Check whether --enable-constraints or --disable-constraints was given. | |
5953 | if test "${enable_constraints+set}" = set; then | |
5954 | enableval="$enable_constraints" | |
e6cc62c6 | 5955 | |
10f2d63a VZ |
5956 | if test "$enableval" = yes; then |
5957 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5958 | else | |
5959 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5960 | fi | |
e6cc62c6 | 5961 | |
10f2d63a | 5962 | else |
e6cc62c6 | 5963 | |
10f2d63a VZ |
5964 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5965 | if test "x$LINE" != x ; then | |
5966 | eval "DEFAULT_$LINE" | |
5967 | else | |
5968 | no_cache=1 | |
5969 | fi | |
5970 | ||
5971 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5972 | |
e6cc62c6 | 5973 | fi; |
10f2d63a VZ |
5974 | |
5975 | eval "$ac_cv_use_constraints" | |
5976 | if test "$no_cache" != 1; then | |
5977 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5978 | fi | |
5979 | ||
5980 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5981 | echo "$as_me:$LINENO: result: yes" >&5 |
5982 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5983 | else |
e6cc62c6 VS |
5984 | echo "$as_me:$LINENO: result: no" >&5 |
5985 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5986 | fi |
e6cc62c6 | 5987 | |
10f2d63a | 5988 | |
5005acfe | 5989 | enablestring= |
e6cc62c6 VS |
5990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5991 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5992 | no_cache=0 |
5993 | # Check whether --enable-printarch or --disable-printarch was given. | |
5994 | if test "${enable_printarch+set}" = set; then | |
5995 | enableval="$enable_printarch" | |
e6cc62c6 | 5996 | |
10f2d63a VZ |
5997 | if test "$enableval" = yes; then |
5998 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5999 | else | |
6000 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6001 | fi | |
e6cc62c6 | 6002 | |
10f2d63a | 6003 | else |
e6cc62c6 | 6004 | |
10f2d63a VZ |
6005 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6006 | if test "x$LINE" != x ; then | |
6007 | eval "DEFAULT_$LINE" | |
6008 | else | |
6009 | no_cache=1 | |
6010 | fi | |
6011 | ||
6012 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6013 | |
e6cc62c6 | 6014 | fi; |
10f2d63a VZ |
6015 | |
6016 | eval "$ac_cv_use_printarch" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6022 | echo "$as_me:$LINENO: result: yes" >&5 |
6023 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6024 | else |
e6cc62c6 VS |
6025 | echo "$as_me:$LINENO: result: no" >&5 |
6026 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6027 | fi |
e6cc62c6 | 6028 | |
10f2d63a | 6029 | |
5005acfe | 6030 | enablestring= |
e6cc62c6 VS |
6031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6032 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6033 | no_cache=0 |
6034 | # Check whether --enable-mdi or --disable-mdi was given. | |
6035 | if test "${enable_mdi+set}" = set; then | |
6036 | enableval="$enable_mdi" | |
e6cc62c6 | 6037 | |
10f2d63a VZ |
6038 | if test "$enableval" = yes; then |
6039 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6040 | else | |
6041 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6042 | fi | |
e6cc62c6 | 6043 | |
10f2d63a | 6044 | else |
e6cc62c6 | 6045 | |
10f2d63a VZ |
6046 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6047 | if test "x$LINE" != x ; then | |
6048 | eval "DEFAULT_$LINE" | |
6049 | else | |
6050 | no_cache=1 | |
6051 | fi | |
6052 | ||
6053 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6054 | |
e6cc62c6 | 6055 | fi; |
10f2d63a VZ |
6056 | |
6057 | eval "$ac_cv_use_mdi" | |
6058 | if test "$no_cache" != 1; then | |
6059 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6060 | fi | |
6061 | ||
6062 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6063 | echo "$as_me:$LINENO: result: yes" >&5 |
6064 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6065 | else |
e6cc62c6 VS |
6066 | echo "$as_me:$LINENO: result: no" >&5 |
6067 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6068 | fi |
e6cc62c6 | 6069 | |
698dcdb6 | 6070 | |
5005acfe | 6071 | enablestring= |
e6cc62c6 VS |
6072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6073 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6074 | no_cache=0 |
6075 | # Check whether --enable-loggui or --disable-loggui was given. | |
6076 | if test "${enable_loggui+set}" = set; then | |
6077 | enableval="$enable_loggui" | |
e6cc62c6 | 6078 | |
1e6feb95 VZ |
6079 | if test "$enableval" = yes; then |
6080 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6081 | else | |
6082 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6083 | fi | |
e6cc62c6 | 6084 | |
1e6feb95 | 6085 | else |
e6cc62c6 | 6086 | |
1e6feb95 VZ |
6087 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6088 | if test "x$LINE" != x ; then | |
6089 | eval "DEFAULT_$LINE" | |
6090 | else | |
6091 | no_cache=1 | |
6092 | fi | |
6093 | ||
6094 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6095 | |
e6cc62c6 | 6096 | fi; |
1e6feb95 VZ |
6097 | |
6098 | eval "$ac_cv_use_loggui" | |
6099 | if test "$no_cache" != 1; then | |
6100 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6101 | fi | |
6102 | ||
6103 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6104 | echo "$as_me:$LINENO: result: yes" >&5 |
6105 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6106 | else |
e6cc62c6 VS |
6107 | echo "$as_me:$LINENO: result: no" >&5 |
6108 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6109 | fi |
e6cc62c6 | 6110 | |
1e6feb95 | 6111 | |
5005acfe | 6112 | enablestring= |
e6cc62c6 VS |
6113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6114 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6115 | no_cache=0 |
6116 | # Check whether --enable-logwin or --disable-logwin was given. | |
6117 | if test "${enable_logwin+set}" = set; then | |
6118 | enableval="$enable_logwin" | |
e6cc62c6 | 6119 | |
1e6feb95 VZ |
6120 | if test "$enableval" = yes; then |
6121 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6122 | else | |
6123 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6124 | fi | |
e6cc62c6 | 6125 | |
1e6feb95 | 6126 | else |
e6cc62c6 | 6127 | |
1e6feb95 VZ |
6128 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6129 | if test "x$LINE" != x ; then | |
6130 | eval "DEFAULT_$LINE" | |
6131 | else | |
6132 | no_cache=1 | |
6133 | fi | |
6134 | ||
6135 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6136 | |
e6cc62c6 | 6137 | fi; |
1e6feb95 VZ |
6138 | |
6139 | eval "$ac_cv_use_logwin" | |
6140 | if test "$no_cache" != 1; then | |
6141 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6142 | fi | |
6143 | ||
6144 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6145 | echo "$as_me:$LINENO: result: yes" >&5 |
6146 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6147 | else |
e6cc62c6 VS |
6148 | echo "$as_me:$LINENO: result: no" >&5 |
6149 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6150 | fi |
e6cc62c6 | 6151 | |
1e6feb95 | 6152 | |
5005acfe | 6153 | enablestring= |
e6cc62c6 VS |
6154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6155 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6156 | no_cache=0 |
6157 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6158 | if test "${enable_logdialog+set}" = set; then | |
6159 | enableval="$enable_logdialog" | |
e6cc62c6 | 6160 | |
69d27ff7 MB |
6161 | if test "$enableval" = yes; then |
6162 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6163 | else | |
6164 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6165 | fi | |
e6cc62c6 | 6166 | |
69d27ff7 | 6167 | else |
e6cc62c6 | 6168 | |
69d27ff7 MB |
6169 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6170 | if test "x$LINE" != x ; then | |
6171 | eval "DEFAULT_$LINE" | |
6172 | else | |
6173 | no_cache=1 | |
6174 | fi | |
6175 | ||
6176 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6177 | |
e6cc62c6 | 6178 | fi; |
69d27ff7 MB |
6179 | |
6180 | eval "$ac_cv_use_logdialog" | |
6181 | if test "$no_cache" != 1; then | |
6182 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6183 | fi | |
6184 | ||
6185 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6186 | echo "$as_me:$LINENO: result: yes" >&5 |
6187 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6188 | else |
e6cc62c6 VS |
6189 | echo "$as_me:$LINENO: result: no" >&5 |
6190 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6191 | fi |
e6cc62c6 | 6192 | |
8284b0c5 | 6193 | |
52127426 | 6194 | |
5005acfe | 6195 | enablestring= |
e6cc62c6 VS |
6196 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6197 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6198 | no_cache=0 |
6199 | # Check whether --enable-postscript or --disable-postscript was given. | |
6200 | if test "${enable_postscript+set}" = set; then | |
6201 | enableval="$enable_postscript" | |
e6cc62c6 | 6202 | |
10f2d63a VZ |
6203 | if test "$enableval" = yes; then |
6204 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6205 | else | |
6206 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6207 | fi | |
e6cc62c6 | 6208 | |
10f2d63a | 6209 | else |
e6cc62c6 | 6210 | |
10f2d63a VZ |
6211 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6212 | if test "x$LINE" != x ; then | |
6213 | eval "DEFAULT_$LINE" | |
6214 | else | |
6215 | no_cache=1 | |
6216 | fi | |
6217 | ||
6218 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6219 | |
e6cc62c6 | 6220 | fi; |
10f2d63a VZ |
6221 | |
6222 | eval "$ac_cv_use_postscript" | |
6223 | if test "$no_cache" != 1; then | |
6224 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6225 | fi | |
6226 | ||
6227 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6228 | echo "$as_me:$LINENO: result: yes" >&5 |
6229 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6230 | else |
e6cc62c6 VS |
6231 | echo "$as_me:$LINENO: result: no" >&5 |
6232 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6233 | fi |
e6cc62c6 | 6234 | |
8284b0c5 MB |
6235 | |
6236 | ||
52127426 | 6237 | |
8284b0c5 | 6238 | |
5005acfe | 6239 | enablestring= |
e6cc62c6 VS |
6240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6241 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6242 | no_cache=0 |
3c907f20 VZ |
6243 | # Check whether --enable-prologio or --disable-prologio was given. |
6244 | if test "${enable_prologio+set}" = set; then | |
6245 | enableval="$enable_prologio" | |
e6cc62c6 | 6246 | |
10f2d63a | 6247 | if test "$enableval" = yes; then |
3c907f20 | 6248 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6249 | else |
3c907f20 | 6250 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6251 | fi |
e6cc62c6 | 6252 | |
10f2d63a | 6253 | else |
e6cc62c6 | 6254 | |
3c907f20 | 6255 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6256 | if test "x$LINE" != x ; then |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
3c907f20 | 6262 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6263 | |
e6cc62c6 | 6264 | fi; |
10f2d63a | 6265 | |
3c907f20 | 6266 | eval "$ac_cv_use_prologio" |
10f2d63a | 6267 | if test "$no_cache" != 1; then |
3c907f20 | 6268 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6269 | fi |
6270 | ||
3c907f20 | 6271 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6272 | echo "$as_me:$LINENO: result: yes" >&5 |
6273 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6274 | else |
e6cc62c6 VS |
6275 | echo "$as_me:$LINENO: result: no" >&5 |
6276 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6277 | fi |
e6cc62c6 | 6278 | |
8284b0c5 | 6279 | |
5005acfe | 6280 | enablestring= |
e6cc62c6 VS |
6281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6282 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6283 | no_cache=0 |
3c907f20 VZ |
6284 | # Check whether --enable-resources or --disable-resources was given. |
6285 | if test "${enable_resources+set}" = set; then | |
6286 | enableval="$enable_resources" | |
e6cc62c6 | 6287 | |
10f2d63a | 6288 | if test "$enableval" = yes; then |
3c907f20 | 6289 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6290 | else |
3c907f20 | 6291 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6292 | fi |
e6cc62c6 | 6293 | |
10f2d63a | 6294 | else |
e6cc62c6 | 6295 | |
3c907f20 | 6296 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6297 | if test "x$LINE" != x ; then |
6298 | eval "DEFAULT_$LINE" | |
6299 | else | |
6300 | no_cache=1 | |
6301 | fi | |
6302 | ||
3c907f20 | 6303 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6304 | |
e6cc62c6 | 6305 | fi; |
10f2d63a | 6306 | |
3c907f20 | 6307 | eval "$ac_cv_use_resources" |
10f2d63a | 6308 | if test "$no_cache" != 1; then |
3c907f20 | 6309 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6310 | fi |
6311 | ||
3c907f20 | 6312 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6313 | echo "$as_me:$LINENO: result: yes" >&5 |
6314 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6315 | else |
e6cc62c6 VS |
6316 | echo "$as_me:$LINENO: result: no" >&5 |
6317 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6318 | fi |
e6cc62c6 | 6319 | |
8284b0c5 MB |
6320 | |
6321 | ||
52127426 | 6322 | |
5005acfe | 6323 | enablestring= |
e6cc62c6 VS |
6324 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6325 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6326 | no_cache=0 |
6327 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6328 | if test "${enable_clipboard+set}" = set; then | |
6329 | enableval="$enable_clipboard" | |
e6cc62c6 | 6330 | |
10f2d63a VZ |
6331 | if test "$enableval" = yes; then |
6332 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6333 | else | |
6334 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6335 | fi | |
e6cc62c6 | 6336 | |
10f2d63a | 6337 | else |
e6cc62c6 | 6338 | |
10f2d63a VZ |
6339 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6340 | if test "x$LINE" != x ; then | |
6341 | eval "DEFAULT_$LINE" | |
6342 | else | |
6343 | no_cache=1 | |
6344 | fi | |
6345 | ||
6346 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6347 | |
e6cc62c6 | 6348 | fi; |
10f2d63a VZ |
6349 | |
6350 | eval "$ac_cv_use_clipboard" | |
6351 | if test "$no_cache" != 1; then | |
6352 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6353 | fi | |
6354 | ||
6355 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6356 | echo "$as_me:$LINENO: result: yes" >&5 |
6357 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6358 | else |
e6cc62c6 VS |
6359 | echo "$as_me:$LINENO: result: no" >&5 |
6360 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6361 | fi |
e6cc62c6 | 6362 | |
10f2d63a | 6363 | |
5005acfe | 6364 | enablestring= |
e6cc62c6 VS |
6365 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6366 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6367 | no_cache=0 |
6368 | # Check whether --enable-dnd or --disable-dnd was given. | |
6369 | if test "${enable_dnd+set}" = set; then | |
6370 | enableval="$enable_dnd" | |
e6cc62c6 | 6371 | |
10f2d63a VZ |
6372 | if test "$enableval" = yes; then |
6373 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6374 | else | |
6375 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6376 | fi | |
e6cc62c6 | 6377 | |
10f2d63a | 6378 | else |
e6cc62c6 | 6379 | |
10f2d63a VZ |
6380 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6381 | if test "x$LINE" != x ; then | |
6382 | eval "DEFAULT_$LINE" | |
6383 | else | |
6384 | no_cache=1 | |
6385 | fi | |
6386 | ||
6387 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6388 | |
e6cc62c6 | 6389 | fi; |
10f2d63a VZ |
6390 | |
6391 | eval "$ac_cv_use_dnd" | |
6392 | if test "$no_cache" != 1; then | |
6393 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6394 | fi | |
6395 | ||
6396 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6397 | echo "$as_me:$LINENO: result: yes" >&5 |
6398 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6399 | else |
e6cc62c6 VS |
6400 | echo "$as_me:$LINENO: result: no" >&5 |
6401 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6402 | fi |
e6cc62c6 | 6403 | |
10f2d63a | 6404 | |
5005acfe | 6405 | enablestring= |
e6cc62c6 VS |
6406 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6407 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6408 | no_cache=0 |
6409 | # Check whether --enable-metafile or --disable-metafile was given. | |
6410 | if test "${enable_metafile+set}" = set; then | |
6411 | enableval="$enable_metafile" | |
e6cc62c6 | 6412 | |
b64f0a5f RL |
6413 | if test "$enableval" = yes; then |
6414 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6415 | else | |
6416 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6417 | fi | |
e6cc62c6 | 6418 | |
b64f0a5f | 6419 | else |
e6cc62c6 | 6420 | |
b64f0a5f RL |
6421 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6422 | if test "x$LINE" != x ; then | |
6423 | eval "DEFAULT_$LINE" | |
6424 | else | |
6425 | no_cache=1 | |
6426 | fi | |
6427 | ||
6428 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6429 | |
e6cc62c6 | 6430 | fi; |
b64f0a5f RL |
6431 | |
6432 | eval "$ac_cv_use_metafile" | |
6433 | if test "$no_cache" != 1; then | |
6434 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6435 | fi | |
6436 | ||
6437 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6438 | echo "$as_me:$LINENO: result: yes" >&5 |
6439 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6440 | else |
e6cc62c6 VS |
6441 | echo "$as_me:$LINENO: result: no" >&5 |
6442 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6443 | fi |
e6cc62c6 | 6444 | |
52127426 | 6445 | |
8284b0c5 | 6446 | |
52127426 | 6447 | |
8284b0c5 | 6448 | |
5005acfe | 6449 | enablestring= |
e6cc62c6 VS |
6450 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6451 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6452 | no_cache=0 |
6453 | # Check whether --enable-controls or --disable-controls was given. | |
6454 | if test "${enable_controls+set}" = set; then | |
6455 | enableval="$enable_controls" | |
e6cc62c6 | 6456 | |
10f2d63a VZ |
6457 | if test "$enableval" = yes; then |
6458 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6459 | else | |
6460 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6461 | fi | |
e6cc62c6 | 6462 | |
10f2d63a | 6463 | else |
e6cc62c6 | 6464 | |
10f2d63a VZ |
6465 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6466 | if test "x$LINE" != x ; then | |
6467 | eval "DEFAULT_$LINE" | |
6468 | else | |
6469 | no_cache=1 | |
6470 | fi | |
6471 | ||
6472 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6473 | |
e6cc62c6 | 6474 | fi; |
10f2d63a VZ |
6475 | |
6476 | eval "$ac_cv_use_controls" | |
6477 | if test "$no_cache" != 1; then | |
6478 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6479 | fi | |
6480 | ||
6481 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6482 | echo "$as_me:$LINENO: result: yes" >&5 |
6483 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6484 | else |
e6cc62c6 VS |
6485 | echo "$as_me:$LINENO: result: no" >&5 |
6486 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6487 | fi |
e6cc62c6 | 6488 | |
10f2d63a VZ |
6489 | |
6490 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6491 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6492 | DEFAULT_wxUSE_BMPBUTTON=yes |
6493 | DEFAULT_wxUSE_BUTTON=yes | |
6494 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6495 | DEFAULT_wxUSE_CARET=yes |
6496 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6497 | DEFAULT_wxUSE_CHECKBOX=yes |
6498 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6499 | DEFAULT_wxUSE_CHOICE=yes | |
6500 | DEFAULT_wxUSE_GAUGE=yes | |
6501 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6502 | DEFAULT_wxUSE_IMAGLIST=yes |
6503 | DEFAULT_wxUSE_LISTBOX=yes | |
6504 | DEFAULT_wxUSE_LISTCTRL=yes | |
6505 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6506 | DEFAULT_wxUSE_RADIOBOX=yes | |
6507 | DEFAULT_wxUSE_RADIOBTN=yes | |
6508 | DEFAULT_wxUSE_SASH=yes | |
6509 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6510 | DEFAULT_wxUSE_SLIDER=yes | |
6511 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6512 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6513 | DEFAULT_wxUSE_SPLITTER=yes |
6514 | DEFAULT_wxUSE_STATBMP=yes | |
6515 | DEFAULT_wxUSE_STATBOX=yes | |
6516 | DEFAULT_wxUSE_STATLINE=yes | |
6517 | DEFAULT_wxUSE_STATUSBAR=yes | |
6518 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6519 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6520 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6521 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6522 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6523 | DEFAULT_wxUSE_TOOLTIPS=yes |
6524 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6525 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6526 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6527 | elif test "$wxUSE_CONTROLS" = "no"; then |
6528 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6529 | DEFAULT_wxUSE_BMPBUTTON=no |
6530 | DEFAULT_wxUSE_BUTTON=no | |
6531 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6532 | DEFAULT_wxUSE_CARET=no |
6533 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6534 | DEFAULT_wxUSE_CHECKBOX=no |
6535 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6536 | DEFAULT_wxUSE_CHOICE=no | |
6537 | DEFAULT_wxUSE_GAUGE=no | |
6538 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6539 | DEFAULT_wxUSE_IMAGLIST=no |
6540 | DEFAULT_wxUSE_LISTBOX=no | |
6541 | DEFAULT_wxUSE_LISTCTRL=no | |
6542 | DEFAULT_wxUSE_NOTEBOOK=no | |
6543 | DEFAULT_wxUSE_RADIOBOX=no | |
6544 | DEFAULT_wxUSE_RADIOBTN=no | |
6545 | DEFAULT_wxUSE_SASH=no | |
6546 | DEFAULT_wxUSE_SCROLLBAR=no | |
6547 | DEFAULT_wxUSE_SLIDER=no | |
6548 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6549 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6550 | DEFAULT_wxUSE_SPLITTER=no |
6551 | DEFAULT_wxUSE_STATBMP=no | |
6552 | DEFAULT_wxUSE_STATBOX=no | |
6553 | DEFAULT_wxUSE_STATLINE=no | |
6554 | DEFAULT_wxUSE_STATUSBAR=no | |
6555 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6556 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6557 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6558 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6559 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6560 | DEFAULT_wxUSE_TOOLTIPS=no |
6561 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6562 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6563 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6564 | fi |
6565 | ||
ac0c4cc3 DE |
6566 | ## FIXME: This is a blatant hack |
6567 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6568 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6569 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6570 | # Generic notebook requires tab dialog |
6571 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6572 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6573 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6574 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6575 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6576 | fi |
6577 | ||
8284b0c5 | 6578 | |
5005acfe | 6579 | enablestring= |
e6cc62c6 VS |
6580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6581 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6582 | no_cache=0 |
6583 | # Check whether --enable-accel or --disable-accel was given. | |
6584 | if test "${enable_accel+set}" = set; then | |
6585 | enableval="$enable_accel" | |
e6cc62c6 | 6586 | |
10f2d63a VZ |
6587 | if test "$enableval" = yes; then |
6588 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6589 | else | |
6590 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6591 | fi | |
e6cc62c6 | 6592 | |
10f2d63a | 6593 | else |
e6cc62c6 | 6594 | |
10f2d63a VZ |
6595 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6596 | if test "x$LINE" != x ; then | |
6597 | eval "DEFAULT_$LINE" | |
6598 | else | |
6599 | no_cache=1 | |
6600 | fi | |
6601 | ||
6602 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6603 | |
e6cc62c6 | 6604 | fi; |
10f2d63a VZ |
6605 | |
6606 | eval "$ac_cv_use_accel" | |
6607 | if test "$no_cache" != 1; then | |
6608 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6609 | fi | |
6610 | ||
6611 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6612 | echo "$as_me:$LINENO: result: yes" >&5 |
6613 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6614 | else |
e6cc62c6 VS |
6615 | echo "$as_me:$LINENO: result: no" >&5 |
6616 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6617 | fi |
e6cc62c6 | 6618 | |
10f2d63a | 6619 | |
5005acfe | 6620 | enablestring= |
e6cc62c6 VS |
6621 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6622 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6623 | no_cache=0 |
1e6feb95 VZ |
6624 | # Check whether --enable-button or --disable-button was given. |
6625 | if test "${enable_button+set}" = set; then | |
6626 | enableval="$enable_button" | |
e6cc62c6 | 6627 | |
10f2d63a | 6628 | if test "$enableval" = yes; then |
1e6feb95 | 6629 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6630 | else |
1e6feb95 | 6631 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6632 | fi |
e6cc62c6 | 6633 | |
10f2d63a | 6634 | else |
e6cc62c6 | 6635 | |
1e6feb95 | 6636 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6637 | if test "x$LINE" != x ; then |
6638 | eval "DEFAULT_$LINE" | |
6639 | else | |
6640 | no_cache=1 | |
6641 | fi | |
6642 | ||
1e6feb95 | 6643 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6644 | |
e6cc62c6 | 6645 | fi; |
10f2d63a | 6646 | |
1e6feb95 | 6647 | eval "$ac_cv_use_button" |
10f2d63a | 6648 | if test "$no_cache" != 1; then |
1e6feb95 | 6649 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6650 | fi |
6651 | ||
1e6feb95 | 6652 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6653 | echo "$as_me:$LINENO: result: yes" >&5 |
6654 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6655 | else |
e6cc62c6 VS |
6656 | echo "$as_me:$LINENO: result: no" >&5 |
6657 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6658 | fi |
e6cc62c6 | 6659 | |
10f2d63a | 6660 | |
5005acfe | 6661 | enablestring= |
e6cc62c6 VS |
6662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6663 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6664 | no_cache=0 |
6665 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6666 | if test "${enable_bmpbutton+set}" = set; then | |
6667 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6668 | |
10f2d63a VZ |
6669 | if test "$enableval" = yes; then |
6670 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6671 | else | |
6672 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6673 | fi | |
e6cc62c6 | 6674 | |
10f2d63a | 6675 | else |
e6cc62c6 | 6676 | |
10f2d63a VZ |
6677 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6678 | if test "x$LINE" != x ; then | |
6679 | eval "DEFAULT_$LINE" | |
6680 | else | |
6681 | no_cache=1 | |
6682 | fi | |
6683 | ||
6684 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6685 | |
e6cc62c6 | 6686 | fi; |
10f2d63a VZ |
6687 | |
6688 | eval "$ac_cv_use_bmpbutton" | |
6689 | if test "$no_cache" != 1; then | |
6690 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6691 | fi | |
6692 | ||
6693 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6694 | echo "$as_me:$LINENO: result: yes" >&5 |
6695 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6696 | else |
e6cc62c6 VS |
6697 | echo "$as_me:$LINENO: result: no" >&5 |
6698 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6699 | fi |
e6cc62c6 | 6700 | |
10f2d63a | 6701 | |
5005acfe | 6702 | enablestring= |
e6cc62c6 VS |
6703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6704 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6705 | no_cache=0 |
6706 | # Check whether --enable-calendar or --disable-calendar was given. | |
6707 | if test "${enable_calendar+set}" = set; then | |
6708 | enableval="$enable_calendar" | |
e6cc62c6 | 6709 | |
1e6feb95 VZ |
6710 | if test "$enableval" = yes; then |
6711 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6712 | else | |
6713 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6714 | fi | |
e6cc62c6 | 6715 | |
1e6feb95 | 6716 | else |
e6cc62c6 | 6717 | |
1e6feb95 VZ |
6718 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6719 | if test "x$LINE" != x ; then | |
6720 | eval "DEFAULT_$LINE" | |
6721 | else | |
6722 | no_cache=1 | |
6723 | fi | |
6724 | ||
6725 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6726 | |
e6cc62c6 | 6727 | fi; |
1e6feb95 VZ |
6728 | |
6729 | eval "$ac_cv_use_calendar" | |
6730 | if test "$no_cache" != 1; then | |
6731 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6732 | fi | |
6733 | ||
6734 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6735 | echo "$as_me:$LINENO: result: yes" >&5 |
6736 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6737 | else |
e6cc62c6 VS |
6738 | echo "$as_me:$LINENO: result: no" >&5 |
6739 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6740 | fi |
e6cc62c6 | 6741 | |
1e6feb95 | 6742 | |
5005acfe | 6743 | enablestring= |
e6cc62c6 VS |
6744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6745 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6746 | no_cache=0 |
6747 | # Check whether --enable-caret or --disable-caret was given. | |
6748 | if test "${enable_caret+set}" = set; then | |
6749 | enableval="$enable_caret" | |
e6cc62c6 | 6750 | |
1e6feb95 VZ |
6751 | if test "$enableval" = yes; then |
6752 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6753 | else | |
6754 | ac_cv_use_caret='wxUSE_CARET=no' | |
6755 | fi | |
e6cc62c6 | 6756 | |
1e6feb95 | 6757 | else |
e6cc62c6 | 6758 | |
1e6feb95 VZ |
6759 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6760 | if test "x$LINE" != x ; then | |
6761 | eval "DEFAULT_$LINE" | |
6762 | else | |
6763 | no_cache=1 | |
6764 | fi | |
6765 | ||
6766 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6767 | |
e6cc62c6 | 6768 | fi; |
1e6feb95 VZ |
6769 | |
6770 | eval "$ac_cv_use_caret" | |
6771 | if test "$no_cache" != 1; then | |
6772 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6773 | fi | |
6774 | ||
6775 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6776 | echo "$as_me:$LINENO: result: yes" >&5 |
6777 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6778 | else |
e6cc62c6 VS |
6779 | echo "$as_me:$LINENO: result: no" >&5 |
6780 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6781 | fi |
e6cc62c6 | 6782 | |
1e6feb95 | 6783 | |
5005acfe | 6784 | enablestring= |
e6cc62c6 VS |
6785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6786 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6787 | no_cache=0 |
6788 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6789 | if test "${enable_checkbox+set}" = set; then | |
6790 | enableval="$enable_checkbox" | |
e6cc62c6 | 6791 | |
10f2d63a VZ |
6792 | if test "$enableval" = yes; then |
6793 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6794 | else | |
6795 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6796 | fi | |
e6cc62c6 | 6797 | |
10f2d63a | 6798 | else |
e6cc62c6 | 6799 | |
10f2d63a VZ |
6800 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6801 | if test "x$LINE" != x ; then | |
6802 | eval "DEFAULT_$LINE" | |
6803 | else | |
6804 | no_cache=1 | |
6805 | fi | |
6806 | ||
6807 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6808 | |
e6cc62c6 | 6809 | fi; |
10f2d63a VZ |
6810 | |
6811 | eval "$ac_cv_use_checkbox" | |
6812 | if test "$no_cache" != 1; then | |
6813 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6814 | fi | |
6815 | ||
6816 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6817 | echo "$as_me:$LINENO: result: yes" >&5 |
6818 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6819 | else |
e6cc62c6 VS |
6820 | echo "$as_me:$LINENO: result: no" >&5 |
6821 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6822 | fi |
e6cc62c6 | 6823 | |
10f2d63a | 6824 | |
5005acfe | 6825 | enablestring= |
e6cc62c6 VS |
6826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6827 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6828 | no_cache=0 |
6829 | # Check whether --enable-checklst or --disable-checklst was given. | |
6830 | if test "${enable_checklst+set}" = set; then | |
6831 | enableval="$enable_checklst" | |
e6cc62c6 | 6832 | |
10f2d63a VZ |
6833 | if test "$enableval" = yes; then |
6834 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6835 | else | |
6836 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6837 | fi | |
e6cc62c6 | 6838 | |
10f2d63a | 6839 | else |
e6cc62c6 | 6840 | |
10f2d63a VZ |
6841 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6842 | if test "x$LINE" != x ; then | |
6843 | eval "DEFAULT_$LINE" | |
6844 | else | |
6845 | no_cache=1 | |
6846 | fi | |
6847 | ||
6848 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6849 | |
e6cc62c6 | 6850 | fi; |
10f2d63a VZ |
6851 | |
6852 | eval "$ac_cv_use_checklst" | |
6853 | if test "$no_cache" != 1; then | |
6854 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6855 | fi | |
6856 | ||
6857 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6858 | echo "$as_me:$LINENO: result: yes" >&5 |
6859 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6860 | else |
e6cc62c6 VS |
6861 | echo "$as_me:$LINENO: result: no" >&5 |
6862 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6863 | fi |
e6cc62c6 | 6864 | |
10f2d63a | 6865 | |
5005acfe | 6866 | enablestring= |
e6cc62c6 VS |
6867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6868 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6869 | no_cache=0 |
6870 | # Check whether --enable-choice or --disable-choice was given. | |
6871 | if test "${enable_choice+set}" = set; then | |
6872 | enableval="$enable_choice" | |
e6cc62c6 | 6873 | |
10f2d63a VZ |
6874 | if test "$enableval" = yes; then |
6875 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6876 | else | |
6877 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6878 | fi | |
e6cc62c6 | 6879 | |
10f2d63a | 6880 | else |
e6cc62c6 | 6881 | |
10f2d63a VZ |
6882 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6883 | if test "x$LINE" != x ; then | |
6884 | eval "DEFAULT_$LINE" | |
6885 | else | |
6886 | no_cache=1 | |
6887 | fi | |
6888 | ||
6889 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6890 | |
e6cc62c6 | 6891 | fi; |
10f2d63a VZ |
6892 | |
6893 | eval "$ac_cv_use_choice" | |
6894 | if test "$no_cache" != 1; then | |
6895 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6896 | fi | |
6897 | ||
6898 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6899 | echo "$as_me:$LINENO: result: yes" >&5 |
6900 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6901 | else |
e6cc62c6 VS |
6902 | echo "$as_me:$LINENO: result: no" >&5 |
6903 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6904 | fi |
e6cc62c6 | 6905 | |
10f2d63a | 6906 | |
5005acfe | 6907 | enablestring= |
e6cc62c6 VS |
6908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6909 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6910 | no_cache=0 |
6911 | # Check whether --enable-combobox or --disable-combobox was given. | |
6912 | if test "${enable_combobox+set}" = set; then | |
6913 | enableval="$enable_combobox" | |
e6cc62c6 | 6914 | |
10f2d63a VZ |
6915 | if test "$enableval" = yes; then |
6916 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6917 | else | |
6918 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6919 | fi | |
e6cc62c6 | 6920 | |
10f2d63a | 6921 | else |
e6cc62c6 | 6922 | |
10f2d63a VZ |
6923 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6924 | if test "x$LINE" != x ; then | |
6925 | eval "DEFAULT_$LINE" | |
6926 | else | |
6927 | no_cache=1 | |
6928 | fi | |
6929 | ||
6930 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6931 | |
e6cc62c6 | 6932 | fi; |
10f2d63a VZ |
6933 | |
6934 | eval "$ac_cv_use_combobox" | |
6935 | if test "$no_cache" != 1; then | |
6936 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6937 | fi | |
6938 | ||
6939 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6940 | echo "$as_me:$LINENO: result: yes" >&5 |
6941 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6942 | else |
e6cc62c6 VS |
6943 | echo "$as_me:$LINENO: result: no" >&5 |
6944 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6945 | fi |
e6cc62c6 | 6946 | |
10f2d63a | 6947 | |
da494b40 | 6948 | enablestring= |
e6cc62c6 VS |
6949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6950 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6951 | no_cache=0 |
6952 | # Check whether --enable-display or --disable-display was given. | |
6953 | if test "${enable_display+set}" = set; then | |
6954 | enableval="$enable_display" | |
e6cc62c6 | 6955 | |
da494b40 MB |
6956 | if test "$enableval" = yes; then |
6957 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6958 | else | |
6959 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6960 | fi | |
e6cc62c6 | 6961 | |
da494b40 | 6962 | else |
e6cc62c6 | 6963 | |
da494b40 MB |
6964 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6965 | if test "x$LINE" != x ; then | |
6966 | eval "DEFAULT_$LINE" | |
6967 | else | |
6968 | no_cache=1 | |
6969 | fi | |
6970 | ||
6971 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6972 | |
e6cc62c6 | 6973 | fi; |
da494b40 MB |
6974 | |
6975 | eval "$ac_cv_use_display" | |
6976 | if test "$no_cache" != 1; then | |
6977 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6978 | fi | |
6979 | ||
6980 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6981 | echo "$as_me:$LINENO: result: yes" >&5 |
6982 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6983 | else |
e6cc62c6 VS |
6984 | echo "$as_me:$LINENO: result: no" >&5 |
6985 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6986 | fi |
e6cc62c6 | 6987 | |
da494b40 | 6988 | |
5005acfe | 6989 | enablestring= |
e6cc62c6 VS |
6990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6991 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6992 | no_cache=0 |
6993 | # Check whether --enable-gauge or --disable-gauge was given. | |
6994 | if test "${enable_gauge+set}" = set; then | |
6995 | enableval="$enable_gauge" | |
e6cc62c6 | 6996 | |
10f2d63a VZ |
6997 | if test "$enableval" = yes; then |
6998 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6999 | else | |
7000 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7001 | fi | |
e6cc62c6 | 7002 | |
10f2d63a | 7003 | else |
e6cc62c6 | 7004 | |
10f2d63a VZ |
7005 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7006 | if test "x$LINE" != x ; then | |
7007 | eval "DEFAULT_$LINE" | |
7008 | else | |
7009 | no_cache=1 | |
7010 | fi | |
7011 | ||
7012 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7013 | |
e6cc62c6 | 7014 | fi; |
10f2d63a VZ |
7015 | |
7016 | eval "$ac_cv_use_gauge" | |
7017 | if test "$no_cache" != 1; then | |
7018 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7019 | fi | |
7020 | ||
7021 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7022 | echo "$as_me:$LINENO: result: yes" >&5 |
7023 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7024 | else |
e6cc62c6 VS |
7025 | echo "$as_me:$LINENO: result: no" >&5 |
7026 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7027 | fi |
e6cc62c6 | 7028 | |
10f2d63a | 7029 | |
5005acfe | 7030 | enablestring= |
e6cc62c6 VS |
7031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7032 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7033 | no_cache=0 |
7034 | # Check whether --enable-grid or --disable-grid was given. | |
7035 | if test "${enable_grid+set}" = set; then | |
7036 | enableval="$enable_grid" | |
e6cc62c6 | 7037 | |
10f2d63a VZ |
7038 | if test "$enableval" = yes; then |
7039 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7040 | else | |
7041 | ac_cv_use_grid='wxUSE_GRID=no' | |
7042 | fi | |
e6cc62c6 | 7043 | |
10f2d63a | 7044 | else |
e6cc62c6 | 7045 | |
10f2d63a VZ |
7046 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7047 | if test "x$LINE" != x ; then | |
7048 | eval "DEFAULT_$LINE" | |
7049 | else | |
7050 | no_cache=1 | |
7051 | fi | |
7052 | ||
7053 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7054 | |
e6cc62c6 | 7055 | fi; |
10f2d63a VZ |
7056 | |
7057 | eval "$ac_cv_use_grid" | |
7058 | if test "$no_cache" != 1; then | |
7059 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7060 | fi | |
7061 | ||
7062 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7063 | echo "$as_me:$LINENO: result: yes" >&5 |
7064 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7065 | else |
e6cc62c6 VS |
7066 | echo "$as_me:$LINENO: result: no" >&5 |
7067 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7068 | fi |
e6cc62c6 | 7069 | |
10f2d63a | 7070 | |
5005acfe | 7071 | enablestring= |
e6cc62c6 VS |
7072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7073 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7074 | no_cache=0 |
7075 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7076 | if test "${enable_imaglist+set}" = set; then | |
7077 | enableval="$enable_imaglist" | |
e6cc62c6 | 7078 | |
10f2d63a VZ |
7079 | if test "$enableval" = yes; then |
7080 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7081 | else | |
7082 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7083 | fi | |
e6cc62c6 | 7084 | |
10f2d63a | 7085 | else |
e6cc62c6 | 7086 | |
10f2d63a VZ |
7087 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7088 | if test "x$LINE" != x ; then | |
7089 | eval "DEFAULT_$LINE" | |
7090 | else | |
7091 | no_cache=1 | |
7092 | fi | |
7093 | ||
7094 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7095 | |
e6cc62c6 | 7096 | fi; |
10f2d63a VZ |
7097 | |
7098 | eval "$ac_cv_use_imaglist" | |
7099 | if test "$no_cache" != 1; then | |
7100 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7101 | fi | |
7102 | ||
7103 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7104 | echo "$as_me:$LINENO: result: yes" >&5 |
7105 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7106 | else |
e6cc62c6 VS |
7107 | echo "$as_me:$LINENO: result: no" >&5 |
7108 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7109 | fi |
e6cc62c6 | 7110 | |
10f2d63a | 7111 | |
5005acfe | 7112 | enablestring= |
e6cc62c6 VS |
7113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7114 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7115 | no_cache=0 |
7116 | # Check whether --enable-listbox or --disable-listbox was given. | |
7117 | if test "${enable_listbox+set}" = set; then | |
7118 | enableval="$enable_listbox" | |
e6cc62c6 | 7119 | |
10f2d63a VZ |
7120 | if test "$enableval" = yes; then |
7121 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7122 | else | |
7123 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7124 | fi | |
e6cc62c6 | 7125 | |
10f2d63a | 7126 | else |
e6cc62c6 | 7127 | |
10f2d63a VZ |
7128 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7129 | if test "x$LINE" != x ; then | |
7130 | eval "DEFAULT_$LINE" | |
7131 | else | |
7132 | no_cache=1 | |
7133 | fi | |
7134 | ||
7135 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7136 | |
e6cc62c6 | 7137 | fi; |
10f2d63a VZ |
7138 | |
7139 | eval "$ac_cv_use_listbox" | |
7140 | if test "$no_cache" != 1; then | |
7141 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7142 | fi | |
7143 | ||
7144 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7145 | echo "$as_me:$LINENO: result: yes" >&5 |
7146 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7147 | else |
e6cc62c6 VS |
7148 | echo "$as_me:$LINENO: result: no" >&5 |
7149 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7150 | fi |
e6cc62c6 | 7151 | |
10f2d63a | 7152 | |
5005acfe | 7153 | enablestring= |
e6cc62c6 VS |
7154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7155 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7156 | no_cache=0 |
7157 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7158 | if test "${enable_listctrl+set}" = set; then | |
7159 | enableval="$enable_listctrl" | |
e6cc62c6 | 7160 | |
10f2d63a VZ |
7161 | if test "$enableval" = yes; then |
7162 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7163 | else | |
7164 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7165 | fi | |
e6cc62c6 | 7166 | |
10f2d63a | 7167 | else |
e6cc62c6 | 7168 | |
10f2d63a VZ |
7169 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7170 | if test "x$LINE" != x ; then | |
7171 | eval "DEFAULT_$LINE" | |
7172 | else | |
7173 | no_cache=1 | |
7174 | fi | |
7175 | ||
7176 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7177 | |
e6cc62c6 | 7178 | fi; |
10f2d63a VZ |
7179 | |
7180 | eval "$ac_cv_use_listctrl" | |
7181 | if test "$no_cache" != 1; then | |
7182 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7183 | fi | |
7184 | ||
7185 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7186 | echo "$as_me:$LINENO: result: yes" >&5 |
7187 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7188 | else |
e6cc62c6 VS |
7189 | echo "$as_me:$LINENO: result: no" >&5 |
7190 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7191 | fi |
e6cc62c6 | 7192 | |
10f2d63a | 7193 | |
5005acfe | 7194 | enablestring= |
e6cc62c6 VS |
7195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7196 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7197 | no_cache=0 |
7198 | # Check whether --enable-notebook or --disable-notebook was given. | |
7199 | if test "${enable_notebook+set}" = set; then | |
7200 | enableval="$enable_notebook" | |
e6cc62c6 | 7201 | |
10f2d63a VZ |
7202 | if test "$enableval" = yes; then |
7203 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7204 | else | |
7205 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7206 | fi | |
e6cc62c6 | 7207 | |
10f2d63a | 7208 | else |
e6cc62c6 | 7209 | |
10f2d63a VZ |
7210 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7211 | if test "x$LINE" != x ; then | |
7212 | eval "DEFAULT_$LINE" | |
7213 | else | |
7214 | no_cache=1 | |
7215 | fi | |
7216 | ||
7217 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7218 | |
e6cc62c6 | 7219 | fi; |
10f2d63a VZ |
7220 | |
7221 | eval "$ac_cv_use_notebook" | |
7222 | if test "$no_cache" != 1; then | |
7223 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7224 | fi | |
7225 | ||
7226 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7227 | echo "$as_me:$LINENO: result: yes" >&5 |
7228 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7229 | else |
e6cc62c6 VS |
7230 | echo "$as_me:$LINENO: result: no" >&5 |
7231 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7232 | fi |
e6cc62c6 | 7233 | |
10f2d63a | 7234 | |
5005acfe | 7235 | enablestring= |
e6cc62c6 VS |
7236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7237 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7238 | no_cache=0 |
7239 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7240 | if test "${enable_radiobox+set}" = set; then | |
7241 | enableval="$enable_radiobox" | |
e6cc62c6 | 7242 | |
10f2d63a VZ |
7243 | if test "$enableval" = yes; then |
7244 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7245 | else | |
7246 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7247 | fi | |
e6cc62c6 | 7248 | |
10f2d63a | 7249 | else |
e6cc62c6 | 7250 | |
10f2d63a VZ |
7251 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7252 | if test "x$LINE" != x ; then | |
7253 | eval "DEFAULT_$LINE" | |
7254 | else | |
7255 | no_cache=1 | |
7256 | fi | |
7257 | ||
7258 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7259 | |
e6cc62c6 | 7260 | fi; |
10f2d63a VZ |
7261 | |
7262 | eval "$ac_cv_use_radiobox" | |
7263 | if test "$no_cache" != 1; then | |
7264 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7265 | fi | |
7266 | ||
7267 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7268 | echo "$as_me:$LINENO: result: yes" >&5 |
7269 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7270 | else |
e6cc62c6 VS |
7271 | echo "$as_me:$LINENO: result: no" >&5 |
7272 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7273 | fi |
e6cc62c6 | 7274 | |
10f2d63a | 7275 | |
5005acfe | 7276 | enablestring= |
e6cc62c6 VS |
7277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7278 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7279 | no_cache=0 |
7280 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7281 | if test "${enable_radiobtn+set}" = set; then | |
7282 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7283 | |
10f2d63a VZ |
7284 | if test "$enableval" = yes; then |
7285 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7286 | else | |
7287 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7288 | fi | |
e6cc62c6 | 7289 | |
10f2d63a | 7290 | else |
e6cc62c6 | 7291 | |
10f2d63a VZ |
7292 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7293 | if test "x$LINE" != x ; then | |
7294 | eval "DEFAULT_$LINE" | |
7295 | else | |
7296 | no_cache=1 | |
7297 | fi | |
7298 | ||
7299 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7300 | |
e6cc62c6 | 7301 | fi; |
10f2d63a VZ |
7302 | |
7303 | eval "$ac_cv_use_radiobtn" | |
7304 | if test "$no_cache" != 1; then | |
7305 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7306 | fi | |
7307 | ||
7308 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7309 | echo "$as_me:$LINENO: result: yes" >&5 |
7310 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7311 | else |
e6cc62c6 VS |
7312 | echo "$as_me:$LINENO: result: no" >&5 |
7313 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7314 | fi |
e6cc62c6 | 7315 | |
10f2d63a | 7316 | |
5005acfe | 7317 | enablestring= |
e6cc62c6 VS |
7318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7319 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7320 | no_cache=0 |
7321 | # Check whether --enable-sash or --disable-sash was given. | |
7322 | if test "${enable_sash+set}" = set; then | |
7323 | enableval="$enable_sash" | |
e6cc62c6 | 7324 | |
10f2d63a VZ |
7325 | if test "$enableval" = yes; then |
7326 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7327 | else | |
7328 | ac_cv_use_sash='wxUSE_SASH=no' | |
7329 | fi | |
e6cc62c6 | 7330 | |
10f2d63a | 7331 | else |
e6cc62c6 | 7332 | |
10f2d63a VZ |
7333 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7334 | if test "x$LINE" != x ; then | |
7335 | eval "DEFAULT_$LINE" | |
7336 | else | |
7337 | no_cache=1 | |
7338 | fi | |
7339 | ||
7340 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7341 | |
e6cc62c6 | 7342 | fi; |
10f2d63a VZ |
7343 | |
7344 | eval "$ac_cv_use_sash" | |
7345 | if test "$no_cache" != 1; then | |
7346 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7347 | fi | |
7348 | ||
7349 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7350 | echo "$as_me:$LINENO: result: yes" >&5 |
7351 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7352 | else |
e6cc62c6 VS |
7353 | echo "$as_me:$LINENO: result: no" >&5 |
7354 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7355 | fi |
e6cc62c6 | 7356 | |
10f2d63a | 7357 | |
5005acfe | 7358 | enablestring= |
e6cc62c6 VS |
7359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7360 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7361 | no_cache=0 |
7362 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7363 | if test "${enable_scrollbar+set}" = set; then | |
7364 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7365 | |
10f2d63a VZ |
7366 | if test "$enableval" = yes; then |
7367 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7368 | else | |
7369 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7370 | fi | |
e6cc62c6 | 7371 | |
10f2d63a | 7372 | else |
e6cc62c6 | 7373 | |
10f2d63a VZ |
7374 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7375 | if test "x$LINE" != x ; then | |
7376 | eval "DEFAULT_$LINE" | |
7377 | else | |
7378 | no_cache=1 | |
7379 | fi | |
7380 | ||
7381 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7382 | |
e6cc62c6 | 7383 | fi; |
10f2d63a VZ |
7384 | |
7385 | eval "$ac_cv_use_scrollbar" | |
7386 | if test "$no_cache" != 1; then | |
7387 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7388 | fi | |
7389 | ||
7390 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7391 | echo "$as_me:$LINENO: result: yes" >&5 |
7392 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7393 | else |
e6cc62c6 VS |
7394 | echo "$as_me:$LINENO: result: no" >&5 |
7395 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7396 | fi |
e6cc62c6 | 7397 | |
10f2d63a | 7398 | |
5005acfe | 7399 | enablestring= |
e6cc62c6 VS |
7400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7401 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7402 | no_cache=0 |
7403 | # Check whether --enable-slider or --disable-slider was given. | |
7404 | if test "${enable_slider+set}" = set; then | |
7405 | enableval="$enable_slider" | |
e6cc62c6 | 7406 | |
10f2d63a VZ |
7407 | if test "$enableval" = yes; then |
7408 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7409 | else | |
7410 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7411 | fi | |
e6cc62c6 | 7412 | |
10f2d63a | 7413 | else |
e6cc62c6 | 7414 | |
10f2d63a VZ |
7415 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7416 | if test "x$LINE" != x ; then | |
7417 | eval "DEFAULT_$LINE" | |
7418 | else | |
7419 | no_cache=1 | |
7420 | fi | |
7421 | ||
7422 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7423 | |
e6cc62c6 | 7424 | fi; |
10f2d63a VZ |
7425 | |
7426 | eval "$ac_cv_use_slider" | |
7427 | if test "$no_cache" != 1; then | |
7428 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7429 | fi | |
7430 | ||
7431 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7432 | echo "$as_me:$LINENO: result: yes" >&5 |
7433 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7434 | else |
e6cc62c6 VS |
7435 | echo "$as_me:$LINENO: result: no" >&5 |
7436 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7437 | fi |
e6cc62c6 | 7438 | |
10f2d63a | 7439 | |
5005acfe | 7440 | enablestring= |
e6cc62c6 VS |
7441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7442 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7443 | no_cache=0 |
7444 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7445 | if test "${enable_spinbtn+set}" = set; then | |
7446 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7447 | |
10f2d63a VZ |
7448 | if test "$enableval" = yes; then |
7449 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7450 | else | |
7451 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7452 | fi | |
e6cc62c6 | 7453 | |
10f2d63a | 7454 | else |
e6cc62c6 | 7455 | |
10f2d63a VZ |
7456 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7457 | if test "x$LINE" != x ; then | |
7458 | eval "DEFAULT_$LINE" | |
7459 | else | |
7460 | no_cache=1 | |
7461 | fi | |
7462 | ||
7463 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7464 | |
e6cc62c6 | 7465 | fi; |
10f2d63a VZ |
7466 | |
7467 | eval "$ac_cv_use_spinbtn" | |
7468 | if test "$no_cache" != 1; then | |
7469 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7470 | fi | |
7471 | ||
7472 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7473 | echo "$as_me:$LINENO: result: yes" >&5 |
7474 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7475 | else |
e6cc62c6 VS |
7476 | echo "$as_me:$LINENO: result: no" >&5 |
7477 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7478 | fi |
e6cc62c6 | 7479 | |
10f2d63a | 7480 | |
5005acfe | 7481 | enablestring= |
e6cc62c6 VS |
7482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7483 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7484 | no_cache=0 |
7485 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7486 | if test "${enable_spinctrl+set}" = set; then | |
7487 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7488 | |
56cfaa52 RR |
7489 | if test "$enableval" = yes; then |
7490 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7491 | else | |
7492 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7493 | fi | |
e6cc62c6 | 7494 | |
56cfaa52 | 7495 | else |
e6cc62c6 | 7496 | |
56cfaa52 RR |
7497 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7498 | if test "x$LINE" != x ; then | |
7499 | eval "DEFAULT_$LINE" | |
7500 | else | |
7501 | no_cache=1 | |
7502 | fi | |
7503 | ||
7504 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7505 | |
e6cc62c6 | 7506 | fi; |
56cfaa52 RR |
7507 | |
7508 | eval "$ac_cv_use_spinctrl" | |
7509 | if test "$no_cache" != 1; then | |
7510 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7511 | fi | |
7512 | ||
7513 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7514 | echo "$as_me:$LINENO: result: yes" >&5 |
7515 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7516 | else |
e6cc62c6 VS |
7517 | echo "$as_me:$LINENO: result: no" >&5 |
7518 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7519 | fi |
e6cc62c6 | 7520 | |
56cfaa52 | 7521 | |
5005acfe | 7522 | enablestring= |
e6cc62c6 VS |
7523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7524 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7525 | no_cache=0 |
7526 | # Check whether --enable-splitter or --disable-splitter was given. | |
7527 | if test "${enable_splitter+set}" = set; then | |
7528 | enableval="$enable_splitter" | |
e6cc62c6 | 7529 | |
10f2d63a VZ |
7530 | if test "$enableval" = yes; then |
7531 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7532 | else | |
7533 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7534 | fi | |
e6cc62c6 | 7535 | |
10f2d63a | 7536 | else |
e6cc62c6 | 7537 | |
10f2d63a VZ |
7538 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7539 | if test "x$LINE" != x ; then | |
7540 | eval "DEFAULT_$LINE" | |
7541 | else | |
7542 | no_cache=1 | |
7543 | fi | |
7544 | ||
7545 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7546 | |
e6cc62c6 | 7547 | fi; |
10f2d63a VZ |
7548 | |
7549 | eval "$ac_cv_use_splitter" | |
7550 | if test "$no_cache" != 1; then | |
7551 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7552 | fi | |
7553 | ||
7554 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7555 | echo "$as_me:$LINENO: result: yes" >&5 |
7556 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7557 | else |
e6cc62c6 VS |
7558 | echo "$as_me:$LINENO: result: no" >&5 |
7559 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7560 | fi |
e6cc62c6 | 7561 | |
10f2d63a | 7562 | |
5005acfe | 7563 | enablestring= |
e6cc62c6 VS |
7564 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7565 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7566 | no_cache=0 |
7567 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7568 | if test "${enable_statbmp+set}" = set; then | |
7569 | enableval="$enable_statbmp" | |
e6cc62c6 | 7570 | |
10f2d63a VZ |
7571 | if test "$enableval" = yes; then |
7572 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7573 | else | |
7574 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7575 | fi | |
e6cc62c6 | 7576 | |
10f2d63a | 7577 | else |
e6cc62c6 | 7578 | |
10f2d63a VZ |
7579 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7580 | if test "x$LINE" != x ; then | |
7581 | eval "DEFAULT_$LINE" | |
7582 | else | |
7583 | no_cache=1 | |
7584 | fi | |
7585 | ||
7586 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7587 | |
e6cc62c6 | 7588 | fi; |
10f2d63a VZ |
7589 | |
7590 | eval "$ac_cv_use_statbmp" | |
7591 | if test "$no_cache" != 1; then | |
7592 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7593 | fi | |
7594 | ||
7595 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7596 | echo "$as_me:$LINENO: result: yes" >&5 |
7597 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7598 | else |
e6cc62c6 VS |
7599 | echo "$as_me:$LINENO: result: no" >&5 |
7600 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7601 | fi |
e6cc62c6 | 7602 | |
10f2d63a | 7603 | |
5005acfe | 7604 | enablestring= |
e6cc62c6 VS |
7605 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7606 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7607 | no_cache=0 |
7608 | # Check whether --enable-statbox or --disable-statbox was given. | |
7609 | if test "${enable_statbox+set}" = set; then | |
7610 | enableval="$enable_statbox" | |
e6cc62c6 | 7611 | |
10f2d63a VZ |
7612 | if test "$enableval" = yes; then |
7613 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7614 | else | |
7615 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7616 | fi | |
e6cc62c6 | 7617 | |
10f2d63a | 7618 | else |
e6cc62c6 | 7619 | |
10f2d63a VZ |
7620 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7621 | if test "x$LINE" != x ; then | |
7622 | eval "DEFAULT_$LINE" | |
7623 | else | |
7624 | no_cache=1 | |
7625 | fi | |
7626 | ||
7627 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7628 | |
e6cc62c6 | 7629 | fi; |
10f2d63a VZ |
7630 | |
7631 | eval "$ac_cv_use_statbox" | |
7632 | if test "$no_cache" != 1; then | |
7633 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7634 | fi | |
7635 | ||
7636 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7637 | echo "$as_me:$LINENO: result: yes" >&5 |
7638 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7639 | else |
e6cc62c6 VS |
7640 | echo "$as_me:$LINENO: result: no" >&5 |
7641 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7642 | fi |
e6cc62c6 | 7643 | |
10f2d63a | 7644 | |
5005acfe | 7645 | enablestring= |
e6cc62c6 VS |
7646 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7647 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7648 | no_cache=0 |
7649 | # Check whether --enable-statline or --disable-statline was given. | |
7650 | if test "${enable_statline+set}" = set; then | |
7651 | enableval="$enable_statline" | |
e6cc62c6 | 7652 | |
10f2d63a VZ |
7653 | if test "$enableval" = yes; then |
7654 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7655 | else | |
7656 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7657 | fi | |
e6cc62c6 | 7658 | |
10f2d63a | 7659 | else |
e6cc62c6 | 7660 | |
10f2d63a VZ |
7661 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7662 | if test "x$LINE" != x ; then | |
7663 | eval "DEFAULT_$LINE" | |
7664 | else | |
7665 | no_cache=1 | |
7666 | fi | |
7667 | ||
7668 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7669 | |
e6cc62c6 | 7670 | fi; |
10f2d63a VZ |
7671 | |
7672 | eval "$ac_cv_use_statline" | |
7673 | if test "$no_cache" != 1; then | |
7674 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7675 | fi | |
7676 | ||
7677 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7678 | echo "$as_me:$LINENO: result: yes" >&5 |
7679 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7680 | else |
e6cc62c6 VS |
7681 | echo "$as_me:$LINENO: result: no" >&5 |
7682 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7683 | fi |
e6cc62c6 | 7684 | |
10f2d63a | 7685 | |
5005acfe | 7686 | enablestring= |
e6cc62c6 VS |
7687 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7688 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7689 | no_cache=0 |
7690 | # Check whether --enable-stattext or --disable-stattext was given. | |
7691 | if test "${enable_stattext+set}" = set; then | |
7692 | enableval="$enable_stattext" | |
e6cc62c6 | 7693 | |
1e6feb95 VZ |
7694 | if test "$enableval" = yes; then |
7695 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7696 | else | |
7697 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7698 | fi | |
e6cc62c6 | 7699 | |
1e6feb95 | 7700 | else |
e6cc62c6 | 7701 | |
1e6feb95 VZ |
7702 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7703 | if test "x$LINE" != x ; then | |
7704 | eval "DEFAULT_$LINE" | |
7705 | else | |
7706 | no_cache=1 | |
7707 | fi | |
7708 | ||
7709 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7710 | |
e6cc62c6 | 7711 | fi; |
1e6feb95 VZ |
7712 | |
7713 | eval "$ac_cv_use_stattext" | |
7714 | if test "$no_cache" != 1; then | |
7715 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7716 | fi | |
7717 | ||
7718 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7719 | echo "$as_me:$LINENO: result: yes" >&5 |
7720 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7721 | else |
e6cc62c6 VS |
7722 | echo "$as_me:$LINENO: result: no" >&5 |
7723 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7724 | fi |
e6cc62c6 | 7725 | |
1e6feb95 | 7726 | |
5005acfe | 7727 | enablestring= |
e6cc62c6 VS |
7728 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7729 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7730 | no_cache=0 |
7731 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7732 | if test "${enable_statusbar+set}" = set; then | |
7733 | enableval="$enable_statusbar" | |
e6cc62c6 | 7734 | |
10f2d63a VZ |
7735 | if test "$enableval" = yes; then |
7736 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7737 | else | |
7738 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7739 | fi | |
e6cc62c6 | 7740 | |
10f2d63a | 7741 | else |
e6cc62c6 | 7742 | |
10f2d63a VZ |
7743 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7744 | if test "x$LINE" != x ; then | |
7745 | eval "DEFAULT_$LINE" | |
7746 | else | |
7747 | no_cache=1 | |
7748 | fi | |
7749 | ||
7750 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7751 | |
e6cc62c6 | 7752 | fi; |
10f2d63a VZ |
7753 | |
7754 | eval "$ac_cv_use_statusbar" | |
7755 | if test "$no_cache" != 1; then | |
7756 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7757 | fi | |
7758 | ||
7759 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7760 | echo "$as_me:$LINENO: result: yes" >&5 |
7761 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7762 | else |
e6cc62c6 VS |
7763 | echo "$as_me:$LINENO: result: no" >&5 |
7764 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7765 | fi |
e6cc62c6 | 7766 | |
10f2d63a | 7767 | |
5005acfe | 7768 | enablestring= |
e6cc62c6 VS |
7769 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7770 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7771 | no_cache=0 |
7772 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7773 | if test "${enable_tabdialog+set}" = set; then | |
7774 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7775 | |
10f2d63a VZ |
7776 | if test "$enableval" = yes; then |
7777 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7778 | else | |
7779 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7780 | fi | |
e6cc62c6 | 7781 | |
10f2d63a | 7782 | else |
e6cc62c6 | 7783 | |
10f2d63a VZ |
7784 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7785 | if test "x$LINE" != x ; then | |
7786 | eval "DEFAULT_$LINE" | |
7787 | else | |
7788 | no_cache=1 | |
7789 | fi | |
7790 | ||
7791 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7792 | |
e6cc62c6 | 7793 | fi; |
10f2d63a VZ |
7794 | |
7795 | eval "$ac_cv_use_tabdialog" | |
7796 | if test "$no_cache" != 1; then | |
7797 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7798 | fi | |
7799 | ||
7800 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7801 | echo "$as_me:$LINENO: result: yes" >&5 |
7802 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7803 | else |
e6cc62c6 VS |
7804 | echo "$as_me:$LINENO: result: no" >&5 |
7805 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7806 | fi |
e6cc62c6 | 7807 | |
10f2d63a | 7808 | |
5005acfe | 7809 | enablestring= |
e6cc62c6 VS |
7810 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7811 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7812 | no_cache=0 |
7813 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7814 | if test "${enable_textctrl+set}" = set; then | |
7815 | enableval="$enable_textctrl" | |
e6cc62c6 | 7816 | |
1e6feb95 VZ |
7817 | if test "$enableval" = yes; then |
7818 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7819 | else | |
7820 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7821 | fi | |
e6cc62c6 | 7822 | |
1e6feb95 | 7823 | else |
e6cc62c6 | 7824 | |
1e6feb95 VZ |
7825 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7826 | if test "x$LINE" != x ; then | |
7827 | eval "DEFAULT_$LINE" | |
7828 | else | |
7829 | no_cache=1 | |
7830 | fi | |
7831 | ||
7832 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7833 | |
e6cc62c6 | 7834 | fi; |
1e6feb95 VZ |
7835 | |
7836 | eval "$ac_cv_use_textctrl" | |
7837 | if test "$no_cache" != 1; then | |
7838 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7839 | fi | |
7840 | ||
7841 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7842 | echo "$as_me:$LINENO: result: yes" >&5 |
7843 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7844 | else |
e6cc62c6 VS |
7845 | echo "$as_me:$LINENO: result: no" >&5 |
7846 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7847 | fi |
e6cc62c6 | 7848 | |
1e6feb95 | 7849 | |
5005acfe | 7850 | enablestring= |
e6cc62c6 VS |
7851 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7852 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7853 | no_cache=0 |
7854 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7855 | if test "${enable_togglebtn+set}" = set; then | |
7856 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7857 | |
1db8dc4a VZ |
7858 | if test "$enableval" = yes; then |
7859 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7860 | else | |
7861 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7862 | fi | |
e6cc62c6 | 7863 | |
1db8dc4a | 7864 | else |
e6cc62c6 | 7865 | |
1db8dc4a VZ |
7866 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7874 | |
e6cc62c6 | 7875 | fi; |
1db8dc4a VZ |
7876 | |
7877 | eval "$ac_cv_use_togglebtn" | |
7878 | if test "$no_cache" != 1; then | |
7879 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7880 | fi | |
7881 | ||
7882 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7883 | echo "$as_me:$LINENO: result: yes" >&5 |
7884 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7885 | else |
e6cc62c6 VS |
7886 | echo "$as_me:$LINENO: result: no" >&5 |
7887 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7888 | fi |
e6cc62c6 | 7889 | |
1db8dc4a | 7890 | |
5005acfe | 7891 | enablestring= |
e6cc62c6 VS |
7892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7893 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7894 | no_cache=0 |
7895 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7896 | if test "${enable_toolbar+set}" = set; then | |
7897 | enableval="$enable_toolbar" | |
e6cc62c6 | 7898 | |
10f2d63a VZ |
7899 | if test "$enableval" = yes; then |
7900 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7901 | else | |
7902 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7903 | fi | |
e6cc62c6 | 7904 | |
10f2d63a | 7905 | else |
e6cc62c6 | 7906 | |
10f2d63a VZ |
7907 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7908 | if test "x$LINE" != x ; then | |
7909 | eval "DEFAULT_$LINE" | |
7910 | else | |
7911 | no_cache=1 | |
7912 | fi | |
7913 | ||
7914 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7915 | |
e6cc62c6 | 7916 | fi; |
10f2d63a VZ |
7917 | |
7918 | eval "$ac_cv_use_toolbar" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7924 | echo "$as_me:$LINENO: result: yes" >&5 |
7925 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7926 | else |
e6cc62c6 VS |
7927 | echo "$as_me:$LINENO: result: no" >&5 |
7928 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7929 | fi |
e6cc62c6 | 7930 | |
10f2d63a | 7931 | |
5005acfe | 7932 | enablestring= |
e6cc62c6 VS |
7933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7934 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7935 | no_cache=0 |
7936 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7937 | if test "${enable_tbarnative+set}" = set; then | |
7938 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7939 | |
360d6699 VZ |
7940 | if test "$enableval" = yes; then |
7941 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7942 | else | |
7943 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7944 | fi | |
e6cc62c6 | 7945 | |
360d6699 | 7946 | else |
e6cc62c6 | 7947 | |
360d6699 VZ |
7948 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7949 | if test "x$LINE" != x ; then | |
7950 | eval "DEFAULT_$LINE" | |
7951 | else | |
7952 | no_cache=1 | |
7953 | fi | |
7954 | ||
7955 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7956 | |
e6cc62c6 | 7957 | fi; |
360d6699 VZ |
7958 | |
7959 | eval "$ac_cv_use_tbarnative" | |
7960 | if test "$no_cache" != 1; then | |
7961 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7962 | fi | |
7963 | ||
7964 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7965 | echo "$as_me:$LINENO: result: yes" >&5 |
7966 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7967 | else |
e6cc62c6 VS |
7968 | echo "$as_me:$LINENO: result: no" >&5 |
7969 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7970 | fi |
e6cc62c6 | 7971 | |
360d6699 | 7972 | |
5005acfe | 7973 | enablestring= |
e6cc62c6 VS |
7974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7975 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7976 | no_cache=0 |
7977 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7978 | if test "${enable_tbarsmpl+set}" = set; then | |
7979 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7980 | |
360d6699 VZ |
7981 | if test "$enableval" = yes; then |
7982 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7983 | else | |
7984 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7985 | fi | |
e6cc62c6 | 7986 | |
360d6699 | 7987 | else |
e6cc62c6 | 7988 | |
360d6699 VZ |
7989 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7990 | if test "x$LINE" != x ; then | |
7991 | eval "DEFAULT_$LINE" | |
7992 | else | |
7993 | no_cache=1 | |
7994 | fi | |
7995 | ||
7996 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7997 | |
e6cc62c6 | 7998 | fi; |
360d6699 VZ |
7999 | |
8000 | eval "$ac_cv_use_tbarsmpl" | |
8001 | if test "$no_cache" != 1; then | |
8002 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8003 | fi | |
8004 | ||
8005 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8006 | echo "$as_me:$LINENO: result: yes" >&5 |
8007 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8008 | else |
e6cc62c6 VS |
8009 | echo "$as_me:$LINENO: result: no" >&5 |
8010 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8011 | fi |
e6cc62c6 | 8012 | |
360d6699 | 8013 | |
5005acfe | 8014 | enablestring= |
e6cc62c6 VS |
8015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8016 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8017 | no_cache=0 |
8018 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8019 | if test "${enable_treectrl+set}" = set; then | |
8020 | enableval="$enable_treectrl" | |
e6cc62c6 | 8021 | |
10f2d63a VZ |
8022 | if test "$enableval" = yes; then |
8023 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8024 | else | |
8025 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8026 | fi | |
e6cc62c6 | 8027 | |
10f2d63a | 8028 | else |
e6cc62c6 | 8029 | |
10f2d63a VZ |
8030 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8031 | if test "x$LINE" != x ; then | |
8032 | eval "DEFAULT_$LINE" | |
8033 | else | |
8034 | no_cache=1 | |
8035 | fi | |
8036 | ||
8037 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8038 | |
e6cc62c6 | 8039 | fi; |
10f2d63a | 8040 | |
1e6feb95 VZ |
8041 | eval "$ac_cv_use_treectrl" |
8042 | if test "$no_cache" != 1; then | |
8043 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8044 | fi | |
8045 | ||
8046 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8047 | echo "$as_me:$LINENO: result: yes" >&5 |
8048 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8049 | else |
e6cc62c6 VS |
8050 | echo "$as_me:$LINENO: result: no" >&5 |
8051 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8052 | fi |
e6cc62c6 | 8053 | |
1e6feb95 | 8054 | |
5005acfe | 8055 | enablestring= |
e6cc62c6 VS |
8056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8057 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8058 | no_cache=0 |
8059 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8060 | if test "${enable_tipwindow+set}" = set; then | |
8061 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8062 | |
9926e4a4 VZ |
8063 | if test "$enableval" = yes; then |
8064 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8065 | else | |
8066 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8067 | fi | |
e6cc62c6 | 8068 | |
9926e4a4 | 8069 | else |
e6cc62c6 | 8070 | |
9926e4a4 VZ |
8071 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8072 | if test "x$LINE" != x ; then | |
8073 | eval "DEFAULT_$LINE" | |
8074 | else | |
8075 | no_cache=1 | |
8076 | fi | |
8077 | ||
8078 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8079 | |
e6cc62c6 | 8080 | fi; |
9926e4a4 VZ |
8081 | |
8082 | eval "$ac_cv_use_tipwindow" | |
8083 | if test "$no_cache" != 1; then | |
8084 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8085 | fi | |
8086 | ||
8087 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8088 | echo "$as_me:$LINENO: result: yes" >&5 |
8089 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8090 | else |
e6cc62c6 VS |
8091 | echo "$as_me:$LINENO: result: no" >&5 |
8092 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8093 | fi |
e6cc62c6 | 8094 | |
9926e4a4 | 8095 | |
5005acfe | 8096 | enablestring= |
e6cc62c6 VS |
8097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8098 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8099 | no_cache=0 |
8100 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8101 | if test "${enable_popupwin+set}" = set; then | |
8102 | enableval="$enable_popupwin" | |
e6cc62c6 | 8103 | |
9f41d601 RR |
8104 | if test "$enableval" = yes; then |
8105 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8106 | else | |
8107 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8108 | fi | |
e6cc62c6 | 8109 | |
9f41d601 | 8110 | else |
e6cc62c6 | 8111 | |
9f41d601 RR |
8112 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8113 | if test "x$LINE" != x ; then | |
8114 | eval "DEFAULT_$LINE" | |
8115 | else | |
8116 | no_cache=1 | |
8117 | fi | |
8118 | ||
8119 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8120 | |
e6cc62c6 | 8121 | fi; |
9f41d601 RR |
8122 | |
8123 | eval "$ac_cv_use_popupwin" | |
8124 | if test "$no_cache" != 1; then | |
8125 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8126 | fi | |
8127 | ||
8128 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8129 | echo "$as_me:$LINENO: result: yes" >&5 |
8130 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8131 | else |
e6cc62c6 VS |
8132 | echo "$as_me:$LINENO: result: no" >&5 |
8133 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8134 | fi |
e6cc62c6 | 8135 | |
52127426 | 8136 | |
8284b0c5 MB |
8137 | |
8138 | ||
5005acfe | 8139 | enablestring= |
e6cc62c6 VS |
8140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8141 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8142 | no_cache=0 |
8143 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8144 | if test "${enable_commondlg+set}" = set; then | |
8145 | enableval="$enable_commondlg" | |
e6cc62c6 | 8146 | |
1e6feb95 VZ |
8147 | if test "$enableval" = yes; then |
8148 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8149 | else | |
8150 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8151 | fi | |
e6cc62c6 | 8152 | |
1e6feb95 | 8153 | else |
e6cc62c6 | 8154 | |
1e6feb95 VZ |
8155 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8156 | if test "x$LINE" != x ; then | |
8157 | eval "DEFAULT_$LINE" | |
8158 | else | |
8159 | no_cache=1 | |
8160 | fi | |
8161 | ||
8162 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8163 | |
e6cc62c6 | 8164 | fi; |
1e6feb95 VZ |
8165 | |
8166 | eval "$ac_cv_use_commondlg" | |
8167 | if test "$no_cache" != 1; then | |
8168 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8169 | fi | |
8170 | ||
8171 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8172 | echo "$as_me:$LINENO: result: yes" >&5 |
8173 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8174 | else |
e6cc62c6 VS |
8175 | echo "$as_me:$LINENO: result: no" >&5 |
8176 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8177 | fi |
e6cc62c6 | 8178 | |
1e6feb95 | 8179 | |
5005acfe | 8180 | enablestring= |
e6cc62c6 VS |
8181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8182 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8183 | no_cache=0 |
8184 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8185 | if test "${enable_choicedlg+set}" = set; then | |
8186 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8187 | |
1e6feb95 VZ |
8188 | if test "$enableval" = yes; then |
8189 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8190 | else | |
8191 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8192 | fi | |
e6cc62c6 | 8193 | |
1e6feb95 | 8194 | else |
e6cc62c6 | 8195 | |
1e6feb95 VZ |
8196 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8197 | if test "x$LINE" != x ; then | |
8198 | eval "DEFAULT_$LINE" | |
8199 | else | |
8200 | no_cache=1 | |
8201 | fi | |
8202 | ||
8203 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8204 | |
e6cc62c6 | 8205 | fi; |
1e6feb95 VZ |
8206 | |
8207 | eval "$ac_cv_use_choicedlg" | |
8208 | if test "$no_cache" != 1; then | |
8209 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8210 | fi | |
8211 | ||
8212 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8213 | echo "$as_me:$LINENO: result: yes" >&5 |
8214 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8215 | else |
e6cc62c6 VS |
8216 | echo "$as_me:$LINENO: result: no" >&5 |
8217 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8218 | fi |
e6cc62c6 | 8219 | |
1e6feb95 | 8220 | |
5005acfe | 8221 | enablestring= |
e6cc62c6 VS |
8222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8223 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8224 | no_cache=0 |
8225 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8226 | if test "${enable_coldlg+set}" = set; then | |
8227 | enableval="$enable_coldlg" | |
e6cc62c6 | 8228 | |
1e6feb95 VZ |
8229 | if test "$enableval" = yes; then |
8230 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8231 | else | |
8232 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8233 | fi | |
e6cc62c6 | 8234 | |
1e6feb95 | 8235 | else |
e6cc62c6 | 8236 | |
1e6feb95 VZ |
8237 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8238 | if test "x$LINE" != x ; then | |
8239 | eval "DEFAULT_$LINE" | |
8240 | else | |
8241 | no_cache=1 | |
8242 | fi | |
8243 | ||
8244 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8245 | |
e6cc62c6 | 8246 | fi; |
1e6feb95 VZ |
8247 | |
8248 | eval "$ac_cv_use_coldlg" | |
8249 | if test "$no_cache" != 1; then | |
8250 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8251 | fi | |
8252 | ||
8253 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8254 | echo "$as_me:$LINENO: result: yes" >&5 |
8255 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8256 | else |
e6cc62c6 VS |
8257 | echo "$as_me:$LINENO: result: no" >&5 |
8258 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8259 | fi |
e6cc62c6 | 8260 | |
1e6feb95 | 8261 | |
5005acfe | 8262 | enablestring= |
e6cc62c6 VS |
8263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8264 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8265 | no_cache=0 |
8266 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8267 | if test "${enable_filedlg+set}" = set; then | |
8268 | enableval="$enable_filedlg" | |
e6cc62c6 | 8269 | |
1e6feb95 VZ |
8270 | if test "$enableval" = yes; then |
8271 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8272 | else | |
8273 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8274 | fi | |
e6cc62c6 | 8275 | |
1e6feb95 | 8276 | else |
e6cc62c6 | 8277 | |
1e6feb95 VZ |
8278 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8279 | if test "x$LINE" != x ; then | |
8280 | eval "DEFAULT_$LINE" | |
8281 | else | |
8282 | no_cache=1 | |
8283 | fi | |
8284 | ||
8285 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8286 | |
e6cc62c6 | 8287 | fi; |
1e6feb95 VZ |
8288 | |
8289 | eval "$ac_cv_use_filedlg" | |
8290 | if test "$no_cache" != 1; then | |
8291 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8292 | fi | |
8293 | ||
8294 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8295 | echo "$as_me:$LINENO: result: yes" >&5 |
8296 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8297 | else |
e6cc62c6 VS |
8298 | echo "$as_me:$LINENO: result: no" >&5 |
8299 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8300 | fi |
e6cc62c6 | 8301 | |
1e6feb95 | 8302 | |
5005acfe | 8303 | enablestring= |
e6cc62c6 VS |
8304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8305 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8306 | no_cache=0 |
69d27ff7 MB |
8307 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8308 | if test "${enable_finddlg+set}" = set; then | |
8309 | enableval="$enable_finddlg" | |
e6cc62c6 | 8310 | |
8db37e06 | 8311 | if test "$enableval" = yes; then |
69d27ff7 | 8312 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8313 | else |
69d27ff7 | 8314 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8315 | fi |
e6cc62c6 | 8316 | |
8db37e06 | 8317 | else |
e6cc62c6 | 8318 | |
8db37e06 VZ |
8319 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8320 | if test "x$LINE" != x ; then | |
8321 | eval "DEFAULT_$LINE" | |
8322 | else | |
8323 | no_cache=1 | |
8324 | fi | |
8325 | ||
69d27ff7 | 8326 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8327 | |
e6cc62c6 | 8328 | fi; |
8db37e06 | 8329 | |
69d27ff7 | 8330 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8331 | if test "$no_cache" != 1; then |
69d27ff7 | 8332 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8333 | fi |
8334 | ||
8335 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8336 | echo "$as_me:$LINENO: result: yes" >&5 |
8337 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8338 | else |
e6cc62c6 VS |
8339 | echo "$as_me:$LINENO: result: no" >&5 |
8340 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8341 | fi |
e6cc62c6 | 8342 | |
8db37e06 | 8343 | |
5005acfe | 8344 | enablestring= |
e6cc62c6 VS |
8345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8346 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8347 | no_cache=0 |
8348 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8349 | if test "${enable_fontdlg+set}" = set; then | |
8350 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8351 | |
1e6feb95 VZ |
8352 | if test "$enableval" = yes; then |
8353 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8354 | else | |
8355 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8356 | fi | |
e6cc62c6 | 8357 | |
1e6feb95 | 8358 | else |
e6cc62c6 | 8359 | |
1e6feb95 VZ |
8360 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8361 | if test "x$LINE" != x ; then | |
8362 | eval "DEFAULT_$LINE" | |
8363 | else | |
8364 | no_cache=1 | |
8365 | fi | |
8366 | ||
8367 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8368 | |
e6cc62c6 | 8369 | fi; |
1e6feb95 VZ |
8370 | |
8371 | eval "$ac_cv_use_fontdlg" | |
8372 | if test "$no_cache" != 1; then | |
8373 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8374 | fi | |
8375 | ||
8376 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8377 | echo "$as_me:$LINENO: result: yes" >&5 |
8378 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8379 | else |
e6cc62c6 VS |
8380 | echo "$as_me:$LINENO: result: no" >&5 |
8381 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8382 | fi |
e6cc62c6 | 8383 | |
1e6feb95 | 8384 | |
5005acfe | 8385 | enablestring= |
e6cc62c6 VS |
8386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8387 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8388 | no_cache=0 |
8389 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8390 | if test "${enable_dirdlg+set}" = set; then | |
8391 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8392 | |
1e6feb95 VZ |
8393 | if test "$enableval" = yes; then |
8394 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8395 | else | |
8396 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8397 | fi | |
e6cc62c6 | 8398 | |
1e6feb95 | 8399 | else |
e6cc62c6 | 8400 | |
1e6feb95 VZ |
8401 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8402 | if test "x$LINE" != x ; then | |
8403 | eval "DEFAULT_$LINE" | |
8404 | else | |
8405 | no_cache=1 | |
8406 | fi | |
8407 | ||
8408 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8409 | |
e6cc62c6 | 8410 | fi; |
1e6feb95 VZ |
8411 | |
8412 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8413 | if test "$no_cache" != 1; then |
1e6feb95 | 8414 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8415 | fi |
8416 | ||
1e6feb95 | 8417 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8418 | echo "$as_me:$LINENO: result: yes" >&5 |
8419 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8420 | else |
e6cc62c6 VS |
8421 | echo "$as_me:$LINENO: result: no" >&5 |
8422 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8423 | fi |
e6cc62c6 | 8424 | |
698dcdb6 | 8425 | |
5005acfe | 8426 | enablestring= |
e6cc62c6 VS |
8427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8428 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8429 | no_cache=0 |
1e6feb95 VZ |
8430 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8431 | if test "${enable_msgdlg+set}" = set; then | |
8432 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8433 | |
10f2d63a | 8434 | if test "$enableval" = yes; then |
1e6feb95 | 8435 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8436 | else |
1e6feb95 | 8437 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8438 | fi |
e6cc62c6 | 8439 | |
10f2d63a | 8440 | else |
e6cc62c6 | 8441 | |
1e6feb95 | 8442 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8443 | if test "x$LINE" != x ; then |
8444 | eval "DEFAULT_$LINE" | |
8445 | else | |
8446 | no_cache=1 | |
8447 | fi | |
8448 | ||
1e6feb95 | 8449 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8450 | |
e6cc62c6 | 8451 | fi; |
10f2d63a | 8452 | |
1e6feb95 | 8453 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8454 | if test "$no_cache" != 1; then |
1e6feb95 | 8455 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8456 | fi |
8457 | ||
1e6feb95 | 8458 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8459 | echo "$as_me:$LINENO: result: yes" >&5 |
8460 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8461 | else |
e6cc62c6 VS |
8462 | echo "$as_me:$LINENO: result: no" >&5 |
8463 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8464 | fi |
e6cc62c6 | 8465 | |
10f2d63a | 8466 | |
5005acfe | 8467 | enablestring= |
e6cc62c6 VS |
8468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8469 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8470 | no_cache=0 |
1e6feb95 VZ |
8471 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8472 | if test "${enable_numberdlg+set}" = set; then | |
8473 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8474 | |
10f2d63a | 8475 | if test "$enableval" = yes; then |
1e6feb95 | 8476 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8477 | else |
1e6feb95 | 8478 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8479 | fi |
e6cc62c6 | 8480 | |
10f2d63a | 8481 | else |
e6cc62c6 | 8482 | |
1e6feb95 | 8483 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8484 | if test "x$LINE" != x ; then |
8485 | eval "DEFAULT_$LINE" | |
8486 | else | |
8487 | no_cache=1 | |
8488 | fi | |
8489 | ||
1e6feb95 | 8490 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8491 | |
e6cc62c6 | 8492 | fi; |
10f2d63a | 8493 | |
1e6feb95 | 8494 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8495 | if test "$no_cache" != 1; then |
1e6feb95 | 8496 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8497 | fi |
8498 | ||
1e6feb95 | 8499 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8500 | echo "$as_me:$LINENO: result: yes" >&5 |
8501 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8502 | else |
e6cc62c6 VS |
8503 | echo "$as_me:$LINENO: result: no" >&5 |
8504 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8505 | fi |
e6cc62c6 | 8506 | |
10f2d63a | 8507 | |
5005acfe | 8508 | enablestring= |
e6cc62c6 VS |
8509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8510 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8511 | no_cache=0 |
8512 | # Check whether --enable-splash or --disable-splash was given. | |
8513 | if test "${enable_splash+set}" = set; then | |
8514 | enableval="$enable_splash" | |
e6cc62c6 | 8515 | |
cbca9943 VZ |
8516 | if test "$enableval" = yes; then |
8517 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8518 | else | |
8519 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8520 | fi | |
e6cc62c6 | 8521 | |
cbca9943 | 8522 | else |
e6cc62c6 | 8523 | |
cbca9943 VZ |
8524 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8525 | if test "x$LINE" != x ; then | |
8526 | eval "DEFAULT_$LINE" | |
8527 | else | |
8528 | no_cache=1 | |
8529 | fi | |
8530 | ||
8531 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8532 | |
e6cc62c6 | 8533 | fi; |
cbca9943 VZ |
8534 | |
8535 | eval "$ac_cv_use_splash" | |
8536 | if test "$no_cache" != 1; then | |
8537 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8538 | fi | |
8539 | ||
8540 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8541 | echo "$as_me:$LINENO: result: yes" >&5 |
8542 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8543 | else |
e6cc62c6 VS |
8544 | echo "$as_me:$LINENO: result: no" >&5 |
8545 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8546 | fi |
e6cc62c6 | 8547 | |
cbca9943 | 8548 | |
5005acfe | 8549 | enablestring= |
e6cc62c6 VS |
8550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8551 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8552 | no_cache=0 |
8553 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8554 | if test "${enable_textdlg+set}" = set; then | |
8555 | enableval="$enable_textdlg" | |
e6cc62c6 | 8556 | |
10f2d63a VZ |
8557 | if test "$enableval" = yes; then |
8558 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8559 | else | |
8560 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8561 | fi | |
e6cc62c6 | 8562 | |
10f2d63a | 8563 | else |
e6cc62c6 | 8564 | |
10f2d63a VZ |
8565 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8566 | if test "x$LINE" != x ; then | |
8567 | eval "DEFAULT_$LINE" | |
8568 | else | |
8569 | no_cache=1 | |
8570 | fi | |
8571 | ||
8572 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8573 | |
e6cc62c6 | 8574 | fi; |
10f2d63a VZ |
8575 | |
8576 | eval "$ac_cv_use_textdlg" | |
8577 | if test "$no_cache" != 1; then | |
8578 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8579 | fi | |
8580 | ||
8581 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8582 | echo "$as_me:$LINENO: result: yes" >&5 |
8583 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8584 | else |
e6cc62c6 VS |
8585 | echo "$as_me:$LINENO: result: no" >&5 |
8586 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8587 | fi |
e6cc62c6 | 8588 | |
10f2d63a | 8589 | |
5005acfe | 8590 | enablestring= |
e6cc62c6 VS |
8591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8592 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8593 | no_cache=0 |
8594 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8595 | if test "${enable_tipdlg+set}" = set; then | |
8596 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8597 | |
10f2d63a VZ |
8598 | if test "$enableval" = yes; then |
8599 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8600 | else | |
8601 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8602 | fi | |
e6cc62c6 | 8603 | |
10f2d63a | 8604 | else |
e6cc62c6 | 8605 | |
10f2d63a VZ |
8606 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8607 | if test "x$LINE" != x ; then | |
8608 | eval "DEFAULT_$LINE" | |
8609 | else | |
8610 | no_cache=1 | |
8611 | fi | |
8612 | ||
8613 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8614 | |
e6cc62c6 | 8615 | fi; |
10f2d63a VZ |
8616 | |
8617 | eval "$ac_cv_use_tipdlg" | |
8618 | if test "$no_cache" != 1; then | |
8619 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8620 | fi | |
8621 | ||
8622 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8623 | echo "$as_me:$LINENO: result: yes" >&5 |
8624 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8625 | else |
e6cc62c6 VS |
8626 | echo "$as_me:$LINENO: result: no" >&5 |
8627 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8628 | fi |
e6cc62c6 | 8629 | |
10f2d63a | 8630 | |
5005acfe | 8631 | enablestring= |
e6cc62c6 VS |
8632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8633 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8634 | no_cache=0 |
8635 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8636 | if test "${enable_progressdlg+set}" = set; then | |
8637 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8638 | |
10f2d63a VZ |
8639 | if test "$enableval" = yes; then |
8640 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8641 | else | |
8642 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8643 | fi | |
e6cc62c6 | 8644 | |
10f2d63a | 8645 | else |
e6cc62c6 | 8646 | |
10f2d63a VZ |
8647 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8648 | if test "x$LINE" != x ; then | |
8649 | eval "DEFAULT_$LINE" | |
8650 | else | |
8651 | no_cache=1 | |
8652 | fi | |
8653 | ||
8654 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8655 | |
e6cc62c6 | 8656 | fi; |
10f2d63a VZ |
8657 | |
8658 | eval "$ac_cv_use_progressdlg" | |
8659 | if test "$no_cache" != 1; then | |
8660 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8661 | fi | |
8662 | ||
8663 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8664 | echo "$as_me:$LINENO: result: yes" >&5 |
8665 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8666 | else |
e6cc62c6 VS |
8667 | echo "$as_me:$LINENO: result: no" >&5 |
8668 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8669 | fi |
e6cc62c6 | 8670 | |
10f2d63a | 8671 | |
5005acfe | 8672 | enablestring= |
e6cc62c6 VS |
8673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8674 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8675 | no_cache=0 |
8676 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8677 | if test "${enable_wizarddlg+set}" = set; then | |
8678 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8679 | |
b1f5d087 VZ |
8680 | if test "$enableval" = yes; then |
8681 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8682 | else | |
8683 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8684 | fi | |
e6cc62c6 | 8685 | |
b1f5d087 | 8686 | else |
e6cc62c6 | 8687 | |
b1f5d087 VZ |
8688 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8689 | if test "x$LINE" != x ; then | |
8690 | eval "DEFAULT_$LINE" | |
8691 | else | |
8692 | no_cache=1 | |
8693 | fi | |
8694 | ||
8695 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8696 | |
e6cc62c6 | 8697 | fi; |
b1f5d087 VZ |
8698 | |
8699 | eval "$ac_cv_use_wizarddlg" | |
8700 | if test "$no_cache" != 1; then | |
8701 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8702 | fi | |
8703 | ||
8704 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8705 | echo "$as_me:$LINENO: result: yes" >&5 |
8706 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8707 | else |
e6cc62c6 VS |
8708 | echo "$as_me:$LINENO: result: no" >&5 |
8709 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8710 | fi |
e6cc62c6 | 8711 | |
8284b0c5 MB |
8712 | |
8713 | ||
52127426 | 8714 | |
5005acfe | 8715 | enablestring= |
e6cc62c6 VS |
8716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8717 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8718 | no_cache=0 |
8719 | # Check whether --enable-menus or --disable-menus was given. | |
8720 | if test "${enable_menus+set}" = set; then | |
8721 | enableval="$enable_menus" | |
e6cc62c6 | 8722 | |
1e6feb95 VZ |
8723 | if test "$enableval" = yes; then |
8724 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8725 | else | |
8726 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8727 | fi | |
e6cc62c6 | 8728 | |
1e6feb95 | 8729 | else |
e6cc62c6 | 8730 | |
1e6feb95 VZ |
8731 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8732 | if test "x$LINE" != x ; then | |
8733 | eval "DEFAULT_$LINE" | |
8734 | else | |
8735 | no_cache=1 | |
8736 | fi | |
8737 | ||
8738 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8739 | |
e6cc62c6 | 8740 | fi; |
1e6feb95 VZ |
8741 | |
8742 | eval "$ac_cv_use_menus" | |
8743 | if test "$no_cache" != 1; then | |
8744 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8745 | fi | |
8746 | ||
8747 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8748 | echo "$as_me:$LINENO: result: yes" >&5 |
8749 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8750 | else |
e6cc62c6 VS |
8751 | echo "$as_me:$LINENO: result: no" >&5 |
8752 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8753 | fi |
e6cc62c6 | 8754 | |
1e6feb95 | 8755 | |
5005acfe | 8756 | enablestring= |
e6cc62c6 VS |
8757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8758 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8759 | no_cache=0 |
8760 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8761 | if test "${enable_miniframe+set}" = set; then | |
8762 | enableval="$enable_miniframe" | |
e6cc62c6 | 8763 | |
10f2d63a VZ |
8764 | if test "$enableval" = yes; then |
8765 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8766 | else | |
8767 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8768 | fi | |
e6cc62c6 | 8769 | |
10f2d63a | 8770 | else |
e6cc62c6 | 8771 | |
10f2d63a VZ |
8772 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8773 | if test "x$LINE" != x ; then | |
8774 | eval "DEFAULT_$LINE" | |
8775 | else | |
8776 | no_cache=1 | |
8777 | fi | |
8778 | ||
8779 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8780 | |
e6cc62c6 | 8781 | fi; |
10f2d63a VZ |
8782 | |
8783 | eval "$ac_cv_use_miniframe" | |
8784 | if test "$no_cache" != 1; then | |
8785 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8786 | fi | |
8787 | ||
8788 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8789 | echo "$as_me:$LINENO: result: yes" >&5 |
8790 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8791 | else |
e6cc62c6 VS |
8792 | echo "$as_me:$LINENO: result: no" >&5 |
8793 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8794 | fi |
e6cc62c6 | 8795 | |
10f2d63a | 8796 | |
5005acfe | 8797 | enablestring= |
e6cc62c6 VS |
8798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8799 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8800 | no_cache=0 |
8801 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8802 | if test "${enable_tooltips+set}" = set; then | |
8803 | enableval="$enable_tooltips" | |
e6cc62c6 | 8804 | |
10f2d63a VZ |
8805 | if test "$enableval" = yes; then |
8806 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8807 | else | |
8808 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8809 | fi | |
e6cc62c6 | 8810 | |
10f2d63a | 8811 | else |
e6cc62c6 | 8812 | |
10f2d63a VZ |
8813 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8814 | if test "x$LINE" != x ; then | |
8815 | eval "DEFAULT_$LINE" | |
8816 | else | |
8817 | no_cache=1 | |
8818 | fi | |
8819 | ||
8820 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8821 | |
e6cc62c6 | 8822 | fi; |
10f2d63a VZ |
8823 | |
8824 | eval "$ac_cv_use_tooltips" | |
8825 | if test "$no_cache" != 1; then | |
8826 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8827 | fi | |
8828 | ||
8829 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8830 | echo "$as_me:$LINENO: result: yes" >&5 |
8831 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8832 | else |
e6cc62c6 VS |
8833 | echo "$as_me:$LINENO: result: no" >&5 |
8834 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8835 | fi |
e6cc62c6 | 8836 | |
10f2d63a | 8837 | |
5005acfe | 8838 | enablestring= |
e6cc62c6 VS |
8839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8840 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8841 | no_cache=0 |
8842 | # Check whether --enable-splines or --disable-splines was given. | |
8843 | if test "${enable_splines+set}" = set; then | |
8844 | enableval="$enable_splines" | |
e6cc62c6 | 8845 | |
10f2d63a VZ |
8846 | if test "$enableval" = yes; then |
8847 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8848 | else | |
8849 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8850 | fi | |
e6cc62c6 | 8851 | |
10f2d63a | 8852 | else |
e6cc62c6 | 8853 | |
10f2d63a VZ |
8854 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8855 | if test "x$LINE" != x ; then | |
8856 | eval "DEFAULT_$LINE" | |
8857 | else | |
8858 | no_cache=1 | |
8859 | fi | |
8860 | ||
8861 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8862 | |
e6cc62c6 | 8863 | fi; |
10f2d63a VZ |
8864 | |
8865 | eval "$ac_cv_use_splines" | |
8866 | if test "$no_cache" != 1; then | |
8867 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8868 | fi | |
8869 | ||
8870 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8871 | echo "$as_me:$LINENO: result: yes" >&5 |
8872 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8873 | else |
e6cc62c6 VS |
8874 | echo "$as_me:$LINENO: result: no" >&5 |
8875 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8876 | fi |
e6cc62c6 | 8877 | |
10f2d63a | 8878 | |
5005acfe | 8879 | enablestring= |
e6cc62c6 VS |
8880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8881 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8882 | no_cache=0 |
8883 | # Check whether --enable-validators or --disable-validators was given. | |
8884 | if test "${enable_validators+set}" = set; then | |
8885 | enableval="$enable_validators" | |
e6cc62c6 | 8886 | |
10f2d63a VZ |
8887 | if test "$enableval" = yes; then |
8888 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8889 | else | |
8890 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8891 | fi | |
e6cc62c6 | 8892 | |
10f2d63a | 8893 | else |
e6cc62c6 | 8894 | |
10f2d63a VZ |
8895 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8896 | if test "x$LINE" != x ; then | |
8897 | eval "DEFAULT_$LINE" | |
8898 | else | |
8899 | no_cache=1 | |
8900 | fi | |
8901 | ||
8902 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8903 | |
e6cc62c6 | 8904 | fi; |
10f2d63a VZ |
8905 | |
8906 | eval "$ac_cv_use_validators" | |
8907 | if test "$no_cache" != 1; then | |
8908 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8909 | fi | |
8910 | ||
8911 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8912 | echo "$as_me:$LINENO: result: yes" >&5 |
8913 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8914 | else |
e6cc62c6 VS |
8915 | echo "$as_me:$LINENO: result: no" >&5 |
8916 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8917 | fi |
e6cc62c6 | 8918 | |
10f2d63a | 8919 | |
5005acfe | 8920 | enablestring= |
e6cc62c6 VS |
8921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8922 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8923 | no_cache=0 |
8924 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8925 | if test "${enable_busyinfo+set}" = set; then | |
8926 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8927 | |
10f2d63a VZ |
8928 | if test "$enableval" = yes; then |
8929 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8930 | else | |
8931 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8932 | fi | |
e6cc62c6 | 8933 | |
10f2d63a | 8934 | else |
e6cc62c6 | 8935 | |
10f2d63a VZ |
8936 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8937 | if test "x$LINE" != x ; then | |
8938 | eval "DEFAULT_$LINE" | |
8939 | else | |
8940 | no_cache=1 | |
8941 | fi | |
8942 | ||
8943 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8944 | |
e6cc62c6 | 8945 | fi; |
10f2d63a VZ |
8946 | |
8947 | eval "$ac_cv_use_busyinfo" | |
8948 | if test "$no_cache" != 1; then | |
8949 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8950 | fi | |
8951 | ||
8952 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8953 | echo "$as_me:$LINENO: result: yes" >&5 |
8954 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8955 | else |
e6cc62c6 VS |
8956 | echo "$as_me:$LINENO: result: no" >&5 |
8957 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8958 | fi |
e6cc62c6 | 8959 | |
10f2d63a | 8960 | |
5005acfe | 8961 | enablestring= |
e6cc62c6 VS |
8962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8963 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8964 | no_cache=0 |
8965 | # Check whether --enable-joystick or --disable-joystick was given. | |
8966 | if test "${enable_joystick+set}" = set; then | |
8967 | enableval="$enable_joystick" | |
e6cc62c6 | 8968 | |
f6bcfd97 BP |
8969 | if test "$enableval" = yes; then |
8970 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8971 | else | |
8972 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8973 | fi | |
e6cc62c6 | 8974 | |
f6bcfd97 | 8975 | else |
e6cc62c6 | 8976 | |
f6bcfd97 BP |
8977 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8978 | if test "x$LINE" != x ; then | |
8979 | eval "DEFAULT_$LINE" | |
8980 | else | |
8981 | no_cache=1 | |
8982 | fi | |
8983 | ||
8984 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8985 | |
e6cc62c6 | 8986 | fi; |
f6bcfd97 BP |
8987 | |
8988 | eval "$ac_cv_use_joystick" | |
8989 | if test "$no_cache" != 1; then | |
8990 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8991 | fi | |
8992 | ||
8993 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8994 | echo "$as_me:$LINENO: result: yes" >&5 |
8995 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8996 | else |
e6cc62c6 VS |
8997 | echo "$as_me:$LINENO: result: no" >&5 |
8998 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8999 | fi |
e6cc62c6 | 9000 | |
698dcdb6 | 9001 | |
5005acfe | 9002 | enablestring= |
e6cc62c6 VS |
9003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9004 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9005 | no_cache=0 |
9006 | # Check whether --enable-metafile or --disable-metafile was given. | |
9007 | if test "${enable_metafile+set}" = set; then | |
9008 | enableval="$enable_metafile" | |
e6cc62c6 | 9009 | |
1e6feb95 VZ |
9010 | if test "$enableval" = yes; then |
9011 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9012 | else | |
9013 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9014 | fi | |
e6cc62c6 | 9015 | |
1e6feb95 | 9016 | else |
e6cc62c6 | 9017 | |
1e6feb95 VZ |
9018 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9019 | if test "x$LINE" != x ; then | |
9020 | eval "DEFAULT_$LINE" | |
9021 | else | |
9022 | no_cache=1 | |
9023 | fi | |
9024 | ||
9025 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9026 | |
e6cc62c6 | 9027 | fi; |
1e6feb95 VZ |
9028 | |
9029 | eval "$ac_cv_use_metafile" | |
9030 | if test "$no_cache" != 1; then | |
9031 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9032 | fi | |
9033 | ||
9034 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9035 | echo "$as_me:$LINENO: result: yes" >&5 |
9036 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9037 | else |
e6cc62c6 VS |
9038 | echo "$as_me:$LINENO: result: no" >&5 |
9039 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9040 | fi |
e6cc62c6 | 9041 | |
1e6feb95 | 9042 | |
5005acfe | 9043 | enablestring= |
e6cc62c6 VS |
9044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9045 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9046 | no_cache=0 |
9047 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9048 | if test "${enable_dragimage+set}" = set; then | |
9049 | enableval="$enable_dragimage" | |
e6cc62c6 | 9050 | |
24fd6d87 VZ |
9051 | if test "$enableval" = yes; then |
9052 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9053 | else | |
9054 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9055 | fi | |
e6cc62c6 | 9056 | |
24fd6d87 | 9057 | else |
e6cc62c6 | 9058 | |
24fd6d87 VZ |
9059 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9060 | if test "x$LINE" != x ; then | |
9061 | eval "DEFAULT_$LINE" | |
9062 | else | |
9063 | no_cache=1 | |
9064 | fi | |
9065 | ||
9066 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9067 | |
e6cc62c6 | 9068 | fi; |
24fd6d87 VZ |
9069 | |
9070 | eval "$ac_cv_use_dragimage" | |
9071 | if test "$no_cache" != 1; then | |
9072 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9073 | fi | |
9074 | ||
9075 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9076 | echo "$as_me:$LINENO: result: yes" >&5 |
9077 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9078 | else |
e6cc62c6 VS |
9079 | echo "$as_me:$LINENO: result: no" >&5 |
9080 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9081 | fi |
e6cc62c6 | 9082 | |
52127426 | 9083 | |
7bb2947d | 9084 | enablestring= |
e6cc62c6 VS |
9085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9086 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9087 | no_cache=0 |
9088 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9089 | if test "${enable_accessibility+set}" = set; then | |
9090 | enableval="$enable_accessibility" | |
e6cc62c6 | 9091 | |
7bb2947d MB |
9092 | if test "$enableval" = yes; then |
9093 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9094 | else | |
9095 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9096 | fi | |
e6cc62c6 | 9097 | |
7bb2947d | 9098 | else |
e6cc62c6 | 9099 | |
7bb2947d MB |
9100 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9101 | if test "x$LINE" != x ; then | |
9102 | eval "DEFAULT_$LINE" | |
9103 | else | |
9104 | no_cache=1 | |
9105 | fi | |
9106 | ||
9107 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9108 | |
e6cc62c6 | 9109 | fi; |
7bb2947d MB |
9110 | |
9111 | eval "$ac_cv_use_accessibility" | |
9112 | if test "$no_cache" != 1; then | |
9113 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9114 | fi | |
9115 | ||
9116 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9117 | echo "$as_me:$LINENO: result: yes" >&5 |
9118 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9119 | else |
e6cc62c6 VS |
9120 | echo "$as_me:$LINENO: result: no" >&5 |
9121 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9122 | fi |
e6cc62c6 | 9123 | |
7bb2947d | 9124 | |
8284b0c5 MB |
9125 | |
9126 | ||
5005acfe | 9127 | enablestring= |
e6cc62c6 VS |
9128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9129 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9130 | no_cache=0 |
9131 | # Check whether --enable-palette or --disable-palette was given. | |
9132 | if test "${enable_palette+set}" = set; then | |
9133 | enableval="$enable_palette" | |
e6cc62c6 | 9134 | |
edae8572 VZ |
9135 | if test "$enableval" = yes; then |
9136 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9137 | else | |
9138 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9139 | fi | |
e6cc62c6 | 9140 | |
edae8572 | 9141 | else |
e6cc62c6 | 9142 | |
edae8572 VZ |
9143 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9144 | if test "x$LINE" != x ; then | |
9145 | eval "DEFAULT_$LINE" | |
9146 | else | |
9147 | no_cache=1 | |
9148 | fi | |
9149 | ||
9150 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9151 | |
e6cc62c6 | 9152 | fi; |
edae8572 VZ |
9153 | |
9154 | eval "$ac_cv_use_palette" | |
9155 | if test "$no_cache" != 1; then | |
9156 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9157 | fi | |
9158 | ||
9159 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9160 | echo "$as_me:$LINENO: result: yes" >&5 |
9161 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9162 | else |
e6cc62c6 VS |
9163 | echo "$as_me:$LINENO: result: no" >&5 |
9164 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9165 | fi |
e6cc62c6 | 9166 | |
edae8572 | 9167 | |
5005acfe | 9168 | enablestring= |
e6cc62c6 VS |
9169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9170 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9171 | no_cache=0 |
9172 | # Check whether --enable-image or --disable-image was given. | |
9173 | if test "${enable_image+set}" = set; then | |
9174 | enableval="$enable_image" | |
e6cc62c6 | 9175 | |
0046ff7c VS |
9176 | if test "$enableval" = yes; then |
9177 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9178 | else | |
9179 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9180 | fi | |
e6cc62c6 | 9181 | |
0046ff7c | 9182 | else |
e6cc62c6 | 9183 | |
0046ff7c VS |
9184 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9185 | if test "x$LINE" != x ; then | |
9186 | eval "DEFAULT_$LINE" | |
9187 | else | |
9188 | no_cache=1 | |
9189 | fi | |
9190 | ||
9191 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9192 | |
e6cc62c6 | 9193 | fi; |
0046ff7c VS |
9194 | |
9195 | eval "$ac_cv_use_image" | |
9196 | if test "$no_cache" != 1; then | |
9197 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9198 | fi | |
9199 | ||
9200 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9201 | echo "$as_me:$LINENO: result: yes" >&5 |
9202 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9203 | else |
e6cc62c6 VS |
9204 | echo "$as_me:$LINENO: result: no" >&5 |
9205 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9206 | fi |
e6cc62c6 | 9207 | |
0046ff7c | 9208 | |
5005acfe | 9209 | enablestring= |
e6cc62c6 VS |
9210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9211 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9212 | no_cache=0 |
9213 | # Check whether --enable-gif or --disable-gif was given. | |
9214 | if test "${enable_gif+set}" = set; then | |
9215 | enableval="$enable_gif" | |
e6cc62c6 | 9216 | |
10f2d63a VZ |
9217 | if test "$enableval" = yes; then |
9218 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9219 | else | |
9220 | ac_cv_use_gif='wxUSE_GIF=no' | |
9221 | fi | |
e6cc62c6 | 9222 | |
10f2d63a | 9223 | else |
e6cc62c6 | 9224 | |
10f2d63a VZ |
9225 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9226 | if test "x$LINE" != x ; then | |
9227 | eval "DEFAULT_$LINE" | |
9228 | else | |
9229 | no_cache=1 | |
9230 | fi | |
9231 | ||
9232 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9233 | |
e6cc62c6 | 9234 | fi; |
10f2d63a VZ |
9235 | |
9236 | eval "$ac_cv_use_gif" | |
9237 | if test "$no_cache" != 1; then | |
9238 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9239 | fi | |
9240 | ||
9241 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9242 | echo "$as_me:$LINENO: result: yes" >&5 |
9243 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9244 | else |
e6cc62c6 VS |
9245 | echo "$as_me:$LINENO: result: no" >&5 |
9246 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9247 | fi |
e6cc62c6 | 9248 | |
10f2d63a | 9249 | |
5005acfe | 9250 | enablestring= |
e6cc62c6 VS |
9251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9252 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9253 | no_cache=0 |
9254 | # Check whether --enable-pcx or --disable-pcx was given. | |
9255 | if test "${enable_pcx+set}" = set; then | |
9256 | enableval="$enable_pcx" | |
e6cc62c6 | 9257 | |
10f2d63a VZ |
9258 | if test "$enableval" = yes; then |
9259 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9260 | else | |
9261 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9262 | fi | |
e6cc62c6 | 9263 | |
10f2d63a | 9264 | else |
e6cc62c6 | 9265 | |
10f2d63a VZ |
9266 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9267 | if test "x$LINE" != x ; then | |
9268 | eval "DEFAULT_$LINE" | |
9269 | else | |
9270 | no_cache=1 | |
9271 | fi | |
9272 | ||
9273 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9274 | |
e6cc62c6 | 9275 | fi; |
10f2d63a VZ |
9276 | |
9277 | eval "$ac_cv_use_pcx" | |
9278 | if test "$no_cache" != 1; then | |
9279 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9280 | fi | |
9281 | ||
9282 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9283 | echo "$as_me:$LINENO: result: yes" >&5 |
9284 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9285 | else |
e6cc62c6 VS |
9286 | echo "$as_me:$LINENO: result: no" >&5 |
9287 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9288 | fi |
e6cc62c6 | 9289 | |
10f2d63a | 9290 | |
5005acfe | 9291 | enablestring= |
e6cc62c6 VS |
9292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9293 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9294 | no_cache=0 |
9295 | # Check whether --enable-iff or --disable-iff was given. | |
9296 | if test "${enable_iff+set}" = set; then | |
9297 | enableval="$enable_iff" | |
e6cc62c6 | 9298 | |
4b6b4dfc RR |
9299 | if test "$enableval" = yes; then |
9300 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9301 | else | |
9302 | ac_cv_use_iff='wxUSE_IFF=no' | |
9303 | fi | |
e6cc62c6 | 9304 | |
4b6b4dfc | 9305 | else |
e6cc62c6 | 9306 | |
4b6b4dfc RR |
9307 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9308 | if test "x$LINE" != x ; then | |
9309 | eval "DEFAULT_$LINE" | |
9310 | else | |
9311 | no_cache=1 | |
9312 | fi | |
9313 | ||
9314 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9315 | |
e6cc62c6 | 9316 | fi; |
4b6b4dfc RR |
9317 | |
9318 | eval "$ac_cv_use_iff" | |
9319 | if test "$no_cache" != 1; then | |
9320 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9321 | fi | |
9322 | ||
9323 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9324 | echo "$as_me:$LINENO: result: yes" >&5 |
9325 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9326 | else |
e6cc62c6 VS |
9327 | echo "$as_me:$LINENO: result: no" >&5 |
9328 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9329 | fi |
e6cc62c6 | 9330 | |
4b6b4dfc | 9331 | |
5005acfe | 9332 | enablestring= |
e6cc62c6 VS |
9333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9334 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9335 | no_cache=0 |
9336 | # Check whether --enable-pnm or --disable-pnm was given. | |
9337 | if test "${enable_pnm+set}" = set; then | |
9338 | enableval="$enable_pnm" | |
e6cc62c6 | 9339 | |
10f2d63a VZ |
9340 | if test "$enableval" = yes; then |
9341 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9342 | else | |
9343 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9344 | fi | |
e6cc62c6 | 9345 | |
10f2d63a | 9346 | else |
e6cc62c6 | 9347 | |
10f2d63a VZ |
9348 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9349 | if test "x$LINE" != x ; then | |
9350 | eval "DEFAULT_$LINE" | |
9351 | else | |
9352 | no_cache=1 | |
9353 | fi | |
9354 | ||
9355 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9356 | |
e6cc62c6 | 9357 | fi; |
10f2d63a VZ |
9358 | |
9359 | eval "$ac_cv_use_pnm" | |
9360 | if test "$no_cache" != 1; then | |
9361 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9362 | fi | |
9363 | ||
9364 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9365 | echo "$as_me:$LINENO: result: yes" >&5 |
9366 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9367 | else |
e6cc62c6 VS |
9368 | echo "$as_me:$LINENO: result: no" >&5 |
9369 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9370 | fi |
e6cc62c6 | 9371 | |
10f2d63a | 9372 | |
5005acfe | 9373 | enablestring= |
e6cc62c6 VS |
9374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9375 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9376 | no_cache=0 |
69d27ff7 MB |
9377 | # Check whether --enable-xpm or --disable-xpm was given. |
9378 | if test "${enable_xpm+set}" = set; then | |
9379 | enableval="$enable_xpm" | |
e6cc62c6 | 9380 | |
0046ff7c | 9381 | if test "$enableval" = yes; then |
69d27ff7 | 9382 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9383 | else |
69d27ff7 | 9384 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9385 | fi |
e6cc62c6 | 9386 | |
0046ff7c | 9387 | else |
e6cc62c6 | 9388 | |
0046ff7c VS |
9389 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9390 | if test "x$LINE" != x ; then | |
9391 | eval "DEFAULT_$LINE" | |
9392 | else | |
9393 | no_cache=1 | |
9394 | fi | |
9395 | ||
69d27ff7 | 9396 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9397 | |
e6cc62c6 | 9398 | fi; |
0046ff7c | 9399 | |
69d27ff7 | 9400 | eval "$ac_cv_use_xpm" |
0046ff7c | 9401 | if test "$no_cache" != 1; then |
69d27ff7 | 9402 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9403 | fi |
9404 | ||
9405 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9406 | echo "$as_me:$LINENO: result: yes" >&5 |
9407 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9408 | else |
e6cc62c6 VS |
9409 | echo "$as_me:$LINENO: result: no" >&5 |
9410 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9411 | fi |
e6cc62c6 | 9412 | |
0046ff7c | 9413 | |
5005acfe | 9414 | enablestring= |
e6cc62c6 VS |
9415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9416 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9417 | no_cache=0 |
c7206e64 VS |
9418 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9419 | if test "${enable_ico_cur+set}" = set; then | |
9420 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9421 | |
658974ae | 9422 | if test "$enableval" = yes; then |
c7206e64 | 9423 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9424 | else |
c7206e64 | 9425 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9426 | fi |
e6cc62c6 | 9427 | |
658974ae | 9428 | else |
e6cc62c6 | 9429 | |
658974ae VS |
9430 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9431 | if test "x$LINE" != x ; then | |
9432 | eval "DEFAULT_$LINE" | |
9433 | else | |
9434 | no_cache=1 | |
9435 | fi | |
9436 | ||
c7206e64 | 9437 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9438 | |
e6cc62c6 | 9439 | fi; |
658974ae | 9440 | |
c7206e64 | 9441 | eval "$ac_cv_use_ico_cur" |
658974ae | 9442 | if test "$no_cache" != 1; then |
c7206e64 | 9443 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9444 | fi |
9445 | ||
9446 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9447 | echo "$as_me:$LINENO: result: yes" >&5 |
9448 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9449 | else |
e6cc62c6 VS |
9450 | echo "$as_me:$LINENO: result: no" >&5 |
9451 | echo "${ECHO_T}no" >&6 | |
658974ae | 9452 | fi |
e6cc62c6 | 9453 | |
658974ae | 9454 | |
b12915c1 VZ |
9455 | fi |
9456 | ||
029b47ad VS |
9457 | |
9458 | ||
9459 | enablestring= | |
9460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9461 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9462 | no_cache=0 | |
9463 | # Check whether --enable-official_build or --disable-official_build was given. | |
9464 | if test "${enable_official_build+set}" = set; then | |
9465 | enableval="$enable_official_build" | |
9466 | ||
9467 | if test "$enableval" = yes; then | |
9468 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9469 | else | |
9470 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9471 | fi | |
9472 | ||
9473 | else | |
9474 | ||
9475 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9476 | if test "x$LINE" != x ; then | |
9477 | eval "DEFAULT_$LINE" | |
9478 | else | |
9479 | no_cache=1 | |
9480 | fi | |
9481 | ||
9482 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9483 | ||
9484 | fi; | |
9485 | ||
9486 | eval "$ac_cv_use_official_build" | |
9487 | if test "$no_cache" != 1; then | |
9488 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9489 | fi | |
9490 | ||
9491 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9492 | echo "$as_me:$LINENO: result: yes" >&5 | |
9493 | echo "${ECHO_T}yes" >&6 | |
9494 | else | |
9495 | echo "$as_me:$LINENO: result: no" >&5 | |
9496 | echo "${ECHO_T}no" >&6 | |
9497 | fi | |
9498 | ||
9499 | # Check whether --enable-vendor or --disable-vendor was given. | |
9500 | if test "${enable_vendor+set}" = set; then | |
9501 | enableval="$enable_vendor" | |
9502 | VENDOR="$enableval" | |
9503 | fi; | |
9504 | if test "x$VENDOR" = "x"; then | |
9505 | VENDOR="custom" | |
9506 | fi | |
9507 | ||
d558c907 VS |
9508 | case "${host}" in |
9509 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
9510 | PATH_IFS=';' |
9511 | LEX_STEM="lexyy" | |
d558c907 VS |
9512 | ;; |
9513 | *) | |
9514 | PATH_IFS=':' | |
9515 | LEX_STEM="lex.yy" | |
9516 | ;; | |
9517 | esac | |
9518 | ||
8284b0c5 MB |
9519 | |
9520 | ||
10f2d63a VZ |
9521 | echo "saving argument cache $wx_arg_cache_file" |
9522 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9523 | |
8284b0c5 | 9524 | |
e6cc62c6 VS |
9525 | |
9526 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9527 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9528 | |
9529 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9530 | if test "$wxUSE_WINE" = "yes"; then | |
9531 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9532 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9533 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9534 | fi | |
10f2d63a VZ |
9535 | |
9536 | if test "$wxUSE_GUI" = "yes"; then | |
9537 | ||
3a922bb4 | 9538 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9539 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9540 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9541 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9542 | fi |
b12915c1 | 9543 | |
3a922bb4 RL |
9544 | if test "$TOOLKIT_GIVEN" = 1; then |
9545 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9546 | var=wxUSE_$toolkit | |
9547 | eval "value=\$${var}" | |
9548 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9549 | done | |
10f2d63a | 9550 | else |
3a922bb4 RL |
9551 | for toolkit in `echo $ALL_TOOLKITS`; do |
9552 | if test "$has_toolkit_in_cache" != 1; then | |
9553 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9554 | else | |
9555 | var=DEFAULT_wxUSE_$toolkit | |
9556 | fi | |
9557 | eval "wxUSE_$toolkit=\$${var}" | |
9558 | done | |
10f2d63a | 9559 | fi |
10f2d63a | 9560 | |
ac0c4cc3 DE |
9561 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9562 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9563 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9564 | |
d558c907 | 9565 | case "${host}" in |
6fa882bd | 9566 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9567 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9568 | esac |
10f2d63a | 9569 | |
3a922bb4 RL |
9570 | case "$NUM_TOOLKITS" in |
9571 | 1) | |
9572 | ;; | |
9573 | 0) | |
e6cc62c6 VS |
9574 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9575 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9576 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9577 | ;; |
9578 | *) | |
e6cc62c6 VS |
9579 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9580 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9581 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9582 | esac |
10f2d63a | 9583 | |
3a922bb4 RL |
9584 | for toolkit in `echo $ALL_TOOLKITS`; do |
9585 | var=wxUSE_$toolkit | |
9586 | eval "value=\$${var}" | |
9587 | if test "x$value" != x; then | |
9588 | cache_var=CACHE_$toolkit | |
9589 | eval "cache=\$${cache_var}" | |
9590 | if test "$cache" = 1; then | |
9591 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9592 | fi | |
9593 | if test "$value" = 1; then | |
9594 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9595 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9596 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9597 | fi |
9598 | fi | |
9599 | done | |
10f2d63a | 9600 | else |
9de9b8f0 VZ |
9601 | if test "x$host_alias" != "x"; then |
9602 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9603 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9604 | else |
9605 | echo "$as_me:$LINENO: result: base only" >&5 | |
9606 | echo "${ECHO_T}base only" >&6 | |
9607 | fi | |
10f2d63a VZ |
9608 | fi |
9609 | ||
43d99b6d VS |
9610 | wants_win32=0 |
9611 | doesnt_want_win32=0 | |
17234b26 MB |
9612 | case "${host}" in |
9613 | *-*-cygwin*) | |
9614 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9615 | wants_win32=1 |
9616 | else | |
9617 | doesnt_want_win32=1 | |
17234b26 MB |
9618 | fi |
9619 | ;; | |
9620 | *-*-mingw*) | |
43d99b6d | 9621 | wants_win32=1 |
17234b26 MB |
9622 | ;; |
9623 | esac | |
9624 | ||
89e6bf6d VZ |
9625 | if test "$wxUSE_WINE" = "yes"; then |
9626 | wants_win32=1 | |
9627 | CC=winegcc | |
9628 | CXX=wineg++ | |
9629 | RESCOMP=wrc | |
9630 | fi | |
9631 | ||
43d99b6d | 9632 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9633 | USE_UNIX=0 |
9634 | USE_WIN32=1 | |
e6cc62c6 | 9635 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9636 | #define __WIN32__ 1 |
e6cc62c6 | 9637 | _ACEOF |
17234b26 | 9638 | |
e6cc62c6 | 9639 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9640 | #define __WIN95__ 1 |
e6cc62c6 | 9641 | _ACEOF |
17234b26 | 9642 | |
e6cc62c6 | 9643 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9644 | #define __WINDOWS__ 1 |
e6cc62c6 | 9645 | _ACEOF |
17234b26 | 9646 | |
e6cc62c6 | 9647 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9648 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9649 | _ACEOF |
17234b26 | 9650 | |
e6cc62c6 | 9651 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9652 | #define STRICT 1 |
e6cc62c6 | 9653 | _ACEOF |
17234b26 | 9654 | |
e6cc62c6 | 9655 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9656 | #define WINVER 0x0400 |
e6cc62c6 | 9657 | _ACEOF |
17234b26 | 9658 | |
43d99b6d VS |
9659 | fi |
9660 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9661 | USE_UNIX=1 |
9662 | USE_WIN32=0 | |
9663 | fi | |
9664 | ||
9665 | if test "$USE_UNIX" = 1 ; then | |
9666 | wxUSE_UNIX=yes | |
e6cc62c6 | 9667 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9668 | #define __UNIX__ 1 |
e6cc62c6 | 9669 | _ACEOF |
17234b26 MB |
9670 | |
9671 | fi | |
9672 | ||
8284b0c5 | 9673 | |
e6cc62c6 | 9674 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9675 | # This file is a shell script that caches the results of configure |
9676 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9677 | # scripts and configure runs, see configure's option --config-cache. |
9678 | # It is not useful on other systems. If it contains results you don't | |
9679 | # want to keep, you may remove or edit it. | |
10f2d63a | 9680 | # |
e6cc62c6 VS |
9681 | # config.status only pays attention to the cache file if you give it |
9682 | # the --recheck option to rerun configure. | |
10f2d63a | 9683 | # |
e6cc62c6 VS |
9684 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9685 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9686 | # following values. | |
9687 | ||
9688 | _ACEOF | |
9689 | ||
10f2d63a VZ |
9690 | # The following way of writing the cache mishandles newlines in values, |
9691 | # but we know of no workaround that is simple, portable, and efficient. | |
9692 | # So, don't put newlines in cache variables' values. | |
9693 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9694 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9695 | { |
9696 | (set) 2>&1 | | |
9697 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9698 | *ac_space=\ *) | |
9699 | # `set' does not quote correctly, so add quotes (double-quote | |
9700 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9701 | sed -n \ | |
9702 | "s/'/'\\\\''/g; | |
9703 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9704 | ;; | |
9705 | *) | |
9706 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9707 | sed -n \ | |
9708 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9709 | ;; | |
9710 | esac; | |
9711 | } | | |
9712 | sed ' | |
9713 | t clear | |
9714 | : clear | |
9715 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9716 | t end | |
9717 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9718 | : end' >>confcache | |
9719 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9720 | if test -w $cache_file; then |
e6cc62c6 VS |
9721 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9722 | cat confcache >$cache_file | |
10f2d63a VZ |
9723 | else |
9724 | echo "not updating unwritable cache $cache_file" | |
9725 | fi | |
9726 | fi | |
9727 | rm -f confcache | |
9728 | ||
e59890c3 | 9729 | if test "$build" != "$host" ; then |
9d353d4a | 9730 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9731 | CC=$host_alias-gcc |
9732 | CXX=$host_alias-c++ | |
9733 | AR=$host_alias-ar | |
9734 | RANLIB=$host_alias-ranlib | |
9735 | DLLTOOL=$host_alias-dlltool | |
9736 | RESCOMP=$host_alias-windres | |
9737 | LD=$host_alias-ld | |
9738 | NM=$host_alias-nm | |
9739 | STRIP=$host_alias-strip | |
9740 | else | |
e6cc62c6 VS |
9741 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9742 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9743 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9744 | fi |
10f2d63a VZ |
9745 | fi |
9746 | ||
ec603395 | 9747 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9748 | ac_ext=c |
9749 | ac_cpp='$CPP $CPPFLAGS' | |
9750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9753 | if test -n "$ac_tool_prefix"; then | |
9754 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9755 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9758 | if test "${ac_cv_prog_CC+set}" = set; then | |
9759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9760 | else | |
9761 | if test -n "$CC"; then | |
9762 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9763 | else | |
9764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9765 | for as_dir in $PATH | |
9766 | do | |
9767 | IFS=$as_save_IFS | |
9768 | test -z "$as_dir" && as_dir=. | |
9769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9771 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9773 | break 2 | |
9774 | fi | |
9775 | done | |
9776 | done | |
9777 | ||
9778 | fi | |
9779 | fi | |
9780 | CC=$ac_cv_prog_CC | |
9781 | if test -n "$CC"; then | |
9782 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9783 | echo "${ECHO_T}$CC" >&6 | |
9784 | else | |
9785 | echo "$as_me:$LINENO: result: no" >&5 | |
9786 | echo "${ECHO_T}no" >&6 | |
9787 | fi | |
9788 | ||
9789 | fi | |
9790 | if test -z "$ac_cv_prog_CC"; then | |
9791 | ac_ct_CC=$CC | |
9792 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9793 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9796 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9798 | else | |
9799 | if test -n "$ac_ct_CC"; then | |
9800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9801 | else | |
9802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9803 | for as_dir in $PATH | |
9804 | do | |
9805 | IFS=$as_save_IFS | |
9806 | test -z "$as_dir" && as_dir=. | |
9807 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9809 | ac_cv_prog_ac_ct_CC="gcc" | |
9810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9811 | break 2 | |
9812 | fi | |
9813 | done | |
9814 | done | |
9815 | ||
9816 | fi | |
9817 | fi | |
9818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9819 | if test -n "$ac_ct_CC"; then | |
9820 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9821 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9822 | else | |
9823 | echo "$as_me:$LINENO: result: no" >&5 | |
9824 | echo "${ECHO_T}no" >&6 | |
9825 | fi | |
9826 | ||
9827 | CC=$ac_ct_CC | |
9828 | else | |
9829 | CC="$ac_cv_prog_CC" | |
9830 | fi | |
9831 | ||
9832 | if test -z "$CC"; then | |
9833 | if test -n "$ac_tool_prefix"; then | |
9834 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9835 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9836 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9838 | if test "${ac_cv_prog_CC+set}" = set; then | |
9839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9840 | else |
9841 | if test -n "$CC"; then | |
9842 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9843 | else |
e6cc62c6 VS |
9844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9845 | for as_dir in $PATH | |
9846 | do | |
9847 | IFS=$as_save_IFS | |
9848 | test -z "$as_dir" && as_dir=. | |
9849 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9850 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9851 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9852 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9853 | break 2 | |
9854 | fi | |
9855 | done | |
9856 | done | |
9857 | ||
10f2d63a | 9858 | fi |
6232543b | 9859 | fi |
e6cc62c6 | 9860 | CC=$ac_cv_prog_CC |
6232543b | 9861 | if test -n "$CC"; then |
e6cc62c6 VS |
9862 | echo "$as_me:$LINENO: result: $CC" >&5 |
9863 | echo "${ECHO_T}$CC" >&6 | |
9864 | else | |
9865 | echo "$as_me:$LINENO: result: no" >&5 | |
9866 | echo "${ECHO_T}no" >&6 | |
9867 | fi | |
9868 | ||
9869 | fi | |
9870 | if test -z "$ac_cv_prog_CC"; then | |
9871 | ac_ct_CC=$CC | |
9872 | # Extract the first word of "cc", so it can be a program name with args. | |
9873 | set dummy cc; ac_word=$2 | |
9874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9876 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9878 | else | |
9879 | if test -n "$ac_ct_CC"; then | |
9880 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9881 | else | |
9882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9883 | for as_dir in $PATH | |
9884 | do | |
9885 | IFS=$as_save_IFS | |
9886 | test -z "$as_dir" && as_dir=. | |
9887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9889 | ac_cv_prog_ac_ct_CC="cc" | |
9890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9891 | break 2 | |
9892 | fi | |
9893 | done | |
9894 | done | |
9895 | ||
9896 | fi | |
9897 | fi | |
9898 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9899 | if test -n "$ac_ct_CC"; then | |
9900 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9901 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9902 | else | |
9903 | echo "$as_me:$LINENO: result: no" >&5 | |
9904 | echo "${ECHO_T}no" >&6 | |
9905 | fi | |
9906 | ||
9907 | CC=$ac_ct_CC | |
247f5006 | 9908 | else |
e6cc62c6 | 9909 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9910 | fi |
9911 | ||
e6cc62c6 | 9912 | fi |
5c6fa7d2 RR |
9913 | if test -z "$CC"; then |
9914 | # Extract the first word of "cc", so it can be a program name with args. | |
9915 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9918 | if test "${ac_cv_prog_CC+set}" = set; then | |
9919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9920 | else |
9921 | if test -n "$CC"; then | |
9922 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9923 | else | |
9924 | ac_prog_rejected=no | |
e6cc62c6 VS |
9925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9926 | for as_dir in $PATH | |
9927 | do | |
9928 | IFS=$as_save_IFS | |
9929 | test -z "$as_dir" && as_dir=. | |
9930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9932 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9933 | ac_prog_rejected=yes | |
9934 | continue | |
9935 | fi | |
9936 | ac_cv_prog_CC="cc" | |
9937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9938 | break 2 | |
9939 | fi | |
9940 | done | |
9941 | done | |
9942 | ||
328a083c RR |
9943 | if test $ac_prog_rejected = yes; then |
9944 | # We found a bogon in the path, so make sure we never use it. | |
9945 | set dummy $ac_cv_prog_CC | |
9946 | shift | |
e6cc62c6 | 9947 | if test $# != 0; then |
328a083c | 9948 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9949 | # However, it has the same basename, so the bogon will be chosen |
9950 | # first if we set CC to just the basename; use the full file name. | |
9951 | shift | |
e6cc62c6 | 9952 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9953 | fi |
1e487827 VS |
9954 | fi |
9955 | fi | |
9956 | fi | |
e6cc62c6 | 9957 | CC=$ac_cv_prog_CC |
1e487827 | 9958 | if test -n "$CC"; then |
e6cc62c6 VS |
9959 | echo "$as_me:$LINENO: result: $CC" >&5 |
9960 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9961 | else |
e6cc62c6 VS |
9962 | echo "$as_me:$LINENO: result: no" >&5 |
9963 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9964 | fi |
1e487827 | 9965 | |
e6cc62c6 VS |
9966 | fi |
9967 | if test -z "$CC"; then | |
9968 | if test -n "$ac_tool_prefix"; then | |
9969 | for ac_prog in cl | |
9970 | do | |
9971 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9972 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9975 | if test "${ac_cv_prog_CC+set}" = set; then | |
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9977 | else |
9978 | if test -n "$CC"; then | |
9979 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9980 | else | |
e6cc62c6 VS |
9981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9982 | for as_dir in $PATH | |
9983 | do | |
9984 | IFS=$as_save_IFS | |
9985 | test -z "$as_dir" && as_dir=. | |
9986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9987 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9988 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9990 | break 2 | |
9991 | fi | |
9992 | done | |
9993 | done | |
9994 | ||
f09359cf VS |
9995 | fi |
9996 | fi | |
e6cc62c6 | 9997 | CC=$ac_cv_prog_CC |
f09359cf | 9998 | if test -n "$CC"; then |
e6cc62c6 VS |
9999 | echo "$as_me:$LINENO: result: $CC" >&5 |
10000 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10001 | else |
e6cc62c6 VS |
10002 | echo "$as_me:$LINENO: result: no" >&5 |
10003 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10004 | fi |
1e487827 | 10005 | |
e6cc62c6 VS |
10006 | test -n "$CC" && break |
10007 | done | |
10008 | fi | |
10009 | if test -z "$CC"; then | |
10010 | ac_ct_CC=$CC | |
10011 | for ac_prog in cl | |
10012 | do | |
10013 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10014 | set dummy $ac_prog; ac_word=$2 | |
10015 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10016 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10017 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10019 | else | |
10020 | if test -n "$ac_ct_CC"; then | |
10021 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10022 | else | |
10023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10024 | for as_dir in $PATH | |
10025 | do | |
10026 | IFS=$as_save_IFS | |
10027 | test -z "$as_dir" && as_dir=. | |
10028 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10030 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10032 | break 2 | |
10033 | fi | |
10034 | done | |
10035 | done | |
f09359cf | 10036 | |
e6cc62c6 VS |
10037 | fi |
10038 | fi | |
10039 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10040 | if test -n "$ac_ct_CC"; then | |
10041 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10042 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10043 | else | |
10044 | echo "$as_me:$LINENO: result: no" >&5 | |
10045 | echo "${ECHO_T}no" >&6 | |
10046 | fi | |
f09359cf | 10047 | |
e6cc62c6 VS |
10048 | test -n "$ac_ct_CC" && break |
10049 | done | |
247f5006 | 10050 | |
e6cc62c6 VS |
10051 | CC=$ac_ct_CC |
10052 | fi | |
10053 | ||
10054 | fi | |
10055 | ||
10056 | ||
10057 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10058 | See \`config.log' for more details." >&5 | |
10059 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10060 | See \`config.log' for more details." >&2;} | |
10061 | { (exit 1); exit 1; }; } | |
10062 | ||
10063 | # Provide some information about the compiler. | |
10064 | echo "$as_me:$LINENO:" \ | |
10065 | "checking for C compiler version" >&5 | |
10066 | ac_compiler=`set X $ac_compile; echo $2` | |
10067 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10068 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10069 | ac_status=$? | |
10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10071 | (exit $ac_status); } | |
10072 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10073 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10074 | ac_status=$? | |
10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10076 | (exit $ac_status); } | |
10077 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10078 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10079 | ac_status=$? | |
10080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10081 | (exit $ac_status); } | |
10082 | ||
10083 | cat >conftest.$ac_ext <<_ACEOF | |
10084 | #line $LINENO "configure" | |
10085 | /* confdefs.h. */ | |
10086 | _ACEOF | |
10087 | cat confdefs.h >>conftest.$ac_ext | |
10088 | cat >>conftest.$ac_ext <<_ACEOF | |
10089 | /* end confdefs.h. */ | |
10090 | ||
10091 | int | |
10092 | main () | |
10093 | { | |
247f5006 | 10094 | |
e6cc62c6 VS |
10095 | ; |
10096 | return 0; | |
10097 | } | |
10098 | _ACEOF | |
10099 | ac_clean_files_save=$ac_clean_files | |
10100 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10101 | # Try to create an executable without -o first, disregard a.out. | |
10102 | # It will help us diagnose broken compilers, and finding out an intuition | |
10103 | # of exeext. | |
10104 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10105 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10106 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10107 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10108 | (eval $ac_link_default) 2>&5 | |
10109 | ac_status=$? | |
10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10111 | (exit $ac_status); }; then | |
10112 | # Find the output, starting from the most likely. This scheme is | |
10113 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10114 | # resort. | |
10115 | ||
10116 | # Be careful to initialize this variable, since it used to be cached. | |
10117 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10118 | ac_cv_exeext= | |
10119 | # b.out is created by i960 compilers. | |
10120 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10121 | do | |
10122 | test -f "$ac_file" || continue | |
10123 | case $ac_file in | |
10124 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10125 | ;; | |
10126 | conftest.$ac_ext ) | |
10127 | # This is the source file. | |
10128 | ;; | |
10129 | [ab].out ) | |
10130 | # We found the default executable, but exeext='' is most | |
10131 | # certainly right. | |
10132 | break;; | |
10133 | *.* ) | |
10134 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10135 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10136 | # but it would be cool to find out if it's true. Does anybody | |
10137 | # maintain Libtool? --akim. | |
10138 | export ac_cv_exeext | |
10139 | break;; | |
10140 | * ) | |
10141 | break;; | |
10142 | esac | |
10143 | done | |
10144 | else | |
10145 | echo "$as_me: failed program was:" >&5 | |
10146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10147 | ||
10148 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10149 | See \`config.log' for more details." >&5 | |
10150 | echo "$as_me: error: C compiler cannot create executables | |
10151 | See \`config.log' for more details." >&2;} | |
10152 | { (exit 77); exit 77; }; } | |
10153 | fi | |
10154 | ||
10155 | ac_exeext=$ac_cv_exeext | |
10156 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10157 | echo "${ECHO_T}$ac_file" >&6 | |
10158 | ||
10159 | # Check the compiler produces executables we can run. If not, either | |
10160 | # the compiler is broken, or we cross compile. | |
10161 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10162 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10163 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10164 | # If not cross compiling, check that we can run a simple program. | |
10165 | if test "$cross_compiling" != yes; then | |
10166 | if { ac_try='./$ac_file' | |
10167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10168 | (eval $ac_try) 2>&5 | |
10169 | ac_status=$? | |
10170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10171 | (exit $ac_status); }; }; then | |
10172 | cross_compiling=no | |
698dcdb6 | 10173 | else |
e6cc62c6 VS |
10174 | if test "$cross_compiling" = maybe; then |
10175 | cross_compiling=yes | |
10176 | else | |
10177 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10178 | If you meant to cross compile, use \`--host'. | |
10179 | See \`config.log' for more details." >&5 | |
10180 | echo "$as_me: error: cannot run C compiled programs. | |
10181 | If you meant to cross compile, use \`--host'. | |
10182 | See \`config.log' for more details." >&2;} | |
10183 | { (exit 1); exit 1; }; } | |
10184 | fi | |
698dcdb6 | 10185 | fi |
52127426 | 10186 | fi |
e6cc62c6 VS |
10187 | echo "$as_me:$LINENO: result: yes" >&5 |
10188 | echo "${ECHO_T}yes" >&6 | |
10189 | ||
10190 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10191 | ac_clean_files=$ac_clean_files_save | |
10192 | # Check the compiler produces executables we can run. If not, either | |
10193 | # the compiler is broken, or we cross compile. | |
10194 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10195 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10196 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10197 | echo "${ECHO_T}$cross_compiling" >&6 | |
10198 | ||
10199 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10200 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10202 | (eval $ac_link) 2>&5 | |
10203 | ac_status=$? | |
10204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10205 | (exit $ac_status); }; then | |
10206 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10207 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10208 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10209 | # `rm'. | |
10210 | for ac_file in conftest.exe conftest conftest.*; do | |
10211 | test -f "$ac_file" || continue | |
10212 | case $ac_file in | |
10213 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10214 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10215 | export ac_cv_exeext | |
10216 | break;; | |
10217 | * ) break;; | |
10218 | esac | |
10219 | done | |
5c6fa7d2 | 10220 | else |
e6cc62c6 VS |
10221 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10222 | See \`config.log' for more details." >&5 | |
10223 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10224 | See \`config.log' for more details." >&2;} | |
10225 | { (exit 1); exit 1; }; } | |
10226 | fi | |
10227 | ||
10228 | rm -f conftest$ac_cv_exeext | |
10229 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10230 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10231 | ||
10232 | rm -f conftest.$ac_ext | |
10233 | EXEEXT=$ac_cv_exeext | |
10234 | ac_exeext=$EXEEXT | |
10235 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10236 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10237 | if test "${ac_cv_objext+set}" = set; then | |
10238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10239 | else | |
10240 | cat >conftest.$ac_ext <<_ACEOF | |
10241 | #line $LINENO "configure" | |
10242 | /* confdefs.h. */ | |
10243 | _ACEOF | |
10244 | cat confdefs.h >>conftest.$ac_ext | |
10245 | cat >>conftest.$ac_ext <<_ACEOF | |
10246 | /* end confdefs.h. */ | |
10247 | ||
10248 | int | |
10249 | main () | |
10250 | { | |
f09359cf | 10251 | |
e6cc62c6 VS |
10252 | ; |
10253 | return 0; | |
10254 | } | |
10255 | _ACEOF | |
10256 | rm -f conftest.o conftest.obj | |
10257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10258 | (eval $ac_compile) 2>&5 | |
10259 | ac_status=$? | |
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10261 | (exit $ac_status); }; then | |
10262 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10263 | case $ac_file in | |
10264 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10265 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10266 | break;; | |
10267 | esac | |
10268 | done | |
a0b9e27f | 10269 | else |
e6cc62c6 VS |
10270 | echo "$as_me: failed program was:" >&5 |
10271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10272 | ||
10273 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10274 | See \`config.log' for more details." >&5 | |
10275 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10276 | See \`config.log' for more details." >&2;} | |
10277 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10278 | fi |
247f5006 | 10279 | |
e6cc62c6 VS |
10280 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10281 | fi | |
10282 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10283 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10284 | OBJEXT=$ac_cv_objext | |
10285 | ac_objext=$OBJEXT | |
10286 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10287 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10288 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10290 | else |
e6cc62c6 VS |
10291 | cat >conftest.$ac_ext <<_ACEOF |
10292 | #line $LINENO "configure" | |
10293 | /* confdefs.h. */ | |
10294 | _ACEOF | |
10295 | cat confdefs.h >>conftest.$ac_ext | |
10296 | cat >>conftest.$ac_ext <<_ACEOF | |
10297 | /* end confdefs.h. */ | |
10298 | ||
10299 | int | |
10300 | main () | |
10301 | { | |
10302 | #ifndef __GNUC__ | |
10303 | choke me | |
10304 | #endif | |
10305 | ||
10306 | ; | |
10307 | return 0; | |
10308 | } | |
10309 | _ACEOF | |
10310 | rm -f conftest.$ac_objext | |
10311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10312 | (eval $ac_compile) 2>&5 | |
10313 | ac_status=$? | |
10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10315 | (exit $ac_status); } && | |
10316 | { ac_try='test -s conftest.$ac_objext' | |
10317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10318 | (eval $ac_try) 2>&5 | |
10319 | ac_status=$? | |
10320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10321 | (exit $ac_status); }; }; then | |
10322 | ac_compiler_gnu=yes | |
10323 | else | |
10324 | echo "$as_me: failed program was:" >&5 | |
10325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10326 | ||
10327 | ac_compiler_gnu=no | |
10328 | fi | |
10329 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10330 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10331 | ||
10332 | fi | |
10333 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10334 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10335 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10336 | ac_test_CFLAGS=${CFLAGS+set} | |
10337 | ac_save_CFLAGS=$CFLAGS | |
10338 | CFLAGS="-g" | |
10339 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10340 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10341 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10343 | else | |
10344 | cat >conftest.$ac_ext <<_ACEOF | |
10345 | #line $LINENO "configure" | |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
10351 | ||
10352 | int | |
10353 | main () | |
10354 | { | |
10355 | ||
10356 | ; | |
10357 | return 0; | |
10358 | } | |
10359 | _ACEOF | |
10360 | rm -f conftest.$ac_objext | |
10361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10362 | (eval $ac_compile) 2>&5 | |
10363 | ac_status=$? | |
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10365 | (exit $ac_status); } && | |
10366 | { ac_try='test -s conftest.$ac_objext' | |
10367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10368 | (eval $ac_try) 2>&5 | |
10369 | ac_status=$? | |
10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10371 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10372 | ac_cv_prog_cc_g=yes |
10373 | else | |
e6cc62c6 VS |
10374 | echo "$as_me: failed program was:" >&5 |
10375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10376 | |
e6cc62c6 | 10377 | ac_cv_prog_cc_g=no |
10f2d63a | 10378 | fi |
e6cc62c6 VS |
10379 | rm -f conftest.$ac_objext conftest.$ac_ext |
10380 | fi | |
10381 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10382 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10383 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10384 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10385 | elif test $ac_cv_prog_cc_g = yes; then |
10386 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10387 | CFLAGS="-g -O2" |
10388 | else | |
f09359cf | 10389 | CFLAGS="-g" |
10f2d63a | 10390 | fi |
5c0a20c3 | 10391 | else |
f09359cf VS |
10392 | if test "$GCC" = yes; then |
10393 | CFLAGS="-O2" | |
10394 | else | |
10395 | CFLAGS= | |
10396 | fi | |
10f2d63a | 10397 | fi |
e6cc62c6 VS |
10398 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10399 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10400 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10402 | else | |
10403 | ac_cv_prog_cc_stdc=no | |
10404 | ac_save_CC=$CC | |
10405 | cat >conftest.$ac_ext <<_ACEOF | |
10406 | #line $LINENO "configure" | |
10407 | /* confdefs.h. */ | |
10408 | _ACEOF | |
10409 | cat confdefs.h >>conftest.$ac_ext | |
10410 | cat >>conftest.$ac_ext <<_ACEOF | |
10411 | /* end confdefs.h. */ | |
10412 | #include <stdarg.h> | |
10413 | #include <stdio.h> | |
10414 | #include <sys/types.h> | |
10415 | #include <sys/stat.h> | |
10416 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10417 | struct buf { int x; }; | |
10418 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10419 | static char *e (p, i) | |
10420 | char **p; | |
10421 | int i; | |
10422 | { | |
10423 | return p[i]; | |
10424 | } | |
10425 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10426 | { | |
10427 | char *s; | |
10428 | va_list v; | |
10429 | va_start (v,p); | |
10430 | s = g (p, va_arg (v,int)); | |
10431 | va_end (v); | |
10432 | return s; | |
10433 | } | |
10434 | int test (int i, double x); | |
10435 | struct s1 {int (*f) (int a);}; | |
10436 | struct s2 {int (*f) (double a);}; | |
10437 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10438 | int argc; | |
10439 | char **argv; | |
10440 | int | |
10441 | main () | |
10442 | { | |
10443 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10444 | ; | |
10445 | return 0; | |
10446 | } | |
10447 | _ACEOF | |
10448 | # Don't try gcc -ansi; that turns off useful extensions and | |
10449 | # breaks some systems' header files. | |
10450 | # AIX -qlanglvl=ansi | |
10451 | # Ultrix and OSF/1 -std1 | |
10452 | # HP-UX 10.20 and later -Ae | |
10453 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10454 | # SVR4 -Xc -D__EXTENSIONS__ | |
10455 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10456 | do | |
10457 | CC="$ac_save_CC $ac_arg" | |
10458 | rm -f conftest.$ac_objext | |
10459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10460 | (eval $ac_compile) 2>&5 | |
10461 | ac_status=$? | |
10462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10463 | (exit $ac_status); } && | |
10464 | { ac_try='test -s conftest.$ac_objext' | |
10465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10466 | (eval $ac_try) 2>&5 | |
10467 | ac_status=$? | |
10468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10469 | (exit $ac_status); }; }; then | |
10470 | ac_cv_prog_cc_stdc=$ac_arg | |
10471 | break | |
10472 | else | |
10473 | echo "$as_me: failed program was:" >&5 | |
10474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10475 | ||
10476 | fi | |
10477 | rm -f conftest.$ac_objext | |
10478 | done | |
10479 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10480 | CC=$ac_save_CC | |
10481 | ||
10482 | fi | |
10483 | ||
10484 | case "x$ac_cv_prog_cc_stdc" in | |
10485 | x|xno) | |
10486 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10487 | echo "${ECHO_T}none needed" >&6 ;; | |
10488 | *) | |
10489 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10490 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10491 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10492 | esac | |
10493 | ||
10494 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10495 | # in C++ we need to declare it. In case someone uses the same compiler | |
10496 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10497 | # the declaration of exit, since it's the most demanding environment. | |
10498 | cat >conftest.$ac_ext <<_ACEOF | |
10499 | #ifndef __cplusplus | |
10500 | choke me | |
10501 | #endif | |
10502 | _ACEOF | |
10503 | rm -f conftest.$ac_objext | |
10504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10505 | (eval $ac_compile) 2>&5 | |
10506 | ac_status=$? | |
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10508 | (exit $ac_status); } && | |
10509 | { ac_try='test -s conftest.$ac_objext' | |
10510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10511 | (eval $ac_try) 2>&5 | |
10512 | ac_status=$? | |
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10514 | (exit $ac_status); }; }; then | |
10515 | for ac_declaration in \ | |
6f628073 VS |
10516 | ''\ |
10517 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10518 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10519 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10520 | 'extern "C" void exit (int) throw ();' \ | |
10521 | 'extern "C" void exit (int);' \ | |
10522 | 'void exit (int);' | |
10523 | do | |
10524 | cat >conftest.$ac_ext <<_ACEOF | |
10525 | #line $LINENO "configure" | |
10526 | /* confdefs.h. */ | |
10527 | _ACEOF | |
10528 | cat confdefs.h >>conftest.$ac_ext | |
10529 | cat >>conftest.$ac_ext <<_ACEOF | |
10530 | /* end confdefs.h. */ | |
71e83a03 | 10531 | #include <stdlib.h> |
6f628073 | 10532 | $ac_declaration |
e6cc62c6 VS |
10533 | int |
10534 | main () | |
10535 | { | |
10536 | exit (42); | |
10537 | ; | |
10538 | return 0; | |
10539 | } | |
10540 | _ACEOF | |
10541 | rm -f conftest.$ac_objext | |
10542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10543 | (eval $ac_compile) 2>&5 | |
10544 | ac_status=$? | |
10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10546 | (exit $ac_status); } && | |
10547 | { ac_try='test -s conftest.$ac_objext' | |
10548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10549 | (eval $ac_try) 2>&5 | |
10550 | ac_status=$? | |
10551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10552 | (exit $ac_status); }; }; then | |
10553 | : | |
10554 | else | |
10555 | echo "$as_me: failed program was:" >&5 | |
10556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10557 | ||
10558 | continue | |
10559 | fi | |
10560 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10561 | cat >conftest.$ac_ext <<_ACEOF | |
10562 | #line $LINENO "configure" | |
10563 | /* confdefs.h. */ | |
10564 | _ACEOF | |
10565 | cat confdefs.h >>conftest.$ac_ext | |
10566 | cat >>conftest.$ac_ext <<_ACEOF | |
10567 | /* end confdefs.h. */ | |
10568 | $ac_declaration | |
10569 | int | |
10570 | main () | |
10571 | { | |
10572 | exit (42); | |
10573 | ; | |
10574 | return 0; | |
10575 | } | |
10576 | _ACEOF | |
10577 | rm -f conftest.$ac_objext | |
10578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10579 | (eval $ac_compile) 2>&5 | |
10580 | ac_status=$? | |
10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10582 | (exit $ac_status); } && | |
10583 | { ac_try='test -s conftest.$ac_objext' | |
10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10585 | (eval $ac_try) 2>&5 | |
10586 | ac_status=$? | |
10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10588 | (exit $ac_status); }; }; then | |
10589 | break | |
10590 | else | |
10591 | echo "$as_me: failed program was:" >&5 | |
10592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10593 | ||
10594 | fi | |
10595 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10596 | done | |
10597 | rm -f conftest* | |
10598 | if test -n "$ac_declaration"; then | |
10599 | echo '#ifdef __cplusplus' >>confdefs.h | |
10600 | echo $ac_declaration >>confdefs.h | |
10601 | echo '#endif' >>confdefs.h | |
10602 | fi | |
10603 | ||
10604 | else | |
10605 | echo "$as_me: failed program was:" >&5 | |
10606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10607 | ||
10608 | fi | |
10609 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10610 | ac_ext=c | |
10611 | ac_cpp='$CPP $CPPFLAGS' | |
10612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10615 | |
10616 | ||
e6cc62c6 VS |
10617 | |
10618 | ac_ext=c | |
10619 | ac_cpp='$CPP $CPPFLAGS' | |
10620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10623 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10624 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10625 | # On Suns, sometimes $CPP names a directory. |
10626 | if test -n "$CPP" && test -d "$CPP"; then | |
10627 | CPP= | |
10628 | fi | |
10629 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10630 | if test "${ac_cv_prog_CPP+set}" = set; then |
10631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10632 | else | |
10633 | # Double quotes because CPP needs to be expanded | |
10634 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10635 | do | |
10636 | ac_preproc_ok=false | |
10637 | for ac_c_preproc_warn_flag in '' yes | |
10638 | do | |
10639 | # Use a header file that comes with gcc, so configuring glibc | |
10640 | # with a fresh cross-compiler works. | |
10641 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10642 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10643 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10644 | # not just through cpp. "Syntax error" is here to catch this case. |
10645 | cat >conftest.$ac_ext <<_ACEOF | |
10646 | #line $LINENO "configure" | |
10647 | /* confdefs.h. */ | |
10648 | _ACEOF | |
10649 | cat confdefs.h >>conftest.$ac_ext | |
10650 | cat >>conftest.$ac_ext <<_ACEOF | |
10651 | /* end confdefs.h. */ | |
10652 | #ifdef __STDC__ | |
10653 | # include <limits.h> | |
10654 | #else | |
10655 | # include <assert.h> | |
10656 | #endif | |
10657 | Syntax error | |
10658 | _ACEOF | |
10659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10661 | ac_status=$? | |
10662 | grep -v '^ *+' conftest.er1 >conftest.err | |
10663 | rm -f conftest.er1 | |
10664 | cat conftest.err >&5 | |
10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10666 | (exit $ac_status); } >/dev/null; then | |
10667 | if test -s conftest.err; then | |
10668 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10669 | else | |
10670 | ac_cpp_err= | |
10671 | fi | |
10f2d63a | 10672 | else |
e6cc62c6 VS |
10673 | ac_cpp_err=yes |
10674 | fi | |
10675 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10676 | : |
247f5006 | 10677 | else |
e6cc62c6 VS |
10678 | echo "$as_me: failed program was:" >&5 |
10679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10680 | ||
10681 | # Broken: fails on valid input. | |
10682 | continue | |
10683 | fi | |
10684 | rm -f conftest.err conftest.$ac_ext | |
10685 | ||
10686 | # OK, works on sane cases. Now check whether non-existent headers | |
10687 | # can be detected and how. | |
10688 | cat >conftest.$ac_ext <<_ACEOF | |
10689 | #line $LINENO "configure" | |
10690 | /* confdefs.h. */ | |
10691 | _ACEOF | |
10692 | cat confdefs.h >>conftest.$ac_ext | |
10693 | cat >>conftest.$ac_ext <<_ACEOF | |
10694 | /* end confdefs.h. */ | |
10695 | #include <ac_nonexistent.h> | |
10696 | _ACEOF | |
10697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10699 | ac_status=$? | |
10700 | grep -v '^ *+' conftest.er1 >conftest.err | |
10701 | rm -f conftest.er1 | |
10702 | cat conftest.err >&5 | |
10703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10704 | (exit $ac_status); } >/dev/null; then | |
10705 | if test -s conftest.err; then | |
10706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10707 | else | |
10708 | ac_cpp_err= | |
10709 | fi | |
10f2d63a | 10710 | else |
e6cc62c6 | 10711 | ac_cpp_err=yes |
579d8138 | 10712 | fi |
e6cc62c6 VS |
10713 | if test -z "$ac_cpp_err"; then |
10714 | # Broken: success on invalid input. | |
10715 | continue | |
10716 | else | |
10717 | echo "$as_me: failed program was:" >&5 | |
10718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10719 | ||
10720 | # Passes both tests. | |
10721 | ac_preproc_ok=: | |
10722 | break | |
52127426 | 10723 | fi |
e6cc62c6 VS |
10724 | rm -f conftest.err conftest.$ac_ext |
10725 | ||
10726 | done | |
10727 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10728 | rm -f conftest.err conftest.$ac_ext | |
10729 | if $ac_preproc_ok; then | |
10730 | break | |
8284b0c5 | 10731 | fi |
e6cc62c6 VS |
10732 | |
10733 | done | |
10734 | ac_cv_prog_CPP=$CPP | |
10735 | ||
10736 | fi | |
10737 | CPP=$ac_cv_prog_CPP | |
10738 | else | |
10739 | ac_cv_prog_CPP=$CPP | |
10740 | fi | |
10741 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10742 | echo "${ECHO_T}$CPP" >&6 | |
10743 | ac_preproc_ok=false | |
10744 | for ac_c_preproc_warn_flag in '' yes | |
10745 | do | |
10746 | # Use a header file that comes with gcc, so configuring glibc | |
10747 | # with a fresh cross-compiler works. | |
10748 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10749 | # <limits.h> exists even on freestanding compilers. | |
10750 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10751 | # not just through cpp. "Syntax error" is here to catch this case. | |
10752 | cat >conftest.$ac_ext <<_ACEOF | |
10753 | #line $LINENO "configure" | |
10754 | /* confdefs.h. */ | |
10755 | _ACEOF | |
10756 | cat confdefs.h >>conftest.$ac_ext | |
10757 | cat >>conftest.$ac_ext <<_ACEOF | |
10758 | /* end confdefs.h. */ | |
10759 | #ifdef __STDC__ | |
10760 | # include <limits.h> | |
10761 | #else | |
10762 | # include <assert.h> | |
10763 | #endif | |
10764 | Syntax error | |
10765 | _ACEOF | |
10766 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10767 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10768 | ac_status=$? | |
10769 | grep -v '^ *+' conftest.er1 >conftest.err | |
10770 | rm -f conftest.er1 | |
10771 | cat conftest.err >&5 | |
10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10773 | (exit $ac_status); } >/dev/null; then | |
10774 | if test -s conftest.err; then | |
10775 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10776 | else | |
10777 | ac_cpp_err= | |
10778 | fi | |
10779 | else | |
10780 | ac_cpp_err=yes | |
10781 | fi | |
10782 | if test -z "$ac_cpp_err"; then | |
10783 | : | |
10784 | else | |
10785 | echo "$as_me: failed program was:" >&5 | |
10786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10787 | ||
10788 | # Broken: fails on valid input. | |
10789 | continue | |
10790 | fi | |
10791 | rm -f conftest.err conftest.$ac_ext | |
10792 | ||
10793 | # OK, works on sane cases. Now check whether non-existent headers | |
10794 | # can be detected and how. | |
10795 | cat >conftest.$ac_ext <<_ACEOF | |
10796 | #line $LINENO "configure" | |
10797 | /* confdefs.h. */ | |
10798 | _ACEOF | |
10799 | cat confdefs.h >>conftest.$ac_ext | |
10800 | cat >>conftest.$ac_ext <<_ACEOF | |
10801 | /* end confdefs.h. */ | |
10802 | #include <ac_nonexistent.h> | |
10803 | _ACEOF | |
10804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10806 | ac_status=$? | |
10807 | grep -v '^ *+' conftest.er1 >conftest.err | |
10808 | rm -f conftest.er1 | |
10809 | cat conftest.err >&5 | |
10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10811 | (exit $ac_status); } >/dev/null; then | |
10812 | if test -s conftest.err; then | |
10813 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10814 | else | |
10815 | ac_cpp_err= | |
10816 | fi | |
10817 | else | |
10818 | ac_cpp_err=yes | |
10819 | fi | |
10820 | if test -z "$ac_cpp_err"; then | |
10821 | # Broken: success on invalid input. | |
10822 | continue | |
10823 | else | |
10824 | echo "$as_me: failed program was:" >&5 | |
10825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10826 | ||
10827 | # Passes both tests. | |
10828 | ac_preproc_ok=: | |
10829 | break | |
a0b9e27f | 10830 | fi |
e6cc62c6 VS |
10831 | rm -f conftest.err conftest.$ac_ext |
10832 | ||
10833 | done | |
10834 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10835 | rm -f conftest.err conftest.$ac_ext | |
10836 | if $ac_preproc_ok; then | |
10837 | : | |
10838 | else | |
10839 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10840 | See \`config.log' for more details." >&5 | |
10841 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10842 | See \`config.log' for more details." >&2;} | |
10843 | { (exit 1); exit 1; }; } | |
10844 | fi | |
10845 | ||
10846 | ac_ext=c | |
10847 | ac_cpp='$CPP $CPPFLAGS' | |
10848 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10849 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10850 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10851 | ||
10852 | ||
10853 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10854 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10855 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10857 | else |
e6cc62c6 VS |
10858 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10859 | then ac_cv_prog_egrep='grep -E' | |
10860 | else ac_cv_prog_egrep='egrep' | |
10861 | fi | |
10f2d63a | 10862 | fi |
e6cc62c6 VS |
10863 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10864 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10865 | EGREP=$ac_cv_prog_egrep | |
10866 | ||
10f2d63a | 10867 | |
e6cc62c6 VS |
10868 | if test $ac_cv_c_compiler_gnu = yes; then |
10869 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10870 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10871 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10873 | else |
10874 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10875 | cat >conftest.$ac_ext <<_ACEOF |
10876 | #line $LINENO "configure" | |
10877 | /* confdefs.h. */ | |
10878 | _ACEOF | |
10879 | cat confdefs.h >>conftest.$ac_ext | |
10880 | cat >>conftest.$ac_ext <<_ACEOF | |
10881 | /* end confdefs.h. */ | |
10f2d63a VZ |
10882 | #include <sgtty.h> |
10883 | Autoconf TIOCGETP | |
e6cc62c6 | 10884 | _ACEOF |
10f2d63a | 10885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10886 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10887 | ac_cv_prog_gcc_traditional=yes |
10888 | else | |
10f2d63a VZ |
10889 | ac_cv_prog_gcc_traditional=no |
10890 | fi | |
10891 | rm -f conftest* | |
10892 | ||
8284b0c5 | 10893 | |
10f2d63a | 10894 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10895 | cat >conftest.$ac_ext <<_ACEOF |
10896 | #line $LINENO "configure" | |
10897 | /* confdefs.h. */ | |
10898 | _ACEOF | |
10899 | cat confdefs.h >>conftest.$ac_ext | |
10900 | cat >>conftest.$ac_ext <<_ACEOF | |
10901 | /* end confdefs.h. */ | |
10f2d63a VZ |
10902 | #include <termio.h> |
10903 | Autoconf TCGETA | |
e6cc62c6 | 10904 | _ACEOF |
10f2d63a | 10905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10906 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10907 | ac_cv_prog_gcc_traditional=yes |
10908 | fi | |
10909 | rm -f conftest* | |
10910 | ||
10911 | fi | |
10912 | fi | |
e6cc62c6 VS |
10913 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10914 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10915 | if test $ac_cv_prog_gcc_traditional = yes; then |
10916 | CC="$CC -traditional" | |
10917 | fi | |
10918 | fi | |
10919 | ||
8284b0c5 MB |
10920 | |
10921 | ||
e6cc62c6 VS |
10922 | |
10923 | ac_ext=cc | |
1e487827 | 10924 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10925 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10926 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10927 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10928 | |
698dcdb6 | 10929 | |
ec603395 | 10930 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10931 | ac_ext=cc |
10932 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10936 | if test -n "$ac_tool_prefix"; then | |
10937 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10938 | do | |
10939 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10940 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10941 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10943 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10945 | else |
10946 | if test -n "$CXX"; then | |
10947 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10948 | else | |
e6cc62c6 VS |
10949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10950 | for as_dir in $PATH | |
10951 | do | |
10952 | IFS=$as_save_IFS | |
10953 | test -z "$as_dir" && as_dir=. | |
10954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10956 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10958 | break 2 | |
10959 | fi | |
10960 | done | |
10961 | done | |
10962 | ||
10f2d63a VZ |
10963 | fi |
10964 | fi | |
e6cc62c6 | 10965 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10966 | if test -n "$CXX"; then |
e6cc62c6 VS |
10967 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10968 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10969 | else |
e6cc62c6 VS |
10970 | echo "$as_me:$LINENO: result: no" >&5 |
10971 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10972 | fi |
10973 | ||
e6cc62c6 VS |
10974 | test -n "$CXX" && break |
10975 | done | |
10976 | fi | |
10977 | if test -z "$CXX"; then | |
10978 | ac_ct_CXX=$CXX | |
10979 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10980 | do | |
10981 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10982 | set dummy $ac_prog; ac_word=$2 | |
10983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10985 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10987 | else | |
10988 | if test -n "$ac_ct_CXX"; then | |
10989 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10990 | else | |
10991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10992 | for as_dir in $PATH | |
10993 | do | |
10994 | IFS=$as_save_IFS | |
10995 | test -z "$as_dir" && as_dir=. | |
10996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10998 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11000 | break 2 | |
11001 | fi | |
11002 | done | |
10f2d63a | 11003 | done |
a0b9e27f | 11004 | |
8284b0c5 | 11005 | fi |
a0b9e27f | 11006 | fi |
e6cc62c6 VS |
11007 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11008 | if test -n "$ac_ct_CXX"; then | |
11009 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11010 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11011 | else | |
11012 | echo "$as_me:$LINENO: result: no" >&5 | |
11013 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11014 | fi |
10f2d63a | 11015 | |
e6cc62c6 VS |
11016 | test -n "$ac_ct_CXX" && break |
11017 | done | |
11018 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11019 | ||
11020 | CXX=$ac_ct_CXX | |
11021 | fi | |
11022 | ||
11023 | ||
11024 | # Provide some information about the compiler. | |
11025 | echo "$as_me:$LINENO:" \ | |
11026 | "checking for C++ compiler version" >&5 | |
11027 | ac_compiler=`set X $ac_compile; echo $2` | |
11028 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11029 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11030 | ac_status=$? | |
11031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11032 | (exit $ac_status); } | |
11033 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11034 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11035 | ac_status=$? | |
11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11037 | (exit $ac_status); } | |
11038 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11039 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11040 | ac_status=$? | |
11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 | (exit $ac_status); } | |
11043 | ||
11044 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11045 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11046 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11048 | else | |
11049 | cat >conftest.$ac_ext <<_ACEOF | |
11050 | #line $LINENO "configure" | |
11051 | /* confdefs.h. */ | |
11052 | _ACEOF | |
11053 | cat confdefs.h >>conftest.$ac_ext | |
11054 | cat >>conftest.$ac_ext <<_ACEOF | |
11055 | /* end confdefs.h. */ | |
11056 | ||
11057 | int | |
11058 | main () | |
11059 | { | |
11060 | #ifndef __GNUC__ | |
11061 | choke me | |
11062 | #endif | |
10f2d63a | 11063 | |
e6cc62c6 VS |
11064 | ; |
11065 | return 0; | |
11066 | } | |
11067 | _ACEOF | |
11068 | rm -f conftest.$ac_objext | |
11069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11070 | (eval $ac_compile) 2>&5 | |
11071 | ac_status=$? | |
11072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11073 | (exit $ac_status); } && | |
11074 | { ac_try='test -s conftest.$ac_objext' | |
11075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11076 | (eval $ac_try) 2>&5 | |
11077 | ac_status=$? | |
11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11079 | (exit $ac_status); }; }; then | |
11080 | ac_compiler_gnu=yes | |
11081 | else | |
11082 | echo "$as_me: failed program was:" >&5 | |
11083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11084 | ||
11085 | ac_compiler_gnu=no | |
11086 | fi | |
11087 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11088 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11089 | ||
11090 | fi | |
11091 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11092 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11093 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11094 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11095 | ac_save_CXXFLAGS=$CXXFLAGS | |
11096 | CXXFLAGS="-g" | |
11097 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11098 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11099 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11101 | else | |
11102 | cat >conftest.$ac_ext <<_ACEOF | |
11103 | #line $LINENO "configure" | |
11104 | /* confdefs.h. */ | |
11105 | _ACEOF | |
11106 | cat confdefs.h >>conftest.$ac_ext | |
11107 | cat >>conftest.$ac_ext <<_ACEOF | |
11108 | /* end confdefs.h. */ | |
11109 | ||
11110 | int | |
11111 | main () | |
11112 | { | |
f09359cf | 11113 | |
e6cc62c6 VS |
11114 | ; |
11115 | return 0; | |
11116 | } | |
11117 | _ACEOF | |
11118 | rm -f conftest.$ac_objext | |
11119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11120 | (eval $ac_compile) 2>&5 | |
11121 | ac_status=$? | |
11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11123 | (exit $ac_status); } && | |
11124 | { ac_try='test -s conftest.$ac_objext' | |
11125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11126 | (eval $ac_try) 2>&5 | |
11127 | ac_status=$? | |
11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11129 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11130 | ac_cv_prog_cxx_g=yes |
11131 | else | |
e6cc62c6 VS |
11132 | echo "$as_me: failed program was:" >&5 |
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11134 | |
e6cc62c6 | 11135 | ac_cv_prog_cxx_g=no |
10f2d63a | 11136 | fi |
e6cc62c6 VS |
11137 | rm -f conftest.$ac_objext conftest.$ac_ext |
11138 | fi | |
11139 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11140 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11141 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11142 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11143 | elif test $ac_cv_prog_cxx_g = yes; then |
11144 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11145 | CXXFLAGS="-g -O2" |
11146 | else | |
f09359cf | 11147 | CXXFLAGS="-g" |
10f2d63a | 11148 | fi |
5c0a20c3 | 11149 | else |
f09359cf VS |
11150 | if test "$GXX" = yes; then |
11151 | CXXFLAGS="-O2" | |
11152 | else | |
11153 | CXXFLAGS= | |
11154 | fi | |
10f2d63a | 11155 | fi |
e6cc62c6 | 11156 | for ac_declaration in \ |
6f628073 VS |
11157 | ''\ |
11158 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11159 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11160 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11161 | 'extern "C" void exit (int) throw ();' \ | |
11162 | 'extern "C" void exit (int);' \ | |
11163 | 'void exit (int);' | |
11164 | do | |
11165 | cat >conftest.$ac_ext <<_ACEOF | |
11166 | #line $LINENO "configure" | |
11167 | /* confdefs.h. */ | |
11168 | _ACEOF | |
11169 | cat confdefs.h >>conftest.$ac_ext | |
11170 | cat >>conftest.$ac_ext <<_ACEOF | |
11171 | /* end confdefs.h. */ | |
71e83a03 | 11172 | #include <stdlib.h> |
6f628073 | 11173 | $ac_declaration |
e6cc62c6 VS |
11174 | int |
11175 | main () | |
11176 | { | |
11177 | exit (42); | |
11178 | ; | |
11179 | return 0; | |
11180 | } | |
11181 | _ACEOF | |
11182 | rm -f conftest.$ac_objext | |
11183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11184 | (eval $ac_compile) 2>&5 | |
11185 | ac_status=$? | |
11186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11187 | (exit $ac_status); } && | |
11188 | { ac_try='test -s conftest.$ac_objext' | |
11189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11190 | (eval $ac_try) 2>&5 | |
11191 | ac_status=$? | |
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11193 | (exit $ac_status); }; }; then | |
11194 | : | |
11195 | else | |
11196 | echo "$as_me: failed program was:" >&5 | |
11197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11198 | ||
11199 | continue | |
11200 | fi | |
11201 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11202 | cat >conftest.$ac_ext <<_ACEOF | |
11203 | #line $LINENO "configure" | |
11204 | /* confdefs.h. */ | |
11205 | _ACEOF | |
11206 | cat confdefs.h >>conftest.$ac_ext | |
11207 | cat >>conftest.$ac_ext <<_ACEOF | |
11208 | /* end confdefs.h. */ | |
11209 | $ac_declaration | |
11210 | int | |
11211 | main () | |
11212 | { | |
11213 | exit (42); | |
11214 | ; | |
11215 | return 0; | |
11216 | } | |
11217 | _ACEOF | |
11218 | rm -f conftest.$ac_objext | |
11219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11220 | (eval $ac_compile) 2>&5 | |
11221 | ac_status=$? | |
11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11223 | (exit $ac_status); } && | |
11224 | { ac_try='test -s conftest.$ac_objext' | |
11225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11226 | (eval $ac_try) 2>&5 | |
11227 | ac_status=$? | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); }; }; then | |
11230 | break | |
11231 | else | |
11232 | echo "$as_me: failed program was:" >&5 | |
11233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11234 | ||
11235 | fi | |
11236 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11237 | done | |
11238 | rm -f conftest* | |
11239 | if test -n "$ac_declaration"; then | |
11240 | echo '#ifdef __cplusplus' >>confdefs.h | |
11241 | echo $ac_declaration >>confdefs.h | |
11242 | echo '#endif' >>confdefs.h | |
11243 | fi | |
11244 | ||
11245 | ac_ext=cc | |
11246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11250 | |
11251 | ||
10f2d63a | 11252 | ac_ext=c |
10f2d63a | 11253 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11257 | |
11258 | ||
e6cc62c6 VS |
11259 | if test -n "$ac_tool_prefix"; then |
11260 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11261 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11264 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11266 | else |
11267 | if test -n "$RANLIB"; then | |
11268 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11269 | else | |
e6cc62c6 VS |
11270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11271 | for as_dir in $PATH | |
11272 | do | |
11273 | IFS=$as_save_IFS | |
11274 | test -z "$as_dir" && as_dir=. | |
11275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11277 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11279 | break 2 | |
11280 | fi | |
11281 | done | |
11282 | done | |
11283 | ||
10f2d63a VZ |
11284 | fi |
11285 | fi | |
e6cc62c6 | 11286 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11287 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11288 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11289 | echo "${ECHO_T}$RANLIB" >&6 | |
11290 | else | |
11291 | echo "$as_me:$LINENO: result: no" >&5 | |
11292 | echo "${ECHO_T}no" >&6 | |
11293 | fi | |
11294 | ||
11295 | fi | |
11296 | if test -z "$ac_cv_prog_RANLIB"; then | |
11297 | ac_ct_RANLIB=$RANLIB | |
11298 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11299 | set dummy ranlib; ac_word=$2 | |
11300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11302 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11304 | else |
e6cc62c6 VS |
11305 | if test -n "$ac_ct_RANLIB"; then |
11306 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11307 | else | |
11308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11309 | for as_dir in $PATH | |
11310 | do | |
11311 | IFS=$as_save_IFS | |
11312 | test -z "$as_dir" && as_dir=. | |
11313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11315 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11317 | break 2 | |
11318 | fi | |
11319 | done | |
11320 | done | |
11321 | ||
11322 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11323 | fi | |
11324 | fi | |
11325 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11326 | if test -n "$ac_ct_RANLIB"; then | |
11327 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11328 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11329 | else | |
11330 | echo "$as_me:$LINENO: result: no" >&5 | |
11331 | echo "${ECHO_T}no" >&6 | |
11332 | fi | |
11333 | ||
11334 | RANLIB=$ac_ct_RANLIB | |
11335 | else | |
11336 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11337 | fi |
11338 | ||
10f2d63a VZ |
11339 | |
11340 | # Extract the first word of "ar", so it can be a program name with args. | |
11341 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11342 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11344 | if test "${ac_cv_prog_AR+set}" = set; then | |
11345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11346 | else |
11347 | if test -n "$AR"; then | |
11348 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11349 | else | |
e6cc62c6 VS |
11350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11351 | for as_dir in $PATH | |
11352 | do | |
11353 | IFS=$as_save_IFS | |
11354 | test -z "$as_dir" && as_dir=. | |
11355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11357 | ac_cv_prog_AR="ar" | |
11358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11359 | break 2 | |
11360 | fi | |
11361 | done | |
11362 | done | |
11363 | ||
10f2d63a VZ |
11364 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
11365 | fi | |
11366 | fi | |
e6cc62c6 | 11367 | AR=$ac_cv_prog_AR |
10f2d63a | 11368 | if test -n "$AR"; then |
e6cc62c6 VS |
11369 | echo "$as_me:$LINENO: result: $AR" >&5 |
11370 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11371 | else |
e6cc62c6 VS |
11372 | echo "$as_me:$LINENO: result: no" >&5 |
11373 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11374 | fi |
11375 | ||
8284b0c5 | 11376 | |
6054113a | 11377 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11378 | # so one script is as good as another. But avoid the broken or |
11379 | # incompatible versions: | |
11380 | # SysV /etc/install, /usr/sbin/install | |
11381 | # SunOS /usr/etc/install | |
11382 | # IRIX /sbin/install | |
11383 | # AIX /bin/install | |
e6cc62c6 | 11384 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11385 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11386 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11387 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11388 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11389 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11390 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11391 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11392 | if test "${ac_cv_path_install+set}" = set; then |
11393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11394 | else | |
11395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11396 | for as_dir in $PATH | |
11397 | do | |
11398 | IFS=$as_save_IFS | |
11399 | test -z "$as_dir" && as_dir=. | |
11400 | # Account for people who put trailing slashes in PATH elements. | |
11401 | case $as_dir/ in | |
11402 | ./ | .// | /cC/* | \ | |
11403 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11404 | /usr/ucb/* ) ;; | |
11405 | *) | |
11406 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11407 | # Don't use installbsd from OSF since it installs stuff as root | |
11408 | # by default. | |
11409 | for ac_prog in ginstall scoinst install; do | |
11410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11411 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11412 | if test $ac_prog = install && | |
11413 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11414 | # AIX install. It has an incompatible calling convention. | |
11415 | : | |
11416 | elif test $ac_prog = install && | |
11417 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11418 | # program-specific install script used by HP pwplus--don't use. | |
11419 | : | |
11420 | else | |
11421 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11422 | break 3 | |
11423 | fi | |
11424 | fi | |
10f2d63a | 11425 | done |
e6cc62c6 VS |
11426 | done |
11427 | ;; | |
11428 | esac | |
11429 | done | |
11430 | ||
10f2d63a VZ |
11431 | |
11432 | fi | |
11433 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11434 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11435 | else |
11436 | # As a last resort, use the slow shell script. We don't cache a | |
11437 | # path for INSTALL within a source directory, because that will | |
11438 | # break other packages using the cache if that directory is | |
11439 | # removed, or if the path is relative. | |
e6cc62c6 | 11440 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11441 | fi |
11442 | fi | |
e6cc62c6 VS |
11443 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11444 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11445 | |
11446 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11447 | # It thinks the first close brace ends the variable substitution. | |
11448 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11449 | ||
e6cc62c6 | 11450 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11451 | |
10f2d63a VZ |
11452 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11453 | ||
8284b0c5 | 11454 | |
1d1b75ac VZ |
11455 | case ${INSTALL} in |
11456 | /* ) # Absolute | |
11457 | ;; | |
4f5a7f74 VZ |
11458 | ?:* ) # Drive letter, considered as absolute. |
11459 | ;; | |
3bd8fb5f | 11460 | *) |
1d1b75ac VZ |
11461 | INSTALL=`pwd`/${INSTALL} ;; |
11462 | esac | |
11463 | ||
4f5a7f74 VZ |
11464 | case ${host} in |
11465 | *-hp-hpux* ) | |
11466 | INSTALL_DIR="mkdir" | |
11467 | ;; | |
11468 | ||
11469 | *) INSTALL_DIR="$INSTALL -d" | |
11470 | ;; | |
11471 | esac | |
11472 | ||
8284b0c5 | 11473 | |
6054113a GD |
11474 | case "${host}" in |
11475 | ||
b5853384 | 11476 | powerpc-*-darwin* ) |
eb99ae0b GD |
11477 | INSTALL_PROGRAM="cp -fp" |
11478 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11479 | ;; |
11480 | *) | |
11481 | ;; | |
d6853540 | 11482 | esac |
698dcdb6 | 11483 | |
10f2d63a VZ |
11484 | # Extract the first word of "strip", so it can be a program name with args. |
11485 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11488 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11490 | else |
11491 | if test -n "$STRIP"; then | |
11492 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11493 | else | |
e6cc62c6 VS |
11494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11495 | for as_dir in $PATH | |
11496 | do | |
11497 | IFS=$as_save_IFS | |
11498 | test -z "$as_dir" && as_dir=. | |
11499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11501 | ac_cv_prog_STRIP="strip" | |
11502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11503 | break 2 | |
11504 | fi | |
11505 | done | |
11506 | done | |
11507 | ||
10f2d63a VZ |
11508 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11509 | fi | |
11510 | fi | |
e6cc62c6 | 11511 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11512 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11513 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11514 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11515 | else |
e6cc62c6 VS |
11516 | echo "$as_me:$LINENO: result: no" >&5 |
11517 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11518 | fi |
11519 | ||
5c6fa7d2 | 11520 | |
e6cc62c6 VS |
11521 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11522 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11523 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11525 | else |
e6cc62c6 | 11526 | |
414eab6d | 11527 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11528 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11529 | wx_cv_prog_makeisgnu="yes" |
11530 | else | |
11531 | wx_cv_prog_makeisgnu="no" | |
11532 | fi | |
11533 | ||
11534 | fi | |
e6cc62c6 VS |
11535 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11536 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11537 | |
11538 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11539 | IF_GNU_MAKE="" | |
11540 | else | |
11541 | IF_GNU_MAKE="#" | |
11542 | fi | |
11543 | ||
8284b0c5 MB |
11544 | |
11545 | ||
414eab6d | 11546 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11547 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11548 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11549 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11551 | else |
e6cc62c6 | 11552 | |
10f2d63a VZ |
11553 | cat - << EOF > confMake |
11554 | check : file | |
11555 | cp \$? \$@ | |
11556 | cp \$? final_file | |
11557 | EOF | |
11558 | ||
11559 | if test ! -d sub ; then | |
11560 | mkdir sub | |
11561 | fi | |
11562 | echo dummy > sub/file | |
f6bcfd97 | 11563 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11564 | RESULT=$? |
11565 | rm -f sub/file check final_file confMake | |
11566 | rmdir sub | |
11567 | if test "$RESULT" = 0; then | |
04e7a216 | 11568 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11569 | else |
04e7a216 VZ |
11570 | wx_cv_prog_makevpath="no" |
11571 | fi | |
11572 | ||
11573 | fi | |
e6cc62c6 VS |
11574 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11575 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11576 | |
11577 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11578 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11579 | You need a make-utility that is able to use the variable |
11580 | VPATH correctly. | |
11581 | If your version of make does not support VPATH correctly, | |
11582 | please install GNU-make (possibly as gmake), and start | |
11583 | configure with the following command: | |
11584 | export MAKE=gmake; ./configure for sh-type shells | |
11585 | setenv MAKE gmake; ./configure for csh-type shells | |
11586 | Also please do remember to use gmake in this case every time | |
11587 | you are trying to compile. | |
e6cc62c6 VS |
11588 | " >&5 |
11589 | echo "$as_me: error: | |
11590 | You need a make-utility that is able to use the variable | |
11591 | VPATH correctly. | |
11592 | If your version of make does not support VPATH correctly, | |
11593 | please install GNU-make (possibly as gmake), and start | |
11594 | configure with the following command: | |
11595 | export MAKE=gmake; ./configure for sh-type shells | |
11596 | setenv MAKE gmake; ./configure for csh-type shells | |
11597 | Also please do remember to use gmake in this case every time | |
11598 | you are trying to compile. | |
11599 | " >&2;} | |
11600 | { (exit 1); exit 1; }; } | |
11601 | fi fi | |
10f2d63a VZ |
11602 | for ac_prog in 'bison -y' byacc |
11603 | do | |
e6cc62c6 | 11604 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 11605 | set dummy $ac_prog; ac_word=$2 |
e6cc62c6 VS |
11606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11608 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11610 | else |
11611 | if test -n "$YACC"; then | |
11612 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11613 | else | |
e6cc62c6 VS |
11614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11615 | for as_dir in $PATH | |
11616 | do | |
11617 | IFS=$as_save_IFS | |
11618 | test -z "$as_dir" && as_dir=. | |
11619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11621 | ac_cv_prog_YACC="$ac_prog" | |
11622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11623 | break 2 | |
11624 | fi | |
11625 | done | |
11626 | done | |
11627 | ||
10f2d63a VZ |
11628 | fi |
11629 | fi | |
e6cc62c6 | 11630 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11631 | if test -n "$YACC"; then |
e6cc62c6 VS |
11632 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11633 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11634 | else |
e6cc62c6 VS |
11635 | echo "$as_me:$LINENO: result: no" >&5 |
11636 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11637 | fi |
11638 | ||
e6cc62c6 | 11639 | test -n "$YACC" && break |
10f2d63a VZ |
11640 | done |
11641 | test -n "$YACC" || YACC="yacc" | |
11642 | ||
8284b0c5 | 11643 | |
e6cc62c6 VS |
11644 | for ac_prog in flex lex |
11645 | do | |
11646 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11647 | set dummy $ac_prog; ac_word=$2 | |
11648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11650 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11652 | else |
11653 | if test -n "$LEX"; then | |
11654 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11655 | else | |
e6cc62c6 VS |
11656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11657 | for as_dir in $PATH | |
11658 | do | |
11659 | IFS=$as_save_IFS | |
11660 | test -z "$as_dir" && as_dir=. | |
11661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11663 | ac_cv_prog_LEX="$ac_prog" | |
11664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11665 | break 2 | |
11666 | fi | |
11667 | done | |
11668 | done | |
11669 | ||
10f2d63a VZ |
11670 | fi |
11671 | fi | |
e6cc62c6 | 11672 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11673 | if test -n "$LEX"; then |
e6cc62c6 VS |
11674 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11675 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11676 | else |
e6cc62c6 VS |
11677 | echo "$as_me:$LINENO: result: no" >&5 |
11678 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11679 | fi |
11680 | ||
e6cc62c6 VS |
11681 | test -n "$LEX" && break |
11682 | done | |
11683 | test -n "$LEX" || LEX=":" | |
11684 | ||
10f2d63a VZ |
11685 | if test -z "$LEXLIB" |
11686 | then | |
e6cc62c6 VS |
11687 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11688 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11689 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11691 | else | |
11692 | ac_check_lib_save_LIBS=$LIBS | |
11693 | LIBS="-lfl $LIBS" | |
11694 | cat >conftest.$ac_ext <<_ACEOF | |
11695 | #line $LINENO "configure" | |
11696 | /* confdefs.h. */ | |
11697 | _ACEOF | |
11698 | cat confdefs.h >>conftest.$ac_ext | |
11699 | cat >>conftest.$ac_ext <<_ACEOF | |
11700 | /* end confdefs.h. */ | |
11701 | ||
11702 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11703 | #ifdef __cplusplus | |
11704 | extern "C" | |
11705 | #endif | |
11706 | /* We use char because int might match the return type of a gcc2 | |
11707 | builtin and then its argument prototype would still apply. */ | |
11708 | char yywrap (); | |
11709 | int | |
11710 | main () | |
11711 | { | |
11712 | yywrap (); | |
11713 | ; | |
11714 | return 0; | |
11715 | } | |
11716 | _ACEOF | |
11717 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11719 | (eval $ac_link) 2>&5 | |
11720 | ac_status=$? | |
11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11722 | (exit $ac_status); } && | |
11723 | { ac_try='test -s conftest$ac_exeext' | |
11724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11725 | (eval $ac_try) 2>&5 | |
11726 | ac_status=$? | |
11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11728 | (exit $ac_status); }; }; then | |
11729 | ac_cv_lib_fl_yywrap=yes | |
11730 | else | |
11731 | echo "$as_me: failed program was:" >&5 | |
11732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11733 | ||
11734 | ac_cv_lib_fl_yywrap=no | |
11735 | fi | |
11736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11737 | LIBS=$ac_check_lib_save_LIBS | |
11738 | fi | |
11739 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11740 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11741 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11742 | LEXLIB="-lfl" | |
11743 | else | |
11744 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11745 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11746 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11748 | else | |
11749 | ac_check_lib_save_LIBS=$LIBS | |
11750 | LIBS="-ll $LIBS" | |
11751 | cat >conftest.$ac_ext <<_ACEOF | |
11752 | #line $LINENO "configure" | |
11753 | /* confdefs.h. */ | |
11754 | _ACEOF | |
11755 | cat confdefs.h >>conftest.$ac_ext | |
11756 | cat >>conftest.$ac_ext <<_ACEOF | |
11757 | /* end confdefs.h. */ | |
11758 | ||
247f5006 | 11759 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11760 | #ifdef __cplusplus |
11761 | extern "C" | |
11762 | #endif | |
247f5006 | 11763 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11764 | builtin and then its argument prototype would still apply. */ |
11765 | char yywrap (); | |
11766 | int | |
11767 | main () | |
11768 | { | |
11769 | yywrap (); | |
11770 | ; | |
11771 | return 0; | |
11772 | } | |
11773 | _ACEOF | |
11774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11776 | (eval $ac_link) 2>&5 | |
11777 | ac_status=$? | |
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11779 | (exit $ac_status); } && | |
11780 | { ac_try='test -s conftest$ac_exeext' | |
11781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11782 | (eval $ac_try) 2>&5 | |
11783 | ac_status=$? | |
11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11785 | (exit $ac_status); }; }; then | |
11786 | ac_cv_lib_l_yywrap=yes | |
11787 | else | |
11788 | echo "$as_me: failed program was:" >&5 | |
11789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11790 | ||
11791 | ac_cv_lib_l_yywrap=no | |
11792 | fi | |
11793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11794 | LIBS=$ac_check_lib_save_LIBS | |
11795 | fi | |
11796 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11797 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11798 | if test $ac_cv_lib_l_yywrap = yes; then | |
11799 | LEXLIB="-ll" | |
11800 | fi | |
10f2d63a | 11801 | |
10f2d63a | 11802 | fi |
8284b0c5 | 11803 | |
10f2d63a | 11804 | fi |
e6cc62c6 VS |
11805 | |
11806 | if test "x$LEX" != "x:"; then | |
11807 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11808 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11809 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11811 | else | |
11812 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11813 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11814 | cat >conftest.l <<_ACEOF | |
11815 | %% | |
11816 | %% | |
11817 | _ACEOF | |
11818 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11819 | (eval $LEX conftest.l) 2>&5 | |
11820 | ac_status=$? | |
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11822 | (exit $ac_status); } | |
11823 | if test -f lex.yy.c; then | |
11824 | ac_cv_prog_lex_root=lex.yy | |
11825 | elif test -f lexyy.c; then | |
11826 | ac_cv_prog_lex_root=lexyy | |
8284b0c5 | 11827 | else |
e6cc62c6 VS |
11828 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
11829 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11830 | { (exit 1); exit 1; }; } | |
10f2d63a | 11831 | fi |
a0b9e27f | 11832 | fi |
e6cc62c6 VS |
11833 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
11834 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11835 | rm -f conftest.l | |
11836 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10f2d63a | 11837 | |
e6cc62c6 VS |
11838 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11839 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11840 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11842 | else |
e6cc62c6 VS |
11843 | # POSIX says lex can declare yytext either as a pointer or an array; the |
11844 | # default is implementation-dependent. Figure out which it is, since | |
11845 | # not all implementations provide the %pointer and %array declarations. | |
11846 | ac_cv_prog_lex_yytext_pointer=no | |
11847 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11848 | ac_save_LIBS=$LIBS | |
11849 | LIBS="$LIBS $LEXLIB" | |
11850 | cat >conftest.$ac_ext <<_ACEOF | |
11851 | `cat $LEX_OUTPUT_ROOT.c` | |
11852 | _ACEOF | |
11853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11855 | (eval $ac_link) 2>&5 | |
11856 | ac_status=$? | |
11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11858 | (exit $ac_status); } && | |
11859 | { ac_try='test -s conftest$ac_exeext' | |
11860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11861 | (eval $ac_try) 2>&5 | |
11862 | ac_status=$? | |
11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11864 | (exit $ac_status); }; }; then | |
11865 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 11866 | else |
e6cc62c6 VS |
11867 | echo "$as_me: failed program was:" >&5 |
11868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11869 | ||
10f2d63a | 11870 | fi |
e6cc62c6 VS |
11871 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
11872 | LIBS=$ac_save_LIBS | |
11873 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11874 | ||
11875 | fi | |
11876 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11877 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11878 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11879 | ||
11880 | cat >>confdefs.h <<\_ACEOF | |
11881 | #define YYTEXT_POINTER 1 | |
11882 | _ACEOF | |
11883 | ||
a0b9e27f | 11884 | fi |
e6cc62c6 VS |
11885 | |
11886 | fi | |
11887 | ||
11888 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11889 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11890 | LN_S=$as_ln_s | |
11891 | if test "$LN_S" = "ln -s"; then | |
11892 | echo "$as_me:$LINENO: result: yes" >&5 | |
11893 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11894 | else |
e6cc62c6 VS |
11895 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11896 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11897 | fi |
5c6fa7d2 | 11898 | |
247f5006 | 11899 | |
2b5f62a0 VZ |
11900 | case "${host}" in |
11901 | *-pc-os2_emx | *-pc-os2-emx ) | |
11902 | LIBS="$LIBS -lstdcpp" | |
11903 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
e6cc62c6 VS |
11904 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11905 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11906 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11908 | else |
e6cc62c6 | 11909 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11910 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11911 | cat >conftest.$ac_ext <<_ACEOF |
11912 | #line $LINENO "configure" | |
11913 | /* confdefs.h. */ | |
11914 | _ACEOF | |
11915 | cat confdefs.h >>conftest.$ac_ext | |
11916 | cat >>conftest.$ac_ext <<_ACEOF | |
11917 | /* end confdefs.h. */ | |
11918 | ||
2b5f62a0 | 11919 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11920 | #ifdef __cplusplus |
11921 | extern "C" | |
11922 | #endif | |
2b5f62a0 | 11923 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11924 | builtin and then its argument prototype would still apply. */ |
11925 | char drand48 (); | |
11926 | int | |
11927 | main () | |
11928 | { | |
11929 | drand48 (); | |
11930 | ; | |
11931 | return 0; | |
11932 | } | |
11933 | _ACEOF | |
11934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11936 | (eval $ac_link) 2>&5 | |
11937 | ac_status=$? | |
11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11939 | (exit $ac_status); } && | |
11940 | { ac_try='test -s conftest$ac_exeext' | |
11941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11942 | (eval $ac_try) 2>&5 | |
11943 | ac_status=$? | |
11944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11945 | (exit $ac_status); }; }; then | |
11946 | ac_cv_lib_cExt_drand48=yes | |
11947 | else | |
11948 | echo "$as_me: failed program was:" >&5 | |
11949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11950 | ||
11951 | ac_cv_lib_cExt_drand48=no | |
11952 | fi | |
11953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11954 | LIBS=$ac_check_lib_save_LIBS | |
11955 | fi | |
11956 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11957 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11958 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11959 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11960 | fi |
11961 | ||
11962 | else | |
11963 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11964 | fi | |
11965 | ;; | |
11966 | esac | |
11967 | ||
a0b9e27f | 11968 | |
01aa5863 VS |
11969 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11970 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11971 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11972 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11974 | else | |
11975 | ac_cv_header_strings_h=no | |
11976 | fi | |
11977 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11978 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11979 | if test "$ac_cv_header_strings_h" = "no"; then | |
11980 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11981 | echo "${ECHO_T}forced no into cache" >&6 | |
11982 | else | |
11983 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11984 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11985 | fi | |
11986 | fi | |
11987 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11988 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11989 | if test "${ac_cv_header_stdc+set}" = set; then | |
11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11991 | else | |
11992 | cat >conftest.$ac_ext <<_ACEOF | |
11993 | #line $LINENO "configure" | |
11994 | /* confdefs.h. */ | |
11995 | _ACEOF | |
11996 | cat confdefs.h >>conftest.$ac_ext | |
11997 | cat >>conftest.$ac_ext <<_ACEOF | |
11998 | /* end confdefs.h. */ | |
11999 | #include <stdlib.h> | |
12000 | #include <stdarg.h> | |
12001 | #include <string.h> | |
12002 | #include <float.h> | |
247f5006 | 12003 | |
e6cc62c6 VS |
12004 | int |
12005 | main () | |
12006 | { | |
90dd450c | 12007 | |
e6cc62c6 VS |
12008 | ; |
12009 | return 0; | |
12010 | } | |
12011 | _ACEOF | |
12012 | rm -f conftest.$ac_objext | |
12013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12014 | (eval $ac_compile) 2>&5 | |
12015 | ac_status=$? | |
12016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12017 | (exit $ac_status); } && | |
12018 | { ac_try='test -s conftest.$ac_objext' | |
12019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12020 | (eval $ac_try) 2>&5 | |
12021 | ac_status=$? | |
12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12023 | (exit $ac_status); }; }; then | |
12024 | ac_cv_header_stdc=yes | |
8284b0c5 | 12025 | else |
e6cc62c6 VS |
12026 | echo "$as_me: failed program was:" >&5 |
12027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12028 | ||
12029 | ac_cv_header_stdc=no | |
21d1c967 | 12030 | fi |
e6cc62c6 | 12031 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12032 | |
e6cc62c6 VS |
12033 | if test $ac_cv_header_stdc = yes; then |
12034 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12035 | cat >conftest.$ac_ext <<_ACEOF | |
12036 | #line $LINENO "configure" | |
12037 | /* confdefs.h. */ | |
12038 | _ACEOF | |
12039 | cat confdefs.h >>conftest.$ac_ext | |
12040 | cat >>conftest.$ac_ext <<_ACEOF | |
12041 | /* end confdefs.h. */ | |
12042 | #include <string.h> | |
12043 | ||
12044 | _ACEOF | |
12045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12046 | $EGREP "memchr" >/dev/null 2>&1; then | |
12047 | : | |
12048 | else | |
12049 | ac_cv_header_stdc=no | |
3a922bb4 | 12050 | fi |
a0b9e27f | 12051 | rm -f conftest* |
e6cc62c6 | 12052 | |
90dd450c | 12053 | fi |
e6cc62c6 VS |
12054 | |
12055 | if test $ac_cv_header_stdc = yes; then | |
12056 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12057 | cat >conftest.$ac_ext <<_ACEOF | |
12058 | #line $LINENO "configure" | |
12059 | /* confdefs.h. */ | |
12060 | _ACEOF | |
12061 | cat confdefs.h >>conftest.$ac_ext | |
12062 | cat >>conftest.$ac_ext <<_ACEOF | |
12063 | /* end confdefs.h. */ | |
12064 | #include <stdlib.h> | |
12065 | ||
12066 | _ACEOF | |
12067 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12068 | $EGREP "free" >/dev/null 2>&1; then | |
12069 | : | |
a0b9e27f | 12070 | else |
e6cc62c6 | 12071 | ac_cv_header_stdc=no |
21d1c967 | 12072 | fi |
e6cc62c6 | 12073 | rm -f conftest* |
247f5006 VZ |
12074 | |
12075 | fi | |
e6cc62c6 VS |
12076 | |
12077 | if test $ac_cv_header_stdc = yes; then | |
12078 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12079 | if test "$cross_compiling" = yes; then | |
12080 | : | |
12081 | else | |
12082 | cat >conftest.$ac_ext <<_ACEOF | |
12083 | #line $LINENO "configure" | |
12084 | /* confdefs.h. */ | |
12085 | _ACEOF | |
12086 | cat confdefs.h >>conftest.$ac_ext | |
12087 | cat >>conftest.$ac_ext <<_ACEOF | |
12088 | /* end confdefs.h. */ | |
12089 | #include <ctype.h> | |
12090 | #if ((' ' & 0x0FF) == 0x020) | |
12091 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12092 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12093 | #else | |
12094 | # define ISLOWER(c) \ | |
12095 | (('a' <= (c) && (c) <= 'i') \ | |
12096 | || ('j' <= (c) && (c) <= 'r') \ | |
12097 | || ('s' <= (c) && (c) <= 'z')) | |
12098 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12099 | #endif | |
12100 | ||
12101 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12102 | int | |
12103 | main () | |
12104 | { | |
12105 | int i; | |
12106 | for (i = 0; i < 256; i++) | |
12107 | if (XOR (islower (i), ISLOWER (i)) | |
12108 | || toupper (i) != TOUPPER (i)) | |
12109 | exit(2); | |
12110 | exit (0); | |
12111 | } | |
12112 | _ACEOF | |
12113 | rm -f conftest$ac_exeext | |
12114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12115 | (eval $ac_link) 2>&5 | |
12116 | ac_status=$? | |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12120 | (eval $ac_try) 2>&5 | |
12121 | ac_status=$? | |
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12123 | (exit $ac_status); }; }; then | |
12124 | : | |
a0b9e27f | 12125 | else |
e6cc62c6 VS |
12126 | echo "$as_me: program exited with status $ac_status" >&5 |
12127 | echo "$as_me: failed program was:" >&5 | |
12128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12129 | ||
12130 | ( exit $ac_status ) | |
12131 | ac_cv_header_stdc=no | |
12132 | fi | |
12133 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12134 | fi | |
12135 | fi | |
12136 | fi | |
12137 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12138 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12139 | if test $ac_cv_header_stdc = yes; then | |
12140 | ||
12141 | cat >>confdefs.h <<\_ACEOF | |
12142 | #define STDC_HEADERS 1 | |
12143 | _ACEOF | |
12144 | ||
a0b9e27f | 12145 | fi |
e6cc62c6 VS |
12146 | |
12147 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12148 | ||
12149 | ||
12150 | ||
12151 | ||
12152 | ||
12153 | ||
12154 | ||
12155 | ||
12156 | ||
12157 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12158 | inttypes.h stdint.h unistd.h | |
12159 | do | |
12160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12161 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12162 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12163 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12165 | else | |
12166 | cat >conftest.$ac_ext <<_ACEOF | |
12167 | #line $LINENO "configure" | |
12168 | /* confdefs.h. */ | |
12169 | _ACEOF | |
12170 | cat confdefs.h >>conftest.$ac_ext | |
12171 | cat >>conftest.$ac_ext <<_ACEOF | |
12172 | /* end confdefs.h. */ | |
12173 | $ac_includes_default | |
12174 | ||
12175 | #include <$ac_header> | |
12176 | _ACEOF | |
12177 | rm -f conftest.$ac_objext | |
12178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12179 | (eval $ac_compile) 2>&5 | |
12180 | ac_status=$? | |
12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12182 | (exit $ac_status); } && | |
12183 | { ac_try='test -s conftest.$ac_objext' | |
12184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12185 | (eval $ac_try) 2>&5 | |
12186 | ac_status=$? | |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12188 | (exit $ac_status); }; }; then | |
12189 | eval "$as_ac_Header=yes" | |
12190 | else | |
12191 | echo "$as_me: failed program was:" >&5 | |
12192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12193 | ||
12194 | eval "$as_ac_Header=no" | |
12195 | fi | |
12196 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12197 | fi | |
12198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12199 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12201 | cat >>confdefs.h <<_ACEOF | |
12202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12203 | _ACEOF | |
12204 | ||
12205 | fi | |
12206 | ||
a0b9e27f | 12207 | done |
90dd450c | 12208 | |
e6cc62c6 VS |
12209 | |
12210 | ||
12211 | for ac_header in strings.h | |
21d1c967 | 12212 | do |
e6cc62c6 VS |
12213 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12215 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12216 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12219 | fi | |
12220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12222 | else | |
12223 | # Is the header compilable? | |
12224 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12225 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12226 | cat >conftest.$ac_ext <<_ACEOF | |
12227 | #line $LINENO "configure" | |
12228 | /* confdefs.h. */ | |
12229 | _ACEOF | |
12230 | cat confdefs.h >>conftest.$ac_ext | |
12231 | cat >>conftest.$ac_ext <<_ACEOF | |
12232 | /* end confdefs.h. */ | |
12233 | $ac_includes_default | |
12234 | #include <$ac_header> | |
12235 | _ACEOF | |
12236 | rm -f conftest.$ac_objext | |
12237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12238 | (eval $ac_compile) 2>&5 | |
12239 | ac_status=$? | |
12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12241 | (exit $ac_status); } && | |
12242 | { ac_try='test -s conftest.$ac_objext' | |
12243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12244 | (eval $ac_try) 2>&5 | |
12245 | ac_status=$? | |
12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12247 | (exit $ac_status); }; }; then | |
12248 | ac_header_compiler=yes | |
12249 | else | |
12250 | echo "$as_me: failed program was:" >&5 | |
12251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12252 | ||
12253 | ac_header_compiler=no | |
12254 | fi | |
12255 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12256 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12257 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12258 | ||
12259 | # Is the header present? | |
12260 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12261 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12262 | cat >conftest.$ac_ext <<_ACEOF | |
12263 | #line $LINENO "configure" | |
12264 | /* confdefs.h. */ | |
12265 | _ACEOF | |
12266 | cat confdefs.h >>conftest.$ac_ext | |
12267 | cat >>conftest.$ac_ext <<_ACEOF | |
12268 | /* end confdefs.h. */ | |
12269 | #include <$ac_header> | |
12270 | _ACEOF | |
12271 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12272 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12273 | ac_status=$? | |
12274 | grep -v '^ *+' conftest.er1 >conftest.err | |
12275 | rm -f conftest.er1 | |
12276 | cat conftest.err >&5 | |
12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12278 | (exit $ac_status); } >/dev/null; then | |
12279 | if test -s conftest.err; then | |
12280 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12281 | else | |
12282 | ac_cpp_err= | |
12283 | fi | |
12284 | else | |
12285 | ac_cpp_err=yes | |
12286 | fi | |
12287 | if test -z "$ac_cpp_err"; then | |
12288 | ac_header_preproc=yes | |
12289 | else | |
12290 | echo "$as_me: failed program was:" >&5 | |
12291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12292 | ||
12293 | ac_header_preproc=no | |
12294 | fi | |
12295 | rm -f conftest.err conftest.$ac_ext | |
12296 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12297 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12298 | ||
12299 | # So? What about this header? | |
12300 | case $ac_header_compiler:$ac_header_preproc in | |
12301 | yes:no ) | |
12302 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12303 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12304 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12305 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12306 | ( | |
12307 | cat <<\_ASBOX | |
12308 | ## ------------------------------------ ## | |
12309 | ## Report this to bug-autoconf@gnu.org. ## | |
12310 | ## ------------------------------------ ## | |
12311 | _ASBOX | |
12312 | ) | | |
12313 | sed "s/^/$as_me: WARNING: /" >&2 | |
12314 | ;; | |
12315 | no:yes ) | |
12316 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12317 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12318 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12319 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12321 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12322 | ( | |
12323 | cat <<\_ASBOX | |
12324 | ## ------------------------------------ ## | |
12325 | ## Report this to bug-autoconf@gnu.org. ## | |
12326 | ## ------------------------------------ ## | |
12327 | _ASBOX | |
12328 | ) | | |
12329 | sed "s/^/$as_me: WARNING: /" >&2 | |
12330 | ;; | |
12331 | esac | |
12332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12336 | else | |
12337 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12338 | fi |
e6cc62c6 VS |
12339 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12340 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12341 | ||
a0b9e27f | 12342 | fi |
e6cc62c6 VS |
12343 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12344 | cat >>confdefs.h <<_ACEOF | |
12345 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12346 | _ACEOF | |
12347 | ||
12348 | fi | |
12349 | ||
12350 | done | |
12351 | ||
e6cc62c6 VS |
12352 | |
12353 | ||
12354 | for ac_header in stdlib.h | |
12355 | do | |
12356 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12362 | fi | |
12363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12365 | else | |
12366 | # Is the header compilable? | |
12367 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12368 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12369 | cat >conftest.$ac_ext <<_ACEOF | |
12370 | #line $LINENO "configure" | |
12371 | /* confdefs.h. */ | |
12372 | _ACEOF | |
12373 | cat confdefs.h >>conftest.$ac_ext | |
12374 | cat >>conftest.$ac_ext <<_ACEOF | |
12375 | /* end confdefs.h. */ | |
12376 | $ac_includes_default | |
12377 | #include <$ac_header> | |
12378 | _ACEOF | |
12379 | rm -f conftest.$ac_objext | |
12380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12381 | (eval $ac_compile) 2>&5 | |
12382 | ac_status=$? | |
12383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12384 | (exit $ac_status); } && | |
12385 | { ac_try='test -s conftest.$ac_objext' | |
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12387 | (eval $ac_try) 2>&5 | |
12388 | ac_status=$? | |
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12390 | (exit $ac_status); }; }; then | |
12391 | ac_header_compiler=yes | |
12392 | else | |
12393 | echo "$as_me: failed program was:" >&5 | |
12394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12395 | ||
12396 | ac_header_compiler=no | |
12397 | fi | |
12398 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12399 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12400 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12401 | ||
12402 | # Is the header present? | |
12403 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12404 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12405 | cat >conftest.$ac_ext <<_ACEOF | |
12406 | #line $LINENO "configure" | |
12407 | /* confdefs.h. */ | |
12408 | _ACEOF | |
12409 | cat confdefs.h >>conftest.$ac_ext | |
12410 | cat >>conftest.$ac_ext <<_ACEOF | |
12411 | /* end confdefs.h. */ | |
12412 | #include <$ac_header> | |
12413 | _ACEOF | |
12414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12416 | ac_status=$? | |
12417 | grep -v '^ *+' conftest.er1 >conftest.err | |
12418 | rm -f conftest.er1 | |
12419 | cat conftest.err >&5 | |
12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12421 | (exit $ac_status); } >/dev/null; then | |
12422 | if test -s conftest.err; then | |
12423 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12424 | else | |
12425 | ac_cpp_err= | |
12426 | fi | |
12427 | else | |
12428 | ac_cpp_err=yes | |
12429 | fi | |
12430 | if test -z "$ac_cpp_err"; then | |
12431 | ac_header_preproc=yes | |
12432 | else | |
12433 | echo "$as_me: failed program was:" >&5 | |
12434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12435 | ||
12436 | ac_header_preproc=no | |
12437 | fi | |
12438 | rm -f conftest.err conftest.$ac_ext | |
12439 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12440 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12441 | ||
12442 | # So? What about this header? | |
12443 | case $ac_header_compiler:$ac_header_preproc in | |
12444 | yes:no ) | |
12445 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12446 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12447 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12448 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12449 | ( | |
12450 | cat <<\_ASBOX | |
12451 | ## ------------------------------------ ## | |
12452 | ## Report this to bug-autoconf@gnu.org. ## | |
12453 | ## ------------------------------------ ## | |
12454 | _ASBOX | |
12455 | ) | | |
12456 | sed "s/^/$as_me: WARNING: /" >&2 | |
12457 | ;; | |
12458 | no:yes ) | |
12459 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12460 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12461 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12462 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12463 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12464 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12465 | ( | |
12466 | cat <<\_ASBOX | |
12467 | ## ------------------------------------ ## | |
12468 | ## Report this to bug-autoconf@gnu.org. ## | |
12469 | ## ------------------------------------ ## | |
12470 | _ASBOX | |
12471 | ) | | |
12472 | sed "s/^/$as_me: WARNING: /" >&2 | |
12473 | ;; | |
12474 | esac | |
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 | |
a0b9e27f | 12479 | else |
e6cc62c6 VS |
12480 | eval "$as_ac_Header=$ac_header_preproc" |
12481 | fi | |
12482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12484 | ||
21d1c967 | 12485 | fi |
e6cc62c6 VS |
12486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12487 | cat >>confdefs.h <<_ACEOF | |
12488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12489 | _ACEOF | |
12490 | ||
12491 | fi | |
12492 | ||
21d1c967 | 12493 | done |
4f14bcd8 | 12494 | |
5c6fa7d2 | 12495 | |
e6cc62c6 | 12496 | for ac_header in malloc.h |
21d1c967 | 12497 | do |
e6cc62c6 VS |
12498 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12500 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12501 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12502 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12504 | fi | |
12505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12507 | else | |
12508 | # Is the header compilable? | |
12509 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12510 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12511 | cat >conftest.$ac_ext <<_ACEOF | |
12512 | #line $LINENO "configure" | |
12513 | /* confdefs.h. */ | |
12514 | _ACEOF | |
12515 | cat confdefs.h >>conftest.$ac_ext | |
12516 | cat >>conftest.$ac_ext <<_ACEOF | |
12517 | /* end confdefs.h. */ | |
12518 | $ac_includes_default | |
12519 | #include <$ac_header> | |
12520 | _ACEOF | |
12521 | rm -f conftest.$ac_objext | |
12522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12523 | (eval $ac_compile) 2>&5 | |
12524 | ac_status=$? | |
12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12526 | (exit $ac_status); } && | |
12527 | { ac_try='test -s conftest.$ac_objext' | |
12528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12529 | (eval $ac_try) 2>&5 | |
12530 | ac_status=$? | |
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12532 | (exit $ac_status); }; }; then | |
12533 | ac_header_compiler=yes | |
12534 | else | |
12535 | echo "$as_me: failed program was:" >&5 | |
12536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12537 | ||
12538 | ac_header_compiler=no | |
12539 | fi | |
12540 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12542 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12543 | ||
12544 | # Is the header present? | |
12545 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12546 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12547 | cat >conftest.$ac_ext <<_ACEOF | |
12548 | #line $LINENO "configure" | |
12549 | /* confdefs.h. */ | |
12550 | _ACEOF | |
12551 | cat confdefs.h >>conftest.$ac_ext | |
12552 | cat >>conftest.$ac_ext <<_ACEOF | |
12553 | /* end confdefs.h. */ | |
12554 | #include <$ac_header> | |
12555 | _ACEOF | |
12556 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12557 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12558 | ac_status=$? | |
12559 | grep -v '^ *+' conftest.er1 >conftest.err | |
12560 | rm -f conftest.er1 | |
12561 | cat conftest.err >&5 | |
12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12563 | (exit $ac_status); } >/dev/null; then | |
12564 | if test -s conftest.err; then | |
12565 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12566 | else | |
12567 | ac_cpp_err= | |
12568 | fi | |
12569 | else | |
12570 | ac_cpp_err=yes | |
12571 | fi | |
12572 | if test -z "$ac_cpp_err"; then | |
12573 | ac_header_preproc=yes | |
12574 | else | |
12575 | echo "$as_me: failed program was:" >&5 | |
12576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12577 | ||
12578 | ac_header_preproc=no | |
12579 | fi | |
12580 | rm -f conftest.err conftest.$ac_ext | |
12581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12582 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12583 | ||
12584 | # So? What about this header? | |
12585 | case $ac_header_compiler:$ac_header_preproc in | |
12586 | yes:no ) | |
12587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12590 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12591 | ( | |
12592 | cat <<\_ASBOX | |
12593 | ## ------------------------------------ ## | |
12594 | ## Report this to bug-autoconf@gnu.org. ## | |
12595 | ## ------------------------------------ ## | |
12596 | _ASBOX | |
12597 | ) | | |
12598 | sed "s/^/$as_me: WARNING: /" >&2 | |
12599 | ;; | |
12600 | no:yes ) | |
12601 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12602 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12603 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12604 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12607 | ( | |
12608 | cat <<\_ASBOX | |
12609 | ## ------------------------------------ ## | |
12610 | ## Report this to bug-autoconf@gnu.org. ## | |
12611 | ## ------------------------------------ ## | |
12612 | _ASBOX | |
12613 | ) | | |
12614 | sed "s/^/$as_me: WARNING: /" >&2 | |
12615 | ;; | |
12616 | esac | |
12617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12621 | else | |
12622 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12623 | fi |
e6cc62c6 VS |
12624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12625 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12626 | ||
21d1c967 | 12627 | fi |
e6cc62c6 VS |
12628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12629 | cat >>confdefs.h <<_ACEOF | |
12630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12631 | _ACEOF | |
12632 | ||
12633 | fi | |
12634 | ||
12635 | done | |
12636 | ||
12637 | ||
12638 | for ac_header in unistd.h | |
12639 | do | |
12640 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12642 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12646 | fi | |
12647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12648 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12649 | else | |
12650 | # Is the header compilable? | |
12651 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12652 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12653 | cat >conftest.$ac_ext <<_ACEOF | |
12654 | #line $LINENO "configure" | |
12655 | /* confdefs.h. */ | |
12656 | _ACEOF | |
12657 | cat confdefs.h >>conftest.$ac_ext | |
12658 | cat >>conftest.$ac_ext <<_ACEOF | |
12659 | /* end confdefs.h. */ | |
12660 | $ac_includes_default | |
12661 | #include <$ac_header> | |
12662 | _ACEOF | |
12663 | rm -f conftest.$ac_objext | |
12664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12665 | (eval $ac_compile) 2>&5 | |
12666 | ac_status=$? | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); } && | |
12669 | { ac_try='test -s conftest.$ac_objext' | |
12670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12671 | (eval $ac_try) 2>&5 | |
12672 | ac_status=$? | |
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12674 | (exit $ac_status); }; }; then | |
12675 | ac_header_compiler=yes | |
12676 | else | |
12677 | echo "$as_me: failed program was:" >&5 | |
12678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12679 | ||
12680 | ac_header_compiler=no | |
12681 | fi | |
12682 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12685 | ||
12686 | # Is the header present? | |
12687 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12689 | cat >conftest.$ac_ext <<_ACEOF | |
12690 | #line $LINENO "configure" | |
12691 | /* confdefs.h. */ | |
12692 | _ACEOF | |
12693 | cat confdefs.h >>conftest.$ac_ext | |
12694 | cat >>conftest.$ac_ext <<_ACEOF | |
12695 | /* end confdefs.h. */ | |
12696 | #include <$ac_header> | |
12697 | _ACEOF | |
12698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12700 | ac_status=$? | |
12701 | grep -v '^ *+' conftest.er1 >conftest.err | |
12702 | rm -f conftest.er1 | |
12703 | cat conftest.err >&5 | |
12704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12705 | (exit $ac_status); } >/dev/null; then | |
12706 | if test -s conftest.err; then | |
12707 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12708 | else | |
12709 | ac_cpp_err= | |
12710 | fi | |
a0b9e27f | 12711 | else |
e6cc62c6 VS |
12712 | ac_cpp_err=yes |
12713 | fi | |
12714 | if test -z "$ac_cpp_err"; then | |
12715 | ac_header_preproc=yes | |
12716 | else | |
12717 | echo "$as_me: failed program was:" >&5 | |
12718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12719 | ||
12720 | ac_header_preproc=no | |
12721 | fi | |
12722 | rm -f conftest.err conftest.$ac_ext | |
12723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12725 | ||
12726 | # So? What about this header? | |
12727 | case $ac_header_compiler:$ac_header_preproc in | |
12728 | yes:no ) | |
12729 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12730 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12731 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12732 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12733 | ( | |
12734 | cat <<\_ASBOX | |
12735 | ## ------------------------------------ ## | |
12736 | ## Report this to bug-autoconf@gnu.org. ## | |
12737 | ## ------------------------------------ ## | |
12738 | _ASBOX | |
12739 | ) | | |
12740 | sed "s/^/$as_me: WARNING: /" >&2 | |
12741 | ;; | |
12742 | no:yes ) | |
12743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12748 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12749 | ( | |
12750 | cat <<\_ASBOX | |
12751 | ## ------------------------------------ ## | |
12752 | ## Report this to bug-autoconf@gnu.org. ## | |
12753 | ## ------------------------------------ ## | |
12754 | _ASBOX | |
12755 | ) | | |
12756 | sed "s/^/$as_me: WARNING: /" >&2 | |
12757 | ;; | |
12758 | esac | |
12759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12763 | else | |
12764 | eval "$as_ac_Header=$ac_header_preproc" | |
12765 | fi | |
12766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12768 | ||
12769 | fi | |
12770 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12771 | cat >>confdefs.h <<_ACEOF | |
12772 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12773 | _ACEOF | |
12774 | ||
d4158b5d | 12775 | fi |
e6cc62c6 | 12776 | |
21d1c967 | 12777 | done |
f6bcfd97 | 12778 | |
e6cc62c6 VS |
12779 | |
12780 | for ac_header in wchar.h | |
12781 | do | |
12782 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12784 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12788 | fi | |
12789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12790 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12791 | else | |
12792 | # Is the header compilable? | |
12793 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12794 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12795 | cat >conftest.$ac_ext <<_ACEOF | |
12796 | #line $LINENO "configure" | |
12797 | /* confdefs.h. */ | |
12798 | _ACEOF | |
12799 | cat confdefs.h >>conftest.$ac_ext | |
12800 | cat >>conftest.$ac_ext <<_ACEOF | |
12801 | /* end confdefs.h. */ | |
12802 | $ac_includes_default | |
12803 | #include <$ac_header> | |
12804 | _ACEOF | |
12805 | rm -f conftest.$ac_objext | |
12806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12807 | (eval $ac_compile) 2>&5 | |
12808 | ac_status=$? | |
12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12810 | (exit $ac_status); } && | |
12811 | { ac_try='test -s conftest.$ac_objext' | |
12812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12813 | (eval $ac_try) 2>&5 | |
12814 | ac_status=$? | |
12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12816 | (exit $ac_status); }; }; then | |
12817 | ac_header_compiler=yes | |
12818 | else | |
12819 | echo "$as_me: failed program was:" >&5 | |
12820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12821 | ||
12822 | ac_header_compiler=no | |
12823 | fi | |
12824 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12826 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12827 | ||
12828 | # Is the header present? | |
12829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12831 | cat >conftest.$ac_ext <<_ACEOF | |
12832 | #line $LINENO "configure" | |
12833 | /* confdefs.h. */ | |
12834 | _ACEOF | |
12835 | cat confdefs.h >>conftest.$ac_ext | |
12836 | cat >>conftest.$ac_ext <<_ACEOF | |
12837 | /* end confdefs.h. */ | |
12838 | #include <$ac_header> | |
12839 | _ACEOF | |
12840 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12841 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12842 | ac_status=$? | |
12843 | grep -v '^ *+' conftest.er1 >conftest.err | |
12844 | rm -f conftest.er1 | |
12845 | cat conftest.err >&5 | |
12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12847 | (exit $ac_status); } >/dev/null; then | |
12848 | if test -s conftest.err; then | |
12849 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12850 | else | |
12851 | ac_cpp_err= | |
12852 | fi | |
12853 | else | |
12854 | ac_cpp_err=yes | |
12855 | fi | |
12856 | if test -z "$ac_cpp_err"; then | |
12857 | ac_header_preproc=yes | |
12858 | else | |
12859 | echo "$as_me: failed program was:" >&5 | |
12860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12861 | ||
12862 | ac_header_preproc=no | |
12863 | fi | |
12864 | rm -f conftest.err conftest.$ac_ext | |
12865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12866 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12867 | ||
12868 | # So? What about this header? | |
12869 | case $ac_header_compiler:$ac_header_preproc in | |
12870 | yes:no ) | |
12871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12874 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12875 | ( | |
12876 | cat <<\_ASBOX | |
12877 | ## ------------------------------------ ## | |
12878 | ## Report this to bug-autoconf@gnu.org. ## | |
12879 | ## ------------------------------------ ## | |
12880 | _ASBOX | |
12881 | ) | | |
12882 | sed "s/^/$as_me: WARNING: /" >&2 | |
12883 | ;; | |
12884 | no:yes ) | |
12885 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12886 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12887 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12888 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12891 | ( | |
12892 | cat <<\_ASBOX | |
12893 | ## ------------------------------------ ## | |
12894 | ## Report this to bug-autoconf@gnu.org. ## | |
12895 | ## ------------------------------------ ## | |
12896 | _ASBOX | |
12897 | ) | | |
12898 | sed "s/^/$as_me: WARNING: /" >&2 | |
12899 | ;; | |
12900 | esac | |
12901 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12902 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12905 | else | |
12906 | eval "$as_ac_Header=$ac_header_preproc" | |
12907 | fi | |
12908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12910 | ||
90dd450c | 12911 | fi |
e6cc62c6 VS |
12912 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12913 | cat >>confdefs.h <<_ACEOF | |
12914 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12915 | _ACEOF | |
12916 | ||
12917 | fi | |
12918 | ||
12919 | done | |
90dd450c | 12920 | |
e6cc62c6 VS |
12921 | |
12922 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12923 | ||
12924 | for ac_header in wcstr.h | |
21d1c967 | 12925 | do |
e6cc62c6 VS |
12926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12932 | fi | |
12933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12935 | else | |
12936 | # Is the header compilable? | |
12937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12939 | cat >conftest.$ac_ext <<_ACEOF | |
12940 | #line $LINENO "configure" | |
12941 | /* confdefs.h. */ | |
12942 | _ACEOF | |
12943 | cat confdefs.h >>conftest.$ac_ext | |
12944 | cat >>conftest.$ac_ext <<_ACEOF | |
12945 | /* end confdefs.h. */ | |
12946 | $ac_includes_default | |
12947 | #include <$ac_header> | |
12948 | _ACEOF | |
12949 | rm -f conftest.$ac_objext | |
12950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12951 | (eval $ac_compile) 2>&5 | |
12952 | ac_status=$? | |
12953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12954 | (exit $ac_status); } && | |
12955 | { ac_try='test -s conftest.$ac_objext' | |
12956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12957 | (eval $ac_try) 2>&5 | |
12958 | ac_status=$? | |
12959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12960 | (exit $ac_status); }; }; then | |
12961 | ac_header_compiler=yes | |
12962 | else | |
12963 | echo "$as_me: failed program was:" >&5 | |
12964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12965 | ||
12966 | ac_header_compiler=no | |
12967 | fi | |
12968 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12969 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12970 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12971 | ||
12972 | # Is the header present? | |
12973 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12974 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12975 | cat >conftest.$ac_ext <<_ACEOF | |
12976 | #line $LINENO "configure" | |
12977 | /* confdefs.h. */ | |
12978 | _ACEOF | |
12979 | cat confdefs.h >>conftest.$ac_ext | |
12980 | cat >>conftest.$ac_ext <<_ACEOF | |
12981 | /* end confdefs.h. */ | |
12982 | #include <$ac_header> | |
12983 | _ACEOF | |
12984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12986 | ac_status=$? | |
12987 | grep -v '^ *+' conftest.er1 >conftest.err | |
12988 | rm -f conftest.er1 | |
12989 | cat conftest.err >&5 | |
12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12991 | (exit $ac_status); } >/dev/null; then | |
12992 | if test -s conftest.err; then | |
12993 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12994 | else | |
12995 | ac_cpp_err= | |
12996 | fi | |
12997 | else | |
12998 | ac_cpp_err=yes | |
12999 | fi | |
13000 | if test -z "$ac_cpp_err"; then | |
13001 | ac_header_preproc=yes | |
13002 | else | |
13003 | echo "$as_me: failed program was:" >&5 | |
13004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13005 | ||
13006 | ac_header_preproc=no | |
13007 | fi | |
13008 | rm -f conftest.err conftest.$ac_ext | |
13009 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13010 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13011 | ||
13012 | # So? What about this header? | |
13013 | case $ac_header_compiler:$ac_header_preproc in | |
13014 | yes:no ) | |
13015 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13016 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13019 | ( | |
13020 | cat <<\_ASBOX | |
13021 | ## ------------------------------------ ## | |
13022 | ## Report this to bug-autoconf@gnu.org. ## | |
13023 | ## ------------------------------------ ## | |
13024 | _ASBOX | |
13025 | ) | | |
13026 | sed "s/^/$as_me: WARNING: /" >&2 | |
13027 | ;; | |
13028 | no:yes ) | |
13029 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13030 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13031 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13032 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13035 | ( | |
13036 | cat <<\_ASBOX | |
13037 | ## ------------------------------------ ## | |
13038 | ## Report this to bug-autoconf@gnu.org. ## | |
13039 | ## ------------------------------------ ## | |
13040 | _ASBOX | |
13041 | ) | | |
13042 | sed "s/^/$as_me: WARNING: /" >&2 | |
13043 | ;; | |
13044 | esac | |
13045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13049 | else | |
13050 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13051 | fi |
e6cc62c6 VS |
13052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13054 | ||
4f14bcd8 | 13055 | fi |
e6cc62c6 VS |
13056 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13057 | cat >>confdefs.h <<_ACEOF | |
13058 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13059 | _ACEOF | |
13060 | ||
13061 | fi | |
13062 | ||
13063 | done | |
13064 | ||
13065 | fi | |
13066 | ||
13067 | ||
13068 | for ac_header in fnmatch.h | |
13069 | do | |
13070 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13076 | fi | |
13077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13078 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13079 | else | |
13080 | # Is the header compilable? | |
13081 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13082 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13083 | cat >conftest.$ac_ext <<_ACEOF | |
13084 | #line $LINENO "configure" | |
13085 | /* confdefs.h. */ | |
13086 | _ACEOF | |
13087 | cat confdefs.h >>conftest.$ac_ext | |
13088 | cat >>conftest.$ac_ext <<_ACEOF | |
13089 | /* end confdefs.h. */ | |
13090 | $ac_includes_default | |
13091 | #include <$ac_header> | |
13092 | _ACEOF | |
13093 | rm -f conftest.$ac_objext | |
13094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13095 | (eval $ac_compile) 2>&5 | |
13096 | ac_status=$? | |
13097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13098 | (exit $ac_status); } && | |
13099 | { ac_try='test -s conftest.$ac_objext' | |
13100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13101 | (eval $ac_try) 2>&5 | |
13102 | ac_status=$? | |
13103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13104 | (exit $ac_status); }; }; then | |
13105 | ac_header_compiler=yes | |
13106 | else | |
13107 | echo "$as_me: failed program was:" >&5 | |
13108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13109 | ||
13110 | ac_header_compiler=no | |
13111 | fi | |
13112 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13113 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13114 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13115 | ||
13116 | # Is the header present? | |
13117 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13119 | cat >conftest.$ac_ext <<_ACEOF | |
13120 | #line $LINENO "configure" | |
13121 | /* confdefs.h. */ | |
13122 | _ACEOF | |
13123 | cat confdefs.h >>conftest.$ac_ext | |
13124 | cat >>conftest.$ac_ext <<_ACEOF | |
13125 | /* end confdefs.h. */ | |
13126 | #include <$ac_header> | |
13127 | _ACEOF | |
13128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13130 | ac_status=$? | |
13131 | grep -v '^ *+' conftest.er1 >conftest.err | |
13132 | rm -f conftest.er1 | |
13133 | cat conftest.err >&5 | |
13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13135 | (exit $ac_status); } >/dev/null; then | |
13136 | if test -s conftest.err; then | |
13137 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13138 | else | |
13139 | ac_cpp_err= | |
13140 | fi | |
13141 | else | |
13142 | ac_cpp_err=yes | |
13143 | fi | |
13144 | if test -z "$ac_cpp_err"; then | |
13145 | ac_header_preproc=yes | |
13146 | else | |
13147 | echo "$as_me: failed program was:" >&5 | |
13148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13149 | ||
13150 | ac_header_preproc=no | |
13151 | fi | |
13152 | rm -f conftest.err conftest.$ac_ext | |
13153 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13154 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13155 | ||
13156 | # So? What about this header? | |
13157 | case $ac_header_compiler:$ac_header_preproc in | |
13158 | yes:no ) | |
13159 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13160 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13161 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13162 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13163 | ( | |
13164 | cat <<\_ASBOX | |
13165 | ## ------------------------------------ ## | |
13166 | ## Report this to bug-autoconf@gnu.org. ## | |
13167 | ## ------------------------------------ ## | |
13168 | _ASBOX | |
13169 | ) | | |
13170 | sed "s/^/$as_me: WARNING: /" >&2 | |
13171 | ;; | |
13172 | no:yes ) | |
13173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13177 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13178 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13179 | ( | |
13180 | cat <<\_ASBOX | |
13181 | ## ------------------------------------ ## | |
13182 | ## Report this to bug-autoconf@gnu.org. ## | |
13183 | ## ------------------------------------ ## | |
13184 | _ASBOX | |
13185 | ) | | |
13186 | sed "s/^/$as_me: WARNING: /" >&2 | |
13187 | ;; | |
13188 | esac | |
13189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13193 | else |
e6cc62c6 VS |
13194 | eval "$as_ac_Header=$ac_header_preproc" |
13195 | fi | |
13196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13197 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13198 | ||
21d1c967 | 13199 | fi |
e6cc62c6 VS |
13200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13201 | cat >>confdefs.h <<_ACEOF | |
13202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13203 | _ACEOF | |
13204 | ||
13205 | fi | |
13206 | ||
21d1c967 | 13207 | done |
90dd450c | 13208 | |
5c6fa7d2 | 13209 | |
a0b9e27f | 13210 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13211 | |
13212 | for ac_func in fnmatch | |
21d1c967 | 13213 | do |
e6cc62c6 VS |
13214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13217 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13219 | else | |
13220 | cat >conftest.$ac_ext <<_ACEOF | |
13221 | #line $LINENO "configure" | |
13222 | /* confdefs.h. */ | |
13223 | _ACEOF | |
13224 | cat confdefs.h >>conftest.$ac_ext | |
13225 | cat >>conftest.$ac_ext <<_ACEOF | |
13226 | /* end confdefs.h. */ | |
a0b9e27f | 13227 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13228 | which can conflict with char $ac_func (); below. |
13229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13230 | <limits.h> exists even on freestanding compilers. */ | |
13231 | #ifdef __STDC__ | |
13232 | # include <limits.h> | |
13233 | #else | |
13234 | # include <assert.h> | |
13235 | #endif | |
a0b9e27f | 13236 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13237 | #ifdef __cplusplus |
13238 | extern "C" | |
13239 | { | |
13240 | #endif | |
a0b9e27f | 13241 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13242 | builtin and then its argument prototype would still apply. */ |
13243 | char $ac_func (); | |
a0b9e27f MB |
13244 | /* The GNU C library defines this for functions which it implements |
13245 | to always fail with ENOSYS. Some functions are actually named | |
13246 | something starting with __ and the normal name is an alias. */ | |
13247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13248 | choke me | |
13249 | #else | |
e6cc62c6 VS |
13250 | char (*f) () = $ac_func; |
13251 | #endif | |
13252 | #ifdef __cplusplus | |
13253 | } | |
a0b9e27f MB |
13254 | #endif |
13255 | ||
e6cc62c6 VS |
13256 | int |
13257 | main () | |
13258 | { | |
13259 | return f != $ac_func; | |
13260 | ; | |
13261 | return 0; | |
13262 | } | |
13263 | _ACEOF | |
13264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13266 | (eval $ac_link) 2>&5 | |
13267 | ac_status=$? | |
13268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13269 | (exit $ac_status); } && | |
13270 | { ac_try='test -s conftest$ac_exeext' | |
13271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13272 | (eval $ac_try) 2>&5 | |
13273 | ac_status=$? | |
13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13275 | (exit $ac_status); }; }; then | |
13276 | eval "$as_ac_var=yes" | |
13277 | else | |
13278 | echo "$as_me: failed program was:" >&5 | |
13279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13280 | ||
13281 | eval "$as_ac_var=no" | |
13282 | fi | |
13283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13284 | fi | |
13285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13287 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13288 | cat >>confdefs.h <<_ACEOF | |
13289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13290 | _ACEOF | |
32832908 | 13291 | |
21d1c967 GD |
13292 | fi |
13293 | done | |
90dd450c | 13294 | |
a0b9e27f | 13295 | fi |
90dd450c | 13296 | |
e6cc62c6 VS |
13297 | |
13298 | for ac_header in langinfo.h | |
21d1c967 | 13299 | do |
e6cc62c6 VS |
13300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13306 | fi | |
13307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13309 | else | |
13310 | # Is the header compilable? | |
13311 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13312 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13313 | cat >conftest.$ac_ext <<_ACEOF | |
13314 | #line $LINENO "configure" | |
13315 | /* confdefs.h. */ | |
13316 | _ACEOF | |
13317 | cat confdefs.h >>conftest.$ac_ext | |
13318 | cat >>conftest.$ac_ext <<_ACEOF | |
13319 | /* end confdefs.h. */ | |
13320 | $ac_includes_default | |
13321 | #include <$ac_header> | |
13322 | _ACEOF | |
13323 | rm -f conftest.$ac_objext | |
13324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13325 | (eval $ac_compile) 2>&5 | |
13326 | ac_status=$? | |
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13328 | (exit $ac_status); } && | |
13329 | { ac_try='test -s conftest.$ac_objext' | |
13330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13331 | (eval $ac_try) 2>&5 | |
13332 | ac_status=$? | |
13333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13334 | (exit $ac_status); }; }; then | |
13335 | ac_header_compiler=yes | |
13336 | else | |
13337 | echo "$as_me: failed program was:" >&5 | |
13338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13339 | ||
13340 | ac_header_compiler=no | |
13341 | fi | |
13342 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13344 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13345 | ||
13346 | # Is the header present? | |
13347 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13349 | cat >conftest.$ac_ext <<_ACEOF | |
13350 | #line $LINENO "configure" | |
13351 | /* confdefs.h. */ | |
13352 | _ACEOF | |
13353 | cat confdefs.h >>conftest.$ac_ext | |
13354 | cat >>conftest.$ac_ext <<_ACEOF | |
13355 | /* end confdefs.h. */ | |
13356 | #include <$ac_header> | |
13357 | _ACEOF | |
13358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13360 | ac_status=$? | |
13361 | grep -v '^ *+' conftest.er1 >conftest.err | |
13362 | rm -f conftest.er1 | |
13363 | cat conftest.err >&5 | |
13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13365 | (exit $ac_status); } >/dev/null; then | |
13366 | if test -s conftest.err; then | |
13367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13368 | else | |
13369 | ac_cpp_err= | |
13370 | fi | |
13371 | else | |
13372 | ac_cpp_err=yes | |
13373 | fi | |
13374 | if test -z "$ac_cpp_err"; then | |
13375 | ac_header_preproc=yes | |
13376 | else | |
13377 | echo "$as_me: failed program was:" >&5 | |
13378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13379 | ||
13380 | ac_header_preproc=no | |
13381 | fi | |
13382 | rm -f conftest.err conftest.$ac_ext | |
13383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13384 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13385 | ||
13386 | # So? What about this header? | |
13387 | case $ac_header_compiler:$ac_header_preproc in | |
13388 | yes:no ) | |
13389 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13390 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13392 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13393 | ( | |
13394 | cat <<\_ASBOX | |
13395 | ## ------------------------------------ ## | |
13396 | ## Report this to bug-autoconf@gnu.org. ## | |
13397 | ## ------------------------------------ ## | |
13398 | _ASBOX | |
13399 | ) | | |
13400 | sed "s/^/$as_me: WARNING: /" >&2 | |
13401 | ;; | |
13402 | no:yes ) | |
13403 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13404 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13405 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13406 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13408 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13409 | ( | |
13410 | cat <<\_ASBOX | |
13411 | ## ------------------------------------ ## | |
13412 | ## Report this to bug-autoconf@gnu.org. ## | |
13413 | ## ------------------------------------ ## | |
13414 | _ASBOX | |
13415 | ) | | |
13416 | sed "s/^/$as_me: WARNING: /" >&2 | |
13417 | ;; | |
13418 | esac | |
13419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13423 | else | |
13424 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13425 | fi |
e6cc62c6 VS |
13426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13428 | ||
4f14bcd8 | 13429 | fi |
e6cc62c6 VS |
13430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13431 | cat >>confdefs.h <<_ACEOF | |
13432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13433 | _ACEOF | |
13434 | ||
21d1c967 | 13435 | fi |
e6cc62c6 | 13436 | |
21d1c967 | 13437 | done |
3a922bb4 | 13438 | |
8284b0c5 | 13439 | |
4f5a7f74 VZ |
13440 | case "${host}" in |
13441 | *-pc-os2_emx | *-pc-os2-emx ) | |
13442 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13443 | LIBS="$LIBS -lintl" | |
13444 | fi | |
13445 | ;; | |
13446 | esac | |
1542ea39 | 13447 | |
a0b9e27f MB |
13448 | if test "$wxUSE_GUI" = "yes"; then |
13449 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 VS |
13450 | |
13451 | for ac_header in X11/XKBlib.h | |
21d1c967 | 13452 | do |
e6cc62c6 VS |
13453 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13455 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13459 | fi | |
13460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13462 | else | |
13463 | # Is the header compilable? | |
13464 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13465 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13466 | cat >conftest.$ac_ext <<_ACEOF | |
13467 | #line $LINENO "configure" | |
13468 | /* confdefs.h. */ | |
13469 | _ACEOF | |
13470 | cat confdefs.h >>conftest.$ac_ext | |
13471 | cat >>conftest.$ac_ext <<_ACEOF | |
13472 | /* end confdefs.h. */ | |
13473 | $ac_includes_default | |
13474 | #include <$ac_header> | |
13475 | _ACEOF | |
13476 | rm -f conftest.$ac_objext | |
13477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13478 | (eval $ac_compile) 2>&5 | |
13479 | ac_status=$? | |
13480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13481 | (exit $ac_status); } && | |
13482 | { ac_try='test -s conftest.$ac_objext' | |
13483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13484 | (eval $ac_try) 2>&5 | |
13485 | ac_status=$? | |
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13487 | (exit $ac_status); }; }; then | |
13488 | ac_header_compiler=yes | |
13489 | else | |
13490 | echo "$as_me: failed program was:" >&5 | |
13491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13492 | ||
13493 | ac_header_compiler=no | |
13494 | fi | |
13495 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13496 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13497 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13498 | ||
13499 | # Is the header present? | |
13500 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13501 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13502 | cat >conftest.$ac_ext <<_ACEOF | |
13503 | #line $LINENO "configure" | |
13504 | /* confdefs.h. */ | |
13505 | _ACEOF | |
13506 | cat confdefs.h >>conftest.$ac_ext | |
13507 | cat >>conftest.$ac_ext <<_ACEOF | |
13508 | /* end confdefs.h. */ | |
13509 | #include <$ac_header> | |
13510 | _ACEOF | |
13511 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13512 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13513 | ac_status=$? | |
13514 | grep -v '^ *+' conftest.er1 >conftest.err | |
13515 | rm -f conftest.er1 | |
13516 | cat conftest.err >&5 | |
13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13518 | (exit $ac_status); } >/dev/null; then | |
13519 | if test -s conftest.err; then | |
13520 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13521 | else | |
13522 | ac_cpp_err= | |
13523 | fi | |
13524 | else | |
13525 | ac_cpp_err=yes | |
13526 | fi | |
13527 | if test -z "$ac_cpp_err"; then | |
13528 | ac_header_preproc=yes | |
13529 | else | |
13530 | echo "$as_me: failed program was:" >&5 | |
13531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13532 | ||
13533 | ac_header_preproc=no | |
13534 | fi | |
13535 | rm -f conftest.err conftest.$ac_ext | |
13536 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13537 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13538 | ||
13539 | # So? What about this header? | |
13540 | case $ac_header_compiler:$ac_header_preproc in | |
13541 | yes:no ) | |
13542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13545 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13546 | ( | |
13547 | cat <<\_ASBOX | |
13548 | ## ------------------------------------ ## | |
13549 | ## Report this to bug-autoconf@gnu.org. ## | |
13550 | ## ------------------------------------ ## | |
13551 | _ASBOX | |
13552 | ) | | |
13553 | sed "s/^/$as_me: WARNING: /" >&2 | |
13554 | ;; | |
13555 | no:yes ) | |
13556 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13557 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13558 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13559 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13562 | ( | |
13563 | cat <<\_ASBOX | |
13564 | ## ------------------------------------ ## | |
13565 | ## Report this to bug-autoconf@gnu.org. ## | |
13566 | ## ------------------------------------ ## | |
13567 | _ASBOX | |
13568 | ) | | |
13569 | sed "s/^/$as_me: WARNING: /" >&2 | |
13570 | ;; | |
13571 | esac | |
13572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13576 | else | |
13577 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13578 | fi |
e6cc62c6 VS |
13579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13580 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13581 | ||
90dd450c | 13582 | fi |
e6cc62c6 VS |
13583 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13584 | cat >>confdefs.h <<_ACEOF | |
13585 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13586 | _ACEOF | |
13587 | ||
247f5006 | 13588 | fi |
e6cc62c6 | 13589 | |
247f5006 VZ |
13590 | done |
13591 | ||
a0b9e27f MB |
13592 | fi |
13593 | fi | |
247f5006 | 13594 | |
247f5006 | 13595 | |
e6cc62c6 VS |
13596 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13597 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13598 | if test "${ac_cv_c_const+set}" = set; then | |
13599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13600 | else | |
13601 | cat >conftest.$ac_ext <<_ACEOF | |
13602 | #line $LINENO "configure" | |
13603 | /* confdefs.h. */ | |
13604 | _ACEOF | |
13605 | cat confdefs.h >>conftest.$ac_ext | |
13606 | cat >>conftest.$ac_ext <<_ACEOF | |
13607 | /* end confdefs.h. */ | |
13608 | ||
13609 | int | |
13610 | main () | |
13611 | { | |
13612 | /* FIXME: Include the comments suggested by Paul. */ | |
13613 | #ifndef __cplusplus | |
13614 | /* Ultrix mips cc rejects this. */ | |
13615 | typedef int charset[2]; | |
13616 | const charset x; | |
13617 | /* SunOS 4.1.1 cc rejects this. */ | |
13618 | char const *const *ccp; | |
13619 | char **p; | |
13620 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13621 | struct point {int x, y;}; | |
13622 | static struct point const zero = {0,0}; | |
13623 | /* AIX XL C 1.02.0.0 rejects this. | |
13624 | It does not let you subtract one const X* pointer from another in | |
13625 | an arm of an if-expression whose if-part is not a constant | |
13626 | expression */ | |
13627 | const char *g = "string"; | |
13628 | ccp = &g + (g ? g-g : 0); | |
13629 | /* HPUX 7.0 cc rejects these. */ | |
13630 | ++ccp; | |
13631 | p = (char**) ccp; | |
13632 | ccp = (char const *const *) p; | |
13633 | { /* SCO 3.2v4 cc rejects this. */ | |
13634 | char *t; | |
13635 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13636 | ||
13637 | *t++ = 0; | |
13638 | } | |
13639 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13640 | int x[] = {25, 17}; | |
13641 | const int *foo = &x[0]; | |
13642 | ++foo; | |
13643 | } | |
13644 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13645 | typedef const int *iptr; | |
13646 | iptr p = 0; | |
13647 | ++p; | |
13648 | } | |
13649 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13650 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13651 | struct s { int j; const int *ap[3]; }; | |
13652 | struct s *b; b->j = 5; | |
13653 | } | |
13654 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13655 | const int foo = 10; | |
13656 | } | |
13657 | #endif | |
13658 | ||
13659 | ; | |
13660 | return 0; | |
13661 | } | |
13662 | _ACEOF | |
13663 | rm -f conftest.$ac_objext | |
13664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13665 | (eval $ac_compile) 2>&5 | |
13666 | ac_status=$? | |
13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13668 | (exit $ac_status); } && | |
13669 | { ac_try='test -s conftest.$ac_objext' | |
13670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13671 | (eval $ac_try) 2>&5 | |
13672 | ac_status=$? | |
13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13674 | (exit $ac_status); }; }; then | |
a0b9e27f | 13675 | ac_cv_c_const=yes |
247f5006 | 13676 | else |
e6cc62c6 VS |
13677 | echo "$as_me: failed program was:" >&5 |
13678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13679 | ||
13680 | ac_cv_c_const=no | |
247f5006 | 13681 | fi |
e6cc62c6 | 13682 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13683 | fi |
e6cc62c6 VS |
13684 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13685 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13686 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13687 | |
13688 | cat >>confdefs.h <<\_ACEOF | |
13689 | #define const | |
13690 | _ACEOF | |
10f2d63a | 13691 | |
90dd450c | 13692 | fi |
81809c07 | 13693 | |
e6cc62c6 VS |
13694 | echo "$as_me:$LINENO: checking for inline" >&5 |
13695 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13696 | if test "${ac_cv_c_inline+set}" = set; then | |
13697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13698 | else |
a0b9e27f MB |
13699 | ac_cv_c_inline=no |
13700 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13701 | cat >conftest.$ac_ext <<_ACEOF |
13702 | #line $LINENO "configure" | |
13703 | /* confdefs.h. */ | |
13704 | _ACEOF | |
13705 | cat confdefs.h >>conftest.$ac_ext | |
13706 | cat >>conftest.$ac_ext <<_ACEOF | |
13707 | /* end confdefs.h. */ | |
13708 | #ifndef __cplusplus | |
13709 | typedef int foo_t; | |
13710 | static $ac_kw foo_t static_foo () {return 0; } | |
13711 | $ac_kw foo_t foo () {return 0; } | |
13712 | #endif | |
a0b9e27f | 13713 | |
e6cc62c6 VS |
13714 | _ACEOF |
13715 | rm -f conftest.$ac_objext | |
13716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13717 | (eval $ac_compile) 2>&5 | |
13718 | ac_status=$? | |
13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13720 | (exit $ac_status); } && | |
13721 | { ac_try='test -s conftest.$ac_objext' | |
13722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13723 | (eval $ac_try) 2>&5 | |
13724 | ac_status=$? | |
13725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13726 | (exit $ac_status); }; }; then | |
a0b9e27f | 13727 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13728 | else |
e6cc62c6 VS |
13729 | echo "$as_me: failed program was:" >&5 |
13730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13731 | ||
247f5006 | 13732 | fi |
e6cc62c6 | 13733 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13734 | done |
247f5006 VZ |
13735 | |
13736 | fi | |
e6cc62c6 VS |
13737 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13738 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13739 | case $ac_cv_c_inline in | |
a0b9e27f | 13740 | inline | yes) ;; |
e6cc62c6 VS |
13741 | no) |
13742 | cat >>confdefs.h <<\_ACEOF | |
13743 | #define inline | |
13744 | _ACEOF | |
a0b9e27f | 13745 | ;; |
e6cc62c6 | 13746 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13747 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13748 | _ACEOF |
a0b9e27f MB |
13749 | ;; |
13750 | esac | |
247f5006 | 13751 | |
247f5006 | 13752 | |
e6cc62c6 VS |
13753 | echo "$as_me:$LINENO: checking for char" >&5 |
13754 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13755 | if test "${ac_cv_type_char+set}" = set; then | |
13756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13757 | else | |
13758 | cat >conftest.$ac_ext <<_ACEOF | |
13759 | #line $LINENO "configure" | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
13765 | $ac_includes_default | |
13766 | int | |
13767 | main () | |
13768 | { | |
13769 | if ((char *) 0) | |
13770 | return 0; | |
13771 | if (sizeof (char)) | |
13772 | return 0; | |
13773 | ; | |
13774 | return 0; | |
13775 | } | |
13776 | _ACEOF | |
13777 | rm -f conftest.$ac_objext | |
13778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13779 | (eval $ac_compile) 2>&5 | |
13780 | ac_status=$? | |
13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13782 | (exit $ac_status); } && | |
13783 | { ac_try='test -s conftest.$ac_objext' | |
13784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13785 | (eval $ac_try) 2>&5 | |
13786 | ac_status=$? | |
13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13788 | (exit $ac_status); }; }; then | |
13789 | ac_cv_type_char=yes | |
13790 | else | |
13791 | echo "$as_me: failed program was:" >&5 | |
13792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13793 | ||
13794 | ac_cv_type_char=no | |
13795 | fi | |
13796 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13797 | fi | |
13798 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13799 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13800 | ||
13801 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13802 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13803 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13805 | else | |
13806 | if test "$ac_cv_type_char" = yes; then | |
13807 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13808 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13809 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13810 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13811 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13812 | # Depending upon the size, compute the lo and hi bounds. |
13813 | cat >conftest.$ac_ext <<_ACEOF | |
13814 | #line $LINENO "configure" | |
13815 | /* confdefs.h. */ | |
13816 | _ACEOF | |
13817 | cat confdefs.h >>conftest.$ac_ext | |
13818 | cat >>conftest.$ac_ext <<_ACEOF | |
13819 | /* end confdefs.h. */ | |
13820 | $ac_includes_default | |
13821 | int | |
13822 | main () | |
13823 | { | |
13824 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13825 | test_array [0] = 0 | |
13826 | ||
13827 | ; | |
13828 | return 0; | |
13829 | } | |
13830 | _ACEOF | |
13831 | rm -f conftest.$ac_objext | |
13832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13833 | (eval $ac_compile) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); } && | |
13837 | { ac_try='test -s conftest.$ac_objext' | |
13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13839 | (eval $ac_try) 2>&5 | |
13840 | ac_status=$? | |
13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13842 | (exit $ac_status); }; }; then | |
13843 | ac_lo=0 ac_mid=0 | |
13844 | while :; do | |
13845 | cat >conftest.$ac_ext <<_ACEOF | |
13846 | #line $LINENO "configure" | |
13847 | /* confdefs.h. */ | |
13848 | _ACEOF | |
13849 | cat confdefs.h >>conftest.$ac_ext | |
13850 | cat >>conftest.$ac_ext <<_ACEOF | |
13851 | /* end confdefs.h. */ | |
13852 | $ac_includes_default | |
13853 | int | |
13854 | main () | |
13855 | { | |
13856 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13857 | test_array [0] = 0 | |
13858 | ||
13859 | ; | |
13860 | return 0; | |
13861 | } | |
13862 | _ACEOF | |
13863 | rm -f conftest.$ac_objext | |
13864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13865 | (eval $ac_compile) 2>&5 | |
13866 | ac_status=$? | |
13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13868 | (exit $ac_status); } && | |
13869 | { ac_try='test -s conftest.$ac_objext' | |
13870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13871 | (eval $ac_try) 2>&5 | |
13872 | ac_status=$? | |
13873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13874 | (exit $ac_status); }; }; then | |
13875 | ac_hi=$ac_mid; break | |
13876 | else | |
13877 | echo "$as_me: failed program was:" >&5 | |
13878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13879 | ||
13880 | ac_lo=`expr $ac_mid + 1` | |
13881 | if test $ac_lo -le $ac_mid; then | |
13882 | ac_lo= ac_hi= | |
13883 | break | |
13884 | fi | |
13885 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13886 | fi | |
13887 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13888 | done | |
a0b9e27f | 13889 | else |
e6cc62c6 VS |
13890 | echo "$as_me: failed program was:" >&5 |
13891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13892 | ||
13893 | cat >conftest.$ac_ext <<_ACEOF | |
13894 | #line $LINENO "configure" | |
13895 | /* confdefs.h. */ | |
13896 | _ACEOF | |
13897 | cat confdefs.h >>conftest.$ac_ext | |
13898 | cat >>conftest.$ac_ext <<_ACEOF | |
13899 | /* end confdefs.h. */ | |
13900 | $ac_includes_default | |
13901 | int | |
13902 | main () | |
13903 | { | |
13904 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13905 | test_array [0] = 0 | |
13906 | ||
13907 | ; | |
13908 | return 0; | |
13909 | } | |
13910 | _ACEOF | |
13911 | rm -f conftest.$ac_objext | |
13912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13913 | (eval $ac_compile) 2>&5 | |
13914 | ac_status=$? | |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13916 | (exit $ac_status); } && | |
13917 | { ac_try='test -s conftest.$ac_objext' | |
13918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13919 | (eval $ac_try) 2>&5 | |
13920 | ac_status=$? | |
13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13922 | (exit $ac_status); }; }; then | |
13923 | ac_hi=-1 ac_mid=-1 | |
13924 | while :; do | |
13925 | cat >conftest.$ac_ext <<_ACEOF | |
13926 | #line $LINENO "configure" | |
13927 | /* confdefs.h. */ | |
13928 | _ACEOF | |
13929 | cat confdefs.h >>conftest.$ac_ext | |
13930 | cat >>conftest.$ac_ext <<_ACEOF | |
13931 | /* end confdefs.h. */ | |
13932 | $ac_includes_default | |
13933 | int | |
13934 | main () | |
13935 | { | |
13936 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13937 | test_array [0] = 0 | |
13938 | ||
13939 | ; | |
13940 | return 0; | |
13941 | } | |
13942 | _ACEOF | |
13943 | rm -f conftest.$ac_objext | |
13944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13945 | (eval $ac_compile) 2>&5 | |
13946 | ac_status=$? | |
13947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13948 | (exit $ac_status); } && | |
13949 | { ac_try='test -s conftest.$ac_objext' | |
13950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13951 | (eval $ac_try) 2>&5 | |
13952 | ac_status=$? | |
13953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13954 | (exit $ac_status); }; }; then | |
13955 | ac_lo=$ac_mid; break | |
13956 | else | |
13957 | echo "$as_me: failed program was:" >&5 | |
13958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13959 | ||
13960 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13961 | if test $ac_mid -le $ac_hi; then | |
13962 | ac_lo= ac_hi= | |
13963 | break | |
13964 | fi | |
13965 | ac_mid=`expr 2 '*' $ac_mid` | |
13966 | fi | |
13967 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13968 | done | |
13969 | else | |
13970 | echo "$as_me: failed program was:" >&5 | |
13971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13972 | ||
13973 | ac_lo= ac_hi= | |
13974 | fi | |
13975 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13976 | fi | |
13977 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13978 | # Binary search between lo and hi bounds. | |
13979 | while test "x$ac_lo" != "x$ac_hi"; do | |
13980 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13981 | cat >conftest.$ac_ext <<_ACEOF | |
13982 | #line $LINENO "configure" | |
13983 | /* confdefs.h. */ | |
13984 | _ACEOF | |
13985 | cat confdefs.h >>conftest.$ac_ext | |
13986 | cat >>conftest.$ac_ext <<_ACEOF | |
13987 | /* end confdefs.h. */ | |
13988 | $ac_includes_default | |
13989 | int | |
13990 | main () | |
13991 | { | |
13992 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13993 | test_array [0] = 0 | |
13994 | ||
13995 | ; | |
13996 | return 0; | |
13997 | } | |
13998 | _ACEOF | |
13999 | rm -f conftest.$ac_objext | |
14000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14001 | (eval $ac_compile) 2>&5 | |
14002 | ac_status=$? | |
14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14004 | (exit $ac_status); } && | |
14005 | { ac_try='test -s conftest.$ac_objext' | |
14006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14007 | (eval $ac_try) 2>&5 | |
14008 | ac_status=$? | |
14009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14010 | (exit $ac_status); }; }; then | |
14011 | ac_hi=$ac_mid | |
14012 | else | |
14013 | echo "$as_me: failed program was:" >&5 | |
14014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14015 | ||
14016 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14017 | fi | |
14018 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14019 | done | |
14020 | case $ac_lo in | |
14021 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14022 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14023 | See \`config.log' for more details." >&5 | |
14024 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14025 | See \`config.log' for more details." >&2;} | |
14026 | { (exit 1); exit 1; }; } ;; | |
14027 | esac | |
14028 | else | |
14029 | if test "$cross_compiling" = yes; then | |
14030 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14031 | See \`config.log' for more details." >&5 | |
14032 | echo "$as_me: error: cannot run test program while cross compiling | |
14033 | See \`config.log' for more details." >&2;} | |
14034 | { (exit 1); exit 1; }; } | |
14035 | else | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | #line $LINENO "configure" | |
14038 | /* confdefs.h. */ | |
14039 | _ACEOF | |
14040 | cat confdefs.h >>conftest.$ac_ext | |
14041 | cat >>conftest.$ac_ext <<_ACEOF | |
14042 | /* end confdefs.h. */ | |
14043 | $ac_includes_default | |
14044 | long longval () { return (long) (sizeof (char)); } | |
14045 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14046 | #include <stdio.h> |
e6cc62c6 VS |
14047 | #include <stdlib.h> |
14048 | int | |
14049 | main () | |
247f5006 | 14050 | { |
e6cc62c6 VS |
14051 | |
14052 | FILE *f = fopen ("conftest.val", "w"); | |
14053 | if (! f) | |
14054 | exit (1); | |
14055 | if (((long) (sizeof (char))) < 0) | |
14056 | { | |
14057 | long i = longval (); | |
14058 | if (i != ((long) (sizeof (char)))) | |
14059 | exit (1); | |
14060 | fprintf (f, "%ld\n", i); | |
14061 | } | |
14062 | else | |
14063 | { | |
14064 | unsigned long i = ulongval (); | |
14065 | if (i != ((long) (sizeof (char)))) | |
14066 | exit (1); | |
14067 | fprintf (f, "%lu\n", i); | |
14068 | } | |
14069 | exit (ferror (f) || fclose (f) != 0); | |
14070 | ||
14071 | ; | |
14072 | return 0; | |
52127426 | 14073 | } |
e6cc62c6 VS |
14074 | _ACEOF |
14075 | rm -f conftest$ac_exeext | |
14076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14077 | (eval $ac_link) 2>&5 | |
14078 | ac_status=$? | |
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14082 | (eval $ac_try) 2>&5 | |
14083 | ac_status=$? | |
14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14085 | (exit $ac_status); }; }; then | |
14086 | ac_cv_sizeof_char=`cat conftest.val` | |
14087 | else | |
14088 | echo "$as_me: program exited with status $ac_status" >&5 | |
14089 | echo "$as_me: failed program was:" >&5 | |
14090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14091 | ||
14092 | ( exit $ac_status ) | |
14093 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14094 | See \`config.log' for more details." >&5 | |
14095 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14096 | See \`config.log' for more details." >&2;} | |
14097 | { (exit 1); exit 1; }; } | |
14098 | fi | |
14099 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14100 | fi | |
14101 | fi | |
14102 | rm -f conftest.val | |
247f5006 | 14103 | else |
a0b9e27f | 14104 | ac_cv_sizeof_char=0 |
247f5006 | 14105 | fi |
247f5006 | 14106 | fi |
e6cc62c6 VS |
14107 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14108 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14109 | cat >>confdefs.h <<_ACEOF | |
14110 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14111 | _ACEOF | |
14112 | ||
14113 | ||
14114 | echo "$as_me:$LINENO: checking for short" >&5 | |
14115 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14116 | if test "${ac_cv_type_short+set}" = set; then | |
14117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14118 | else | |
14119 | cat >conftest.$ac_ext <<_ACEOF | |
14120 | #line $LINENO "configure" | |
14121 | /* confdefs.h. */ | |
14122 | _ACEOF | |
14123 | cat confdefs.h >>conftest.$ac_ext | |
14124 | cat >>conftest.$ac_ext <<_ACEOF | |
14125 | /* end confdefs.h. */ | |
14126 | $ac_includes_default | |
14127 | int | |
14128 | main () | |
14129 | { | |
14130 | if ((short *) 0) | |
14131 | return 0; | |
14132 | if (sizeof (short)) | |
14133 | return 0; | |
14134 | ; | |
14135 | return 0; | |
14136 | } | |
14137 | _ACEOF | |
14138 | rm -f conftest.$ac_objext | |
14139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14140 | (eval $ac_compile) 2>&5 | |
14141 | ac_status=$? | |
14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14143 | (exit $ac_status); } && | |
14144 | { ac_try='test -s conftest.$ac_objext' | |
14145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14146 | (eval $ac_try) 2>&5 | |
14147 | ac_status=$? | |
14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14149 | (exit $ac_status); }; }; then | |
14150 | ac_cv_type_short=yes | |
14151 | else | |
14152 | echo "$as_me: failed program was:" >&5 | |
14153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14154 | ||
14155 | ac_cv_type_short=no | |
14156 | fi | |
14157 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14158 | fi | |
14159 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14160 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14161 | ||
14162 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14163 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14164 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14166 | else | |
14167 | if test "$ac_cv_type_short" = yes; then | |
14168 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14169 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14170 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14171 | # This bug is HP SR number 8606223364. | |
14172 | if test "$cross_compiling" = yes; then | |
14173 | # Depending upon the size, compute the lo and hi bounds. | |
14174 | cat >conftest.$ac_ext <<_ACEOF | |
14175 | #line $LINENO "configure" | |
14176 | /* confdefs.h. */ | |
14177 | _ACEOF | |
14178 | cat confdefs.h >>conftest.$ac_ext | |
14179 | cat >>conftest.$ac_ext <<_ACEOF | |
14180 | /* end confdefs.h. */ | |
14181 | $ac_includes_default | |
14182 | int | |
14183 | main () | |
14184 | { | |
14185 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14186 | test_array [0] = 0 | |
247f5006 | 14187 | |
e6cc62c6 VS |
14188 | ; |
14189 | return 0; | |
14190 | } | |
14191 | _ACEOF | |
14192 | rm -f conftest.$ac_objext | |
14193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14194 | (eval $ac_compile) 2>&5 | |
14195 | ac_status=$? | |
14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14197 | (exit $ac_status); } && | |
14198 | { ac_try='test -s conftest.$ac_objext' | |
14199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14200 | (eval $ac_try) 2>&5 | |
14201 | ac_status=$? | |
14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14203 | (exit $ac_status); }; }; then | |
14204 | ac_lo=0 ac_mid=0 | |
14205 | while :; do | |
14206 | cat >conftest.$ac_ext <<_ACEOF | |
14207 | #line $LINENO "configure" | |
14208 | /* confdefs.h. */ | |
14209 | _ACEOF | |
14210 | cat confdefs.h >>conftest.$ac_ext | |
14211 | cat >>conftest.$ac_ext <<_ACEOF | |
14212 | /* end confdefs.h. */ | |
14213 | $ac_includes_default | |
14214 | int | |
14215 | main () | |
14216 | { | |
14217 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14218 | test_array [0] = 0 | |
14219 | ||
14220 | ; | |
14221 | return 0; | |
14222 | } | |
14223 | _ACEOF | |
14224 | rm -f conftest.$ac_objext | |
14225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14226 | (eval $ac_compile) 2>&5 | |
14227 | ac_status=$? | |
14228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14229 | (exit $ac_status); } && | |
14230 | { ac_try='test -s conftest.$ac_objext' | |
14231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14232 | (eval $ac_try) 2>&5 | |
14233 | ac_status=$? | |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14235 | (exit $ac_status); }; }; then | |
14236 | ac_hi=$ac_mid; break | |
14237 | else | |
14238 | echo "$as_me: failed program was:" >&5 | |
14239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14240 | ||
14241 | ac_lo=`expr $ac_mid + 1` | |
14242 | if test $ac_lo -le $ac_mid; then | |
14243 | ac_lo= ac_hi= | |
14244 | break | |
14245 | fi | |
14246 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14247 | fi |
e6cc62c6 VS |
14248 | rm -f conftest.$ac_objext conftest.$ac_ext |
14249 | done | |
14250 | else | |
14251 | echo "$as_me: failed program was:" >&5 | |
14252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14253 | ||
14254 | cat >conftest.$ac_ext <<_ACEOF | |
14255 | #line $LINENO "configure" | |
14256 | /* confdefs.h. */ | |
14257 | _ACEOF | |
14258 | cat confdefs.h >>conftest.$ac_ext | |
14259 | cat >>conftest.$ac_ext <<_ACEOF | |
14260 | /* end confdefs.h. */ | |
14261 | $ac_includes_default | |
14262 | int | |
14263 | main () | |
14264 | { | |
14265 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14266 | test_array [0] = 0 | |
247f5006 | 14267 | |
e6cc62c6 VS |
14268 | ; |
14269 | return 0; | |
14270 | } | |
14271 | _ACEOF | |
14272 | rm -f conftest.$ac_objext | |
14273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14274 | (eval $ac_compile) 2>&5 | |
14275 | ac_status=$? | |
14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14277 | (exit $ac_status); } && | |
14278 | { ac_try='test -s conftest.$ac_objext' | |
14279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14280 | (eval $ac_try) 2>&5 | |
14281 | ac_status=$? | |
14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14283 | (exit $ac_status); }; }; then | |
14284 | ac_hi=-1 ac_mid=-1 | |
14285 | while :; do | |
14286 | cat >conftest.$ac_ext <<_ACEOF | |
14287 | #line $LINENO "configure" | |
14288 | /* confdefs.h. */ | |
14289 | _ACEOF | |
14290 | cat confdefs.h >>conftest.$ac_ext | |
14291 | cat >>conftest.$ac_ext <<_ACEOF | |
14292 | /* end confdefs.h. */ | |
14293 | $ac_includes_default | |
14294 | int | |
14295 | main () | |
14296 | { | |
14297 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14298 | test_array [0] = 0 | |
247f5006 | 14299 | |
e6cc62c6 VS |
14300 | ; |
14301 | return 0; | |
14302 | } | |
14303 | _ACEOF | |
14304 | rm -f conftest.$ac_objext | |
14305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14306 | (eval $ac_compile) 2>&5 | |
14307 | ac_status=$? | |
14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14309 | (exit $ac_status); } && | |
14310 | { ac_try='test -s conftest.$ac_objext' | |
14311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14312 | (eval $ac_try) 2>&5 | |
14313 | ac_status=$? | |
14314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14315 | (exit $ac_status); }; }; then | |
14316 | ac_lo=$ac_mid; break | |
14317 | else | |
14318 | echo "$as_me: failed program was:" >&5 | |
14319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14320 | ||
14321 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14322 | if test $ac_mid -le $ac_hi; then | |
14323 | ac_lo= ac_hi= | |
14324 | break | |
14325 | fi | |
14326 | ac_mid=`expr 2 '*' $ac_mid` | |
14327 | fi | |
14328 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14329 | done | |
247f5006 | 14330 | else |
e6cc62c6 VS |
14331 | echo "$as_me: failed program was:" >&5 |
14332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14333 | ||
14334 | ac_lo= ac_hi= | |
14335 | fi | |
14336 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14337 | fi | |
14338 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14339 | # Binary search between lo and hi bounds. | |
14340 | while test "x$ac_lo" != "x$ac_hi"; do | |
14341 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14342 | cat >conftest.$ac_ext <<_ACEOF | |
14343 | #line $LINENO "configure" | |
14344 | /* confdefs.h. */ | |
14345 | _ACEOF | |
14346 | cat confdefs.h >>conftest.$ac_ext | |
14347 | cat >>conftest.$ac_ext <<_ACEOF | |
14348 | /* end confdefs.h. */ | |
14349 | $ac_includes_default | |
14350 | int | |
14351 | main () | |
14352 | { | |
14353 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14354 | test_array [0] = 0 | |
14355 | ||
14356 | ; | |
14357 | return 0; | |
14358 | } | |
14359 | _ACEOF | |
14360 | rm -f conftest.$ac_objext | |
14361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14362 | (eval $ac_compile) 2>&5 | |
14363 | ac_status=$? | |
14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14365 | (exit $ac_status); } && | |
14366 | { ac_try='test -s conftest.$ac_objext' | |
14367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14368 | (eval $ac_try) 2>&5 | |
14369 | ac_status=$? | |
14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14371 | (exit $ac_status); }; }; then | |
14372 | ac_hi=$ac_mid | |
14373 | else | |
14374 | echo "$as_me: failed program was:" >&5 | |
14375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14376 | ||
14377 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14378 | fi | |
14379 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14380 | done | |
14381 | case $ac_lo in | |
14382 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14383 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14384 | See \`config.log' for more details." >&5 | |
14385 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14386 | See \`config.log' for more details." >&2;} | |
14387 | { (exit 1); exit 1; }; } ;; | |
14388 | esac | |
247f5006 | 14389 | else |
e6cc62c6 VS |
14390 | if test "$cross_compiling" = yes; then |
14391 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14392 | See \`config.log' for more details." >&5 | |
14393 | echo "$as_me: error: cannot run test program while cross compiling | |
14394 | See \`config.log' for more details." >&2;} | |
14395 | { (exit 1); exit 1; }; } | |
14396 | else | |
14397 | cat >conftest.$ac_ext <<_ACEOF | |
14398 | #line $LINENO "configure" | |
14399 | /* confdefs.h. */ | |
14400 | _ACEOF | |
14401 | cat confdefs.h >>conftest.$ac_ext | |
14402 | cat >>conftest.$ac_ext <<_ACEOF | |
14403 | /* end confdefs.h. */ | |
14404 | $ac_includes_default | |
14405 | long longval () { return (long) (sizeof (short)); } | |
14406 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14407 | #include <stdio.h> |
e6cc62c6 VS |
14408 | #include <stdlib.h> |
14409 | int | |
14410 | main () | |
a0b9e27f | 14411 | { |
e6cc62c6 VS |
14412 | |
14413 | FILE *f = fopen ("conftest.val", "w"); | |
14414 | if (! f) | |
14415 | exit (1); | |
14416 | if (((long) (sizeof (short))) < 0) | |
14417 | { | |
14418 | long i = longval (); | |
14419 | if (i != ((long) (sizeof (short)))) | |
14420 | exit (1); | |
14421 | fprintf (f, "%ld\n", i); | |
14422 | } | |
14423 | else | |
14424 | { | |
14425 | unsigned long i = ulongval (); | |
14426 | if (i != ((long) (sizeof (short)))) | |
14427 | exit (1); | |
14428 | fprintf (f, "%lu\n", i); | |
14429 | } | |
14430 | exit (ferror (f) || fclose (f) != 0); | |
14431 | ||
14432 | ; | |
14433 | return 0; | |
a0b9e27f | 14434 | } |
e6cc62c6 VS |
14435 | _ACEOF |
14436 | rm -f conftest$ac_exeext | |
14437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14438 | (eval $ac_link) 2>&5 | |
14439 | ac_status=$? | |
14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14443 | (eval $ac_try) 2>&5 | |
14444 | ac_status=$? | |
14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14446 | (exit $ac_status); }; }; then | |
14447 | ac_cv_sizeof_short=`cat conftest.val` | |
14448 | else | |
14449 | echo "$as_me: program exited with status $ac_status" >&5 | |
14450 | echo "$as_me: failed program was:" >&5 | |
14451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14452 | ||
14453 | ( exit $ac_status ) | |
14454 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14455 | See \`config.log' for more details." >&5 | |
14456 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14457 | See \`config.log' for more details." >&2;} | |
14458 | { (exit 1); exit 1; }; } | |
14459 | fi | |
14460 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14461 | fi | |
14462 | fi | |
14463 | rm -f conftest.val | |
247f5006 | 14464 | else |
a0b9e27f | 14465 | ac_cv_sizeof_short=0 |
247f5006 | 14466 | fi |
247f5006 | 14467 | fi |
e6cc62c6 VS |
14468 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14469 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14470 | cat >>confdefs.h <<_ACEOF | |
14471 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14472 | _ACEOF | |
14473 | ||
14474 | ||
14475 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14476 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14477 | if test "${ac_cv_type_void_p+set}" = set; then | |
14478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14479 | else | |
14480 | cat >conftest.$ac_ext <<_ACEOF | |
14481 | #line $LINENO "configure" | |
14482 | /* confdefs.h. */ | |
14483 | _ACEOF | |
14484 | cat confdefs.h >>conftest.$ac_ext | |
14485 | cat >>conftest.$ac_ext <<_ACEOF | |
14486 | /* end confdefs.h. */ | |
14487 | $ac_includes_default | |
14488 | int | |
14489 | main () | |
14490 | { | |
14491 | if ((void * *) 0) | |
14492 | return 0; | |
14493 | if (sizeof (void *)) | |
14494 | return 0; | |
14495 | ; | |
14496 | return 0; | |
14497 | } | |
14498 | _ACEOF | |
14499 | rm -f conftest.$ac_objext | |
14500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14501 | (eval $ac_compile) 2>&5 | |
14502 | ac_status=$? | |
14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14504 | (exit $ac_status); } && | |
14505 | { ac_try='test -s conftest.$ac_objext' | |
14506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14507 | (eval $ac_try) 2>&5 | |
14508 | ac_status=$? | |
14509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14510 | (exit $ac_status); }; }; then | |
14511 | ac_cv_type_void_p=yes | |
14512 | else | |
14513 | echo "$as_me: failed program was:" >&5 | |
14514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14515 | ||
14516 | ac_cv_type_void_p=no | |
14517 | fi | |
14518 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14519 | fi | |
14520 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14521 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14522 | ||
14523 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14524 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14525 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14527 | else | |
14528 | if test "$ac_cv_type_void_p" = yes; then | |
14529 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14530 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14531 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14532 | # This bug is HP SR number 8606223364. | |
14533 | if test "$cross_compiling" = yes; then | |
14534 | # Depending upon the size, compute the lo and hi bounds. | |
14535 | cat >conftest.$ac_ext <<_ACEOF | |
14536 | #line $LINENO "configure" | |
14537 | /* confdefs.h. */ | |
14538 | _ACEOF | |
14539 | cat confdefs.h >>conftest.$ac_ext | |
14540 | cat >>conftest.$ac_ext <<_ACEOF | |
14541 | /* end confdefs.h. */ | |
14542 | $ac_includes_default | |
14543 | int | |
14544 | main () | |
14545 | { | |
14546 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14547 | test_array [0] = 0 | |
14548 | ||
14549 | ; | |
14550 | return 0; | |
14551 | } | |
14552 | _ACEOF | |
14553 | rm -f conftest.$ac_objext | |
14554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14555 | (eval $ac_compile) 2>&5 | |
14556 | ac_status=$? | |
14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14558 | (exit $ac_status); } && | |
14559 | { ac_try='test -s conftest.$ac_objext' | |
14560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14561 | (eval $ac_try) 2>&5 | |
14562 | ac_status=$? | |
14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14564 | (exit $ac_status); }; }; then | |
14565 | ac_lo=0 ac_mid=0 | |
14566 | while :; do | |
14567 | cat >conftest.$ac_ext <<_ACEOF | |
14568 | #line $LINENO "configure" | |
14569 | /* confdefs.h. */ | |
14570 | _ACEOF | |
14571 | cat confdefs.h >>conftest.$ac_ext | |
14572 | cat >>conftest.$ac_ext <<_ACEOF | |
14573 | /* end confdefs.h. */ | |
14574 | $ac_includes_default | |
14575 | int | |
14576 | main () | |
14577 | { | |
14578 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14579 | test_array [0] = 0 | |
247f5006 | 14580 | |
e6cc62c6 VS |
14581 | ; |
14582 | return 0; | |
14583 | } | |
14584 | _ACEOF | |
14585 | rm -f conftest.$ac_objext | |
14586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14587 | (eval $ac_compile) 2>&5 | |
14588 | ac_status=$? | |
14589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14590 | (exit $ac_status); } && | |
14591 | { ac_try='test -s conftest.$ac_objext' | |
14592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14593 | (eval $ac_try) 2>&5 | |
14594 | ac_status=$? | |
14595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14596 | (exit $ac_status); }; }; then | |
14597 | ac_hi=$ac_mid; break | |
14598 | else | |
14599 | echo "$as_me: failed program was:" >&5 | |
14600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14601 | ||
14602 | ac_lo=`expr $ac_mid + 1` | |
14603 | if test $ac_lo -le $ac_mid; then | |
14604 | ac_lo= ac_hi= | |
14605 | break | |
14606 | fi | |
14607 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14608 | fi |
e6cc62c6 VS |
14609 | rm -f conftest.$ac_objext conftest.$ac_ext |
14610 | done | |
14611 | else | |
14612 | echo "$as_me: failed program was:" >&5 | |
14613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14614 | ||
14615 | cat >conftest.$ac_ext <<_ACEOF | |
14616 | #line $LINENO "configure" | |
14617 | /* confdefs.h. */ | |
14618 | _ACEOF | |
14619 | cat confdefs.h >>conftest.$ac_ext | |
14620 | cat >>conftest.$ac_ext <<_ACEOF | |
14621 | /* end confdefs.h. */ | |
14622 | $ac_includes_default | |
14623 | int | |
14624 | main () | |
14625 | { | |
14626 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14627 | test_array [0] = 0 | |
247f5006 | 14628 | |
e6cc62c6 VS |
14629 | ; |
14630 | return 0; | |
14631 | } | |
14632 | _ACEOF | |
14633 | rm -f conftest.$ac_objext | |
14634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14635 | (eval $ac_compile) 2>&5 | |
14636 | ac_status=$? | |
14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14638 | (exit $ac_status); } && | |
14639 | { ac_try='test -s conftest.$ac_objext' | |
14640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14641 | (eval $ac_try) 2>&5 | |
14642 | ac_status=$? | |
14643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14644 | (exit $ac_status); }; }; then | |
14645 | ac_hi=-1 ac_mid=-1 | |
14646 | while :; do | |
14647 | cat >conftest.$ac_ext <<_ACEOF | |
14648 | #line $LINENO "configure" | |
14649 | /* confdefs.h. */ | |
14650 | _ACEOF | |
14651 | cat confdefs.h >>conftest.$ac_ext | |
14652 | cat >>conftest.$ac_ext <<_ACEOF | |
14653 | /* end confdefs.h. */ | |
14654 | $ac_includes_default | |
14655 | int | |
14656 | main () | |
14657 | { | |
14658 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14659 | test_array [0] = 0 | |
247f5006 | 14660 | |
e6cc62c6 VS |
14661 | ; |
14662 | return 0; | |
14663 | } | |
14664 | _ACEOF | |
14665 | rm -f conftest.$ac_objext | |
14666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14667 | (eval $ac_compile) 2>&5 | |
14668 | ac_status=$? | |
14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14670 | (exit $ac_status); } && | |
14671 | { ac_try='test -s conftest.$ac_objext' | |
14672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14673 | (eval $ac_try) 2>&5 | |
14674 | ac_status=$? | |
14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14676 | (exit $ac_status); }; }; then | |
14677 | ac_lo=$ac_mid; break | |
14678 | else | |
14679 | echo "$as_me: failed program was:" >&5 | |
14680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14681 | ||
14682 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14683 | if test $ac_mid -le $ac_hi; then | |
14684 | ac_lo= ac_hi= | |
14685 | break | |
14686 | fi | |
14687 | ac_mid=`expr 2 '*' $ac_mid` | |
14688 | fi | |
14689 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14690 | done | |
a0b9e27f | 14691 | else |
e6cc62c6 VS |
14692 | echo "$as_me: failed program was:" >&5 |
14693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14694 | ||
14695 | ac_lo= ac_hi= | |
14696 | fi | |
14697 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14698 | fi | |
14699 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14700 | # Binary search between lo and hi bounds. | |
14701 | while test "x$ac_lo" != "x$ac_hi"; do | |
14702 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | #line $LINENO "configure" | |
14705 | /* confdefs.h. */ | |
14706 | _ACEOF | |
14707 | cat confdefs.h >>conftest.$ac_ext | |
14708 | cat >>conftest.$ac_ext <<_ACEOF | |
14709 | /* end confdefs.h. */ | |
14710 | $ac_includes_default | |
14711 | int | |
14712 | main () | |
14713 | { | |
14714 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14715 | test_array [0] = 0 | |
14716 | ||
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14723 | (eval $ac_compile) 2>&5 | |
14724 | ac_status=$? | |
14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14726 | (exit $ac_status); } && | |
14727 | { ac_try='test -s conftest.$ac_objext' | |
14728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14729 | (eval $ac_try) 2>&5 | |
14730 | ac_status=$? | |
14731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14732 | (exit $ac_status); }; }; then | |
14733 | ac_hi=$ac_mid | |
14734 | else | |
14735 | echo "$as_me: failed program was:" >&5 | |
14736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14737 | ||
14738 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14739 | fi | |
14740 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14741 | done | |
14742 | case $ac_lo in | |
14743 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14744 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14745 | See \`config.log' for more details." >&5 | |
14746 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14747 | See \`config.log' for more details." >&2;} | |
14748 | { (exit 1); exit 1; }; } ;; | |
14749 | esac | |
247f5006 | 14750 | else |
e6cc62c6 VS |
14751 | if test "$cross_compiling" = yes; then |
14752 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14753 | See \`config.log' for more details." >&5 | |
14754 | echo "$as_me: error: cannot run test program while cross compiling | |
14755 | See \`config.log' for more details." >&2;} | |
14756 | { (exit 1); exit 1; }; } | |
14757 | else | |
14758 | cat >conftest.$ac_ext <<_ACEOF | |
14759 | #line $LINENO "configure" | |
14760 | /* confdefs.h. */ | |
14761 | _ACEOF | |
14762 | cat confdefs.h >>conftest.$ac_ext | |
14763 | cat >>conftest.$ac_ext <<_ACEOF | |
14764 | /* end confdefs.h. */ | |
14765 | $ac_includes_default | |
14766 | long longval () { return (long) (sizeof (void *)); } | |
14767 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14768 | #include <stdio.h> |
e6cc62c6 VS |
14769 | #include <stdlib.h> |
14770 | int | |
14771 | main () | |
247f5006 | 14772 | { |
e6cc62c6 VS |
14773 | |
14774 | FILE *f = fopen ("conftest.val", "w"); | |
14775 | if (! f) | |
14776 | exit (1); | |
14777 | if (((long) (sizeof (void *))) < 0) | |
14778 | { | |
14779 | long i = longval (); | |
14780 | if (i != ((long) (sizeof (void *)))) | |
14781 | exit (1); | |
14782 | fprintf (f, "%ld\n", i); | |
14783 | } | |
14784 | else | |
14785 | { | |
14786 | unsigned long i = ulongval (); | |
14787 | if (i != ((long) (sizeof (void *)))) | |
14788 | exit (1); | |
14789 | fprintf (f, "%lu\n", i); | |
14790 | } | |
14791 | exit (ferror (f) || fclose (f) != 0); | |
14792 | ||
14793 | ; | |
14794 | return 0; | |
5c6fa7d2 | 14795 | } |
e6cc62c6 VS |
14796 | _ACEOF |
14797 | rm -f conftest$ac_exeext | |
14798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14799 | (eval $ac_link) 2>&5 | |
14800 | ac_status=$? | |
14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14804 | (eval $ac_try) 2>&5 | |
14805 | ac_status=$? | |
14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14807 | (exit $ac_status); }; }; then | |
14808 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14809 | else | |
14810 | echo "$as_me: program exited with status $ac_status" >&5 | |
14811 | echo "$as_me: failed program was:" >&5 | |
14812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14813 | ||
14814 | ( exit $ac_status ) | |
14815 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14816 | See \`config.log' for more details." >&5 | |
14817 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14818 | See \`config.log' for more details." >&2;} | |
14819 | { (exit 1); exit 1; }; } | |
14820 | fi | |
14821 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14822 | fi | |
14823 | fi | |
14824 | rm -f conftest.val | |
a0b9e27f | 14825 | else |
a0b9e27f MB |
14826 | ac_cv_sizeof_void_p=0 |
14827 | fi | |
a0b9e27f | 14828 | fi |
e6cc62c6 VS |
14829 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14830 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14831 | cat >>confdefs.h <<_ACEOF | |
14832 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14833 | _ACEOF | |
14834 | ||
14835 | ||
14836 | echo "$as_me:$LINENO: checking for int" >&5 | |
14837 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14838 | if test "${ac_cv_type_int+set}" = set; then | |
14839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14840 | else | |
14841 | cat >conftest.$ac_ext <<_ACEOF | |
14842 | #line $LINENO "configure" | |
14843 | /* confdefs.h. */ | |
14844 | _ACEOF | |
14845 | cat confdefs.h >>conftest.$ac_ext | |
14846 | cat >>conftest.$ac_ext <<_ACEOF | |
14847 | /* end confdefs.h. */ | |
14848 | $ac_includes_default | |
14849 | int | |
14850 | main () | |
14851 | { | |
14852 | if ((int *) 0) | |
14853 | return 0; | |
14854 | if (sizeof (int)) | |
14855 | return 0; | |
14856 | ; | |
14857 | return 0; | |
14858 | } | |
14859 | _ACEOF | |
14860 | rm -f conftest.$ac_objext | |
14861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14862 | (eval $ac_compile) 2>&5 | |
14863 | ac_status=$? | |
14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14865 | (exit $ac_status); } && | |
14866 | { ac_try='test -s conftest.$ac_objext' | |
14867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14868 | (eval $ac_try) 2>&5 | |
14869 | ac_status=$? | |
14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14871 | (exit $ac_status); }; }; then | |
14872 | ac_cv_type_int=yes | |
14873 | else | |
14874 | echo "$as_me: failed program was:" >&5 | |
14875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14876 | ||
14877 | ac_cv_type_int=no | |
14878 | fi | |
14879 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14880 | fi | |
14881 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14882 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14883 | ||
14884 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14885 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14886 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14888 | else | |
14889 | if test "$ac_cv_type_int" = yes; then | |
14890 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14891 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14892 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14893 | # This bug is HP SR number 8606223364. | |
14894 | if test "$cross_compiling" = yes; then | |
14895 | # Depending upon the size, compute the lo and hi bounds. | |
14896 | cat >conftest.$ac_ext <<_ACEOF | |
14897 | #line $LINENO "configure" | |
14898 | /* confdefs.h. */ | |
14899 | _ACEOF | |
14900 | cat confdefs.h >>conftest.$ac_ext | |
14901 | cat >>conftest.$ac_ext <<_ACEOF | |
14902 | /* end confdefs.h. */ | |
14903 | $ac_includes_default | |
14904 | int | |
14905 | main () | |
14906 | { | |
14907 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14908 | test_array [0] = 0 | |
8284b0c5 | 14909 | |
e6cc62c6 VS |
14910 | ; |
14911 | return 0; | |
14912 | } | |
14913 | _ACEOF | |
14914 | rm -f conftest.$ac_objext | |
14915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14916 | (eval $ac_compile) 2>&5 | |
14917 | ac_status=$? | |
14918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14919 | (exit $ac_status); } && | |
14920 | { ac_try='test -s conftest.$ac_objext' | |
14921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14922 | (eval $ac_try) 2>&5 | |
14923 | ac_status=$? | |
14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14925 | (exit $ac_status); }; }; then | |
14926 | ac_lo=0 ac_mid=0 | |
14927 | while :; do | |
14928 | cat >conftest.$ac_ext <<_ACEOF | |
14929 | #line $LINENO "configure" | |
14930 | /* confdefs.h. */ | |
14931 | _ACEOF | |
14932 | cat confdefs.h >>conftest.$ac_ext | |
14933 | cat >>conftest.$ac_ext <<_ACEOF | |
14934 | /* end confdefs.h. */ | |
14935 | $ac_includes_default | |
14936 | int | |
14937 | main () | |
14938 | { | |
14939 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14940 | test_array [0] = 0 | |
14941 | ||
14942 | ; | |
14943 | return 0; | |
14944 | } | |
14945 | _ACEOF | |
14946 | rm -f conftest.$ac_objext | |
14947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14948 | (eval $ac_compile) 2>&5 | |
14949 | ac_status=$? | |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14951 | (exit $ac_status); } && | |
14952 | { ac_try='test -s conftest.$ac_objext' | |
14953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14954 | (eval $ac_try) 2>&5 | |
14955 | ac_status=$? | |
14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); }; }; then | |
14958 | ac_hi=$ac_mid; break | |
14959 | else | |
14960 | echo "$as_me: failed program was:" >&5 | |
14961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14962 | ||
14963 | ac_lo=`expr $ac_mid + 1` | |
14964 | if test $ac_lo -le $ac_mid; then | |
14965 | ac_lo= ac_hi= | |
14966 | break | |
14967 | fi | |
14968 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14969 | fi |
e6cc62c6 VS |
14970 | rm -f conftest.$ac_objext conftest.$ac_ext |
14971 | done | |
14972 | else | |
14973 | echo "$as_me: failed program was:" >&5 | |
14974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14975 | ||
14976 | cat >conftest.$ac_ext <<_ACEOF | |
14977 | #line $LINENO "configure" | |
14978 | /* confdefs.h. */ | |
14979 | _ACEOF | |
14980 | cat confdefs.h >>conftest.$ac_ext | |
14981 | cat >>conftest.$ac_ext <<_ACEOF | |
14982 | /* end confdefs.h. */ | |
14983 | $ac_includes_default | |
14984 | int | |
14985 | main () | |
14986 | { | |
14987 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14988 | test_array [0] = 0 | |
247f5006 | 14989 | |
e6cc62c6 VS |
14990 | ; |
14991 | return 0; | |
14992 | } | |
14993 | _ACEOF | |
14994 | rm -f conftest.$ac_objext | |
14995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14996 | (eval $ac_compile) 2>&5 | |
14997 | ac_status=$? | |
14998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14999 | (exit $ac_status); } && | |
15000 | { ac_try='test -s conftest.$ac_objext' | |
15001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15002 | (eval $ac_try) 2>&5 | |
15003 | ac_status=$? | |
15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15005 | (exit $ac_status); }; }; then | |
15006 | ac_hi=-1 ac_mid=-1 | |
15007 | while :; do | |
15008 | cat >conftest.$ac_ext <<_ACEOF | |
15009 | #line $LINENO "configure" | |
15010 | /* confdefs.h. */ | |
15011 | _ACEOF | |
15012 | cat confdefs.h >>conftest.$ac_ext | |
15013 | cat >>conftest.$ac_ext <<_ACEOF | |
15014 | /* end confdefs.h. */ | |
15015 | $ac_includes_default | |
15016 | int | |
15017 | main () | |
15018 | { | |
15019 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15020 | test_array [0] = 0 | |
247f5006 | 15021 | |
e6cc62c6 VS |
15022 | ; |
15023 | return 0; | |
15024 | } | |
15025 | _ACEOF | |
15026 | rm -f conftest.$ac_objext | |
15027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15028 | (eval $ac_compile) 2>&5 | |
15029 | ac_status=$? | |
15030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15031 | (exit $ac_status); } && | |
15032 | { ac_try='test -s conftest.$ac_objext' | |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; }; then | |
15038 | ac_lo=$ac_mid; break | |
15039 | else | |
15040 | echo "$as_me: failed program was:" >&5 | |
15041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15042 | ||
15043 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15044 | if test $ac_mid -le $ac_hi; then | |
15045 | ac_lo= ac_hi= | |
15046 | break | |
15047 | fi | |
15048 | ac_mid=`expr 2 '*' $ac_mid` | |
15049 | fi | |
15050 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15051 | done | |
247f5006 | 15052 | else |
e6cc62c6 VS |
15053 | echo "$as_me: failed program was:" >&5 |
15054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15055 | ||
15056 | ac_lo= ac_hi= | |
15057 | fi | |
15058 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15059 | fi | |
15060 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15061 | # Binary search between lo and hi bounds. | |
15062 | while test "x$ac_lo" != "x$ac_hi"; do | |
15063 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15064 | cat >conftest.$ac_ext <<_ACEOF | |
15065 | #line $LINENO "configure" | |
15066 | /* confdefs.h. */ | |
15067 | _ACEOF | |
15068 | cat confdefs.h >>conftest.$ac_ext | |
15069 | cat >>conftest.$ac_ext <<_ACEOF | |
15070 | /* end confdefs.h. */ | |
15071 | $ac_includes_default | |
15072 | int | |
15073 | main () | |
15074 | { | |
15075 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15076 | test_array [0] = 0 | |
15077 | ||
15078 | ; | |
15079 | return 0; | |
15080 | } | |
15081 | _ACEOF | |
15082 | rm -f conftest.$ac_objext | |
15083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15084 | (eval $ac_compile) 2>&5 | |
15085 | ac_status=$? | |
15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15087 | (exit $ac_status); } && | |
15088 | { ac_try='test -s conftest.$ac_objext' | |
15089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15090 | (eval $ac_try) 2>&5 | |
15091 | ac_status=$? | |
15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15093 | (exit $ac_status); }; }; then | |
15094 | ac_hi=$ac_mid | |
15095 | else | |
15096 | echo "$as_me: failed program was:" >&5 | |
15097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15098 | ||
15099 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15100 | fi | |
15101 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15102 | done | |
15103 | case $ac_lo in | |
15104 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15105 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15106 | See \`config.log' for more details." >&5 | |
15107 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15108 | See \`config.log' for more details." >&2;} | |
15109 | { (exit 1); exit 1; }; } ;; | |
15110 | esac | |
a0b9e27f | 15111 | else |
e6cc62c6 VS |
15112 | if test "$cross_compiling" = yes; then |
15113 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15114 | See \`config.log' for more details." >&5 | |
15115 | echo "$as_me: error: cannot run test program while cross compiling | |
15116 | See \`config.log' for more details." >&2;} | |
15117 | { (exit 1); exit 1; }; } | |
15118 | else | |
15119 | cat >conftest.$ac_ext <<_ACEOF | |
15120 | #line $LINENO "configure" | |
15121 | /* confdefs.h. */ | |
15122 | _ACEOF | |
15123 | cat confdefs.h >>conftest.$ac_ext | |
15124 | cat >>conftest.$ac_ext <<_ACEOF | |
15125 | /* end confdefs.h. */ | |
15126 | $ac_includes_default | |
15127 | long longval () { return (long) (sizeof (int)); } | |
15128 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15129 | #include <stdio.h> |
e6cc62c6 VS |
15130 | #include <stdlib.h> |
15131 | int | |
15132 | main () | |
247f5006 | 15133 | { |
e6cc62c6 VS |
15134 | |
15135 | FILE *f = fopen ("conftest.val", "w"); | |
15136 | if (! f) | |
15137 | exit (1); | |
15138 | if (((long) (sizeof (int))) < 0) | |
15139 | { | |
15140 | long i = longval (); | |
15141 | if (i != ((long) (sizeof (int)))) | |
15142 | exit (1); | |
15143 | fprintf (f, "%ld\n", i); | |
15144 | } | |
15145 | else | |
15146 | { | |
15147 | unsigned long i = ulongval (); | |
15148 | if (i != ((long) (sizeof (int)))) | |
15149 | exit (1); | |
15150 | fprintf (f, "%lu\n", i); | |
15151 | } | |
15152 | exit (ferror (f) || fclose (f) != 0); | |
15153 | ||
15154 | ; | |
15155 | return 0; | |
247f5006 | 15156 | } |
e6cc62c6 VS |
15157 | _ACEOF |
15158 | rm -f conftest$ac_exeext | |
15159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15160 | (eval $ac_link) 2>&5 | |
15161 | ac_status=$? | |
15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15163 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15165 | (eval $ac_try) 2>&5 | |
15166 | ac_status=$? | |
15167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15168 | (exit $ac_status); }; }; then | |
15169 | ac_cv_sizeof_int=`cat conftest.val` | |
15170 | else | |
15171 | echo "$as_me: program exited with status $ac_status" >&5 | |
15172 | echo "$as_me: failed program was:" >&5 | |
15173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15174 | ||
15175 | ( exit $ac_status ) | |
15176 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15177 | See \`config.log' for more details." >&5 | |
15178 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15179 | See \`config.log' for more details." >&2;} | |
15180 | { (exit 1); exit 1; }; } | |
15181 | fi | |
15182 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15183 | fi | |
15184 | fi | |
15185 | rm -f conftest.val | |
6f72b082 | 15186 | else |
a0b9e27f | 15187 | ac_cv_sizeof_int=0 |
21d1c967 | 15188 | fi |
698dcdb6 | 15189 | fi |
e6cc62c6 VS |
15190 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15191 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15192 | cat >>confdefs.h <<_ACEOF | |
15193 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15194 | _ACEOF | |
15195 | ||
15196 | ||
15197 | echo "$as_me:$LINENO: checking for long" >&5 | |
15198 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15199 | if test "${ac_cv_type_long+set}" = set; then | |
15200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15201 | else | |
15202 | cat >conftest.$ac_ext <<_ACEOF | |
15203 | #line $LINENO "configure" | |
15204 | /* confdefs.h. */ | |
15205 | _ACEOF | |
15206 | cat confdefs.h >>conftest.$ac_ext | |
15207 | cat >>conftest.$ac_ext <<_ACEOF | |
15208 | /* end confdefs.h. */ | |
15209 | $ac_includes_default | |
15210 | int | |
15211 | main () | |
15212 | { | |
15213 | if ((long *) 0) | |
15214 | return 0; | |
15215 | if (sizeof (long)) | |
15216 | return 0; | |
15217 | ; | |
15218 | return 0; | |
15219 | } | |
15220 | _ACEOF | |
15221 | rm -f conftest.$ac_objext | |
15222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15223 | (eval $ac_compile) 2>&5 | |
15224 | ac_status=$? | |
15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15226 | (exit $ac_status); } && | |
15227 | { ac_try='test -s conftest.$ac_objext' | |
15228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15229 | (eval $ac_try) 2>&5 | |
15230 | ac_status=$? | |
15231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15232 | (exit $ac_status); }; }; then | |
15233 | ac_cv_type_long=yes | |
15234 | else | |
15235 | echo "$as_me: failed program was:" >&5 | |
15236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15237 | ||
15238 | ac_cv_type_long=no | |
15239 | fi | |
15240 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15241 | fi | |
15242 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15243 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15244 | ||
15245 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15246 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15247 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15249 | else | |
15250 | if test "$ac_cv_type_long" = yes; then | |
15251 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15254 | # This bug is HP SR number 8606223364. | |
15255 | if test "$cross_compiling" = yes; then | |
15256 | # Depending upon the size, compute the lo and hi bounds. | |
15257 | cat >conftest.$ac_ext <<_ACEOF | |
15258 | #line $LINENO "configure" | |
15259 | /* confdefs.h. */ | |
15260 | _ACEOF | |
15261 | cat confdefs.h >>conftest.$ac_ext | |
15262 | cat >>conftest.$ac_ext <<_ACEOF | |
15263 | /* end confdefs.h. */ | |
15264 | $ac_includes_default | |
15265 | int | |
15266 | main () | |
15267 | { | |
15268 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15269 | test_array [0] = 0 | |
15270 | ||
15271 | ; | |
15272 | return 0; | |
15273 | } | |
15274 | _ACEOF | |
15275 | rm -f conftest.$ac_objext | |
15276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15277 | (eval $ac_compile) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); } && | |
15281 | { ac_try='test -s conftest.$ac_objext' | |
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15286 | (exit $ac_status); }; }; then | |
15287 | ac_lo=0 ac_mid=0 | |
15288 | while :; do | |
15289 | cat >conftest.$ac_ext <<_ACEOF | |
15290 | #line $LINENO "configure" | |
15291 | /* confdefs.h. */ | |
15292 | _ACEOF | |
15293 | cat confdefs.h >>conftest.$ac_ext | |
15294 | cat >>conftest.$ac_ext <<_ACEOF | |
15295 | /* end confdefs.h. */ | |
15296 | $ac_includes_default | |
15297 | int | |
15298 | main () | |
15299 | { | |
15300 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15301 | test_array [0] = 0 | |
4f14bcd8 | 15302 | |
e6cc62c6 VS |
15303 | ; |
15304 | return 0; | |
15305 | } | |
15306 | _ACEOF | |
15307 | rm -f conftest.$ac_objext | |
15308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15309 | (eval $ac_compile) 2>&5 | |
15310 | ac_status=$? | |
15311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15312 | (exit $ac_status); } && | |
15313 | { ac_try='test -s conftest.$ac_objext' | |
15314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15315 | (eval $ac_try) 2>&5 | |
15316 | ac_status=$? | |
15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15318 | (exit $ac_status); }; }; then | |
15319 | ac_hi=$ac_mid; break | |
15320 | else | |
15321 | echo "$as_me: failed program was:" >&5 | |
15322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15323 | ||
15324 | ac_lo=`expr $ac_mid + 1` | |
15325 | if test $ac_lo -le $ac_mid; then | |
15326 | ac_lo= ac_hi= | |
15327 | break | |
15328 | fi | |
15329 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15330 | fi |
e6cc62c6 VS |
15331 | rm -f conftest.$ac_objext conftest.$ac_ext |
15332 | done | |
15333 | else | |
15334 | echo "$as_me: failed program was:" >&5 | |
15335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15336 | ||
15337 | cat >conftest.$ac_ext <<_ACEOF | |
15338 | #line $LINENO "configure" | |
15339 | /* confdefs.h. */ | |
15340 | _ACEOF | |
15341 | cat confdefs.h >>conftest.$ac_ext | |
15342 | cat >>conftest.$ac_ext <<_ACEOF | |
15343 | /* end confdefs.h. */ | |
15344 | $ac_includes_default | |
15345 | int | |
15346 | main () | |
15347 | { | |
15348 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15349 | test_array [0] = 0 | |
4f14bcd8 | 15350 | |
e6cc62c6 VS |
15351 | ; |
15352 | return 0; | |
15353 | } | |
15354 | _ACEOF | |
15355 | rm -f conftest.$ac_objext | |
15356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15357 | (eval $ac_compile) 2>&5 | |
15358 | ac_status=$? | |
15359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15360 | (exit $ac_status); } && | |
15361 | { ac_try='test -s conftest.$ac_objext' | |
15362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15363 | (eval $ac_try) 2>&5 | |
15364 | ac_status=$? | |
15365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15366 | (exit $ac_status); }; }; then | |
15367 | ac_hi=-1 ac_mid=-1 | |
15368 | while :; do | |
15369 | cat >conftest.$ac_ext <<_ACEOF | |
15370 | #line $LINENO "configure" | |
15371 | /* confdefs.h. */ | |
15372 | _ACEOF | |
15373 | cat confdefs.h >>conftest.$ac_ext | |
15374 | cat >>conftest.$ac_ext <<_ACEOF | |
15375 | /* end confdefs.h. */ | |
15376 | $ac_includes_default | |
15377 | int | |
15378 | main () | |
15379 | { | |
15380 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15381 | test_array [0] = 0 | |
5c6fa7d2 | 15382 | |
e6cc62c6 VS |
15383 | ; |
15384 | return 0; | |
15385 | } | |
15386 | _ACEOF | |
15387 | rm -f conftest.$ac_objext | |
15388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15389 | (eval $ac_compile) 2>&5 | |
15390 | ac_status=$? | |
15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15392 | (exit $ac_status); } && | |
15393 | { ac_try='test -s conftest.$ac_objext' | |
15394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15395 | (eval $ac_try) 2>&5 | |
15396 | ac_status=$? | |
15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15398 | (exit $ac_status); }; }; then | |
15399 | ac_lo=$ac_mid; break | |
15400 | else | |
15401 | echo "$as_me: failed program was:" >&5 | |
15402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15403 | ||
15404 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15405 | if test $ac_mid -le $ac_hi; then | |
15406 | ac_lo= ac_hi= | |
15407 | break | |
15408 | fi | |
15409 | ac_mid=`expr 2 '*' $ac_mid` | |
15410 | fi | |
15411 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15412 | done | |
247f5006 | 15413 | else |
e6cc62c6 VS |
15414 | echo "$as_me: failed program was:" >&5 |
15415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15416 | ||
15417 | ac_lo= ac_hi= | |
15418 | fi | |
15419 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15420 | fi | |
15421 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15422 | # Binary search between lo and hi bounds. | |
15423 | while test "x$ac_lo" != "x$ac_hi"; do | |
15424 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15425 | cat >conftest.$ac_ext <<_ACEOF | |
15426 | #line $LINENO "configure" | |
15427 | /* confdefs.h. */ | |
15428 | _ACEOF | |
15429 | cat confdefs.h >>conftest.$ac_ext | |
15430 | cat >>conftest.$ac_ext <<_ACEOF | |
15431 | /* end confdefs.h. */ | |
15432 | $ac_includes_default | |
15433 | int | |
15434 | main () | |
15435 | { | |
15436 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15437 | test_array [0] = 0 | |
15438 | ||
15439 | ; | |
15440 | return 0; | |
15441 | } | |
15442 | _ACEOF | |
15443 | rm -f conftest.$ac_objext | |
15444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15445 | (eval $ac_compile) 2>&5 | |
15446 | ac_status=$? | |
15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15448 | (exit $ac_status); } && | |
15449 | { ac_try='test -s conftest.$ac_objext' | |
15450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15451 | (eval $ac_try) 2>&5 | |
15452 | ac_status=$? | |
15453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15454 | (exit $ac_status); }; }; then | |
15455 | ac_hi=$ac_mid | |
15456 | else | |
15457 | echo "$as_me: failed program was:" >&5 | |
15458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15459 | ||
15460 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15461 | fi | |
15462 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15463 | done | |
15464 | case $ac_lo in | |
15465 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15466 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15467 | See \`config.log' for more details." >&5 | |
15468 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15469 | See \`config.log' for more details." >&2;} | |
15470 | { (exit 1); exit 1; }; } ;; | |
15471 | esac | |
247f5006 | 15472 | else |
e6cc62c6 VS |
15473 | if test "$cross_compiling" = yes; then |
15474 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15475 | See \`config.log' for more details." >&5 | |
15476 | echo "$as_me: error: cannot run test program while cross compiling | |
15477 | See \`config.log' for more details." >&2;} | |
15478 | { (exit 1); exit 1; }; } | |
15479 | else | |
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 | long longval () { return (long) (sizeof (long)); } | |
15489 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15490 | #include <stdio.h> |
e6cc62c6 VS |
15491 | #include <stdlib.h> |
15492 | int | |
15493 | main () | |
247f5006 | 15494 | { |
e6cc62c6 VS |
15495 | |
15496 | FILE *f = fopen ("conftest.val", "w"); | |
15497 | if (! f) | |
15498 | exit (1); | |
15499 | if (((long) (sizeof (long))) < 0) | |
15500 | { | |
15501 | long i = longval (); | |
15502 | if (i != ((long) (sizeof (long)))) | |
15503 | exit (1); | |
15504 | fprintf (f, "%ld\n", i); | |
15505 | } | |
15506 | else | |
15507 | { | |
15508 | unsigned long i = ulongval (); | |
15509 | if (i != ((long) (sizeof (long)))) | |
15510 | exit (1); | |
15511 | fprintf (f, "%lu\n", i); | |
15512 | } | |
15513 | exit (ferror (f) || fclose (f) != 0); | |
15514 | ||
15515 | ; | |
15516 | return 0; | |
247f5006 | 15517 | } |
e6cc62c6 VS |
15518 | _ACEOF |
15519 | rm -f conftest$ac_exeext | |
15520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15521 | (eval $ac_link) 2>&5 | |
15522 | ac_status=$? | |
15523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15526 | (eval $ac_try) 2>&5 | |
15527 | ac_status=$? | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); }; }; then | |
15530 | ac_cv_sizeof_long=`cat conftest.val` | |
15531 | else | |
15532 | echo "$as_me: program exited with status $ac_status" >&5 | |
15533 | echo "$as_me: failed program was:" >&5 | |
15534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15535 | ||
15536 | ( exit $ac_status ) | |
15537 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15538 | See \`config.log' for more details." >&5 | |
15539 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15540 | See \`config.log' for more details." >&2;} | |
15541 | { (exit 1); exit 1; }; } | |
15542 | fi | |
15543 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15544 | fi | |
15545 | fi | |
15546 | rm -f conftest.val | |
247f5006 | 15547 | else |
a0b9e27f | 15548 | ac_cv_sizeof_long=0 |
247f5006 | 15549 | fi |
247f5006 | 15550 | fi |
e6cc62c6 VS |
15551 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15552 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15553 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15554 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15555 | _ACEOF |
247f5006 | 15556 | |
a0b9e27f MB |
15557 | |
15558 | ||
15559 | case "${host}" in | |
15560 | arm-*-linux* ) | |
e6cc62c6 VS |
15561 | echo "$as_me:$LINENO: checking for long long" >&5 |
15562 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15563 | if test "${ac_cv_type_long_long+set}" = set; then | |
15564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15565 | else | |
15566 | cat >conftest.$ac_ext <<_ACEOF | |
15567 | #line $LINENO "configure" | |
15568 | /* confdefs.h. */ | |
15569 | _ACEOF | |
15570 | cat confdefs.h >>conftest.$ac_ext | |
15571 | cat >>conftest.$ac_ext <<_ACEOF | |
15572 | /* end confdefs.h. */ | |
15573 | $ac_includes_default | |
15574 | int | |
15575 | main () | |
15576 | { | |
15577 | if ((long long *) 0) | |
15578 | return 0; | |
15579 | if (sizeof (long long)) | |
15580 | return 0; | |
15581 | ; | |
15582 | return 0; | |
15583 | } | |
15584 | _ACEOF | |
15585 | rm -f conftest.$ac_objext | |
15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15587 | (eval $ac_compile) 2>&5 | |
15588 | ac_status=$? | |
15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15590 | (exit $ac_status); } && | |
15591 | { ac_try='test -s conftest.$ac_objext' | |
15592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15593 | (eval $ac_try) 2>&5 | |
15594 | ac_status=$? | |
15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15596 | (exit $ac_status); }; }; then | |
15597 | ac_cv_type_long_long=yes | |
15598 | else | |
15599 | echo "$as_me: failed program was:" >&5 | |
15600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15601 | ||
15602 | ac_cv_type_long_long=no | |
15603 | fi | |
15604 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15605 | fi | |
15606 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15607 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15608 | ||
15609 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15610 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15611 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15613 | else | |
15614 | if test "$ac_cv_type_long_long" = yes; then | |
15615 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15616 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15617 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15618 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15619 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15620 | # Depending upon the size, compute the lo and hi bounds. |
15621 | cat >conftest.$ac_ext <<_ACEOF | |
15622 | #line $LINENO "configure" | |
15623 | /* confdefs.h. */ | |
15624 | _ACEOF | |
15625 | cat confdefs.h >>conftest.$ac_ext | |
15626 | cat >>conftest.$ac_ext <<_ACEOF | |
15627 | /* end confdefs.h. */ | |
15628 | $ac_includes_default | |
15629 | int | |
15630 | main () | |
15631 | { | |
15632 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15633 | test_array [0] = 0 | |
15634 | ||
15635 | ; | |
15636 | return 0; | |
15637 | } | |
15638 | _ACEOF | |
15639 | rm -f conftest.$ac_objext | |
15640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15641 | (eval $ac_compile) 2>&5 | |
15642 | ac_status=$? | |
15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15644 | (exit $ac_status); } && | |
15645 | { ac_try='test -s conftest.$ac_objext' | |
15646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15647 | (eval $ac_try) 2>&5 | |
15648 | ac_status=$? | |
15649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15650 | (exit $ac_status); }; }; then | |
15651 | ac_lo=0 ac_mid=0 | |
15652 | while :; do | |
15653 | cat >conftest.$ac_ext <<_ACEOF | |
15654 | #line $LINENO "configure" | |
15655 | /* confdefs.h. */ | |
15656 | _ACEOF | |
15657 | cat confdefs.h >>conftest.$ac_ext | |
15658 | cat >>conftest.$ac_ext <<_ACEOF | |
15659 | /* end confdefs.h. */ | |
15660 | $ac_includes_default | |
15661 | int | |
15662 | main () | |
15663 | { | |
15664 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15665 | test_array [0] = 0 | |
15666 | ||
15667 | ; | |
15668 | return 0; | |
15669 | } | |
15670 | _ACEOF | |
15671 | rm -f conftest.$ac_objext | |
15672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15673 | (eval $ac_compile) 2>&5 | |
15674 | ac_status=$? | |
15675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15676 | (exit $ac_status); } && | |
15677 | { ac_try='test -s conftest.$ac_objext' | |
15678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15679 | (eval $ac_try) 2>&5 | |
15680 | ac_status=$? | |
15681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15682 | (exit $ac_status); }; }; then | |
15683 | ac_hi=$ac_mid; break | |
15684 | else | |
15685 | echo "$as_me: failed program was:" >&5 | |
15686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15687 | ||
15688 | ac_lo=`expr $ac_mid + 1` | |
15689 | if test $ac_lo -le $ac_mid; then | |
15690 | ac_lo= ac_hi= | |
15691 | break | |
15692 | fi | |
15693 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15694 | fi | |
15695 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15696 | done | |
15697 | else | |
15698 | echo "$as_me: failed program was:" >&5 | |
15699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15700 | ||
15701 | cat >conftest.$ac_ext <<_ACEOF | |
15702 | #line $LINENO "configure" | |
15703 | /* confdefs.h. */ | |
15704 | _ACEOF | |
15705 | cat confdefs.h >>conftest.$ac_ext | |
15706 | cat >>conftest.$ac_ext <<_ACEOF | |
15707 | /* end confdefs.h. */ | |
15708 | $ac_includes_default | |
15709 | int | |
15710 | main () | |
15711 | { | |
15712 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15713 | test_array [0] = 0 | |
15714 | ||
15715 | ; | |
15716 | return 0; | |
15717 | } | |
15718 | _ACEOF | |
15719 | rm -f conftest.$ac_objext | |
15720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15721 | (eval $ac_compile) 2>&5 | |
15722 | ac_status=$? | |
15723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15724 | (exit $ac_status); } && | |
15725 | { ac_try='test -s conftest.$ac_objext' | |
15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15727 | (eval $ac_try) 2>&5 | |
15728 | ac_status=$? | |
15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15730 | (exit $ac_status); }; }; then | |
15731 | ac_hi=-1 ac_mid=-1 | |
15732 | while :; do | |
15733 | cat >conftest.$ac_ext <<_ACEOF | |
15734 | #line $LINENO "configure" | |
15735 | /* confdefs.h. */ | |
15736 | _ACEOF | |
15737 | cat confdefs.h >>conftest.$ac_ext | |
15738 | cat >>conftest.$ac_ext <<_ACEOF | |
15739 | /* end confdefs.h. */ | |
15740 | $ac_includes_default | |
15741 | int | |
15742 | main () | |
15743 | { | |
15744 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15745 | test_array [0] = 0 | |
15746 | ||
15747 | ; | |
15748 | return 0; | |
15749 | } | |
15750 | _ACEOF | |
15751 | rm -f conftest.$ac_objext | |
15752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15753 | (eval $ac_compile) 2>&5 | |
15754 | ac_status=$? | |
15755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15756 | (exit $ac_status); } && | |
15757 | { ac_try='test -s conftest.$ac_objext' | |
15758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15759 | (eval $ac_try) 2>&5 | |
15760 | ac_status=$? | |
15761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15762 | (exit $ac_status); }; }; then | |
15763 | ac_lo=$ac_mid; break | |
15764 | else | |
15765 | echo "$as_me: failed program was:" >&5 | |
15766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15767 | ||
15768 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15769 | if test $ac_mid -le $ac_hi; then | |
15770 | ac_lo= ac_hi= | |
15771 | break | |
15772 | fi | |
15773 | ac_mid=`expr 2 '*' $ac_mid` | |
15774 | fi | |
15775 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15776 | done | |
15777 | else | |
15778 | echo "$as_me: failed program was:" >&5 | |
15779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15780 | ||
15781 | ac_lo= ac_hi= | |
15782 | fi | |
15783 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15784 | fi | |
15785 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15786 | # Binary search between lo and hi bounds. | |
15787 | while test "x$ac_lo" != "x$ac_hi"; do | |
15788 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15789 | cat >conftest.$ac_ext <<_ACEOF | |
15790 | #line $LINENO "configure" | |
15791 | /* confdefs.h. */ | |
15792 | _ACEOF | |
15793 | cat confdefs.h >>conftest.$ac_ext | |
15794 | cat >>conftest.$ac_ext <<_ACEOF | |
15795 | /* end confdefs.h. */ | |
15796 | $ac_includes_default | |
15797 | int | |
15798 | main () | |
15799 | { | |
15800 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15801 | test_array [0] = 0 | |
15802 | ||
15803 | ; | |
15804 | return 0; | |
15805 | } | |
15806 | _ACEOF | |
15807 | rm -f conftest.$ac_objext | |
15808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15809 | (eval $ac_compile) 2>&5 | |
15810 | ac_status=$? | |
15811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15812 | (exit $ac_status); } && | |
15813 | { ac_try='test -s conftest.$ac_objext' | |
15814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15815 | (eval $ac_try) 2>&5 | |
15816 | ac_status=$? | |
15817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15818 | (exit $ac_status); }; }; then | |
15819 | ac_hi=$ac_mid | |
15820 | else | |
15821 | echo "$as_me: failed program was:" >&5 | |
15822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15823 | ||
15824 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15825 | fi | |
15826 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15827 | done | |
15828 | case $ac_lo in | |
15829 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15830 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15831 | See \`config.log' for more details." >&5 | |
15832 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15833 | See \`config.log' for more details." >&2;} | |
15834 | { (exit 1); exit 1; }; } ;; | |
15835 | esac | |
a0b9e27f | 15836 | else |
e6cc62c6 VS |
15837 | if test "$cross_compiling" = yes; then |
15838 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15839 | See \`config.log' for more details." >&5 | |
15840 | echo "$as_me: error: cannot run test program while cross compiling | |
15841 | See \`config.log' for more details." >&2;} | |
15842 | { (exit 1); exit 1; }; } | |
15843 | else | |
15844 | cat >conftest.$ac_ext <<_ACEOF | |
15845 | #line $LINENO "configure" | |
15846 | /* confdefs.h. */ | |
15847 | _ACEOF | |
15848 | cat confdefs.h >>conftest.$ac_ext | |
15849 | cat >>conftest.$ac_ext <<_ACEOF | |
15850 | /* end confdefs.h. */ | |
15851 | $ac_includes_default | |
15852 | long longval () { return (long) (sizeof (long long)); } | |
15853 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15854 | #include <stdio.h> |
e6cc62c6 VS |
15855 | #include <stdlib.h> |
15856 | int | |
15857 | main () | |
247f5006 | 15858 | { |
e6cc62c6 VS |
15859 | |
15860 | FILE *f = fopen ("conftest.val", "w"); | |
15861 | if (! f) | |
15862 | exit (1); | |
15863 | if (((long) (sizeof (long long))) < 0) | |
15864 | { | |
15865 | long i = longval (); | |
15866 | if (i != ((long) (sizeof (long long)))) | |
15867 | exit (1); | |
15868 | fprintf (f, "%ld\n", i); | |
15869 | } | |
15870 | else | |
15871 | { | |
15872 | unsigned long i = ulongval (); | |
15873 | if (i != ((long) (sizeof (long long)))) | |
15874 | exit (1); | |
15875 | fprintf (f, "%lu\n", i); | |
15876 | } | |
15877 | exit (ferror (f) || fclose (f) != 0); | |
15878 | ||
15879 | ; | |
15880 | return 0; | |
247f5006 | 15881 | } |
e6cc62c6 VS |
15882 | _ACEOF |
15883 | rm -f conftest$ac_exeext | |
15884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15885 | (eval $ac_link) 2>&5 | |
15886 | ac_status=$? | |
15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15890 | (eval $ac_try) 2>&5 | |
15891 | ac_status=$? | |
15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15893 | (exit $ac_status); }; }; then | |
15894 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15895 | else | |
15896 | echo "$as_me: program exited with status $ac_status" >&5 | |
15897 | echo "$as_me: failed program was:" >&5 | |
15898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15899 | ||
15900 | ( exit $ac_status ) | |
15901 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15902 | See \`config.log' for more details." >&5 | |
15903 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15904 | See \`config.log' for more details." >&2;} | |
15905 | { (exit 1); exit 1; }; } | |
15906 | fi | |
15907 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15908 | fi | |
15909 | fi | |
15910 | rm -f conftest.val | |
7b4a847f | 15911 | else |
a0b9e27f | 15912 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15913 | fi |
15914 | fi | |
e6cc62c6 VS |
15915 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15916 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15917 | cat >>confdefs.h <<_ACEOF | |
15918 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15919 | _ACEOF | |
15920 | ||
15921 | ||
15922 | ;; | |
15923 | *-hp-hpux* ) | |
15924 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15925 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15926 | if test "${ac_cv_type_long_long+set}" = set; then | |
15927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15928 | else | |
15929 | cat >conftest.$ac_ext <<_ACEOF | |
15930 | #line $LINENO "configure" | |
15931 | /* confdefs.h. */ | |
15932 | _ACEOF | |
15933 | cat confdefs.h >>conftest.$ac_ext | |
15934 | cat >>conftest.$ac_ext <<_ACEOF | |
15935 | /* end confdefs.h. */ | |
15936 | $ac_includes_default | |
15937 | int | |
15938 | main () | |
15939 | { | |
15940 | if ((long long *) 0) | |
15941 | return 0; | |
15942 | if (sizeof (long long)) | |
15943 | return 0; | |
15944 | ; | |
15945 | return 0; | |
15946 | } | |
15947 | _ACEOF | |
15948 | rm -f conftest.$ac_objext | |
15949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15950 | (eval $ac_compile) 2>&5 | |
15951 | ac_status=$? | |
15952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15953 | (exit $ac_status); } && | |
15954 | { ac_try='test -s conftest.$ac_objext' | |
15955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15956 | (eval $ac_try) 2>&5 | |
15957 | ac_status=$? | |
15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15959 | (exit $ac_status); }; }; then | |
15960 | ac_cv_type_long_long=yes | |
15961 | else | |
15962 | echo "$as_me: failed program was:" >&5 | |
15963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15964 | ||
15965 | ac_cv_type_long_long=no | |
15966 | fi | |
15967 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15968 | fi | |
15969 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15970 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15971 | ||
15972 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15973 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15974 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15976 | else | |
15977 | if test "$ac_cv_type_long_long" = yes; then | |
15978 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15979 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15980 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15981 | # This bug is HP SR number 8606223364. | |
15982 | if test "$cross_compiling" = yes; then | |
15983 | # Depending upon the size, compute the lo and hi bounds. | |
15984 | cat >conftest.$ac_ext <<_ACEOF | |
15985 | #line $LINENO "configure" | |
15986 | /* confdefs.h. */ | |
15987 | _ACEOF | |
15988 | cat confdefs.h >>conftest.$ac_ext | |
15989 | cat >>conftest.$ac_ext <<_ACEOF | |
15990 | /* end confdefs.h. */ | |
15991 | $ac_includes_default | |
15992 | int | |
15993 | main () | |
15994 | { | |
15995 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15996 | test_array [0] = 0 | |
15997 | ||
15998 | ; | |
15999 | return 0; | |
16000 | } | |
16001 | _ACEOF | |
16002 | rm -f conftest.$ac_objext | |
16003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16004 | (eval $ac_compile) 2>&5 | |
16005 | ac_status=$? | |
16006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16007 | (exit $ac_status); } && | |
16008 | { ac_try='test -s conftest.$ac_objext' | |
16009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16010 | (eval $ac_try) 2>&5 | |
16011 | ac_status=$? | |
16012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16013 | (exit $ac_status); }; }; then | |
16014 | ac_lo=0 ac_mid=0 | |
16015 | while :; do | |
16016 | cat >conftest.$ac_ext <<_ACEOF | |
16017 | #line $LINENO "configure" | |
16018 | /* confdefs.h. */ | |
16019 | _ACEOF | |
16020 | cat confdefs.h >>conftest.$ac_ext | |
16021 | cat >>conftest.$ac_ext <<_ACEOF | |
16022 | /* end confdefs.h. */ | |
16023 | $ac_includes_default | |
16024 | int | |
16025 | main () | |
16026 | { | |
16027 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16028 | test_array [0] = 0 | |
8284b0c5 | 16029 | |
e6cc62c6 VS |
16030 | ; |
16031 | return 0; | |
16032 | } | |
16033 | _ACEOF | |
16034 | rm -f conftest.$ac_objext | |
16035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16036 | (eval $ac_compile) 2>&5 | |
16037 | ac_status=$? | |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16039 | (exit $ac_status); } && | |
16040 | { ac_try='test -s conftest.$ac_objext' | |
16041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16042 | (eval $ac_try) 2>&5 | |
16043 | ac_status=$? | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); }; }; then | |
16046 | ac_hi=$ac_mid; break | |
16047 | else | |
16048 | echo "$as_me: failed program was:" >&5 | |
16049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16050 | ||
16051 | ac_lo=`expr $ac_mid + 1` | |
16052 | if test $ac_lo -le $ac_mid; then | |
16053 | ac_lo= ac_hi= | |
16054 | break | |
16055 | fi | |
16056 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16057 | fi |
e6cc62c6 VS |
16058 | rm -f conftest.$ac_objext conftest.$ac_ext |
16059 | done | |
16060 | else | |
16061 | echo "$as_me: failed program was:" >&5 | |
16062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16063 | ||
16064 | cat >conftest.$ac_ext <<_ACEOF | |
16065 | #line $LINENO "configure" | |
16066 | /* confdefs.h. */ | |
16067 | _ACEOF | |
16068 | cat confdefs.h >>conftest.$ac_ext | |
16069 | cat >>conftest.$ac_ext <<_ACEOF | |
16070 | /* end confdefs.h. */ | |
16071 | $ac_includes_default | |
16072 | int | |
16073 | main () | |
16074 | { | |
16075 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16076 | test_array [0] = 0 | |
a0b9e27f | 16077 | |
e6cc62c6 VS |
16078 | ; |
16079 | return 0; | |
16080 | } | |
16081 | _ACEOF | |
16082 | rm -f conftest.$ac_objext | |
16083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16084 | (eval $ac_compile) 2>&5 | |
16085 | ac_status=$? | |
16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16087 | (exit $ac_status); } && | |
16088 | { ac_try='test -s conftest.$ac_objext' | |
16089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16090 | (eval $ac_try) 2>&5 | |
16091 | ac_status=$? | |
16092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16093 | (exit $ac_status); }; }; then | |
16094 | ac_hi=-1 ac_mid=-1 | |
16095 | while :; do | |
16096 | cat >conftest.$ac_ext <<_ACEOF | |
16097 | #line $LINENO "configure" | |
16098 | /* confdefs.h. */ | |
16099 | _ACEOF | |
16100 | cat confdefs.h >>conftest.$ac_ext | |
16101 | cat >>conftest.$ac_ext <<_ACEOF | |
16102 | /* end confdefs.h. */ | |
16103 | $ac_includes_default | |
16104 | int | |
16105 | main () | |
16106 | { | |
16107 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16108 | test_array [0] = 0 | |
a0b9e27f | 16109 | |
e6cc62c6 VS |
16110 | ; |
16111 | return 0; | |
16112 | } | |
16113 | _ACEOF | |
16114 | rm -f conftest.$ac_objext | |
16115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16116 | (eval $ac_compile) 2>&5 | |
16117 | ac_status=$? | |
16118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16119 | (exit $ac_status); } && | |
16120 | { ac_try='test -s conftest.$ac_objext' | |
16121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16122 | (eval $ac_try) 2>&5 | |
16123 | ac_status=$? | |
16124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16125 | (exit $ac_status); }; }; then | |
16126 | ac_lo=$ac_mid; break | |
16127 | else | |
16128 | echo "$as_me: failed program was:" >&5 | |
16129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16130 | ||
16131 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16132 | if test $ac_mid -le $ac_hi; then | |
16133 | ac_lo= ac_hi= | |
16134 | break | |
16135 | fi | |
16136 | ac_mid=`expr 2 '*' $ac_mid` | |
16137 | fi | |
16138 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16139 | done | |
8284b0c5 | 16140 | else |
e6cc62c6 VS |
16141 | echo "$as_me: failed program was:" >&5 |
16142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16143 | ||
16144 | ac_lo= ac_hi= | |
16145 | fi | |
16146 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16147 | fi | |
16148 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16149 | # Binary search between lo and hi bounds. | |
16150 | while test "x$ac_lo" != "x$ac_hi"; do | |
16151 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16152 | cat >conftest.$ac_ext <<_ACEOF | |
16153 | #line $LINENO "configure" | |
16154 | /* confdefs.h. */ | |
16155 | _ACEOF | |
16156 | cat confdefs.h >>conftest.$ac_ext | |
16157 | cat >>conftest.$ac_ext <<_ACEOF | |
16158 | /* end confdefs.h. */ | |
16159 | $ac_includes_default | |
16160 | int | |
16161 | main () | |
16162 | { | |
16163 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16164 | test_array [0] = 0 | |
16165 | ||
16166 | ; | |
16167 | return 0; | |
16168 | } | |
16169 | _ACEOF | |
16170 | rm -f conftest.$ac_objext | |
16171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16172 | (eval $ac_compile) 2>&5 | |
16173 | ac_status=$? | |
16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16175 | (exit $ac_status); } && | |
16176 | { ac_try='test -s conftest.$ac_objext' | |
16177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16178 | (eval $ac_try) 2>&5 | |
16179 | ac_status=$? | |
16180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16181 | (exit $ac_status); }; }; then | |
16182 | ac_hi=$ac_mid | |
16183 | else | |
16184 | echo "$as_me: failed program was:" >&5 | |
16185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16186 | ||
16187 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16188 | fi | |
16189 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16190 | done | |
16191 | case $ac_lo in | |
16192 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16193 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16194 | See \`config.log' for more details." >&5 | |
16195 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16196 | See \`config.log' for more details." >&2;} | |
16197 | { (exit 1); exit 1; }; } ;; | |
16198 | esac | |
8284b0c5 | 16199 | else |
e6cc62c6 VS |
16200 | if test "$cross_compiling" = yes; then |
16201 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16202 | See \`config.log' for more details." >&5 | |
16203 | echo "$as_me: error: cannot run test program while cross compiling | |
16204 | See \`config.log' for more details." >&2;} | |
16205 | { (exit 1); exit 1; }; } | |
16206 | else | |
16207 | cat >conftest.$ac_ext <<_ACEOF | |
16208 | #line $LINENO "configure" | |
16209 | /* confdefs.h. */ | |
16210 | _ACEOF | |
16211 | cat confdefs.h >>conftest.$ac_ext | |
16212 | cat >>conftest.$ac_ext <<_ACEOF | |
16213 | /* end confdefs.h. */ | |
16214 | $ac_includes_default | |
16215 | long longval () { return (long) (sizeof (long long)); } | |
16216 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16217 | #include <stdio.h> |
e6cc62c6 VS |
16218 | #include <stdlib.h> |
16219 | int | |
16220 | main () | |
8284b0c5 | 16221 | { |
e6cc62c6 VS |
16222 | |
16223 | FILE *f = fopen ("conftest.val", "w"); | |
16224 | if (! f) | |
16225 | exit (1); | |
16226 | if (((long) (sizeof (long long))) < 0) | |
16227 | { | |
16228 | long i = longval (); | |
16229 | if (i != ((long) (sizeof (long long)))) | |
16230 | exit (1); | |
16231 | fprintf (f, "%ld\n", i); | |
16232 | } | |
16233 | else | |
16234 | { | |
16235 | unsigned long i = ulongval (); | |
16236 | if (i != ((long) (sizeof (long long)))) | |
16237 | exit (1); | |
16238 | fprintf (f, "%lu\n", i); | |
16239 | } | |
16240 | exit (ferror (f) || fclose (f) != 0); | |
16241 | ||
16242 | ; | |
16243 | return 0; | |
8284b0c5 | 16244 | } |
e6cc62c6 VS |
16245 | _ACEOF |
16246 | rm -f conftest$ac_exeext | |
16247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16248 | (eval $ac_link) 2>&5 | |
16249 | ac_status=$? | |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16253 | (eval $ac_try) 2>&5 | |
16254 | ac_status=$? | |
16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16256 | (exit $ac_status); }; }; then | |
16257 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16258 | else | |
16259 | echo "$as_me: program exited with status $ac_status" >&5 | |
16260 | echo "$as_me: failed program was:" >&5 | |
16261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16262 | ||
16263 | ( exit $ac_status ) | |
16264 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16265 | See \`config.log' for more details." >&5 | |
16266 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16267 | See \`config.log' for more details." >&2;} | |
16268 | { (exit 1); exit 1; }; } | |
16269 | fi | |
16270 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16271 | fi | |
16272 | fi | |
16273 | rm -f conftest.val | |
5c6fa7d2 RR |
16274 | else |
16275 | ac_cv_sizeof_long_long=0 | |
52127426 | 16276 | fi |
4f57cf11 | 16277 | fi |
e6cc62c6 VS |
16278 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16279 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16280 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16281 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16282 | _ACEOF |
4f57cf11 GD |
16283 | |
16284 | ||
16285 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16286 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16287 | fi | |
16288 | ;; | |
16289 | * ) | |
e6cc62c6 VS |
16290 | echo "$as_me:$LINENO: checking for long long" >&5 |
16291 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16292 | if test "${ac_cv_type_long_long+set}" = set; then | |
16293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16294 | else | |
16295 | cat >conftest.$ac_ext <<_ACEOF | |
16296 | #line $LINENO "configure" | |
16297 | /* confdefs.h. */ | |
16298 | _ACEOF | |
16299 | cat confdefs.h >>conftest.$ac_ext | |
16300 | cat >>conftest.$ac_ext <<_ACEOF | |
16301 | /* end confdefs.h. */ | |
16302 | $ac_includes_default | |
16303 | int | |
16304 | main () | |
16305 | { | |
16306 | if ((long long *) 0) | |
16307 | return 0; | |
16308 | if (sizeof (long long)) | |
16309 | return 0; | |
16310 | ; | |
16311 | return 0; | |
16312 | } | |
16313 | _ACEOF | |
16314 | rm -f conftest.$ac_objext | |
16315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16316 | (eval $ac_compile) 2>&5 | |
16317 | ac_status=$? | |
16318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16319 | (exit $ac_status); } && | |
16320 | { ac_try='test -s conftest.$ac_objext' | |
16321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16322 | (eval $ac_try) 2>&5 | |
16323 | ac_status=$? | |
16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16325 | (exit $ac_status); }; }; then | |
16326 | ac_cv_type_long_long=yes | |
16327 | else | |
16328 | echo "$as_me: failed program was:" >&5 | |
16329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16330 | ||
16331 | ac_cv_type_long_long=no | |
16332 | fi | |
16333 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16334 | fi | |
16335 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16336 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16337 | ||
16338 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16339 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16340 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16342 | else | |
16343 | if test "$ac_cv_type_long_long" = yes; then | |
16344 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16345 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16346 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16347 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16348 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16349 | # Depending upon the size, compute the lo and hi bounds. |
16350 | cat >conftest.$ac_ext <<_ACEOF | |
16351 | #line $LINENO "configure" | |
16352 | /* confdefs.h. */ | |
16353 | _ACEOF | |
16354 | cat confdefs.h >>conftest.$ac_ext | |
16355 | cat >>conftest.$ac_ext <<_ACEOF | |
16356 | /* end confdefs.h. */ | |
16357 | $ac_includes_default | |
16358 | int | |
16359 | main () | |
16360 | { | |
16361 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16362 | test_array [0] = 0 | |
16363 | ||
16364 | ; | |
16365 | return 0; | |
16366 | } | |
16367 | _ACEOF | |
16368 | rm -f conftest.$ac_objext | |
16369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16370 | (eval $ac_compile) 2>&5 | |
16371 | ac_status=$? | |
16372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16373 | (exit $ac_status); } && | |
16374 | { ac_try='test -s conftest.$ac_objext' | |
16375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16376 | (eval $ac_try) 2>&5 | |
16377 | ac_status=$? | |
16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16379 | (exit $ac_status); }; }; then | |
16380 | ac_lo=0 ac_mid=0 | |
16381 | while :; do | |
16382 | cat >conftest.$ac_ext <<_ACEOF | |
16383 | #line $LINENO "configure" | |
16384 | /* confdefs.h. */ | |
16385 | _ACEOF | |
16386 | cat confdefs.h >>conftest.$ac_ext | |
16387 | cat >>conftest.$ac_ext <<_ACEOF | |
16388 | /* end confdefs.h. */ | |
16389 | $ac_includes_default | |
16390 | int | |
16391 | main () | |
16392 | { | |
16393 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16394 | test_array [0] = 0 | |
16395 | ||
16396 | ; | |
16397 | return 0; | |
16398 | } | |
16399 | _ACEOF | |
16400 | rm -f conftest.$ac_objext | |
16401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16402 | (eval $ac_compile) 2>&5 | |
16403 | ac_status=$? | |
16404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16405 | (exit $ac_status); } && | |
16406 | { ac_try='test -s conftest.$ac_objext' | |
16407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16408 | (eval $ac_try) 2>&5 | |
16409 | ac_status=$? | |
16410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16411 | (exit $ac_status); }; }; then | |
16412 | ac_hi=$ac_mid; break | |
16413 | else | |
16414 | echo "$as_me: failed program was:" >&5 | |
16415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16416 | ||
16417 | ac_lo=`expr $ac_mid + 1` | |
16418 | if test $ac_lo -le $ac_mid; then | |
16419 | ac_lo= ac_hi= | |
16420 | break | |
16421 | fi | |
16422 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16423 | fi | |
16424 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16425 | done | |
16426 | else | |
16427 | echo "$as_me: failed program was:" >&5 | |
16428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16429 | ||
16430 | cat >conftest.$ac_ext <<_ACEOF | |
16431 | #line $LINENO "configure" | |
16432 | /* confdefs.h. */ | |
16433 | _ACEOF | |
16434 | cat confdefs.h >>conftest.$ac_ext | |
16435 | cat >>conftest.$ac_ext <<_ACEOF | |
16436 | /* end confdefs.h. */ | |
16437 | $ac_includes_default | |
16438 | int | |
16439 | main () | |
16440 | { | |
16441 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16442 | test_array [0] = 0 | |
16443 | ||
16444 | ; | |
16445 | return 0; | |
16446 | } | |
16447 | _ACEOF | |
16448 | rm -f conftest.$ac_objext | |
16449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16450 | (eval $ac_compile) 2>&5 | |
16451 | ac_status=$? | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); } && | |
16454 | { ac_try='test -s conftest.$ac_objext' | |
16455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16456 | (eval $ac_try) 2>&5 | |
16457 | ac_status=$? | |
16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16459 | (exit $ac_status); }; }; then | |
16460 | ac_hi=-1 ac_mid=-1 | |
16461 | while :; do | |
16462 | cat >conftest.$ac_ext <<_ACEOF | |
16463 | #line $LINENO "configure" | |
16464 | /* confdefs.h. */ | |
16465 | _ACEOF | |
16466 | cat confdefs.h >>conftest.$ac_ext | |
16467 | cat >>conftest.$ac_ext <<_ACEOF | |
16468 | /* end confdefs.h. */ | |
16469 | $ac_includes_default | |
16470 | int | |
16471 | main () | |
16472 | { | |
16473 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16474 | test_array [0] = 0 | |
16475 | ||
16476 | ; | |
16477 | return 0; | |
16478 | } | |
16479 | _ACEOF | |
16480 | rm -f conftest.$ac_objext | |
16481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16482 | (eval $ac_compile) 2>&5 | |
16483 | ac_status=$? | |
16484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16485 | (exit $ac_status); } && | |
16486 | { ac_try='test -s conftest.$ac_objext' | |
16487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16488 | (eval $ac_try) 2>&5 | |
16489 | ac_status=$? | |
16490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16491 | (exit $ac_status); }; }; then | |
16492 | ac_lo=$ac_mid; break | |
16493 | else | |
16494 | echo "$as_me: failed program was:" >&5 | |
16495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16496 | ||
16497 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16498 | if test $ac_mid -le $ac_hi; then | |
16499 | ac_lo= ac_hi= | |
16500 | break | |
16501 | fi | |
16502 | ac_mid=`expr 2 '*' $ac_mid` | |
16503 | fi | |
16504 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16505 | done | |
4f57cf11 | 16506 | else |
e6cc62c6 VS |
16507 | echo "$as_me: failed program was:" >&5 |
16508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16509 | ||
16510 | ac_lo= ac_hi= | |
16511 | fi | |
16512 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16513 | fi | |
16514 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16515 | # Binary search between lo and hi bounds. | |
16516 | while test "x$ac_lo" != "x$ac_hi"; do | |
16517 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16518 | cat >conftest.$ac_ext <<_ACEOF | |
16519 | #line $LINENO "configure" | |
16520 | /* confdefs.h. */ | |
16521 | _ACEOF | |
16522 | cat confdefs.h >>conftest.$ac_ext | |
16523 | cat >>conftest.$ac_ext <<_ACEOF | |
16524 | /* end confdefs.h. */ | |
16525 | $ac_includes_default | |
16526 | int | |
16527 | main () | |
16528 | { | |
16529 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16530 | test_array [0] = 0 | |
16531 | ||
16532 | ; | |
16533 | return 0; | |
16534 | } | |
16535 | _ACEOF | |
16536 | rm -f conftest.$ac_objext | |
16537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16538 | (eval $ac_compile) 2>&5 | |
16539 | ac_status=$? | |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16541 | (exit $ac_status); } && | |
16542 | { ac_try='test -s conftest.$ac_objext' | |
16543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16544 | (eval $ac_try) 2>&5 | |
16545 | ac_status=$? | |
16546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16547 | (exit $ac_status); }; }; then | |
16548 | ac_hi=$ac_mid | |
16549 | else | |
16550 | echo "$as_me: failed program was:" >&5 | |
16551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16552 | ||
16553 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16554 | fi | |
16555 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16556 | done | |
16557 | case $ac_lo in | |
16558 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16559 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16560 | See \`config.log' for more details." >&5 | |
16561 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16562 | See \`config.log' for more details." >&2;} | |
16563 | { (exit 1); exit 1; }; } ;; | |
16564 | esac | |
16565 | else | |
16566 | if test "$cross_compiling" = yes; then | |
16567 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16568 | See \`config.log' for more details." >&5 | |
16569 | echo "$as_me: error: cannot run test program while cross compiling | |
16570 | See \`config.log' for more details." >&2;} | |
16571 | { (exit 1); exit 1; }; } | |
16572 | else | |
16573 | cat >conftest.$ac_ext <<_ACEOF | |
16574 | #line $LINENO "configure" | |
16575 | /* confdefs.h. */ | |
16576 | _ACEOF | |
16577 | cat confdefs.h >>conftest.$ac_ext | |
16578 | cat >>conftest.$ac_ext <<_ACEOF | |
16579 | /* end confdefs.h. */ | |
16580 | $ac_includes_default | |
16581 | long longval () { return (long) (sizeof (long long)); } | |
16582 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16583 | #include <stdio.h> |
e6cc62c6 VS |
16584 | #include <stdlib.h> |
16585 | int | |
16586 | main () | |
4f57cf11 | 16587 | { |
e6cc62c6 VS |
16588 | |
16589 | FILE *f = fopen ("conftest.val", "w"); | |
16590 | if (! f) | |
16591 | exit (1); | |
16592 | if (((long) (sizeof (long long))) < 0) | |
16593 | { | |
16594 | long i = longval (); | |
16595 | if (i != ((long) (sizeof (long long)))) | |
16596 | exit (1); | |
16597 | fprintf (f, "%ld\n", i); | |
16598 | } | |
16599 | else | |
16600 | { | |
16601 | unsigned long i = ulongval (); | |
16602 | if (i != ((long) (sizeof (long long)))) | |
16603 | exit (1); | |
16604 | fprintf (f, "%lu\n", i); | |
16605 | } | |
16606 | exit (ferror (f) || fclose (f) != 0); | |
16607 | ||
16608 | ; | |
16609 | return 0; | |
4f57cf11 | 16610 | } |
e6cc62c6 VS |
16611 | _ACEOF |
16612 | rm -f conftest$ac_exeext | |
16613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16614 | (eval $ac_link) 2>&5 | |
16615 | ac_status=$? | |
16616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16619 | (eval $ac_try) 2>&5 | |
16620 | ac_status=$? | |
16621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16622 | (exit $ac_status); }; }; then | |
16623 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16624 | else | |
16625 | echo "$as_me: program exited with status $ac_status" >&5 | |
16626 | echo "$as_me: failed program was:" >&5 | |
16627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16628 | ||
16629 | ( exit $ac_status ) | |
16630 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16631 | See \`config.log' for more details." >&5 | |
16632 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16633 | See \`config.log' for more details." >&2;} | |
16634 | { (exit 1); exit 1; }; } | |
16635 | fi | |
16636 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16637 | fi | |
16638 | fi | |
16639 | rm -f conftest.val | |
4f57cf11 | 16640 | else |
4f57cf11 GD |
16641 | ac_cv_sizeof_long_long=0 |
16642 | fi | |
7b4a847f | 16643 | fi |
e6cc62c6 VS |
16644 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16645 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16646 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16647 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16648 | _ACEOF |
9e691f46 | 16649 | |
8284b0c5 | 16650 | |
21d1c967 GD |
16651 | esac |
16652 | ||
e6cc62c6 VS |
16653 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16654 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16655 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16657 | else |
e6cc62c6 | 16658 | |
21d1c967 | 16659 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16660 | |
2b5f62a0 VZ |
16661 | case "${host}" in |
16662 | *-pc-msdosdjgpp ) | |
16663 | wx_cv_sizeof_wchar_t=0 | |
16664 | ;; | |
16665 | * ) | |
16666 | wx_cv_sizeof_wchar_t=4 | |
16667 | ;; | |
16668 | esac | |
e6cc62c6 VS |
16669 | |
16670 | ||
6f72b082 | 16671 | else |
e6cc62c6 VS |
16672 | cat >conftest.$ac_ext <<_ACEOF |
16673 | #line $LINENO "configure" | |
16674 | /* confdefs.h. */ | |
16675 | _ACEOF | |
16676 | cat confdefs.h >>conftest.$ac_ext | |
16677 | cat >>conftest.$ac_ext <<_ACEOF | |
16678 | /* end confdefs.h. */ | |
21d1c967 | 16679 | |
2b5f62a0 VZ |
16680 | /* DJGPP only has fake wchar_t: */ |
16681 | #ifdef __DJGPP__ | |
16682 | # error "fake wchar_t" | |
16683 | #endif | |
21d1c967 GD |
16684 | #ifdef HAVE_WCHAR_H |
16685 | # ifdef __CYGWIN__ | |
16686 | # include <stddef.h> | |
16687 | # endif | |
16688 | # include <wchar.h> | |
16689 | #endif | |
16690 | #ifdef HAVE_STDLIB_H | |
16691 | # include <stdlib.h> | |
16692 | #endif | |
16693 | #include <stdio.h> | |
16694 | int main() | |
16695 | { | |
16696 | FILE *f=fopen("conftestval", "w"); | |
16697 | if (!f) exit(1); | |
16698 | fprintf(f, "%i", sizeof(wchar_t)); | |
16699 | exit(0); | |
16700 | } | |
e6cc62c6 VS |
16701 | |
16702 | _ACEOF | |
16703 | rm -f conftest$ac_exeext | |
16704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16705 | (eval $ac_link) 2>&5 | |
16706 | ac_status=$? | |
16707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16710 | (eval $ac_try) 2>&5 | |
16711 | ac_status=$? | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); }; }; then | |
21d1c967 | 16714 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16715 | else |
e6cc62c6 VS |
16716 | echo "$as_me: program exited with status $ac_status" >&5 |
16717 | echo "$as_me: failed program was:" >&5 | |
16718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16719 | ||
16720 | ( exit $ac_status ) | |
16721 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16722 | fi |
e6cc62c6 | 16723 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16724 | fi |
6f72b082 | 16725 | |
3f345b47 | 16726 | fi |
e6cc62c6 VS |
16727 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16728 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16729 | |
e6cc62c6 | 16730 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16731 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16732 | _ACEOF |
90dd450c | 16733 | |
8284b0c5 | 16734 | |
21d1c967 GD |
16735 | # Check whether --enable-largefile or --disable-largefile was given. |
16736 | if test "${enable_largefile+set}" = set; then | |
16737 | enableval="$enable_largefile" | |
3f345b47 | 16738 | |
e6cc62c6 | 16739 | fi; |
21d1c967 GD |
16740 | if test "$enable_largefile" != no; then |
16741 | wx_largefile=no | |
e6cc62c6 VS |
16742 | |
16743 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16744 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16745 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16747 | else | |
16748 | ||
16749 | cat >conftest.$ac_ext <<_ACEOF | |
16750 | #line $LINENO "configure" | |
16751 | /* confdefs.h. */ | |
16752 | _ACEOF | |
16753 | cat confdefs.h >>conftest.$ac_ext | |
16754 | cat >>conftest.$ac_ext <<_ACEOF | |
16755 | /* end confdefs.h. */ | |
21d1c967 GD |
16756 | #define _FILE_OFFSET_BITS 64 |
16757 | #include <sys/types.h> | |
e6cc62c6 VS |
16758 | int |
16759 | main () | |
16760 | { | |
21d1c967 GD |
16761 | typedef struct { |
16762 | unsigned int field: sizeof(off_t) == 8; | |
16763 | } wxlf; | |
16764 | ||
e6cc62c6 VS |
16765 | ; |
16766 | return 0; | |
16767 | } | |
16768 | _ACEOF | |
16769 | rm -f conftest.$ac_objext | |
16770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16771 | (eval $ac_compile) 2>&5 | |
16772 | ac_status=$? | |
16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16774 | (exit $ac_status); } && | |
16775 | { ac_try='test -s conftest.$ac_objext' | |
16776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16777 | (eval $ac_try) 2>&5 | |
16778 | ac_status=$? | |
16779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16780 | (exit $ac_status); }; }; then | |
21d1c967 | 16781 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16782 | else |
e6cc62c6 VS |
16783 | echo "$as_me: failed program was:" >&5 |
16784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16785 | ||
16786 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16787 | fi |
e6cc62c6 VS |
16788 | rm -f conftest.$ac_objext conftest.$ac_ext |
16789 | ||
a0b9e27f | 16790 | |
e6cc62c6 VS |
16791 | fi |
16792 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16793 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16794 | |
16795 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16796 | wx_largefile=yes | |
e6cc62c6 | 16797 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16798 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16799 | _ACEOF |
21d1c967 GD |
16800 | |
16801 | fi | |
16802 | ||
16803 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16804 | |
16805 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16806 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16807 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16809 | else | |
16810 | ||
16811 | cat >conftest.$ac_ext <<_ACEOF | |
16812 | #line $LINENO "configure" | |
16813 | /* confdefs.h. */ | |
16814 | _ACEOF | |
16815 | cat confdefs.h >>conftest.$ac_ext | |
16816 | cat >>conftest.$ac_ext <<_ACEOF | |
16817 | /* end confdefs.h. */ | |
21d1c967 GD |
16818 | #define _LARGE_FILES 1 |
16819 | #include <sys/types.h> | |
e6cc62c6 VS |
16820 | int |
16821 | main () | |
16822 | { | |
21d1c967 GD |
16823 | typedef struct { |
16824 | unsigned int field: sizeof(off_t) == 8; | |
16825 | } wxlf; | |
16826 | ||
e6cc62c6 VS |
16827 | ; |
16828 | return 0; | |
16829 | } | |
16830 | _ACEOF | |
16831 | rm -f conftest.$ac_objext | |
16832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16833 | (eval $ac_compile) 2>&5 | |
16834 | ac_status=$? | |
16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16836 | (exit $ac_status); } && | |
16837 | { ac_try='test -s conftest.$ac_objext' | |
16838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16839 | (eval $ac_try) 2>&5 | |
16840 | ac_status=$? | |
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16842 | (exit $ac_status); }; }; then | |
21d1c967 | 16843 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16844 | else |
e6cc62c6 VS |
16845 | echo "$as_me: failed program was:" >&5 |
16846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16847 | ||
16848 | ac_cv_sys_large_files=no | |
247f5006 | 16849 | fi |
e6cc62c6 | 16850 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16851 | |
e6cc62c6 VS |
16852 | |
16853 | fi | |
16854 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16855 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16856 | |
21d1c967 GD |
16857 | if test "$ac_cv_sys_large_files" != no; then |
16858 | wx_largefile=yes | |
e6cc62c6 | 16859 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16860 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16861 | _ACEOF |
90dd450c | 16862 | |
90dd450c VZ |
16863 | fi |
16864 | ||
90dd450c | 16865 | fi |
90dd450c | 16866 | |
e6cc62c6 VS |
16867 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16868 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16869 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16870 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16871 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16872 | _ACEOF |
90dd450c | 16873 | |
90dd450c | 16874 | fi |
e6cc62c6 VS |
16875 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16876 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16877 | fi |
90dd450c | 16878 | |
8284b0c5 | 16879 | |
f02444d0 | 16880 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16881 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16882 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16883 | else |
e26c13cf | 16884 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16885 | fi |
e26c13cf | 16886 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16887 | fi |
16888 | ||
e6cc62c6 VS |
16889 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16890 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16891 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16893 | else |
21d1c967 GD |
16894 | ac_cv_c_bigendian=unknown |
16895 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16896 | cat >conftest.$ac_ext <<_ACEOF |
16897 | #line $LINENO "configure" | |
16898 | /* confdefs.h. */ | |
16899 | _ACEOF | |
16900 | cat confdefs.h >>conftest.$ac_ext | |
16901 | cat >>conftest.$ac_ext <<_ACEOF | |
16902 | /* end confdefs.h. */ | |
21d1c967 GD |
16903 | #include <sys/types.h> |
16904 | #include <sys/param.h> | |
e6cc62c6 VS |
16905 | int |
16906 | main () | |
16907 | { | |
21d1c967 GD |
16908 | |
16909 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16910 | bogus endian macros | |
16911 | #endif | |
e6cc62c6 VS |
16912 | ; |
16913 | return 0; | |
16914 | } | |
16915 | _ACEOF | |
16916 | rm -f conftest.$ac_objext | |
16917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16918 | (eval $ac_compile) 2>&5 | |
16919 | ac_status=$? | |
16920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16921 | (exit $ac_status); } && | |
16922 | { ac_try='test -s conftest.$ac_objext' | |
16923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16924 | (eval $ac_try) 2>&5 | |
16925 | ac_status=$? | |
16926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16927 | (exit $ac_status); }; }; then | |
21d1c967 | 16928 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16929 | cat >conftest.$ac_ext <<_ACEOF |
16930 | #line $LINENO "configure" | |
16931 | /* confdefs.h. */ | |
16932 | _ACEOF | |
16933 | cat confdefs.h >>conftest.$ac_ext | |
16934 | cat >>conftest.$ac_ext <<_ACEOF | |
16935 | /* end confdefs.h. */ | |
21d1c967 GD |
16936 | #include <sys/types.h> |
16937 | #include <sys/param.h> | |
e6cc62c6 VS |
16938 | int |
16939 | main () | |
16940 | { | |
21d1c967 GD |
16941 | |
16942 | #if BYTE_ORDER != BIG_ENDIAN | |
16943 | not big endian | |
16944 | #endif | |
e6cc62c6 VS |
16945 | ; |
16946 | return 0; | |
16947 | } | |
16948 | _ACEOF | |
16949 | rm -f conftest.$ac_objext | |
16950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16951 | (eval $ac_compile) 2>&5 | |
16952 | ac_status=$? | |
16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16954 | (exit $ac_status); } && | |
16955 | { ac_try='test -s conftest.$ac_objext' | |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; }; then | |
21d1c967 | 16961 | ac_cv_c_bigendian=yes |
3f345b47 | 16962 | else |
e6cc62c6 VS |
16963 | echo "$as_me: failed program was:" >&5 |
16964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16965 | ||
16966 | ac_cv_c_bigendian=no | |
3f345b47 | 16967 | fi |
e6cc62c6 | 16968 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16969 | else |
e6cc62c6 VS |
16970 | echo "$as_me: failed program was:" >&5 |
16971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16972 | ||
3f345b47 | 16973 | fi |
e6cc62c6 | 16974 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16975 | if test $ac_cv_c_bigendian = unknown; then |
16976 | if test "$cross_compiling" = yes; then | |
16977 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16978 | else |
e6cc62c6 VS |
16979 | cat >conftest.$ac_ext <<_ACEOF |
16980 | #line $LINENO "configure" | |
16981 | /* confdefs.h. */ | |
16982 | _ACEOF | |
16983 | cat confdefs.h >>conftest.$ac_ext | |
16984 | cat >>conftest.$ac_ext <<_ACEOF | |
16985 | /* end confdefs.h. */ | |
21d1c967 GD |
16986 | main () { |
16987 | /* Are we little or big endian? From Harbison&Steele. */ | |
16988 | union | |
16989 | { | |
16990 | long l; | |
16991 | char c[sizeof (long)]; | |
16992 | } u; | |
16993 | u.l = 1; | |
16994 | exit (u.c[sizeof (long) - 1] == 1); | |
16995 | } | |
e6cc62c6 VS |
16996 | _ACEOF |
16997 | rm -f conftest$ac_exeext | |
16998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16999 | (eval $ac_link) 2>&5 | |
17000 | ac_status=$? | |
17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17004 | (eval $ac_try) 2>&5 | |
17005 | ac_status=$? | |
17006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17007 | (exit $ac_status); }; }; then | |
21d1c967 | 17008 | ac_cv_c_bigendian=no |
3f345b47 | 17009 | else |
e6cc62c6 VS |
17010 | echo "$as_me: program exited with status $ac_status" >&5 |
17011 | echo "$as_me: failed program was:" >&5 | |
17012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17013 | ||
17014 | ( exit $ac_status ) | |
17015 | ac_cv_c_bigendian=yes | |
247f5006 | 17016 | fi |
e6cc62c6 | 17017 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17018 | fi |
3f345b47 | 17019 | fi |
8168de4c | 17020 | fi |
e6cc62c6 VS |
17021 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17022 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17023 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17024 | { 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 |
17025 | 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 |
17026 | fi |
17027 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17028 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17029 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17030 | _ACEOF |
247f5006 VZ |
17031 | |
17032 | fi | |
17033 | ||
17034 | ||
e6cc62c6 VS |
17035 | |
17036 | ac_ext=cc | |
17037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17041 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17042 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17043 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17044 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17046 | else | |
17047 | # Double quotes because CXXCPP needs to be expanded | |
17048 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17049 | do | |
17050 | ac_preproc_ok=false | |
17051 | for ac_cxx_preproc_warn_flag in '' yes | |
17052 | do | |
17053 | # Use a header file that comes with gcc, so configuring glibc | |
17054 | # with a fresh cross-compiler works. | |
17055 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17056 | # <limits.h> exists even on freestanding compilers. | |
17057 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17058 | # not just through cpp. "Syntax error" is here to catch this case. | |
17059 | cat >conftest.$ac_ext <<_ACEOF | |
17060 | #line $LINENO "configure" | |
17061 | /* confdefs.h. */ | |
17062 | _ACEOF | |
17063 | cat confdefs.h >>conftest.$ac_ext | |
17064 | cat >>conftest.$ac_ext <<_ACEOF | |
17065 | /* end confdefs.h. */ | |
17066 | #ifdef __STDC__ | |
17067 | # include <limits.h> | |
17068 | #else | |
17069 | # include <assert.h> | |
17070 | #endif | |
17071 | Syntax error | |
17072 | _ACEOF | |
17073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17075 | ac_status=$? | |
17076 | grep -v '^ *+' conftest.er1 >conftest.err | |
17077 | rm -f conftest.er1 | |
17078 | cat conftest.err >&5 | |
17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17080 | (exit $ac_status); } >/dev/null; then | |
17081 | if test -s conftest.err; then | |
17082 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17083 | else | |
17084 | ac_cpp_err= | |
17085 | fi | |
247f5006 | 17086 | else |
e6cc62c6 VS |
17087 | ac_cpp_err=yes |
17088 | fi | |
17089 | if test -z "$ac_cpp_err"; then | |
17090 | : | |
17091 | else | |
17092 | echo "$as_me: failed program was:" >&5 | |
17093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17094 | ||
17095 | # Broken: fails on valid input. | |
17096 | continue | |
17097 | fi | |
17098 | rm -f conftest.err conftest.$ac_ext | |
17099 | ||
17100 | # OK, works on sane cases. Now check whether non-existent headers | |
17101 | # can be detected and how. | |
17102 | cat >conftest.$ac_ext <<_ACEOF | |
17103 | #line $LINENO "configure" | |
17104 | /* confdefs.h. */ | |
17105 | _ACEOF | |
17106 | cat confdefs.h >>conftest.$ac_ext | |
17107 | cat >>conftest.$ac_ext <<_ACEOF | |
17108 | /* end confdefs.h. */ | |
17109 | #include <ac_nonexistent.h> | |
17110 | _ACEOF | |
17111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17113 | ac_status=$? | |
17114 | grep -v '^ *+' conftest.er1 >conftest.err | |
17115 | rm -f conftest.er1 | |
17116 | cat conftest.err >&5 | |
17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17118 | (exit $ac_status); } >/dev/null; then | |
17119 | if test -s conftest.err; then | |
17120 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17121 | else | |
17122 | ac_cpp_err= | |
17123 | fi | |
17124 | else | |
17125 | ac_cpp_err=yes | |
17126 | fi | |
17127 | if test -z "$ac_cpp_err"; then | |
17128 | # Broken: success on invalid input. | |
17129 | continue | |
17130 | else | |
17131 | echo "$as_me: failed program was:" >&5 | |
17132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17133 | ||
17134 | # Passes both tests. | |
17135 | ac_preproc_ok=: | |
17136 | break | |
17137 | fi | |
17138 | rm -f conftest.err conftest.$ac_ext | |
17139 | ||
17140 | done | |
17141 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17142 | rm -f conftest.err conftest.$ac_ext | |
17143 | if $ac_preproc_ok; then | |
17144 | break | |
17145 | fi | |
17146 | ||
17147 | done | |
17148 | ac_cv_prog_CXXCPP=$CXXCPP | |
17149 | ||
17150 | fi | |
17151 | CXXCPP=$ac_cv_prog_CXXCPP | |
17152 | else | |
17153 | ac_cv_prog_CXXCPP=$CXXCPP | |
17154 | fi | |
17155 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17156 | echo "${ECHO_T}$CXXCPP" >&6 | |
17157 | ac_preproc_ok=false | |
17158 | for ac_cxx_preproc_warn_flag in '' yes | |
17159 | do | |
17160 | # Use a header file that comes with gcc, so configuring glibc | |
17161 | # with a fresh cross-compiler works. | |
17162 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17163 | # <limits.h> exists even on freestanding compilers. | |
17164 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17165 | # not just through cpp. "Syntax error" is here to catch this case. | |
17166 | cat >conftest.$ac_ext <<_ACEOF | |
17167 | #line $LINENO "configure" | |
17168 | /* confdefs.h. */ | |
17169 | _ACEOF | |
17170 | cat confdefs.h >>conftest.$ac_ext | |
17171 | cat >>conftest.$ac_ext <<_ACEOF | |
17172 | /* end confdefs.h. */ | |
17173 | #ifdef __STDC__ | |
17174 | # include <limits.h> | |
17175 | #else | |
17176 | # include <assert.h> | |
17177 | #endif | |
17178 | Syntax error | |
17179 | _ACEOF | |
17180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17182 | ac_status=$? | |
17183 | grep -v '^ *+' conftest.er1 >conftest.err | |
17184 | rm -f conftest.er1 | |
17185 | cat conftest.err >&5 | |
17186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17187 | (exit $ac_status); } >/dev/null; then | |
17188 | if test -s conftest.err; then | |
17189 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17190 | else | |
17191 | ac_cpp_err= | |
17192 | fi | |
17193 | else | |
17194 | ac_cpp_err=yes | |
17195 | fi | |
17196 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17197 | : |
698dcdb6 | 17198 | else |
e6cc62c6 VS |
17199 | echo "$as_me: failed program was:" >&5 |
17200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17201 | ||
17202 | # Broken: fails on valid input. | |
17203 | continue | |
17204 | fi | |
17205 | rm -f conftest.err conftest.$ac_ext | |
17206 | ||
17207 | # OK, works on sane cases. Now check whether non-existent headers | |
17208 | # can be detected and how. | |
17209 | cat >conftest.$ac_ext <<_ACEOF | |
17210 | #line $LINENO "configure" | |
17211 | /* confdefs.h. */ | |
17212 | _ACEOF | |
17213 | cat confdefs.h >>conftest.$ac_ext | |
17214 | cat >>conftest.$ac_ext <<_ACEOF | |
17215 | /* end confdefs.h. */ | |
17216 | #include <ac_nonexistent.h> | |
17217 | _ACEOF | |
17218 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17219 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17220 | ac_status=$? | |
17221 | grep -v '^ *+' conftest.er1 >conftest.err | |
17222 | rm -f conftest.er1 | |
17223 | cat conftest.err >&5 | |
17224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17225 | (exit $ac_status); } >/dev/null; then | |
17226 | if test -s conftest.err; then | |
17227 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17228 | else | |
17229 | ac_cpp_err= | |
17230 | fi | |
17231 | else | |
17232 | ac_cpp_err=yes | |
247f5006 | 17233 | fi |
e6cc62c6 VS |
17234 | if test -z "$ac_cpp_err"; then |
17235 | # Broken: success on invalid input. | |
17236 | continue | |
17237 | else | |
17238 | echo "$as_me: failed program was:" >&5 | |
17239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17240 | ||
17241 | # Passes both tests. | |
17242 | ac_preproc_ok=: | |
17243 | break | |
328a083c | 17244 | fi |
e6cc62c6 VS |
17245 | rm -f conftest.err conftest.$ac_ext |
17246 | ||
17247 | done | |
17248 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17249 | rm -f conftest.err conftest.$ac_ext | |
17250 | if $ac_preproc_ok; then | |
17251 | : | |
17252 | else | |
17253 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17254 | See \`config.log' for more details." >&5 | |
17255 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17256 | See \`config.log' for more details." >&2;} | |
17257 | { (exit 1); exit 1; }; } | |
90dd450c | 17258 | fi |
e6cc62c6 VS |
17259 | |
17260 | ac_ext=cc | |
17261 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17265 | ||
1e6feb95 | 17266 | |
1725144d | 17267 | |
21d1c967 | 17268 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17269 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17270 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17271 | _ACEOF |
ab9b9eab | 17272 | |
21d1c967 | 17273 | else |
e6cc62c6 VS |
17274 | |
17275 | ||
17276 | ac_ext=cc | |
5c6fa7d2 | 17277 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17278 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17279 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17280 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17281 | ||
52127426 | 17282 | |
247f5006 | 17283 | |
e6cc62c6 | 17284 | for ac_header in iostream |
21d1c967 | 17285 | do |
e6cc62c6 VS |
17286 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17288 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17289 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17290 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17292 | fi | |
17293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17295 | else | |
17296 | # Is the header compilable? | |
17297 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17298 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17299 | cat >conftest.$ac_ext <<_ACEOF | |
17300 | #line $LINENO "configure" | |
17301 | /* confdefs.h. */ | |
17302 | _ACEOF | |
17303 | cat confdefs.h >>conftest.$ac_ext | |
17304 | cat >>conftest.$ac_ext <<_ACEOF | |
17305 | /* end confdefs.h. */ | |
17306 | $ac_includes_default | |
17307 | #include <$ac_header> | |
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 | ac_header_compiler=yes | |
17322 | else | |
17323 | echo "$as_me: failed program was:" >&5 | |
17324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17325 | ||
17326 | ac_header_compiler=no | |
17327 | fi | |
17328 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17329 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17330 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17331 | ||
17332 | # Is the header present? | |
17333 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17334 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17335 | cat >conftest.$ac_ext <<_ACEOF | |
17336 | #line $LINENO "configure" | |
17337 | /* confdefs.h. */ | |
17338 | _ACEOF | |
17339 | cat confdefs.h >>conftest.$ac_ext | |
17340 | cat >>conftest.$ac_ext <<_ACEOF | |
17341 | /* end confdefs.h. */ | |
17342 | #include <$ac_header> | |
17343 | _ACEOF | |
17344 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17345 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17346 | ac_status=$? | |
17347 | grep -v '^ *+' conftest.er1 >conftest.err | |
17348 | rm -f conftest.er1 | |
17349 | cat conftest.err >&5 | |
17350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17351 | (exit $ac_status); } >/dev/null; then | |
17352 | if test -s conftest.err; then | |
17353 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17354 | else | |
17355 | ac_cpp_err= | |
17356 | fi | |
17357 | else | |
17358 | ac_cpp_err=yes | |
17359 | fi | |
17360 | if test -z "$ac_cpp_err"; then | |
17361 | ac_header_preproc=yes | |
17362 | else | |
17363 | echo "$as_me: failed program was:" >&5 | |
17364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17365 | ||
17366 | ac_header_preproc=no | |
17367 | fi | |
17368 | rm -f conftest.err conftest.$ac_ext | |
17369 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17370 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17371 | ||
17372 | # So? What about this header? | |
17373 | case $ac_header_compiler:$ac_header_preproc in | |
17374 | yes:no ) | |
17375 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17376 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17377 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17378 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17379 | ( | |
17380 | cat <<\_ASBOX | |
17381 | ## ------------------------------------ ## | |
17382 | ## Report this to bug-autoconf@gnu.org. ## | |
17383 | ## ------------------------------------ ## | |
17384 | _ASBOX | |
17385 | ) | | |
17386 | sed "s/^/$as_me: WARNING: /" >&2 | |
17387 | ;; | |
17388 | no:yes ) | |
17389 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17390 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17391 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17392 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17394 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17395 | ( | |
17396 | cat <<\_ASBOX | |
17397 | ## ------------------------------------ ## | |
17398 | ## Report this to bug-autoconf@gnu.org. ## | |
17399 | ## ------------------------------------ ## | |
17400 | _ASBOX | |
17401 | ) | | |
17402 | sed "s/^/$as_me: WARNING: /" >&2 | |
17403 | ;; | |
17404 | esac | |
17405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17409 | else | |
17410 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17411 | fi |
e6cc62c6 VS |
17412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17413 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17414 | ||
90dd450c | 17415 | fi |
e6cc62c6 VS |
17416 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17417 | cat >>confdefs.h <<_ACEOF | |
17418 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17419 | _ACEOF | |
17420 | ||
90dd450c | 17421 | fi |
e6cc62c6 | 17422 | |
21d1c967 | 17423 | done |
10f2d63a | 17424 | |
8284b0c5 | 17425 | |
21d1c967 GD |
17426 | if test "$ac_cv_header_iostream" = "yes" ; then |
17427 | : | |
17428 | else | |
e6cc62c6 | 17429 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17430 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17431 | _ACEOF |
788deba1 | 17432 | |
90dd450c | 17433 | fi |
ab9b9eab | 17434 | |
21d1c967 | 17435 | ac_ext=c |
21d1c967 | 17436 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17440 | |
21d1c967 | 17441 | fi |
ab9b9eab | 17442 | |
52127426 | 17443 | |
8284b0c5 | 17444 | |
e6cc62c6 VS |
17445 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17446 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17447 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17449 | else |
e6cc62c6 VS |
17450 | |
17451 | ||
17452 | ||
17453 | ac_ext=cc | |
5c6fa7d2 | 17454 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17455 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17456 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17457 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17458 | |
8284b0c5 | 17459 | |
e6cc62c6 VS |
17460 | cat >conftest.$ac_ext <<_ACEOF |
17461 | #line $LINENO "configure" | |
17462 | /* confdefs.h. */ | |
17463 | _ACEOF | |
17464 | cat confdefs.h >>conftest.$ac_ext | |
17465 | cat >>conftest.$ac_ext <<_ACEOF | |
17466 | /* end confdefs.h. */ | |
21d1c967 | 17467 | |
e6cc62c6 VS |
17468 | |
17469 | int | |
17470 | main () | |
17471 | { | |
21d1c967 GD |
17472 | |
17473 | bool b = true; | |
17474 | ||
17475 | return 0; | |
e6cc62c6 VS |
17476 | |
17477 | ; | |
17478 | return 0; | |
17479 | } | |
17480 | _ACEOF | |
17481 | rm -f conftest.$ac_objext | |
17482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17483 | (eval $ac_compile) 2>&5 | |
17484 | ac_status=$? | |
17485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17486 | (exit $ac_status); } && | |
17487 | { ac_try='test -s conftest.$ac_objext' | |
17488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17489 | (eval $ac_try) 2>&5 | |
17490 | ac_status=$? | |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17492 | (exit $ac_status); }; }; then | |
17493 | ||
21d1c967 | 17494 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17495 | |
698dcdb6 | 17496 | else |
e6cc62c6 VS |
17497 | echo "$as_me: failed program was:" >&5 |
17498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17499 | ||
17500 | ||
21d1c967 | 17501 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17502 | |
17503 | ||
698dcdb6 | 17504 | fi |
e6cc62c6 | 17505 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17506 | |
17507 | ac_ext=c | |
21d1c967 | 17508 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17512 | |
a0b9e27f | 17513 | |
e6cc62c6 VS |
17514 | fi |
17515 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17516 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17517 | |
17518 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17519 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17520 | #define HAVE_BOOL 1 |
e6cc62c6 | 17521 | _ACEOF |
ab9b9eab | 17522 | |
21d1c967 GD |
17523 | fi |
17524 | ||
52127426 | 17525 | |
8284b0c5 | 17526 | |
e6cc62c6 VS |
17527 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17528 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17529 | if test "${wx_cv_explicit+set}" = set; then | |
17530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17531 | else |
e6cc62c6 VS |
17532 | |
17533 | ||
17534 | ||
17535 | ac_ext=cc | |
5c6fa7d2 | 17536 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17537 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17538 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17539 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17540 | |
8284b0c5 | 17541 | |
e6cc62c6 VS |
17542 | cat >conftest.$ac_ext <<_ACEOF |
17543 | #line $LINENO "configure" | |
17544 | /* confdefs.h. */ | |
17545 | _ACEOF | |
17546 | cat confdefs.h >>conftest.$ac_ext | |
17547 | cat >>conftest.$ac_ext <<_ACEOF | |
17548 | /* end confdefs.h. */ | |
986ecc86 VZ |
17549 | |
17550 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17551 | |
17552 | int | |
17553 | main () | |
17554 | { | |
986ecc86 VZ |
17555 | |
17556 | return 0; | |
e6cc62c6 VS |
17557 | |
17558 | ; | |
17559 | return 0; | |
17560 | } | |
17561 | _ACEOF | |
17562 | rm -f conftest.$ac_objext | |
17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17564 | (eval $ac_compile) 2>&5 | |
17565 | ac_status=$? | |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); } && | |
17568 | { ac_try='test -s conftest.$ac_objext' | |
17569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17570 | (eval $ac_try) 2>&5 | |
17571 | ac_status=$? | |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17573 | (exit $ac_status); }; }; then | |
17574 | ||
17575 | cat >conftest.$ac_ext <<_ACEOF | |
17576 | #line $LINENO "configure" | |
17577 | /* confdefs.h. */ | |
17578 | _ACEOF | |
17579 | cat confdefs.h >>conftest.$ac_ext | |
17580 | cat >>conftest.$ac_ext <<_ACEOF | |
17581 | /* end confdefs.h. */ | |
986ecc86 VZ |
17582 | |
17583 | class Foo { public: explicit Foo(int) {} }; | |
17584 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17585 | |
17586 | int | |
17587 | main () | |
17588 | { | |
986ecc86 VZ |
17589 | |
17590 | TakeFoo(17); | |
17591 | return 0; | |
e6cc62c6 VS |
17592 | |
17593 | ; | |
17594 | return 0; | |
17595 | } | |
17596 | _ACEOF | |
17597 | rm -f conftest.$ac_objext | |
17598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17599 | (eval $ac_compile) 2>&5 | |
17600 | ac_status=$? | |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17602 | (exit $ac_status); } && | |
17603 | { ac_try='test -s conftest.$ac_objext' | |
17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17605 | (eval $ac_try) 2>&5 | |
17606 | ac_status=$? | |
17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17609 | wx_cv_explicit=no |
17610 | else | |
e6cc62c6 VS |
17611 | echo "$as_me: failed program was:" >&5 |
17612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17613 | ||
17614 | wx_cv_explicit=yes | |
17615 | ||
986ecc86 | 17616 | fi |
e6cc62c6 VS |
17617 | rm -f conftest.$ac_objext conftest.$ac_ext |
17618 | ||
986ecc86 | 17619 | else |
e6cc62c6 VS |
17620 | echo "$as_me: failed program was:" >&5 |
17621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17622 | ||
17623 | wx_cv_explicit=no | |
17624 | ||
986ecc86 | 17625 | fi |
e6cc62c6 | 17626 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17627 | |
17628 | ac_ext=c | |
986ecc86 | 17629 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17633 | |
a0b9e27f | 17634 | |
e6cc62c6 VS |
17635 | fi |
17636 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17637 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17638 | |
17639 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17640 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17641 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17642 | _ACEOF |
986ecc86 VZ |
17643 | |
17644 | fi | |
17645 | ||
8284b0c5 | 17646 | |
e6cc62c6 VS |
17647 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17648 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17649 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17651 | else |
521196a2 | 17652 | |
521196a2 | 17653 | |
e6cc62c6 VS |
17654 | ac_ext=cc |
17655 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17656 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17657 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17658 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17659 | ||
17660 | cat >conftest.$ac_ext <<_ACEOF | |
17661 | #line $LINENO "configure" | |
17662 | /* confdefs.h. */ | |
17663 | _ACEOF | |
17664 | cat confdefs.h >>conftest.$ac_ext | |
17665 | cat >>conftest.$ac_ext <<_ACEOF | |
17666 | /* end confdefs.h. */ | |
17667 | ||
17668 | int | |
17669 | main () | |
17670 | { | |
521196a2 | 17671 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17672 | ; |
17673 | return 0; | |
17674 | } | |
17675 | _ACEOF | |
17676 | rm -f conftest.$ac_objext | |
17677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17678 | (eval $ac_compile) 2>&5 | |
17679 | ac_status=$? | |
17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 | (exit $ac_status); } && | |
17682 | { ac_try='test -s conftest.$ac_objext' | |
17683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17684 | (eval $ac_try) 2>&5 | |
17685 | ac_status=$? | |
17686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17687 | (exit $ac_status); }; }; then | |
521196a2 MB |
17688 | ac_cv_cxx_const_cast=yes |
17689 | else | |
e6cc62c6 VS |
17690 | echo "$as_me: failed program was:" >&5 |
17691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17692 | ||
17693 | ac_cv_cxx_const_cast=no | |
521196a2 | 17694 | fi |
e6cc62c6 | 17695 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17696 | ac_ext=c |
521196a2 | 17697 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17701 | |
17702 | ||
17703 | fi | |
e6cc62c6 VS |
17704 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17705 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17706 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17707 | |
17708 | cat >>confdefs.h <<\_ACEOF | |
17709 | #define HAVE_CONST_CAST | |
17710 | _ACEOF | |
521196a2 MB |
17711 | |
17712 | fi | |
17713 | ||
17714 | ||
e87b7833 MB |
17715 | if test "$wxUSE_STL" = "yes"; then |
17716 | ac_ext=cc | |
17717 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17718 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17719 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17720 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17721 | ||
17722 | ||
17723 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17724 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17725 | cat >conftest.$ac_ext <<_ACEOF | |
17726 | #line $LINENO "configure" | |
17727 | /* confdefs.h. */ | |
17728 | _ACEOF | |
17729 | cat confdefs.h >>conftest.$ac_ext | |
17730 | cat >>conftest.$ac_ext <<_ACEOF | |
17731 | /* end confdefs.h. */ | |
17732 | #include <string> | |
17733 | #include <functional> | |
17734 | #include <algorithm> | |
17735 | #include <vector> | |
17736 | #include <list> | |
17737 | int | |
17738 | main () | |
17739 | { | |
17740 | std::vector<int> moo; | |
17741 | std::list<int> foo; | |
17742 | std::vector<int>::iterator it = | |
17743 | std::find_if(moo.begin(), moo.end(), | |
17744 | std::bind2nd(std::less<int>(), 3)); | |
17745 | ; | |
17746 | return 0; | |
17747 | } | |
17748 | _ACEOF | |
17749 | rm -f conftest.$ac_objext | |
17750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17751 | (eval $ac_compile) 2>&5 | |
17752 | ac_status=$? | |
17753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17754 | (exit $ac_status); } && | |
17755 | { ac_try='test -s conftest.$ac_objext' | |
17756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17757 | (eval $ac_try) 2>&5 | |
17758 | ac_status=$? | |
17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17760 | (exit $ac_status); }; }; then | |
17761 | echo "$as_me:$LINENO: result: yes" >&5 | |
17762 | echo "${ECHO_T}yes" >&6 | |
17763 | else | |
17764 | echo "$as_me: failed program was:" >&5 | |
17765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17766 | ||
17767 | echo "$as_me:$LINENO: result: no" >&5 | |
17768 | echo "${ECHO_T}no" >&6 | |
17769 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17770 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17771 | { (exit 1); exit 1; }; } | |
17772 | fi | |
17773 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17774 | ||
17775 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17776 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17777 | cat >conftest.$ac_ext <<_ACEOF | |
17778 | #line $LINENO "configure" | |
17779 | /* confdefs.h. */ | |
17780 | _ACEOF | |
17781 | cat confdefs.h >>conftest.$ac_ext | |
17782 | cat >>conftest.$ac_ext <<_ACEOF | |
17783 | /* end confdefs.h. */ | |
17784 | #include <string> | |
17785 | int | |
17786 | main () | |
17787 | { | |
17788 | std::wstring foo; | |
17789 | ; | |
17790 | return 0; | |
17791 | } | |
17792 | _ACEOF | |
17793 | rm -f conftest.$ac_objext | |
17794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17795 | (eval $ac_compile) 2>&5 | |
17796 | ac_status=$? | |
17797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17798 | (exit $ac_status); } && | |
17799 | { ac_try='test -s conftest.$ac_objext' | |
17800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17801 | (eval $ac_try) 2>&5 | |
17802 | ac_status=$? | |
17803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17804 | (exit $ac_status); }; }; then | |
17805 | echo "$as_me:$LINENO: result: yes" >&5 | |
17806 | echo "${ECHO_T}yes" >&6 | |
17807 | cat >>confdefs.h <<\_ACEOF | |
17808 | #define HAVE_STD_WSTRING 1 | |
17809 | _ACEOF | |
17810 | ||
17811 | else | |
17812 | echo "$as_me: failed program was:" >&5 | |
17813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17814 | ||
17815 | echo "$as_me:$LINENO: result: no" >&5 | |
17816 | echo "${ECHO_T}no" >&6 | |
17817 | fi | |
17818 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17819 | ||
17820 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17821 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17822 | cat >conftest.$ac_ext <<_ACEOF | |
17823 | #line $LINENO "configure" | |
17824 | /* confdefs.h. */ | |
17825 | _ACEOF | |
17826 | cat confdefs.h >>conftest.$ac_ext | |
17827 | cat >>conftest.$ac_ext <<_ACEOF | |
17828 | /* end confdefs.h. */ | |
17829 | #include <string> | |
17830 | int | |
17831 | main () | |
17832 | { | |
17833 | std::string foo, bar; | |
17834 | foo.compare(bar); | |
17835 | foo.compare(1, 1, bar); | |
17836 | foo.compare(1, 1, bar, 1, 1); | |
17837 | foo.compare(""); | |
17838 | foo.compare(1, 1, ""); | |
17839 | foo.compare(1, 1, "", 2); | |
17840 | ; | |
17841 | return 0; | |
17842 | } | |
17843 | _ACEOF | |
17844 | rm -f conftest.$ac_objext | |
17845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17846 | (eval $ac_compile) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); } && | |
17850 | { ac_try='test -s conftest.$ac_objext' | |
17851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17852 | (eval $ac_try) 2>&5 | |
17853 | ac_status=$? | |
17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17855 | (exit $ac_status); }; }; then | |
17856 | echo "$as_me:$LINENO: result: yes" >&5 | |
17857 | echo "${ECHO_T}yes" >&6 | |
17858 | cat >>confdefs.h <<\_ACEOF | |
17859 | #define HAVE_STD_STRING_COMPARE 1 | |
17860 | _ACEOF | |
17861 | ||
17862 | else | |
17863 | echo "$as_me: failed program was:" >&5 | |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17865 | ||
17866 | echo "$as_me:$LINENO: result: no" >&5 | |
17867 | echo "${ECHO_T}no" >&6 | |
17868 | fi | |
17869 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17870 | ||
17871 | ac_ext=c | |
17872 | ac_cpp='$CPP $CPPFLAGS' | |
17873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17876 | ||
17877 | fi | |
17878 | ||
8284b0c5 | 17879 | |
21d1c967 GD |
17880 | SEARCH_INCLUDE="\ |
17881 | /usr/local/include \ | |
17882 | \ | |
17883 | /usr/Motif-1.2/include \ | |
17884 | /usr/Motif-2.1/include \ | |
17885 | \ | |
17886 | /usr/include/Motif1.2 \ | |
17887 | /opt/xpm/include/X11 \ | |
17888 | /opt/GBxpm/include/ \ | |
17889 | /opt/GBxpm/X11/include/ \ | |
17890 | \ | |
17891 | /usr/Motif1.2/include \ | |
17892 | /usr/dt/include \ | |
17893 | /usr/openwin/include \ | |
17894 | \ | |
17895 | /usr/include/Xm \ | |
17896 | \ | |
17897 | /usr/X11R6/include \ | |
17898 | /usr/X11R6.4/include \ | |
17899 | /usr/X11R5/include \ | |
17900 | /usr/X11R4/include \ | |
17901 | \ | |
17902 | /usr/include/X11R6 \ | |
17903 | /usr/include/X11R5 \ | |
17904 | /usr/include/X11R4 \ | |
17905 | \ | |
17906 | /usr/local/X11R6/include \ | |
17907 | /usr/local/X11R5/include \ | |
17908 | /usr/local/X11R4/include \ | |
17909 | \ | |
17910 | /usr/local/include/X11R6 \ | |
17911 | /usr/local/include/X11R5 \ | |
17912 | /usr/local/include/X11R4 \ | |
17913 | \ | |
17914 | /usr/X11/include \ | |
17915 | /usr/include/X11 \ | |
17916 | /usr/local/X11/include \ | |
17917 | /usr/local/include/X11 \ | |
17918 | \ | |
17919 | /usr/X386/include \ | |
17920 | /usr/x386/include \ | |
17921 | /usr/XFree86/include/X11 \ | |
17922 | \ | |
17923 | X:/XFree86/include \ | |
17924 | X:/XFree86/include/X11 \ | |
17925 | \ | |
17926 | /usr/include/gtk \ | |
17927 | /usr/local/include/gtk \ | |
17928 | /usr/include/glib \ | |
17929 | /usr/local/include/glib \ | |
17930 | \ | |
17931 | /usr/include/qt \ | |
17932 | /usr/local/include/qt \ | |
17933 | \ | |
17934 | /usr/include/windows \ | |
17935 | /usr/include/wine \ | |
17936 | /usr/local/include/wine \ | |
17937 | \ | |
17938 | /usr/unsupported/include \ | |
17939 | /usr/athena/include \ | |
17940 | /usr/local/x11r5/include \ | |
17941 | /usr/lpp/Xamples/include \ | |
17942 | \ | |
2b5f62a0 | 17943 | /usr/openwin/share/include" |
21d1c967 GD |
17944 | |
17945 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17946 | ||
8284b0c5 | 17947 | |
e6cc62c6 | 17948 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17949 | # This file is a shell script that caches the results of configure |
17950 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17951 | # scripts and configure runs, see configure's option --config-cache. |
17952 | # It is not useful on other systems. If it contains results you don't | |
17953 | # want to keep, you may remove or edit it. | |
21d1c967 | 17954 | # |
e6cc62c6 VS |
17955 | # config.status only pays attention to the cache file if you give it |
17956 | # the --recheck option to rerun configure. | |
21d1c967 | 17957 | # |
e6cc62c6 VS |
17958 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17959 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17960 | # following values. | |
17961 | ||
17962 | _ACEOF | |
17963 | ||
21d1c967 GD |
17964 | # The following way of writing the cache mishandles newlines in values, |
17965 | # but we know of no workaround that is simple, portable, and efficient. | |
17966 | # So, don't put newlines in cache variables' values. | |
17967 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17968 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17969 | { |
17970 | (set) 2>&1 | | |
17971 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17972 | *ac_space=\ *) | |
17973 | # `set' does not quote correctly, so add quotes (double-quote | |
17974 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17975 | sed -n \ | |
17976 | "s/'/'\\\\''/g; | |
17977 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17978 | ;; | |
17979 | *) | |
17980 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17981 | sed -n \ | |
17982 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17983 | ;; | |
17984 | esac; | |
17985 | } | | |
17986 | sed ' | |
17987 | t clear | |
17988 | : clear | |
17989 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17990 | t end | |
17991 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17992 | : end' >>confcache | |
17993 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17994 | if test -w $cache_file; then |
e6cc62c6 VS |
17995 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17996 | cat confcache >$cache_file | |
21d1c967 GD |
17997 | else |
17998 | echo "not updating unwritable cache $cache_file" | |
17999 | fi | |
ab9b9eab | 18000 | fi |
21d1c967 | 18001 | rm -f confcache |
ab9b9eab | 18002 | |
fe0895cf | 18003 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18004 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18005 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18006 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18008 | else | |
18009 | ||
18010 | cat >conftest.$ac_ext <<_ACEOF | |
18011 | #line $LINENO "configure" | |
18012 | /* confdefs.h. */ | |
18013 | _ACEOF | |
18014 | cat confdefs.h >>conftest.$ac_ext | |
18015 | cat >>conftest.$ac_ext <<_ACEOF | |
18016 | /* end confdefs.h. */ | |
21d1c967 | 18017 | #include <features.h> |
e6cc62c6 VS |
18018 | int |
18019 | main () | |
18020 | { | |
ab9b9eab | 18021 | |
21d1c967 GD |
18022 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18023 | #error not glibc2.1 | |
18024 | #endif | |
e6cc62c6 VS |
18025 | |
18026 | ; | |
18027 | return 0; | |
18028 | } | |
18029 | _ACEOF | |
18030 | rm -f conftest.$ac_objext | |
18031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18032 | (eval $ac_compile) 2>&5 | |
18033 | ac_status=$? | |
18034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18035 | (exit $ac_status); } && | |
18036 | { ac_try='test -s conftest.$ac_objext' | |
18037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18038 | (eval $ac_try) 2>&5 | |
18039 | ac_status=$? | |
18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18041 | (exit $ac_status); }; }; then | |
18042 | ||
21d1c967 | 18043 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18044 | |
698dcdb6 | 18045 | else |
e6cc62c6 VS |
18046 | echo "$as_me: failed program was:" >&5 |
18047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18048 | ||
18049 | ||
21d1c967 | 18050 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18051 | |
18052 | ||
247f5006 | 18053 | fi |
e6cc62c6 | 18054 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18055 | |
e6cc62c6 VS |
18056 | fi |
18057 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18058 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18059 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18060 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18061 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18062 | _ACEOF |
1e487827 | 18063 | |
90dd450c | 18064 | fi |
ab9b9eab VZ |
18065 | fi |
18066 | ||
5c0a20c3 VZ |
18067 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18068 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18069 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18070 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18071 | _ACEOF |
5c0a20c3 VZ |
18072 | |
18073 | fi | |
18074 | fi | |
18075 | ||
8284b0c5 MB |
18076 | |
18077 | ||
21d1c967 GD |
18078 | REGEX_INCLUDE= |
18079 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 18080 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18081 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18082 | _ACEOF |
698dcdb6 | 18083 | |
8284b0c5 | 18084 | |
21d1c967 | 18085 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18086 | if test "${ac_cv_header_regex_h+set}" = set; then |
18087 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18088 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18089 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18091 | fi | |
18092 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18093 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18094 | else | |
18095 | # Is the header compilable? | |
18096 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18097 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18098 | cat >conftest.$ac_ext <<_ACEOF | |
18099 | #line $LINENO "configure" | |
18100 | /* confdefs.h. */ | |
18101 | _ACEOF | |
18102 | cat confdefs.h >>conftest.$ac_ext | |
18103 | cat >>conftest.$ac_ext <<_ACEOF | |
18104 | /* end confdefs.h. */ | |
18105 | $ac_includes_default | |
247f5006 | 18106 | #include <regex.h> |
e6cc62c6 VS |
18107 | _ACEOF |
18108 | rm -f conftest.$ac_objext | |
18109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18110 | (eval $ac_compile) 2>&5 | |
18111 | ac_status=$? | |
18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18113 | (exit $ac_status); } && | |
18114 | { ac_try='test -s conftest.$ac_objext' | |
18115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18116 | (eval $ac_try) 2>&5 | |
18117 | ac_status=$? | |
18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18119 | (exit $ac_status); }; }; then | |
18120 | ac_header_compiler=yes | |
18121 | else | |
18122 | echo "$as_me: failed program was:" >&5 | |
18123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18124 | ||
18125 | ac_header_compiler=no | |
18126 | fi | |
18127 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18128 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18129 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18130 | ||
18131 | # Is the header present? | |
18132 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18133 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18134 | cat >conftest.$ac_ext <<_ACEOF | |
18135 | #line $LINENO "configure" | |
18136 | /* confdefs.h. */ | |
18137 | _ACEOF | |
18138 | cat confdefs.h >>conftest.$ac_ext | |
18139 | cat >>conftest.$ac_ext <<_ACEOF | |
18140 | /* end confdefs.h. */ | |
18141 | #include <regex.h> | |
18142 | _ACEOF | |
18143 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18144 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18145 | ac_status=$? | |
18146 | grep -v '^ *+' conftest.er1 >conftest.err | |
18147 | rm -f conftest.er1 | |
18148 | cat conftest.err >&5 | |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18150 | (exit $ac_status); } >/dev/null; then | |
18151 | if test -s conftest.err; then | |
18152 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18153 | else | |
18154 | ac_cpp_err= | |
18155 | fi | |
18156 | else | |
18157 | ac_cpp_err=yes | |
18158 | fi | |
18159 | if test -z "$ac_cpp_err"; then | |
18160 | ac_header_preproc=yes | |
18161 | else | |
18162 | echo "$as_me: failed program was:" >&5 | |
18163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18164 | ||
18165 | ac_header_preproc=no | |
18166 | fi | |
18167 | rm -f conftest.err conftest.$ac_ext | |
18168 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18169 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18170 | ||
18171 | # So? What about this header? | |
18172 | case $ac_header_compiler:$ac_header_preproc in | |
18173 | yes:no ) | |
18174 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18175 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18176 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18177 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18178 | ( | |
18179 | cat <<\_ASBOX | |
18180 | ## ------------------------------------ ## | |
18181 | ## Report this to bug-autoconf@gnu.org. ## | |
18182 | ## ------------------------------------ ## | |
18183 | _ASBOX | |
18184 | ) | | |
18185 | sed "s/^/$as_me: WARNING: /" >&2 | |
18186 | ;; | |
18187 | no:yes ) | |
18188 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
18189 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
18190 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
18191 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
18192 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18193 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18194 | ( | |
18195 | cat <<\_ASBOX | |
18196 | ## ------------------------------------ ## | |
18197 | ## Report this to bug-autoconf@gnu.org. ## | |
18198 | ## ------------------------------------ ## | |
18199 | _ASBOX | |
18200 | ) | | |
18201 | sed "s/^/$as_me: WARNING: /" >&2 | |
18202 | ;; | |
18203 | esac | |
18204 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18205 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18206 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18208 | else | |
18209 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 18210 | fi |
e6cc62c6 VS |
18211 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
18212 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18213 | ||
698dcdb6 | 18214 | fi |
e6cc62c6 VS |
18215 | if test $ac_cv_header_regex_h = yes; then |
18216 | ||
18217 | for ac_func in regcomp | |
21d1c967 | 18218 | do |
e6cc62c6 VS |
18219 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18220 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18221 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18222 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18224 | else | |
18225 | cat >conftest.$ac_ext <<_ACEOF | |
18226 | #line $LINENO "configure" | |
18227 | /* confdefs.h. */ | |
18228 | _ACEOF | |
18229 | cat confdefs.h >>conftest.$ac_ext | |
18230 | cat >>conftest.$ac_ext <<_ACEOF | |
18231 | /* end confdefs.h. */ | |
a0b9e27f | 18232 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18233 | which can conflict with char $ac_func (); below. |
18234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18235 | <limits.h> exists even on freestanding compilers. */ | |
18236 | #ifdef __STDC__ | |
18237 | # include <limits.h> | |
18238 | #else | |
18239 | # include <assert.h> | |
18240 | #endif | |
21d1c967 | 18241 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18242 | #ifdef __cplusplus |
18243 | extern "C" | |
18244 | { | |
18245 | #endif | |
21d1c967 | 18246 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18247 | builtin and then its argument prototype would still apply. */ |
18248 | char $ac_func (); | |
21d1c967 GD |
18249 | /* The GNU C library defines this for functions which it implements |
18250 | to always fail with ENOSYS. Some functions are actually named | |
18251 | something starting with __ and the normal name is an alias. */ | |
18252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18253 | choke me | |
18254 | #else | |
e6cc62c6 VS |
18255 | char (*f) () = $ac_func; |
18256 | #endif | |
18257 | #ifdef __cplusplus | |
18258 | } | |
21d1c967 | 18259 | #endif |
90dd450c | 18260 | |
e6cc62c6 VS |
18261 | int |
18262 | main () | |
18263 | { | |
18264 | return f != $ac_func; | |
18265 | ; | |
18266 | return 0; | |
18267 | } | |
18268 | _ACEOF | |
18269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18271 | (eval $ac_link) 2>&5 | |
18272 | ac_status=$? | |
18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18274 | (exit $ac_status); } && | |
18275 | { ac_try='test -s conftest$ac_exeext' | |
18276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18277 | (eval $ac_try) 2>&5 | |
18278 | ac_status=$? | |
18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18280 | (exit $ac_status); }; }; then | |
18281 | eval "$as_ac_var=yes" | |
18282 | else | |
18283 | echo "$as_me: failed program was:" >&5 | |
18284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18285 | ||
18286 | eval "$as_ac_var=no" | |
18287 | fi | |
18288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18289 | fi | |
18290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18292 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18293 | cat >>confdefs.h <<_ACEOF | |
18294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18295 | _ACEOF | |
5c6fa7d2 | 18296 | |
698dcdb6 | 18297 | fi |
21d1c967 GD |
18298 | done |
18299 | ||
ab9b9eab VZ |
18300 | fi |
18301 | ||
8284b0c5 | 18302 | |
e6cc62c6 | 18303 | |
21d1c967 GD |
18304 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18305 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18306 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18307 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18308 | { (exit 1); exit 1; }; } | |
21d1c967 | 18309 | else |
e6cc62c6 VS |
18310 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18311 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18312 | wxUSE_REGEX=builtin |
18313 | fi | |
18314 | else | |
18315 | wxUSE_REGEX=sys | |
18316 | fi | |
ab9b9eab | 18317 | fi |
90dd450c | 18318 | |
21d1c967 GD |
18319 | if test "$wxUSE_REGEX" = "builtin" ; then |
18320 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18321 | fi |
21d1c967 | 18322 | fi |
90dd450c | 18323 | |
8284b0c5 | 18324 | |
21d1c967 GD |
18325 | ZLIB_INCLUDE= |
18326 | ZLIB_LINK= | |
18327 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18328 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18329 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18330 | _ACEOF |
21d1c967 | 18331 | |
8284b0c5 | 18332 | |
21d1c967 | 18333 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18334 | if test "$USE_DARWIN" = 1; then |
18335 | system_zlib_h_ok="yes" | |
18336 | else | |
e6cc62c6 VS |
18337 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18338 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18339 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18341 | else |
18342 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18343 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18344 | |
d643b80e | 18345 | else |
e6cc62c6 VS |
18346 | cat >conftest.$ac_ext <<_ACEOF |
18347 | #line $LINENO "configure" | |
18348 | /* confdefs.h. */ | |
18349 | _ACEOF | |
18350 | cat confdefs.h >>conftest.$ac_ext | |
18351 | cat >>conftest.$ac_ext <<_ACEOF | |
18352 | /* end confdefs.h. */ | |
18353 | ||
ef33c576 | 18354 | #include <zlib.h> |
d775acfa | 18355 | #include <stdio.h> |
d643b80e | 18356 | |
d775acfa VZ |
18357 | int main() |
18358 | { | |
18359 | FILE *f=fopen("conftestval", "w"); | |
18360 | if (!f) exit(1); | |
18361 | fprintf(f, "%s", | |
18362 | ZLIB_VERSION[0] == '1' && | |
18363 | (ZLIB_VERSION[2] > '1' || | |
18364 | (ZLIB_VERSION[2] == '1' && | |
18365 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18366 | exit(0); | |
18367 | } | |
e6cc62c6 VS |
18368 | |
18369 | _ACEOF | |
18370 | rm -f conftest$ac_exeext | |
18371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18372 | (eval $ac_link) 2>&5 | |
18373 | ac_status=$? | |
18374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18375 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18377 | (eval $ac_try) 2>&5 | |
18378 | ac_status=$? | |
18379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18380 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18381 | ac_cv_header_zlib_h=`cat conftestval` |
18382 | else | |
e6cc62c6 VS |
18383 | echo "$as_me: program exited with status $ac_status" >&5 |
18384 | echo "$as_me: failed program was:" >&5 | |
18385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18386 | ||
18387 | ( exit $ac_status ) | |
18388 | ac_cv_header_zlib_h=no | |
d643b80e | 18389 | fi |
e6cc62c6 | 18390 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18391 | fi |
18392 | ||
d643b80e | 18393 | fi |
e6cc62c6 VS |
18394 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18395 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18396 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18397 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18398 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18399 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18401 | fi | |
18402 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18403 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18404 | else |
e6cc62c6 VS |
18405 | # Is the header compilable? |
18406 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18407 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18408 | cat >conftest.$ac_ext <<_ACEOF | |
18409 | #line $LINENO "configure" | |
18410 | /* confdefs.h. */ | |
18411 | _ACEOF | |
18412 | cat confdefs.h >>conftest.$ac_ext | |
18413 | cat >>conftest.$ac_ext <<_ACEOF | |
18414 | /* end confdefs.h. */ | |
18415 | $ac_includes_default | |
89e6bf6d | 18416 | #include <zlib.h> |
e6cc62c6 VS |
18417 | _ACEOF |
18418 | rm -f conftest.$ac_objext | |
18419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18420 | (eval $ac_compile) 2>&5 | |
18421 | ac_status=$? | |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18423 | (exit $ac_status); } && | |
18424 | { ac_try='test -s conftest.$ac_objext' | |
18425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18426 | (eval $ac_try) 2>&5 | |
18427 | ac_status=$? | |
18428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18429 | (exit $ac_status); }; }; then | |
18430 | ac_header_compiler=yes | |
18431 | else | |
18432 | echo "$as_me: failed program was:" >&5 | |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18434 | ||
18435 | ac_header_compiler=no | |
18436 | fi | |
18437 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18438 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18439 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18440 | ||
18441 | # Is the header present? | |
18442 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18443 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18444 | cat >conftest.$ac_ext <<_ACEOF | |
18445 | #line $LINENO "configure" | |
18446 | /* confdefs.h. */ | |
18447 | _ACEOF | |
18448 | cat confdefs.h >>conftest.$ac_ext | |
18449 | cat >>conftest.$ac_ext <<_ACEOF | |
18450 | /* end confdefs.h. */ | |
18451 | #include <zlib.h> | |
18452 | _ACEOF | |
18453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18455 | ac_status=$? | |
18456 | grep -v '^ *+' conftest.er1 >conftest.err | |
18457 | rm -f conftest.er1 | |
18458 | cat conftest.err >&5 | |
18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18460 | (exit $ac_status); } >/dev/null; then | |
18461 | if test -s conftest.err; then | |
18462 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18463 | else | |
18464 | ac_cpp_err= | |
18465 | fi | |
18466 | else | |
18467 | ac_cpp_err=yes | |
18468 | fi | |
18469 | if test -z "$ac_cpp_err"; then | |
18470 | ac_header_preproc=yes | |
18471 | else | |
18472 | echo "$as_me: failed program was:" >&5 | |
18473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18474 | ||
18475 | ac_header_preproc=no | |
18476 | fi | |
18477 | rm -f conftest.err conftest.$ac_ext | |
18478 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18479 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18480 | ||
18481 | # So? What about this header? | |
18482 | case $ac_header_compiler:$ac_header_preproc in | |
18483 | yes:no ) | |
18484 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18485 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18486 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18487 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18488 | ( | |
18489 | cat <<\_ASBOX | |
18490 | ## ------------------------------------ ## | |
18491 | ## Report this to bug-autoconf@gnu.org. ## | |
18492 | ## ------------------------------------ ## | |
18493 | _ASBOX | |
18494 | ) | | |
18495 | sed "s/^/$as_me: WARNING: /" >&2 | |
18496 | ;; | |
18497 | no:yes ) | |
18498 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18499 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18500 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18501 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18502 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18503 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18504 | ( | |
18505 | cat <<\_ASBOX | |
18506 | ## ------------------------------------ ## | |
18507 | ## Report this to bug-autoconf@gnu.org. ## | |
18508 | ## ------------------------------------ ## | |
18509 | _ASBOX | |
18510 | ) | | |
18511 | sed "s/^/$as_me: WARNING: /" >&2 | |
18512 | ;; | |
18513 | esac | |
18514 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18515 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18516 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18518 | else |
e6cc62c6 VS |
18519 | ac_cv_header_zlib_h=$ac_header_preproc |
18520 | fi | |
18521 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18522 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18523 | ||
89e6bf6d VZ |
18524 | fi |
18525 | ||
d643b80e | 18526 | |
e6cc62c6 | 18527 | |
d775acfa VZ |
18528 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18529 | fi | |
18530 | ||
18531 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18532 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18533 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18534 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18536 | else |
e6cc62c6 | 18537 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18538 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18539 | cat >conftest.$ac_ext <<_ACEOF |
18540 | #line $LINENO "configure" | |
18541 | /* confdefs.h. */ | |
18542 | _ACEOF | |
18543 | cat confdefs.h >>conftest.$ac_ext | |
18544 | cat >>conftest.$ac_ext <<_ACEOF | |
18545 | /* end confdefs.h. */ | |
18546 | ||
21d1c967 | 18547 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18548 | #ifdef __cplusplus |
18549 | extern "C" | |
18550 | #endif | |
21d1c967 | 18551 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18552 | builtin and then its argument prototype would still apply. */ |
18553 | char deflate (); | |
18554 | int | |
18555 | main () | |
18556 | { | |
18557 | deflate (); | |
18558 | ; | |
18559 | return 0; | |
18560 | } | |
18561 | _ACEOF | |
18562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18564 | (eval $ac_link) 2>&5 | |
18565 | ac_status=$? | |
18566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18567 | (exit $ac_status); } && | |
18568 | { ac_try='test -s conftest$ac_exeext' | |
18569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18570 | (eval $ac_try) 2>&5 | |
18571 | ac_status=$? | |
18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18573 | (exit $ac_status); }; }; then | |
18574 | ac_cv_lib_z_deflate=yes | |
18575 | else | |
18576 | echo "$as_me: failed program was:" >&5 | |
18577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18578 | ||
18579 | ac_cv_lib_z_deflate=no | |
18580 | fi | |
18581 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18582 | LIBS=$ac_check_lib_save_LIBS | |
18583 | fi | |
18584 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18585 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18586 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18587 | ZLIB_LINK=" -lz" |
a0b9e27f | 18588 | fi |
698dcdb6 | 18589 | |
d643b80e | 18590 | fi |
247f5006 | 18591 | |
21d1c967 GD |
18592 | if test "x$ZLIB_LINK" = "x" ; then |
18593 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18594 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18595 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18596 | { (exit 1); exit 1; }; } | |
21d1c967 | 18597 | else |
e6cc62c6 VS |
18598 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18599 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18600 | wxUSE_ZLIB=builtin |
18601 | fi | |
18602 | else | |
18603 | wxUSE_ZLIB=sys | |
18604 | fi | |
18605 | fi | |
18606 | ||
18607 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18608 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18609 | fi | |
ab9b9eab VZ |
18610 | fi |
18611 | ||
8284b0c5 | 18612 | |
21d1c967 GD |
18613 | PNG_INCLUDE= |
18614 | PNG_LINK= | |
18615 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18616 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18617 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18618 | _ACEOF |
90dd450c | 18619 | |
8284b0c5 | 18620 | |
21d1c967 | 18621 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18622 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18623 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18624 | wxUSE_LIBPNG=sys |
18625 | fi | |
90dd450c | 18626 | |
21d1c967 | 18627 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18628 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18629 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18630 | wxUSE_LIBPNG=builtin |
18631 | fi | |
18632 | ||
18633 | if test "$wxUSE_MGL" != 1 ; then | |
18634 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18635 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18636 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18637 | if test "${ac_cv_header_png_h+set}" = set; then | |
18638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18639 | else |
18640 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18641 | unset ac_cv_header_png_h |
e6cc62c6 | 18642 | |
5d3f766d | 18643 | else |
e6cc62c6 VS |
18644 | cat >conftest.$ac_ext <<_ACEOF |
18645 | #line $LINENO "configure" | |
18646 | /* confdefs.h. */ | |
18647 | _ACEOF | |
18648 | cat confdefs.h >>conftest.$ac_ext | |
18649 | cat >>conftest.$ac_ext <<_ACEOF | |
18650 | /* end confdefs.h. */ | |
18651 | ||
ef33c576 | 18652 | #include <png.h> |
5d3f766d VZ |
18653 | #include <stdio.h> |
18654 | ||
18655 | int main() | |
18656 | { | |
18657 | FILE *f=fopen("conftestval", "w"); | |
18658 | if (!f) exit(1); | |
18659 | fprintf(f, "%s", | |
18660 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18661 | exit(0); | |
18662 | } | |
e6cc62c6 VS |
18663 | |
18664 | _ACEOF | |
18665 | rm -f conftest$ac_exeext | |
18666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18667 | (eval $ac_link) 2>&5 | |
18668 | ac_status=$? | |
18669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18670 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18672 | (eval $ac_try) 2>&5 | |
18673 | ac_status=$? | |
18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18676 | ac_cv_header_png_h=`cat conftestval` |
18677 | else | |
e6cc62c6 VS |
18678 | echo "$as_me: program exited with status $ac_status" >&5 |
18679 | echo "$as_me: failed program was:" >&5 | |
18680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18681 | ||
18682 | ( exit $ac_status ) | |
18683 | ac_cv_header_png_h=no | |
5d3f766d | 18684 | fi |
e6cc62c6 | 18685 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18686 | fi |
18687 | ||
5d3f766d | 18688 | fi |
e6cc62c6 VS |
18689 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18690 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18691 | if test "${ac_cv_header_png_h+set}" = set; then | |
18692 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18693 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18694 | if test "${ac_cv_header_png_h+set}" = set; then | |
18695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18696 | fi | |
18697 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18698 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18699 | else |
e6cc62c6 VS |
18700 | # Is the header compilable? |
18701 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18702 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18703 | cat >conftest.$ac_ext <<_ACEOF | |
18704 | #line $LINENO "configure" | |
18705 | /* confdefs.h. */ | |
18706 | _ACEOF | |
18707 | cat confdefs.h >>conftest.$ac_ext | |
18708 | cat >>conftest.$ac_ext <<_ACEOF | |
18709 | /* end confdefs.h. */ | |
18710 | $ac_includes_default | |
89e6bf6d | 18711 | #include <png.h> |
e6cc62c6 VS |
18712 | _ACEOF |
18713 | rm -f conftest.$ac_objext | |
18714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18715 | (eval $ac_compile) 2>&5 | |
18716 | ac_status=$? | |
18717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18718 | (exit $ac_status); } && | |
18719 | { ac_try='test -s conftest.$ac_objext' | |
18720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18721 | (eval $ac_try) 2>&5 | |
18722 | ac_status=$? | |
18723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18724 | (exit $ac_status); }; }; then | |
18725 | ac_header_compiler=yes | |
18726 | else | |
18727 | echo "$as_me: failed program was:" >&5 | |
18728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18729 | ||
18730 | ac_header_compiler=no | |
18731 | fi | |
18732 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18734 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18735 | ||
18736 | # Is the header present? | |
18737 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18738 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18739 | cat >conftest.$ac_ext <<_ACEOF | |
18740 | #line $LINENO "configure" | |
18741 | /* confdefs.h. */ | |
18742 | _ACEOF | |
18743 | cat confdefs.h >>conftest.$ac_ext | |
18744 | cat >>conftest.$ac_ext <<_ACEOF | |
18745 | /* end confdefs.h. */ | |
18746 | #include <png.h> | |
18747 | _ACEOF | |
18748 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18749 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18750 | ac_status=$? | |
18751 | grep -v '^ *+' conftest.er1 >conftest.err | |
18752 | rm -f conftest.er1 | |
18753 | cat conftest.err >&5 | |
18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18755 | (exit $ac_status); } >/dev/null; then | |
18756 | if test -s conftest.err; then | |
18757 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18758 | else | |
18759 | ac_cpp_err= | |
18760 | fi | |
18761 | else | |
18762 | ac_cpp_err=yes | |
18763 | fi | |
18764 | if test -z "$ac_cpp_err"; then | |
18765 | ac_header_preproc=yes | |
18766 | else | |
18767 | echo "$as_me: failed program was:" >&5 | |
18768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18769 | ||
18770 | ac_header_preproc=no | |
18771 | fi | |
18772 | rm -f conftest.err conftest.$ac_ext | |
18773 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18774 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18775 | ||
18776 | # So? What about this header? | |
18777 | case $ac_header_compiler:$ac_header_preproc in | |
18778 | yes:no ) | |
18779 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18780 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18781 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18782 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18783 | ( | |
18784 | cat <<\_ASBOX | |
18785 | ## ------------------------------------ ## | |
18786 | ## Report this to bug-autoconf@gnu.org. ## | |
18787 | ## ------------------------------------ ## | |
18788 | _ASBOX | |
18789 | ) | | |
18790 | sed "s/^/$as_me: WARNING: /" >&2 | |
18791 | ;; | |
18792 | no:yes ) | |
18793 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18794 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18795 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18796 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18797 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18798 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18799 | ( | |
18800 | cat <<\_ASBOX | |
18801 | ## ------------------------------------ ## | |
18802 | ## Report this to bug-autoconf@gnu.org. ## | |
18803 | ## ------------------------------------ ## | |
18804 | _ASBOX | |
18805 | ) | | |
18806 | sed "s/^/$as_me: WARNING: /" >&2 | |
18807 | ;; | |
18808 | esac | |
18809 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18810 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18811 | if test "${ac_cv_header_png_h+set}" = set; then | |
18812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18813 | else |
e6cc62c6 VS |
18814 | ac_cv_header_png_h=$ac_header_preproc |
18815 | fi | |
18816 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18817 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18818 | ||
89e6bf6d VZ |
18819 | fi |
18820 | ||
5d3f766d | 18821 | |
e6cc62c6 | 18822 | |
5d3f766d | 18823 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18824 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18825 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18826 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18828 | else |
e6cc62c6 | 18829 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18830 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18831 | cat >conftest.$ac_ext <<_ACEOF |
18832 | #line $LINENO "configure" | |
18833 | /* confdefs.h. */ | |
18834 | _ACEOF | |
18835 | cat confdefs.h >>conftest.$ac_ext | |
18836 | cat >>conftest.$ac_ext <<_ACEOF | |
18837 | /* end confdefs.h. */ | |
18838 | ||
21d1c967 | 18839 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18840 | #ifdef __cplusplus |
18841 | extern "C" | |
18842 | #endif | |
21d1c967 | 18843 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18844 | builtin and then its argument prototype would still apply. */ |
18845 | char png_check_sig (); | |
18846 | int | |
18847 | main () | |
18848 | { | |
18849 | png_check_sig (); | |
18850 | ; | |
18851 | return 0; | |
18852 | } | |
18853 | _ACEOF | |
18854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18856 | (eval $ac_link) 2>&5 | |
18857 | ac_status=$? | |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18859 | (exit $ac_status); } && | |
18860 | { ac_try='test -s conftest$ac_exeext' | |
18861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18862 | (eval $ac_try) 2>&5 | |
18863 | ac_status=$? | |
18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18865 | (exit $ac_status); }; }; then | |
18866 | ac_cv_lib_png_png_check_sig=yes | |
18867 | else | |
18868 | echo "$as_me: failed program was:" >&5 | |
18869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18870 | ||
18871 | ac_cv_lib_png_png_check_sig=no | |
18872 | fi | |
18873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18874 | LIBS=$ac_check_lib_save_LIBS | |
18875 | fi | |
18876 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18877 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18878 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18879 | PNG_LINK=" -lpng" |
a0b9e27f | 18880 | fi |
90dd450c | 18881 | |
5d3f766d | 18882 | fi |
247f5006 | 18883 | |
21d1c967 GD |
18884 | if test "x$PNG_LINK" = "x" ; then |
18885 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18886 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18887 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18888 | { (exit 1); exit 1; }; } | |
21d1c967 | 18889 | else |
e6cc62c6 VS |
18890 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18891 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18892 | wxUSE_LIBPNG=builtin |
18893 | fi | |
18894 | else | |
2b5f62a0 | 18895 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18896 | fi |
18897 | fi | |
18898 | fi | |
90dd450c | 18899 | |
21d1c967 GD |
18900 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18901 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18902 | fi | |
90dd450c | 18903 | |
21d1c967 | 18904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18905 | fi |
18906 | ||
8284b0c5 | 18907 | |
21d1c967 GD |
18908 | JPEG_INCLUDE= |
18909 | JPEG_LINK= | |
18910 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18911 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18912 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18913 | _ACEOF |
90dd450c | 18914 | |
8284b0c5 | 18915 | |
21d1c967 | 18916 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18917 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18918 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18919 | wxUSE_LIBJPEG=sys |
18920 | fi | |
90dd450c | 18921 | |
21d1c967 GD |
18922 | if test "$wxUSE_MGL" != 1 ; then |
18923 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18924 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18925 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18926 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18928 | else | |
18929 | cat >conftest.$ac_ext <<_ACEOF | |
18930 | #line $LINENO "configure" | |
18931 | /* confdefs.h. */ | |
18932 | _ACEOF | |
18933 | cat confdefs.h >>conftest.$ac_ext | |
18934 | cat >>conftest.$ac_ext <<_ACEOF | |
18935 | /* end confdefs.h. */ | |
90dd450c | 18936 | |
21d1c967 GD |
18937 | #undef HAVE_STDLIB_H |
18938 | #include <stdio.h> | |
18939 | #include <jpeglib.h> | |
90dd450c | 18940 | |
e6cc62c6 VS |
18941 | int |
18942 | main () | |
18943 | { | |
18944 | ||
18945 | ||
18946 | ; | |
18947 | return 0; | |
18948 | } | |
18949 | _ACEOF | |
18950 | rm -f conftest.$ac_objext | |
18951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18952 | (eval $ac_compile) 2>&5 | |
18953 | ac_status=$? | |
18954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18955 | (exit $ac_status); } && | |
18956 | { ac_try='test -s conftest.$ac_objext' | |
18957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18958 | (eval $ac_try) 2>&5 | |
18959 | ac_status=$? | |
18960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18961 | (exit $ac_status); }; }; then | |
21d1c967 | 18962 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18963 | else |
e6cc62c6 VS |
18964 | echo "$as_me: failed program was:" >&5 |
18965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18966 | ||
18967 | ac_cv_header_jpeglib_h=no | |
18968 | ||
90dd450c | 18969 | fi |
e6cc62c6 VS |
18970 | rm -f conftest.$ac_objext conftest.$ac_ext |
18971 | ||
90dd450c VZ |
18972 | fi |
18973 | ||
e6cc62c6 VS |
18974 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18975 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18976 | |
21d1c967 | 18977 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18978 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18979 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18980 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18982 | else |
e6cc62c6 | 18983 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18984 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18985 | cat >conftest.$ac_ext <<_ACEOF |
18986 | #line $LINENO "configure" | |
18987 | /* confdefs.h. */ | |
18988 | _ACEOF | |
18989 | cat confdefs.h >>conftest.$ac_ext | |
18990 | cat >>conftest.$ac_ext <<_ACEOF | |
18991 | /* end confdefs.h. */ | |
18992 | ||
21d1c967 | 18993 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18994 | #ifdef __cplusplus |
18995 | extern "C" | |
18996 | #endif | |
21d1c967 | 18997 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18998 | builtin and then its argument prototype would still apply. */ |
18999 | char jpeg_read_header (); | |
19000 | int | |
19001 | main () | |
19002 | { | |
19003 | jpeg_read_header (); | |
19004 | ; | |
19005 | return 0; | |
19006 | } | |
19007 | _ACEOF | |
19008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19010 | (eval $ac_link) 2>&5 | |
19011 | ac_status=$? | |
19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19013 | (exit $ac_status); } && | |
19014 | { ac_try='test -s conftest$ac_exeext' | |
19015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19016 | (eval $ac_try) 2>&5 | |
19017 | ac_status=$? | |
19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19019 | (exit $ac_status); }; }; then | |
19020 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19021 | else | |
19022 | echo "$as_me: failed program was:" >&5 | |
19023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19024 | ||
19025 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19026 | fi | |
19027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19028 | LIBS=$ac_check_lib_save_LIBS | |
19029 | fi | |
19030 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19031 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19032 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19033 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19034 | fi |
19035 | ||
21d1c967 | 19036 | fi |
90dd450c | 19037 | |
21d1c967 GD |
19038 | if test "x$JPEG_LINK" = "x" ; then |
19039 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19040 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19041 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19042 | { (exit 1); exit 1; }; } | |
21d1c967 | 19043 | else |
e6cc62c6 VS |
19044 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19045 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19046 | wxUSE_LIBJPEG=builtin |
19047 | fi | |
19048 | else | |
19049 | wxUSE_LIBJPEG=sys | |
19050 | fi | |
19051 | fi | |
19052 | fi | |
90dd450c | 19053 | |
21d1c967 GD |
19054 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
19055 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
19056 | fi | |
19057 | fi | |
90dd450c | 19058 | |
8284b0c5 | 19059 | |
21d1c967 GD |
19060 | TIFF_INCLUDE= |
19061 | TIFF_LINK= | |
2b5f62a0 | 19062 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19063 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19064 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19065 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19066 | _ACEOF |
21d1c967 | 19067 | |
8284b0c5 | 19068 | |
21d1c967 | 19069 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19070 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19071 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19072 | fi | |
19073 | if test "$wxUSE_ZLIB" = "sys"; then | |
19074 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19075 | fi | |
e6cc62c6 VS |
19076 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19077 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19078 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19079 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19081 | fi | |
19082 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19083 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19084 | else | |
19085 | # Is the header compilable? | |
19086 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19087 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19088 | cat >conftest.$ac_ext <<_ACEOF | |
19089 | #line $LINENO "configure" | |
19090 | /* confdefs.h. */ | |
19091 | _ACEOF | |
19092 | cat confdefs.h >>conftest.$ac_ext | |
19093 | cat >>conftest.$ac_ext <<_ACEOF | |
19094 | /* end confdefs.h. */ | |
19095 | $ac_includes_default | |
247f5006 | 19096 | #include <tiffio.h> |
e6cc62c6 VS |
19097 | _ACEOF |
19098 | rm -f conftest.$ac_objext | |
19099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19100 | (eval $ac_compile) 2>&5 | |
19101 | ac_status=$? | |
19102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19103 | (exit $ac_status); } && | |
19104 | { ac_try='test -s conftest.$ac_objext' | |
19105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19106 | (eval $ac_try) 2>&5 | |
19107 | ac_status=$? | |
19108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19109 | (exit $ac_status); }; }; then | |
19110 | ac_header_compiler=yes | |
19111 | else | |
19112 | echo "$as_me: failed program was:" >&5 | |
19113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19114 | ||
19115 | ac_header_compiler=no | |
19116 | fi | |
19117 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19118 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19119 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19120 | ||
19121 | # Is the header present? | |
19122 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
19123 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
19124 | cat >conftest.$ac_ext <<_ACEOF | |
19125 | #line $LINENO "configure" | |
19126 | /* confdefs.h. */ | |
19127 | _ACEOF | |
19128 | cat confdefs.h >>conftest.$ac_ext | |
19129 | cat >>conftest.$ac_ext <<_ACEOF | |
19130 | /* end confdefs.h. */ | |
19131 | #include <tiffio.h> | |
19132 | _ACEOF | |
19133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19135 | ac_status=$? | |
19136 | grep -v '^ *+' conftest.er1 >conftest.err | |
19137 | rm -f conftest.er1 | |
19138 | cat conftest.err >&5 | |
19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19140 | (exit $ac_status); } >/dev/null; then | |
19141 | if test -s conftest.err; then | |
19142 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19143 | else | |
19144 | ac_cpp_err= | |
19145 | fi | |
19146 | else | |
19147 | ac_cpp_err=yes | |
19148 | fi | |
19149 | if test -z "$ac_cpp_err"; then | |
19150 | ac_header_preproc=yes | |
19151 | else | |
19152 | echo "$as_me: failed program was:" >&5 | |
19153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19154 | ||
19155 | ac_header_preproc=no | |
19156 | fi | |
19157 | rm -f conftest.err conftest.$ac_ext | |
19158 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19159 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19160 | ||
19161 | # So? What about this header? | |
19162 | case $ac_header_compiler:$ac_header_preproc in | |
19163 | yes:no ) | |
19164 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19165 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19166 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19167 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19168 | ( | |
19169 | cat <<\_ASBOX | |
19170 | ## ------------------------------------ ## | |
19171 | ## Report this to bug-autoconf@gnu.org. ## | |
19172 | ## ------------------------------------ ## | |
19173 | _ASBOX | |
19174 | ) | | |
19175 | sed "s/^/$as_me: WARNING: /" >&2 | |
19176 | ;; | |
19177 | no:yes ) | |
19178 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
19179 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
19180 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
19181 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
19182 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19183 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19184 | ( | |
19185 | cat <<\_ASBOX | |
19186 | ## ------------------------------------ ## | |
19187 | ## Report this to bug-autoconf@gnu.org. ## | |
19188 | ## ------------------------------------ ## | |
19189 | _ASBOX | |
19190 | ) | | |
19191 | sed "s/^/$as_me: WARNING: /" >&2 | |
19192 | ;; | |
19193 | esac | |
19194 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19195 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19196 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19198 | else | |
19199 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 19200 | fi |
e6cc62c6 VS |
19201 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
19202 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19203 | ||
21d1c967 | 19204 | fi |
e6cc62c6 VS |
19205 | if test $ac_cv_header_tiffio_h = yes; then |
19206 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
19207 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
19208 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 19210 | else |
e6cc62c6 | 19211 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 19212 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
19213 | cat >conftest.$ac_ext <<_ACEOF |
19214 | #line $LINENO "configure" | |
19215 | /* confdefs.h. */ | |
19216 | _ACEOF | |
19217 | cat confdefs.h >>conftest.$ac_ext | |
19218 | cat >>conftest.$ac_ext <<_ACEOF | |
19219 | /* end confdefs.h. */ | |
19220 | ||
ab9b9eab | 19221 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19222 | #ifdef __cplusplus |
19223 | extern "C" | |
19224 | #endif | |
ab9b9eab | 19225 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19226 | builtin and then its argument prototype would still apply. */ |
19227 | char TIFFError (); | |
19228 | int | |
19229 | main () | |
19230 | { | |
19231 | TIFFError (); | |
19232 | ; | |
19233 | return 0; | |
19234 | } | |
19235 | _ACEOF | |
19236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19238 | (eval $ac_link) 2>&5 | |
19239 | ac_status=$? | |
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19241 | (exit $ac_status); } && | |
19242 | { ac_try='test -s conftest$ac_exeext' | |
19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19244 | (eval $ac_try) 2>&5 | |
19245 | ac_status=$? | |
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19247 | (exit $ac_status); }; }; then | |
19248 | ac_cv_lib_tiff_TIFFError=yes | |
19249 | else | |
19250 | echo "$as_me: failed program was:" >&5 | |
19251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19252 | ||
19253 | ac_cv_lib_tiff_TIFFError=no | |
19254 | fi | |
19255 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19256 | LIBS=$ac_check_lib_save_LIBS | |
19257 | fi | |
19258 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19259 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19260 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19261 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19262 | fi |
cd6d6d5b | 19263 | |
e6cc62c6 | 19264 | |
a0b9e27f | 19265 | fi |
8284b0c5 | 19266 | |
247f5006 | 19267 | |
e6cc62c6 | 19268 | |
21d1c967 GD |
19269 | if test "x$TIFF_LINK" = "x" ; then |
19270 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19271 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19272 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19273 | { (exit 1); exit 1; }; } | |
90dd450c | 19274 | else |
e6cc62c6 VS |
19275 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19276 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19277 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19278 | fi |
d8356fa3 | 19279 | else |
21d1c967 | 19280 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19281 | fi |
21d1c967 | 19282 | fi |
d8356fa3 | 19283 | |
21d1c967 GD |
19284 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19285 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19286 | fi |
21d1c967 | 19287 | fi |
10f2d63a | 19288 | |
8284b0c5 | 19289 | |
672abd7a VS |
19290 | if test "$wxUSE_EXPAT" != "no"; then |
19291 | wxUSE_XML=1 | |
19292 | cat >>confdefs.h <<\_ACEOF | |
19293 | #define wxUSE_EXPAT 1 | |
19294 | _ACEOF | |
19295 | ||
19296 | cat >>confdefs.h <<\_ACEOF | |
19297 | #define wxUSE_XML 1 | |
19298 | _ACEOF | |
19299 | ||
19300 | ||
19301 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19302 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19303 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19304 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19305 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19307 | fi | |
19308 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19309 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19310 | else | |
19311 | # Is the header compilable? | |
19312 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19313 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19314 | cat >conftest.$ac_ext <<_ACEOF | |
19315 | #line $LINENO "configure" | |
19316 | /* confdefs.h. */ | |
19317 | _ACEOF | |
19318 | cat confdefs.h >>conftest.$ac_ext | |
19319 | cat >>conftest.$ac_ext <<_ACEOF | |
19320 | /* end confdefs.h. */ | |
19321 | $ac_includes_default | |
19322 | #include <expat.h> | |
19323 | _ACEOF | |
19324 | rm -f conftest.$ac_objext | |
19325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19326 | (eval $ac_compile) 2>&5 | |
19327 | ac_status=$? | |
19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19329 | (exit $ac_status); } && | |
19330 | { ac_try='test -s conftest.$ac_objext' | |
19331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19332 | (eval $ac_try) 2>&5 | |
19333 | ac_status=$? | |
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19335 | (exit $ac_status); }; }; then | |
19336 | ac_header_compiler=yes | |
19337 | else | |
19338 | echo "$as_me: failed program was:" >&5 | |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
19341 | ac_header_compiler=no | |
19342 | fi | |
19343 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19346 | ||
19347 | # Is the header present? | |
19348 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19349 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19350 | cat >conftest.$ac_ext <<_ACEOF | |
19351 | #line $LINENO "configure" | |
19352 | /* confdefs.h. */ | |
19353 | _ACEOF | |
19354 | cat confdefs.h >>conftest.$ac_ext | |
19355 | cat >>conftest.$ac_ext <<_ACEOF | |
19356 | /* end confdefs.h. */ | |
19357 | #include <expat.h> | |
19358 | _ACEOF | |
19359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19361 | ac_status=$? | |
19362 | grep -v '^ *+' conftest.er1 >conftest.err | |
19363 | rm -f conftest.er1 | |
19364 | cat conftest.err >&5 | |
19365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19366 | (exit $ac_status); } >/dev/null; then | |
19367 | if test -s conftest.err; then | |
19368 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19369 | else | |
19370 | ac_cpp_err= | |
19371 | fi | |
19372 | else | |
19373 | ac_cpp_err=yes | |
19374 | fi | |
19375 | if test -z "$ac_cpp_err"; then | |
19376 | ac_header_preproc=yes | |
19377 | else | |
19378 | echo "$as_me: failed program was:" >&5 | |
19379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19380 | ||
19381 | ac_header_preproc=no | |
19382 | fi | |
19383 | rm -f conftest.err conftest.$ac_ext | |
19384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19386 | ||
19387 | # So? What about this header? | |
19388 | case $ac_header_compiler:$ac_header_preproc in | |
19389 | yes:no ) | |
19390 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19391 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19392 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19393 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19394 | ( | |
19395 | cat <<\_ASBOX | |
19396 | ## ------------------------------------ ## | |
19397 | ## Report this to bug-autoconf@gnu.org. ## | |
19398 | ## ------------------------------------ ## | |
19399 | _ASBOX | |
19400 | ) | | |
19401 | sed "s/^/$as_me: WARNING: /" >&2 | |
19402 | ;; | |
19403 | no:yes ) | |
19404 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 | |
19405 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
19406 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 | |
19407 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
19408 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19409 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19410 | ( | |
19411 | cat <<\_ASBOX | |
19412 | ## ------------------------------------ ## | |
19413 | ## Report this to bug-autoconf@gnu.org. ## | |
19414 | ## ------------------------------------ ## | |
19415 | _ASBOX | |
19416 | ) | | |
19417 | sed "s/^/$as_me: WARNING: /" >&2 | |
19418 | ;; | |
19419 | esac | |
19420 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19421 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19422 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | ac_cv_header_expat_h=$ac_header_preproc | |
19426 | fi | |
19427 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19428 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19429 | ||
19430 | fi | |
5f0b6dff VS |
19431 | if test $ac_cv_header_expat_h = yes; then |
19432 | found_expat_h=1 | |
19433 | fi | |
19434 | ||
19435 | ||
19436 | if test "x$found_expat_h" = "x1"; then | |
19437 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19438 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19439 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19441 | else | |
19442 | ||
19443 | ||
672abd7a | 19444 | |
5f0b6dff VS |
19445 | ac_ext=cc |
19446 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19447 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19448 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19449 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19450 | ||
19451 | cat >conftest.$ac_ext <<_ACEOF | |
19452 | #line $LINENO "configure" | |
19453 | /* confdefs.h. */ | |
19454 | _ACEOF | |
19455 | cat confdefs.h >>conftest.$ac_ext | |
19456 | cat >>conftest.$ac_ext <<_ACEOF | |
19457 | /* end confdefs.h. */ | |
19458 | #include <expat.h> | |
19459 | int | |
19460 | main () | |
19461 | { | |
672abd7a | 19462 | |
5f0b6dff VS |
19463 | ; |
19464 | return 0; | |
19465 | } | |
19466 | _ACEOF | |
19467 | rm -f conftest.$ac_objext | |
19468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19469 | (eval $ac_compile) 2>&5 | |
19470 | ac_status=$? | |
19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19472 | (exit $ac_status); } && | |
19473 | { ac_try='test -s conftest.$ac_objext' | |
19474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19475 | (eval $ac_try) 2>&5 | |
19476 | ac_status=$? | |
19477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19478 | (exit $ac_status); }; }; then | |
19479 | wx_cv_expat_is_not_broken=yes | |
19480 | else | |
19481 | echo "$as_me: failed program was:" >&5 | |
19482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19483 | ||
19484 | wx_cv_expat_is_not_broken=no | |
19485 | ||
19486 | fi | |
19487 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19488 | ac_ext=c | |
19489 | ac_cpp='$CPP $CPPFLAGS' | |
19490 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19491 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19492 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19493 | ||
19494 | ||
19495 | ||
19496 | fi | |
19497 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19498 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19499 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19500 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19501 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19502 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19504 | else | |
19505 | ac_check_lib_save_LIBS=$LIBS | |
19506 | LIBS="-lexpat $LIBS" | |
19507 | cat >conftest.$ac_ext <<_ACEOF | |
19508 | #line $LINENO "configure" | |
19509 | /* confdefs.h. */ | |
19510 | _ACEOF | |
19511 | cat confdefs.h >>conftest.$ac_ext | |
19512 | cat >>conftest.$ac_ext <<_ACEOF | |
19513 | /* end confdefs.h. */ | |
19514 | ||
19515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19516 | #ifdef __cplusplus | |
19517 | extern "C" | |
19518 | #endif | |
19519 | /* We use char because int might match the return type of a gcc2 | |
19520 | builtin and then its argument prototype would still apply. */ | |
19521 | char XML_ParserCreate (); | |
19522 | int | |
19523 | main () | |
19524 | { | |
19525 | XML_ParserCreate (); | |
19526 | ; | |
19527 | return 0; | |
19528 | } | |
19529 | _ACEOF | |
19530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19532 | (eval $ac_link) 2>&5 | |
19533 | ac_status=$? | |
19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19535 | (exit $ac_status); } && | |
19536 | { ac_try='test -s conftest$ac_exeext' | |
19537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19538 | (eval $ac_try) 2>&5 | |
19539 | ac_status=$? | |
19540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19541 | (exit $ac_status); }; }; then | |
19542 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19543 | else | |
19544 | echo "$as_me: failed program was:" >&5 | |
19545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19546 | ||
19547 | ac_cv_lib_expat_XML_ParserCreate=no | |
19548 | fi | |
19549 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19550 | LIBS=$ac_check_lib_save_LIBS | |
19551 | fi | |
19552 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19553 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19554 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19555 | EXPAT_LINK=" -lexpat" | |
19556 | fi | |
19557 | ||
5f0b6dff | 19558 | fi |
672abd7a VS |
19559 | fi |
19560 | if test "x$EXPAT_LINK" = "x" ; then | |
19561 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19562 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19563 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19564 | { (exit 1); exit 1; }; } | |
19565 | else | |
19566 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19567 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19568 | wxUSE_EXPAT=builtin | |
19569 | fi | |
19570 | else | |
19571 | wxUSE_EXPAT=sys | |
19572 | fi | |
19573 | fi | |
19574 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19575 | ||
19576 | ||
19577 | subdirs="$subdirs src/expat" | |
19578 | ||
19579 | fi | |
19580 | fi | |
19581 | ||
19582 | ||
19583 | ||
21d1c967 | 19584 | AFMINSTALL= |
2b5f62a0 | 19585 | WIN32INSTALL= |
90dd450c | 19586 | |
21d1c967 GD |
19587 | TOOLKIT= |
19588 | TOOLKIT_INCLUDE= | |
19589 | WIDGET_SET= | |
19590 | ||
19591 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19592 | |
19593 | for ac_header in w32api.h | |
21d1c967 | 19594 | do |
e6cc62c6 VS |
19595 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19597 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19598 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19601 | fi | |
19602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19604 | else | |
19605 | # Is the header compilable? | |
19606 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19607 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19608 | cat >conftest.$ac_ext <<_ACEOF | |
19609 | #line $LINENO "configure" | |
19610 | /* confdefs.h. */ | |
19611 | _ACEOF | |
19612 | cat confdefs.h >>conftest.$ac_ext | |
19613 | cat >>conftest.$ac_ext <<_ACEOF | |
19614 | /* end confdefs.h. */ | |
19615 | $ac_includes_default | |
19616 | #include <$ac_header> | |
19617 | _ACEOF | |
19618 | rm -f conftest.$ac_objext | |
19619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19620 | (eval $ac_compile) 2>&5 | |
19621 | ac_status=$? | |
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19623 | (exit $ac_status); } && | |
19624 | { ac_try='test -s conftest.$ac_objext' | |
19625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19626 | (eval $ac_try) 2>&5 | |
19627 | ac_status=$? | |
19628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19629 | (exit $ac_status); }; }; then | |
19630 | ac_header_compiler=yes | |
19631 | else | |
19632 | echo "$as_me: failed program was:" >&5 | |
19633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19634 | ||
19635 | ac_header_compiler=no | |
19636 | fi | |
19637 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19638 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19639 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19640 | ||
19641 | # Is the header present? | |
19642 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19644 | cat >conftest.$ac_ext <<_ACEOF | |
19645 | #line $LINENO "configure" | |
19646 | /* confdefs.h. */ | |
19647 | _ACEOF | |
19648 | cat confdefs.h >>conftest.$ac_ext | |
19649 | cat >>conftest.$ac_ext <<_ACEOF | |
19650 | /* end confdefs.h. */ | |
19651 | #include <$ac_header> | |
19652 | _ACEOF | |
19653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19655 | ac_status=$? | |
19656 | grep -v '^ *+' conftest.er1 >conftest.err | |
19657 | rm -f conftest.er1 | |
19658 | cat conftest.err >&5 | |
19659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19660 | (exit $ac_status); } >/dev/null; then | |
19661 | if test -s conftest.err; then | |
19662 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19663 | else | |
19664 | ac_cpp_err= | |
19665 | fi | |
19666 | else | |
19667 | ac_cpp_err=yes | |
19668 | fi | |
19669 | if test -z "$ac_cpp_err"; then | |
19670 | ac_header_preproc=yes | |
19671 | else | |
19672 | echo "$as_me: failed program was:" >&5 | |
19673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19674 | ||
19675 | ac_header_preproc=no | |
19676 | fi | |
19677 | rm -f conftest.err conftest.$ac_ext | |
19678 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19679 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19680 | ||
19681 | # So? What about this header? | |
19682 | case $ac_header_compiler:$ac_header_preproc in | |
19683 | yes:no ) | |
19684 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19685 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19688 | ( | |
19689 | cat <<\_ASBOX | |
19690 | ## ------------------------------------ ## | |
19691 | ## Report this to bug-autoconf@gnu.org. ## | |
19692 | ## ------------------------------------ ## | |
19693 | _ASBOX | |
19694 | ) | | |
19695 | sed "s/^/$as_me: WARNING: /" >&2 | |
19696 | ;; | |
19697 | no:yes ) | |
19698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19703 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19704 | ( | |
19705 | cat <<\_ASBOX | |
19706 | ## ------------------------------------ ## | |
19707 | ## Report this to bug-autoconf@gnu.org. ## | |
19708 | ## ------------------------------------ ## | |
19709 | _ASBOX | |
19710 | ) | | |
19711 | sed "s/^/$as_me: WARNING: /" >&2 | |
19712 | ;; | |
19713 | esac | |
19714 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19715 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19718 | else | |
19719 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19720 | fi |
e6cc62c6 VS |
19721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19723 | ||
21d1c967 | 19724 | fi |
e6cc62c6 VS |
19725 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19726 | cat >>confdefs.h <<_ACEOF | |
19727 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19728 | _ACEOF | |
19729 | ||
21d1c967 | 19730 | fi |
e6cc62c6 | 19731 | |
21d1c967 | 19732 | done |
f79bd02d | 19733 | |
e6cc62c6 VS |
19734 | if test "${ac_cv_header_windows_h+set}" = set; then |
19735 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19736 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19737 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19739 | fi | |
19740 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19741 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19742 | else | |
19743 | # Is the header compilable? | |
19744 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19745 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19746 | cat >conftest.$ac_ext <<_ACEOF | |
19747 | #line $LINENO "configure" | |
19748 | /* confdefs.h. */ | |
19749 | _ACEOF | |
19750 | cat confdefs.h >>conftest.$ac_ext | |
19751 | cat >>conftest.$ac_ext <<_ACEOF | |
19752 | /* end confdefs.h. */ | |
19753 | $ac_includes_default | |
247f5006 | 19754 | #include <windows.h> |
e6cc62c6 VS |
19755 | _ACEOF |
19756 | rm -f conftest.$ac_objext | |
19757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19758 | (eval $ac_compile) 2>&5 | |
19759 | ac_status=$? | |
19760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19761 | (exit $ac_status); } && | |
19762 | { ac_try='test -s conftest.$ac_objext' | |
19763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19764 | (eval $ac_try) 2>&5 | |
19765 | ac_status=$? | |
19766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19767 | (exit $ac_status); }; }; then | |
19768 | ac_header_compiler=yes | |
19769 | else | |
19770 | echo "$as_me: failed program was:" >&5 | |
19771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19772 | ||
19773 | ac_header_compiler=no | |
19774 | fi | |
19775 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19776 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19777 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19778 | ||
19779 | # Is the header present? | |
19780 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19781 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19782 | cat >conftest.$ac_ext <<_ACEOF | |
19783 | #line $LINENO "configure" | |
19784 | /* confdefs.h. */ | |
19785 | _ACEOF | |
19786 | cat confdefs.h >>conftest.$ac_ext | |
19787 | cat >>conftest.$ac_ext <<_ACEOF | |
19788 | /* end confdefs.h. */ | |
19789 | #include <windows.h> | |
19790 | _ACEOF | |
19791 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19792 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19793 | ac_status=$? | |
19794 | grep -v '^ *+' conftest.er1 >conftest.err | |
19795 | rm -f conftest.er1 | |
19796 | cat conftest.err >&5 | |
19797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19798 | (exit $ac_status); } >/dev/null; then | |
19799 | if test -s conftest.err; then | |
19800 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19801 | else | |
19802 | ac_cpp_err= | |
19803 | fi | |
19804 | else | |
19805 | ac_cpp_err=yes | |
19806 | fi | |
19807 | if test -z "$ac_cpp_err"; then | |
19808 | ac_header_preproc=yes | |
19809 | else | |
19810 | echo "$as_me: failed program was:" >&5 | |
19811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19812 | ||
19813 | ac_header_preproc=no | |
19814 | fi | |
19815 | rm -f conftest.err conftest.$ac_ext | |
19816 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19817 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19818 | ||
19819 | # So? What about this header? | |
19820 | case $ac_header_compiler:$ac_header_preproc in | |
19821 | yes:no ) | |
19822 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19823 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19824 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19825 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19826 | ( | |
19827 | cat <<\_ASBOX | |
19828 | ## ------------------------------------ ## | |
19829 | ## Report this to bug-autoconf@gnu.org. ## | |
19830 | ## ------------------------------------ ## | |
19831 | _ASBOX | |
19832 | ) | | |
19833 | sed "s/^/$as_me: WARNING: /" >&2 | |
19834 | ;; | |
19835 | no:yes ) | |
19836 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19837 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19838 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19839 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19840 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19841 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19842 | ( | |
19843 | cat <<\_ASBOX | |
19844 | ## ------------------------------------ ## | |
19845 | ## Report this to bug-autoconf@gnu.org. ## | |
19846 | ## ------------------------------------ ## | |
19847 | _ASBOX | |
19848 | ) | | |
19849 | sed "s/^/$as_me: WARNING: /" >&2 | |
19850 | ;; | |
19851 | esac | |
19852 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19853 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19854 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19856 | else | |
19857 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19858 | fi |
e6cc62c6 VS |
19859 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19860 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19861 | ||
90dd450c | 19862 | fi |
e6cc62c6 | 19863 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19864 | : |
90dd450c | 19865 | else |
21d1c967 | 19866 | |
e6cc62c6 VS |
19867 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19868 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19869 | { (exit 1); exit 1; }; } | |
19870 | ||
5c6fa7d2 | 19871 | fi |
7b4a847f | 19872 | |
5c6fa7d2 | 19873 | |
e6cc62c6 | 19874 | |
b3dfbbc9 | 19875 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19876 | |
7bb2947d MB |
19877 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19878 | LIBS="$LIBS -loleacc" | |
19879 | fi | |
19880 | ||
21d1c967 GD |
19881 | case "${host}" in |
19882 | *-*-cygwin* ) | |
b3dfbbc9 | 19883 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19884 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19885 | esac |
f79bd02d | 19886 | |
8647bec6 RG |
19887 | if test "$wxUSE_ODBC" = "sys" ; then |
19888 | wxUSE_ODBC = "yes" | |
21d1c967 | 19889 | fi |
8647bec6 RG |
19890 | if test "$wxUSE_ODBC" = "yes" ; then |
19891 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19892 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19893 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19894 | _ACEOF |
f79bd02d | 19895 | |
8647bec6 | 19896 | fi |
e6cc62c6 | 19897 | |
21d1c967 GD |
19898 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19899 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19900 | |
19901 | WIN32INSTALL=win32install | |
f79bd02d | 19902 | fi |
f79bd02d | 19903 | |
21d1c967 GD |
19904 | if test "$wxUSE_GUI" = "yes"; then |
19905 | USE_GUI=1 | |
f79bd02d | 19906 | |
21d1c967 | 19907 | GUI_TK_LIBRARY= |
f79bd02d | 19908 | |
21d1c967 GD |
19909 | WXGTK12= |
19910 | WXGTK127= | |
19911 | WXGTK20= | |
f79bd02d | 19912 | |
21d1c967 GD |
19913 | if test "$wxUSE_MSW" = 1 ; then |
19914 | TOOLKIT=MSW | |
19915 | GUIDIST=MSW_DIST | |
f79bd02d JS |
19916 | fi |
19917 | ||
21d1c967 | 19918 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19919 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19920 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19921 | |
19922 | gtk_version_cached=1 | |
e6cc62c6 VS |
19923 | if test "${wx_cv_lib_gtk+set}" = set; then |
19924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19925 | else |
e6cc62c6 | 19926 | |
21d1c967 | 19927 | gtk_version_cached=0 |
e6cc62c6 VS |
19928 | echo "$as_me:$LINENO: result: " >&5 |
19929 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19930 | |
21d1c967 GD |
19931 | GTK_MODULES= |
19932 | if test "$wxUSE_THREADS" = "yes"; then | |
19933 | GTK_MODULES=gthread | |
19934 | fi | |
f79bd02d | 19935 | |
2b5f62a0 | 19936 | wx_cv_lib_gtk= |
21d1c967 GD |
19937 | if test "x$wxUSE_GTK2" = "xyes"; then |
19938 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19939 | if test "${enable_gtktest+set}" = set; then | |
19940 | enableval="$enable_gtktest" | |
e6cc62c6 | 19941 | |
f79bd02d | 19942 | else |
21d1c967 | 19943 | enable_gtktest=yes |
e6cc62c6 | 19944 | fi; |
f79bd02d | 19945 | |
21d1c967 GD |
19946 | pkg_config_args=gtk+-2.0 |
19947 | for module in . $GTK_MODULES | |
19948 | do | |
19949 | case "$module" in | |
e6cc62c6 | 19950 | gthread) |
21d1c967 GD |
19951 | pkg_config_args="$pkg_config_args gthread-2.0" |
19952 | ;; | |
19953 | esac | |
19954 | done | |
19955 | ||
19956 | no_gtk="" | |
f79bd02d | 19957 | |
21d1c967 GD |
19958 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19959 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19962 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19964 | else |
e6cc62c6 VS |
19965 | case $PKG_CONFIG in |
19966 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19967 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19968 | ;; | |
21d1c967 | 19969 | *) |
e6cc62c6 VS |
19970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19971 | for as_dir in $PATH | |
19972 | do | |
19973 | IFS=$as_save_IFS | |
19974 | test -z "$as_dir" && as_dir=. | |
19975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19977 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19979 | break 2 | |
19980 | fi | |
19981 | done | |
19982 | done | |
19983 | ||
21d1c967 GD |
19984 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19985 | ;; | |
19986 | esac | |
f79bd02d | 19987 | fi |
e6cc62c6 VS |
19988 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19989 | ||
21d1c967 | 19990 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19991 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19992 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19993 | else |
e6cc62c6 VS |
19994 | echo "$as_me:$LINENO: result: no" >&5 |
19995 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19996 | fi |
19997 | ||
8284b0c5 | 19998 | |
21d1c967 GD |
19999 | if test x$PKG_CONFIG != xno ; then |
20000 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
20001 | : | |
20002 | else | |
20003 | echo *** pkg-config too old; version 0.7 or better required. | |
20004 | no_gtk=yes | |
20005 | PKG_CONFIG=no | |
20006 | fi | |
20007 | else | |
20008 | no_gtk=yes | |
20009 | fi | |
f79bd02d | 20010 | |
21d1c967 | 20011 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
20012 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
20013 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 20014 | |
21d1c967 GD |
20015 | if test x$PKG_CONFIG != xno ; then |
20016 | ## don't try to run the test against uninstalled libtool libs | |
20017 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
20018 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
20019 | enable_gtktest=no | |
20020 | fi | |
f79bd02d | 20021 | |
21d1c967 GD |
20022 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
20023 | : | |
20024 | else | |
20025 | no_gtk=yes | |
20026 | fi | |
20027 | fi | |
f79bd02d | 20028 | |
21d1c967 GD |
20029 | if test x"$no_gtk" = x ; then |
20030 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
20031 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
20032 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20033 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20034 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20035 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20036 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20037 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20038 | if test "x$enable_gtktest" = "xyes" ; then | |
20039 | ac_save_CFLAGS="$CFLAGS" | |
20040 | ac_save_LIBS="$LIBS" | |
20041 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20042 | LIBS="$GTK_LIBS $LIBS" | |
20043 | rm -f conf.gtktest | |
20044 | if test "$cross_compiling" = yes; then | |
20045 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20046 | else |
e6cc62c6 VS |
20047 | cat >conftest.$ac_ext <<_ACEOF |
20048 | #line $LINENO "configure" | |
20049 | /* confdefs.h. */ | |
20050 | _ACEOF | |
20051 | cat confdefs.h >>conftest.$ac_ext | |
20052 | cat >>conftest.$ac_ext <<_ACEOF | |
20053 | /* end confdefs.h. */ | |
f79bd02d | 20054 | |
21d1c967 GD |
20055 | #include <gtk/gtk.h> |
20056 | #include <stdio.h> | |
20057 | #include <stdlib.h> | |
f79bd02d | 20058 | |
e6cc62c6 | 20059 | int |
21d1c967 GD |
20060 | main () |
20061 | { | |
20062 | int major, minor, micro; | |
20063 | char *tmp_version; | |
f79bd02d | 20064 | |
21d1c967 | 20065 | system ("touch conf.gtktest"); |
f79bd02d | 20066 | |
21d1c967 GD |
20067 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
20068 | tmp_version = g_strdup("$min_gtk_version"); | |
20069 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20070 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20071 | exit(1); | |
20072 | } | |
f79bd02d | 20073 | |
21d1c967 GD |
20074 | if ((gtk_major_version != $gtk_config_major_version) || |
20075 | (gtk_minor_version != $gtk_config_minor_version) || | |
20076 | (gtk_micro_version != $gtk_config_micro_version)) | |
20077 | { | |
e6cc62c6 | 20078 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20079 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20080 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20081 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
20082 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20083 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20084 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20085 | printf("*** required on your system.\n"); | |
20086 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
20087 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 20088 | } |
21d1c967 GD |
20089 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
20090 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20091 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20092 | { | |
20093 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20094 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20095 | printf("*** library (version %d.%d.%d)\n", | |
20096 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20097 | } | |
20098 | else | |
20099 | { | |
20100 | if ((gtk_major_version > major) || | |
20101 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20102 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20103 | { | |
20104 | return 0; | |
20105 | } | |
20106 | else | |
20107 | { | |
20108 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20109 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20110 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20111 | major, minor, micro); | |
20112 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20113 | printf("***\n"); | |
20114 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20115 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
20116 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20117 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
20118 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
20119 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20120 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20121 | } | |
20122 | } | |
20123 | return 1; | |
20124 | } | |
f79bd02d | 20125 | |
e6cc62c6 VS |
20126 | _ACEOF |
20127 | rm -f conftest$ac_exeext | |
20128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20129 | (eval $ac_link) 2>&5 | |
20130 | ac_status=$? | |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20134 | (eval $ac_try) 2>&5 | |
20135 | ac_status=$? | |
20136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20137 | (exit $ac_status); }; }; then | |
21d1c967 | 20138 | : |
f79bd02d | 20139 | else |
e6cc62c6 VS |
20140 | echo "$as_me: program exited with status $ac_status" >&5 |
20141 | echo "$as_me: failed program was:" >&5 | |
20142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20143 | ||
20144 | ( exit $ac_status ) | |
20145 | no_gtk=yes | |
f79bd02d | 20146 | fi |
e6cc62c6 | 20147 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 20148 | fi |
21d1c967 GD |
20149 | CFLAGS="$ac_save_CFLAGS" |
20150 | LIBS="$ac_save_LIBS" | |
20151 | fi | |
20152 | fi | |
20153 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20154 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20155 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
20156 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 20157 | else |
e6cc62c6 VS |
20158 | echo "$as_me:$LINENO: result: no" >&5 |
20159 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20160 | if test "$PKG_CONFIG" = "no" ; then |
20161 | echo "*** A new enough version of pkg-config was not found." | |
20162 | echo "*** See http://pkgconfig.sourceforge.net" | |
20163 | else | |
20164 | if test -f conf.gtktest ; then | |
20165 | : | |
20166 | else | |
20167 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
20168 | ac_save_CFLAGS="$CFLAGS" |
20169 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
20170 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20171 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20172 | cat >conftest.$ac_ext <<_ACEOF |
20173 | #line $LINENO "configure" | |
20174 | /* confdefs.h. */ | |
20175 | _ACEOF | |
20176 | cat confdefs.h >>conftest.$ac_ext | |
20177 | cat >>conftest.$ac_ext <<_ACEOF | |
20178 | /* end confdefs.h. */ | |
21d1c967 GD |
20179 | |
20180 | #include <gtk/gtk.h> | |
20181 | #include <stdio.h> | |
f79bd02d | 20182 | |
e6cc62c6 VS |
20183 | int |
20184 | main () | |
20185 | { | |
20186 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20187 | ; | |
20188 | return 0; | |
20189 | } | |
20190 | _ACEOF | |
20191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20193 | (eval $ac_link) 2>&5 | |
20194 | ac_status=$? | |
20195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20196 | (exit $ac_status); } && | |
20197 | { ac_try='test -s conftest$ac_exeext' | |
20198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20199 | (eval $ac_try) 2>&5 | |
20200 | ac_status=$? | |
20201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20202 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20203 | echo "*** The test program compiled, but did not run. This usually means" |
20204 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
20205 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
20206 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20207 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20208 | echo "*** is required on your system" | |
20209 | echo "***" | |
20210 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 20211 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 20212 | else |
e6cc62c6 VS |
20213 | echo "$as_me: failed program was:" >&5 |
20214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20215 | ||
20216 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 20217 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 20218 | fi |
e6cc62c6 | 20219 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20220 | CFLAGS="$ac_save_CFLAGS" |
20221 | LIBS="$ac_save_LIBS" | |
20222 | fi | |
20223 | fi | |
20224 | GTK_CFLAGS="" | |
20225 | GTK_LIBS="" | |
20226 | : | |
20227 | fi | |
e6cc62c6 VS |
20228 | |
20229 | ||
21d1c967 | 20230 | rm -f conf.gtktest |
f79bd02d | 20231 | |
2b5f62a0 | 20232 | else |
e6cc62c6 VS |
20233 | |
20234 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20235 | if test "${with_gtk_prefix+set}" = set; then |
20236 | withval="$with_gtk_prefix" | |
20237 | gtk_config_prefix="$withval" | |
20238 | else | |
20239 | gtk_config_prefix="" | |
e6cc62c6 | 20240 | fi; |
f79bd02d | 20241 | |
21d1c967 GD |
20242 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20243 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20244 | withval="$with_gtk_exec_prefix" | |
20245 | gtk_config_exec_prefix="$withval" | |
20246 | else | |
20247 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20248 | fi; |
21d1c967 GD |
20249 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20250 | if test "${enable_gtktest+set}" = set; then | |
20251 | enableval="$enable_gtktest" | |
e6cc62c6 | 20252 | |
21d1c967 GD |
20253 | else |
20254 | enable_gtktest=yes | |
e6cc62c6 | 20255 | fi; |
21d1c967 GD |
20256 | |
20257 | for module in . $GTK_MODULES | |
20258 | do | |
20259 | case "$module" in | |
e6cc62c6 | 20260 | gthread) |
21d1c967 GD |
20261 | gtk_config_args="$gtk_config_args gthread" |
20262 | ;; | |
20263 | esac | |
20264 | done | |
20265 | ||
20266 | if test x$gtk_config_exec_prefix != x ; then | |
20267 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20268 | if test x${GTK_CONFIG+set} != xset ; then | |
20269 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20270 | fi | |
20271 | fi | |
20272 | if test x$gtk_config_prefix != x ; then | |
20273 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20274 | if test x${GTK_CONFIG+set} != xset ; then | |
20275 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20276 | fi | |
20277 | fi | |
20278 | ||
20279 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20280 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20283 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20285 | else |
e6cc62c6 VS |
20286 | case $GTK_CONFIG in |
20287 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20288 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20289 | ;; | |
21d1c967 | 20290 | *) |
e6cc62c6 VS |
20291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20292 | for as_dir in $PATH | |
20293 | do | |
20294 | IFS=$as_save_IFS | |
20295 | test -z "$as_dir" && as_dir=. | |
20296 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20298 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20300 | break 2 | |
20301 | fi | |
20302 | done | |
20303 | done | |
20304 | ||
21d1c967 GD |
20305 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20306 | ;; | |
20307 | esac | |
20308 | fi | |
e6cc62c6 VS |
20309 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20310 | ||
21d1c967 | 20311 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20312 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20313 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20314 | else |
e6cc62c6 VS |
20315 | echo "$as_me:$LINENO: result: no" >&5 |
20316 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20317 | fi |
20318 | ||
20319 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20320 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20321 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20322 | no_gtk="" |
20323 | if test "$GTK_CONFIG" = "no" ; then | |
20324 | no_gtk=yes | |
20325 | else | |
20326 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20327 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20328 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20329 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20330 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20331 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20332 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20333 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20334 | if test "x$enable_gtktest" = "xyes" ; then | |
20335 | ac_save_CFLAGS="$CFLAGS" | |
20336 | ac_save_LIBS="$LIBS" | |
20337 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20338 | LIBS="$GTK_LIBS $LIBS" | |
20339 | rm -f conf.gtktest | |
20340 | if test "$cross_compiling" = yes; then | |
20341 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20342 | else |
e6cc62c6 VS |
20343 | cat >conftest.$ac_ext <<_ACEOF |
20344 | #line $LINENO "configure" | |
20345 | /* confdefs.h. */ | |
20346 | _ACEOF | |
20347 | cat confdefs.h >>conftest.$ac_ext | |
20348 | cat >>conftest.$ac_ext <<_ACEOF | |
20349 | /* end confdefs.h. */ | |
f79bd02d | 20350 | |
21d1c967 GD |
20351 | #include <gtk/gtk.h> |
20352 | #include <stdio.h> | |
20353 | #include <stdlib.h> | |
f79bd02d | 20354 | |
e6cc62c6 | 20355 | int |
21d1c967 GD |
20356 | main () |
20357 | { | |
20358 | int major, minor, micro; | |
20359 | char *tmp_version; | |
20360 | ||
20361 | system ("touch conf.gtktest"); | |
20362 | ||
20363 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20364 | tmp_version = g_strdup("$min_gtk_version"); | |
20365 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20366 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20367 | exit(1); | |
20368 | } | |
90dd450c | 20369 | |
21d1c967 GD |
20370 | if ((gtk_major_version != $gtk_config_major_version) || |
20371 | (gtk_minor_version != $gtk_config_minor_version) || | |
20372 | (gtk_micro_version != $gtk_config_micro_version)) | |
20373 | { | |
e6cc62c6 | 20374 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20375 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20376 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20377 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20378 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20379 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20380 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20381 | printf("*** required on your system.\n"); | |
20382 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20383 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20384 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20385 | } |
21d1c967 GD |
20386 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20387 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20388 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20389 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20390 | { | |
20391 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20392 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20393 | printf("*** library (version %d.%d.%d)\n", | |
20394 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20395 | } | |
20396 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20397 | else | |
20398 | { | |
20399 | if ((gtk_major_version > major) || | |
20400 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20401 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20402 | { | |
20403 | return 0; | |
20404 | } | |
20405 | else | |
20406 | { | |
20407 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20408 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20409 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20410 | major, minor, micro); | |
20411 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20412 | printf("***\n"); | |
20413 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20414 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20415 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20416 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20417 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20418 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20419 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20420 | } | |
20421 | } | |
20422 | return 1; | |
20423 | } | |
20424 | ||
e6cc62c6 VS |
20425 | _ACEOF |
20426 | rm -f conftest$ac_exeext | |
20427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20428 | (eval $ac_link) 2>&5 | |
20429 | ac_status=$? | |
20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20431 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20433 | (eval $ac_try) 2>&5 | |
20434 | ac_status=$? | |
20435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20436 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20437 | : |
20438 | else | |
e6cc62c6 VS |
20439 | echo "$as_me: program exited with status $ac_status" >&5 |
20440 | echo "$as_me: failed program was:" >&5 | |
20441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20442 | ||
20443 | ( exit $ac_status ) | |
20444 | no_gtk=yes | |
21d1c967 | 20445 | fi |
e6cc62c6 | 20446 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20447 | fi |
21d1c967 GD |
20448 | CFLAGS="$ac_save_CFLAGS" |
20449 | LIBS="$ac_save_LIBS" | |
20450 | fi | |
20451 | fi | |
20452 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20453 | echo "$as_me:$LINENO: result: yes" >&5 |
20454 | echo "${ECHO_T}yes" >&6 | |
20455 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20456 | else |
e6cc62c6 VS |
20457 | echo "$as_me:$LINENO: result: no" >&5 |
20458 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20459 | if test "$GTK_CONFIG" = "no" ; then |
20460 | echo "*** The gtk-config script installed by GTK could not be found" | |
20461 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20462 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20463 | echo "*** full path to gtk-config." | |
20464 | else | |
20465 | if test -f conf.gtktest ; then | |
20466 | : | |
20467 | else | |
20468 | echo "*** Could not run GTK test program, checking why..." | |
20469 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20470 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20471 | cat >conftest.$ac_ext <<_ACEOF |
20472 | #line $LINENO "configure" | |
20473 | /* confdefs.h. */ | |
20474 | _ACEOF | |
20475 | cat confdefs.h >>conftest.$ac_ext | |
20476 | cat >>conftest.$ac_ext <<_ACEOF | |
20477 | /* end confdefs.h. */ | |
21d1c967 GD |
20478 | |
20479 | #include <gtk/gtk.h> | |
20480 | #include <stdio.h> | |
20481 | ||
e6cc62c6 VS |
20482 | int |
20483 | main () | |
20484 | { | |
20485 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20486 | ; | |
20487 | return 0; | |
20488 | } | |
20489 | _ACEOF | |
20490 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20492 | (eval $ac_link) 2>&5 | |
20493 | ac_status=$? | |
20494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20495 | (exit $ac_status); } && | |
20496 | { ac_try='test -s conftest$ac_exeext' | |
20497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20498 | (eval $ac_try) 2>&5 | |
20499 | ac_status=$? | |
20500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20501 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20502 | echo "*** The test program compiled, but did not run. This usually means" |
20503 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20504 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20505 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20506 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20507 | echo "*** is required on your system" | |
20508 | echo "***" | |
20509 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20510 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20511 | echo "***" | |
20512 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20513 | echo "*** came with the system with the command" | |
20514 | echo "***" | |
e6cc62c6 | 20515 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20516 | else |
e6cc62c6 VS |
20517 | echo "$as_me: failed program was:" >&5 |
20518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20519 | ||
20520 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20521 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20522 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20523 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20524 | fi |
e6cc62c6 | 20525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20526 | CFLAGS="$ac_save_CFLAGS" |
20527 | LIBS="$ac_save_LIBS" | |
20528 | fi | |
20529 | fi | |
20530 | GTK_CFLAGS="" | |
20531 | GTK_LIBS="" | |
20532 | : | |
20533 | fi | |
e6cc62c6 VS |
20534 | |
20535 | ||
21d1c967 GD |
20536 | rm -f conf.gtktest |
20537 | ||
21d1c967 | 20538 | |
2b5f62a0 | 20539 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20540 | |
20541 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20542 | if test "${with_gtk_prefix+set}" = set; then |
20543 | withval="$with_gtk_prefix" | |
20544 | gtk_config_prefix="$withval" | |
20545 | else | |
20546 | gtk_config_prefix="" | |
e6cc62c6 | 20547 | fi; |
f79bd02d | 20548 | |
21d1c967 GD |
20549 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20550 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20551 | withval="$with_gtk_exec_prefix" | |
20552 | gtk_config_exec_prefix="$withval" | |
20553 | else | |
20554 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20555 | fi; |
21d1c967 GD |
20556 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20557 | if test "${enable_gtktest+set}" = set; then | |
20558 | enableval="$enable_gtktest" | |
e6cc62c6 | 20559 | |
90dd450c | 20560 | else |
21d1c967 | 20561 | enable_gtktest=yes |
e6cc62c6 | 20562 | fi; |
21d1c967 GD |
20563 | |
20564 | for module in . $GTK_MODULES | |
20565 | do | |
20566 | case "$module" in | |
e6cc62c6 | 20567 | gthread) |
21d1c967 GD |
20568 | gtk_config_args="$gtk_config_args gthread" |
20569 | ;; | |
20570 | esac | |
20571 | done | |
20572 | ||
20573 | if test x$gtk_config_exec_prefix != x ; then | |
20574 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20575 | if test x${GTK_CONFIG+set} != xset ; then | |
20576 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20577 | fi | |
20578 | fi | |
20579 | if test x$gtk_config_prefix != x ; then | |
20580 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20581 | if test x${GTK_CONFIG+set} != xset ; then | |
20582 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20583 | fi | |
20584 | fi | |
20585 | ||
20586 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20587 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20590 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20592 | else |
e6cc62c6 VS |
20593 | case $GTK_CONFIG in |
20594 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20595 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20596 | ;; | |
21d1c967 | 20597 | *) |
e6cc62c6 VS |
20598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20599 | for as_dir in $PATH | |
20600 | do | |
20601 | IFS=$as_save_IFS | |
20602 | test -z "$as_dir" && as_dir=. | |
20603 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20604 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20605 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20606 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20607 | break 2 | |
20608 | fi | |
20609 | done | |
20610 | done | |
20611 | ||
21d1c967 GD |
20612 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20613 | ;; | |
20614 | esac | |
20615 | fi | |
e6cc62c6 VS |
20616 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20617 | ||
21d1c967 | 20618 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20619 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20620 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20621 | else |
e6cc62c6 VS |
20622 | echo "$as_me:$LINENO: result: no" >&5 |
20623 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20624 | fi |
20625 | ||
20626 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20627 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20628 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20629 | no_gtk="" |
20630 | if test "$GTK_CONFIG" = "no" ; then | |
20631 | no_gtk=yes | |
20632 | else | |
20633 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20634 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20635 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20636 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20637 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20638 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20639 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20640 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20641 | if test "x$enable_gtktest" = "xyes" ; then | |
20642 | ac_save_CFLAGS="$CFLAGS" | |
20643 | ac_save_LIBS="$LIBS" | |
20644 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20645 | LIBS="$GTK_LIBS $LIBS" | |
20646 | rm -f conf.gtktest | |
20647 | if test "$cross_compiling" = yes; then | |
20648 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20649 | else | |
e6cc62c6 VS |
20650 | cat >conftest.$ac_ext <<_ACEOF |
20651 | #line $LINENO "configure" | |
20652 | /* confdefs.h. */ | |
20653 | _ACEOF | |
20654 | cat confdefs.h >>conftest.$ac_ext | |
20655 | cat >>conftest.$ac_ext <<_ACEOF | |
20656 | /* end confdefs.h. */ | |
21d1c967 GD |
20657 | |
20658 | #include <gtk/gtk.h> | |
20659 | #include <stdio.h> | |
20660 | #include <stdlib.h> | |
20661 | ||
e6cc62c6 | 20662 | int |
21d1c967 GD |
20663 | main () |
20664 | { | |
20665 | int major, minor, micro; | |
20666 | char *tmp_version; | |
20667 | ||
20668 | system ("touch conf.gtktest"); | |
20669 | ||
20670 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20671 | tmp_version = g_strdup("$min_gtk_version"); | |
20672 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20673 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20674 | exit(1); | |
20675 | } | |
20676 | ||
20677 | if ((gtk_major_version != $gtk_config_major_version) || | |
20678 | (gtk_minor_version != $gtk_config_minor_version) || | |
20679 | (gtk_micro_version != $gtk_config_micro_version)) | |
20680 | { | |
e6cc62c6 | 20681 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20682 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20683 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20684 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20685 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20686 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20687 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20688 | printf("*** required on your system.\n"); | |
20689 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20690 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20691 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20692 | } |
21d1c967 GD |
20693 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20694 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20695 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20696 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20697 | { | |
20698 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20699 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20700 | printf("*** library (version %d.%d.%d)\n", | |
20701 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20702 | } | |
20703 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20704 | else | |
20705 | { | |
20706 | if ((gtk_major_version > major) || | |
20707 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20708 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20709 | { | |
20710 | return 0; | |
20711 | } | |
20712 | else | |
20713 | { | |
20714 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20715 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20716 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20717 | major, minor, micro); | |
20718 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20719 | printf("***\n"); | |
20720 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20721 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20722 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20723 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20724 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20725 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20726 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20727 | } | |
20728 | } | |
20729 | return 1; | |
20730 | } | |
20731 | ||
e6cc62c6 VS |
20732 | _ACEOF |
20733 | rm -f conftest$ac_exeext | |
20734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20735 | (eval $ac_link) 2>&5 | |
20736 | ac_status=$? | |
20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20740 | (eval $ac_try) 2>&5 | |
20741 | ac_status=$? | |
20742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20743 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20744 | : |
20745 | else | |
e6cc62c6 VS |
20746 | echo "$as_me: program exited with status $ac_status" >&5 |
20747 | echo "$as_me: failed program was:" >&5 | |
20748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20749 | ||
20750 | ( exit $ac_status ) | |
20751 | no_gtk=yes | |
21d1c967 | 20752 | fi |
e6cc62c6 | 20753 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20754 | fi |
21d1c967 GD |
20755 | CFLAGS="$ac_save_CFLAGS" |
20756 | LIBS="$ac_save_LIBS" | |
20757 | fi | |
20758 | fi | |
20759 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20760 | echo "$as_me:$LINENO: result: yes" >&5 |
20761 | echo "${ECHO_T}yes" >&6 | |
20762 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20763 | else |
e6cc62c6 VS |
20764 | echo "$as_me:$LINENO: result: no" >&5 |
20765 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20766 | if test "$GTK_CONFIG" = "no" ; then |
20767 | echo "*** The gtk-config script installed by GTK could not be found" | |
20768 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20769 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20770 | echo "*** full path to gtk-config." | |
20771 | else | |
20772 | if test -f conf.gtktest ; then | |
20773 | : | |
20774 | else | |
20775 | echo "*** Could not run GTK test program, checking why..." | |
20776 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20777 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20778 | cat >conftest.$ac_ext <<_ACEOF |
20779 | #line $LINENO "configure" | |
20780 | /* confdefs.h. */ | |
20781 | _ACEOF | |
20782 | cat confdefs.h >>conftest.$ac_ext | |
20783 | cat >>conftest.$ac_ext <<_ACEOF | |
20784 | /* end confdefs.h. */ | |
21d1c967 GD |
20785 | |
20786 | #include <gtk/gtk.h> | |
20787 | #include <stdio.h> | |
f79bd02d | 20788 | |
e6cc62c6 VS |
20789 | int |
20790 | main () | |
20791 | { | |
20792 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20793 | ; | |
20794 | return 0; | |
20795 | } | |
20796 | _ACEOF | |
20797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20799 | (eval $ac_link) 2>&5 | |
20800 | ac_status=$? | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); } && | |
20803 | { ac_try='test -s conftest$ac_exeext' | |
20804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20805 | (eval $ac_try) 2>&5 | |
20806 | ac_status=$? | |
20807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20808 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20809 | echo "*** The test program compiled, but did not run. This usually means" |
20810 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20811 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20812 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20813 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20814 | echo "*** is required on your system" | |
20815 | echo "***" | |
20816 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20817 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20818 | echo "***" | |
20819 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20820 | echo "*** came with the system with the command" | |
20821 | echo "***" | |
e6cc62c6 | 20822 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20823 | else |
e6cc62c6 VS |
20824 | echo "$as_me: failed program was:" >&5 |
20825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20826 | ||
20827 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20828 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20829 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20830 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20831 | fi |
e6cc62c6 | 20832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20833 | CFLAGS="$ac_save_CFLAGS" |
20834 | LIBS="$ac_save_LIBS" | |
20835 | fi | |
20836 | fi | |
20837 | GTK_CFLAGS="" | |
20838 | GTK_LIBS="" | |
20839 | : | |
20840 | fi | |
e6cc62c6 VS |
20841 | |
20842 | ||
21d1c967 | 20843 | rm -f conf.gtktest |
f79bd02d | 20844 | |
2b5f62a0 | 20845 | fi |
21d1c967 GD |
20846 | fi |
20847 | ||
20848 | if test -z "$wx_cv_lib_gtk"; then | |
20849 | wx_cv_lib_gtk=none | |
20850 | else | |
20851 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20852 | wx_cv_libs_gtk=$GTK_LIBS | |
20853 | fi | |
e6cc62c6 VS |
20854 | |
20855 | ||
5c6fa7d2 | 20856 | fi |
52127426 | 20857 | |
8284b0c5 | 20858 | |
21d1c967 | 20859 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20860 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20861 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20862 | fi |
20863 | ||
20864 | case "$wx_cv_lib_gtk" in | |
20865 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20866 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20867 | ;; |
20868 | 1.2.7) WXGTK127=1 | |
20869 | WXGTK12=1 | |
20870 | ;; | |
20871 | 1.2.3) WXGTK12=1 | |
20872 | ;; | |
e6cc62c6 VS |
20873 | *) { { echo "$as_me:$LINENO: error: |
20874 | Please check that gtk-config is in path, the directory | |
20875 | where GTK+ libraries are installed (returned by | |
20876 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20877 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20878 | " >&5 | |
20879 | echo "$as_me: error: | |
247f5006 VZ |
20880 | Please check that gtk-config is in path, the directory |
20881 | where GTK+ libraries are installed (returned by | |
20882 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20883 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20884 | " >&2;} |
20885 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20886 | ;; |
20887 | esac | |
20888 | ||
b13cd66e VZ |
20889 | if test "$WXGTK20" = 1; then |
20890 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20891 | |
f09359cf VS |
20892 | succeeded=no |
20893 | ||
20894 | if test -z "$PKG_CONFIG"; then | |
20895 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20896 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20899 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20901 | else |
e6cc62c6 VS |
20902 | case $PKG_CONFIG in |
20903 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20904 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20905 | ;; | |
f09359cf | 20906 | *) |
e6cc62c6 VS |
20907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20908 | for as_dir in $PATH | |
20909 | do | |
20910 | IFS=$as_save_IFS | |
20911 | test -z "$as_dir" && as_dir=. | |
20912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20913 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20914 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20916 | break 2 | |
20917 | fi | |
20918 | done | |
20919 | done | |
20920 | ||
f09359cf VS |
20921 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20922 | ;; | |
20923 | esac | |
20924 | fi | |
e6cc62c6 VS |
20925 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20926 | ||
f09359cf | 20927 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20928 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20929 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20930 | else |
e6cc62c6 VS |
20931 | echo "$as_me:$LINENO: result: no" >&5 |
20932 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20933 | fi |
20934 | ||
20935 | fi | |
20936 | ||
20937 | if test "$PKG_CONFIG" = "no" ; then | |
20938 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20939 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20940 | echo "*** to the full path to pkg-config." | |
20941 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20942 | else | |
20943 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20944 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20945 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20946 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20947 | |
20948 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20949 | echo "$as_me:$LINENO: result: yes" >&5 |
20950 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20951 | succeeded=yes |
20952 | ||
e6cc62c6 VS |
20953 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20954 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20955 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20956 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20957 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20958 | |
e6cc62c6 VS |
20959 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20960 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20961 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20962 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20963 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20964 | else |
20965 | PANGOFT2_CFLAGS="" | |
20966 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20967 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20968 | ## do set a variable so people can do so. |
20969 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20970 | |
f09359cf VS |
20971 | fi |
20972 | ||
e6cc62c6 VS |
20973 | |
20974 | ||
f09359cf VS |
20975 | else |
20976 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20977 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20978 | fi | |
20979 | fi | |
20980 | ||
20981 | if test $succeeded = yes; then | |
e6cc62c6 | 20982 | |
b13cd66e | 20983 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20985 | |
f09359cf | 20986 | else |
e6cc62c6 VS |
20987 | |
20988 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20989 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20990 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20991 | |
20992 | ||
f09359cf VS |
20993 | fi |
20994 | ||
b13cd66e | 20995 | fi |
2b5f62a0 VZ |
20996 | else |
20997 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20998 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20999 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
21000 | wxUSE_UNICODE=no |
21001 | fi | |
21002 | fi | |
21003 | ||
21004 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
21005 | |
21006 | for ac_func in poll | |
2b5f62a0 | 21007 | do |
e6cc62c6 VS |
21008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21009 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21011 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21013 | else | |
21014 | cat >conftest.$ac_ext <<_ACEOF | |
21015 | #line $LINENO "configure" | |
21016 | /* confdefs.h. */ | |
21017 | _ACEOF | |
21018 | cat confdefs.h >>conftest.$ac_ext | |
21019 | cat >>conftest.$ac_ext <<_ACEOF | |
21020 | /* end confdefs.h. */ | |
2b5f62a0 | 21021 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21022 | which can conflict with char $ac_func (); below. |
21023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21024 | <limits.h> exists even on freestanding compilers. */ | |
21025 | #ifdef __STDC__ | |
21026 | # include <limits.h> | |
21027 | #else | |
21028 | # include <assert.h> | |
21029 | #endif | |
2b5f62a0 | 21030 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21031 | #ifdef __cplusplus |
21032 | extern "C" | |
21033 | { | |
21034 | #endif | |
2b5f62a0 | 21035 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21036 | builtin and then its argument prototype would still apply. */ |
21037 | char $ac_func (); | |
2b5f62a0 VZ |
21038 | /* The GNU C library defines this for functions which it implements |
21039 | to always fail with ENOSYS. Some functions are actually named | |
21040 | something starting with __ and the normal name is an alias. */ | |
21041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21042 | choke me | |
21043 | #else | |
e6cc62c6 VS |
21044 | char (*f) () = $ac_func; |
21045 | #endif | |
21046 | #ifdef __cplusplus | |
21047 | } | |
2b5f62a0 VZ |
21048 | #endif |
21049 | ||
e6cc62c6 VS |
21050 | int |
21051 | main () | |
21052 | { | |
21053 | return f != $ac_func; | |
21054 | ; | |
21055 | return 0; | |
21056 | } | |
21057 | _ACEOF | |
21058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21060 | (eval $ac_link) 2>&5 | |
21061 | ac_status=$? | |
21062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21063 | (exit $ac_status); } && | |
21064 | { ac_try='test -s conftest$ac_exeext' | |
21065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21066 | (eval $ac_try) 2>&5 | |
21067 | ac_status=$? | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); }; }; then | |
21070 | eval "$as_ac_var=yes" | |
21071 | else | |
21072 | echo "$as_me: failed program was:" >&5 | |
21073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21074 | ||
21075 | eval "$as_ac_var=no" | |
21076 | fi | |
21077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21078 | fi | |
21079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21080 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21081 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21082 | cat >>confdefs.h <<_ACEOF | |
21083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21084 | _ACEOF | |
2b5f62a0 | 21085 | |
2b5f62a0 VZ |
21086 | fi |
21087 | done | |
21088 | ||
f09359cf VS |
21089 | fi |
21090 | ||
21d1c967 | 21091 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 21092 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
21093 | |
21094 | AFMINSTALL=afminstall | |
21095 | TOOLKIT=GTK | |
21096 | GUIDIST=GTK_DIST | |
21097 | ||
e6cc62c6 VS |
21098 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
21099 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
21100 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
21101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21102 | else |
e6cc62c6 | 21103 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21104 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
21105 | cat >conftest.$ac_ext <<_ACEOF |
21106 | #line $LINENO "configure" | |
21107 | /* confdefs.h. */ | |
21108 | _ACEOF | |
21109 | cat confdefs.h >>conftest.$ac_ext | |
21110 | cat >>conftest.$ac_ext <<_ACEOF | |
21111 | /* end confdefs.h. */ | |
21112 | ||
5c6fa7d2 | 21113 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21114 | #ifdef __cplusplus |
21115 | extern "C" | |
21116 | #endif | |
5c6fa7d2 | 21117 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21118 | builtin and then its argument prototype would still apply. */ |
21119 | char gdk_im_open (); | |
21120 | int | |
21121 | main () | |
21122 | { | |
21123 | gdk_im_open (); | |
21124 | ; | |
21125 | return 0; | |
21126 | } | |
21127 | _ACEOF | |
21128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21130 | (eval $ac_link) 2>&5 | |
21131 | ac_status=$? | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); } && | |
21134 | { ac_try='test -s conftest$ac_exeext' | |
21135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21136 | (eval $ac_try) 2>&5 | |
21137 | ac_status=$? | |
21138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21139 | (exit $ac_status); }; }; then | |
21140 | ac_cv_lib_gdk_gdk_im_open=yes | |
21141 | else | |
21142 | echo "$as_me: failed program was:" >&5 | |
21143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21144 | ||
21145 | ac_cv_lib_gdk_gdk_im_open=no | |
21146 | fi | |
21147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21148 | LIBS=$ac_check_lib_save_LIBS | |
21149 | fi | |
21150 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
21151 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
21152 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
21153 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21154 | #define HAVE_XIM 1 |
e6cc62c6 | 21155 | _ACEOF |
21d1c967 | 21156 | |
90dd450c | 21157 | fi |
1e6feb95 | 21158 | |
21d1c967 | 21159 | fi |
1e6feb95 | 21160 | |
21d1c967 | 21161 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
21162 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
21163 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 21164 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
21165 | echo "$as_me:$LINENO: result: not found" >&5 |
21166 | echo "${ECHO_T}not found" >&6 | |
21167 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
21168 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
21169 | { (exit 1); exit 1; }; } | |
21d1c967 | 21170 | else |
e6cc62c6 VS |
21171 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
21172 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
21173 | fi |
21174 | ||
e6cc62c6 VS |
21175 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
21176 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
21177 | case "${host}" in |
21178 | *-*-linux* ) | |
63a76696 VS |
21179 | if test "x$wxUSE_SHARED" = xyes ; then |
21180 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
21181 | else | |
21182 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
21183 | fi | |
21d1c967 GD |
21184 | ;; |
21185 | *-pc-msdosdjgpp ) | |
63a76696 | 21186 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
21187 | ;; |
21188 | *) | |
e6cc62c6 VS |
21189 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
21190 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
21191 | { (exit 1); exit 1; }; } | |
21d1c967 | 21192 | esac |
1e6feb95 | 21193 | |
21d1c967 | 21194 | mgl_lib_type="" |
63a76696 VS |
21195 | mgl_os="" |
21196 | ||
21197 | for mgl_os_i in $mgl_os_candidates ; do | |
21198 | if test "x$mgl_os" = x ; then | |
21199 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
21200 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
21201 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
21202 | mgl_lib_type=debug | |
21203 | mgl_os=$mgl_os_i | |
21204 | fi | |
21205 | fi | |
21206 | if test "x$mgl_lib_type" = x ; then | |
21207 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
21208 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
21209 | mgl_lib_type=release | |
21210 | mgl_os=$mgl_os_i | |
21211 | fi | |
21212 | fi | |
21d1c967 | 21213 | fi |
63a76696 | 21214 | done |
2224580a | 21215 | |
63a76696 | 21216 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
21217 | echo "$as_me:$LINENO: result: not found" >&5 |
21218 | echo "${ECHO_T}not found" >&6 | |
21219 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
21220 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
21221 | { (exit 1); exit 1; }; } | |
63a76696 | 21222 | fi |
e6cc62c6 VS |
21223 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
21224 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 21225 | |
1d1b75ac VZ |
21226 | wxUSE_UNIVERSAL="yes" |
21227 | ||
21d1c967 GD |
21228 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
21229 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
21230 | ||
90dd450c | 21231 | AFMINSTALL=afminstall |
21d1c967 GD |
21232 | TOOLKIT=MGL |
21233 | GUIDIST=MGL_DIST | |
21234 | fi | |
dad6c0ea | 21235 | |
21d1c967 | 21236 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
21237 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
21238 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 21239 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
21240 | echo "$as_me:$LINENO: result: not found" >&5 |
21241 | echo "${ECHO_T}not found" >&6 | |
21242 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
21243 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
21244 | { (exit 1); exit 1; }; } | |
21d1c967 | 21245 | else |
e6cc62c6 VS |
21246 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
21247 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21248 | fi |
f6bcfd97 | 21249 | |
21d1c967 | 21250 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21251 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21252 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21253 | else |
e6cc62c6 VS |
21254 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21255 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21256 | { (exit 1); exit 1; }; } | |
90dd450c | 21257 | fi |
0b2effe9 | 21258 | |
21d1c967 GD |
21259 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21260 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21261 | ||
1d1b75ac VZ |
21262 | wxUSE_UNIVERSAL="yes" |
21263 | ||
21d1c967 GD |
21264 | AFMINSTALL=afminstall |
21265 | TOOLKIT=MICROWIN | |
21266 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21267 | |
21268 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21269 | fi |
f6bcfd97 | 21270 | |
21d1c967 | 21271 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21272 | echo "$as_me:$LINENO: checking for X" >&5 |
21273 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21274 | ||
d8356fa3 | 21275 | |
21d1c967 GD |
21276 | # Check whether --with-x or --without-x was given. |
21277 | if test "${with_x+set}" = set; then | |
21278 | withval="$with_x" | |
2224580a | 21279 | |
e6cc62c6 | 21280 | fi; |
21d1c967 GD |
21281 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21282 | if test "x$with_x" = xno; then | |
21283 | # The user explicitly disabled X. | |
21284 | have_x=disabled | |
21285 | else | |
21286 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21287 | # Both variables are already set. | |
21288 | have_x=yes | |
21289 | else | |
e6cc62c6 VS |
21290 | if test "${ac_cv_have_x+set}" = set; then |
21291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21292 | else |
21293 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21294 | ac_x_includes=no ac_x_libraries=no |
21295 | rm -fr conftest.dir | |
21296 | if mkdir conftest.dir; then | |
21297 | cd conftest.dir | |
21d1c967 | 21298 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21299 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21300 | acfindx: |
21301 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21302 | _ACEOF |
21d1c967 GD |
21303 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21304 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21305 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21306 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21307 | for ac_extension in a so sl; do | |
21308 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 21309 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
21310 | ac_im_usrlibdir=$ac_im_libdir; break |
21311 | fi | |
21312 | done | |
21313 | # Screen out bogus values from the imake configuration. They are | |
21314 | # bogus both because they are the default anyway, and because | |
21315 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21316 | case $ac_im_incroot in |
21d1c967 | 21317 | /usr/include) ;; |
e6cc62c6 | 21318 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21319 | esac |
e6cc62c6 | 21320 | case $ac_im_usrlibdir in |
21d1c967 | 21321 | /usr/lib | /lib) ;; |
e6cc62c6 | 21322 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21323 | esac |
21324 | fi | |
21325 | cd .. | |
e6cc62c6 | 21326 | rm -fr conftest.dir |
21d1c967 | 21327 | fi |
10f2d63a | 21328 | |
e6cc62c6 VS |
21329 | # Standard set of common directories for X headers. |
21330 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21331 | ac_x_header_dirs=' | |
21332 | /usr/X11/include | |
21333 | /usr/X11R6/include | |
21334 | /usr/X11R5/include | |
21335 | /usr/X11R4/include | |
21336 | ||
21337 | /usr/include/X11 | |
21338 | /usr/include/X11R6 | |
21339 | /usr/include/X11R5 | |
21340 | /usr/include/X11R4 | |
21341 | ||
21342 | /usr/local/X11/include | |
21343 | /usr/local/X11R6/include | |
21344 | /usr/local/X11R5/include | |
21345 | /usr/local/X11R4/include | |
21346 | ||
21347 | /usr/local/include/X11 | |
21348 | /usr/local/include/X11R6 | |
21349 | /usr/local/include/X11R5 | |
21350 | /usr/local/include/X11R4 | |
21351 | ||
21352 | /usr/X386/include | |
21353 | /usr/x386/include | |
21354 | /usr/XFree86/include/X11 | |
21355 | ||
21356 | /usr/include | |
21357 | /usr/local/include | |
21358 | /usr/unsupported/include | |
21359 | /usr/athena/include | |
21360 | /usr/local/x11r5/include | |
21361 | /usr/lpp/Xamples/include | |
21362 | ||
21363 | /usr/openwin/include | |
21364 | /usr/openwin/share/include' | |
21365 | ||
21366 | if test "$ac_x_includes" = no; then | |
21367 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21368 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
21369 | cat >conftest.$ac_ext <<_ACEOF |
21370 | #line $LINENO "configure" | |
21371 | /* confdefs.h. */ | |
21372 | _ACEOF | |
21373 | cat confdefs.h >>conftest.$ac_ext | |
21374 | cat >>conftest.$ac_ext <<_ACEOF | |
21375 | /* end confdefs.h. */ | |
21376 | #include <X11/Intrinsic.h> | |
21377 | _ACEOF | |
21378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21380 | ac_status=$? | |
21381 | grep -v '^ *+' conftest.er1 >conftest.err | |
21382 | rm -f conftest.er1 | |
21383 | cat conftest.err >&5 | |
21384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21385 | (exit $ac_status); } >/dev/null; then | |
21386 | if test -s conftest.err; then | |
21387 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21388 | else | |
21389 | ac_cpp_err= | |
21390 | fi | |
21391 | else | |
21392 | ac_cpp_err=yes | |
21393 | fi | |
21394 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21395 | # We can compile using X headers with no special include directory. |
21396 | ac_x_includes= | |
90dd450c | 21397 | else |
e6cc62c6 VS |
21398 | echo "$as_me: failed program was:" >&5 |
21399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21400 | ||
21401 | for ac_dir in $ac_x_header_dirs; do | |
21402 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21403 | ac_x_includes=$ac_dir | |
21404 | break | |
21405 | fi | |
21406 | done | |
3a922bb4 | 21407 | fi |
e6cc62c6 VS |
21408 | rm -f conftest.err conftest.$ac_ext |
21409 | fi # $ac_x_includes = no | |
10f2d63a | 21410 | |
e6cc62c6 | 21411 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21412 | # Check for the libraries. |
21d1c967 GD |
21413 | # See if we find them without any special options. |
21414 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21415 | ac_save_LIBS=$LIBS |
21416 | LIBS="-lXt $LIBS" | |
21417 | cat >conftest.$ac_ext <<_ACEOF | |
21418 | #line $LINENO "configure" | |
21419 | /* confdefs.h. */ | |
21420 | _ACEOF | |
21421 | cat confdefs.h >>conftest.$ac_ext | |
21422 | cat >>conftest.$ac_ext <<_ACEOF | |
21423 | /* end confdefs.h. */ | |
21424 | #include <X11/Intrinsic.h> | |
21425 | int | |
21426 | main () | |
21427 | { | |
21428 | XtMalloc (0) | |
21429 | ; | |
21430 | return 0; | |
21431 | } | |
21432 | _ACEOF | |
21433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21435 | (eval $ac_link) 2>&5 | |
21436 | ac_status=$? | |
21437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21438 | (exit $ac_status); } && | |
21439 | { ac_try='test -s conftest$ac_exeext' | |
21440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21441 | (eval $ac_try) 2>&5 | |
21442 | ac_status=$? | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); }; }; then | |
21445 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21446 | # We can link X programs with no special library path. |
21447 | ac_x_libraries= | |
3a922bb4 | 21448 | else |
e6cc62c6 VS |
21449 | echo "$as_me: failed program was:" >&5 |
21450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21451 | ||
21452 | LIBS=$ac_save_LIBS | |
21453 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21454 | do |
e6cc62c6 | 21455 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21456 | for ac_extension in a so sl; do |
e6cc62c6 | 21457 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21458 | ac_x_libraries=$ac_dir |
21459 | break 2 | |
21460 | fi | |
21461 | done | |
21462 | done | |
3a922bb4 | 21463 | fi |
e6cc62c6 VS |
21464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21465 | fi # $ac_x_libraries = no | |
90dd450c | 21466 | |
e6cc62c6 | 21467 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21468 | # Didn't find X anywhere. Cache the known absence of X. |
21469 | ac_cv_have_x="have_x=no" | |
21470 | else | |
21471 | # Record where we found X for the cache. | |
21472 | ac_cv_have_x="have_x=yes \ | |
21473 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21474 | fi |
21d1c967 | 21475 | fi |
e6cc62c6 | 21476 | |
21d1c967 GD |
21477 | fi |
21478 | eval "$ac_cv_have_x" | |
21479 | fi # $with_x != no | |
90dd450c | 21480 | |
21d1c967 | 21481 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21482 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21483 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21484 | no_x=yes |
21485 | else | |
21486 | # If each of the values was on the command line, it overrides each guess. | |
21487 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21488 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21489 | # Update the cache value to reflect the command line values. | |
21490 | ac_cv_have_x="have_x=yes \ | |
21491 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21492 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21493 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21494 | fi |
90dd450c | 21495 | |
21d1c967 | 21496 | if test "$no_x" = yes; then |
90dd450c | 21497 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21498 | |
21499 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21500 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21501 | _ACEOF |
90dd450c VZ |
21502 | |
21503 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21504 | else | |
21505 | if test -n "$x_includes"; then | |
21506 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21507 | fi |
3a922bb4 | 21508 | |
90dd450c VZ |
21509 | # It would also be nice to do this for all -L options, not just this one. |
21510 | if test -n "$x_libraries"; then | |
21511 | X_LIBS="$X_LIBS -L$x_libraries" | |
21512 | # For Solaris; some versions of Sun CC require a space after -R and | |
21513 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21514 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21515 | "SunOS 5"*) |
e6cc62c6 VS |
21516 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21517 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21518 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21519 | cat >conftest.$ac_ext <<_ACEOF | |
21520 | #line $LINENO "configure" | |
21521 | /* confdefs.h. */ | |
21522 | _ACEOF | |
21523 | cat confdefs.h >>conftest.$ac_ext | |
21524 | cat >>conftest.$ac_ext <<_ACEOF | |
21525 | /* end confdefs.h. */ | |
21526 | ||
21527 | int | |
21528 | main () | |
21529 | { | |
90dd450c | 21530 | |
e6cc62c6 VS |
21531 | ; |
21532 | return 0; | |
21533 | } | |
21534 | _ACEOF | |
21535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21537 | (eval $ac_link) 2>&5 | |
21538 | ac_status=$? | |
21539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21540 | (exit $ac_status); } && | |
21541 | { ac_try='test -s conftest$ac_exeext' | |
21542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21543 | (eval $ac_try) 2>&5 | |
21544 | ac_status=$? | |
21545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21546 | (exit $ac_status); }; }; then | |
90dd450c | 21547 | ac_R_nospace=yes |
3a922bb4 | 21548 | else |
e6cc62c6 VS |
21549 | echo "$as_me: failed program was:" >&5 |
21550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21551 | ||
21552 | ac_R_nospace=no | |
3a922bb4 | 21553 | fi |
e6cc62c6 | 21554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21555 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21556 | echo "$as_me:$LINENO: result: no" >&5 |
21557 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21558 | X_LIBS="$X_LIBS -R$x_libraries" |
21559 | else | |
21560 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21561 | cat >conftest.$ac_ext <<_ACEOF |
21562 | #line $LINENO "configure" | |
21563 | /* confdefs.h. */ | |
21564 | _ACEOF | |
21565 | cat confdefs.h >>conftest.$ac_ext | |
21566 | cat >>conftest.$ac_ext <<_ACEOF | |
21567 | /* end confdefs.h. */ | |
21568 | ||
21569 | int | |
21570 | main () | |
21571 | { | |
6f754473 | 21572 | |
e6cc62c6 VS |
21573 | ; |
21574 | return 0; | |
21575 | } | |
21576 | _ACEOF | |
21577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21579 | (eval $ac_link) 2>&5 | |
21580 | ac_status=$? | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); } && | |
21583 | { ac_try='test -s conftest$ac_exeext' | |
21584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21585 | (eval $ac_try) 2>&5 | |
21586 | ac_status=$? | |
21587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21588 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21589 | ac_R_space=yes |
21590 | else | |
e6cc62c6 VS |
21591 | echo "$as_me: failed program was:" >&5 |
21592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21593 | ||
21594 | ac_R_space=no | |
90dd450c | 21595 | fi |
e6cc62c6 | 21596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21597 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21598 | echo "$as_me:$LINENO: result: yes" >&5 |
21599 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21600 | X_LIBS="$X_LIBS -R $x_libraries" |
21601 | else | |
e6cc62c6 VS |
21602 | echo "$as_me:$LINENO: result: neither works" >&5 |
21603 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21604 | fi |
21605 | fi | |
e6cc62c6 | 21606 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21607 | esac |
21608 | fi | |
21609 | ||
21610 | # Check for system-dependent libraries X programs must link with. | |
21611 | # Do this before checking for the system-independent R6 libraries | |
21612 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21613 | |
90dd450c VZ |
21614 | if test "$ISC" = yes; then |
21615 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21616 | else | |
e6cc62c6 VS |
21617 | # Martyn Johnson says this is needed for Ultrix, if the X |
21618 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21619 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21620 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21621 | cat >conftest.$ac_ext <<_ACEOF | |
21622 | #line $LINENO "configure" | |
21623 | /* confdefs.h. */ | |
21624 | _ACEOF | |
21625 | cat confdefs.h >>conftest.$ac_ext | |
21626 | cat >>conftest.$ac_ext <<_ACEOF | |
21627 | /* end confdefs.h. */ | |
21628 | ||
247f5006 | 21629 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21630 | #ifdef __cplusplus |
21631 | extern "C" | |
21632 | #endif | |
247f5006 | 21633 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21634 | builtin and then its argument prototype would still apply. */ |
21635 | char XOpenDisplay (); | |
21636 | int | |
21637 | main () | |
21638 | { | |
21639 | XOpenDisplay (); | |
21640 | ; | |
21641 | return 0; | |
21642 | } | |
21643 | _ACEOF | |
21644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21646 | (eval $ac_link) 2>&5 | |
21647 | ac_status=$? | |
21648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21649 | (exit $ac_status); } && | |
21650 | { ac_try='test -s conftest$ac_exeext' | |
21651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21652 | (eval $ac_try) 2>&5 | |
21653 | ac_status=$? | |
21654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21655 | (exit $ac_status); }; }; then | |
21656 | : | |
21657 | else | |
21658 | echo "$as_me: failed program was:" >&5 | |
21659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21660 | |
e6cc62c6 VS |
21661 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21662 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21663 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21665 | else |
e6cc62c6 VS |
21666 | ac_check_lib_save_LIBS=$LIBS |
21667 | LIBS="-ldnet $LIBS" | |
21668 | cat >conftest.$ac_ext <<_ACEOF | |
21669 | #line $LINENO "configure" | |
21670 | /* confdefs.h. */ | |
21671 | _ACEOF | |
21672 | cat confdefs.h >>conftest.$ac_ext | |
21673 | cat >>conftest.$ac_ext <<_ACEOF | |
21674 | /* end confdefs.h. */ | |
a0b9e27f | 21675 | |
e6cc62c6 VS |
21676 | /* Override any gcc2 internal prototype to avoid an error. */ |
21677 | #ifdef __cplusplus | |
21678 | extern "C" | |
21679 | #endif | |
21680 | /* We use char because int might match the return type of a gcc2 | |
21681 | builtin and then its argument prototype would still apply. */ | |
21682 | char dnet_ntoa (); | |
21683 | int | |
21684 | main () | |
21685 | { | |
21686 | dnet_ntoa (); | |
21687 | ; | |
21688 | return 0; | |
21689 | } | |
21690 | _ACEOF | |
21691 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21693 | (eval $ac_link) 2>&5 | |
21694 | ac_status=$? | |
21695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21696 | (exit $ac_status); } && | |
21697 | { ac_try='test -s conftest$ac_exeext' | |
21698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21699 | (eval $ac_try) 2>&5 | |
21700 | ac_status=$? | |
21701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21702 | (exit $ac_status); }; }; then | |
21703 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21704 | else | |
21705 | echo "$as_me: failed program was:" >&5 | |
21706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21707 | ||
21708 | ac_cv_lib_dnet_dnet_ntoa=no | |
21709 | fi | |
21710 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21711 | LIBS=$ac_check_lib_save_LIBS | |
21712 | fi | |
21713 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21714 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21715 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21716 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21717 | fi |
21718 | ||
90dd450c | 21719 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21720 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21721 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21722 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21724 | else |
e6cc62c6 | 21725 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21726 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21727 | cat >conftest.$ac_ext <<_ACEOF |
21728 | #line $LINENO "configure" | |
21729 | /* confdefs.h. */ | |
21730 | _ACEOF | |
21731 | cat confdefs.h >>conftest.$ac_ext | |
21732 | cat >>conftest.$ac_ext <<_ACEOF | |
21733 | /* end confdefs.h. */ | |
21734 | ||
90dd450c | 21735 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21736 | #ifdef __cplusplus |
21737 | extern "C" | |
21738 | #endif | |
90dd450c | 21739 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21740 | builtin and then its argument prototype would still apply. */ |
21741 | char dnet_ntoa (); | |
21742 | int | |
21743 | main () | |
21744 | { | |
21745 | dnet_ntoa (); | |
21746 | ; | |
21747 | return 0; | |
21748 | } | |
21749 | _ACEOF | |
21750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21752 | (eval $ac_link) 2>&5 | |
21753 | ac_status=$? | |
21754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21755 | (exit $ac_status); } && | |
21756 | { ac_try='test -s conftest$ac_exeext' | |
21757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21758 | (eval $ac_try) 2>&5 | |
21759 | ac_status=$? | |
21760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21761 | (exit $ac_status); }; }; then | |
21762 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21763 | else | |
21764 | echo "$as_me: failed program was:" >&5 | |
21765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21766 | ||
21767 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21768 | fi | |
21769 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21770 | LIBS=$ac_check_lib_save_LIBS | |
21771 | fi | |
21772 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21773 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21774 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21775 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21776 | fi |
21777 | ||
90dd450c | 21778 | fi |
e6cc62c6 VS |
21779 | fi |
21780 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21781 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21782 | |
90dd450c VZ |
21783 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21784 | # to get the SysV transport functions. | |
e6cc62c6 | 21785 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21786 | # needs -lnsl. |
21787 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21788 | # on Irix 5.2, according to T.E. Dickey. |
21789 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21790 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21791 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21792 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21793 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21795 | else | |
21796 | cat >conftest.$ac_ext <<_ACEOF | |
21797 | #line $LINENO "configure" | |
21798 | /* confdefs.h. */ | |
21799 | _ACEOF | |
21800 | cat confdefs.h >>conftest.$ac_ext | |
21801 | cat >>conftest.$ac_ext <<_ACEOF | |
21802 | /* end confdefs.h. */ | |
90dd450c | 21803 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21804 | which can conflict with char gethostbyname (); below. |
21805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21806 | <limits.h> exists even on freestanding compilers. */ | |
21807 | #ifdef __STDC__ | |
21808 | # include <limits.h> | |
21809 | #else | |
21810 | # include <assert.h> | |
21811 | #endif | |
90dd450c | 21812 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21813 | #ifdef __cplusplus |
21814 | extern "C" | |
21815 | { | |
21816 | #endif | |
90dd450c | 21817 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21818 | builtin and then its argument prototype would still apply. */ |
21819 | char gethostbyname (); | |
90dd450c VZ |
21820 | /* The GNU C library defines this for functions which it implements |
21821 | to always fail with ENOSYS. Some functions are actually named | |
21822 | something starting with __ and the normal name is an alias. */ | |
21823 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21824 | choke me | |
21825 | #else | |
e6cc62c6 VS |
21826 | char (*f) () = gethostbyname; |
21827 | #endif | |
21828 | #ifdef __cplusplus | |
21829 | } | |
90dd450c | 21830 | #endif |
978f1259 | 21831 | |
e6cc62c6 VS |
21832 | int |
21833 | main () | |
21834 | { | |
21835 | return f != gethostbyname; | |
21836 | ; | |
21837 | return 0; | |
21838 | } | |
21839 | _ACEOF | |
21840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21842 | (eval $ac_link) 2>&5 | |
21843 | ac_status=$? | |
21844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21845 | (exit $ac_status); } && | |
21846 | { ac_try='test -s conftest$ac_exeext' | |
21847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21848 | (eval $ac_try) 2>&5 | |
21849 | ac_status=$? | |
21850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21851 | (exit $ac_status); }; }; then | |
21852 | ac_cv_func_gethostbyname=yes | |
21853 | else | |
21854 | echo "$as_me: failed program was:" >&5 | |
21855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21856 | ||
21857 | ac_cv_func_gethostbyname=no | |
21858 | fi | |
21859 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21860 | fi | |
21861 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21862 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21863 | |
90dd450c | 21864 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21865 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21866 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21867 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21869 | else |
e6cc62c6 | 21870 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21871 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21872 | cat >conftest.$ac_ext <<_ACEOF |
21873 | #line $LINENO "configure" | |
21874 | /* confdefs.h. */ | |
21875 | _ACEOF | |
21876 | cat confdefs.h >>conftest.$ac_ext | |
21877 | cat >>conftest.$ac_ext <<_ACEOF | |
21878 | /* end confdefs.h. */ | |
21879 | ||
90dd450c | 21880 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21881 | #ifdef __cplusplus |
21882 | extern "C" | |
21883 | #endif | |
90dd450c | 21884 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21885 | builtin and then its argument prototype would still apply. */ |
21886 | char gethostbyname (); | |
21887 | int | |
21888 | main () | |
21889 | { | |
21890 | gethostbyname (); | |
21891 | ; | |
21892 | return 0; | |
21893 | } | |
21894 | _ACEOF | |
21895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21897 | (eval $ac_link) 2>&5 | |
21898 | ac_status=$? | |
21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21900 | (exit $ac_status); } && | |
21901 | { ac_try='test -s conftest$ac_exeext' | |
21902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21903 | (eval $ac_try) 2>&5 | |
21904 | ac_status=$? | |
21905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21906 | (exit $ac_status); }; }; then | |
21907 | ac_cv_lib_nsl_gethostbyname=yes | |
21908 | else | |
21909 | echo "$as_me: failed program was:" >&5 | |
21910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21911 | ||
21912 | ac_cv_lib_nsl_gethostbyname=no | |
21913 | fi | |
21914 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21915 | LIBS=$ac_check_lib_save_LIBS | |
21916 | fi | |
21917 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21918 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21919 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21921 | fi |
247f5006 | 21922 | |
e6cc62c6 VS |
21923 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21924 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21925 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21926 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21928 | else |
e6cc62c6 VS |
21929 | ac_check_lib_save_LIBS=$LIBS |
21930 | LIBS="-lbsd $LIBS" | |
21931 | cat >conftest.$ac_ext <<_ACEOF | |
21932 | #line $LINENO "configure" | |
21933 | /* confdefs.h. */ | |
21934 | _ACEOF | |
21935 | cat confdefs.h >>conftest.$ac_ext | |
21936 | cat >>conftest.$ac_ext <<_ACEOF | |
21937 | /* end confdefs.h. */ | |
21938 | ||
21939 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21940 | #ifdef __cplusplus | |
21941 | extern "C" | |
21942 | #endif | |
21943 | /* We use char because int might match the return type of a gcc2 | |
21944 | builtin and then its argument prototype would still apply. */ | |
21945 | char gethostbyname (); | |
21946 | int | |
21947 | main () | |
21948 | { | |
21949 | gethostbyname (); | |
21950 | ; | |
21951 | return 0; | |
21952 | } | |
21953 | _ACEOF | |
21954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21956 | (eval $ac_link) 2>&5 | |
21957 | ac_status=$? | |
21958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21959 | (exit $ac_status); } && | |
21960 | { ac_try='test -s conftest$ac_exeext' | |
21961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21962 | (eval $ac_try) 2>&5 | |
21963 | ac_status=$? | |
21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21965 | (exit $ac_status); }; }; then | |
21966 | ac_cv_lib_bsd_gethostbyname=yes | |
21967 | else | |
21968 | echo "$as_me: failed program was:" >&5 | |
21969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21970 | ||
21971 | ac_cv_lib_bsd_gethostbyname=no | |
21972 | fi | |
21973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21974 | LIBS=$ac_check_lib_save_LIBS | |
21975 | fi | |
21976 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21977 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21978 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21979 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21980 | fi |
b12915c1 | 21981 | |
e6cc62c6 | 21982 | fi |
90dd450c VZ |
21983 | fi |
21984 | ||
21985 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21986 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21987 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21988 | # on later versions), says Simon Leinen: it contains gethostby* |
21989 | # variants that don't use the name server (or something). -lsocket | |
21990 | # must be given before -lnsl if both are needed. We assume that | |
21991 | # if connect needs -lnsl, so does gethostbyname. | |
21992 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21993 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21994 | if test "${ac_cv_func_connect+set}" = set; then | |
21995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21996 | else | |
21997 | cat >conftest.$ac_ext <<_ACEOF | |
21998 | #line $LINENO "configure" | |
21999 | /* confdefs.h. */ | |
22000 | _ACEOF | |
22001 | cat confdefs.h >>conftest.$ac_ext | |
22002 | cat >>conftest.$ac_ext <<_ACEOF | |
22003 | /* end confdefs.h. */ | |
90dd450c | 22004 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22005 | which can conflict with char connect (); below. |
22006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22007 | <limits.h> exists even on freestanding compilers. */ | |
22008 | #ifdef __STDC__ | |
22009 | # include <limits.h> | |
22010 | #else | |
22011 | # include <assert.h> | |
22012 | #endif | |
90dd450c | 22013 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22014 | #ifdef __cplusplus |
22015 | extern "C" | |
22016 | { | |
22017 | #endif | |
90dd450c | 22018 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22019 | builtin and then its argument prototype would still apply. */ |
22020 | char connect (); | |
90dd450c VZ |
22021 | /* The GNU C library defines this for functions which it implements |
22022 | to always fail with ENOSYS. Some functions are actually named | |
22023 | something starting with __ and the normal name is an alias. */ | |
22024 | #if defined (__stub_connect) || defined (__stub___connect) | |
22025 | choke me | |
22026 | #else | |
e6cc62c6 VS |
22027 | char (*f) () = connect; |
22028 | #endif | |
22029 | #ifdef __cplusplus | |
22030 | } | |
90dd450c VZ |
22031 | #endif |
22032 | ||
e6cc62c6 VS |
22033 | int |
22034 | main () | |
22035 | { | |
22036 | return f != connect; | |
22037 | ; | |
22038 | return 0; | |
22039 | } | |
22040 | _ACEOF | |
22041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22043 | (eval $ac_link) 2>&5 | |
22044 | ac_status=$? | |
22045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22046 | (exit $ac_status); } && | |
22047 | { ac_try='test -s conftest$ac_exeext' | |
22048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22049 | (eval $ac_try) 2>&5 | |
22050 | ac_status=$? | |
22051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22052 | (exit $ac_status); }; }; then | |
22053 | ac_cv_func_connect=yes | |
22054 | else | |
22055 | echo "$as_me: failed program was:" >&5 | |
22056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22057 | ||
22058 | ac_cv_func_connect=no | |
22059 | fi | |
22060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22061 | fi | |
22062 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
22063 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 22064 | |
90dd450c | 22065 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
22066 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
22067 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
22068 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
22069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22070 | else |
e6cc62c6 | 22071 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22072 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22073 | cat >conftest.$ac_ext <<_ACEOF |
22074 | #line $LINENO "configure" | |
22075 | /* confdefs.h. */ | |
22076 | _ACEOF | |
22077 | cat confdefs.h >>conftest.$ac_ext | |
22078 | cat >>conftest.$ac_ext <<_ACEOF | |
22079 | /* end confdefs.h. */ | |
22080 | ||
90dd450c | 22081 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22082 | #ifdef __cplusplus |
22083 | extern "C" | |
22084 | #endif | |
90dd450c | 22085 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22086 | builtin and then its argument prototype would still apply. */ |
22087 | char connect (); | |
22088 | int | |
22089 | main () | |
22090 | { | |
22091 | connect (); | |
22092 | ; | |
22093 | return 0; | |
22094 | } | |
22095 | _ACEOF | |
22096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22098 | (eval $ac_link) 2>&5 | |
22099 | ac_status=$? | |
22100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22101 | (exit $ac_status); } && | |
22102 | { ac_try='test -s conftest$ac_exeext' | |
22103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22104 | (eval $ac_try) 2>&5 | |
22105 | ac_status=$? | |
22106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22107 | (exit $ac_status); }; }; then | |
22108 | ac_cv_lib_socket_connect=yes | |
22109 | else | |
22110 | echo "$as_me: failed program was:" >&5 | |
22111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22112 | ||
22113 | ac_cv_lib_socket_connect=no | |
22114 | fi | |
22115 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22116 | LIBS=$ac_check_lib_save_LIBS | |
22117 | fi | |
22118 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
22119 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
22120 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 22121 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 22122 | fi |
77e13408 | 22123 | |
90dd450c | 22124 | fi |
25d0687a | 22125 | |
e6cc62c6 VS |
22126 | # Guillermo Gomez says -lposix is necessary on A/UX. |
22127 | echo "$as_me:$LINENO: checking for remove" >&5 | |
22128 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
22129 | if test "${ac_cv_func_remove+set}" = set; then | |
22130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22131 | else | |
22132 | cat >conftest.$ac_ext <<_ACEOF | |
22133 | #line $LINENO "configure" | |
22134 | /* confdefs.h. */ | |
22135 | _ACEOF | |
22136 | cat confdefs.h >>conftest.$ac_ext | |
22137 | cat >>conftest.$ac_ext <<_ACEOF | |
22138 | /* end confdefs.h. */ | |
90dd450c | 22139 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22140 | which can conflict with char remove (); below. |
22141 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22142 | <limits.h> exists even on freestanding compilers. */ | |
22143 | #ifdef __STDC__ | |
22144 | # include <limits.h> | |
22145 | #else | |
22146 | # include <assert.h> | |
22147 | #endif | |
90dd450c | 22148 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22149 | #ifdef __cplusplus |
22150 | extern "C" | |
22151 | { | |
22152 | #endif | |
90dd450c | 22153 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22154 | builtin and then its argument prototype would still apply. */ |
22155 | char remove (); | |
90dd450c VZ |
22156 | /* The GNU C library defines this for functions which it implements |
22157 | to always fail with ENOSYS. Some functions are actually named | |
22158 | something starting with __ and the normal name is an alias. */ | |
22159 | #if defined (__stub_remove) || defined (__stub___remove) | |
22160 | choke me | |
22161 | #else | |
e6cc62c6 VS |
22162 | char (*f) () = remove; |
22163 | #endif | |
22164 | #ifdef __cplusplus | |
22165 | } | |
90dd450c | 22166 | #endif |
55e80573 | 22167 | |
e6cc62c6 VS |
22168 | int |
22169 | main () | |
22170 | { | |
22171 | return f != remove; | |
22172 | ; | |
22173 | return 0; | |
22174 | } | |
22175 | _ACEOF | |
22176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22178 | (eval $ac_link) 2>&5 | |
22179 | ac_status=$? | |
22180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22181 | (exit $ac_status); } && | |
22182 | { ac_try='test -s conftest$ac_exeext' | |
22183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22184 | (eval $ac_try) 2>&5 | |
22185 | ac_status=$? | |
22186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22187 | (exit $ac_status); }; }; then | |
22188 | ac_cv_func_remove=yes | |
22189 | else | |
22190 | echo "$as_me: failed program was:" >&5 | |
22191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22192 | ||
22193 | ac_cv_func_remove=no | |
22194 | fi | |
22195 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22196 | fi | |
22197 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
22198 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 22199 | |
90dd450c | 22200 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
22201 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
22202 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
22203 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
22204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22205 | else |
e6cc62c6 | 22206 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22207 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
22208 | cat >conftest.$ac_ext <<_ACEOF |
22209 | #line $LINENO "configure" | |
22210 | /* confdefs.h. */ | |
22211 | _ACEOF | |
22212 | cat confdefs.h >>conftest.$ac_ext | |
22213 | cat >>conftest.$ac_ext <<_ACEOF | |
22214 | /* end confdefs.h. */ | |
22215 | ||
90dd450c | 22216 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22217 | #ifdef __cplusplus |
22218 | extern "C" | |
22219 | #endif | |
90dd450c | 22220 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22221 | builtin and then its argument prototype would still apply. */ |
22222 | char remove (); | |
22223 | int | |
22224 | main () | |
22225 | { | |
22226 | remove (); | |
22227 | ; | |
22228 | return 0; | |
22229 | } | |
22230 | _ACEOF | |
22231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22233 | (eval $ac_link) 2>&5 | |
22234 | ac_status=$? | |
22235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22236 | (exit $ac_status); } && | |
22237 | { ac_try='test -s conftest$ac_exeext' | |
22238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22239 | (eval $ac_try) 2>&5 | |
22240 | ac_status=$? | |
22241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22242 | (exit $ac_status); }; }; then | |
22243 | ac_cv_lib_posix_remove=yes | |
22244 | else | |
22245 | echo "$as_me: failed program was:" >&5 | |
22246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22247 | ||
22248 | ac_cv_lib_posix_remove=no | |
22249 | fi | |
22250 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22251 | LIBS=$ac_check_lib_save_LIBS | |
22252 | fi | |
22253 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22254 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22255 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22256 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22257 | fi |
f6bcfd97 | 22258 | |
6fa882bd RR |
22259 | fi |
22260 | ||
90dd450c | 22261 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22262 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22263 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22264 | if test "${ac_cv_func_shmat+set}" = set; then | |
22265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22266 | else | |
22267 | cat >conftest.$ac_ext <<_ACEOF | |
22268 | #line $LINENO "configure" | |
22269 | /* confdefs.h. */ | |
22270 | _ACEOF | |
22271 | cat confdefs.h >>conftest.$ac_ext | |
22272 | cat >>conftest.$ac_ext <<_ACEOF | |
22273 | /* end confdefs.h. */ | |
90dd450c | 22274 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22275 | which can conflict with char shmat (); below. |
22276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22277 | <limits.h> exists even on freestanding compilers. */ | |
22278 | #ifdef __STDC__ | |
22279 | # include <limits.h> | |
22280 | #else | |
22281 | # include <assert.h> | |
22282 | #endif | |
90dd450c | 22283 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22284 | #ifdef __cplusplus |
22285 | extern "C" | |
22286 | { | |
22287 | #endif | |
90dd450c | 22288 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22289 | builtin and then its argument prototype would still apply. */ |
22290 | char shmat (); | |
90dd450c VZ |
22291 | /* The GNU C library defines this for functions which it implements |
22292 | to always fail with ENOSYS. Some functions are actually named | |
22293 | something starting with __ and the normal name is an alias. */ | |
22294 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22295 | choke me | |
22296 | #else | |
e6cc62c6 VS |
22297 | char (*f) () = shmat; |
22298 | #endif | |
22299 | #ifdef __cplusplus | |
22300 | } | |
90dd450c | 22301 | #endif |
10f2d63a | 22302 | |
e6cc62c6 VS |
22303 | int |
22304 | main () | |
22305 | { | |
22306 | return f != shmat; | |
22307 | ; | |
22308 | return 0; | |
22309 | } | |
22310 | _ACEOF | |
22311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22313 | (eval $ac_link) 2>&5 | |
22314 | ac_status=$? | |
22315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22316 | (exit $ac_status); } && | |
22317 | { ac_try='test -s conftest$ac_exeext' | |
22318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22319 | (eval $ac_try) 2>&5 | |
22320 | ac_status=$? | |
22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22322 | (exit $ac_status); }; }; then | |
22323 | ac_cv_func_shmat=yes | |
22324 | else | |
22325 | echo "$as_me: failed program was:" >&5 | |
22326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22327 | ||
22328 | ac_cv_func_shmat=no | |
22329 | fi | |
22330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22331 | fi | |
22332 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22333 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22334 | |
90dd450c | 22335 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22336 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22337 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22338 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22340 | else |
e6cc62c6 | 22341 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22342 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
22343 | cat >conftest.$ac_ext <<_ACEOF |
22344 | #line $LINENO "configure" | |
22345 | /* confdefs.h. */ | |
22346 | _ACEOF | |
22347 | cat confdefs.h >>conftest.$ac_ext | |
22348 | cat >>conftest.$ac_ext <<_ACEOF | |
22349 | /* end confdefs.h. */ | |
22350 | ||
8284b0c5 | 22351 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22352 | #ifdef __cplusplus |
22353 | extern "C" | |
22354 | #endif | |
90dd450c | 22355 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22356 | builtin and then its argument prototype would still apply. */ |
22357 | char shmat (); | |
22358 | int | |
22359 | main () | |
22360 | { | |
22361 | shmat (); | |
22362 | ; | |
22363 | return 0; | |
22364 | } | |
22365 | _ACEOF | |
22366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22368 | (eval $ac_link) 2>&5 | |
22369 | ac_status=$? | |
22370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22371 | (exit $ac_status); } && | |
22372 | { ac_try='test -s conftest$ac_exeext' | |
22373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22374 | (eval $ac_try) 2>&5 | |
22375 | ac_status=$? | |
22376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22377 | (exit $ac_status); }; }; then | |
22378 | ac_cv_lib_ipc_shmat=yes | |
22379 | else | |
22380 | echo "$as_me: failed program was:" >&5 | |
22381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22382 | ||
22383 | ac_cv_lib_ipc_shmat=no | |
22384 | fi | |
22385 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22386 | LIBS=$ac_check_lib_save_LIBS | |
22387 | fi | |
22388 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22389 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22390 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22391 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22392 | fi |
22393 | ||
d558c907 | 22394 | fi |
90dd450c | 22395 | fi |
3a922bb4 | 22396 | |
90dd450c | 22397 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22398 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22399 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22400 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22401 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22402 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22403 | # These have to be linked with before -lX11, unlike the other | |
22404 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22405 | # John Interrante, Karl Berry |
22406 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22407 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22408 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22410 | else | |
22411 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22412 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22413 | cat >conftest.$ac_ext <<_ACEOF |
22414 | #line $LINENO "configure" | |
22415 | /* confdefs.h. */ | |
22416 | _ACEOF | |
22417 | cat confdefs.h >>conftest.$ac_ext | |
22418 | cat >>conftest.$ac_ext <<_ACEOF | |
22419 | /* end confdefs.h. */ | |
22420 | ||
90dd450c | 22421 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22422 | #ifdef __cplusplus |
22423 | extern "C" | |
22424 | #endif | |
90dd450c | 22425 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22426 | builtin and then its argument prototype would still apply. */ |
22427 | char IceConnectionNumber (); | |
22428 | int | |
22429 | main () | |
22430 | { | |
22431 | IceConnectionNumber (); | |
22432 | ; | |
22433 | return 0; | |
22434 | } | |
22435 | _ACEOF | |
22436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22438 | (eval $ac_link) 2>&5 | |
22439 | ac_status=$? | |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22441 | (exit $ac_status); } && | |
22442 | { ac_try='test -s conftest$ac_exeext' | |
22443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22444 | (eval $ac_try) 2>&5 | |
22445 | ac_status=$? | |
22446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22447 | (exit $ac_status); }; }; then | |
22448 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22449 | else | |
22450 | echo "$as_me: failed program was:" >&5 | |
22451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22452 | ||
22453 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22454 | fi | |
22455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22456 | LIBS=$ac_check_lib_save_LIBS | |
22457 | fi | |
22458 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22459 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22460 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22461 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22462 | fi |
10f2d63a | 22463 | |
e6cc62c6 | 22464 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22465 | |
22466 | fi | |
22467 | ||
8284b0c5 | 22468 | |
90dd450c | 22469 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22470 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22471 | echo "$as_me: error: X11 not found" >&2;} | |
22472 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22473 | fi |
22474 | ||
22475 | GUI_TK_LIBRARY="$X_LIBS" | |
22476 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22477 | AFMINSTALL=afminstall | |
22478 | COMPILED_X_PROGRAM=0 | |
22479 | ||
21d1c967 | 22480 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22481 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22482 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22483 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22484 | echo "$as_me:$LINENO: result: not found" >&5 |
22485 | echo "${ECHO_T}not found" >&6 | |
22486 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22487 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22488 | { (exit 1); exit 1; }; } | |
90dd450c | 22489 | else |
e6cc62c6 VS |
22490 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22491 | echo "${ECHO_T}$MICROWIN" >&6 | |
22492 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22493 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22494 | _ACEOF |
21d1c967 | 22495 | |
90dd450c VZ |
22496 | fi |
22497 | fi | |
22498 | ||
22499 | xpm_link= | |
e6cc62c6 VS |
22500 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22501 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22502 | ||
90dd450c | 22503 | ac_find_libraries= |
2b5f62a0 | 22504 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22505 | do |
22506 | for ac_extension in a so sl dylib; do | |
22507 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22508 | ac_find_libraries=$ac_dir | |
22509 | break 2 | |
22510 | fi | |
22511 | done | |
22512 | done | |
22513 | ||
22514 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22515 | |
90dd450c VZ |
22516 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22517 | result=$? | |
22518 | if test $result = 0; then | |
22519 | ac_path_to_link="" | |
22520 | else | |
22521 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22522 | fi |
90dd450c | 22523 | |
21d1c967 GD |
22524 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22525 | xpm_link=" -lXpm" | |
e6cc62c6 | 22526 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22527 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22528 | _ACEOF |
90dd450c | 22529 | |
e6cc62c6 VS |
22530 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22531 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22532 | else |
e6cc62c6 VS |
22533 | cat >conftest.$ac_ext <<_ACEOF |
22534 | #line $LINENO "configure" | |
22535 | /* confdefs.h. */ | |
22536 | _ACEOF | |
22537 | cat confdefs.h >>conftest.$ac_ext | |
22538 | cat >>conftest.$ac_ext <<_ACEOF | |
22539 | /* end confdefs.h. */ | |
90dd450c | 22540 | |
21d1c967 | 22541 | #include <X11/xpm.h> |
e6cc62c6 VS |
22542 | |
22543 | int | |
22544 | main () | |
22545 | { | |
6f72b082 | 22546 | |
21d1c967 GD |
22547 | int version; |
22548 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22549 | |
22550 | ; | |
22551 | return 0; | |
22552 | } | |
22553 | _ACEOF | |
22554 | rm -f conftest.$ac_objext | |
22555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22556 | (eval $ac_compile) 2>&5 | |
22557 | ac_status=$? | |
22558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22559 | (exit $ac_status); } && | |
22560 | { ac_try='test -s conftest.$ac_objext' | |
22561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22562 | (eval $ac_try) 2>&5 | |
22563 | ac_status=$? | |
22564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22565 | (exit $ac_status); }; }; then | |
22566 | ||
21d1c967 | 22567 | xpm_link=" -lXpm" |
e6cc62c6 | 22568 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22569 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22570 | _ACEOF |
90dd450c | 22571 | |
e6cc62c6 VS |
22572 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22573 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22574 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22575 | |
21d1c967 | 22576 | else |
e6cc62c6 VS |
22577 | echo "$as_me: failed program was:" >&5 |
22578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22579 | ||
22580 | ||
22581 | echo "$as_me:$LINENO: result: no" >&5 | |
22582 | echo "${ECHO_T}no" >&6 | |
22583 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22584 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22585 | ||
22586 | ||
6f72b082 | 22587 | fi |
e6cc62c6 | 22588 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22589 | fi |
90dd450c | 22590 | |
e6cc62c6 VS |
22591 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22592 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22593 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22595 | else |
e6cc62c6 | 22596 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22597 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22598 | cat >conftest.$ac_ext <<_ACEOF |
22599 | #line $LINENO "configure" | |
22600 | /* confdefs.h. */ | |
22601 | _ACEOF | |
22602 | cat confdefs.h >>conftest.$ac_ext | |
22603 | cat >>conftest.$ac_ext <<_ACEOF | |
22604 | /* end confdefs.h. */ | |
22605 | ||
f7f78039 | 22606 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22607 | #ifdef __cplusplus |
22608 | extern "C" | |
22609 | #endif | |
f7f78039 | 22610 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22611 | builtin and then its argument prototype would still apply. */ |
22612 | char XShapeQueryExtension (); | |
22613 | int | |
22614 | main () | |
22615 | { | |
22616 | XShapeQueryExtension (); | |
22617 | ; | |
22618 | return 0; | |
22619 | } | |
22620 | _ACEOF | |
22621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22623 | (eval $ac_link) 2>&5 | |
22624 | ac_status=$? | |
22625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22626 | (exit $ac_status); } && | |
22627 | { ac_try='test -s conftest$ac_exeext' | |
22628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22629 | (eval $ac_try) 2>&5 | |
22630 | ac_status=$? | |
22631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22632 | (exit $ac_status); }; }; then | |
22633 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22634 | else | |
22635 | echo "$as_me: failed program was:" >&5 | |
22636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22637 | ||
22638 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22639 | fi | |
22640 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22641 | LIBS=$ac_check_lib_save_LIBS | |
22642 | fi | |
22643 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22644 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22645 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22646 | |
f7f78039 MB |
22647 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22648 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22649 | |
f7f78039 MB |
22650 | fi |
22651 | ||
22652 | ||
2b5f62a0 | 22653 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22654 | |
2b5f62a0 | 22655 | succeeded=no |
90dd450c | 22656 | |
2b5f62a0 VZ |
22657 | if test -z "$PKG_CONFIG"; then |
22658 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22659 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22662 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22664 | else |
e6cc62c6 VS |
22665 | case $PKG_CONFIG in |
22666 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22667 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22668 | ;; | |
2b5f62a0 | 22669 | *) |
e6cc62c6 VS |
22670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22671 | for as_dir in $PATH | |
22672 | do | |
22673 | IFS=$as_save_IFS | |
22674 | test -z "$as_dir" && as_dir=. | |
22675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22677 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22679 | break 2 | |
22680 | fi | |
22681 | done | |
22682 | done | |
22683 | ||
2b5f62a0 VZ |
22684 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22685 | ;; | |
22686 | esac | |
22687 | fi | |
e6cc62c6 VS |
22688 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22689 | ||
2b5f62a0 | 22690 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22691 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22692 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22693 | else |
e6cc62c6 VS |
22694 | echo "$as_me:$LINENO: result: no" >&5 |
22695 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22696 | fi |
22697 | ||
22698 | fi | |
22699 | ||
22700 | if test "$PKG_CONFIG" = "no" ; then | |
22701 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22702 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22703 | echo "*** to the full path to pkg-config." | |
22704 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22705 | else | |
22706 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22707 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22708 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22709 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22710 | |
22711 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22712 | echo "$as_me:$LINENO: result: yes" >&5 |
22713 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22714 | succeeded=yes |
22715 | ||
e6cc62c6 VS |
22716 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22717 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22718 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22719 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22720 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22721 | |
e6cc62c6 VS |
22722 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22723 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22724 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22725 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22726 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22727 | else |
22728 | PANGOX_CFLAGS="" | |
22729 | PANGOX_LIBS="" | |
e6cc62c6 | 22730 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22731 | ## do set a variable so people can do so. |
22732 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22733 | |
2b5f62a0 VZ |
22734 | fi |
22735 | ||
e6cc62c6 VS |
22736 | |
22737 | ||
2b5f62a0 VZ |
22738 | else |
22739 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22740 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22741 | fi | |
22742 | fi | |
22743 | ||
22744 | if test $succeeded = yes; then | |
e6cc62c6 | 22745 | |
2b5f62a0 | 22746 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22747 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22748 | |
2b5f62a0 | 22749 | else |
e6cc62c6 VS |
22750 | |
22751 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22752 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22753 | { (exit 1); exit 1; }; } | |
22754 | ||
22755 | ||
2b5f62a0 VZ |
22756 | fi |
22757 | ||
e6cc62c6 | 22758 | |
2b5f62a0 VZ |
22759 | succeeded=no |
22760 | ||
22761 | if test -z "$PKG_CONFIG"; then | |
22762 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22763 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22766 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22768 | else |
e6cc62c6 VS |
22769 | case $PKG_CONFIG in |
22770 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22771 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22772 | ;; | |
2b5f62a0 | 22773 | *) |
e6cc62c6 VS |
22774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22775 | for as_dir in $PATH | |
22776 | do | |
22777 | IFS=$as_save_IFS | |
22778 | test -z "$as_dir" && as_dir=. | |
22779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22780 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22781 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22783 | break 2 | |
22784 | fi | |
22785 | done | |
22786 | done | |
22787 | ||
2b5f62a0 VZ |
22788 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22789 | ;; | |
22790 | esac | |
22791 | fi | |
e6cc62c6 VS |
22792 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22793 | ||
2b5f62a0 | 22794 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22795 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22796 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22797 | else |
e6cc62c6 VS |
22798 | echo "$as_me:$LINENO: result: no" >&5 |
22799 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22800 | fi |
22801 | ||
22802 | fi | |
22803 | ||
22804 | if test "$PKG_CONFIG" = "no" ; then | |
22805 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22806 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22807 | echo "*** to the full path to pkg-config." | |
22808 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22809 | else | |
22810 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22811 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22812 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22813 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22814 | |
22815 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22816 | echo "$as_me:$LINENO: result: yes" >&5 |
22817 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22818 | succeeded=yes |
22819 | ||
e6cc62c6 VS |
22820 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22821 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22822 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22823 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22824 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22825 | |
e6cc62c6 VS |
22826 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22827 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22828 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22829 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22830 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22831 | else |
22832 | PANGOFT2_CFLAGS="" | |
22833 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22834 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22835 | ## do set a variable so people can do so. |
22836 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22837 | |
2b5f62a0 VZ |
22838 | fi |
22839 | ||
e6cc62c6 VS |
22840 | |
22841 | ||
2b5f62a0 VZ |
22842 | else |
22843 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22844 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22845 | fi | |
22846 | fi | |
22847 | ||
22848 | if test $succeeded = yes; then | |
e6cc62c6 | 22849 | |
2b5f62a0 | 22850 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22851 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22852 | |
2b5f62a0 | 22853 | else |
e6cc62c6 VS |
22854 | |
22855 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22856 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22857 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22858 | |
22859 | ||
2b5f62a0 VZ |
22860 | fi |
22861 | ||
e6cc62c6 | 22862 | |
2b5f62a0 VZ |
22863 | succeeded=no |
22864 | ||
22865 | if test -z "$PKG_CONFIG"; then | |
22866 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22867 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22870 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22872 | else |
e6cc62c6 VS |
22873 | case $PKG_CONFIG in |
22874 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22875 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22876 | ;; | |
2b5f62a0 | 22877 | *) |
e6cc62c6 VS |
22878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22879 | for as_dir in $PATH | |
22880 | do | |
22881 | IFS=$as_save_IFS | |
22882 | test -z "$as_dir" && as_dir=. | |
22883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22884 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22885 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22887 | break 2 | |
22888 | fi | |
22889 | done | |
22890 | done | |
22891 | ||
2b5f62a0 VZ |
22892 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22893 | ;; | |
22894 | esac | |
22895 | fi | |
e6cc62c6 VS |
22896 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22897 | ||
2b5f62a0 | 22898 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22899 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22900 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22901 | else |
e6cc62c6 VS |
22902 | echo "$as_me:$LINENO: result: no" >&5 |
22903 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22904 | fi |
22905 | ||
22906 | fi | |
22907 | ||
22908 | if test "$PKG_CONFIG" = "no" ; then | |
22909 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22910 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22911 | echo "*** to the full path to pkg-config." | |
22912 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22913 | else | |
22914 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22915 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22916 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22917 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22918 | |
22919 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22920 | echo "$as_me:$LINENO: result: yes" >&5 |
22921 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22922 | succeeded=yes |
22923 | ||
e6cc62c6 VS |
22924 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22925 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22926 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22927 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22928 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22929 | |
e6cc62c6 VS |
22930 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22931 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22932 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22933 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22934 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22935 | else |
22936 | PANGOXFT_CFLAGS="" | |
22937 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22938 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22939 | ## do set a variable so people can do so. |
22940 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22941 | |
2b5f62a0 VZ |
22942 | fi |
22943 | ||
e6cc62c6 VS |
22944 | |
22945 | ||
2b5f62a0 VZ |
22946 | else |
22947 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22948 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22949 | fi | |
22950 | fi | |
22951 | ||
22952 | if test $succeeded = yes; then | |
e6cc62c6 | 22953 | |
2b5f62a0 | 22954 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22955 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22956 | |
2b5f62a0 | 22957 | else |
e6cc62c6 VS |
22958 | |
22959 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22960 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22961 | ||
22962 | ||
2b5f62a0 VZ |
22963 | fi |
22964 | ||
22965 | fi | |
22966 | ||
22967 | wxUSE_UNIVERSAL="yes" | |
22968 | ||
22969 | if test "$wxUSE_NANOX" = "yes"; then | |
22970 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22971 | 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 |
22972 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22973 | else | |
22974 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22975 | fi | |
22976 | ||
22977 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22978 | TOOLKIT=X11 | |
22979 | GUIDIST=X11_DIST | |
22980 | fi | |
22981 | ||
21d1c967 GD |
22982 | if test "$wxUSE_MOTIF" = 1; then |
22983 | if test "$no_x" = yes; then | |
22984 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22985 | |
22986 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22987 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22988 | _ACEOF |
21d1c967 GD |
22989 | |
22990 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22991 | else | |
22992 | if test -n "$x_includes"; then | |
22993 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22994 | fi |
22995 | ||
21d1c967 GD |
22996 | # It would also be nice to do this for all -L options, not just this one. |
22997 | if test -n "$x_libraries"; then | |
22998 | X_LIBS="$X_LIBS -L$x_libraries" | |
22999 | # For Solaris; some versions of Sun CC require a space after -R and | |
23000 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23001 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 23002 | "SunOS 5"*) |
e6cc62c6 VS |
23003 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23004 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23005 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23006 | cat >conftest.$ac_ext <<_ACEOF | |
23007 | #line $LINENO "configure" | |
23008 | /* confdefs.h. */ | |
23009 | _ACEOF | |
23010 | cat confdefs.h >>conftest.$ac_ext | |
23011 | cat >>conftest.$ac_ext <<_ACEOF | |
23012 | /* end confdefs.h. */ | |
23013 | ||
23014 | int | |
23015 | main () | |
23016 | { | |
21d1c967 | 23017 | |
e6cc62c6 VS |
23018 | ; |
23019 | return 0; | |
23020 | } | |
23021 | _ACEOF | |
23022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23024 | (eval $ac_link) 2>&5 | |
23025 | ac_status=$? | |
23026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23027 | (exit $ac_status); } && | |
23028 | { ac_try='test -s conftest$ac_exeext' | |
23029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23030 | (eval $ac_try) 2>&5 | |
23031 | ac_status=$? | |
23032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23033 | (exit $ac_status); }; }; then | |
21d1c967 | 23034 | ac_R_nospace=yes |
698dcdb6 | 23035 | else |
e6cc62c6 VS |
23036 | echo "$as_me: failed program was:" >&5 |
23037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23038 | ||
23039 | ac_R_nospace=no | |
10f2d63a | 23040 | fi |
e6cc62c6 | 23041 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23042 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23043 | echo "$as_me:$LINENO: result: no" >&5 |
23044 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
23045 | X_LIBS="$X_LIBS -R$x_libraries" |
23046 | else | |
23047 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
23048 | cat >conftest.$ac_ext <<_ACEOF |
23049 | #line $LINENO "configure" | |
23050 | /* confdefs.h. */ | |
23051 | _ACEOF | |
23052 | cat confdefs.h >>conftest.$ac_ext | |
23053 | cat >>conftest.$ac_ext <<_ACEOF | |
23054 | /* end confdefs.h. */ | |
23055 | ||
23056 | int | |
23057 | main () | |
23058 | { | |
f0c87536 | 23059 | |
e6cc62c6 VS |
23060 | ; |
23061 | return 0; | |
23062 | } | |
23063 | _ACEOF | |
23064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23066 | (eval $ac_link) 2>&5 | |
23067 | ac_status=$? | |
23068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23069 | (exit $ac_status); } && | |
23070 | { ac_try='test -s conftest$ac_exeext' | |
23071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23072 | (eval $ac_try) 2>&5 | |
23073 | ac_status=$? | |
23074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23075 | (exit $ac_status); }; }; then | |
21d1c967 GD |
23076 | ac_R_space=yes |
23077 | else | |
e6cc62c6 VS |
23078 | echo "$as_me: failed program was:" >&5 |
23079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23080 | ||
23081 | ac_R_space=no | |
21d1c967 | 23082 | fi |
e6cc62c6 | 23083 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23084 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23085 | echo "$as_me:$LINENO: result: yes" >&5 |
23086 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
23087 | X_LIBS="$X_LIBS -R $x_libraries" |
23088 | else | |
e6cc62c6 VS |
23089 | echo "$as_me:$LINENO: result: neither works" >&5 |
23090 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
23091 | fi |
23092 | fi | |
e6cc62c6 | 23093 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
23094 | esac |
23095 | fi | |
90dd450c | 23096 | |
21d1c967 GD |
23097 | # Check for system-dependent libraries X programs must link with. |
23098 | # Do this before checking for the system-independent R6 libraries | |
23099 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
23100 | ||
23101 | if test "$ISC" = yes; then | |
23102 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23103 | else | |
e6cc62c6 VS |
23104 | # Martyn Johnson says this is needed for Ultrix, if the X |
23105 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 23106 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23107 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23108 | cat >conftest.$ac_ext <<_ACEOF | |
23109 | #line $LINENO "configure" | |
23110 | /* confdefs.h. */ | |
23111 | _ACEOF | |
23112 | cat confdefs.h >>conftest.$ac_ext | |
23113 | cat >>conftest.$ac_ext <<_ACEOF | |
23114 | /* end confdefs.h. */ | |
23115 | ||
247f5006 | 23116 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23117 | #ifdef __cplusplus |
23118 | extern "C" | |
23119 | #endif | |
247f5006 | 23120 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23121 | builtin and then its argument prototype would still apply. */ |
23122 | char XOpenDisplay (); | |
23123 | int | |
23124 | main () | |
23125 | { | |
23126 | XOpenDisplay (); | |
23127 | ; | |
23128 | return 0; | |
23129 | } | |
23130 | _ACEOF | |
23131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23133 | (eval $ac_link) 2>&5 | |
23134 | ac_status=$? | |
23135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23136 | (exit $ac_status); } && | |
23137 | { ac_try='test -s conftest$ac_exeext' | |
23138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23139 | (eval $ac_try) 2>&5 | |
23140 | ac_status=$? | |
23141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23142 | (exit $ac_status); }; }; then | |
23143 | : | |
23144 | else | |
23145 | echo "$as_me: failed program was:" >&5 | |
23146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23147 | |
e6cc62c6 VS |
23148 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23149 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23150 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23152 | else |
e6cc62c6 VS |
23153 | ac_check_lib_save_LIBS=$LIBS |
23154 | LIBS="-ldnet $LIBS" | |
23155 | cat >conftest.$ac_ext <<_ACEOF | |
23156 | #line $LINENO "configure" | |
23157 | /* confdefs.h. */ | |
23158 | _ACEOF | |
23159 | cat confdefs.h >>conftest.$ac_ext | |
23160 | cat >>conftest.$ac_ext <<_ACEOF | |
23161 | /* end confdefs.h. */ | |
a0b9e27f | 23162 | |
e6cc62c6 VS |
23163 | /* Override any gcc2 internal prototype to avoid an error. */ |
23164 | #ifdef __cplusplus | |
23165 | extern "C" | |
23166 | #endif | |
23167 | /* We use char because int might match the return type of a gcc2 | |
23168 | builtin and then its argument prototype would still apply. */ | |
23169 | char dnet_ntoa (); | |
23170 | int | |
23171 | main () | |
23172 | { | |
23173 | dnet_ntoa (); | |
23174 | ; | |
23175 | return 0; | |
23176 | } | |
23177 | _ACEOF | |
23178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23180 | (eval $ac_link) 2>&5 | |
23181 | ac_status=$? | |
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23183 | (exit $ac_status); } && | |
23184 | { ac_try='test -s conftest$ac_exeext' | |
23185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23186 | (eval $ac_try) 2>&5 | |
23187 | ac_status=$? | |
23188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23189 | (exit $ac_status); }; }; then | |
23190 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23191 | else | |
23192 | echo "$as_me: failed program was:" >&5 | |
23193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23194 | ||
23195 | ac_cv_lib_dnet_dnet_ntoa=no | |
23196 | fi | |
23197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23198 | LIBS=$ac_check_lib_save_LIBS | |
23199 | fi | |
23200 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23201 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23202 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 23203 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 23204 | fi |
0fb0dd83 | 23205 | |
21d1c967 | 23206 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23207 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23208 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23209 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23211 | else |
e6cc62c6 | 23212 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23213 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
23214 | cat >conftest.$ac_ext <<_ACEOF |
23215 | #line $LINENO "configure" | |
23216 | /* confdefs.h. */ | |
23217 | _ACEOF | |
23218 | cat confdefs.h >>conftest.$ac_ext | |
23219 | cat >>conftest.$ac_ext <<_ACEOF | |
23220 | /* end confdefs.h. */ | |
23221 | ||
21d1c967 | 23222 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23223 | #ifdef __cplusplus |
23224 | extern "C" | |
23225 | #endif | |
21d1c967 | 23226 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23227 | builtin and then its argument prototype would still apply. */ |
23228 | char dnet_ntoa (); | |
23229 | int | |
23230 | main () | |
23231 | { | |
23232 | dnet_ntoa (); | |
23233 | ; | |
23234 | return 0; | |
23235 | } | |
23236 | _ACEOF | |
23237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23239 | (eval $ac_link) 2>&5 | |
23240 | ac_status=$? | |
23241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23242 | (exit $ac_status); } && | |
23243 | { ac_try='test -s conftest$ac_exeext' | |
23244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23245 | (eval $ac_try) 2>&5 | |
23246 | ac_status=$? | |
23247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23248 | (exit $ac_status); }; }; then | |
23249 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23250 | else | |
23251 | echo "$as_me: failed program was:" >&5 | |
23252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23253 | ||
23254 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23255 | fi | |
23256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23257 | LIBS=$ac_check_lib_save_LIBS | |
23258 | fi | |
23259 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23260 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23261 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23262 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23263 | fi |
23264 | ||
21d1c967 | 23265 | fi |
e6cc62c6 VS |
23266 | fi |
23267 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23268 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 23269 | |
21d1c967 GD |
23270 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23271 | # to get the SysV transport functions. | |
e6cc62c6 | 23272 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23273 | # needs -lnsl. |
23274 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23275 | # on Irix 5.2, according to T.E. Dickey. |
23276 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23277 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23278 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23279 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23280 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23282 | else | |
23283 | cat >conftest.$ac_ext <<_ACEOF | |
23284 | #line $LINENO "configure" | |
23285 | /* confdefs.h. */ | |
23286 | _ACEOF | |
23287 | cat confdefs.h >>conftest.$ac_ext | |
23288 | cat >>conftest.$ac_ext <<_ACEOF | |
23289 | /* end confdefs.h. */ | |
21d1c967 | 23290 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23291 | which can conflict with char gethostbyname (); below. |
23292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23293 | <limits.h> exists even on freestanding compilers. */ | |
23294 | #ifdef __STDC__ | |
23295 | # include <limits.h> | |
23296 | #else | |
23297 | # include <assert.h> | |
23298 | #endif | |
21d1c967 | 23299 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23300 | #ifdef __cplusplus |
23301 | extern "C" | |
23302 | { | |
23303 | #endif | |
21d1c967 | 23304 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23305 | builtin and then its argument prototype would still apply. */ |
23306 | char gethostbyname (); | |
21d1c967 GD |
23307 | /* The GNU C library defines this for functions which it implements |
23308 | to always fail with ENOSYS. Some functions are actually named | |
23309 | something starting with __ and the normal name is an alias. */ | |
23310 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23311 | choke me | |
23312 | #else | |
e6cc62c6 VS |
23313 | char (*f) () = gethostbyname; |
23314 | #endif | |
23315 | #ifdef __cplusplus | |
23316 | } | |
21d1c967 | 23317 | #endif |
90dd450c | 23318 | |
e6cc62c6 VS |
23319 | int |
23320 | main () | |
23321 | { | |
23322 | return f != gethostbyname; | |
23323 | ; | |
23324 | return 0; | |
23325 | } | |
23326 | _ACEOF | |
23327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23329 | (eval $ac_link) 2>&5 | |
23330 | ac_status=$? | |
23331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23332 | (exit $ac_status); } && | |
23333 | { ac_try='test -s conftest$ac_exeext' | |
23334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23335 | (eval $ac_try) 2>&5 | |
23336 | ac_status=$? | |
23337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23338 | (exit $ac_status); }; }; then | |
23339 | ac_cv_func_gethostbyname=yes | |
23340 | else | |
23341 | echo "$as_me: failed program was:" >&5 | |
23342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23343 | ||
23344 | ac_cv_func_gethostbyname=no | |
23345 | fi | |
23346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23347 | fi | |
23348 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23349 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23350 | |
21d1c967 | 23351 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23352 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23353 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23354 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23356 | else |
e6cc62c6 | 23357 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23358 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
23359 | cat >conftest.$ac_ext <<_ACEOF |
23360 | #line $LINENO "configure" | |
23361 | /* confdefs.h. */ | |
23362 | _ACEOF | |
23363 | cat confdefs.h >>conftest.$ac_ext | |
23364 | cat >>conftest.$ac_ext <<_ACEOF | |
23365 | /* end confdefs.h. */ | |
23366 | ||
21d1c967 | 23367 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23368 | #ifdef __cplusplus |
23369 | extern "C" | |
23370 | #endif | |
21d1c967 | 23371 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23372 | builtin and then its argument prototype would still apply. */ |
23373 | char gethostbyname (); | |
23374 | int | |
23375 | main () | |
23376 | { | |
23377 | gethostbyname (); | |
23378 | ; | |
23379 | return 0; | |
23380 | } | |
23381 | _ACEOF | |
23382 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23384 | (eval $ac_link) 2>&5 | |
23385 | ac_status=$? | |
23386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23387 | (exit $ac_status); } && | |
23388 | { ac_try='test -s conftest$ac_exeext' | |
23389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23390 | (eval $ac_try) 2>&5 | |
23391 | ac_status=$? | |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23393 | (exit $ac_status); }; }; then | |
23394 | ac_cv_lib_nsl_gethostbyname=yes | |
23395 | else | |
23396 | echo "$as_me: failed program was:" >&5 | |
23397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23398 | ||
23399 | ac_cv_lib_nsl_gethostbyname=no | |
23400 | fi | |
23401 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23402 | LIBS=$ac_check_lib_save_LIBS | |
23403 | fi | |
23404 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23405 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23406 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23407 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23408 | fi |
247f5006 | 23409 | |
e6cc62c6 VS |
23410 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
23411 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
23412 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
23413 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23415 | else |
e6cc62c6 VS |
23416 | ac_check_lib_save_LIBS=$LIBS |
23417 | LIBS="-lbsd $LIBS" | |
23418 | cat >conftest.$ac_ext <<_ACEOF | |
23419 | #line $LINENO "configure" | |
23420 | /* confdefs.h. */ | |
23421 | _ACEOF | |
23422 | cat confdefs.h >>conftest.$ac_ext | |
23423 | cat >>conftest.$ac_ext <<_ACEOF | |
23424 | /* end confdefs.h. */ | |
23425 | ||
23426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23427 | #ifdef __cplusplus | |
23428 | extern "C" | |
23429 | #endif | |
23430 | /* We use char because int might match the return type of a gcc2 | |
23431 | builtin and then its argument prototype would still apply. */ | |
23432 | char gethostbyname (); | |
23433 | int | |
23434 | main () | |
23435 | { | |
23436 | gethostbyname (); | |
23437 | ; | |
23438 | return 0; | |
23439 | } | |
23440 | _ACEOF | |
23441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23443 | (eval $ac_link) 2>&5 | |
23444 | ac_status=$? | |
23445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23446 | (exit $ac_status); } && | |
23447 | { ac_try='test -s conftest$ac_exeext' | |
23448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23449 | (eval $ac_try) 2>&5 | |
23450 | ac_status=$? | |
23451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23452 | (exit $ac_status); }; }; then | |
23453 | ac_cv_lib_bsd_gethostbyname=yes | |
23454 | else | |
23455 | echo "$as_me: failed program was:" >&5 | |
23456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23457 | ||
23458 | ac_cv_lib_bsd_gethostbyname=no | |
23459 | fi | |
23460 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23461 | LIBS=$ac_check_lib_save_LIBS | |
23462 | fi | |
23463 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23464 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23465 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23466 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23467 | fi |
90dd450c | 23468 | |
e6cc62c6 | 23469 | fi |
90dd450c VZ |
23470 | fi |
23471 | ||
21d1c967 GD |
23472 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23473 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23474 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23475 | # on later versions), says Simon Leinen: it contains gethostby* |
23476 | # variants that don't use the name server (or something). -lsocket | |
23477 | # must be given before -lnsl if both are needed. We assume that | |
23478 | # if connect needs -lnsl, so does gethostbyname. | |
23479 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23480 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23481 | if test "${ac_cv_func_connect+set}" = set; then | |
23482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23483 | else | |
23484 | cat >conftest.$ac_ext <<_ACEOF | |
23485 | #line $LINENO "configure" | |
23486 | /* confdefs.h. */ | |
23487 | _ACEOF | |
23488 | cat confdefs.h >>conftest.$ac_ext | |
23489 | cat >>conftest.$ac_ext <<_ACEOF | |
23490 | /* end confdefs.h. */ | |
21d1c967 | 23491 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23492 | which can conflict with char connect (); below. |
23493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23494 | <limits.h> exists even on freestanding compilers. */ | |
23495 | #ifdef __STDC__ | |
23496 | # include <limits.h> | |
23497 | #else | |
23498 | # include <assert.h> | |
23499 | #endif | |
21d1c967 | 23500 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23501 | #ifdef __cplusplus |
23502 | extern "C" | |
23503 | { | |
23504 | #endif | |
21d1c967 | 23505 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23506 | builtin and then its argument prototype would still apply. */ |
23507 | char connect (); | |
21d1c967 GD |
23508 | /* The GNU C library defines this for functions which it implements |
23509 | to always fail with ENOSYS. Some functions are actually named | |
23510 | something starting with __ and the normal name is an alias. */ | |
23511 | #if defined (__stub_connect) || defined (__stub___connect) | |
23512 | choke me | |
23513 | #else | |
e6cc62c6 VS |
23514 | char (*f) () = connect; |
23515 | #endif | |
23516 | #ifdef __cplusplus | |
23517 | } | |
21d1c967 | 23518 | #endif |
90dd450c | 23519 | |
e6cc62c6 VS |
23520 | int |
23521 | main () | |
23522 | { | |
23523 | return f != connect; | |
23524 | ; | |
23525 | return 0; | |
23526 | } | |
23527 | _ACEOF | |
23528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23530 | (eval $ac_link) 2>&5 | |
23531 | ac_status=$? | |
23532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23533 | (exit $ac_status); } && | |
23534 | { ac_try='test -s conftest$ac_exeext' | |
23535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23536 | (eval $ac_try) 2>&5 | |
23537 | ac_status=$? | |
23538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23539 | (exit $ac_status); }; }; then | |
23540 | ac_cv_func_connect=yes | |
23541 | else | |
23542 | echo "$as_me: failed program was:" >&5 | |
23543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23544 | ||
23545 | ac_cv_func_connect=no | |
23546 | fi | |
23547 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23548 | fi | |
23549 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23550 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23551 | |
21d1c967 | 23552 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23553 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23554 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23555 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23557 | else |
e6cc62c6 | 23558 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23559 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23560 | cat >conftest.$ac_ext <<_ACEOF |
23561 | #line $LINENO "configure" | |
23562 | /* confdefs.h. */ | |
23563 | _ACEOF | |
23564 | cat confdefs.h >>conftest.$ac_ext | |
23565 | cat >>conftest.$ac_ext <<_ACEOF | |
23566 | /* end confdefs.h. */ | |
23567 | ||
21d1c967 | 23568 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23569 | #ifdef __cplusplus |
23570 | extern "C" | |
23571 | #endif | |
21d1c967 | 23572 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23573 | builtin and then its argument prototype would still apply. */ |
23574 | char connect (); | |
23575 | int | |
23576 | main () | |
23577 | { | |
23578 | connect (); | |
23579 | ; | |
23580 | return 0; | |
23581 | } | |
23582 | _ACEOF | |
23583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23585 | (eval $ac_link) 2>&5 | |
23586 | ac_status=$? | |
23587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23588 | (exit $ac_status); } && | |
23589 | { ac_try='test -s conftest$ac_exeext' | |
23590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23591 | (eval $ac_try) 2>&5 | |
23592 | ac_status=$? | |
23593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23594 | (exit $ac_status); }; }; then | |
23595 | ac_cv_lib_socket_connect=yes | |
23596 | else | |
23597 | echo "$as_me: failed program was:" >&5 | |
23598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23599 | ||
23600 | ac_cv_lib_socket_connect=no | |
23601 | fi | |
23602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23603 | LIBS=$ac_check_lib_save_LIBS | |
23604 | fi | |
23605 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23606 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23607 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23608 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23609 | fi |
90dd450c | 23610 | |
21d1c967 | 23611 | fi |
90dd450c | 23612 | |
e6cc62c6 VS |
23613 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23614 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23615 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23616 | if test "${ac_cv_func_remove+set}" = set; then | |
23617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23618 | else | |
23619 | cat >conftest.$ac_ext <<_ACEOF | |
23620 | #line $LINENO "configure" | |
23621 | /* confdefs.h. */ | |
23622 | _ACEOF | |
23623 | cat confdefs.h >>conftest.$ac_ext | |
23624 | cat >>conftest.$ac_ext <<_ACEOF | |
23625 | /* end confdefs.h. */ | |
21d1c967 | 23626 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23627 | which can conflict with char remove (); below. |
23628 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23629 | <limits.h> exists even on freestanding compilers. */ | |
23630 | #ifdef __STDC__ | |
23631 | # include <limits.h> | |
23632 | #else | |
23633 | # include <assert.h> | |
23634 | #endif | |
21d1c967 | 23635 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23636 | #ifdef __cplusplus |
23637 | extern "C" | |
23638 | { | |
23639 | #endif | |
21d1c967 | 23640 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23641 | builtin and then its argument prototype would still apply. */ |
23642 | char remove (); | |
21d1c967 GD |
23643 | /* The GNU C library defines this for functions which it implements |
23644 | to always fail with ENOSYS. Some functions are actually named | |
23645 | something starting with __ and the normal name is an alias. */ | |
23646 | #if defined (__stub_remove) || defined (__stub___remove) | |
23647 | choke me | |
23648 | #else | |
e6cc62c6 VS |
23649 | char (*f) () = remove; |
23650 | #endif | |
23651 | #ifdef __cplusplus | |
23652 | } | |
21d1c967 | 23653 | #endif |
90dd450c | 23654 | |
e6cc62c6 VS |
23655 | int |
23656 | main () | |
23657 | { | |
23658 | return f != remove; | |
23659 | ; | |
23660 | return 0; | |
23661 | } | |
23662 | _ACEOF | |
23663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23665 | (eval $ac_link) 2>&5 | |
23666 | ac_status=$? | |
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23668 | (exit $ac_status); } && | |
23669 | { ac_try='test -s conftest$ac_exeext' | |
23670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23671 | (eval $ac_try) 2>&5 | |
23672 | ac_status=$? | |
23673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23674 | (exit $ac_status); }; }; then | |
23675 | ac_cv_func_remove=yes | |
23676 | else | |
23677 | echo "$as_me: failed program was:" >&5 | |
23678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23679 | ||
23680 | ac_cv_func_remove=no | |
23681 | fi | |
23682 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23683 | fi | |
23684 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23685 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23686 | |
21d1c967 | 23687 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23688 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23689 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23690 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23692 | else |
e6cc62c6 | 23693 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23694 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23695 | cat >conftest.$ac_ext <<_ACEOF |
23696 | #line $LINENO "configure" | |
23697 | /* confdefs.h. */ | |
23698 | _ACEOF | |
23699 | cat confdefs.h >>conftest.$ac_ext | |
23700 | cat >>conftest.$ac_ext <<_ACEOF | |
23701 | /* end confdefs.h. */ | |
23702 | ||
21d1c967 | 23703 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23704 | #ifdef __cplusplus |
23705 | extern "C" | |
23706 | #endif | |
21d1c967 | 23707 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23708 | builtin and then its argument prototype would still apply. */ |
23709 | char remove (); | |
23710 | int | |
23711 | main () | |
23712 | { | |
23713 | remove (); | |
23714 | ; | |
23715 | return 0; | |
23716 | } | |
23717 | _ACEOF | |
23718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23720 | (eval $ac_link) 2>&5 | |
23721 | ac_status=$? | |
23722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23723 | (exit $ac_status); } && | |
23724 | { ac_try='test -s conftest$ac_exeext' | |
23725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23726 | (eval $ac_try) 2>&5 | |
23727 | ac_status=$? | |
23728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23729 | (exit $ac_status); }; }; then | |
23730 | ac_cv_lib_posix_remove=yes | |
23731 | else | |
23732 | echo "$as_me: failed program was:" >&5 | |
23733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23734 | ||
23735 | ac_cv_lib_posix_remove=no | |
23736 | fi | |
23737 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23738 | LIBS=$ac_check_lib_save_LIBS | |
23739 | fi | |
23740 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23741 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23742 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23743 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23744 | fi |
19bc6aad | 23745 | |
90dd450c | 23746 | fi |
19bc6aad | 23747 | |
21d1c967 | 23748 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23749 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23750 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23751 | if test "${ac_cv_func_shmat+set}" = set; then | |
23752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23753 | else | |
23754 | cat >conftest.$ac_ext <<_ACEOF | |
23755 | #line $LINENO "configure" | |
23756 | /* confdefs.h. */ | |
23757 | _ACEOF | |
23758 | cat confdefs.h >>conftest.$ac_ext | |
23759 | cat >>conftest.$ac_ext <<_ACEOF | |
23760 | /* end confdefs.h. */ | |
21d1c967 | 23761 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23762 | which can conflict with char shmat (); below. |
23763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23764 | <limits.h> exists even on freestanding compilers. */ | |
23765 | #ifdef __STDC__ | |
23766 | # include <limits.h> | |
23767 | #else | |
23768 | # include <assert.h> | |
23769 | #endif | |
21d1c967 | 23770 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23771 | #ifdef __cplusplus |
23772 | extern "C" | |
23773 | { | |
23774 | #endif | |
21d1c967 | 23775 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23776 | builtin and then its argument prototype would still apply. */ |
23777 | char shmat (); | |
21d1c967 GD |
23778 | /* The GNU C library defines this for functions which it implements |
23779 | to always fail with ENOSYS. Some functions are actually named | |
23780 | something starting with __ and the normal name is an alias. */ | |
23781 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23782 | choke me | |
23783 | #else | |
e6cc62c6 VS |
23784 | char (*f) () = shmat; |
23785 | #endif | |
23786 | #ifdef __cplusplus | |
23787 | } | |
21d1c967 | 23788 | #endif |
90dd450c | 23789 | |
e6cc62c6 VS |
23790 | int |
23791 | main () | |
23792 | { | |
23793 | return f != shmat; | |
23794 | ; | |
23795 | return 0; | |
23796 | } | |
23797 | _ACEOF | |
23798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23800 | (eval $ac_link) 2>&5 | |
23801 | ac_status=$? | |
23802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23803 | (exit $ac_status); } && | |
23804 | { ac_try='test -s conftest$ac_exeext' | |
23805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23806 | (eval $ac_try) 2>&5 | |
23807 | ac_status=$? | |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23809 | (exit $ac_status); }; }; then | |
23810 | ac_cv_func_shmat=yes | |
23811 | else | |
23812 | echo "$as_me: failed program was:" >&5 | |
23813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23814 | ||
23815 | ac_cv_func_shmat=no | |
23816 | fi | |
23817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23818 | fi | |
23819 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23820 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23821 | |
21d1c967 | 23822 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23823 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23824 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23825 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23827 | else |
e6cc62c6 | 23828 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23829 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23830 | cat >conftest.$ac_ext <<_ACEOF |
23831 | #line $LINENO "configure" | |
23832 | /* confdefs.h. */ | |
23833 | _ACEOF | |
23834 | cat confdefs.h >>conftest.$ac_ext | |
23835 | cat >>conftest.$ac_ext <<_ACEOF | |
23836 | /* end confdefs.h. */ | |
23837 | ||
5c6fa7d2 | 23838 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23839 | #ifdef __cplusplus |
23840 | extern "C" | |
23841 | #endif | |
5c6fa7d2 | 23842 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23843 | builtin and then its argument prototype would still apply. */ |
23844 | char shmat (); | |
23845 | int | |
23846 | main () | |
23847 | { | |
23848 | shmat (); | |
23849 | ; | |
23850 | return 0; | |
23851 | } | |
23852 | _ACEOF | |
23853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23855 | (eval $ac_link) 2>&5 | |
23856 | ac_status=$? | |
23857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23858 | (exit $ac_status); } && | |
23859 | { ac_try='test -s conftest$ac_exeext' | |
23860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23861 | (eval $ac_try) 2>&5 | |
23862 | ac_status=$? | |
23863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23864 | (exit $ac_status); }; }; then | |
23865 | ac_cv_lib_ipc_shmat=yes | |
23866 | else | |
23867 | echo "$as_me: failed program was:" >&5 | |
23868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23869 | ||
23870 | ac_cv_lib_ipc_shmat=no | |
23871 | fi | |
23872 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23873 | LIBS=$ac_check_lib_save_LIBS | |
23874 | fi | |
23875 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23876 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23877 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23878 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23879 | fi |
90dd450c | 23880 | |
90dd450c | 23881 | fi |
21d1c967 | 23882 | fi |
10f2d63a | 23883 | |
21d1c967 | 23884 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23885 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23886 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23887 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23888 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23889 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23890 | # These have to be linked with before -lX11, unlike the other | |
23891 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23892 | # John Interrante, Karl Berry |
23893 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23894 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23895 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23897 | else | |
23898 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23899 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23900 | cat >conftest.$ac_ext <<_ACEOF |
23901 | #line $LINENO "configure" | |
23902 | /* confdefs.h. */ | |
23903 | _ACEOF | |
23904 | cat confdefs.h >>conftest.$ac_ext | |
23905 | cat >>conftest.$ac_ext <<_ACEOF | |
23906 | /* end confdefs.h. */ | |
23907 | ||
21d1c967 | 23908 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23909 | #ifdef __cplusplus |
23910 | extern "C" | |
23911 | #endif | |
21d1c967 | 23912 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23913 | builtin and then its argument prototype would still apply. */ |
23914 | char IceConnectionNumber (); | |
23915 | int | |
23916 | main () | |
23917 | { | |
23918 | IceConnectionNumber (); | |
23919 | ; | |
23920 | return 0; | |
23921 | } | |
23922 | _ACEOF | |
23923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23925 | (eval $ac_link) 2>&5 | |
23926 | ac_status=$? | |
23927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23928 | (exit $ac_status); } && | |
23929 | { ac_try='test -s conftest$ac_exeext' | |
23930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23931 | (eval $ac_try) 2>&5 | |
23932 | ac_status=$? | |
23933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23934 | (exit $ac_status); }; }; then | |
23935 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23936 | else | |
23937 | echo "$as_me: failed program was:" >&5 | |
23938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23939 | ||
23940 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23941 | fi | |
23942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23943 | LIBS=$ac_check_lib_save_LIBS | |
23944 | fi | |
23945 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23946 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23947 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23948 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23949 | fi |
21d1c967 | 23950 | |
e6cc62c6 | 23951 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23952 | |
10f2d63a VZ |
23953 | fi |
23954 | ||
8284b0c5 | 23955 | |
21d1c967 | 23956 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23957 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23958 | echo "$as_me: error: X11 not found" >&2;} | |
23959 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23960 | fi |
23961 | ||
2b5f62a0 VZ |
23962 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23963 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23964 | AFMINSTALL=afminstall |
23965 | COMPILED_X_PROGRAM=0 | |
23966 | ||
e6cc62c6 VS |
23967 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23968 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23969 | ||
21d1c967 | 23970 | ac_find_includes= |
2b5f62a0 | 23971 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23972 | do |
23973 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23974 | ac_find_includes=$ac_dir | |
23975 | break | |
23976 | fi | |
23977 | done | |
23978 | ||
23979 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23980 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23981 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23982 | ||
2b5f62a0 | 23983 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23984 | ac_path_to_include="" |
23985 | else | |
2b5f62a0 VZ |
23986 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23987 | result=$? | |
23988 | if test $result = 0; then | |
23989 | ac_path_to_include="" | |
23990 | else | |
23991 | ac_path_to_include=" -I$ac_find_includes" | |
23992 | fi | |
dd0e4a90 VZ |
23993 | fi |
23994 | ||
23995 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23996 | else |
e6cc62c6 VS |
23997 | cat >conftest.$ac_ext <<_ACEOF |
23998 | #line $LINENO "configure" | |
23999 | /* confdefs.h. */ | |
24000 | _ACEOF | |
24001 | cat confdefs.h >>conftest.$ac_ext | |
24002 | cat >>conftest.$ac_ext <<_ACEOF | |
24003 | /* end confdefs.h. */ | |
21d1c967 GD |
24004 | |
24005 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24006 | |
24007 | int | |
24008 | main () | |
24009 | { | |
21d1c967 GD |
24010 | |
24011 | int version; | |
24012 | version = xmUseVersion; | |
e6cc62c6 VS |
24013 | |
24014 | ; | |
24015 | return 0; | |
24016 | } | |
24017 | _ACEOF | |
24018 | rm -f conftest.$ac_objext | |
24019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24020 | (eval $ac_compile) 2>&5 | |
24021 | ac_status=$? | |
24022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24023 | (exit $ac_status); } && | |
24024 | { ac_try='test -s conftest.$ac_objext' | |
24025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24026 | (eval $ac_try) 2>&5 | |
24027 | ac_status=$? | |
24028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24029 | (exit $ac_status); }; }; then | |
24030 | ||
24031 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24032 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24033 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24034 | |
10f2d63a | 24035 | else |
e6cc62c6 VS |
24036 | echo "$as_me: failed program was:" >&5 |
24037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24038 | ||
24039 | ||
24040 | echo "$as_me:$LINENO: result: no" >&5 | |
24041 | echo "${ECHO_T}no" >&6 | |
24042 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
24043 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
24044 | { (exit 1); exit 1; }; } | |
24045 | ||
24046 | ||
10f2d63a | 24047 | fi |
e6cc62c6 | 24048 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 24049 | fi |
10f2d63a | 24050 | |
21d1c967 | 24051 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
24052 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
24053 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
24054 | ||
21d1c967 | 24055 | ac_find_libraries= |
2b5f62a0 | 24056 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24057 | do |
24058 | for ac_extension in a so sl dylib; do | |
24059 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
24060 | ac_find_libraries=$ac_dir | |
24061 | break 2 | |
24062 | fi | |
24063 | done | |
24064 | done | |
24065 | ||
24066 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
24067 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24068 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24069 | ||
21d1c967 | 24070 | |
21d1c967 GD |
24071 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24072 | result=$? | |
24073 | if test $result = 0; then | |
24074 | ac_path_to_link="" | |
24075 | else | |
24076 | ac_path_to_link=" -L$ac_find_libraries" | |
24077 | fi | |
24078 | ||
21d1c967 | 24079 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 24080 | else |
dd0e4a90 VZ |
24081 | save_CFLAGS=$CFLAGS |
24082 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24083 | ||
e6cc62c6 VS |
24084 | cat >conftest.$ac_ext <<_ACEOF |
24085 | #line $LINENO "configure" | |
24086 | /* confdefs.h. */ | |
24087 | _ACEOF | |
24088 | cat confdefs.h >>conftest.$ac_ext | |
24089 | cat >>conftest.$ac_ext <<_ACEOF | |
24090 | /* end confdefs.h. */ | |
21d1c967 GD |
24091 | |
24092 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24093 | |
24094 | int | |
24095 | main () | |
24096 | { | |
21d1c967 GD |
24097 | |
24098 | int version; | |
24099 | version = xmUseVersion; | |
e6cc62c6 VS |
24100 | |
24101 | ; | |
24102 | return 0; | |
24103 | } | |
24104 | _ACEOF | |
24105 | rm -f conftest.$ac_objext | |
24106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24107 | (eval $ac_compile) 2>&5 | |
24108 | ac_status=$? | |
24109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24110 | (exit $ac_status); } && | |
24111 | { ac_try='test -s conftest.$ac_objext' | |
24112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24113 | (eval $ac_try) 2>&5 | |
24114 | ac_status=$? | |
24115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24116 | (exit $ac_status); }; }; then | |
24117 | ||
24118 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24119 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24120 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24121 | |
d836ee96 | 24122 | else |
e6cc62c6 VS |
24123 | echo "$as_me: failed program was:" >&5 |
24124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24125 | ||
24126 | ||
24127 | echo "$as_me:$LINENO: result: no" >&5 | |
24128 | echo "${ECHO_T}no" >&6 | |
24129 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
24130 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
24131 | { (exit 1); exit 1; }; } | |
24132 | ||
24133 | ||
d836ee96 | 24134 | fi |
e6cc62c6 | 24135 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24136 | |
24137 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24138 | fi |
24139 | fi | |
24140 | ||
24141 | xpm_link= | |
e6cc62c6 VS |
24142 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
24143 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
24144 | ||
21d1c967 | 24145 | ac_find_libraries= |
2b5f62a0 | 24146 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24147 | do |
24148 | for ac_extension in a so sl dylib; do | |
24149 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
24150 | ac_find_libraries=$ac_dir | |
24151 | break 2 | |
24152 | fi | |
24153 | done | |
24154 | done | |
24155 | ||
24156 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24157 | |
21d1c967 GD |
24158 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24159 | result=$? | |
24160 | if test $result = 0; then | |
24161 | ac_path_to_link="" | |
24162 | else | |
24163 | ac_path_to_link=" -L$ac_find_libraries" | |
24164 | fi | |
24165 | ||
24166 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 24167 | |
21d1c967 | 24168 | xpm_link=" -lXpm" |
e6cc62c6 | 24169 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24170 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24171 | _ACEOF |
90dd450c | 24172 | |
e6cc62c6 VS |
24173 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24174 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 24175 | else |
dd0e4a90 VZ |
24176 | save_CFLAGS=$CFLAGS |
24177 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24178 | ||
e6cc62c6 VS |
24179 | cat >conftest.$ac_ext <<_ACEOF |
24180 | #line $LINENO "configure" | |
24181 | /* confdefs.h. */ | |
24182 | _ACEOF | |
24183 | cat confdefs.h >>conftest.$ac_ext | |
24184 | cat >>conftest.$ac_ext <<_ACEOF | |
24185 | /* end confdefs.h. */ | |
21d1c967 GD |
24186 | |
24187 | #include <X11/xpm.h> | |
e6cc62c6 VS |
24188 | |
24189 | int | |
24190 | main () | |
24191 | { | |
21d1c967 GD |
24192 | |
24193 | int version; | |
24194 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
24195 | |
24196 | ; | |
24197 | return 0; | |
24198 | } | |
24199 | _ACEOF | |
24200 | rm -f conftest.$ac_objext | |
24201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24202 | (eval $ac_compile) 2>&5 | |
24203 | ac_status=$? | |
24204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24205 | (exit $ac_status); } && | |
24206 | { ac_try='test -s conftest.$ac_objext' | |
24207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24208 | (eval $ac_try) 2>&5 | |
24209 | ac_status=$? | |
24210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24211 | (exit $ac_status); }; }; then | |
24212 | ||
21d1c967 | 24213 | xpm_link=" -lXpm" |
e6cc62c6 | 24214 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24215 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24216 | _ACEOF |
21d1c967 | 24217 | |
e6cc62c6 VS |
24218 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
24219 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24220 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 24221 | |
d836ee96 | 24222 | else |
e6cc62c6 VS |
24223 | echo "$as_me: failed program was:" >&5 |
24224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24225 | ||
24226 | ||
24227 | echo "$as_me:$LINENO: result: no" >&5 | |
24228 | echo "${ECHO_T}no" >&6 | |
24229 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
24230 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
24231 | ||
24232 | ||
d836ee96 | 24233 | fi |
e6cc62c6 | 24234 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24235 | |
24236 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24237 | fi |
24238 | ||
e6cc62c6 VS |
24239 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
24240 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
24241 | libp_link="" |
24242 | libsm_ice_link="" | |
24243 | libs_found=0 | |
24244 | for libp in "" " -lXp"; do | |
24245 | if test "$libs_found" = "0"; then | |
24246 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 24247 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
24248 | save_LIBS="$LIBS" |
24249 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
24250 | save_CFLAGS=$CFLAGS |
24251 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24252 | ||
e6cc62c6 VS |
24253 | cat >conftest.$ac_ext <<_ACEOF |
24254 | #line $LINENO "configure" | |
24255 | /* confdefs.h. */ | |
24256 | _ACEOF | |
24257 | cat confdefs.h >>conftest.$ac_ext | |
24258 | cat >>conftest.$ac_ext <<_ACEOF | |
24259 | /* end confdefs.h. */ | |
17234b26 | 24260 | |
6a30f1c8 MB |
24261 | #include <Xm/Xm.h> |
24262 | #include <Xm/List.h> | |
e6cc62c6 VS |
24263 | |
24264 | int | |
24265 | main () | |
24266 | { | |
6a30f1c8 MB |
24267 | |
24268 | XmString string = NULL; | |
24269 | Widget w = NULL; | |
24270 | int position = 0; | |
24271 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24272 | |
24273 | ; | |
24274 | return 0; | |
24275 | } | |
24276 | _ACEOF | |
24277 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24279 | (eval $ac_link) 2>&5 | |
24280 | ac_status=$? | |
24281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24282 | (exit $ac_status); } && | |
24283 | { ac_try='test -s conftest$ac_exeext' | |
24284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24285 | (eval $ac_try) 2>&5 | |
24286 | ac_status=$? | |
24287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24288 | (exit $ac_status); }; }; then | |
24289 | ||
6a30f1c8 MB |
24290 | libp_link="$libp" |
24291 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24292 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24293 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24294 | libs_found=1 |
e6cc62c6 | 24295 | |
6a30f1c8 | 24296 | else |
e6cc62c6 VS |
24297 | echo "$as_me: failed program was:" >&5 |
24298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24299 | ||
24300 | ||
24301 | ||
6a30f1c8 | 24302 | fi |
e6cc62c6 | 24303 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24304 | |
6a30f1c8 | 24305 | LIBS="$save_LIBS" |
dd0e4a90 | 24306 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24307 | fi |
24308 | done | |
24309 | fi | |
24310 | done | |
24311 | ||
24312 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24313 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24314 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24315 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24316 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24317 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24318 | fi |
24319 | ||
da494b40 MB |
24320 | save_CFLAGS=$CFLAGS |
24321 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24322 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24323 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24324 | cat >conftest.$ac_ext <<_ACEOF | |
24325 | #line $LINENO "configure" | |
24326 | /* confdefs.h. */ | |
24327 | _ACEOF | |
24328 | cat confdefs.h >>conftest.$ac_ext | |
24329 | cat >>conftest.$ac_ext <<_ACEOF | |
24330 | /* end confdefs.h. */ | |
da494b40 MB |
24331 | |
24332 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24333 | |
24334 | int | |
24335 | main () | |
24336 | { | |
da494b40 MB |
24337 | |
24338 | #if XmVersion < 2000 | |
24339 | #error "Not Motif 2" | |
24340 | #endif | |
e6cc62c6 VS |
24341 | |
24342 | ; | |
24343 | return 0; | |
24344 | } | |
24345 | _ACEOF | |
24346 | rm -f conftest.$ac_objext | |
24347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24348 | (eval $ac_compile) 2>&5 | |
24349 | ac_status=$? | |
24350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24351 | (exit $ac_status); } && | |
24352 | { ac_try='test -s conftest.$ac_objext' | |
24353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24354 | (eval $ac_try) 2>&5 | |
24355 | ac_status=$? | |
24356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24357 | (exit $ac_status); }; }; then | |
24358 | ||
24359 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24360 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24361 | _ACEOF |
24362 | ||
24363 | echo "$as_me:$LINENO: result: found" >&5 | |
24364 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24365 | |
da494b40 | 24366 | else |
e6cc62c6 VS |
24367 | echo "$as_me: failed program was:" >&5 |
24368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24369 | ||
24370 | ||
24371 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24372 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24373 | _ACEOF |
24374 | ||
24375 | echo "$as_me:$LINENO: result: not found" >&5 | |
24376 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24377 | |
da494b40 | 24378 | fi |
e6cc62c6 | 24379 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24380 | CFLAGS=$save_CFLAGS |
24381 | ||
6a30f1c8 | 24382 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24383 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24384 | TOOLKIT=MOTIF |
24385 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24386 | wxHAVE_XEXT_LIB=1 |
24387 | fi | |
24388 | ||
24389 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
24390 | test "$wxHAVE_XEXT_LIB" = 1; then | |
24391 | save_CFLAGS="$CFLAGS" | |
24392 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24393 | ||
e6cc62c6 VS |
24394 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
24395 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
24396 | cat >conftest.$ac_ext <<_ACEOF | |
24397 | #line $LINENO "configure" | |
24398 | /* confdefs.h. */ | |
24399 | _ACEOF | |
24400 | cat confdefs.h >>conftest.$ac_ext | |
24401 | cat >>conftest.$ac_ext <<_ACEOF | |
24402 | /* end confdefs.h. */ | |
24403 | ||
24404 | #include <X11/Xlib.h> | |
f7f78039 | 24405 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
24406 | |
24407 | int | |
24408 | main () | |
24409 | { | |
f7f78039 MB |
24410 | |
24411 | int dummy1, dummy2; | |
24412 | XShapeQueryExtension((Display*)NULL, | |
24413 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24414 | |
24415 | ; | |
24416 | return 0; | |
24417 | } | |
24418 | _ACEOF | |
24419 | rm -f conftest.$ac_objext | |
24420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24421 | (eval $ac_compile) 2>&5 | |
24422 | ac_status=$? | |
24423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24424 | (exit $ac_status); } && | |
24425 | { ac_try='test -s conftest.$ac_objext' | |
24426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24427 | (eval $ac_try) 2>&5 | |
24428 | ac_status=$? | |
24429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24430 | (exit $ac_status); }; }; then | |
24431 | ||
24432 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 24433 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24434 | _ACEOF |
24435 | ||
24436 | echo "$as_me:$LINENO: result: found" >&5 | |
24437 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 24438 | |
f7f78039 | 24439 | else |
e6cc62c6 VS |
24440 | echo "$as_me: failed program was:" >&5 |
24441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24442 | ||
24443 | ||
24444 | echo "$as_me:$LINENO: result: not found" >&5 | |
24445 | echo "${ECHO_T}not found" >&6 | |
24446 | ||
f7f78039 | 24447 | fi |
e6cc62c6 | 24448 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24449 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24450 | fi |
24451 | ||
24452 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24453 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24454 | |
0c98a14e | 24455 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24456 | TOOLKIT=MAC |
24457 | GUIDIST=MACX_DIST | |
cf615ebb | 24458 | WXBASEPORT="_carbon" |
21d1c967 GD |
24459 | fi |
24460 | ||
ac0c4cc3 DE |
24461 | if test "$wxUSE_COCOA" = 1; then |
24462 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24463 | TOOLKIT=COCOA | |
24464 | GUIDIST=COCOA_DIST | |
24465 | fi | |
24466 | ||
21d1c967 GD |
24467 | if test "$wxUSE_PM" = 1; then |
24468 | TOOLKIT=PM | |
24469 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
24470 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
24471 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 24472 | wxUSE_THREADS="no" |
21d1c967 GD |
24473 | fi |
24474 | ||
24475 | if test "$TOOLKIT" = "PM" ; then | |
24476 | TOOLKIT_DIR="os2" | |
24477 | else | |
24478 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24479 | fi | |
24480 | ||
24481 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24482 | ||
24483 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24484 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24485 | ||
24486 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24487 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24488 | ||
24489 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24490 | if test "$wxUSE_X11" = 1; then | |
24491 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24492 | else | |
24493 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24494 | fi | |
24495 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24496 | WIDGET_SET=univ | |
24497 | else | |
24498 | ALL_OBJECTS="\$(GUIOBJS)" | |
24499 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24500 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24501 | fi | |
24502 | ||
24503 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24504 | ||
24505 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24506 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24507 | fi | |
24508 | ||
24509 | if test "$wxUSE_HTML" = "yes"; then | |
24510 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24511 | fi | |
24512 | ||
24513 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24514 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24515 | fi | |
24516 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24517 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24518 | fi | |
24519 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24520 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24521 | fi | |
24522 | ||
24523 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24524 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24525 | else |
21d1c967 GD |
24526 | USE_GUI=0 |
24527 | ||
24528 | TOOLKIT_DIR="base" | |
24529 | ||
24530 | if test "$USE_WIN32" = 1 ; then | |
24531 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24532 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24533 | ||
24534 | TOOLKIT="MSW" | |
24535 | else | |
24536 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24537 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24538 | fi | |
24539 | ||
24540 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24541 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24542 | ||
24543 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24544 | ||
24545 | GUIDIST="BASE_DIST" | |
24546 | DISTDIR="wxBase" | |
d836ee96 VZ |
24547 | fi |
24548 | ||
8284b0c5 | 24549 | |
8647bec6 RG |
24550 | |
24551 | ||
24552 | IODBC_C_SRC="" | |
24553 | ||
24554 | ||
24555 | if test "$TOOLKIT" != "MSW" ; then | |
24556 | ||
bb41dcbe | 24557 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24558 | |
bb41dcbe | 24559 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24560 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24561 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24562 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24564 | fi | |
24565 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24566 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24567 | else | |
24568 | # Is the header compilable? | |
24569 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24570 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24571 | cat >conftest.$ac_ext <<_ACEOF | |
24572 | #line $LINENO "configure" | |
24573 | /* confdefs.h. */ | |
24574 | _ACEOF | |
24575 | cat confdefs.h >>conftest.$ac_ext | |
24576 | cat >>conftest.$ac_ext <<_ACEOF | |
24577 | /* end confdefs.h. */ | |
24578 | $ac_includes_default | |
8647bec6 | 24579 | #include <sql.h> |
e6cc62c6 VS |
24580 | _ACEOF |
24581 | rm -f conftest.$ac_objext | |
24582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24583 | (eval $ac_compile) 2>&5 | |
24584 | ac_status=$? | |
24585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24586 | (exit $ac_status); } && | |
24587 | { ac_try='test -s conftest.$ac_objext' | |
24588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24589 | (eval $ac_try) 2>&5 | |
24590 | ac_status=$? | |
24591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24592 | (exit $ac_status); }; }; then | |
24593 | ac_header_compiler=yes | |
24594 | else | |
24595 | echo "$as_me: failed program was:" >&5 | |
24596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24597 | ||
24598 | ac_header_compiler=no | |
24599 | fi | |
24600 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24601 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24602 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24603 | ||
24604 | # Is the header present? | |
24605 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24606 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24607 | cat >conftest.$ac_ext <<_ACEOF | |
24608 | #line $LINENO "configure" | |
24609 | /* confdefs.h. */ | |
24610 | _ACEOF | |
24611 | cat confdefs.h >>conftest.$ac_ext | |
24612 | cat >>conftest.$ac_ext <<_ACEOF | |
24613 | /* end confdefs.h. */ | |
24614 | #include <sql.h> | |
24615 | _ACEOF | |
24616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24618 | ac_status=$? | |
24619 | grep -v '^ *+' conftest.er1 >conftest.err | |
24620 | rm -f conftest.er1 | |
24621 | cat conftest.err >&5 | |
24622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24623 | (exit $ac_status); } >/dev/null; then | |
24624 | if test -s conftest.err; then | |
24625 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24626 | else | |
24627 | ac_cpp_err= | |
24628 | fi | |
24629 | else | |
24630 | ac_cpp_err=yes | |
24631 | fi | |
24632 | if test -z "$ac_cpp_err"; then | |
24633 | ac_header_preproc=yes | |
24634 | else | |
24635 | echo "$as_me: failed program was:" >&5 | |
24636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24637 | ||
24638 | ac_header_preproc=no | |
24639 | fi | |
24640 | rm -f conftest.err conftest.$ac_ext | |
24641 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24642 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24643 | ||
24644 | # So? What about this header? | |
24645 | case $ac_header_compiler:$ac_header_preproc in | |
24646 | yes:no ) | |
24647 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24648 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24649 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24650 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24651 | ( | |
24652 | cat <<\_ASBOX | |
24653 | ## ------------------------------------ ## | |
24654 | ## Report this to bug-autoconf@gnu.org. ## | |
24655 | ## ------------------------------------ ## | |
24656 | _ASBOX | |
24657 | ) | | |
24658 | sed "s/^/$as_me: WARNING: /" >&2 | |
24659 | ;; | |
24660 | no:yes ) | |
24661 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24662 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24663 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24664 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24665 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24666 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24667 | ( | |
24668 | cat <<\_ASBOX | |
24669 | ## ------------------------------------ ## | |
24670 | ## Report this to bug-autoconf@gnu.org. ## | |
24671 | ## ------------------------------------ ## | |
24672 | _ASBOX | |
24673 | ) | | |
24674 | sed "s/^/$as_me: WARNING: /" >&2 | |
24675 | ;; | |
24676 | esac | |
24677 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24678 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24679 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24681 | else |
e6cc62c6 VS |
24682 | ac_cv_header_sql_h=$ac_header_preproc |
24683 | fi | |
24684 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24685 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24686 | ||
bb41dcbe VS |
24687 | fi |
24688 | if test $ac_cv_header_sql_h = yes; then | |
24689 | found_sql_h=1 | |
8647bec6 RG |
24690 | fi |
24691 | ||
e6cc62c6 | 24692 | |
bb41dcbe VS |
24693 | if test "x$found_sql_h" = "x1" ; then |
24694 | echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5 | |
24695 | echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24696 | if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then | |
e6cc62c6 | 24697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24698 | else |
bb41dcbe VS |
24699 | ac_check_lib_save_LIBS=$LIBS |
24700 | LIBS="-lSQLAllocEnv $LIBS" | |
e6cc62c6 VS |
24701 | cat >conftest.$ac_ext <<_ACEOF |
24702 | #line $LINENO "configure" | |
24703 | /* confdefs.h. */ | |
24704 | _ACEOF | |
24705 | cat confdefs.h >>conftest.$ac_ext | |
24706 | cat >>conftest.$ac_ext <<_ACEOF | |
24707 | /* end confdefs.h. */ | |
24708 | ||
8647bec6 | 24709 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24710 | #ifdef __cplusplus |
24711 | extern "C" | |
24712 | #endif | |
8647bec6 | 24713 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24714 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24715 | char iodbc (); |
e6cc62c6 VS |
24716 | int |
24717 | main () | |
24718 | { | |
bb41dcbe | 24719 | iodbc (); |
e6cc62c6 VS |
24720 | ; |
24721 | return 0; | |
24722 | } | |
24723 | _ACEOF | |
24724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24726 | (eval $ac_link) 2>&5 | |
24727 | ac_status=$? | |
24728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24729 | (exit $ac_status); } && | |
24730 | { ac_try='test -s conftest$ac_exeext' | |
24731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24732 | (eval $ac_try) 2>&5 | |
24733 | ac_status=$? | |
24734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24735 | (exit $ac_status); }; }; then | |
bb41dcbe | 24736 | ac_cv_lib_SQLAllocEnv_iodbc=yes |
8647bec6 | 24737 | else |
e6cc62c6 VS |
24738 | echo "$as_me: failed program was:" >&5 |
24739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24740 | ||
bb41dcbe | 24741 | ac_cv_lib_SQLAllocEnv_iodbc=no |
8647bec6 | 24742 | fi |
e6cc62c6 | 24743 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24744 | LIBS=$ac_check_lib_save_LIBS |
24745 | fi | |
24746 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5 | |
24747 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6 | |
24748 | if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then | |
24749 | ODBC_LINK=" -liodbc" | |
24750 | else | |
24751 | ||
24752 | echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5 | |
24753 | echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24754 | if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then | |
24755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24756 | else | |
24757 | ac_check_lib_save_LIBS=$LIBS | |
24758 | LIBS="-lSQLAllocEnv $LIBS" | |
24759 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24760 | #line $LINENO "configure" |
24761 | /* confdefs.h. */ | |
24762 | _ACEOF | |
24763 | cat confdefs.h >>conftest.$ac_ext | |
24764 | cat >>conftest.$ac_ext <<_ACEOF | |
24765 | /* end confdefs.h. */ | |
24766 | ||
8647bec6 | 24767 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24768 | #ifdef __cplusplus |
24769 | extern "C" | |
24770 | #endif | |
8647bec6 | 24771 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24772 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24773 | char unixodbc (); |
e6cc62c6 VS |
24774 | int |
24775 | main () | |
24776 | { | |
bb41dcbe | 24777 | unixodbc (); |
e6cc62c6 VS |
24778 | ; |
24779 | return 0; | |
24780 | } | |
24781 | _ACEOF | |
24782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24784 | (eval $ac_link) 2>&5 | |
24785 | ac_status=$? | |
24786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24787 | (exit $ac_status); } && | |
24788 | { ac_try='test -s conftest$ac_exeext' | |
24789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24790 | (eval $ac_try) 2>&5 | |
24791 | ac_status=$? | |
24792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24793 | (exit $ac_status); }; }; then | |
bb41dcbe | 24794 | ac_cv_lib_SQLAllocEnv_unixodbc=yes |
8647bec6 | 24795 | else |
e6cc62c6 VS |
24796 | echo "$as_me: failed program was:" >&5 |
24797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24798 | ||
bb41dcbe | 24799 | ac_cv_lib_SQLAllocEnv_unixodbc=no |
8647bec6 | 24800 | fi |
e6cc62c6 | 24801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24802 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24803 | fi |
bb41dcbe VS |
24804 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5 |
24805 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6 | |
24806 | if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then | |
24807 | ODBC_LINK=" -lunixodbc" | |
24808 | else | |
24809 | ||
24810 | echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5 | |
24811 | echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24812 | if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then | |
24813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24814 | else | |
24815 | ac_check_lib_save_LIBS=$LIBS | |
24816 | LIBS="-lSQLAllocEnv $LIBS" | |
24817 | cat >conftest.$ac_ext <<_ACEOF | |
24818 | #line $LINENO "configure" | |
24819 | /* confdefs.h. */ | |
24820 | _ACEOF | |
24821 | cat confdefs.h >>conftest.$ac_ext | |
24822 | cat >>conftest.$ac_ext <<_ACEOF | |
24823 | /* end confdefs.h. */ | |
e6cc62c6 | 24824 | |
bb41dcbe VS |
24825 | /* Override any gcc2 internal prototype to avoid an error. */ |
24826 | #ifdef __cplusplus | |
24827 | extern "C" | |
24828 | #endif | |
24829 | /* We use char because int might match the return type of a gcc2 | |
24830 | builtin and then its argument prototype would still apply. */ | |
24831 | char odbc (); | |
24832 | int | |
24833 | main () | |
24834 | { | |
24835 | odbc (); | |
24836 | ; | |
24837 | return 0; | |
24838 | } | |
24839 | _ACEOF | |
24840 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24842 | (eval $ac_link) 2>&5 | |
24843 | ac_status=$? | |
24844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24845 | (exit $ac_status); } && | |
24846 | { ac_try='test -s conftest$ac_exeext' | |
24847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24848 | (eval $ac_try) 2>&5 | |
24849 | ac_status=$? | |
24850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24851 | (exit $ac_status); }; }; then | |
24852 | ac_cv_lib_SQLAllocEnv_odbc=yes | |
e6cc62c6 | 24853 | else |
bb41dcbe VS |
24854 | echo "$as_me: failed program was:" >&5 |
24855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24856 | ||
24857 | ac_cv_lib_SQLAllocEnv_odbc=no | |
24858 | fi | |
24859 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24860 | LIBS=$ac_check_lib_save_LIBS | |
24861 | fi | |
24862 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5 | |
24863 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6 | |
24864 | if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then | |
24865 | ODBC_LINK=" -lodbc" | |
24866 | fi | |
24867 | ||
24868 | ||
24869 | fi | |
e6cc62c6 | 24870 | |
e6cc62c6 | 24871 | |
8647bec6 | 24872 | fi |
e6cc62c6 | 24873 | |
fd3d7534 | 24874 | fi |
bb41dcbe VS |
24875 | if test "x$ODBC_LINK" = "x" ; then |
24876 | if test "$wxUSE_ODBC" = "sys" ; then | |
24877 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
24878 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
24879 | { (exit 1); exit 1; }; } | |
24880 | else | |
24881 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
24882 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
24883 | wxUSE_ODBC=builtin | |
24884 | fi | |
24885 | else | |
24886 | wxUSE_ODBC=sys | |
8647bec6 | 24887 | fi |
8647bec6 | 24888 | fi |
bb41dcbe VS |
24889 | if test "$wxUSE_ODBC" != "no" ; then |
24890 | cat >>confdefs.h <<\_ACEOF | |
24891 | #define wxUSE_ODBC 1 | |
24892 | _ACEOF | |
e6cc62c6 | 24893 | |
bb41dcbe VS |
24894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
24895 | ||
24896 | WXODBCFLAG="-D_IODBC_" | |
24897 | fi | |
6232543b | 24898 | fi |
21d1c967 GD |
24899 | |
24900 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24901 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24902 | fi |
21d1c967 GD |
24903 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24904 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24905 | fi |
24906 | ||
8284b0c5 | 24907 | |
4d264332 | 24908 | USE_OPENGL=0 |
21d1c967 | 24909 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24910 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24911 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24912 | elif test "$wxUSE_MSW" = 1; then | |
24913 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24914 | else | |
01aa5863 VS |
24915 | |
24916 | ||
24917 | ac_find_includes= | |
24918 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24919 | do | |
24920 | if test -f "$ac_dir/GL/gl.h"; then | |
24921 | ac_find_includes=$ac_dir | |
24922 | break | |
24923 | fi | |
24924 | done | |
24925 | ||
24926 | if test "$ac_find_includes" != "" ; then | |
24927 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24928 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
24929 | |
24930 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24931 | ac_path_to_include="" | |
24932 | else | |
24933 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24934 | result=$? | |
24935 | if test $result = 0; then | |
24936 | ac_path_to_include="" | |
24937 | else | |
24938 | ac_path_to_include=" -I$ac_find_includes" | |
24939 | fi | |
24940 | fi | |
24941 | ||
24942 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
24943 | fi |
24944 | ||
e6cc62c6 VS |
24945 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24946 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24947 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24948 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24950 | fi | |
24951 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24952 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24953 | else | |
24954 | # Is the header compilable? | |
24955 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24956 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24957 | cat >conftest.$ac_ext <<_ACEOF | |
24958 | #line $LINENO "configure" | |
24959 | /* confdefs.h. */ | |
24960 | _ACEOF | |
24961 | cat confdefs.h >>conftest.$ac_ext | |
24962 | cat >>conftest.$ac_ext <<_ACEOF | |
24963 | /* end confdefs.h. */ | |
24964 | $ac_includes_default | |
21d1c967 | 24965 | #include <GL/gl.h> |
e6cc62c6 VS |
24966 | _ACEOF |
24967 | rm -f conftest.$ac_objext | |
24968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24969 | (eval $ac_compile) 2>&5 | |
24970 | ac_status=$? | |
24971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24972 | (exit $ac_status); } && | |
24973 | { ac_try='test -s conftest.$ac_objext' | |
24974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24975 | (eval $ac_try) 2>&5 | |
24976 | ac_status=$? | |
24977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24978 | (exit $ac_status); }; }; then | |
24979 | ac_header_compiler=yes | |
24980 | else | |
24981 | echo "$as_me: failed program was:" >&5 | |
24982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24983 | ||
24984 | ac_header_compiler=no | |
24985 | fi | |
24986 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24987 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24988 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24989 | ||
24990 | # Is the header present? | |
24991 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24992 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24993 | cat >conftest.$ac_ext <<_ACEOF | |
24994 | #line $LINENO "configure" | |
24995 | /* confdefs.h. */ | |
24996 | _ACEOF | |
24997 | cat confdefs.h >>conftest.$ac_ext | |
24998 | cat >>conftest.$ac_ext <<_ACEOF | |
24999 | /* end confdefs.h. */ | |
25000 | #include <GL/gl.h> | |
25001 | _ACEOF | |
25002 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25003 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25004 | ac_status=$? | |
25005 | grep -v '^ *+' conftest.er1 >conftest.err | |
25006 | rm -f conftest.er1 | |
25007 | cat conftest.err >&5 | |
25008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25009 | (exit $ac_status); } >/dev/null; then | |
25010 | if test -s conftest.err; then | |
25011 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25012 | else | |
25013 | ac_cpp_err= | |
25014 | fi | |
25015 | else | |
25016 | ac_cpp_err=yes | |
25017 | fi | |
25018 | if test -z "$ac_cpp_err"; then | |
25019 | ac_header_preproc=yes | |
25020 | else | |
25021 | echo "$as_me: failed program was:" >&5 | |
25022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25023 | ||
25024 | ac_header_preproc=no | |
25025 | fi | |
25026 | rm -f conftest.err conftest.$ac_ext | |
25027 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25028 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25029 | ||
25030 | # So? What about this header? | |
25031 | case $ac_header_compiler:$ac_header_preproc in | |
25032 | yes:no ) | |
25033 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25034 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25035 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
25036 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25037 | ( | |
25038 | cat <<\_ASBOX | |
25039 | ## ------------------------------------ ## | |
25040 | ## Report this to bug-autoconf@gnu.org. ## | |
25041 | ## ------------------------------------ ## | |
25042 | _ASBOX | |
25043 | ) | | |
25044 | sed "s/^/$as_me: WARNING: /" >&2 | |
25045 | ;; | |
25046 | no:yes ) | |
25047 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
25048 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
25049 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
25050 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
25051 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
25052 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25053 | ( | |
25054 | cat <<\_ASBOX | |
25055 | ## ------------------------------------ ## | |
25056 | ## Report this to bug-autoconf@gnu.org. ## | |
25057 | ## ------------------------------------ ## | |
25058 | _ASBOX | |
25059 | ) | | |
25060 | sed "s/^/$as_me: WARNING: /" >&2 | |
25061 | ;; | |
25062 | esac | |
25063 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25064 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25065 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25067 | else | |
25068 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 25069 | fi |
e6cc62c6 VS |
25070 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
25071 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25072 | ||
698dcdb6 | 25073 | fi |
e6cc62c6 VS |
25074 | if test $ac_cv_header_GL_gl_h = yes; then |
25075 | ||
89e3b3e4 VZ |
25076 | found_gl=0 |
25077 | ||
e6cc62c6 VS |
25078 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
25079 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
25080 | ||
21d1c967 | 25081 | ac_find_libraries= |
2b5f62a0 | 25082 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25083 | do |
25084 | for ac_extension in a so sl dylib; do | |
25085 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
25086 | ac_find_libraries=$ac_dir | |
25087 | break 2 | |
25088 | fi | |
25089 | done | |
25090 | done | |
25091 | ||
25092 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25093 | |
21d1c967 GD |
25094 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25095 | result=$? | |
25096 | if test $result = 0; then | |
25097 | ac_path_to_link="" | |
25098 | else | |
25099 | ac_path_to_link=" -L$ac_find_libraries" | |
25100 | fi | |
25101 | ||
89e3b3e4 VZ |
25102 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
25103 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 25104 | fi |
89e3b3e4 | 25105 | |
e6cc62c6 | 25106 | |
89e3b3e4 VZ |
25107 | ac_find_libraries= |
25108 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25109 | do | |
25110 | for ac_extension in a so sl dylib; do | |
25111 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
25112 | ac_find_libraries=$ac_dir | |
25113 | break 2 | |
25114 | fi | |
25115 | done | |
25116 | done | |
25117 | ||
25118 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25119 | |
89e3b3e4 VZ |
25120 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25121 | result=$? | |
25122 | if test $result = 0; then | |
25123 | ac_path_to_link="" | |
25124 | else | |
25125 | ac_path_to_link=" -L$ac_find_libraries" | |
25126 | fi | |
25127 | ||
25128 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
25129 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
25130 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
25131 | fi | |
25132 | ||
25133 | found_gl=1 | |
25134 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
25135 | echo "$as_me:$LINENO: result: yes" >&5 |
25136 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
25137 | fi |
25138 | fi | |
25139 | ||
bb41dcbe | 25140 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
25141 | echo "$as_me:$LINENO: result: no" >&5 |
25142 | echo "${ECHO_T}no" >&6 | |
25143 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
25144 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
25145 | ||
21d1c967 | 25146 | ac_find_libraries= |
2b5f62a0 | 25147 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25148 | do |
25149 | for ac_extension in a so sl dylib; do | |
25150 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
25151 | ac_find_libraries=$ac_dir | |
25152 | break 2 | |
25153 | fi | |
25154 | done | |
25155 | done | |
25156 | ||
25157 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25158 | |
21d1c967 GD |
25159 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25160 | result=$? | |
25161 | if test $result = 0; then | |
25162 | ac_path_to_link="" | |
25163 | else | |
25164 | ac_path_to_link=" -L$ac_find_libraries" | |
25165 | fi | |
25166 | ||
25167 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
25168 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
25169 | echo "$as_me:$LINENO: result: yes" >&5 |
25170 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 25171 | else |
e6cc62c6 VS |
25172 | echo "$as_me:$LINENO: result: no" >&5 |
25173 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25174 | fi |
25175 | fi | |
e6cc62c6 | 25176 | |
5c6fa7d2 | 25177 | fi |
52127426 | 25178 | |
8284b0c5 | 25179 | |
e6cc62c6 | 25180 | |
21d1c967 | 25181 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
25182 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
25183 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
25184 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25185 | fi |
25186 | fi | |
90dd450c | 25187 | |
21d1c967 | 25188 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 25189 | USE_OPENGL=1 |
e6cc62c6 | 25190 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25191 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 25192 | _ACEOF |
21d1c967 | 25193 | |
e6cc62c6 | 25194 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25195 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 25196 | _ACEOF |
21d1c967 | 25197 | |
520755bb | 25198 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 25199 | fi |
10f2d63a | 25200 | fi |
21d1c967 GD |
25201 | |
25202 | if test -z "$TOOLKIT_VPATH" ; then | |
25203 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 25204 | fi |
21d1c967 GD |
25205 | |
25206 | if test -n "$TOOLKIT" ; then | |
25207 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
25208 | fi | |
25209 | ||
fe0895cf | 25210 | UNICODE=0 |
21d1c967 GD |
25211 | lib_unicode_suffix= |
25212 | if test "$wxUSE_UNICODE" = "yes"; then | |
25213 | lib_unicode_suffix=u | |
fe0895cf | 25214 | UNICODE=1 |
90dd450c | 25215 | fi |
698dcdb6 | 25216 | |
21d1c967 | 25217 | lib_debug_suffix= |
6c67131a | 25218 | DEBUG_FLAG=0 |
21d1c967 GD |
25219 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
25220 | lib_debug_suffix=d | |
6c67131a VS |
25221 | DEBUG_FLAG=1 |
25222 | fi | |
25223 | ||
25224 | DEBUG_INFO=0 | |
25225 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
25226 | DEBUG_INFO=1 | |
21d1c967 | 25227 | fi |
698dcdb6 | 25228 | |
1cbb95a2 | 25229 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
25230 | |
25231 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
25232 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
25233 | |
25234 | if test "$cross_compiling" = "yes"; then | |
25235 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
25236 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 25237 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
25238 | fi |
25239 | ||
25240 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
25241 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
25242 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
25243 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
25244 | |
25245 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25246 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25247 | ||
25248 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
25249 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25250 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
25251 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25252 | ||
25253 | case "${host}" in | |
25254 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
25255 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
25256 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
25257 | ;; |
25258 | ||
25259 | *-*-darwin* ) | |
e6cc62c6 | 25260 | |
05159a27 GD |
25261 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
25262 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25263 | ||
25264 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25265 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25266 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25267 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25268 | ||
21d1c967 | 25269 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
25270 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
25271 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
25272 | fi |
25273 | ;; | |
25274 | esac | |
25275 | ||
25276 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25277 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25278 | ||
25279 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25280 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25281 | ||
25282 | if test "$wxUSE_OPENGL" = "yes"; then | |
25283 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25284 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25285 | fi | |
25286 | ||
8284b0c5 MB |
25287 | |
25288 | ||
21d1c967 GD |
25289 | if test "$wxUSE_SHARED" = "yes"; then |
25290 | case "${host}" in | |
25291 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25292 | *-pc-msdosdjgpp ) | |
25293 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25294 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25295 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25296 | ;; |
25297 | esac | |
25298 | fi | |
25299 | ||
fe0895cf | 25300 | SHARED=0 |
2b5f62a0 | 25301 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25302 | SHARED=1 |
2b5f62a0 | 25303 | |
e6cc62c6 | 25304 | |
2b5f62a0 VZ |
25305 | found_versioning=no |
25306 | ||
e6cc62c6 | 25307 | |
2b5f62a0 | 25308 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25309 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25310 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25311 | if test "${wx_cv_version_script+set}" = set; then | |
25312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25313 | else |
e6cc62c6 | 25314 | |
2b5f62a0 VZ |
25315 | echo "VER_1 { *; };" >conftest.sym |
25316 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25317 | |
2b5f62a0 VZ |
25318 | if { ac_try=' |
25319 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25320 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25322 | (eval $ac_try) 2>&5 | |
25323 | ac_status=$? | |
25324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25325 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25326 | if test -s conftest.stderr ; then |
25327 | wx_cv_version_script=no | |
25328 | else | |
25329 | wx_cv_version_script=yes | |
25330 | fi | |
25331 | else | |
25332 | wx_cv_version_script=no | |
25333 | fi | |
25334 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25335 | |
e6cc62c6 VS |
25336 | fi |
25337 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25338 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25339 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25340 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25341 | fi |
25342 | fi | |
21d1c967 | 25343 | |
21d1c967 | 25344 | |
21d1c967 | 25345 | case "${host}" in |
fe0895cf | 25346 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25347 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
21d1c967 GD |
25348 | ;; |
25349 | ||
25350 | *-*-solaris2* ) | |
25351 | if test "$GCC" = yes ; then | |
25352 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25353 | |
25354 | saveLdflags="$LDFLAGS" | |
25355 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25356 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25357 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25358 | cat >conftest.$ac_ext <<_ACEOF | |
25359 | #line $LINENO "configure" | |
25360 | /* confdefs.h. */ | |
25361 | _ACEOF | |
25362 | cat confdefs.h >>conftest.$ac_ext | |
25363 | cat >>conftest.$ac_ext <<_ACEOF | |
25364 | /* end confdefs.h. */ | |
25365 | ||
25366 | int | |
25367 | main () | |
25368 | { | |
fe0895cf | 25369 | |
e6cc62c6 VS |
25370 | ; |
25371 | return 0; | |
25372 | } | |
25373 | _ACEOF | |
25374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25376 | (eval $ac_link) 2>&5 | |
25377 | ac_status=$? | |
25378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25379 | (exit $ac_status); } && | |
25380 | { ac_try='test -s conftest$ac_exeext' | |
25381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25382 | (eval $ac_try) 2>&5 | |
25383 | ac_status=$? | |
25384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25385 | (exit $ac_status); }; }; then | |
25386 | ||
25387 | echo "$as_me:$LINENO: result: yes" >&5 | |
25388 | echo "${ECHO_T}yes" >&6 | |
25389 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25390 | ||
25391 | else | |
25392 | echo "$as_me: failed program was:" >&5 | |
25393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25394 | ||
25395 | ||
25396 | echo "$as_me:$LINENO: result: no" >&5 | |
25397 | echo "${ECHO_T}no" >&6 | |
25398 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25399 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25400 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
25401 | cat >conftest.$ac_ext <<_ACEOF |
25402 | #line $LINENO "configure" | |
25403 | /* confdefs.h. */ | |
25404 | _ACEOF | |
25405 | cat confdefs.h >>conftest.$ac_ext | |
25406 | cat >>conftest.$ac_ext <<_ACEOF | |
25407 | /* end confdefs.h. */ | |
25408 | ||
25409 | int | |
25410 | main () | |
25411 | { | |
25412 | ||
25413 | ; | |
25414 | return 0; | |
25415 | } | |
25416 | _ACEOF | |
25417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25419 | (eval $ac_link) 2>&5 | |
25420 | ac_status=$? | |
25421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25422 | (exit $ac_status); } && | |
25423 | { ac_try='test -s conftest$ac_exeext' | |
25424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25425 | (eval $ac_try) 2>&5 | |
25426 | ac_status=$? | |
25427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25428 | (exit $ac_status); }; }; then | |
25429 | ||
25430 | echo "$as_me:$LINENO: result: yes" >&5 | |
25431 | echo "${ECHO_T}yes" >&6 | |
25432 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25433 | else | |
25434 | echo "$as_me: failed program was:" >&5 | |
25435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25436 | |
fe0895cf | 25437 | |
e6cc62c6 VS |
25438 | echo "$as_me:$LINENO: result: no" >&5 |
25439 | echo "${ECHO_T}no" >&6 | |
25440 | ||
fe0895cf | 25441 | fi |
e6cc62c6 VS |
25442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
25443 | ||
25444 | fi | |
25445 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 25446 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25447 | else |
25448 | SHARED_LD="${CXX} -G -o" | |
25449 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25450 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25451 | fi |
25452 | ;; | |
21d1c967 GD |
25453 | esac |
25454 | ||
25455 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25456 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25457 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25458 | fi | |
25459 | ||
25460 | WX_TARGET_LIBRARY_TYPE="so" | |
25461 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25462 | fi |
10f2d63a | 25463 | |
21d1c967 GD |
25464 | if test "$wxUSE_SHARED" = "no"; then |
25465 | ||
25466 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25467 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25468 | fi | |
25469 | ||
ac0c4cc3 | 25470 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25471 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25472 | fi | |
25473 | ||
25474 | if test "$wxUSE_OPENGL" = "yes"; then | |
25475 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25476 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25477 | else | |
25478 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25479 | fi | |
25480 | ||
25481 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25482 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25483 | ||
25484 | WX_TARGET_LIBRARY_TYPE="a" | |
25485 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25486 | |
25487 | STATIC_FLAG="yes" | |
25488 | else | |
25489 | STATIC_FLAG="no" | |
90dd450c | 25490 | fi |
1e487827 | 25491 | |
93fac604 VZ |
25492 | MACRESCOMP="@#" |
25493 | MACSETFILE="@#" | |
36825681 | 25494 | MACRESWXCONFIG="#" |
21d1c967 | 25495 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25496 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25497 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25498 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25499 | # Extract the first word of "Rez", so it can be a program name with args. | |
25500 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25503 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25505 | else |
21d1c967 GD |
25506 | if test -n "$RESCOMP"; then |
25507 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25508 | else |
e6cc62c6 VS |
25509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25510 | for as_dir in $PATH | |
25511 | do | |
25512 | IFS=$as_save_IFS | |
25513 | test -z "$as_dir" && as_dir=. | |
25514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25516 | ac_cv_prog_RESCOMP="Rez" | |
25517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25518 | break 2 | |
25519 | fi | |
25520 | done | |
25521 | done | |
25522 | ||
21d1c967 | 25523 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25524 | fi |
b93d0d08 | 25525 | fi |
e6cc62c6 | 25526 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25527 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25528 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25529 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25530 | else |
e6cc62c6 VS |
25531 | echo "$as_me:$LINENO: result: no" >&5 |
25532 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25533 | fi |
b93d0d08 | 25534 | |
21d1c967 GD |
25535 | # Extract the first word of "DeRez", so it can be a program name with args. |
25536 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25537 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25538 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25539 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25541 | else |
21d1c967 GD |
25542 | if test -n "$DEREZ"; then |
25543 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25544 | else |
e6cc62c6 VS |
25545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25546 | for as_dir in $PATH | |
25547 | do | |
25548 | IFS=$as_save_IFS | |
25549 | test -z "$as_dir" && as_dir=. | |
25550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25552 | ac_cv_prog_DEREZ="DeRez" | |
25553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25554 | break 2 | |
25555 | fi | |
25556 | done | |
25557 | done | |
25558 | ||
21d1c967 | 25559 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25560 | fi |
90dd450c | 25561 | fi |
e6cc62c6 | 25562 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25563 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25564 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25565 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25566 | else |
e6cc62c6 VS |
25567 | echo "$as_me:$LINENO: result: no" >&5 |
25568 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25569 | fi |
698dcdb6 | 25570 | |
36825681 GD |
25571 | # Extract the first word of "SetFile", so it can be a program name with args. |
25572 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25575 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25577 | else |
25578 | if test -n "$SETFILE"; then | |
25579 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25580 | else | |
e6cc62c6 VS |
25581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25582 | for as_dir in $PATH | |
25583 | do | |
25584 | IFS=$as_save_IFS | |
25585 | test -z "$as_dir" && as_dir=. | |
25586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25588 | ac_cv_prog_SETFILE="SetFile" | |
25589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25590 | break 2 | |
25591 | fi | |
25592 | done | |
25593 | done | |
25594 | ||
36825681 GD |
25595 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25596 | fi | |
25597 | fi | |
e6cc62c6 | 25598 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25599 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25600 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25601 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25602 | else |
e6cc62c6 VS |
25603 | echo "$as_me:$LINENO: result: no" >&5 |
25604 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25605 | fi |
25606 | ||
21d1c967 | 25607 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25608 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25609 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25610 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25611 | elif test "$wxUSE_COCOA" = 1; then |
25612 | # Extract the first word of "Rez", so it can be a program name with args. | |
25613 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25614 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25616 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25618 | else |
25619 | if test -n "$RESCOMP"; then | |
25620 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25621 | else | |
e6cc62c6 VS |
25622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25623 | for as_dir in $PATH | |
25624 | do | |
25625 | IFS=$as_save_IFS | |
25626 | test -z "$as_dir" && as_dir=. | |
25627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25628 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25629 | ac_cv_prog_RESCOMP="Rez" | |
25630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25631 | break 2 | |
25632 | fi | |
25633 | done | |
25634 | done | |
25635 | ||
64440d77 DE |
25636 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25637 | fi | |
25638 | fi | |
e6cc62c6 | 25639 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25640 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25641 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25642 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25643 | else |
e6cc62c6 VS |
25644 | echo "$as_me:$LINENO: result: no" >&5 |
25645 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25646 | fi |
25647 | ||
25648 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25649 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25652 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25654 | else |
25655 | if test -n "$DEREZ"; then | |
25656 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25657 | else | |
e6cc62c6 VS |
25658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25659 | for as_dir in $PATH | |
25660 | do | |
25661 | IFS=$as_save_IFS | |
25662 | test -z "$as_dir" && as_dir=. | |
25663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25665 | ac_cv_prog_DEREZ="DeRez" | |
25666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25667 | break 2 | |
25668 | fi | |
25669 | done | |
25670 | done | |
25671 | ||
64440d77 DE |
25672 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25673 | fi | |
25674 | fi | |
e6cc62c6 | 25675 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25676 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25677 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25678 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25679 | else |
e6cc62c6 VS |
25680 | echo "$as_me:$LINENO: result: no" >&5 |
25681 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25682 | fi |
25683 | ||
25684 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25685 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25686 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25688 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25690 | else |
25691 | if test -n "$SETFILE"; then | |
25692 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25693 | else | |
e6cc62c6 VS |
25694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25695 | for as_dir in $PATH | |
25696 | do | |
25697 | IFS=$as_save_IFS | |
25698 | test -z "$as_dir" && as_dir=. | |
25699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25701 | ac_cv_prog_SETFILE="SetFile" | |
25702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25703 | break 2 | |
25704 | fi | |
25705 | done | |
25706 | done | |
25707 | ||
64440d77 DE |
25708 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25709 | fi | |
25710 | fi | |
e6cc62c6 | 25711 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25712 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25713 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25714 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25715 | else |
e6cc62c6 VS |
25716 | echo "$as_me:$LINENO: result: no" >&5 |
25717 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25718 | fi |
25719 | ||
25720 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25721 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25722 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25723 | else |
25724 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25725 | MACRESCOMP="emxbind -ep" |
90dd450c | 25726 | fi |
4f14bcd8 | 25727 | fi |
10f2d63a | 25728 | |
8284b0c5 | 25729 | |
e6cc62c6 VS |
25730 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25731 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25732 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25734 | else |
e6cc62c6 VS |
25735 | cat >conftest.$ac_ext <<_ACEOF |
25736 | #line $LINENO "configure" | |
25737 | /* confdefs.h. */ | |
25738 | _ACEOF | |
25739 | cat confdefs.h >>conftest.$ac_ext | |
25740 | cat >>conftest.$ac_ext <<_ACEOF | |
25741 | /* end confdefs.h. */ | |
25742 | $ac_includes_default | |
25743 | int | |
25744 | main () | |
25745 | { | |
25746 | if ((mode_t *) 0) | |
25747 | return 0; | |
25748 | if (sizeof (mode_t)) | |
25749 | return 0; | |
25750 | ; | |
25751 | return 0; | |
25752 | } | |
25753 | _ACEOF | |
25754 | rm -f conftest.$ac_objext | |
25755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25756 | (eval $ac_compile) 2>&5 | |
25757 | ac_status=$? | |
25758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25759 | (exit $ac_status); } && | |
25760 | { ac_try='test -s conftest.$ac_objext' | |
25761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25762 | (eval $ac_try) 2>&5 | |
25763 | ac_status=$? | |
25764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25765 | (exit $ac_status); }; }; then | |
25766 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25767 | else |
e6cc62c6 VS |
25768 | echo "$as_me: failed program was:" >&5 |
25769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25770 | |
e6cc62c6 | 25771 | ac_cv_type_mode_t=no |
a0b9e27f | 25772 | fi |
e6cc62c6 | 25773 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25774 | fi |
e6cc62c6 VS |
25775 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25776 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25777 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25778 | : |
25779 | else | |
a0b9e27f | 25780 | |
e6cc62c6 VS |
25781 | cat >>confdefs.h <<_ACEOF |
25782 | #define mode_t int | |
25783 | _ACEOF | |
8284b0c5 MB |
25784 | |
25785 | fi | |
25786 | ||
e6cc62c6 VS |
25787 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25788 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25789 | if test "${ac_cv_type_off_t+set}" = set; then | |
25790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25791 | else |
e6cc62c6 VS |
25792 | cat >conftest.$ac_ext <<_ACEOF |
25793 | #line $LINENO "configure" | |
25794 | /* confdefs.h. */ | |
25795 | _ACEOF | |
25796 | cat confdefs.h >>conftest.$ac_ext | |
25797 | cat >>conftest.$ac_ext <<_ACEOF | |
25798 | /* end confdefs.h. */ | |
25799 | $ac_includes_default | |
25800 | int | |
25801 | main () | |
25802 | { | |
25803 | if ((off_t *) 0) | |
25804 | return 0; | |
25805 | if (sizeof (off_t)) | |
25806 | return 0; | |
25807 | ; | |
25808 | return 0; | |
25809 | } | |
25810 | _ACEOF | |
25811 | rm -f conftest.$ac_objext | |
25812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25813 | (eval $ac_compile) 2>&5 | |
25814 | ac_status=$? | |
25815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25816 | (exit $ac_status); } && | |
25817 | { ac_try='test -s conftest.$ac_objext' | |
25818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25819 | (eval $ac_try) 2>&5 | |
25820 | ac_status=$? | |
25821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25822 | (exit $ac_status); }; }; then | |
25823 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25824 | else |
e6cc62c6 VS |
25825 | echo "$as_me: failed program was:" >&5 |
25826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25827 | |
e6cc62c6 | 25828 | ac_cv_type_off_t=no |
8284b0c5 | 25829 | fi |
e6cc62c6 | 25830 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25831 | fi |
e6cc62c6 VS |
25832 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25833 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25834 | if test $ac_cv_type_off_t = yes; then | |
25835 | : | |
247f5006 VZ |
25836 | else |
25837 | ||
e6cc62c6 | 25838 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25839 | #define off_t long |
e6cc62c6 | 25840 | _ACEOF |
10f2d63a | 25841 | |
90dd450c | 25842 | fi |
10f2d63a | 25843 | |
e6cc62c6 VS |
25844 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25845 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25846 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25848 | else |
e6cc62c6 VS |
25849 | cat >conftest.$ac_ext <<_ACEOF |
25850 | #line $LINENO "configure" | |
25851 | /* confdefs.h. */ | |
25852 | _ACEOF | |
25853 | cat confdefs.h >>conftest.$ac_ext | |
25854 | cat >>conftest.$ac_ext <<_ACEOF | |
25855 | /* end confdefs.h. */ | |
25856 | $ac_includes_default | |
25857 | int | |
25858 | main () | |
25859 | { | |
25860 | if ((pid_t *) 0) | |
25861 | return 0; | |
25862 | if (sizeof (pid_t)) | |
25863 | return 0; | |
25864 | ; | |
25865 | return 0; | |
25866 | } | |
25867 | _ACEOF | |
25868 | rm -f conftest.$ac_objext | |
25869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25870 | (eval $ac_compile) 2>&5 | |
25871 | ac_status=$? | |
25872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25873 | (exit $ac_status); } && | |
25874 | { ac_try='test -s conftest.$ac_objext' | |
25875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25876 | (eval $ac_try) 2>&5 | |
25877 | ac_status=$? | |
25878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25879 | (exit $ac_status); }; }; then | |
90dd450c | 25880 | ac_cv_type_pid_t=yes |
698dcdb6 | 25881 | else |
e6cc62c6 VS |
25882 | echo "$as_me: failed program was:" >&5 |
25883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25884 | |
e6cc62c6 VS |
25885 | ac_cv_type_pid_t=no |
25886 | fi | |
25887 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25888 | fi |
e6cc62c6 VS |
25889 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25890 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25891 | if test $ac_cv_type_pid_t = yes; then | |
25892 | : | |
25893 | else | |
25894 | ||
25895 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25896 | #define pid_t int |
e6cc62c6 | 25897 | _ACEOF |
10f2d63a | 25898 | |
7b4a847f RR |
25899 | fi |
25900 | ||
e6cc62c6 VS |
25901 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25902 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25903 | if test "${ac_cv_type_size_t+set}" = set; then | |
25904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25905 | else |
e6cc62c6 VS |
25906 | cat >conftest.$ac_ext <<_ACEOF |
25907 | #line $LINENO "configure" | |
25908 | /* confdefs.h. */ | |
25909 | _ACEOF | |
25910 | cat confdefs.h >>conftest.$ac_ext | |
25911 | cat >>conftest.$ac_ext <<_ACEOF | |
25912 | /* end confdefs.h. */ | |
25913 | $ac_includes_default | |
25914 | int | |
25915 | main () | |
25916 | { | |
25917 | if ((size_t *) 0) | |
25918 | return 0; | |
25919 | if (sizeof (size_t)) | |
25920 | return 0; | |
25921 | ; | |
25922 | return 0; | |
25923 | } | |
25924 | _ACEOF | |
25925 | rm -f conftest.$ac_objext | |
25926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25927 | (eval $ac_compile) 2>&5 | |
25928 | ac_status=$? | |
25929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25930 | (exit $ac_status); } && | |
25931 | { ac_try='test -s conftest.$ac_objext' | |
25932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25933 | (eval $ac_try) 2>&5 | |
25934 | ac_status=$? | |
25935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25936 | (exit $ac_status); }; }; then | |
90dd450c | 25937 | ac_cv_type_size_t=yes |
18dbb1f6 | 25938 | else |
e6cc62c6 VS |
25939 | echo "$as_me: failed program was:" >&5 |
25940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25941 | |
e6cc62c6 | 25942 | ac_cv_type_size_t=no |
a0b9e27f | 25943 | fi |
e6cc62c6 VS |
25944 | rm -f conftest.$ac_objext conftest.$ac_ext |
25945 | fi | |
25946 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25947 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25948 | if test $ac_cv_type_size_t = yes; then | |
25949 | : | |
25950 | else | |
25951 | ||
25952 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25953 | #define size_t unsigned |
e6cc62c6 | 25954 | _ACEOF |
90dd450c VZ |
25955 | |
25956 | fi | |
25957 | ||
e6cc62c6 VS |
25958 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25959 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25960 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25962 | else |
e6cc62c6 VS |
25963 | cat >conftest.$ac_ext <<_ACEOF |
25964 | #line $LINENO "configure" | |
25965 | /* confdefs.h. */ | |
25966 | _ACEOF | |
25967 | cat confdefs.h >>conftest.$ac_ext | |
25968 | cat >>conftest.$ac_ext <<_ACEOF | |
25969 | /* end confdefs.h. */ | |
90dd450c | 25970 | #include <sys/types.h> |
e6cc62c6 VS |
25971 | |
25972 | _ACEOF | |
90dd450c | 25973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25974 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25975 | ac_cv_type_uid_t=yes |
b3e8d00a | 25976 | else |
90dd450c | 25977 | ac_cv_type_uid_t=no |
b3e8d00a | 25978 | fi |
90dd450c | 25979 | rm -f conftest* |
b3e8d00a | 25980 | |
4f14bcd8 | 25981 | fi |
e6cc62c6 VS |
25982 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25983 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25984 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25985 | |
25986 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25987 | #define uid_t int |
e6cc62c6 | 25988 | _ACEOF |
247f5006 | 25989 | |
e6cc62c6 VS |
25990 | |
25991 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25992 | #define gid_t int |
e6cc62c6 | 25993 | _ACEOF |
4f14bcd8 | 25994 | |
b3e8d00a | 25995 | fi |
b3e8d00a | 25996 | |
8284b0c5 MB |
25997 | |
25998 | ||
e6cc62c6 VS |
25999 | |
26000 | ac_ext=cc | |
4f14bcd8 | 26001 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26002 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26003 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26004 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26005 | ||
26006 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
26007 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
26008 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
26009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26010 | else | |
26011 | ||
26012 | cat >conftest.$ac_ext <<_ACEOF | |
26013 | #line $LINENO "configure" | |
26014 | /* confdefs.h. */ | |
26015 | _ACEOF | |
26016 | cat confdefs.h >>conftest.$ac_ext | |
26017 | cat >>conftest.$ac_ext <<_ACEOF | |
26018 | /* end confdefs.h. */ | |
90dd450c | 26019 | #include <stddef.h> |
e6cc62c6 VS |
26020 | int |
26021 | main () | |
26022 | { | |
90dd450c VZ |
26023 | |
26024 | return 0; } | |
26025 | ||
26026 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
26027 | ||
26028 | int bar() { | |
e6cc62c6 VS |
26029 | |
26030 | ; | |
26031 | return 0; | |
26032 | } | |
26033 | _ACEOF | |
26034 | rm -f conftest.$ac_objext | |
26035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26036 | (eval $ac_compile) 2>&5 | |
26037 | ac_status=$? | |
26038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26039 | (exit $ac_status); } && | |
26040 | { ac_try='test -s conftest.$ac_objext' | |
26041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26042 | (eval $ac_try) 2>&5 | |
26043 | ac_status=$? | |
26044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26045 | (exit $ac_status); }; }; then | |
90dd450c | 26046 | wx_cv_size_t_is_uint=no |
698dcdb6 | 26047 | else |
e6cc62c6 VS |
26048 | echo "$as_me: failed program was:" >&5 |
26049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26050 | ||
26051 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 26052 | |
247f5006 | 26053 | fi |
e6cc62c6 VS |
26054 | rm -f conftest.$ac_objext conftest.$ac_ext |
26055 | ||
a0b9e27f | 26056 | |
e6cc62c6 VS |
26057 | fi |
26058 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
26059 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 26060 | |
90dd450c | 26061 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 26062 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26063 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 26064 | _ACEOF |
698dcdb6 | 26065 | |
90dd450c | 26066 | else |
e6cc62c6 VS |
26067 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
26068 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
26069 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
26070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26071 | else |
e6cc62c6 VS |
26072 | cat >conftest.$ac_ext <<_ACEOF |
26073 | #line $LINENO "configure" | |
26074 | /* confdefs.h. */ | |
26075 | _ACEOF | |
26076 | cat confdefs.h >>conftest.$ac_ext | |
26077 | cat >>conftest.$ac_ext <<_ACEOF | |
26078 | /* end confdefs.h. */ | |
90dd450c | 26079 | #include <stddef.h> |
e6cc62c6 VS |
26080 | int |
26081 | main () | |
26082 | { | |
90dd450c VZ |
26083 | |
26084 | return 0; } | |
26085 | ||
26086 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
26087 | ||
26088 | int bar() { | |
e6cc62c6 VS |
26089 | |
26090 | ; | |
26091 | return 0; | |
26092 | } | |
26093 | _ACEOF | |
26094 | rm -f conftest.$ac_objext | |
26095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26096 | (eval $ac_compile) 2>&5 | |
26097 | ac_status=$? | |
26098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26099 | (exit $ac_status); } && | |
26100 | { ac_try='test -s conftest.$ac_objext' | |
26101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26102 | (eval $ac_try) 2>&5 | |
26103 | ac_status=$? | |
26104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26105 | (exit $ac_status); }; }; then | |
90dd450c | 26106 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 26107 | else |
e6cc62c6 VS |
26108 | echo "$as_me: failed program was:" >&5 |
26109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26110 | ||
26111 | wx_cv_size_t_is_ulong=yes | |
26112 | ||
247f5006 | 26113 | fi |
e6cc62c6 | 26114 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26115 | |
e6cc62c6 VS |
26116 | fi |
26117 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
26118 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 26119 | |
90dd450c | 26120 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 26121 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26122 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 26123 | _ACEOF |
4f14bcd8 GD |
26124 | |
26125 | fi | |
90dd450c | 26126 | fi |
1e487827 | 26127 | |
90dd450c | 26128 | ac_ext=c |
4f14bcd8 | 26129 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 26133 | |
5c6fa7d2 | 26134 | |
8284b0c5 | 26135 | |
e6cc62c6 VS |
26136 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
26137 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
26138 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
26139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26140 | else |
e6cc62c6 VS |
26141 | |
26142 | cat >conftest.$ac_ext <<_ACEOF | |
26143 | #line $LINENO "configure" | |
26144 | /* confdefs.h. */ | |
26145 | _ACEOF | |
26146 | cat confdefs.h >>conftest.$ac_ext | |
26147 | cat >>conftest.$ac_ext <<_ACEOF | |
26148 | /* end confdefs.h. */ | |
90dd450c | 26149 | #include <pwd.h> |
e6cc62c6 VS |
26150 | int |
26151 | main () | |
26152 | { | |
f6bcfd97 | 26153 | |
90dd450c VZ |
26154 | char *p; |
26155 | struct passwd *pw; | |
26156 | p = pw->pw_gecos; | |
e6cc62c6 VS |
26157 | |
26158 | ; | |
26159 | return 0; | |
26160 | } | |
26161 | _ACEOF | |
26162 | rm -f conftest.$ac_objext | |
26163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26164 | (eval $ac_compile) 2>&5 | |
26165 | ac_status=$? | |
26166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26167 | (exit $ac_status); } && | |
26168 | { ac_try='test -s conftest.$ac_objext' | |
26169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26170 | (eval $ac_try) 2>&5 | |
26171 | ac_status=$? | |
26172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26173 | (exit $ac_status); }; }; then | |
26174 | ||
90dd450c | 26175 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 26176 | |
10f2d63a | 26177 | else |
e6cc62c6 VS |
26178 | echo "$as_me: failed program was:" >&5 |
26179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26180 | ||
26181 | ||
90dd450c | 26182 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 26183 | |
247f5006 VZ |
26184 | |
26185 | fi | |
e6cc62c6 | 26186 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26187 | |
e6cc62c6 VS |
26188 | |
26189 | fi | |
26190 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
26191 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 26192 | |
90dd450c | 26193 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 26194 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26195 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 26196 | _ACEOF |
c521c494 | 26197 | |
90dd450c | 26198 | fi |
4f14bcd8 | 26199 | |
8284b0c5 | 26200 | |
d29b553b | 26201 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 26202 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26203 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 26204 | _ACEOF |
d74f4b5a | 26205 | |
8284b0c5 | 26206 | |
d74f4b5a VZ |
26207 | WCSLEN_FOUND=0 |
26208 | WCHAR_LINK= | |
e6cc62c6 VS |
26209 | |
26210 | for ac_func in wcslen | |
7a30264c | 26211 | do |
e6cc62c6 VS |
26212 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26213 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26214 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26215 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26217 | else | |
26218 | cat >conftest.$ac_ext <<_ACEOF | |
26219 | #line $LINENO "configure" | |
26220 | /* confdefs.h. */ | |
26221 | _ACEOF | |
26222 | cat confdefs.h >>conftest.$ac_ext | |
26223 | cat >>conftest.$ac_ext <<_ACEOF | |
26224 | /* end confdefs.h. */ | |
7a30264c | 26225 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26226 | which can conflict with char $ac_func (); below. |
26227 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26228 | <limits.h> exists even on freestanding compilers. */ | |
26229 | #ifdef __STDC__ | |
26230 | # include <limits.h> | |
26231 | #else | |
26232 | # include <assert.h> | |
26233 | #endif | |
4f14bcd8 | 26234 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26235 | #ifdef __cplusplus |
26236 | extern "C" | |
26237 | { | |
26238 | #endif | |
4f14bcd8 | 26239 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26240 | builtin and then its argument prototype would still apply. */ |
26241 | char $ac_func (); | |
7a30264c VZ |
26242 | /* The GNU C library defines this for functions which it implements |
26243 | to always fail with ENOSYS. Some functions are actually named | |
26244 | something starting with __ and the normal name is an alias. */ | |
26245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26246 | choke me | |
26247 | #else | |
e6cc62c6 VS |
26248 | char (*f) () = $ac_func; |
26249 | #endif | |
26250 | #ifdef __cplusplus | |
26251 | } | |
7a30264c VZ |
26252 | #endif |
26253 | ||
e6cc62c6 VS |
26254 | int |
26255 | main () | |
26256 | { | |
26257 | return f != $ac_func; | |
26258 | ; | |
26259 | return 0; | |
26260 | } | |
26261 | _ACEOF | |
26262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26264 | (eval $ac_link) 2>&5 | |
26265 | ac_status=$? | |
26266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26267 | (exit $ac_status); } && | |
26268 | { ac_try='test -s conftest$ac_exeext' | |
26269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26270 | (eval $ac_try) 2>&5 | |
26271 | ac_status=$? | |
26272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26273 | (exit $ac_status); }; }; then | |
26274 | eval "$as_ac_var=yes" | |
26275 | else | |
26276 | echo "$as_me: failed program was:" >&5 | |
26277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26278 | ||
26279 | eval "$as_ac_var=no" | |
26280 | fi | |
26281 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26282 | fi | |
26283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26285 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26286 | cat >>confdefs.h <<_ACEOF | |
26287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26288 | _ACEOF | |
d74f4b5a | 26289 | WCSLEN_FOUND=1 |
7a30264c VZ |
26290 | fi |
26291 | done | |
9d8deca0 | 26292 | |
8284b0c5 | 26293 | |
d74f4b5a | 26294 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26295 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26296 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26297 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26298 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26300 | else |
e6cc62c6 | 26301 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26302 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
26303 | cat >conftest.$ac_ext <<_ACEOF |
26304 | #line $LINENO "configure" | |
26305 | /* confdefs.h. */ | |
26306 | _ACEOF | |
26307 | cat confdefs.h >>conftest.$ac_ext | |
26308 | cat >>conftest.$ac_ext <<_ACEOF | |
26309 | /* end confdefs.h. */ | |
26310 | ||
4f14bcd8 | 26311 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26312 | #ifdef __cplusplus |
26313 | extern "C" | |
26314 | #endif | |
4f14bcd8 | 26315 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26316 | builtin and then its argument prototype would still apply. */ |
26317 | char wcslen (); | |
26318 | int | |
26319 | main () | |
26320 | { | |
26321 | wcslen (); | |
26322 | ; | |
26323 | return 0; | |
26324 | } | |
26325 | _ACEOF | |
26326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26328 | (eval $ac_link) 2>&5 | |
26329 | ac_status=$? | |
26330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26331 | (exit $ac_status); } && | |
26332 | { ac_try='test -s conftest$ac_exeext' | |
26333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26334 | (eval $ac_try) 2>&5 | |
26335 | ac_status=$? | |
26336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26337 | (exit $ac_status); }; }; then | |
26338 | ac_cv_lib_msvcrt_wcslen=yes | |
26339 | else | |
26340 | echo "$as_me: failed program was:" >&5 | |
26341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26342 | ||
26343 | ac_cv_lib_msvcrt_wcslen=no | |
26344 | fi | |
26345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26346 | LIBS=$ac_check_lib_save_LIBS | |
26347 | fi | |
26348 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26349 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26350 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26351 | WCHAR_OK=1 |
d29b553b | 26352 | fi |
698dcdb6 | 26353 | |
7a30264c | 26354 | else |
e6cc62c6 VS |
26355 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26356 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26357 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26359 | else |
e6cc62c6 | 26360 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26361 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
26362 | cat >conftest.$ac_ext <<_ACEOF |
26363 | #line $LINENO "configure" | |
26364 | /* confdefs.h. */ | |
26365 | _ACEOF | |
26366 | cat confdefs.h >>conftest.$ac_ext | |
26367 | cat >>conftest.$ac_ext <<_ACEOF | |
26368 | /* end confdefs.h. */ | |
26369 | ||
4f14bcd8 | 26370 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26371 | #ifdef __cplusplus |
26372 | extern "C" | |
26373 | #endif | |
4f14bcd8 | 26374 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26375 | builtin and then its argument prototype would still apply. */ |
26376 | char wcslen (); | |
26377 | int | |
26378 | main () | |
26379 | { | |
26380 | wcslen (); | |
26381 | ; | |
26382 | return 0; | |
26383 | } | |
26384 | _ACEOF | |
26385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26387 | (eval $ac_link) 2>&5 | |
26388 | ac_status=$? | |
26389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26390 | (exit $ac_status); } && | |
26391 | { ac_try='test -s conftest$ac_exeext' | |
26392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26393 | (eval $ac_try) 2>&5 | |
26394 | ac_status=$? | |
26395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26396 | (exit $ac_status); }; }; then | |
26397 | ac_cv_lib_w_wcslen=yes | |
26398 | else | |
26399 | echo "$as_me: failed program was:" >&5 | |
26400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26401 | ||
26402 | ac_cv_lib_w_wcslen=no | |
26403 | fi | |
26404 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26405 | LIBS=$ac_check_lib_save_LIBS | |
26406 | fi | |
26407 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26408 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26409 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26410 | |
7a30264c | 26411 | WCHAR_LINK=" -lw" |
d74f4b5a | 26412 | WCSLEN_FOUND=1 |
e6cc62c6 | 26413 | |
4f14bcd8 | 26414 | fi |
10f2d63a | 26415 | |
7a30264c | 26416 | fi |
d29b553b | 26417 | fi |
95c8801c | 26418 | |
d74f4b5a | 26419 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26420 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26421 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26422 | _ACEOF |
10f2d63a | 26423 | |
d74f4b5a | 26424 | fi |
52127426 | 26425 | |
e6cc62c6 VS |
26426 | |
26427 | for ac_func in wcsrtombs | |
eb4efbdc | 26428 | do |
e6cc62c6 VS |
26429 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26430 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26431 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26432 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26434 | else | |
26435 | cat >conftest.$ac_ext <<_ACEOF | |
26436 | #line $LINENO "configure" | |
26437 | /* confdefs.h. */ | |
26438 | _ACEOF | |
26439 | cat confdefs.h >>conftest.$ac_ext | |
26440 | cat >>conftest.$ac_ext <<_ACEOF | |
26441 | /* end confdefs.h. */ | |
eb4efbdc | 26442 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26443 | which can conflict with char $ac_func (); below. |
26444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26445 | <limits.h> exists even on freestanding compilers. */ | |
26446 | #ifdef __STDC__ | |
26447 | # include <limits.h> | |
26448 | #else | |
26449 | # include <assert.h> | |
26450 | #endif | |
eb4efbdc | 26451 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26452 | #ifdef __cplusplus |
26453 | extern "C" | |
26454 | { | |
26455 | #endif | |
4f14bcd8 | 26456 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26457 | builtin and then its argument prototype would still apply. */ |
26458 | char $ac_func (); | |
10f2d63a VZ |
26459 | /* The GNU C library defines this for functions which it implements |
26460 | to always fail with ENOSYS. Some functions are actually named | |
26461 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26462 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26463 | choke me |
26464 | #else | |
e6cc62c6 VS |
26465 | char (*f) () = $ac_func; |
26466 | #endif | |
26467 | #ifdef __cplusplus | |
26468 | } | |
10f2d63a VZ |
26469 | #endif |
26470 | ||
e6cc62c6 VS |
26471 | int |
26472 | main () | |
26473 | { | |
26474 | return f != $ac_func; | |
26475 | ; | |
26476 | return 0; | |
26477 | } | |
26478 | _ACEOF | |
26479 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26481 | (eval $ac_link) 2>&5 | |
26482 | ac_status=$? | |
26483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26484 | (exit $ac_status); } && | |
26485 | { ac_try='test -s conftest$ac_exeext' | |
26486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26487 | (eval $ac_try) 2>&5 | |
26488 | ac_status=$? | |
26489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26490 | (exit $ac_status); }; }; then | |
26491 | eval "$as_ac_var=yes" | |
26492 | else | |
26493 | echo "$as_me: failed program was:" >&5 | |
26494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26495 | ||
26496 | eval "$as_ac_var=no" | |
26497 | fi | |
26498 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26499 | fi | |
26500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26502 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26503 | cat >>confdefs.h <<_ACEOF | |
26504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26505 | _ACEOF | |
270a909e | 26506 | |
4f14bcd8 | 26507 | fi |
247f5006 | 26508 | done |
1e487827 | 26509 | |
af15babd | 26510 | else |
e6cc62c6 VS |
26511 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26512 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26513 | fi |
52127426 | 26514 | |
8284b0c5 | 26515 | |
e6cc62c6 VS |
26516 | |
26517 | ac_ext=cc | |
247f5006 | 26518 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26522 | ||
af15babd | 26523 | |
247f5006 VZ |
26524 | |
26525 | for ac_func in vsnprintf | |
26526 | do | |
e6cc62c6 VS |
26527 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26528 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26529 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26530 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26532 | else | |
26533 | cat >conftest.$ac_ext <<_ACEOF | |
26534 | #line $LINENO "configure" | |
26535 | /* confdefs.h. */ | |
26536 | _ACEOF | |
26537 | cat confdefs.h >>conftest.$ac_ext | |
26538 | cat >>conftest.$ac_ext <<_ACEOF | |
26539 | /* end confdefs.h. */ | |
247f5006 | 26540 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26541 | which can conflict with char $ac_func (); below. |
26542 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26543 | <limits.h> exists even on freestanding compilers. */ | |
26544 | #ifdef __STDC__ | |
26545 | # include <limits.h> | |
26546 | #else | |
26547 | # include <assert.h> | |
26548 | #endif | |
247f5006 VZ |
26549 | /* Override any gcc2 internal prototype to avoid an error. */ |
26550 | #ifdef __cplusplus | |
26551 | extern "C" | |
e6cc62c6 | 26552 | { |
247f5006 VZ |
26553 | #endif |
26554 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26555 | builtin and then its argument prototype would still apply. */ |
26556 | char $ac_func (); | |
247f5006 VZ |
26557 | /* The GNU C library defines this for functions which it implements |
26558 | to always fail with ENOSYS. Some functions are actually named | |
26559 | something starting with __ and the normal name is an alias. */ | |
26560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26561 | choke me | |
26562 | #else | |
e6cc62c6 VS |
26563 | char (*f) () = $ac_func; |
26564 | #endif | |
26565 | #ifdef __cplusplus | |
26566 | } | |
247f5006 | 26567 | #endif |
af15babd | 26568 | |
e6cc62c6 VS |
26569 | int |
26570 | main () | |
26571 | { | |
26572 | return f != $ac_func; | |
26573 | ; | |
26574 | return 0; | |
26575 | } | |
26576 | _ACEOF | |
26577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26579 | (eval $ac_link) 2>&5 | |
26580 | ac_status=$? | |
26581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26582 | (exit $ac_status); } && | |
26583 | { ac_try='test -s conftest$ac_exeext' | |
26584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26585 | (eval $ac_try) 2>&5 | |
26586 | ac_status=$? | |
26587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26588 | (exit $ac_status); }; }; then | |
26589 | eval "$as_ac_var=yes" | |
26590 | else | |
26591 | echo "$as_me: failed program was:" >&5 | |
26592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26593 | ||
26594 | eval "$as_ac_var=no" | |
26595 | fi | |
26596 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26597 | fi | |
26598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26601 | cat >>confdefs.h <<_ACEOF | |
26602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26603 | _ACEOF | |
52127426 | 26604 | |
5c6fa7d2 | 26605 | fi |
247f5006 | 26606 | done |
8284b0c5 | 26607 | |
4f14bcd8 | 26608 | |
8d90d2f2 | 26609 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26610 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26611 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26612 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26614 | else |
e6cc62c6 VS |
26615 | |
26616 | cat >conftest.$ac_ext <<_ACEOF | |
26617 | #line $LINENO "configure" | |
26618 | /* confdefs.h. */ | |
26619 | _ACEOF | |
26620 | cat confdefs.h >>conftest.$ac_ext | |
26621 | cat >>conftest.$ac_ext <<_ACEOF | |
26622 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26623 | |
26624 | #include <stdio.h> | |
26625 | #include <stdarg.h> | |
e6cc62c6 VS |
26626 | |
26627 | int | |
26628 | main () | |
26629 | { | |
8d90d2f2 VZ |
26630 | |
26631 | char *buf; | |
26632 | va_list ap; | |
26633 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26634 | |
26635 | ; | |
26636 | return 0; | |
26637 | } | |
26638 | _ACEOF | |
26639 | rm -f conftest.$ac_objext | |
26640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26641 | (eval $ac_compile) 2>&5 | |
26642 | ac_status=$? | |
26643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26644 | (exit $ac_status); } && | |
26645 | { ac_try='test -s conftest.$ac_objext' | |
26646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26647 | (eval $ac_try) 2>&5 | |
26648 | ac_status=$? | |
26649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26650 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26651 | wx_cv_func_vsnprintf_decl=yes |
26652 | else | |
e6cc62c6 VS |
26653 | echo "$as_me: failed program was:" >&5 |
26654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26655 | ||
26656 | wx_cv_func_vsnprintf_decl=no | |
26657 | ||
8d90d2f2 | 26658 | fi |
e6cc62c6 VS |
26659 | rm -f conftest.$ac_objext conftest.$ac_ext |
26660 | ||
8d90d2f2 | 26661 | |
e6cc62c6 VS |
26662 | fi |
26663 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26664 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26665 | |
26666 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26667 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26668 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26669 | _ACEOF |
8d90d2f2 VZ |
26670 | |
26671 | fi | |
26672 | fi | |
26673 | ||
247f5006 | 26674 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26675 | |
26676 | ||
26677 | ||
26678 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26679 | do |
e6cc62c6 VS |
26680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26683 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26685 | else | |
26686 | cat >conftest.$ac_ext <<_ACEOF | |
26687 | #line $LINENO "configure" | |
26688 | /* confdefs.h. */ | |
26689 | _ACEOF | |
26690 | cat confdefs.h >>conftest.$ac_ext | |
26691 | cat >>conftest.$ac_ext <<_ACEOF | |
26692 | /* end confdefs.h. */ | |
d74f4b5a | 26693 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26694 | which can conflict with char $ac_func (); below. |
26695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26696 | <limits.h> exists even on freestanding compilers. */ | |
26697 | #ifdef __STDC__ | |
26698 | # include <limits.h> | |
26699 | #else | |
26700 | # include <assert.h> | |
26701 | #endif | |
d74f4b5a | 26702 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26703 | #ifdef __cplusplus |
26704 | extern "C" | |
e6cc62c6 | 26705 | { |
247f5006 | 26706 | #endif |
d74f4b5a | 26707 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26708 | builtin and then its argument prototype would still apply. */ |
26709 | char $ac_func (); | |
d74f4b5a VZ |
26710 | /* The GNU C library defines this for functions which it implements |
26711 | to always fail with ENOSYS. Some functions are actually named | |
26712 | something starting with __ and the normal name is an alias. */ | |
26713 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26714 | choke me | |
26715 | #else | |
e6cc62c6 VS |
26716 | char (*f) () = $ac_func; |
26717 | #endif | |
26718 | #ifdef __cplusplus | |
26719 | } | |
d74f4b5a VZ |
26720 | #endif |
26721 | ||
e6cc62c6 VS |
26722 | int |
26723 | main () | |
26724 | { | |
26725 | return f != $ac_func; | |
26726 | ; | |
26727 | return 0; | |
26728 | } | |
26729 | _ACEOF | |
26730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26732 | (eval $ac_link) 2>&5 | |
26733 | ac_status=$? | |
26734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26735 | (exit $ac_status); } && | |
26736 | { ac_try='test -s conftest$ac_exeext' | |
26737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26738 | (eval $ac_try) 2>&5 | |
26739 | ac_status=$? | |
26740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26741 | (exit $ac_status); }; }; then | |
26742 | eval "$as_ac_var=yes" | |
26743 | else | |
26744 | echo "$as_me: failed program was:" >&5 | |
26745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26746 | ||
26747 | eval "$as_ac_var=no" | |
26748 | fi | |
26749 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26750 | fi | |
26751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26752 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26753 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26754 | cat >>confdefs.h <<_ACEOF | |
26755 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26756 | _ACEOF | |
d74f4b5a | 26757 | |
d74f4b5a VZ |
26758 | fi |
26759 | done | |
26760 | ||
8d90d2f2 | 26761 | |
e6cc62c6 VS |
26762 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26763 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26764 | cat >conftest.$ac_ext <<_ACEOF | |
26765 | #line $LINENO "configure" | |
26766 | /* confdefs.h. */ | |
26767 | _ACEOF | |
26768 | cat confdefs.h >>conftest.$ac_ext | |
26769 | cat >>conftest.$ac_ext <<_ACEOF | |
26770 | /* end confdefs.h. */ | |
79668cae | 26771 | #include <wchar.h> |
e6cc62c6 VS |
26772 | int |
26773 | main () | |
26774 | { | |
79668cae | 26775 | &_vsnwprintf; |
e6cc62c6 VS |
26776 | ; |
26777 | return 0; | |
26778 | } | |
26779 | _ACEOF | |
26780 | rm -f conftest.$ac_objext | |
26781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26782 | (eval $ac_compile) 2>&5 | |
26783 | ac_status=$? | |
26784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26785 | (exit $ac_status); } && | |
26786 | { ac_try='test -s conftest.$ac_objext' | |
26787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26788 | (eval $ac_try) 2>&5 | |
26789 | ac_status=$? | |
26790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26791 | (exit $ac_status); }; }; then | |
26792 | echo "$as_me:$LINENO: result: yes" >&5 | |
26793 | echo "${ECHO_T}yes" >&6 | |
26794 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26795 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26796 | _ACEOF |
79668cae MB |
26797 | |
26798 | else | |
e6cc62c6 VS |
26799 | echo "$as_me: failed program was:" >&5 |
26800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26801 | ||
26802 | echo "$as_me:$LINENO: result: no" >&5 | |
26803 | echo "${ECHO_T}no" >&6 | |
79668cae | 26804 | fi |
e6cc62c6 | 26805 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26806 | fi |
26807 | ||
247f5006 VZ |
26808 | ac_ext=c |
26809 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26813 | |
26814 | ||
26815 | ||
26816 | ||
4f14bcd8 | 26817 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26818 | |
8284b0c5 MB |
26819 | |
26820 | ||
e6cc62c6 VS |
26821 | |
26822 | ac_ext=cc | |
4f14bcd8 | 26823 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26824 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26825 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26826 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26827 | |
52127426 | 26828 | |
e6cc62c6 VS |
26829 | |
26830 | ||
26831 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26832 | if test "${with_libiconv_prefix+set}" = set; then |
26833 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26834 | |
b040e242 VS |
26835 | for dir in `echo "$withval" | tr : ' '`; do |
26836 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26837 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26838 | done | |
b040e242 | 26839 | |
e6cc62c6 | 26840 | fi; |
b040e242 | 26841 | |
e6cc62c6 VS |
26842 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26843 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26844 | if test "${am_cv_func_iconv+set}" = set; then | |
26845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26846 | else |
e6cc62c6 | 26847 | |
b040e242 VS |
26848 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26849 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26850 | cat >conftest.$ac_ext <<_ACEOF |
26851 | #line $LINENO "configure" | |
26852 | /* confdefs.h. */ | |
26853 | _ACEOF | |
26854 | cat confdefs.h >>conftest.$ac_ext | |
26855 | cat >>conftest.$ac_ext <<_ACEOF | |
26856 | /* end confdefs.h. */ | |
b040e242 | 26857 | #include <stdlib.h> |
4f14bcd8 | 26858 | #include <iconv.h> |
e6cc62c6 VS |
26859 | int |
26860 | main () | |
26861 | { | |
b040e242 VS |
26862 | iconv_t cd = iconv_open("",""); |
26863 | iconv(cd,NULL,NULL,NULL,NULL); | |
26864 | iconv_close(cd); | |
e6cc62c6 VS |
26865 | ; |
26866 | return 0; | |
26867 | } | |
26868 | _ACEOF | |
26869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26871 | (eval $ac_link) 2>&5 | |
26872 | ac_status=$? | |
26873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26874 | (exit $ac_status); } && | |
26875 | { ac_try='test -s conftest$ac_exeext' | |
26876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26877 | (eval $ac_try) 2>&5 | |
26878 | ac_status=$? | |
26879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26880 | (exit $ac_status); }; }; then | |
b040e242 | 26881 | am_cv_func_iconv=yes |
af15babd | 26882 | else |
e6cc62c6 VS |
26883 | echo "$as_me: failed program was:" >&5 |
26884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26885 | ||
b040e242 | 26886 | fi |
e6cc62c6 | 26887 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26888 | if test "$am_cv_func_iconv" != yes; then |
26889 | am_save_LIBS="$LIBS" | |
26890 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26891 | cat >conftest.$ac_ext <<_ACEOF |
26892 | #line $LINENO "configure" | |
26893 | /* confdefs.h. */ | |
26894 | _ACEOF | |
26895 | cat confdefs.h >>conftest.$ac_ext | |
26896 | cat >>conftest.$ac_ext <<_ACEOF | |
26897 | /* end confdefs.h. */ | |
b040e242 VS |
26898 | #include <stdlib.h> |
26899 | #include <iconv.h> | |
e6cc62c6 VS |
26900 | int |
26901 | main () | |
26902 | { | |
b040e242 VS |
26903 | iconv_t cd = iconv_open("",""); |
26904 | iconv(cd,NULL,NULL,NULL,NULL); | |
26905 | iconv_close(cd); | |
e6cc62c6 VS |
26906 | ; |
26907 | return 0; | |
26908 | } | |
26909 | _ACEOF | |
26910 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26912 | (eval $ac_link) 2>&5 | |
26913 | ac_status=$? | |
26914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26915 | (exit $ac_status); } && | |
26916 | { ac_try='test -s conftest$ac_exeext' | |
26917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26918 | (eval $ac_try) 2>&5 | |
26919 | ac_status=$? | |
26920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26921 | (exit $ac_status); }; }; then | |
b040e242 VS |
26922 | am_cv_lib_iconv=yes |
26923 | am_cv_func_iconv=yes | |
26924 | else | |
e6cc62c6 VS |
26925 | echo "$as_me: failed program was:" >&5 |
26926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26927 | ||
af15babd | 26928 | fi |
e6cc62c6 | 26929 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26930 | LIBS="$am_save_LIBS" |
26931 | fi | |
247f5006 | 26932 | |
e6cc62c6 VS |
26933 | fi |
26934 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26935 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26936 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26937 | |
26938 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26939 | #define HAVE_ICONV 1 |
e6cc62c6 | 26940 | _ACEOF |
b040e242 | 26941 | |
e6cc62c6 VS |
26942 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26943 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26944 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26946 | else |
e6cc62c6 VS |
26947 | cat >conftest.$ac_ext <<_ACEOF |
26948 | #line $LINENO "configure" | |
26949 | /* confdefs.h. */ | |
26950 | _ACEOF | |
26951 | cat confdefs.h >>conftest.$ac_ext | |
26952 | cat >>conftest.$ac_ext <<_ACEOF | |
26953 | /* end confdefs.h. */ | |
b040e242 VS |
26954 | |
26955 | #include <stdlib.h> | |
26956 | #include <iconv.h> | |
26957 | extern | |
26958 | #ifdef __cplusplus | |
26959 | "C" | |
26960 | #endif | |
26961 | #if defined(__STDC__) || defined(__cplusplus) | |
26962 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26963 | #else | |
26964 | size_t iconv(); | |
26965 | #endif | |
af15babd | 26966 | |
e6cc62c6 VS |
26967 | int |
26968 | main () | |
26969 | { | |
26970 | ||
26971 | ; | |
26972 | return 0; | |
26973 | } | |
26974 | _ACEOF | |
26975 | rm -f conftest.$ac_objext | |
26976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26977 | (eval $ac_compile) 2>&5 | |
26978 | ac_status=$? | |
26979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26980 | (exit $ac_status); } && | |
26981 | { ac_try='test -s conftest.$ac_objext' | |
26982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26983 | (eval $ac_try) 2>&5 | |
26984 | ac_status=$? | |
26985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26986 | (exit $ac_status); }; }; then | |
b7043674 | 26987 | wx_cv_func_iconv_const="no" |
b040e242 | 26988 | else |
e6cc62c6 VS |
26989 | echo "$as_me: failed program was:" >&5 |
26990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26991 | ||
26992 | wx_cv_func_iconv_const="yes" | |
26993 | ||
247f5006 | 26994 | fi |
e6cc62c6 | 26995 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26996 | |
e6cc62c6 VS |
26997 | fi |
26998 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26999 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
27000 | |
27001 | iconv_const= | |
1c405bb5 | 27002 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
27003 | iconv_const="const" |
27004 | fi | |
27005 | ||
e6cc62c6 VS |
27006 | |
27007 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 27008 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 27009 | _ACEOF |
b040e242 VS |
27010 | |
27011 | fi | |
27012 | LIBICONV= | |
27013 | if test "$am_cv_lib_iconv" = yes; then | |
27014 | LIBICONV="-liconv" | |
27015 | fi | |
e6cc62c6 | 27016 | |
b040e242 VS |
27017 | |
27018 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 27019 | ac_ext=c |
4f14bcd8 | 27020 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27024 | |
5c6fa7d2 | 27025 | |
8284b0c5 | 27026 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
27027 | |
27028 | for ac_func in sigaction | |
af15babd | 27029 | do |
e6cc62c6 VS |
27030 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27031 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27032 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27033 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27035 | else | |
27036 | cat >conftest.$ac_ext <<_ACEOF | |
27037 | #line $LINENO "configure" | |
27038 | /* confdefs.h. */ | |
27039 | _ACEOF | |
27040 | cat confdefs.h >>conftest.$ac_ext | |
27041 | cat >>conftest.$ac_ext <<_ACEOF | |
27042 | /* end confdefs.h. */ | |
af15babd | 27043 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27044 | which can conflict with char $ac_func (); below. |
27045 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27046 | <limits.h> exists even on freestanding compilers. */ | |
27047 | #ifdef __STDC__ | |
27048 | # include <limits.h> | |
27049 | #else | |
27050 | # include <assert.h> | |
27051 | #endif | |
af15babd | 27052 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27053 | #ifdef __cplusplus |
27054 | extern "C" | |
27055 | { | |
27056 | #endif | |
af15babd | 27057 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27058 | builtin and then its argument prototype would still apply. */ |
27059 | char $ac_func (); | |
af15babd VZ |
27060 | /* The GNU C library defines this for functions which it implements |
27061 | to always fail with ENOSYS. Some functions are actually named | |
27062 | something starting with __ and the normal name is an alias. */ | |
27063 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27064 | choke me | |
27065 | #else | |
e6cc62c6 VS |
27066 | char (*f) () = $ac_func; |
27067 | #endif | |
27068 | #ifdef __cplusplus | |
27069 | } | |
af15babd VZ |
27070 | #endif |
27071 | ||
e6cc62c6 VS |
27072 | int |
27073 | main () | |
27074 | { | |
27075 | return f != $ac_func; | |
27076 | ; | |
27077 | return 0; | |
27078 | } | |
27079 | _ACEOF | |
27080 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27082 | (eval $ac_link) 2>&5 | |
27083 | ac_status=$? | |
27084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27085 | (exit $ac_status); } && | |
27086 | { ac_try='test -s conftest$ac_exeext' | |
27087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27088 | (eval $ac_try) 2>&5 | |
27089 | ac_status=$? | |
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27091 | (exit $ac_status); }; }; then | |
27092 | eval "$as_ac_var=yes" | |
27093 | else | |
27094 | echo "$as_me: failed program was:" >&5 | |
27095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27096 | ||
27097 | eval "$as_ac_var=no" | |
27098 | fi | |
27099 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27100 | fi | |
27101 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27102 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27103 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27104 | cat >>confdefs.h <<_ACEOF | |
27105 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27106 | _ACEOF | |
7b4a847f | 27107 | |
4f14bcd8 GD |
27108 | fi |
27109 | done | |
27110 | ||
8284b0c5 | 27111 | |
4f14bcd8 | 27112 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
27113 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
27114 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
27115 | wxUSE_ON_FATAL_EXCEPTION=no |
27116 | fi | |
27117 | ||
27118 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
27119 | |
27120 | ||
27121 | ac_ext=cc | |
5c6fa7d2 | 27122 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 27126 | |
5c6fa7d2 | 27127 | |
e6cc62c6 VS |
27128 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
27129 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
27130 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
27131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27132 | else |
e6cc62c6 VS |
27133 | |
27134 | cat >conftest.$ac_ext <<_ACEOF | |
27135 | #line $LINENO "configure" | |
27136 | /* confdefs.h. */ | |
27137 | _ACEOF | |
27138 | cat confdefs.h >>conftest.$ac_ext | |
27139 | cat >>conftest.$ac_ext <<_ACEOF | |
27140 | /* end confdefs.h. */ | |
4f14bcd8 | 27141 | #include <signal.h> |
e6cc62c6 VS |
27142 | int |
27143 | main () | |
27144 | { | |
4f14bcd8 GD |
27145 | |
27146 | extern void testSigHandler(int); | |
27147 | ||
27148 | struct sigaction sa; | |
27149 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
27150 | |
27151 | ; | |
27152 | return 0; | |
27153 | } | |
27154 | _ACEOF | |
27155 | rm -f conftest.$ac_objext | |
27156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27157 | (eval $ac_compile) 2>&5 | |
27158 | ac_status=$? | |
27159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27160 | (exit $ac_status); } && | |
27161 | { ac_try='test -s conftest.$ac_objext' | |
27162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27163 | (eval $ac_try) 2>&5 | |
27164 | ac_status=$? | |
27165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27166 | (exit $ac_status); }; }; then | |
27167 | ||
4f14bcd8 | 27168 | wx_cv_type_sa_handler=int |
e6cc62c6 | 27169 | |
af15babd | 27170 | else |
e6cc62c6 VS |
27171 | echo "$as_me: failed program was:" >&5 |
27172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27173 | ||
27174 | ||
4f14bcd8 | 27175 | wx_cv_type_sa_handler=void |
e6cc62c6 | 27176 | |
247f5006 | 27177 | fi |
e6cc62c6 | 27178 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27179 | |
e6cc62c6 VS |
27180 | fi |
27181 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
27182 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
27183 | |
27184 | ac_ext=c | |
4f14bcd8 | 27185 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 27189 | |
8284b0c5 | 27190 | |
e6cc62c6 | 27191 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 27192 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 27193 | _ACEOF |
af15babd | 27194 | |
4f14bcd8 GD |
27195 | fi |
27196 | fi | |
af15babd | 27197 | |
e6cc62c6 VS |
27198 | |
27199 | ||
a1d22ad7 | 27200 | for ac_func in mkstemp mktemp |
af15babd | 27201 | do |
e6cc62c6 VS |
27202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27205 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27207 | else | |
27208 | cat >conftest.$ac_ext <<_ACEOF | |
27209 | #line $LINENO "configure" | |
27210 | /* confdefs.h. */ | |
27211 | _ACEOF | |
27212 | cat confdefs.h >>conftest.$ac_ext | |
27213 | cat >>conftest.$ac_ext <<_ACEOF | |
27214 | /* end confdefs.h. */ | |
af15babd | 27215 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27216 | which can conflict with char $ac_func (); below. |
27217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27218 | <limits.h> exists even on freestanding compilers. */ | |
27219 | #ifdef __STDC__ | |
27220 | # include <limits.h> | |
27221 | #else | |
27222 | # include <assert.h> | |
27223 | #endif | |
af15babd | 27224 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27225 | #ifdef __cplusplus |
27226 | extern "C" | |
27227 | { | |
27228 | #endif | |
af15babd | 27229 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27230 | builtin and then its argument prototype would still apply. */ |
27231 | char $ac_func (); | |
af15babd VZ |
27232 | /* The GNU C library defines this for functions which it implements |
27233 | to always fail with ENOSYS. Some functions are actually named | |
27234 | something starting with __ and the normal name is an alias. */ | |
27235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27236 | choke me | |
27237 | #else | |
e6cc62c6 VS |
27238 | char (*f) () = $ac_func; |
27239 | #endif | |
27240 | #ifdef __cplusplus | |
27241 | } | |
af15babd VZ |
27242 | #endif |
27243 | ||
e6cc62c6 VS |
27244 | int |
27245 | main () | |
27246 | { | |
27247 | return f != $ac_func; | |
27248 | ; | |
27249 | return 0; | |
27250 | } | |
27251 | _ACEOF | |
27252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27254 | (eval $ac_link) 2>&5 | |
27255 | ac_status=$? | |
27256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27257 | (exit $ac_status); } && | |
27258 | { ac_try='test -s conftest$ac_exeext' | |
27259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27260 | (eval $ac_try) 2>&5 | |
27261 | ac_status=$? | |
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27263 | (exit $ac_status); }; }; then | |
27264 | eval "$as_ac_var=yes" | |
27265 | else | |
27266 | echo "$as_me: failed program was:" >&5 | |
27267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27268 | ||
27269 | eval "$as_ac_var=no" | |
27270 | fi | |
27271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27272 | fi | |
27273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27276 | cat >>confdefs.h <<_ACEOF | |
27277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27278 | _ACEOF | |
ade35f11 | 27279 | break |
ade35f11 VZ |
27280 | fi |
27281 | done | |
27282 | ||
8284b0c5 | 27283 | |
e6cc62c6 VS |
27284 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27285 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27286 | if test "${wx_cv_func_statfs+set}" = set; then | |
27287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27288 | else |
e6cc62c6 VS |
27289 | cat >conftest.$ac_ext <<_ACEOF |
27290 | #line $LINENO "configure" | |
27291 | /* confdefs.h. */ | |
27292 | _ACEOF | |
27293 | cat confdefs.h >>conftest.$ac_ext | |
27294 | cat >>conftest.$ac_ext <<_ACEOF | |
27295 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27296 | |
27297 | #if defined(__BSD__) | |
27298 | #include <sys/param.h> | |
27299 | #include <sys/mount.h> | |
27300 | #else | |
27301 | #include <sys/vfs.h> | |
27302 | #endif | |
e6cc62c6 VS |
27303 | |
27304 | int | |
27305 | main () | |
27306 | { | |
4f14bcd8 GD |
27307 | |
27308 | long l; | |
27309 | struct statfs fs; | |
27310 | statfs("/", &fs); | |
27311 | l = fs.f_bsize; | |
27312 | l += fs.f_blocks; | |
27313 | l += fs.f_bavail; | |
e6cc62c6 VS |
27314 | |
27315 | ; | |
27316 | return 0; | |
27317 | } | |
27318 | _ACEOF | |
27319 | rm -f conftest.$ac_objext | |
27320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27321 | (eval $ac_compile) 2>&5 | |
27322 | ac_status=$? | |
27323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27324 | (exit $ac_status); } && | |
27325 | { ac_try='test -s conftest.$ac_objext' | |
27326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27327 | (eval $ac_try) 2>&5 | |
27328 | ac_status=$? | |
27329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27330 | (exit $ac_status); }; }; then | |
27331 | ||
4f14bcd8 | 27332 | wx_cv_func_statfs=yes |
e6cc62c6 | 27333 | |
4f14bcd8 | 27334 | else |
e6cc62c6 VS |
27335 | echo "$as_me: failed program was:" >&5 |
27336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27337 | ||
27338 | ||
4f14bcd8 | 27339 | wx_cv_func_statfs=no |
e6cc62c6 | 27340 | |
8284b0c5 | 27341 | |
247f5006 | 27342 | fi |
e6cc62c6 | 27343 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27344 | |
e6cc62c6 VS |
27345 | fi |
27346 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27347 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27348 | |
27349 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27350 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27351 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27352 | #define HAVE_STATFS 1 |
e6cc62c6 | 27353 | _ACEOF |
4f14bcd8 GD |
27354 | |
27355 | else | |
e6cc62c6 VS |
27356 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27357 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27358 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27360 | else |
e6cc62c6 VS |
27361 | cat >conftest.$ac_ext <<_ACEOF |
27362 | #line $LINENO "configure" | |
27363 | /* confdefs.h. */ | |
27364 | _ACEOF | |
27365 | cat confdefs.h >>conftest.$ac_ext | |
27366 | cat >>conftest.$ac_ext <<_ACEOF | |
27367 | /* end confdefs.h. */ | |
af15babd | 27368 | |
54ab82b3 VZ |
27369 | #include <stddef.h> |
27370 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27371 | |
27372 | int | |
27373 | main () | |
27374 | { | |
af15babd | 27375 | |
54ab82b3 | 27376 | statvfs("/", NULL); |
e6cc62c6 VS |
27377 | |
27378 | ; | |
27379 | return 0; | |
27380 | } | |
27381 | _ACEOF | |
27382 | rm -f conftest.$ac_objext | |
27383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27384 | (eval $ac_compile) 2>&5 | |
27385 | ac_status=$? | |
27386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27387 | (exit $ac_status); } && | |
27388 | { ac_try='test -s conftest.$ac_objext' | |
27389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27390 | (eval $ac_try) 2>&5 | |
27391 | ac_status=$? | |
27392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27393 | (exit $ac_status); }; }; then | |
54ab82b3 | 27394 | wx_cv_func_statvfs=yes |
af15babd | 27395 | else |
e6cc62c6 VS |
27396 | echo "$as_me: failed program was:" >&5 |
27397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27398 | ||
27399 | wx_cv_func_statvfs=no | |
27400 | ||
247f5006 | 27401 | fi |
e6cc62c6 | 27402 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27403 | |
e6cc62c6 VS |
27404 | fi |
27405 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27406 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27407 | |
4f14bcd8 | 27408 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27409 | |
27410 | ||
27411 | ac_ext=cc | |
54ab82b3 | 27412 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27413 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27414 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27415 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27416 | |
27417 | ||
e6cc62c6 VS |
27418 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27419 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27420 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27422 | else |
e6cc62c6 VS |
27423 | cat >conftest.$ac_ext <<_ACEOF |
27424 | #line $LINENO "configure" | |
27425 | /* confdefs.h. */ | |
27426 | _ACEOF | |
27427 | cat confdefs.h >>conftest.$ac_ext | |
27428 | cat >>conftest.$ac_ext <<_ACEOF | |
27429 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27430 | |
27431 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27432 | |
27433 | int | |
27434 | main () | |
27435 | { | |
54ab82b3 VZ |
27436 | |
27437 | long l; | |
27438 | statvfs_t fs; | |
27439 | statvfs("/", &fs); | |
27440 | l = fs.f_bsize; | |
27441 | l += fs.f_blocks; | |
27442 | l += fs.f_bavail; | |
e6cc62c6 VS |
27443 | |
27444 | ; | |
27445 | return 0; | |
27446 | } | |
27447 | _ACEOF | |
27448 | rm -f conftest.$ac_objext | |
27449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27450 | (eval $ac_compile) 2>&5 | |
27451 | ac_status=$? | |
27452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27453 | (exit $ac_status); } && | |
27454 | { ac_try='test -s conftest.$ac_objext' | |
27455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27456 | (eval $ac_try) 2>&5 | |
27457 | ac_status=$? | |
27458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27459 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27460 | wx_cv_type_statvfs_t=statvfs_t |
27461 | else | |
e6cc62c6 VS |
27462 | echo "$as_me: failed program was:" >&5 |
27463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27464 | ||
27465 | ||
27466 | cat >conftest.$ac_ext <<_ACEOF | |
27467 | #line $LINENO "configure" | |
27468 | /* confdefs.h. */ | |
27469 | _ACEOF | |
27470 | cat confdefs.h >>conftest.$ac_ext | |
27471 | cat >>conftest.$ac_ext <<_ACEOF | |
27472 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27473 | |
27474 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27475 | |
27476 | int | |
27477 | main () | |
27478 | { | |
54ab82b3 VZ |
27479 | |
27480 | long l; | |
65d8ef1e | 27481 | struct statvfs fs; |
54ab82b3 VZ |
27482 | statvfs("/", &fs); |
27483 | l = fs.f_bsize; | |
27484 | l += fs.f_blocks; | |
27485 | l += fs.f_bavail; | |
e6cc62c6 VS |
27486 | |
27487 | ; | |
27488 | return 0; | |
27489 | } | |
27490 | _ACEOF | |
27491 | rm -f conftest.$ac_objext | |
27492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27493 | (eval $ac_compile) 2>&5 | |
27494 | ac_status=$? | |
27495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27496 | (exit $ac_status); } && | |
27497 | { ac_try='test -s conftest.$ac_objext' | |
27498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27499 | (eval $ac_try) 2>&5 | |
27500 | ac_status=$? | |
27501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27502 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27503 | wx_cv_type_statvfs_t="struct statvfs" |
27504 | else | |
e6cc62c6 VS |
27505 | echo "$as_me: failed program was:" >&5 |
27506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27507 | ||
27508 | wx_cv_type_statvfs_t="unknown" | |
27509 | ||
54ab82b3 | 27510 | fi |
e6cc62c6 VS |
27511 | rm -f conftest.$ac_objext conftest.$ac_ext |
27512 | ||
27513 | ||
54ab82b3 | 27514 | fi |
e6cc62c6 | 27515 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27516 | |
e6cc62c6 VS |
27517 | fi |
27518 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27519 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27520 | |
27521 | ac_ext=c | |
54ab82b3 | 27522 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27526 | |
27527 | ||
27528 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27529 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27530 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27531 | _ACEOF |
af15babd | 27532 | |
54ab82b3 | 27533 | fi |
4f14bcd8 | 27534 | else |
54ab82b3 | 27535 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27536 | fi |
27537 | fi | |
af15babd | 27538 | |
54ab82b3 | 27539 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27540 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27541 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27542 | _ACEOF |
54ab82b3 VZ |
27543 | |
27544 | else | |
e6cc62c6 VS |
27545 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27546 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27547 | fi |
27548 | ||
4f14bcd8 | 27549 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27550 | |
27551 | ||
27552 | for ac_func in fcntl flock | |
af15babd | 27553 | do |
e6cc62c6 VS |
27554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27557 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27559 | else | |
27560 | cat >conftest.$ac_ext <<_ACEOF | |
27561 | #line $LINENO "configure" | |
27562 | /* confdefs.h. */ | |
27563 | _ACEOF | |
27564 | cat confdefs.h >>conftest.$ac_ext | |
27565 | cat >>conftest.$ac_ext <<_ACEOF | |
27566 | /* end confdefs.h. */ | |
af15babd | 27567 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27568 | which can conflict with char $ac_func (); below. |
27569 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27570 | <limits.h> exists even on freestanding compilers. */ | |
27571 | #ifdef __STDC__ | |
27572 | # include <limits.h> | |
27573 | #else | |
27574 | # include <assert.h> | |
27575 | #endif | |
af15babd | 27576 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27577 | #ifdef __cplusplus |
27578 | extern "C" | |
27579 | { | |
27580 | #endif | |
af15babd | 27581 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27582 | builtin and then its argument prototype would still apply. */ |
27583 | char $ac_func (); | |
af15babd VZ |
27584 | /* The GNU C library defines this for functions which it implements |
27585 | to always fail with ENOSYS. Some functions are actually named | |
27586 | something starting with __ and the normal name is an alias. */ | |
27587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27588 | choke me | |
27589 | #else | |
e6cc62c6 VS |
27590 | char (*f) () = $ac_func; |
27591 | #endif | |
27592 | #ifdef __cplusplus | |
27593 | } | |
af15babd VZ |
27594 | #endif |
27595 | ||
e6cc62c6 VS |
27596 | int |
27597 | main () | |
27598 | { | |
27599 | return f != $ac_func; | |
27600 | ; | |
27601 | return 0; | |
27602 | } | |
27603 | _ACEOF | |
27604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27606 | (eval $ac_link) 2>&5 | |
27607 | ac_status=$? | |
27608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27609 | (exit $ac_status); } && | |
27610 | { ac_try='test -s conftest$ac_exeext' | |
27611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27612 | (eval $ac_try) 2>&5 | |
27613 | ac_status=$? | |
27614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27615 | (exit $ac_status); }; }; then | |
27616 | eval "$as_ac_var=yes" | |
27617 | else | |
27618 | echo "$as_me: failed program was:" >&5 | |
27619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27620 | ||
27621 | eval "$as_ac_var=no" | |
27622 | fi | |
27623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27624 | fi | |
27625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27626 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27627 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27628 | cat >>confdefs.h <<_ACEOF | |
27629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27630 | _ACEOF | |
4f14bcd8 | 27631 | break |
af15babd VZ |
27632 | fi |
27633 | done | |
27634 | ||
8284b0c5 | 27635 | |
4f14bcd8 | 27636 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27637 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27638 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27639 | wxUSE_SNGLINST_CHECKER=no |
27640 | fi | |
27641 | fi | |
af15babd | 27642 | |
e6cc62c6 | 27643 | |
4f14bcd8 | 27644 | for ac_func in timegm |
af15babd | 27645 | do |
e6cc62c6 VS |
27646 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27647 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27648 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27649 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27651 | else | |
27652 | cat >conftest.$ac_ext <<_ACEOF | |
27653 | #line $LINENO "configure" | |
27654 | /* confdefs.h. */ | |
27655 | _ACEOF | |
27656 | cat confdefs.h >>conftest.$ac_ext | |
27657 | cat >>conftest.$ac_ext <<_ACEOF | |
27658 | /* end confdefs.h. */ | |
af15babd | 27659 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27660 | which can conflict with char $ac_func (); below. |
27661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27662 | <limits.h> exists even on freestanding compilers. */ | |
27663 | #ifdef __STDC__ | |
27664 | # include <limits.h> | |
27665 | #else | |
27666 | # include <assert.h> | |
27667 | #endif | |
af15babd | 27668 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27669 | #ifdef __cplusplus |
27670 | extern "C" | |
27671 | { | |
27672 | #endif | |
af15babd | 27673 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27674 | builtin and then its argument prototype would still apply. */ |
27675 | char $ac_func (); | |
af15babd VZ |
27676 | /* The GNU C library defines this for functions which it implements |
27677 | to always fail with ENOSYS. Some functions are actually named | |
27678 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27680 | choke me | |
27681 | #else | |
e6cc62c6 VS |
27682 | char (*f) () = $ac_func; |
27683 | #endif | |
27684 | #ifdef __cplusplus | |
27685 | } | |
247f5006 VZ |
27686 | #endif |
27687 | ||
e6cc62c6 VS |
27688 | int |
27689 | main () | |
27690 | { | |
27691 | return f != $ac_func; | |
27692 | ; | |
27693 | return 0; | |
27694 | } | |
27695 | _ACEOF | |
27696 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27698 | (eval $ac_link) 2>&5 | |
27699 | ac_status=$? | |
27700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27701 | (exit $ac_status); } && | |
27702 | { ac_try='test -s conftest$ac_exeext' | |
27703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27704 | (eval $ac_try) 2>&5 | |
27705 | ac_status=$? | |
27706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27707 | (exit $ac_status); }; }; then | |
27708 | eval "$as_ac_var=yes" | |
27709 | else | |
27710 | echo "$as_me: failed program was:" >&5 | |
27711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27712 | ||
27713 | eval "$as_ac_var=no" | |
27714 | fi | |
27715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27716 | fi | |
27717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27718 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27719 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27720 | cat >>confdefs.h <<_ACEOF | |
27721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27722 | _ACEOF | |
703e0a69 | 27723 | |
af15babd VZ |
27724 | fi |
27725 | done | |
27726 | ||
8284b0c5 | 27727 | |
e6cc62c6 VS |
27728 | |
27729 | ||
4f14bcd8 | 27730 | for ac_func in putenv setenv |
10f2d63a | 27731 | do |
e6cc62c6 VS |
27732 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27733 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27734 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27735 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27737 | else | |
27738 | cat >conftest.$ac_ext <<_ACEOF | |
27739 | #line $LINENO "configure" | |
27740 | /* confdefs.h. */ | |
27741 | _ACEOF | |
27742 | cat confdefs.h >>conftest.$ac_ext | |
27743 | cat >>conftest.$ac_ext <<_ACEOF | |
27744 | /* end confdefs.h. */ | |
af15babd | 27745 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27746 | which can conflict with char $ac_func (); below. |
27747 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27748 | <limits.h> exists even on freestanding compilers. */ | |
27749 | #ifdef __STDC__ | |
27750 | # include <limits.h> | |
27751 | #else | |
27752 | # include <assert.h> | |
27753 | #endif | |
af15babd | 27754 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27755 | #ifdef __cplusplus |
27756 | extern "C" | |
27757 | { | |
27758 | #endif | |
af15babd | 27759 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27760 | builtin and then its argument prototype would still apply. */ |
27761 | char $ac_func (); | |
af15babd VZ |
27762 | /* The GNU C library defines this for functions which it implements |
27763 | to always fail with ENOSYS. Some functions are actually named | |
27764 | something starting with __ and the normal name is an alias. */ | |
27765 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27766 | choke me | |
27767 | #else | |
e6cc62c6 VS |
27768 | char (*f) () = $ac_func; |
27769 | #endif | |
27770 | #ifdef __cplusplus | |
27771 | } | |
af15babd VZ |
27772 | #endif |
27773 | ||
e6cc62c6 VS |
27774 | int |
27775 | main () | |
27776 | { | |
27777 | return f != $ac_func; | |
27778 | ; | |
27779 | return 0; | |
27780 | } | |
27781 | _ACEOF | |
27782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27784 | (eval $ac_link) 2>&5 | |
27785 | ac_status=$? | |
27786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27787 | (exit $ac_status); } && | |
27788 | { ac_try='test -s conftest$ac_exeext' | |
27789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27790 | (eval $ac_try) 2>&5 | |
27791 | ac_status=$? | |
27792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27793 | (exit $ac_status); }; }; then | |
27794 | eval "$as_ac_var=yes" | |
27795 | else | |
27796 | echo "$as_me: failed program was:" >&5 | |
27797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27798 | ||
27799 | eval "$as_ac_var=no" | |
27800 | fi | |
27801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27802 | fi | |
27803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27804 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27805 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27806 | cat >>confdefs.h <<_ACEOF | |
27807 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27808 | _ACEOF | |
4f14bcd8 | 27809 | break |
af15babd | 27810 | fi |
af15babd VZ |
27811 | done |
27812 | ||
8284b0c5 | 27813 | |
4f14bcd8 GD |
27814 | HAVE_SOME_SLEEP_FUNC=0 |
27815 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27816 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27817 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27818 | _ACEOF |
af15babd | 27819 | |
4f14bcd8 | 27820 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27821 | fi |
27822 | ||
4f14bcd8 | 27823 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27824 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27825 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27826 | _ACEOF |
10f2d63a | 27827 | |
4f14bcd8 | 27828 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27829 | fi |
27830 | ||
4f14bcd8 GD |
27831 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27832 | POSIX4_LINK= | |
e6cc62c6 VS |
27833 | |
27834 | for ac_func in nanosleep | |
4f14bcd8 | 27835 | do |
e6cc62c6 VS |
27836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27837 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27839 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27841 | else | |
27842 | cat >conftest.$ac_ext <<_ACEOF | |
27843 | #line $LINENO "configure" | |
27844 | /* confdefs.h. */ | |
27845 | _ACEOF | |
27846 | cat confdefs.h >>conftest.$ac_ext | |
27847 | cat >>conftest.$ac_ext <<_ACEOF | |
27848 | /* end confdefs.h. */ | |
4f14bcd8 | 27849 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27850 | which can conflict with char $ac_func (); below. |
27851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27852 | <limits.h> exists even on freestanding compilers. */ | |
27853 | #ifdef __STDC__ | |
27854 | # include <limits.h> | |
27855 | #else | |
27856 | # include <assert.h> | |
27857 | #endif | |
10f2d63a | 27858 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27859 | #ifdef __cplusplus |
27860 | extern "C" | |
27861 | { | |
27862 | #endif | |
10f2d63a | 27863 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27864 | builtin and then its argument prototype would still apply. */ |
27865 | char $ac_func (); | |
4f14bcd8 GD |
27866 | /* The GNU C library defines this for functions which it implements |
27867 | to always fail with ENOSYS. Some functions are actually named | |
27868 | something starting with __ and the normal name is an alias. */ | |
27869 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27870 | choke me | |
27871 | #else | |
e6cc62c6 VS |
27872 | char (*f) () = $ac_func; |
27873 | #endif | |
27874 | #ifdef __cplusplus | |
27875 | } | |
4f14bcd8 GD |
27876 | #endif |
27877 | ||
e6cc62c6 VS |
27878 | int |
27879 | main () | |
27880 | { | |
27881 | return f != $ac_func; | |
27882 | ; | |
27883 | return 0; | |
27884 | } | |
27885 | _ACEOF | |
27886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27888 | (eval $ac_link) 2>&5 | |
27889 | ac_status=$? | |
27890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27891 | (exit $ac_status); } && | |
27892 | { ac_try='test -s conftest$ac_exeext' | |
27893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27894 | (eval $ac_try) 2>&5 | |
27895 | ac_status=$? | |
27896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27897 | (exit $ac_status); }; }; then | |
27898 | eval "$as_ac_var=yes" | |
27899 | else | |
27900 | echo "$as_me: failed program was:" >&5 | |
27901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27902 | ||
27903 | eval "$as_ac_var=no" | |
27904 | fi | |
27905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27906 | fi | |
27907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27908 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27909 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27910 | cat >>confdefs.h <<_ACEOF | |
27911 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27912 | _ACEOF | |
27913 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27914 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27915 | _ACEOF |
4f14bcd8 | 27916 | |
10f2d63a | 27917 | else |
e6cc62c6 VS |
27918 | |
27919 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27920 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27921 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27923 | else |
e6cc62c6 | 27924 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27925 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27926 | cat >conftest.$ac_ext <<_ACEOF |
27927 | #line $LINENO "configure" | |
27928 | /* confdefs.h. */ | |
27929 | _ACEOF | |
27930 | cat confdefs.h >>conftest.$ac_ext | |
27931 | cat >>conftest.$ac_ext <<_ACEOF | |
27932 | /* end confdefs.h. */ | |
27933 | ||
10f2d63a | 27934 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27935 | #ifdef __cplusplus |
27936 | extern "C" | |
27937 | #endif | |
10f2d63a | 27938 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27939 | builtin and then its argument prototype would still apply. */ |
27940 | char nanosleep (); | |
27941 | int | |
27942 | main () | |
27943 | { | |
27944 | nanosleep (); | |
27945 | ; | |
27946 | return 0; | |
27947 | } | |
27948 | _ACEOF | |
27949 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27951 | (eval $ac_link) 2>&5 | |
27952 | ac_status=$? | |
27953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27954 | (exit $ac_status); } && | |
27955 | { ac_try='test -s conftest$ac_exeext' | |
27956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27957 | (eval $ac_try) 2>&5 | |
27958 | ac_status=$? | |
27959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27960 | (exit $ac_status); }; }; then | |
27961 | ac_cv_lib_posix4_nanosleep=yes | |
27962 | else | |
27963 | echo "$as_me: failed program was:" >&5 | |
27964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27965 | ||
27966 | ac_cv_lib_posix4_nanosleep=no | |
27967 | fi | |
27968 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27969 | LIBS=$ac_check_lib_save_LIBS | |
27970 | fi | |
27971 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27972 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27973 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27974 | ||
27975 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27976 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27977 | _ACEOF |
4f14bcd8 | 27978 | |
3d63bc3a | 27979 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27980 | |
10f2d63a | 27981 | else |
10f2d63a | 27982 | |
e6cc62c6 VS |
27983 | |
27984 | for ac_func in usleep | |
4f14bcd8 | 27985 | do |
e6cc62c6 VS |
27986 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27987 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27988 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27989 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27991 | else | |
27992 | cat >conftest.$ac_ext <<_ACEOF | |
27993 | #line $LINENO "configure" | |
27994 | /* confdefs.h. */ | |
27995 | _ACEOF | |
27996 | cat confdefs.h >>conftest.$ac_ext | |
27997 | cat >>conftest.$ac_ext <<_ACEOF | |
27998 | /* end confdefs.h. */ | |
4f14bcd8 | 27999 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28000 | which can conflict with char $ac_func (); below. |
28001 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28002 | <limits.h> exists even on freestanding compilers. */ | |
28003 | #ifdef __STDC__ | |
28004 | # include <limits.h> | |
28005 | #else | |
28006 | # include <assert.h> | |
28007 | #endif | |
4f14bcd8 | 28008 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28009 | #ifdef __cplusplus |
28010 | extern "C" | |
28011 | { | |
28012 | #endif | |
4f14bcd8 | 28013 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28014 | builtin and then its argument prototype would still apply. */ |
28015 | char $ac_func (); | |
4f14bcd8 GD |
28016 | /* The GNU C library defines this for functions which it implements |
28017 | to always fail with ENOSYS. Some functions are actually named | |
28018 | something starting with __ and the normal name is an alias. */ | |
28019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28020 | choke me | |
28021 | #else | |
e6cc62c6 VS |
28022 | char (*f) () = $ac_func; |
28023 | #endif | |
28024 | #ifdef __cplusplus | |
28025 | } | |
4f14bcd8 GD |
28026 | #endif |
28027 | ||
e6cc62c6 VS |
28028 | int |
28029 | main () | |
28030 | { | |
28031 | return f != $ac_func; | |
28032 | ; | |
28033 | return 0; | |
28034 | } | |
28035 | _ACEOF | |
28036 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28038 | (eval $ac_link) 2>&5 | |
28039 | ac_status=$? | |
28040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28041 | (exit $ac_status); } && | |
28042 | { ac_try='test -s conftest$ac_exeext' | |
28043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28044 | (eval $ac_try) 2>&5 | |
28045 | ac_status=$? | |
28046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28047 | (exit $ac_status); }; }; then | |
28048 | eval "$as_ac_var=yes" | |
28049 | else | |
28050 | echo "$as_me: failed program was:" >&5 | |
28051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28052 | ||
28053 | eval "$as_ac_var=no" | |
28054 | fi | |
28055 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28056 | fi | |
28057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28058 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28059 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28060 | cat >>confdefs.h <<_ACEOF | |
28061 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28062 | _ACEOF | |
28063 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28064 | #define HAVE_USLEEP 1 |
e6cc62c6 | 28065 | _ACEOF |
4f14bcd8 | 28066 | |
698dcdb6 | 28067 | else |
e6cc62c6 VS |
28068 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
28069 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
28070 | ||
10f2d63a | 28071 | fi |
4f14bcd8 | 28072 | done |
10f2d63a | 28073 | |
e6cc62c6 VS |
28074 | |
28075 | ||
6232543b | 28076 | fi |
10f2d63a | 28077 | |
e6cc62c6 VS |
28078 | |
28079 | ||
1e487827 | 28080 | fi |
4f14bcd8 | 28081 | done |
703e0a69 | 28082 | |
10f2d63a VZ |
28083 | fi |
28084 | ||
e6cc62c6 VS |
28085 | |
28086 | ||
4f14bcd8 | 28087 | for ac_func in uname gethostname |
70846f0a | 28088 | do |
e6cc62c6 VS |
28089 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28090 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28091 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28092 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28094 | else | |
28095 | cat >conftest.$ac_ext <<_ACEOF | |
28096 | #line $LINENO "configure" | |
28097 | /* confdefs.h. */ | |
28098 | _ACEOF | |
28099 | cat confdefs.h >>conftest.$ac_ext | |
28100 | cat >>conftest.$ac_ext <<_ACEOF | |
28101 | /* end confdefs.h. */ | |
70846f0a | 28102 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28103 | which can conflict with char $ac_func (); below. |
28104 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28105 | <limits.h> exists even on freestanding compilers. */ | |
28106 | #ifdef __STDC__ | |
28107 | # include <limits.h> | |
28108 | #else | |
28109 | # include <assert.h> | |
28110 | #endif | |
70846f0a | 28111 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28112 | #ifdef __cplusplus |
28113 | extern "C" | |
28114 | { | |
28115 | #endif | |
70846f0a | 28116 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28117 | builtin and then its argument prototype would still apply. */ |
28118 | char $ac_func (); | |
70846f0a VZ |
28119 | /* The GNU C library defines this for functions which it implements |
28120 | to always fail with ENOSYS. Some functions are actually named | |
28121 | something starting with __ and the normal name is an alias. */ | |
28122 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28123 | choke me | |
28124 | #else | |
e6cc62c6 VS |
28125 | char (*f) () = $ac_func; |
28126 | #endif | |
28127 | #ifdef __cplusplus | |
28128 | } | |
70846f0a VZ |
28129 | #endif |
28130 | ||
e6cc62c6 VS |
28131 | int |
28132 | main () | |
28133 | { | |
28134 | return f != $ac_func; | |
28135 | ; | |
28136 | return 0; | |
28137 | } | |
28138 | _ACEOF | |
28139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28141 | (eval $ac_link) 2>&5 | |
28142 | ac_status=$? | |
28143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28144 | (exit $ac_status); } && | |
28145 | { ac_try='test -s conftest$ac_exeext' | |
28146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28147 | (eval $ac_try) 2>&5 | |
28148 | ac_status=$? | |
28149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28150 | (exit $ac_status); }; }; then | |
28151 | eval "$as_ac_var=yes" | |
28152 | else | |
28153 | echo "$as_me: failed program was:" >&5 | |
28154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28155 | ||
28156 | eval "$as_ac_var=no" | |
28157 | fi | |
28158 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28159 | fi | |
28160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28161 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28162 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28163 | cat >>confdefs.h <<_ACEOF | |
28164 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28165 | _ACEOF | |
4f14bcd8 | 28166 | break |
70846f0a VZ |
28167 | fi |
28168 | done | |
28169 | ||
8284b0c5 MB |
28170 | |
28171 | ||
e6cc62c6 VS |
28172 | |
28173 | ac_ext=cc | |
4f14bcd8 | 28174 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28175 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28176 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28177 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28178 | ||
8284b0c5 | 28179 | |
4f14bcd8 GD |
28180 | |
28181 | for ac_func in strtok_r | |
10f2d63a | 28182 | do |
e6cc62c6 VS |
28183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28184 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28186 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28188 | else | |
28189 | cat >conftest.$ac_ext <<_ACEOF | |
28190 | #line $LINENO "configure" | |
28191 | /* confdefs.h. */ | |
28192 | _ACEOF | |
28193 | cat confdefs.h >>conftest.$ac_ext | |
28194 | cat >>conftest.$ac_ext <<_ACEOF | |
28195 | /* end confdefs.h. */ | |
4f14bcd8 | 28196 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28197 | which can conflict with char $ac_func (); below. |
28198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28199 | <limits.h> exists even on freestanding compilers. */ | |
28200 | #ifdef __STDC__ | |
28201 | # include <limits.h> | |
28202 | #else | |
28203 | # include <assert.h> | |
28204 | #endif | |
4f14bcd8 GD |
28205 | /* Override any gcc2 internal prototype to avoid an error. */ |
28206 | #ifdef __cplusplus | |
28207 | extern "C" | |
e6cc62c6 | 28208 | { |
4f14bcd8 GD |
28209 | #endif |
28210 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28211 | builtin and then its argument prototype would still apply. */ |
28212 | char $ac_func (); | |
4f14bcd8 GD |
28213 | /* The GNU C library defines this for functions which it implements |
28214 | to always fail with ENOSYS. Some functions are actually named | |
28215 | something starting with __ and the normal name is an alias. */ | |
28216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28217 | choke me | |
28218 | #else | |
e6cc62c6 VS |
28219 | char (*f) () = $ac_func; |
28220 | #endif | |
28221 | #ifdef __cplusplus | |
28222 | } | |
4f14bcd8 GD |
28223 | #endif |
28224 | ||
e6cc62c6 VS |
28225 | int |
28226 | main () | |
28227 | { | |
28228 | return f != $ac_func; | |
28229 | ; | |
28230 | return 0; | |
28231 | } | |
28232 | _ACEOF | |
28233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28235 | (eval $ac_link) 2>&5 | |
28236 | ac_status=$? | |
28237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28238 | (exit $ac_status); } && | |
28239 | { ac_try='test -s conftest$ac_exeext' | |
28240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28241 | (eval $ac_try) 2>&5 | |
28242 | ac_status=$? | |
28243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28244 | (exit $ac_status); }; }; then | |
28245 | eval "$as_ac_var=yes" | |
28246 | else | |
28247 | echo "$as_me: failed program was:" >&5 | |
28248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28249 | ||
28250 | eval "$as_ac_var=no" | |
28251 | fi | |
28252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28253 | fi | |
28254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28256 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28257 | cat >>confdefs.h <<_ACEOF | |
28258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28259 | _ACEOF | |
4f14bcd8 | 28260 | |
10f2d63a VZ |
28261 | fi |
28262 | done | |
28263 | ||
8284b0c5 | 28264 | |
4f14bcd8 | 28265 | ac_ext=c |
4f14bcd8 | 28266 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28270 | |
5c6fa7d2 | 28271 | |
8284b0c5 | 28272 | INET_LINK= |
e6cc62c6 | 28273 | |
4f14bcd8 GD |
28274 | for ac_func in inet_addr |
28275 | do | |
e6cc62c6 VS |
28276 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28277 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28278 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28279 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28281 | else | |
28282 | cat >conftest.$ac_ext <<_ACEOF | |
28283 | #line $LINENO "configure" | |
28284 | /* confdefs.h. */ | |
28285 | _ACEOF | |
28286 | cat confdefs.h >>conftest.$ac_ext | |
28287 | cat >>conftest.$ac_ext <<_ACEOF | |
28288 | /* end confdefs.h. */ | |
4f14bcd8 | 28289 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28290 | which can conflict with char $ac_func (); below. |
28291 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28292 | <limits.h> exists even on freestanding compilers. */ | |
28293 | #ifdef __STDC__ | |
28294 | # include <limits.h> | |
28295 | #else | |
28296 | # include <assert.h> | |
28297 | #endif | |
10f2d63a | 28298 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28299 | #ifdef __cplusplus |
28300 | extern "C" | |
28301 | { | |
28302 | #endif | |
10f2d63a | 28303 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28304 | builtin and then its argument prototype would still apply. */ |
28305 | char $ac_func (); | |
4f14bcd8 GD |
28306 | /* The GNU C library defines this for functions which it implements |
28307 | to always fail with ENOSYS. Some functions are actually named | |
28308 | something starting with __ and the normal name is an alias. */ | |
28309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28310 | choke me | |
28311 | #else | |
e6cc62c6 VS |
28312 | char (*f) () = $ac_func; |
28313 | #endif | |
28314 | #ifdef __cplusplus | |
28315 | } | |
4f14bcd8 GD |
28316 | #endif |
28317 | ||
e6cc62c6 VS |
28318 | int |
28319 | main () | |
28320 | { | |
28321 | return f != $ac_func; | |
28322 | ; | |
28323 | return 0; | |
28324 | } | |
28325 | _ACEOF | |
28326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28328 | (eval $ac_link) 2>&5 | |
28329 | ac_status=$? | |
28330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28331 | (exit $ac_status); } && | |
28332 | { ac_try='test -s conftest$ac_exeext' | |
28333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28334 | (eval $ac_try) 2>&5 | |
28335 | ac_status=$? | |
28336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28337 | (exit $ac_status); }; }; then | |
28338 | eval "$as_ac_var=yes" | |
28339 | else | |
28340 | echo "$as_me: failed program was:" >&5 | |
28341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28342 | ||
28343 | eval "$as_ac_var=no" | |
28344 | fi | |
28345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28346 | fi | |
28347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28349 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28350 | cat >>confdefs.h <<_ACEOF | |
28351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28352 | _ACEOF | |
28353 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28354 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28355 | _ACEOF |
10f2d63a VZ |
28356 | |
28357 | else | |
e6cc62c6 VS |
28358 | |
28359 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28360 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28361 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28363 | else |
e6cc62c6 | 28364 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28365 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
28366 | cat >conftest.$ac_ext <<_ACEOF |
28367 | #line $LINENO "configure" | |
28368 | /* confdefs.h. */ | |
28369 | _ACEOF | |
28370 | cat confdefs.h >>conftest.$ac_ext | |
28371 | cat >>conftest.$ac_ext <<_ACEOF | |
28372 | /* end confdefs.h. */ | |
28373 | ||
10f2d63a | 28374 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28375 | #ifdef __cplusplus |
28376 | extern "C" | |
28377 | #endif | |
10f2d63a | 28378 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28379 | builtin and then its argument prototype would still apply. */ |
28380 | char inet_addr (); | |
28381 | int | |
28382 | main () | |
28383 | { | |
28384 | inet_addr (); | |
28385 | ; | |
28386 | return 0; | |
28387 | } | |
28388 | _ACEOF | |
28389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28391 | (eval $ac_link) 2>&5 | |
28392 | ac_status=$? | |
28393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28394 | (exit $ac_status); } && | |
28395 | { ac_try='test -s conftest$ac_exeext' | |
28396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28397 | (eval $ac_try) 2>&5 | |
28398 | ac_status=$? | |
28399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28400 | (exit $ac_status); }; }; then | |
28401 | ac_cv_lib_nsl_inet_addr=yes | |
28402 | else | |
28403 | echo "$as_me: failed program was:" >&5 | |
28404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28405 | ||
28406 | ac_cv_lib_nsl_inet_addr=no | |
28407 | fi | |
28408 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28409 | LIBS=$ac_check_lib_save_LIBS | |
28410 | fi | |
28411 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28412 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28413 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28414 | INET_LINK="nsl" |
10f2d63a | 28415 | else |
e6cc62c6 VS |
28416 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
28417 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
28418 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28420 | else |
e6cc62c6 | 28421 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28422 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28423 | cat >conftest.$ac_ext <<_ACEOF |
28424 | #line $LINENO "configure" | |
28425 | /* confdefs.h. */ | |
28426 | _ACEOF | |
28427 | cat confdefs.h >>conftest.$ac_ext | |
28428 | cat >>conftest.$ac_ext <<_ACEOF | |
28429 | /* end confdefs.h. */ | |
28430 | ||
5c6fa7d2 | 28431 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28432 | #ifdef __cplusplus |
28433 | extern "C" | |
28434 | #endif | |
5c6fa7d2 | 28435 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28436 | builtin and then its argument prototype would still apply. */ |
28437 | char inet_addr (); | |
28438 | int | |
28439 | main () | |
28440 | { | |
28441 | inet_addr (); | |
28442 | ; | |
28443 | return 0; | |
28444 | } | |
28445 | _ACEOF | |
28446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28448 | (eval $ac_link) 2>&5 | |
28449 | ac_status=$? | |
28450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28451 | (exit $ac_status); } && | |
28452 | { ac_try='test -s conftest$ac_exeext' | |
28453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28454 | (eval $ac_try) 2>&5 | |
28455 | ac_status=$? | |
28456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28457 | (exit $ac_status); }; }; then | |
28458 | ac_cv_lib_resolv_inet_addr=yes | |
28459 | else | |
28460 | echo "$as_me: failed program was:" >&5 | |
28461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28462 | ||
28463 | ac_cv_lib_resolv_inet_addr=no | |
28464 | fi | |
28465 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28466 | LIBS=$ac_check_lib_save_LIBS | |
28467 | fi | |
28468 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28469 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28470 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28471 | INET_LINK="resolv" |
698dcdb6 | 28472 | else |
e6cc62c6 VS |
28473 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
28474 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
28475 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28477 | else |
e6cc62c6 | 28478 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28479 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28480 | cat >conftest.$ac_ext <<_ACEOF |
28481 | #line $LINENO "configure" | |
28482 | /* confdefs.h. */ | |
28483 | _ACEOF | |
28484 | cat confdefs.h >>conftest.$ac_ext | |
28485 | cat >>conftest.$ac_ext <<_ACEOF | |
28486 | /* end confdefs.h. */ | |
28487 | ||
3c011993 | 28488 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28489 | #ifdef __cplusplus |
28490 | extern "C" | |
28491 | #endif | |
3c011993 | 28492 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28493 | builtin and then its argument prototype would still apply. */ |
28494 | char inet_addr (); | |
28495 | int | |
28496 | main () | |
28497 | { | |
28498 | inet_addr (); | |
28499 | ; | |
28500 | return 0; | |
28501 | } | |
28502 | _ACEOF | |
28503 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28505 | (eval $ac_link) 2>&5 | |
28506 | ac_status=$? | |
28507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28508 | (exit $ac_status); } && | |
28509 | { ac_try='test -s conftest$ac_exeext' | |
28510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28511 | (eval $ac_try) 2>&5 | |
28512 | ac_status=$? | |
28513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28514 | (exit $ac_status); }; }; then | |
28515 | ac_cv_lib_socket_inet_addr=yes | |
28516 | else | |
28517 | echo "$as_me: failed program was:" >&5 | |
28518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28519 | ||
28520 | ac_cv_lib_socket_inet_addr=no | |
28521 | fi | |
28522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28523 | LIBS=$ac_check_lib_save_LIBS | |
28524 | fi | |
28525 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28526 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28527 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28528 | INET_LINK="socket" | |
4f14bcd8 | 28529 | |
8284b0c5 | 28530 | fi |
e6cc62c6 | 28531 | |
698dcdb6 | 28532 | |
7b4a847f | 28533 | fi |
e6cc62c6 VS |
28534 | |
28535 | ||
a0b9e27f | 28536 | fi |
579d8138 | 28537 | |
e6cc62c6 VS |
28538 | |
28539 | ||
5c6fa7d2 | 28540 | fi |
e6cc62c6 VS |
28541 | done |
28542 | ||
28543 | ||
28544 | ||
28545 | for ac_func in inet_aton | |
28546 | do | |
28547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28550 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28552 | else | |
28553 | cat >conftest.$ac_ext <<_ACEOF | |
28554 | #line $LINENO "configure" | |
28555 | /* confdefs.h. */ | |
28556 | _ACEOF | |
28557 | cat confdefs.h >>conftest.$ac_ext | |
28558 | cat >>conftest.$ac_ext <<_ACEOF | |
28559 | /* end confdefs.h. */ | |
28560 | /* System header to define __stub macros and hopefully few prototypes, | |
28561 | which can conflict with char $ac_func (); below. | |
28562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28563 | <limits.h> exists even on freestanding compilers. */ | |
28564 | #ifdef __STDC__ | |
28565 | # include <limits.h> | |
28566 | #else | |
28567 | # include <assert.h> | |
28568 | #endif | |
28569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28570 | #ifdef __cplusplus | |
28571 | extern "C" | |
28572 | { | |
28573 | #endif | |
28574 | /* We use char because int might match the return type of a gcc2 | |
28575 | builtin and then its argument prototype would still apply. */ | |
28576 | char $ac_func (); | |
28577 | /* The GNU C library defines this for functions which it implements | |
28578 | to always fail with ENOSYS. Some functions are actually named | |
28579 | something starting with __ and the normal name is an alias. */ | |
28580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28581 | choke me | |
28582 | #else | |
28583 | char (*f) () = $ac_func; | |
28584 | #endif | |
28585 | #ifdef __cplusplus | |
28586 | } | |
28587 | #endif | |
28588 | ||
28589 | int | |
28590 | main () | |
28591 | { | |
28592 | return f != $ac_func; | |
28593 | ; | |
28594 | return 0; | |
28595 | } | |
28596 | _ACEOF | |
28597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28599 | (eval $ac_link) 2>&5 | |
28600 | ac_status=$? | |
28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28602 | (exit $ac_status); } && | |
28603 | { ac_try='test -s conftest$ac_exeext' | |
28604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28605 | (eval $ac_try) 2>&5 | |
28606 | ac_status=$? | |
28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28608 | (exit $ac_status); }; }; then | |
28609 | eval "$as_ac_var=yes" | |
28610 | else | |
28611 | echo "$as_me: failed program was:" >&5 | |
28612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28613 | ||
28614 | eval "$as_ac_var=no" | |
28615 | fi | |
28616 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28617 | fi | |
28618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28620 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28621 | cat >>confdefs.h <<_ACEOF | |
28622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28623 | _ACEOF | |
28624 | cat >>confdefs.h <<\_ACEOF | |
28625 | #define HAVE_INET_ATON 1 | |
28626 | _ACEOF | |
28627 | ||
28628 | else | |
28629 | ||
28630 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28631 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28632 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28633 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28635 | else | |
28636 | ac_check_lib_save_LIBS=$LIBS | |
28637 | LIBS="-l$INET_LINK $LIBS" | |
28638 | cat >conftest.$ac_ext <<_ACEOF | |
28639 | #line $LINENO "configure" | |
28640 | /* confdefs.h. */ | |
28641 | _ACEOF | |
28642 | cat confdefs.h >>conftest.$ac_ext | |
28643 | cat >>conftest.$ac_ext <<_ACEOF | |
28644 | /* end confdefs.h. */ | |
28645 | ||
28646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28647 | #ifdef __cplusplus | |
28648 | extern "C" | |
28649 | #endif | |
28650 | /* We use char because int might match the return type of a gcc2 | |
28651 | builtin and then its argument prototype would still apply. */ | |
28652 | char inet_aton (); | |
28653 | int | |
28654 | main () | |
28655 | { | |
28656 | inet_aton (); | |
28657 | ; | |
28658 | return 0; | |
28659 | } | |
28660 | _ACEOF | |
28661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28663 | (eval $ac_link) 2>&5 | |
28664 | ac_status=$? | |
28665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28666 | (exit $ac_status); } && | |
28667 | { ac_try='test -s conftest$ac_exeext' | |
28668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28669 | (eval $ac_try) 2>&5 | |
28670 | ac_status=$? | |
28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28672 | (exit $ac_status); }; }; then | |
28673 | eval "$as_ac_Lib=yes" | |
28674 | else | |
28675 | echo "$as_me: failed program was:" >&5 | |
28676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28677 | ||
28678 | eval "$as_ac_Lib=no" | |
28679 | fi | |
28680 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28681 | LIBS=$ac_check_lib_save_LIBS | |
28682 | fi | |
28683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28684 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28685 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28686 | cat >>confdefs.h <<\_ACEOF | |
28687 | #define HAVE_INET_ATON 1 | |
28688 | _ACEOF | |
52127426 | 28689 | |
a0b9e27f | 28690 | fi |
247f5006 | 28691 | |
8284b0c5 | 28692 | |
698dcdb6 | 28693 | fi |
4f14bcd8 GD |
28694 | done |
28695 | ||
8284b0c5 | 28696 | |
e6cc62c6 VS |
28697 | if test "x$INET_LINK" != "x"; then |
28698 | cat >>confdefs.h <<\_ACEOF | |
28699 | #define HAVE_INET_ADDR 1 | |
28700 | _ACEOF | |
28701 | ||
28702 | INET_LINK=" -l$INET_LINK" | |
28703 | fi | |
28704 | ||
28705 | fi | |
a0b9e27f | 28706 | |
a0b9e27f | 28707 | |
4f14bcd8 | 28708 | |
edd891e2 VS |
28709 | EXTRALIBS_ESD= |
28710 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28711 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28712 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28714 | else | |
28715 | ac_check_lib_save_LIBS=$LIBS | |
28716 | LIBS="-lesd $LIBS" | |
28717 | cat >conftest.$ac_ext <<_ACEOF | |
28718 | #line $LINENO "configure" | |
28719 | /* confdefs.h. */ | |
28720 | _ACEOF | |
28721 | cat confdefs.h >>conftest.$ac_ext | |
28722 | cat >>conftest.$ac_ext <<_ACEOF | |
28723 | /* end confdefs.h. */ | |
28724 | ||
28725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28726 | #ifdef __cplusplus | |
28727 | extern "C" | |
28728 | #endif | |
28729 | /* We use char because int might match the return type of a gcc2 | |
28730 | builtin and then its argument prototype would still apply. */ | |
28731 | char esd_close (); | |
28732 | int | |
28733 | main () | |
28734 | { | |
28735 | esd_close (); | |
28736 | ; | |
28737 | return 0; | |
28738 | } | |
28739 | _ACEOF | |
28740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28742 | (eval $ac_link) 2>&5 | |
28743 | ac_status=$? | |
28744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28745 | (exit $ac_status); } && | |
28746 | { ac_try='test -s conftest$ac_exeext' | |
28747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28748 | (eval $ac_try) 2>&5 | |
28749 | ac_status=$? | |
28750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28751 | (exit $ac_status); }; }; then | |
28752 | ac_cv_lib_esd_esd_close=yes | |
28753 | else | |
28754 | echo "$as_me: failed program was:" >&5 | |
28755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28756 | ||
28757 | ac_cv_lib_esd_esd_close=no | |
28758 | fi | |
28759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28760 | LIBS=$ac_check_lib_save_LIBS | |
28761 | fi | |
28762 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28763 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28764 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28765 | ||
28766 | ||
28767 | for ac_header in esd.h | |
28768 | do | |
28769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28775 | fi | |
edd891e2 VS |
28776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28778 | else |
28779 | # Is the header compilable? | |
edd891e2 VS |
28780 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28781 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 VS |
28782 | cat >conftest.$ac_ext <<_ACEOF |
28783 | #line $LINENO "configure" | |
28784 | /* confdefs.h. */ | |
28785 | _ACEOF | |
28786 | cat confdefs.h >>conftest.$ac_ext | |
28787 | cat >>conftest.$ac_ext <<_ACEOF | |
28788 | /* end confdefs.h. */ | |
28789 | $ac_includes_default | |
edd891e2 | 28790 | #include <$ac_header> |
e6cc62c6 VS |
28791 | _ACEOF |
28792 | rm -f conftest.$ac_objext | |
28793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28794 | (eval $ac_compile) 2>&5 | |
28795 | ac_status=$? | |
28796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28797 | (exit $ac_status); } && | |
28798 | { ac_try='test -s conftest.$ac_objext' | |
28799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28800 | (eval $ac_try) 2>&5 | |
28801 | ac_status=$? | |
28802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28803 | (exit $ac_status); }; }; then | |
28804 | ac_header_compiler=yes | |
28805 | else | |
28806 | echo "$as_me: failed program was:" >&5 | |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28808 | ||
28809 | ac_header_compiler=no | |
28810 | fi | |
28811 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28813 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28814 | ||
28815 | # Is the header present? | |
edd891e2 VS |
28816 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 VS |
28818 | cat >conftest.$ac_ext <<_ACEOF |
28819 | #line $LINENO "configure" | |
28820 | /* confdefs.h. */ | |
28821 | _ACEOF | |
28822 | cat confdefs.h >>conftest.$ac_ext | |
28823 | cat >>conftest.$ac_ext <<_ACEOF | |
28824 | /* end confdefs.h. */ | |
edd891e2 | 28825 | #include <$ac_header> |
e6cc62c6 VS |
28826 | _ACEOF |
28827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28829 | ac_status=$? | |
28830 | grep -v '^ *+' conftest.er1 >conftest.err | |
28831 | rm -f conftest.er1 | |
28832 | cat conftest.err >&5 | |
28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28834 | (exit $ac_status); } >/dev/null; then | |
28835 | if test -s conftest.err; then | |
28836 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28837 | else | |
28838 | ac_cpp_err= | |
28839 | fi | |
a0b9e27f | 28840 | else |
e6cc62c6 VS |
28841 | ac_cpp_err=yes |
28842 | fi | |
28843 | if test -z "$ac_cpp_err"; then | |
28844 | ac_header_preproc=yes | |
28845 | else | |
28846 | echo "$as_me: failed program was:" >&5 | |
28847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28848 | ||
28849 | ac_header_preproc=no | |
28850 | fi | |
28851 | rm -f conftest.err conftest.$ac_ext | |
28852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28853 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28854 | ||
28855 | # So? What about this header? | |
28856 | case $ac_header_compiler:$ac_header_preproc in | |
28857 | yes:no ) | |
edd891e2 VS |
28858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28862 | ( |
28863 | cat <<\_ASBOX | |
28864 | ## ------------------------------------ ## | |
28865 | ## Report this to bug-autoconf@gnu.org. ## | |
28866 | ## ------------------------------------ ## | |
28867 | _ASBOX | |
28868 | ) | | |
28869 | sed "s/^/$as_me: WARNING: /" >&2 | |
28870 | ;; | |
28871 | no:yes ) | |
edd891e2 VS |
28872 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28873 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28874 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28875 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28877 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28878 | ( |
28879 | cat <<\_ASBOX | |
28880 | ## ------------------------------------ ## | |
28881 | ## Report this to bug-autoconf@gnu.org. ## | |
28882 | ## ------------------------------------ ## | |
28883 | _ASBOX | |
28884 | ) | | |
28885 | sed "s/^/$as_me: WARNING: /" >&2 | |
28886 | ;; | |
28887 | esac | |
edd891e2 VS |
28888 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
28889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28892 | else | |
edd891e2 | 28893 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 28894 | fi |
edd891e2 VS |
28895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 28897 | |
e6cc62c6 | 28898 | fi |
edd891e2 VS |
28899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28900 | cat >>confdefs.h <<_ACEOF | |
28901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 28902 | _ACEOF |
e6cc62c6 | 28903 | |
edd891e2 | 28904 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 28905 | |
a0b9e27f | 28906 | fi |
247f5006 | 28907 | |
edd891e2 | 28908 | done |
8284b0c5 | 28909 | |
4f14bcd8 | 28910 | |
6232543b | 28911 | fi |
10f2d63a | 28912 | |
703e0a69 | 28913 | |
8284b0c5 | 28914 | |
e6cc62c6 VS |
28915 | |
28916 | ||
28917 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28918 | # This file is a shell script that caches the results of configure |
28919 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28920 | # scripts and configure runs, see configure's option --config-cache. |
28921 | # It is not useful on other systems. If it contains results you don't | |
28922 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28923 | # |
e6cc62c6 VS |
28924 | # config.status only pays attention to the cache file if you give it |
28925 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28926 | # |
e6cc62c6 VS |
28927 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28928 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28929 | # following values. | |
28930 | ||
28931 | _ACEOF | |
28932 | ||
4f14bcd8 GD |
28933 | # The following way of writing the cache mishandles newlines in values, |
28934 | # but we know of no workaround that is simple, portable, and efficient. | |
28935 | # So, don't put newlines in cache variables' values. | |
28936 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28937 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28938 | { |
28939 | (set) 2>&1 | | |
28940 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28941 | *ac_space=\ *) | |
28942 | # `set' does not quote correctly, so add quotes (double-quote | |
28943 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28944 | sed -n \ | |
28945 | "s/'/'\\\\''/g; | |
28946 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28947 | ;; | |
28948 | *) | |
28949 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28950 | sed -n \ | |
28951 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28952 | ;; | |
28953 | esac; | |
28954 | } | | |
28955 | sed ' | |
28956 | t clear | |
28957 | : clear | |
28958 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28959 | t end | |
28960 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28961 | : end' >>confcache | |
28962 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28963 | if test -w $cache_file; then |
e6cc62c6 VS |
28964 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28965 | cat confcache >$cache_file | |
f6bcfd97 | 28966 | else |
4f14bcd8 | 28967 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28968 | fi |
4f14bcd8 GD |
28969 | fi |
28970 | rm -f confcache | |
f6bcfd97 | 28971 | |
8284b0c5 | 28972 | |
009fead0 | 28973 | CPP_MT_FLAG= |
4f14bcd8 GD |
28974 | if test "$TOOLKIT" != "MSW"; then |
28975 | ||
e6cc62c6 | 28976 | |
7274f1c7 | 28977 | THREADS_LINK= |
009fead0 | 28978 | THREADS_CFLAGS= |
7274f1c7 RL |
28979 | |
28980 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28981 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28982 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28983 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28984 | wxUSE_THREADS="no" |
28985 | fi | |
4f14bcd8 | 28986 | fi |
4f14bcd8 | 28987 | |
7274f1c7 | 28988 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28989 | |
28990 | ||
009fead0 VZ |
28991 | THREAD_OPTS="-pthread" |
28992 | case "${host}" in | |
28993 | *-*-solaris2* | *-*-sunos4* ) | |
28994 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28995 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28996 | else |
28997 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28998 | fi | |
28999 | ;; | |
29000 | *-*-freebsd*) | |
29001 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
29002 | ;; | |
17234b26 MB |
29003 | *-*-darwin* | *-*-cygwin* ) |
29004 | THREAD_OPTS="" | |
4101db81 | 29005 | ;; |
8f4a9a10 | 29006 | *-*-aix*) |
009fead0 VZ |
29007 | THREAD_OPTS="pthreads" |
29008 | ;; | |
4f5a7f74 VZ |
29009 | *-hp-hpux* ) |
29010 | if test "x$GCC" != "xyes"; then | |
29011 | THREAD_OPTS="" | |
29012 | fi | |
89e3b3e4 VZ |
29013 | ;; |
29014 | ||
29015 | *-*-irix* ) | |
29016 | if test "x$GCC" = "xyes"; then | |
29017 | THREAD_OPTS="" | |
29018 | fi | |
29019 | ;; | |
29020 | ||
29021 | *-*-*UnixWare*) | |
29022 | if test "x$GCC" != "xyes"; then | |
29023 | THREAD_OPTS="-Ethread" | |
29024 | fi | |
29025 | ;; | |
009fead0 | 29026 | esac |
4f14bcd8 | 29027 | |
02a1dfba | 29028 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 29029 | |
009fead0 VZ |
29030 | THREADS_OK=no |
29031 | for flag in $THREAD_OPTS; do | |
29032 | case $flag in | |
29033 | none) | |
e6cc62c6 VS |
29034 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
29035 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 29036 | ;; |
698dcdb6 | 29037 | |
009fead0 | 29038 | -*) |
e6cc62c6 VS |
29039 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
29040 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
29041 | THREADS_CFLAGS="$flag" |
29042 | ;; | |
698dcdb6 | 29043 | |
009fead0 | 29044 | *) |
e6cc62c6 VS |
29045 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
29046 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
29047 | THREADS_LINK="-l$flag" |
29048 | ;; | |
29049 | esac | |
10f2d63a | 29050 | |
009fead0 VZ |
29051 | save_LIBS="$LIBS" |
29052 | save_CFLAGS="$CFLAGS" | |
29053 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 29054 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 29055 | |
e6cc62c6 VS |
29056 | cat >conftest.$ac_ext <<_ACEOF |
29057 | #line $LINENO "configure" | |
29058 | /* confdefs.h. */ | |
29059 | _ACEOF | |
29060 | cat confdefs.h >>conftest.$ac_ext | |
29061 | cat >>conftest.$ac_ext <<_ACEOF | |
29062 | /* end confdefs.h. */ | |
009fead0 | 29063 | #include <pthread.h> |
e6cc62c6 VS |
29064 | int |
29065 | main () | |
29066 | { | |
009fead0 | 29067 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
29068 | ; |
29069 | return 0; | |
29070 | } | |
29071 | _ACEOF | |
29072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29074 | (eval $ac_link) 2>&5 | |
29075 | ac_status=$? | |
29076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29077 | (exit $ac_status); } && | |
29078 | { ac_try='test -s conftest$ac_exeext' | |
29079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29080 | (eval $ac_try) 2>&5 | |
29081 | ac_status=$? | |
29082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29083 | (exit $ac_status); }; }; then | |
009fead0 | 29084 | THREADS_OK=yes |
10f2d63a | 29085 | else |
e6cc62c6 VS |
29086 | echo "$as_me: failed program was:" >&5 |
29087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29088 | ||
6232543b | 29089 | fi |
e6cc62c6 | 29090 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 29091 | |
009fead0 VZ |
29092 | LIBS="$save_LIBS" |
29093 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 29094 | |
e6cc62c6 VS |
29095 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
29096 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
29097 | if test "x$THREADS_OK" = "xyes"; then |
29098 | break; | |
29099 | fi | |
d9b9876f | 29100 | |
009fead0 VZ |
29101 | THREADS_LINK="" |
29102 | THREADS_CFLAGS="" | |
29103 | done | |
4f14bcd8 | 29104 | |
009fead0 VZ |
29105 | if test "x$THREADS_OK" != "xyes"; then |
29106 | wxUSE_THREADS=no | |
e6cc62c6 VS |
29107 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
29108 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 29109 | else |
db82f09e VZ |
29110 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
29111 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 29112 | |
e6cc62c6 VS |
29113 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
29114 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
29115 | flag=no |
29116 | case "${host}" in | |
2b5f62a0 VZ |
29117 | *-aix*) |
29118 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
29119 | flag="-D_THREAD_SAFE" | |
29120 | ;; | |
29121 | *-freebsd*) | |
009fead0 VZ |
29122 | flag="-D_THREAD_SAFE" |
29123 | ;; | |
06313569 GD |
29124 | *-hp-hpux* ) |
29125 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
29126 | if test "x$GCC" != "xyes"; then |
29127 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
29128 | fi | |
06313569 | 29129 | ;; |
009fead0 VZ |
29130 | *solaris* | alpha*-osf*) |
29131 | flag="-D_REENTRANT" | |
29132 | ;; | |
29133 | esac | |
e6cc62c6 VS |
29134 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
29135 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 29136 | if test "x$flag" != xno; then |
04727afd | 29137 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
29138 | fi |
29139 | ||
009fead0 | 29140 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 29141 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
29142 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
29143 | fi | |
29144 | fi | |
4f14bcd8 | 29145 | fi |
4f14bcd8 | 29146 | |
7274f1c7 | 29147 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29148 | |
29149 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 29150 | do |
e6cc62c6 VS |
29151 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29152 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29153 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29154 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29156 | else | |
29157 | cat >conftest.$ac_ext <<_ACEOF | |
29158 | #line $LINENO "configure" | |
29159 | /* confdefs.h. */ | |
29160 | _ACEOF | |
29161 | cat confdefs.h >>conftest.$ac_ext | |
29162 | cat >>conftest.$ac_ext <<_ACEOF | |
29163 | /* end confdefs.h. */ | |
4f14bcd8 | 29164 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29165 | which can conflict with char $ac_func (); below. |
29166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29167 | <limits.h> exists even on freestanding compilers. */ | |
29168 | #ifdef __STDC__ | |
29169 | # include <limits.h> | |
29170 | #else | |
29171 | # include <assert.h> | |
29172 | #endif | |
4f14bcd8 | 29173 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29174 | #ifdef __cplusplus |
29175 | extern "C" | |
29176 | { | |
29177 | #endif | |
4f14bcd8 | 29178 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29179 | builtin and then its argument prototype would still apply. */ |
29180 | char $ac_func (); | |
4f14bcd8 GD |
29181 | /* The GNU C library defines this for functions which it implements |
29182 | to always fail with ENOSYS. Some functions are actually named | |
29183 | something starting with __ and the normal name is an alias. */ | |
29184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29185 | choke me | |
29186 | #else | |
e6cc62c6 VS |
29187 | char (*f) () = $ac_func; |
29188 | #endif | |
29189 | #ifdef __cplusplus | |
29190 | } | |
4f14bcd8 GD |
29191 | #endif |
29192 | ||
e6cc62c6 VS |
29193 | int |
29194 | main () | |
29195 | { | |
29196 | return f != $ac_func; | |
29197 | ; | |
29198 | return 0; | |
29199 | } | |
29200 | _ACEOF | |
29201 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29203 | (eval $ac_link) 2>&5 | |
29204 | ac_status=$? | |
29205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29206 | (exit $ac_status); } && | |
29207 | { ac_try='test -s conftest$ac_exeext' | |
29208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29209 | (eval $ac_try) 2>&5 | |
29210 | ac_status=$? | |
29211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29212 | (exit $ac_status); }; }; then | |
29213 | eval "$as_ac_var=yes" | |
29214 | else | |
29215 | echo "$as_me: failed program was:" >&5 | |
29216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29217 | ||
29218 | eval "$as_ac_var=no" | |
29219 | fi | |
29220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29221 | fi | |
29222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29225 | cat >>confdefs.h <<_ACEOF | |
29226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29227 | _ACEOF | |
698dcdb6 | 29228 | |
10f2d63a | 29229 | fi |
4f14bcd8 | 29230 | done |
10f2d63a | 29231 | |
8284b0c5 | 29232 | |
e6cc62c6 VS |
29233 | |
29234 | for ac_header in sched.h | |
4f14bcd8 | 29235 | do |
e6cc62c6 VS |
29236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29242 | fi | |
29243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29244 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29245 | else | |
29246 | # Is the header compilable? | |
29247 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29248 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29249 | cat >conftest.$ac_ext <<_ACEOF | |
29250 | #line $LINENO "configure" | |
29251 | /* confdefs.h. */ | |
29252 | _ACEOF | |
29253 | cat confdefs.h >>conftest.$ac_ext | |
29254 | cat >>conftest.$ac_ext <<_ACEOF | |
29255 | /* end confdefs.h. */ | |
29256 | $ac_includes_default | |
29257 | #include <$ac_header> | |
29258 | _ACEOF | |
29259 | rm -f conftest.$ac_objext | |
29260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29261 | (eval $ac_compile) 2>&5 | |
29262 | ac_status=$? | |
29263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29264 | (exit $ac_status); } && | |
29265 | { ac_try='test -s conftest.$ac_objext' | |
29266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29267 | (eval $ac_try) 2>&5 | |
29268 | ac_status=$? | |
29269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29270 | (exit $ac_status); }; }; then | |
29271 | ac_header_compiler=yes | |
29272 | else | |
29273 | echo "$as_me: failed program was:" >&5 | |
29274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29275 | ||
29276 | ac_header_compiler=no | |
29277 | fi | |
29278 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29279 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29280 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29281 | ||
29282 | # Is the header present? | |
29283 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29284 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29285 | cat >conftest.$ac_ext <<_ACEOF | |
29286 | #line $LINENO "configure" | |
29287 | /* confdefs.h. */ | |
29288 | _ACEOF | |
29289 | cat confdefs.h >>conftest.$ac_ext | |
29290 | cat >>conftest.$ac_ext <<_ACEOF | |
29291 | /* end confdefs.h. */ | |
29292 | #include <$ac_header> | |
29293 | _ACEOF | |
29294 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29295 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29296 | ac_status=$? | |
29297 | grep -v '^ *+' conftest.er1 >conftest.err | |
29298 | rm -f conftest.er1 | |
29299 | cat conftest.err >&5 | |
29300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29301 | (exit $ac_status); } >/dev/null; then | |
29302 | if test -s conftest.err; then | |
29303 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29304 | else | |
29305 | ac_cpp_err= | |
29306 | fi | |
29307 | else | |
29308 | ac_cpp_err=yes | |
29309 | fi | |
29310 | if test -z "$ac_cpp_err"; then | |
29311 | ac_header_preproc=yes | |
29312 | else | |
29313 | echo "$as_me: failed program was:" >&5 | |
29314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29315 | ||
29316 | ac_header_preproc=no | |
29317 | fi | |
29318 | rm -f conftest.err conftest.$ac_ext | |
29319 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29320 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29321 | ||
29322 | # So? What about this header? | |
29323 | case $ac_header_compiler:$ac_header_preproc in | |
29324 | yes:no ) | |
29325 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29326 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29327 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29328 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29329 | ( | |
29330 | cat <<\_ASBOX | |
29331 | ## ------------------------------------ ## | |
29332 | ## Report this to bug-autoconf@gnu.org. ## | |
29333 | ## ------------------------------------ ## | |
29334 | _ASBOX | |
29335 | ) | | |
29336 | sed "s/^/$as_me: WARNING: /" >&2 | |
29337 | ;; | |
29338 | no:yes ) | |
29339 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29340 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29341 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29342 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29344 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29345 | ( | |
29346 | cat <<\_ASBOX | |
29347 | ## ------------------------------------ ## | |
29348 | ## Report this to bug-autoconf@gnu.org. ## | |
29349 | ## ------------------------------------ ## | |
29350 | _ASBOX | |
29351 | ) | | |
29352 | sed "s/^/$as_me: WARNING: /" >&2 | |
29353 | ;; | |
29354 | esac | |
29355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29359 | else | |
29360 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 29361 | fi |
e6cc62c6 VS |
29362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29364 | ||
10f2d63a | 29365 | fi |
e6cc62c6 VS |
29366 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29367 | cat >>confdefs.h <<_ACEOF | |
29368 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29369 | _ACEOF | |
29370 | ||
f6bcfd97 | 29371 | fi |
e6cc62c6 | 29372 | |
4f14bcd8 | 29373 | done |
f6bcfd97 | 29374 | |
009fead0 | 29375 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29376 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29377 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29378 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29380 | else | |
29381 | cat >conftest.$ac_ext <<_ACEOF | |
29382 | #line $LINENO "configure" | |
29383 | /* confdefs.h. */ | |
29384 | _ACEOF | |
29385 | cat confdefs.h >>conftest.$ac_ext | |
29386 | cat >>conftest.$ac_ext <<_ACEOF | |
29387 | /* end confdefs.h. */ | |
009fead0 | 29388 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29389 | which can conflict with char sched_yield (); below. |
29390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29391 | <limits.h> exists even on freestanding compilers. */ | |
29392 | #ifdef __STDC__ | |
29393 | # include <limits.h> | |
29394 | #else | |
29395 | # include <assert.h> | |
29396 | #endif | |
4f14bcd8 | 29397 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29398 | #ifdef __cplusplus |
29399 | extern "C" | |
29400 | { | |
29401 | #endif | |
4f14bcd8 | 29402 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29403 | builtin and then its argument prototype would still apply. */ |
29404 | char sched_yield (); | |
009fead0 VZ |
29405 | /* The GNU C library defines this for functions which it implements |
29406 | to always fail with ENOSYS. Some functions are actually named | |
29407 | something starting with __ and the normal name is an alias. */ | |
29408 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29409 | choke me | |
29410 | #else | |
e6cc62c6 VS |
29411 | char (*f) () = sched_yield; |
29412 | #endif | |
29413 | #ifdef __cplusplus | |
29414 | } | |
009fead0 VZ |
29415 | #endif |
29416 | ||
e6cc62c6 VS |
29417 | int |
29418 | main () | |
29419 | { | |
29420 | return f != sched_yield; | |
29421 | ; | |
29422 | return 0; | |
29423 | } | |
29424 | _ACEOF | |
29425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29427 | (eval $ac_link) 2>&5 | |
29428 | ac_status=$? | |
29429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29430 | (exit $ac_status); } && | |
29431 | { ac_try='test -s conftest$ac_exeext' | |
29432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29433 | (eval $ac_try) 2>&5 | |
29434 | ac_status=$? | |
29435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29436 | (exit $ac_status); }; }; then | |
29437 | ac_cv_func_sched_yield=yes | |
29438 | else | |
29439 | echo "$as_me: failed program was:" >&5 | |
29440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29441 | ||
29442 | ac_cv_func_sched_yield=no | |
29443 | fi | |
29444 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29445 | fi | |
29446 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29447 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29448 | if test $ac_cv_func_sched_yield = yes; then | |
29449 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29450 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29451 | _ACEOF |
10f2d63a | 29452 | |
4f14bcd8 | 29453 | else |
009fead0 | 29454 | |
e6cc62c6 VS |
29455 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29456 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29457 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29459 | else |
e6cc62c6 | 29460 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29461 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29462 | cat >conftest.$ac_ext <<_ACEOF |
29463 | #line $LINENO "configure" | |
29464 | /* confdefs.h. */ | |
29465 | _ACEOF | |
29466 | cat confdefs.h >>conftest.$ac_ext | |
29467 | cat >>conftest.$ac_ext <<_ACEOF | |
29468 | /* end confdefs.h. */ | |
29469 | ||
4f14bcd8 | 29470 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29471 | #ifdef __cplusplus |
29472 | extern "C" | |
29473 | #endif | |
4f14bcd8 | 29474 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29475 | builtin and then its argument prototype would still apply. */ |
29476 | char sched_yield (); | |
29477 | int | |
29478 | main () | |
29479 | { | |
29480 | sched_yield (); | |
29481 | ; | |
29482 | return 0; | |
29483 | } | |
29484 | _ACEOF | |
29485 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29487 | (eval $ac_link) 2>&5 | |
29488 | ac_status=$? | |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29490 | (exit $ac_status); } && | |
29491 | { ac_try='test -s conftest$ac_exeext' | |
29492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29493 | (eval $ac_try) 2>&5 | |
29494 | ac_status=$? | |
29495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29496 | (exit $ac_status); }; }; then | |
29497 | ac_cv_lib_posix4_sched_yield=yes | |
29498 | else | |
29499 | echo "$as_me: failed program was:" >&5 | |
29500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29501 | ||
29502 | ac_cv_lib_posix4_sched_yield=no | |
29503 | fi | |
29504 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29505 | LIBS=$ac_check_lib_save_LIBS | |
29506 | fi | |
29507 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29508 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29509 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29510 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29511 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29512 | _ACEOF |
3d63bc3a | 29513 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29514 | else |
e6cc62c6 VS |
29515 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29516 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29517 | ||
54276ccf VZ |
29518 | fi |
29519 | ||
e6cc62c6 VS |
29520 | |
29521 | ||
4f14bcd8 | 29522 | fi |
698dcdb6 | 29523 | |
009fead0 | 29524 | fi |
10f2d63a | 29525 | |
7274f1c7 | 29526 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29527 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29528 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29529 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29531 | else | |
29532 | cat >conftest.$ac_ext <<_ACEOF | |
29533 | #line $LINENO "configure" | |
29534 | /* confdefs.h. */ | |
29535 | _ACEOF | |
29536 | cat confdefs.h >>conftest.$ac_ext | |
29537 | cat >>conftest.$ac_ext <<_ACEOF | |
29538 | /* end confdefs.h. */ | |
009fead0 | 29539 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29540 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29542 | <limits.h> exists even on freestanding compilers. */ | |
29543 | #ifdef __STDC__ | |
29544 | # include <limits.h> | |
29545 | #else | |
29546 | # include <assert.h> | |
29547 | #endif | |
4f14bcd8 | 29548 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29549 | #ifdef __cplusplus |
29550 | extern "C" | |
29551 | { | |
29552 | #endif | |
4f14bcd8 | 29553 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29554 | builtin and then its argument prototype would still apply. */ |
29555 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29556 | /* The GNU C library defines this for functions which it implements |
29557 | to always fail with ENOSYS. Some functions are actually named | |
29558 | something starting with __ and the normal name is an alias. */ | |
29559 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29560 | choke me | |
29561 | #else | |
e6cc62c6 VS |
29562 | char (*f) () = pthread_attr_getschedpolicy; |
29563 | #endif | |
29564 | #ifdef __cplusplus | |
29565 | } | |
009fead0 VZ |
29566 | #endif |
29567 | ||
e6cc62c6 VS |
29568 | int |
29569 | main () | |
29570 | { | |
29571 | return f != pthread_attr_getschedpolicy; | |
29572 | ; | |
29573 | return 0; | |
29574 | } | |
29575 | _ACEOF | |
29576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29578 | (eval $ac_link) 2>&5 | |
29579 | ac_status=$? | |
29580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29581 | (exit $ac_status); } && | |
29582 | { ac_try='test -s conftest$ac_exeext' | |
29583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29584 | (eval $ac_try) 2>&5 | |
29585 | ac_status=$? | |
29586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29587 | (exit $ac_status); }; }; then | |
29588 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29589 | else | |
29590 | echo "$as_me: failed program was:" >&5 | |
29591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29592 | ||
29593 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29594 | fi | |
29595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29596 | fi | |
29597 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29598 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29599 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29600 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29601 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29602 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29604 | else | |
29605 | cat >conftest.$ac_ext <<_ACEOF | |
29606 | #line $LINENO "configure" | |
29607 | /* confdefs.h. */ | |
29608 | _ACEOF | |
29609 | cat confdefs.h >>conftest.$ac_ext | |
29610 | cat >>conftest.$ac_ext <<_ACEOF | |
29611 | /* end confdefs.h. */ | |
a0b9e27f | 29612 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29613 | which can conflict with char pthread_attr_setschedparam (); below. |
29614 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29615 | <limits.h> exists even on freestanding compilers. */ | |
29616 | #ifdef __STDC__ | |
29617 | # include <limits.h> | |
29618 | #else | |
29619 | # include <assert.h> | |
29620 | #endif | |
422107f9 | 29621 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29622 | #ifdef __cplusplus |
29623 | extern "C" | |
29624 | { | |
29625 | #endif | |
422107f9 | 29626 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29627 | builtin and then its argument prototype would still apply. */ |
29628 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29629 | /* The GNU C library defines this for functions which it implements |
29630 | to always fail with ENOSYS. Some functions are actually named | |
29631 | something starting with __ and the normal name is an alias. */ | |
29632 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29633 | choke me | |
29634 | #else | |
e6cc62c6 VS |
29635 | char (*f) () = pthread_attr_setschedparam; |
29636 | #endif | |
29637 | #ifdef __cplusplus | |
29638 | } | |
009fead0 VZ |
29639 | #endif |
29640 | ||
e6cc62c6 VS |
29641 | int |
29642 | main () | |
29643 | { | |
29644 | return f != pthread_attr_setschedparam; | |
29645 | ; | |
29646 | return 0; | |
29647 | } | |
29648 | _ACEOF | |
29649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29651 | (eval $ac_link) 2>&5 | |
29652 | ac_status=$? | |
29653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29654 | (exit $ac_status); } && | |
29655 | { ac_try='test -s conftest$ac_exeext' | |
29656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29657 | (eval $ac_try) 2>&5 | |
29658 | ac_status=$? | |
29659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29660 | (exit $ac_status); }; }; then | |
29661 | ac_cv_func_pthread_attr_setschedparam=yes | |
29662 | else | |
29663 | echo "$as_me: failed program was:" >&5 | |
29664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29665 | ||
29666 | ac_cv_func_pthread_attr_setschedparam=no | |
29667 | fi | |
29668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29669 | fi | |
29670 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29671 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29672 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29673 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29674 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29675 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29677 | else | |
29678 | cat >conftest.$ac_ext <<_ACEOF | |
29679 | #line $LINENO "configure" | |
29680 | /* confdefs.h. */ | |
29681 | _ACEOF | |
29682 | cat confdefs.h >>conftest.$ac_ext | |
29683 | cat >>conftest.$ac_ext <<_ACEOF | |
29684 | /* end confdefs.h. */ | |
ef33c576 | 29685 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29686 | which can conflict with char sched_get_priority_max (); below. |
29687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29688 | <limits.h> exists even on freestanding compilers. */ | |
29689 | #ifdef __STDC__ | |
29690 | # include <limits.h> | |
29691 | #else | |
29692 | # include <assert.h> | |
29693 | #endif | |
4f14bcd8 | 29694 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29695 | #ifdef __cplusplus |
29696 | extern "C" | |
29697 | { | |
29698 | #endif | |
4f14bcd8 | 29699 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29700 | builtin and then its argument prototype would still apply. */ |
29701 | char sched_get_priority_max (); | |
009fead0 VZ |
29702 | /* The GNU C library defines this for functions which it implements |
29703 | to always fail with ENOSYS. Some functions are actually named | |
29704 | something starting with __ and the normal name is an alias. */ | |
29705 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29706 | choke me | |
29707 | #else | |
e6cc62c6 VS |
29708 | char (*f) () = sched_get_priority_max; |
29709 | #endif | |
29710 | #ifdef __cplusplus | |
29711 | } | |
009fead0 VZ |
29712 | #endif |
29713 | ||
e6cc62c6 VS |
29714 | int |
29715 | main () | |
29716 | { | |
29717 | return f != sched_get_priority_max; | |
29718 | ; | |
29719 | return 0; | |
29720 | } | |
29721 | _ACEOF | |
29722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29724 | (eval $ac_link) 2>&5 | |
29725 | ac_status=$? | |
29726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29727 | (exit $ac_status); } && | |
29728 | { ac_try='test -s conftest$ac_exeext' | |
29729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29730 | (eval $ac_try) 2>&5 | |
29731 | ac_status=$? | |
29732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29733 | (exit $ac_status); }; }; then | |
29734 | ac_cv_func_sched_get_priority_max=yes | |
29735 | else | |
29736 | echo "$as_me: failed program was:" >&5 | |
29737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29738 | ||
29739 | ac_cv_func_sched_get_priority_max=no | |
29740 | fi | |
29741 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29742 | fi | |
29743 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29744 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29745 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29746 | HAVE_PRIOR_FUNCS=1 |
29747 | else | |
e6cc62c6 VS |
29748 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29749 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29750 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29752 | else |
e6cc62c6 | 29753 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29754 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29755 | cat >conftest.$ac_ext <<_ACEOF |
29756 | #line $LINENO "configure" | |
29757 | /* confdefs.h. */ | |
29758 | _ACEOF | |
29759 | cat confdefs.h >>conftest.$ac_ext | |
29760 | cat >>conftest.$ac_ext <<_ACEOF | |
29761 | /* end confdefs.h. */ | |
29762 | ||
422107f9 | 29763 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29764 | #ifdef __cplusplus |
29765 | extern "C" | |
29766 | #endif | |
422107f9 | 29767 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29768 | builtin and then its argument prototype would still apply. */ |
29769 | char sched_get_priority_max (); | |
29770 | int | |
29771 | main () | |
29772 | { | |
29773 | sched_get_priority_max (); | |
29774 | ; | |
29775 | return 0; | |
29776 | } | |
29777 | _ACEOF | |
29778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29780 | (eval $ac_link) 2>&5 | |
29781 | ac_status=$? | |
29782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29783 | (exit $ac_status); } && | |
29784 | { ac_try='test -s conftest$ac_exeext' | |
29785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29786 | (eval $ac_try) 2>&5 | |
29787 | ac_status=$? | |
29788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29789 | (exit $ac_status); }; }; then | |
29790 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29791 | else | |
29792 | echo "$as_me: failed program was:" >&5 | |
29793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29794 | ||
29795 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29796 | fi | |
29797 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29798 | LIBS=$ac_check_lib_save_LIBS | |
29799 | fi | |
29800 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29801 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29802 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29803 | |
7274f1c7 RL |
29804 | HAVE_PRIOR_FUNCS=1 |
29805 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29806 | |
4f14bcd8 | 29807 | fi |
463abc64 | 29808 | |
e6cc62c6 | 29809 | |
328a083c | 29810 | fi |
463abc64 | 29811 | |
e6cc62c6 | 29812 | |
7b4a847f | 29813 | fi |
579d8138 | 29814 | |
e6cc62c6 | 29815 | |
5c6fa7d2 | 29816 | fi |
52127426 | 29817 | |
8284b0c5 | 29818 | |
7274f1c7 | 29819 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29820 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29821 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29822 | _ACEOF |
463abc64 | 29823 | |
7274f1c7 | 29824 | else |
e6cc62c6 VS |
29825 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29826 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29827 | fi |
463abc64 | 29828 | |
e6cc62c6 VS |
29829 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29830 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29831 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29833 | else | |
29834 | cat >conftest.$ac_ext <<_ACEOF | |
29835 | #line $LINENO "configure" | |
29836 | /* confdefs.h. */ | |
29837 | _ACEOF | |
29838 | cat confdefs.h >>conftest.$ac_ext | |
29839 | cat >>conftest.$ac_ext <<_ACEOF | |
29840 | /* end confdefs.h. */ | |
009fead0 | 29841 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29842 | which can conflict with char pthread_cancel (); below. |
29843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29844 | <limits.h> exists even on freestanding compilers. */ | |
29845 | #ifdef __STDC__ | |
29846 | # include <limits.h> | |
29847 | #else | |
29848 | # include <assert.h> | |
29849 | #endif | |
422107f9 | 29850 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29851 | #ifdef __cplusplus |
29852 | extern "C" | |
29853 | { | |
29854 | #endif | |
422107f9 | 29855 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29856 | builtin and then its argument prototype would still apply. */ |
29857 | char pthread_cancel (); | |
009fead0 VZ |
29858 | /* The GNU C library defines this for functions which it implements |
29859 | to always fail with ENOSYS. Some functions are actually named | |
29860 | something starting with __ and the normal name is an alias. */ | |
29861 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29862 | choke me | |
29863 | #else | |
e6cc62c6 VS |
29864 | char (*f) () = pthread_cancel; |
29865 | #endif | |
29866 | #ifdef __cplusplus | |
29867 | } | |
009fead0 VZ |
29868 | #endif |
29869 | ||
e6cc62c6 VS |
29870 | int |
29871 | main () | |
29872 | { | |
29873 | return f != pthread_cancel; | |
29874 | ; | |
29875 | return 0; | |
29876 | } | |
29877 | _ACEOF | |
29878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29880 | (eval $ac_link) 2>&5 | |
29881 | ac_status=$? | |
29882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29883 | (exit $ac_status); } && | |
29884 | { ac_try='test -s conftest$ac_exeext' | |
29885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29886 | (eval $ac_try) 2>&5 | |
29887 | ac_status=$? | |
29888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29889 | (exit $ac_status); }; }; then | |
29890 | ac_cv_func_pthread_cancel=yes | |
29891 | else | |
29892 | echo "$as_me: failed program was:" >&5 | |
29893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29894 | ||
29895 | ac_cv_func_pthread_cancel=no | |
29896 | fi | |
29897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29898 | fi | |
29899 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29900 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29901 | if test $ac_cv_func_pthread_cancel = yes; then | |
29902 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29903 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29904 | _ACEOF |
4f14bcd8 | 29905 | |
698dcdb6 | 29906 | else |
e6cc62c6 VS |
29907 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29908 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29909 | fi |
29910 | ||
5c6fa7d2 | 29911 | |
e6cc62c6 VS |
29912 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29913 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29914 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29916 | else |
e6cc62c6 VS |
29917 | |
29918 | cat >conftest.$ac_ext <<_ACEOF | |
29919 | #line $LINENO "configure" | |
29920 | /* confdefs.h. */ | |
29921 | _ACEOF | |
29922 | cat confdefs.h >>conftest.$ac_ext | |
29923 | cat >>conftest.$ac_ext <<_ACEOF | |
29924 | /* end confdefs.h. */ | |
4f14bcd8 | 29925 | #include <pthread.h> |
e6cc62c6 VS |
29926 | int |
29927 | main () | |
29928 | { | |
4f14bcd8 | 29929 | |
7274f1c7 RL |
29930 | pthread_cleanup_push(NULL, NULL); |
29931 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29932 | |
29933 | ; | |
29934 | return 0; | |
29935 | } | |
29936 | _ACEOF | |
29937 | rm -f conftest.$ac_objext | |
29938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29939 | (eval $ac_compile) 2>&5 | |
29940 | ac_status=$? | |
29941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29942 | (exit $ac_status); } && | |
29943 | { ac_try='test -s conftest.$ac_objext' | |
29944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29945 | (eval $ac_try) 2>&5 | |
29946 | ac_status=$? | |
29947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29948 | (exit $ac_status); }; }; then | |
29949 | ||
7274f1c7 | 29950 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29951 | |
4f14bcd8 | 29952 | else |
e6cc62c6 VS |
29953 | echo "$as_me: failed program was:" >&5 |
29954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29955 | ||
29956 | ||
7274f1c7 | 29957 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29958 | |
247f5006 | 29959 | fi |
e6cc62c6 | 29960 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29961 | |
e6cc62c6 VS |
29962 | fi |
29963 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29964 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29965 | |
7274f1c7 | 29966 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29967 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29968 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29969 | _ACEOF |
c7a2bf27 | 29970 | |
7274f1c7 | 29971 | fi |
4f14bcd8 | 29972 | |
e6cc62c6 VS |
29973 | |
29974 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29975 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29976 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29978 | else |
e6cc62c6 VS |
29979 | |
29980 | cat >conftest.$ac_ext <<_ACEOF | |
29981 | #line $LINENO "configure" | |
29982 | /* confdefs.h. */ | |
29983 | _ACEOF | |
29984 | cat confdefs.h >>conftest.$ac_ext | |
29985 | cat >>conftest.$ac_ext <<_ACEOF | |
29986 | /* end confdefs.h. */ | |
4f14bcd8 | 29987 | #include <pthread.h> |
e6cc62c6 VS |
29988 | int |
29989 | main () | |
29990 | { | |
4f14bcd8 | 29991 | |
7274f1c7 RL |
29992 | pthread_mutexattr_t attr; |
29993 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29994 | |
29995 | ; | |
29996 | return 0; | |
29997 | } | |
29998 | _ACEOF | |
29999 | rm -f conftest.$ac_objext | |
30000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30001 | (eval $ac_compile) 2>&5 | |
30002 | ac_status=$? | |
30003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30004 | (exit $ac_status); } && | |
30005 | { ac_try='test -s conftest.$ac_objext' | |
30006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30007 | (eval $ac_try) 2>&5 | |
30008 | ac_status=$? | |
30009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30010 | (exit $ac_status); }; }; then | |
30011 | ||
7274f1c7 | 30012 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 30013 | |
3fed1840 | 30014 | else |
e6cc62c6 VS |
30015 | echo "$as_me: failed program was:" >&5 |
30016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30017 | ||
30018 | ||
7274f1c7 | 30019 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
30020 | |
30021 | ||
247f5006 | 30022 | fi |
e6cc62c6 | 30023 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30024 | |
e6cc62c6 VS |
30025 | fi |
30026 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
30027 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 30028 | |
7274f1c7 | 30029 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 30030 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30031 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 30032 | _ACEOF |
4f14bcd8 | 30033 | |
7274f1c7 | 30034 | else |
e6cc62c6 VS |
30035 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
30036 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
30037 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
30038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30039 | else | |
30040 | ||
30041 | cat >conftest.$ac_ext <<_ACEOF | |
30042 | #line $LINENO "configure" | |
30043 | /* confdefs.h. */ | |
30044 | _ACEOF | |
30045 | cat confdefs.h >>conftest.$ac_ext | |
30046 | cat >>conftest.$ac_ext <<_ACEOF | |
30047 | /* end confdefs.h. */ | |
4f14bcd8 | 30048 | #include <pthread.h> |
e6cc62c6 VS |
30049 | int |
30050 | main () | |
30051 | { | |
4f14bcd8 | 30052 | |
7274f1c7 | 30053 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
30054 | |
30055 | ; | |
30056 | return 0; | |
30057 | } | |
30058 | _ACEOF | |
30059 | rm -f conftest.$ac_objext | |
30060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30061 | (eval $ac_compile) 2>&5 | |
30062 | ac_status=$? | |
30063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30064 | (exit $ac_status); } && | |
30065 | { ac_try='test -s conftest.$ac_objext' | |
30066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30067 | (eval $ac_try) 2>&5 | |
30068 | ac_status=$? | |
30069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30070 | (exit $ac_status); }; }; then | |
30071 | ||
7274f1c7 | 30072 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 30073 | |
698dcdb6 | 30074 | else |
e6cc62c6 VS |
30075 | echo "$as_me: failed program was:" >&5 |
30076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30077 | ||
30078 | ||
7274f1c7 | 30079 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
30080 | |
30081 | ||
247f5006 | 30082 | fi |
e6cc62c6 | 30083 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30084 | |
e6cc62c6 VS |
30085 | fi |
30086 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
30087 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 30088 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 30089 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30090 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 30091 | _ACEOF |
3fed1840 | 30092 | |
7274f1c7 | 30093 | else |
e6cc62c6 VS |
30094 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
30095 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
30096 | fi |
30097 | fi | |
7274f1c7 | 30098 | fi |
3fed1840 | 30099 | |
a0b9e27f MB |
30100 | else |
30101 | if test "$wxUSE_THREADS" = "yes" ; then | |
30102 | case "${host}" in | |
30103 | *-*-mingw32* ) | |
e6cc62c6 VS |
30104 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
30105 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
30106 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
30107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 30108 | else |
e6cc62c6 | 30109 | |
ca8e52b3 VZ |
30110 | CFLAGS_OLD="$CFLAGS" |
30111 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
30112 | cat >conftest.$ac_ext <<_ACEOF |
30113 | #line $LINENO "configure" | |
30114 | /* confdefs.h. */ | |
30115 | _ACEOF | |
30116 | cat confdefs.h >>conftest.$ac_ext | |
30117 | cat >>conftest.$ac_ext <<_ACEOF | |
30118 | /* end confdefs.h. */ | |
30119 | ||
30120 | int | |
30121 | main () | |
30122 | { | |
ca8e52b3 | 30123 | |
e6cc62c6 VS |
30124 | ; |
30125 | return 0; | |
30126 | } | |
30127 | _ACEOF | |
30128 | rm -f conftest.$ac_objext | |
30129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30130 | (eval $ac_compile) 2>&5 | |
30131 | ac_status=$? | |
30132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30133 | (exit $ac_status); } && | |
30134 | { ac_try='test -s conftest.$ac_objext' | |
30135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30136 | (eval $ac_try) 2>&5 | |
30137 | ac_status=$? | |
30138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30139 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
30140 | wx_cv_cflags_mthread=yes |
30141 | else | |
e6cc62c6 VS |
30142 | echo "$as_me: failed program was:" >&5 |
30143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30144 | ||
30145 | wx_cv_cflags_mthread=no | |
30146 | ||
ca8e52b3 | 30147 | fi |
e6cc62c6 VS |
30148 | rm -f conftest.$ac_objext conftest.$ac_ext |
30149 | ||
ca8e52b3 | 30150 | |
e6cc62c6 VS |
30151 | fi |
30152 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
30153 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
30154 | |
30155 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
30156 | CXXFLAGS="$CXXFLAGS -mthreads" | |
30157 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
30158 | LDFLAGS="$LDFLAGS -mthreads" | |
30159 | else | |
30160 | CFLAGS="$CFLAGS_OLD" | |
30161 | fi | |
a0b9e27f MB |
30162 | ;; |
30163 | esac | |
30164 | fi | |
4f14bcd8 GD |
30165 | fi |
30166 | ||
30167 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 30168 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30169 | #define wxUSE_THREADS 1 |
e6cc62c6 | 30170 | _ACEOF |
7b6058cd | 30171 | |
8284b0c5 | 30172 | |
4f14bcd8 | 30173 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 30174 | else |
4f14bcd8 | 30175 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
30176 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
30177 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
30178 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
30179 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
30180 | echo "$as_me:$LINENO: result: yes" >&5 |
30181 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 30182 | else |
e6cc62c6 VS |
30183 | echo "$as_me:$LINENO: result: no" >&5 |
30184 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
30185 | fi |
30186 | fi | |
30187 | fi | |
30188 | ||
30189 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 30190 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30191 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 30192 | _ACEOF |
4f14bcd8 GD |
30193 | |
30194 | WXGTK12=1 | |
10f2d63a | 30195 | fi |
4f14bcd8 GD |
30196 | |
30197 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 30198 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30199 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 30200 | _ACEOF |
4f14bcd8 | 30201 | |
10f2d63a | 30202 | fi |
698dcdb6 | 30203 | |
4f14bcd8 | 30204 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 30205 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30206 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 30207 | _ACEOF |
4f14bcd8 | 30208 | |
698dcdb6 | 30209 | fi |
10f2d63a | 30210 | |
4f14bcd8 GD |
30211 | WXDEBUG= |
30212 | ||
30213 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
30214 | WXDEBUG="-g" | |
30215 | wxUSE_OPTIMISE=no | |
698dcdb6 | 30216 | fi |
4f14bcd8 GD |
30217 | |
30218 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
30219 | wxUSE_DEBUG_INFO=yes | |
30220 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
30221 | fi |
30222 | ||
4f14bcd8 | 30223 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 30224 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30225 | #define WXDEBUG 1 |
e6cc62c6 | 30226 | _ACEOF |
4f14bcd8 GD |
30227 | |
30228 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 30229 | else |
4f14bcd8 GD |
30230 | if test "$wxUSE_GTK" = 1 ; then |
30231 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
30232 | fi | |
30233 | fi | |
30234 | ||
30235 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30236 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30237 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30238 | _ACEOF |
4f14bcd8 | 30239 | |
e6cc62c6 | 30240 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30241 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30242 | _ACEOF |
4f14bcd8 | 30243 | |
e6cc62c6 | 30244 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30245 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30246 | _ACEOF |
4f14bcd8 GD |
30247 | |
30248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30249 | fi | |
30250 | ||
30251 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30252 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30253 | fi |
30254 | ||
30255 | PROFILE= | |
30256 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30257 | PROFILE=" -pg" |
10f2d63a VZ |
30258 | fi |
30259 | ||
009fead0 VZ |
30260 | CODE_GEN_FLAGS= |
30261 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30262 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30263 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30264 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30265 | fi |
4f14bcd8 GD |
30266 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30267 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30268 | fi | |
30269 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30270 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30271 | fi | |
1d1b75ac | 30272 | |
2b5f62a0 | 30273 | case "${host}" in |
1d1b75ac VZ |
30274 | powerpc*-*-aix* ) |
30275 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30276 | ;; | |
2b5f62a0 VZ |
30277 | *-hppa* ) |
30278 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30279 | ;; | |
1d1b75ac | 30280 | esac |
4f14bcd8 GD |
30281 | fi |
30282 | ||
af7b5345 | 30283 | OPTIMISE= |
4f14bcd8 | 30284 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30285 | if test "$GCC" = yes ; then |
30286 | OPTIMISE="-O0" | |
30287 | fi | |
4f14bcd8 GD |
30288 | else |
30289 | if test "$GCC" = yes ; then | |
30290 | OPTIMISE="-O2" | |
af7b5345 VZ |
30291 | |
30292 | case "${host}" in | |
4f14bcd8 GD |
30293 | i586-*-*|i686-*-* ) |
30294 | OPTIMISE="${OPTIMISE} " | |
30295 | ;; | |
30296 | esac | |
30297 | else | |
30298 | OPTIMISE="-O" | |
30299 | fi | |
30300 | fi | |
30301 | ||
8d90d2f2 | 30302 | |
4f14bcd8 | 30303 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
e6cc62c6 | 30304 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30305 | #define WXWIN_COMPATIBILITY_2 1 |
e6cc62c6 | 30306 | _ACEOF |
4f14bcd8 | 30307 | |
8284b0c5 | 30308 | |
4f14bcd8 GD |
30309 | WXWIN_COMPATIBILITY_2_2="yes" |
30310 | fi | |
30311 | ||
65d8ef1e | 30312 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30313 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30314 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30315 | _ACEOF |
4f14bcd8 | 30316 | |
8d90d2f2 VZ |
30317 | |
30318 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30319 | fi |
30320 | ||
65d8ef1e | 30321 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30322 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30323 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30324 | _ACEOF |
65d8ef1e VS |
30325 | |
30326 | fi | |
30327 | ||
8284b0c5 | 30328 | |
10f2d63a | 30329 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30330 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30331 | #define wxUSE_GUI 1 |
e6cc62c6 | 30332 | _ACEOF |
10f2d63a | 30333 | |
8284b0c5 | 30334 | |
10f2d63a | 30335 | else |
e6cc62c6 | 30336 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30337 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30338 | _ACEOF |
10f2d63a VZ |
30339 | |
30340 | fi | |
30341 | ||
8284b0c5 | 30342 | |
10f2d63a | 30343 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30344 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30345 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30346 | _ACEOF |
10f2d63a VZ |
30347 | |
30348 | fi | |
30349 | ||
8284b0c5 | 30350 | |
df5168c4 MB |
30351 | if test "$wxUSE_STL" = "yes"; then |
30352 | cat >>confdefs.h <<\_ACEOF | |
30353 | #define wxUSE_STL 1 | |
30354 | _ACEOF | |
30355 | ||
30356 | fi | |
30357 | ||
10f2d63a | 30358 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30359 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30360 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30361 | _ACEOF |
10f2d63a VZ |
30362 | |
30363 | fi | |
30364 | ||
1e6feb95 | 30365 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30366 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30367 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30368 | _ACEOF |
1e6feb95 VZ |
30369 | |
30370 | fi | |
30371 | ||
10f2d63a | 30372 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30373 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30374 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30375 | _ACEOF |
10f2d63a VZ |
30376 | |
30377 | fi | |
30378 | ||
1e6feb95 | 30379 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30380 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30381 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30382 | _ACEOF |
1e6feb95 VZ |
30383 | |
30384 | fi | |
30385 | ||
30386 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30387 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30388 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30389 | _ACEOF |
1e6feb95 VZ |
30390 | |
30391 | fi | |
30392 | ||
30393 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30394 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30395 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30396 | _ACEOF |
1e6feb95 VZ |
30397 | |
30398 | fi | |
30399 | ||
10f2d63a | 30400 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30401 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30402 | #define wxUSE_FILE 1 |
e6cc62c6 | 30403 | _ACEOF |
10f2d63a VZ |
30404 | |
30405 | fi | |
30406 | ||
1e6feb95 | 30407 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30408 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30409 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30410 | _ACEOF |
1e6feb95 VZ |
30411 | |
30412 | fi | |
30413 | ||
24528b0c | 30414 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30415 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30416 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30417 | _ACEOF |
24528b0c VS |
30418 | |
30419 | fi | |
30420 | ||
10f2d63a | 30421 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30422 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30423 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30424 | _ACEOF |
10f2d63a VZ |
30425 | |
30426 | fi | |
30427 | ||
30428 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30429 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30430 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30431 | _ACEOF |
10f2d63a VZ |
30432 | |
30433 | fi | |
30434 | ||
eb4efbdc | 30435 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30436 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30437 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30438 | _ACEOF |
eb4efbdc VZ |
30439 | |
30440 | fi | |
30441 | ||
4f3c5f06 | 30442 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30443 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30444 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30445 | _ACEOF |
4f3c5f06 VZ |
30446 | |
30447 | fi | |
30448 | ||
10f2d63a | 30449 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30450 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30451 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30452 | _ACEOF |
10f2d63a VZ |
30453 | |
30454 | fi | |
30455 | ||
30456 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30457 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30458 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30459 | _ACEOF |
10f2d63a VZ |
30460 | |
30461 | fi | |
30462 | ||
a3a584a7 | 30463 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30464 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30465 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30466 | _ACEOF |
a3a584a7 VZ |
30467 | |
30468 | fi | |
30469 | ||
10f2d63a | 30470 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30471 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30472 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30473 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30474 | else |
e6cc62c6 | 30475 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30476 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30477 | _ACEOF |
10f2d63a VZ |
30478 | |
30479 | fi | |
30480 | fi | |
30481 | ||
30482 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30483 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30484 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30485 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30486 | else |
e6cc62c6 | 30487 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30488 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30489 | _ACEOF |
10f2d63a VZ |
30490 | |
30491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30492 | fi | |
30493 | fi | |
30494 | ||
30495 | if test "$wxUSE_INTL" = "yes" ; then | |
30496 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30497 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30498 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30499 | else |
e6cc62c6 | 30500 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30501 | #define wxUSE_INTL 1 |
e6cc62c6 | 30502 | _ACEOF |
10f2d63a VZ |
30503 | |
30504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30505 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30506 | fi |
30507 | fi | |
30508 | ||
30509 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30510 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30511 | #define wxUSE_LOG 1 |
e6cc62c6 | 30512 | _ACEOF |
10f2d63a | 30513 | |
8284b0c5 | 30514 | |
d73be714 | 30515 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30516 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30517 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30518 | _ACEOF |
d73be714 VZ |
30519 | |
30520 | fi | |
30521 | ||
30522 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30523 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30524 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30525 | _ACEOF |
69d27ff7 MB |
30526 | |
30527 | fi | |
30528 | ||
30529 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30530 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30531 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30532 | _ACEOF |
d73be714 VZ |
30533 | |
30534 | fi | |
10f2d63a VZ |
30535 | fi |
30536 | ||
30537 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30538 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30539 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30540 | _ACEOF |
10f2d63a VZ |
30541 | |
30542 | fi | |
30543 | ||
e8f65ba6 | 30544 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30545 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30546 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30547 | _ACEOF |
e8f65ba6 RR |
30548 | |
30549 | fi | |
30550 | ||
10f2d63a | 30551 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30552 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30553 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30554 | _ACEOF |
10f2d63a | 30555 | |
70f7a477 | 30556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30557 | fi |
30558 | ||
30559 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30560 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30561 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30562 | _ACEOF |
10f2d63a VZ |
30563 | |
30564 | fi | |
30565 | ||
5c6fa7d2 | 30566 | |
8284b0c5 | 30567 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30568 | |
30569 | for ac_func in strptime | |
83307f33 | 30570 | do |
e6cc62c6 VS |
30571 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30572 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30573 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30574 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30576 | else | |
30577 | cat >conftest.$ac_ext <<_ACEOF | |
30578 | #line $LINENO "configure" | |
30579 | /* confdefs.h. */ | |
30580 | _ACEOF | |
30581 | cat confdefs.h >>conftest.$ac_ext | |
30582 | cat >>conftest.$ac_ext <<_ACEOF | |
30583 | /* end confdefs.h. */ | |
83307f33 | 30584 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30585 | which can conflict with char $ac_func (); below. |
30586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30587 | <limits.h> exists even on freestanding compilers. */ | |
30588 | #ifdef __STDC__ | |
30589 | # include <limits.h> | |
30590 | #else | |
30591 | # include <assert.h> | |
30592 | #endif | |
83307f33 | 30593 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30594 | #ifdef __cplusplus |
30595 | extern "C" | |
30596 | { | |
30597 | #endif | |
83307f33 | 30598 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30599 | builtin and then its argument prototype would still apply. */ |
30600 | char $ac_func (); | |
83307f33 VZ |
30601 | /* The GNU C library defines this for functions which it implements |
30602 | to always fail with ENOSYS. Some functions are actually named | |
30603 | something starting with __ and the normal name is an alias. */ | |
30604 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30605 | choke me | |
30606 | #else | |
e6cc62c6 VS |
30607 | char (*f) () = $ac_func; |
30608 | #endif | |
30609 | #ifdef __cplusplus | |
30610 | } | |
83307f33 VZ |
30611 | #endif |
30612 | ||
e6cc62c6 VS |
30613 | int |
30614 | main () | |
30615 | { | |
30616 | return f != $ac_func; | |
30617 | ; | |
30618 | return 0; | |
30619 | } | |
30620 | _ACEOF | |
30621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30623 | (eval $ac_link) 2>&5 | |
30624 | ac_status=$? | |
30625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30626 | (exit $ac_status); } && | |
30627 | { ac_try='test -s conftest$ac_exeext' | |
30628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30629 | (eval $ac_try) 2>&5 | |
30630 | ac_status=$? | |
30631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30632 | (exit $ac_status); }; }; then | |
30633 | eval "$as_ac_var=yes" | |
30634 | else | |
30635 | echo "$as_me: failed program was:" >&5 | |
30636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30637 | ||
30638 | eval "$as_ac_var=no" | |
30639 | fi | |
30640 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30641 | fi | |
30642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30644 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30645 | cat >>confdefs.h <<_ACEOF | |
30646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30647 | _ACEOF | |
83307f33 | 30648 | |
83307f33 VZ |
30649 | fi |
30650 | done | |
30651 | ||
5c6fa7d2 | 30652 | |
e6cc62c6 VS |
30653 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30654 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30655 | if test "${wx_cv_var_timezone+set}" = set; then | |
30656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30657 | else |
e6cc62c6 VS |
30658 | |
30659 | cat >conftest.$ac_ext <<_ACEOF | |
30660 | #line $LINENO "configure" | |
30661 | /* confdefs.h. */ | |
30662 | _ACEOF | |
30663 | cat confdefs.h >>conftest.$ac_ext | |
30664 | cat >>conftest.$ac_ext <<_ACEOF | |
30665 | /* end confdefs.h. */ | |
360d6699 | 30666 | |
b4085ce6 | 30667 | #include <time.h> |
e6cc62c6 VS |
30668 | |
30669 | int | |
30670 | main () | |
30671 | { | |
360d6699 VZ |
30672 | |
30673 | int tz; | |
4f11a343 | 30674 | tz = timezone; |
e6cc62c6 VS |
30675 | |
30676 | ; | |
30677 | return 0; | |
30678 | } | |
30679 | _ACEOF | |
30680 | rm -f conftest.$ac_objext | |
30681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30682 | (eval $ac_compile) 2>&5 | |
30683 | ac_status=$? | |
30684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30685 | (exit $ac_status); } && | |
30686 | { ac_try='test -s conftest.$ac_objext' | |
30687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30688 | (eval $ac_try) 2>&5 | |
30689 | ac_status=$? | |
30690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30691 | (exit $ac_status); }; }; then | |
30692 | ||
4f11a343 | 30693 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30694 | |
360d6699 | 30695 | else |
e6cc62c6 VS |
30696 | echo "$as_me: failed program was:" >&5 |
30697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30698 | ||
30699 | ||
30700 | cat >conftest.$ac_ext <<_ACEOF | |
30701 | #line $LINENO "configure" | |
30702 | /* confdefs.h. */ | |
30703 | _ACEOF | |
30704 | cat confdefs.h >>conftest.$ac_ext | |
30705 | cat >>conftest.$ac_ext <<_ACEOF | |
30706 | /* end confdefs.h. */ | |
360d6699 | 30707 | |
b4085ce6 | 30708 | #include <time.h> |
e6cc62c6 VS |
30709 | |
30710 | int | |
30711 | main () | |
30712 | { | |
360d6699 VZ |
30713 | |
30714 | int tz; | |
30715 | tz = _timezone; | |
e6cc62c6 VS |
30716 | |
30717 | ; | |
30718 | return 0; | |
30719 | } | |
30720 | _ACEOF | |
30721 | rm -f conftest.$ac_objext | |
30722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30723 | (eval $ac_compile) 2>&5 | |
30724 | ac_status=$? | |
30725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30726 | (exit $ac_status); } && | |
30727 | { ac_try='test -s conftest.$ac_objext' | |
30728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30729 | (eval $ac_try) 2>&5 | |
30730 | ac_status=$? | |
30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30732 | (exit $ac_status); }; }; then | |
30733 | ||
360d6699 | 30734 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30735 | |
5357c8e8 | 30736 | else |
e6cc62c6 VS |
30737 | echo "$as_me: failed program was:" >&5 |
30738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30739 | ||
30740 | ||
30741 | cat >conftest.$ac_ext <<_ACEOF | |
30742 | #line $LINENO "configure" | |
30743 | /* confdefs.h. */ | |
30744 | _ACEOF | |
30745 | cat confdefs.h >>conftest.$ac_ext | |
30746 | cat >>conftest.$ac_ext <<_ACEOF | |
30747 | /* end confdefs.h. */ | |
5357c8e8 | 30748 | |
b4085ce6 | 30749 | #include <time.h> |
e6cc62c6 VS |
30750 | |
30751 | int | |
30752 | main () | |
30753 | { | |
5357c8e8 VZ |
30754 | |
30755 | int tz; | |
4f11a343 | 30756 | tz = __timezone; |
e6cc62c6 VS |
30757 | |
30758 | ; | |
30759 | return 0; | |
30760 | } | |
30761 | _ACEOF | |
30762 | rm -f conftest.$ac_objext | |
30763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30764 | (eval $ac_compile) 2>&5 | |
30765 | ac_status=$? | |
30766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30767 | (exit $ac_status); } && | |
30768 | { ac_try='test -s conftest.$ac_objext' | |
30769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30770 | (eval $ac_try) 2>&5 | |
30771 | ac_status=$? | |
30772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30773 | (exit $ac_status); }; }; then | |
30774 | ||
4f11a343 | 30775 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30776 | |
360d6699 | 30777 | else |
e6cc62c6 VS |
30778 | echo "$as_me: failed program was:" >&5 |
30779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30780 | ||
30781 | ||
f9bc1684 | 30782 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30783 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30784 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30785 | fi |
e6cc62c6 VS |
30786 | |
30787 | ||
7b4a847f | 30788 | fi |
e6cc62c6 VS |
30789 | rm -f conftest.$ac_objext conftest.$ac_ext |
30790 | ||
30791 | ||
5c6fa7d2 | 30792 | fi |
e6cc62c6 VS |
30793 | rm -f conftest.$ac_objext conftest.$ac_ext |
30794 | ||
30795 | ||
247f5006 | 30796 | fi |
e6cc62c6 | 30797 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30798 | |
e6cc62c6 VS |
30799 | |
30800 | fi | |
30801 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30802 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30803 | |
f9bc1684 | 30804 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30805 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30806 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30807 | _ACEOF |
360d6699 | 30808 | |
f9bc1684 | 30809 | fi |
698dcdb6 | 30810 | |
e6cc62c6 VS |
30811 | |
30812 | for ac_func in localtime | |
afc31813 | 30813 | do |
e6cc62c6 VS |
30814 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30815 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30816 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30817 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30819 | else | |
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 | 30827 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30828 | which can conflict with char $ac_func (); below. |
30829 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30830 | <limits.h> exists even on freestanding compilers. */ | |
30831 | #ifdef __STDC__ | |
30832 | # include <limits.h> | |
30833 | #else | |
30834 | # include <assert.h> | |
30835 | #endif | |
afc31813 | 30836 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30837 | #ifdef __cplusplus |
30838 | extern "C" | |
30839 | { | |
30840 | #endif | |
afc31813 | 30841 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30842 | builtin and then its argument prototype would still apply. */ |
30843 | char $ac_func (); | |
afc31813 VZ |
30844 | /* The GNU C library defines this for functions which it implements |
30845 | to always fail with ENOSYS. Some functions are actually named | |
30846 | something starting with __ and the normal name is an alias. */ | |
30847 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30848 | choke me | |
30849 | #else | |
e6cc62c6 VS |
30850 | char (*f) () = $ac_func; |
30851 | #endif | |
30852 | #ifdef __cplusplus | |
30853 | } | |
afc31813 VZ |
30854 | #endif |
30855 | ||
e6cc62c6 VS |
30856 | int |
30857 | main () | |
30858 | { | |
30859 | return f != $ac_func; | |
30860 | ; | |
30861 | return 0; | |
30862 | } | |
30863 | _ACEOF | |
30864 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30866 | (eval $ac_link) 2>&5 | |
30867 | ac_status=$? | |
30868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30869 | (exit $ac_status); } && | |
30870 | { ac_try='test -s conftest$ac_exeext' | |
30871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30872 | (eval $ac_try) 2>&5 | |
30873 | ac_status=$? | |
30874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30875 | (exit $ac_status); }; }; then | |
30876 | eval "$as_ac_var=yes" | |
30877 | else | |
30878 | echo "$as_me: failed program was:" >&5 | |
30879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30880 | ||
30881 | eval "$as_ac_var=no" | |
30882 | fi | |
30883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30884 | fi | |
30885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30887 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30888 | cat >>confdefs.h <<_ACEOF | |
30889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30890 | _ACEOF | |
afc31813 | 30891 | |
afc31813 VZ |
30892 | fi |
30893 | done | |
30894 | ||
5c6fa7d2 | 30895 | |
8284b0c5 | 30896 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30897 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30898 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30899 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30901 | else |
e6cc62c6 VS |
30902 | |
30903 | cat >conftest.$ac_ext <<_ACEOF | |
30904 | #line $LINENO "configure" | |
30905 | /* confdefs.h. */ | |
30906 | _ACEOF | |
30907 | cat confdefs.h >>conftest.$ac_ext | |
30908 | cat >>conftest.$ac_ext <<_ACEOF | |
30909 | /* end confdefs.h. */ | |
0470b1e6 | 30910 | |
b4085ce6 | 30911 | #include <time.h> |
e6cc62c6 VS |
30912 | |
30913 | int | |
30914 | main () | |
30915 | { | |
0470b1e6 VZ |
30916 | |
30917 | struct tm tm; | |
30918 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30919 | |
30920 | ; | |
30921 | return 0; | |
30922 | } | |
30923 | _ACEOF | |
30924 | rm -f conftest.$ac_objext | |
30925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30926 | (eval $ac_compile) 2>&5 | |
30927 | ac_status=$? | |
30928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30929 | (exit $ac_status); } && | |
30930 | { ac_try='test -s conftest.$ac_objext' | |
30931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30932 | (eval $ac_try) 2>&5 | |
30933 | ac_status=$? | |
30934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30935 | (exit $ac_status); }; }; then | |
30936 | ||
f03a98d8 | 30937 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30938 | |
0470b1e6 | 30939 | else |
e6cc62c6 VS |
30940 | echo "$as_me: failed program was:" >&5 |
30941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30942 | ||
30943 | wx_cv_struct_tm_has_gmtoff=no | |
30944 | ||
247f5006 | 30945 | fi |
e6cc62c6 | 30946 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30947 | |
e6cc62c6 VS |
30948 | fi |
30949 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30950 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30951 | fi |
30952 | ||
30953 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30954 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30955 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30956 | _ACEOF |
0470b1e6 | 30957 | |
3fcdd07b VZ |
30958 | fi |
30959 | ||
e6cc62c6 VS |
30960 | |
30961 | ||
30962 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30963 | do |
e6cc62c6 VS |
30964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30969 | else | |
30970 | cat >conftest.$ac_ext <<_ACEOF | |
30971 | #line $LINENO "configure" | |
30972 | /* confdefs.h. */ | |
30973 | _ACEOF | |
30974 | cat confdefs.h >>conftest.$ac_ext | |
30975 | cat >>conftest.$ac_ext <<_ACEOF | |
30976 | /* end confdefs.h. */ | |
3fcdd07b | 30977 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30978 | which can conflict with char $ac_func (); below. |
30979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30980 | <limits.h> exists even on freestanding compilers. */ | |
30981 | #ifdef __STDC__ | |
30982 | # include <limits.h> | |
30983 | #else | |
30984 | # include <assert.h> | |
30985 | #endif | |
3fcdd07b | 30986 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30987 | #ifdef __cplusplus |
30988 | extern "C" | |
30989 | { | |
30990 | #endif | |
3fcdd07b | 30991 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30992 | builtin and then its argument prototype would still apply. */ |
30993 | char $ac_func (); | |
3fcdd07b VZ |
30994 | /* The GNU C library defines this for functions which it implements |
30995 | to always fail with ENOSYS. Some functions are actually named | |
30996 | something starting with __ and the normal name is an alias. */ | |
30997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30998 | choke me | |
30999 | #else | |
e6cc62c6 VS |
31000 | char (*f) () = $ac_func; |
31001 | #endif | |
31002 | #ifdef __cplusplus | |
31003 | } | |
3fcdd07b VZ |
31004 | #endif |
31005 | ||
e6cc62c6 VS |
31006 | int |
31007 | main () | |
31008 | { | |
31009 | return f != $ac_func; | |
31010 | ; | |
31011 | return 0; | |
31012 | } | |
31013 | _ACEOF | |
31014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31016 | (eval $ac_link) 2>&5 | |
31017 | ac_status=$? | |
31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31019 | (exit $ac_status); } && | |
31020 | { ac_try='test -s conftest$ac_exeext' | |
31021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31022 | (eval $ac_try) 2>&5 | |
31023 | ac_status=$? | |
31024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31025 | (exit $ac_status); }; }; then | |
31026 | eval "$as_ac_var=yes" | |
31027 | else | |
31028 | echo "$as_me: failed program was:" >&5 | |
31029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31030 | ||
31031 | eval "$as_ac_var=no" | |
31032 | fi | |
31033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31034 | fi | |
31035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31038 | cat >>confdefs.h <<_ACEOF | |
31039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31040 | _ACEOF | |
3fcdd07b | 31041 | break |
3fcdd07b VZ |
31042 | fi |
31043 | done | |
31044 | ||
698dcdb6 | 31045 | |
8284b0c5 | 31046 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
31047 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
31048 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
31049 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
31050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31051 | else | |
31052 | ||
31053 | ||
31054 | ||
31055 | ac_ext=cc | |
5c6fa7d2 | 31056 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
31057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 31060 | |
8284b0c5 | 31061 | |
e6cc62c6 VS |
31062 | cat >conftest.$ac_ext <<_ACEOF |
31063 | #line $LINENO "configure" | |
31064 | /* confdefs.h. */ | |
31065 | _ACEOF | |
31066 | cat confdefs.h >>conftest.$ac_ext | |
31067 | cat >>conftest.$ac_ext <<_ACEOF | |
31068 | /* end confdefs.h. */ | |
afc31813 VZ |
31069 | |
31070 | #include <sys/time.h> | |
31071 | #include <unistd.h> | |
e6cc62c6 VS |
31072 | |
31073 | int | |
31074 | main () | |
31075 | { | |
afc31813 VZ |
31076 | |
31077 | struct timeval tv; | |
776862b4 | 31078 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
31079 | |
31080 | ; | |
31081 | return 0; | |
31082 | } | |
31083 | _ACEOF | |
31084 | rm -f conftest.$ac_objext | |
31085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31086 | (eval $ac_compile) 2>&5 | |
31087 | ac_status=$? | |
31088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31089 | (exit $ac_status); } && | |
31090 | { ac_try='test -s conftest.$ac_objext' | |
31091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31092 | (eval $ac_try) 2>&5 | |
31093 | ac_status=$? | |
31094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31095 | (exit $ac_status); }; }; then | |
afc31813 | 31096 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 31097 | else |
e6cc62c6 VS |
31098 | echo "$as_me: failed program was:" >&5 |
31099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31100 | ||
31101 | cat >conftest.$ac_ext <<_ACEOF | |
31102 | #line $LINENO "configure" | |
31103 | /* confdefs.h. */ | |
31104 | _ACEOF | |
31105 | cat confdefs.h >>conftest.$ac_ext | |
31106 | cat >>conftest.$ac_ext <<_ACEOF | |
31107 | /* end confdefs.h. */ | |
afc31813 VZ |
31108 | |
31109 | #include <sys/time.h> | |
31110 | #include <unistd.h> | |
e6cc62c6 VS |
31111 | |
31112 | int | |
31113 | main () | |
31114 | { | |
afc31813 VZ |
31115 | |
31116 | struct timeval tv; | |
31117 | gettimeofday(&tv); | |
e6cc62c6 VS |
31118 | |
31119 | ; | |
31120 | return 0; | |
31121 | } | |
31122 | _ACEOF | |
31123 | rm -f conftest.$ac_objext | |
31124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31125 | (eval $ac_compile) 2>&5 | |
31126 | ac_status=$? | |
31127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31128 | (exit $ac_status); } && | |
31129 | { ac_try='test -s conftest.$ac_objext' | |
31130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31131 | (eval $ac_try) 2>&5 | |
31132 | ac_status=$? | |
31133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31134 | (exit $ac_status); }; }; then | |
afc31813 | 31135 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 31136 | else |
e6cc62c6 VS |
31137 | echo "$as_me: failed program was:" >&5 |
31138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31139 | ||
31140 | ||
31141 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
31142 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 31143 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
31144 | |
31145 | ||
10f2d63a | 31146 | fi |
e6cc62c6 VS |
31147 | rm -f conftest.$ac_objext conftest.$ac_ext |
31148 | ||
10f2d63a | 31149 | fi |
e6cc62c6 | 31150 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 31151 | ac_ext=c |
10f2d63a | 31152 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
31153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 31156 | |
a0b9e27f | 31157 | |
e6cc62c6 VS |
31158 | fi |
31159 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
31160 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 31161 | |
afc31813 | 31162 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 31163 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31164 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 31165 | _ACEOF |
afc31813 VZ |
31166 | |
31167 | fi | |
31168 | fi | |
31169 | ||
afc31813 VZ |
31170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
31171 | fi | |
31172 | ||
8284b0c5 | 31173 | |
52127426 | 31174 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 31175 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
31176 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
31177 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
31178 | wxUSE_SOCKETS="no" |
31179 | fi | |
3879ecda VZ |
31180 | if test "$wxUSE_COCOA" = "1"; then |
31181 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
31182 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
31183 | wxUSE_SOCKETS="no" | |
31184 | fi | |
0feee163 | 31185 | fi |
b089607b | 31186 | |
0feee163 VZ |
31187 | if test "$wxUSE_SOCKETS" = "yes"; then |
31188 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31189 | echo "$as_me:$LINENO: checking for socket" >&5 |
31190 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
31191 | if test "${ac_cv_func_socket+set}" = set; then | |
31192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31193 | else | |
31194 | cat >conftest.$ac_ext <<_ACEOF | |
31195 | #line $LINENO "configure" | |
31196 | /* confdefs.h. */ | |
31197 | _ACEOF | |
31198 | cat confdefs.h >>conftest.$ac_ext | |
31199 | cat >>conftest.$ac_ext <<_ACEOF | |
31200 | /* end confdefs.h. */ | |
c63c7106 | 31201 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31202 | which can conflict with char socket (); below. |
31203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31204 | <limits.h> exists even on freestanding compilers. */ | |
31205 | #ifdef __STDC__ | |
31206 | # include <limits.h> | |
31207 | #else | |
31208 | # include <assert.h> | |
31209 | #endif | |
c63c7106 | 31210 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31211 | #ifdef __cplusplus |
31212 | extern "C" | |
31213 | { | |
31214 | #endif | |
c63c7106 | 31215 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31216 | builtin and then its argument prototype would still apply. */ |
31217 | char socket (); | |
c63c7106 VZ |
31218 | /* The GNU C library defines this for functions which it implements |
31219 | to always fail with ENOSYS. Some functions are actually named | |
31220 | something starting with __ and the normal name is an alias. */ | |
31221 | #if defined (__stub_socket) || defined (__stub___socket) | |
31222 | choke me | |
31223 | #else | |
e6cc62c6 VS |
31224 | char (*f) () = socket; |
31225 | #endif | |
31226 | #ifdef __cplusplus | |
31227 | } | |
c63c7106 VZ |
31228 | #endif |
31229 | ||
e6cc62c6 VS |
31230 | int |
31231 | main () | |
31232 | { | |
31233 | return f != socket; | |
31234 | ; | |
31235 | return 0; | |
31236 | } | |
31237 | _ACEOF | |
31238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31240 | (eval $ac_link) 2>&5 | |
31241 | ac_status=$? | |
31242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31243 | (exit $ac_status); } && | |
31244 | { ac_try='test -s conftest$ac_exeext' | |
31245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31246 | (eval $ac_try) 2>&5 | |
31247 | ac_status=$? | |
31248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31249 | (exit $ac_status); }; }; then | |
31250 | ac_cv_func_socket=yes | |
31251 | else | |
31252 | echo "$as_me: failed program was:" >&5 | |
31253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31254 | ||
31255 | ac_cv_func_socket=no | |
31256 | fi | |
31257 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31258 | fi | |
31259 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31260 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31261 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31262 | : |
31263 | else | |
e6cc62c6 VS |
31264 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
31265 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
31266 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31268 | else |
e6cc62c6 | 31269 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31270 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
31271 | cat >conftest.$ac_ext <<_ACEOF |
31272 | #line $LINENO "configure" | |
31273 | /* confdefs.h. */ | |
31274 | _ACEOF | |
31275 | cat confdefs.h >>conftest.$ac_ext | |
31276 | cat >>conftest.$ac_ext <<_ACEOF | |
31277 | /* end confdefs.h. */ | |
31278 | ||
c63c7106 | 31279 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31280 | #ifdef __cplusplus |
31281 | extern "C" | |
31282 | #endif | |
c63c7106 | 31283 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31284 | builtin and then its argument prototype would still apply. */ |
31285 | char socket (); | |
31286 | int | |
31287 | main () | |
31288 | { | |
31289 | socket (); | |
31290 | ; | |
31291 | return 0; | |
31292 | } | |
31293 | _ACEOF | |
31294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31296 | (eval $ac_link) 2>&5 | |
31297 | ac_status=$? | |
31298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31299 | (exit $ac_status); } && | |
31300 | { ac_try='test -s conftest$ac_exeext' | |
31301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31302 | (eval $ac_try) 2>&5 | |
31303 | ac_status=$? | |
31304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31305 | (exit $ac_status); }; }; then | |
31306 | ac_cv_lib_socket_socket=yes | |
31307 | else | |
31308 | echo "$as_me: failed program was:" >&5 | |
31309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31310 | ||
31311 | ac_cv_lib_socket_socket=no | |
31312 | fi | |
31313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31314 | LIBS=$ac_check_lib_save_LIBS | |
31315 | fi | |
31316 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31317 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31318 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
31319 | if test "$INET_LINK" != " -lsocket"; then |
31320 | INET_LINK="$INET_LINK -lsocket" | |
31321 | fi | |
c63c7106 | 31322 | else |
afc31813 | 31323 | |
e6cc62c6 VS |
31324 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
31325 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 31326 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31327 | |
31328 | ||
6232543b | 31329 | fi |
b089607b | 31330 | |
e6cc62c6 | 31331 | |
1e487827 | 31332 | fi |
afc31813 | 31333 | |
3a922bb4 | 31334 | fi |
0feee163 | 31335 | fi |
51a9faba | 31336 | |
0feee163 VZ |
31337 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31338 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31339 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31340 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31341 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31343 | else |
e6cc62c6 VS |
31344 | |
31345 | cat >conftest.$ac_ext <<_ACEOF | |
31346 | #line $LINENO "configure" | |
31347 | /* confdefs.h. */ | |
31348 | _ACEOF | |
31349 | cat confdefs.h >>conftest.$ac_ext | |
31350 | cat >>conftest.$ac_ext <<_ACEOF | |
31351 | /* end confdefs.h. */ | |
51a9faba | 31352 | |
3a922bb4 RL |
31353 | #include <sys/types.h> |
31354 | #include <sys/socket.h> | |
e6cc62c6 VS |
31355 | |
31356 | int | |
31357 | main () | |
31358 | { | |
51a9faba | 31359 | |
3a922bb4 RL |
31360 | socklen_t len; |
31361 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31362 | |
31363 | ; | |
31364 | return 0; | |
31365 | } | |
31366 | _ACEOF | |
31367 | rm -f conftest.$ac_objext | |
31368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31369 | (eval $ac_compile) 2>&5 | |
31370 | ac_status=$? | |
31371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31372 | (exit $ac_status); } && | |
31373 | { ac_try='test -s conftest.$ac_objext' | |
31374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31375 | (eval $ac_try) 2>&5 | |
31376 | ac_status=$? | |
31377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31378 | (exit $ac_status); }; }; then | |
51a9faba | 31379 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31380 | else |
e6cc62c6 VS |
31381 | echo "$as_me: failed program was:" >&5 |
31382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31383 | ||
31384 | ||
9711d31e GD |
31385 | CFLAGS_OLD="$CFLAGS" |
31386 | if test "$GCC" = yes ; then | |
31387 | CFLAGS="$CFLAGS -Werror" | |
31388 | fi | |
31389 | ||
e6cc62c6 VS |
31390 | cat >conftest.$ac_ext <<_ACEOF |
31391 | #line $LINENO "configure" | |
31392 | /* confdefs.h. */ | |
31393 | _ACEOF | |
31394 | cat confdefs.h >>conftest.$ac_ext | |
31395 | cat >>conftest.$ac_ext <<_ACEOF | |
31396 | /* end confdefs.h. */ | |
51a9faba | 31397 | |
9711d31e GD |
31398 | #include <sys/types.h> |
31399 | #include <sys/socket.h> | |
e6cc62c6 VS |
31400 | |
31401 | int | |
31402 | main () | |
31403 | { | |
51a9faba | 31404 | |
9711d31e GD |
31405 | size_t len; |
31406 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31407 | |
31408 | ; | |
31409 | return 0; | |
31410 | } | |
31411 | _ACEOF | |
31412 | rm -f conftest.$ac_objext | |
31413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31414 | (eval $ac_compile) 2>&5 | |
31415 | ac_status=$? | |
31416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31417 | (exit $ac_status); } && | |
31418 | { ac_try='test -s conftest.$ac_objext' | |
31419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31420 | (eval $ac_try) 2>&5 | |
31421 | ac_status=$? | |
31422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31423 | (exit $ac_status); }; }; then | |
51a9faba | 31424 | wx_cv_type_getsockname3=size_t |
afc31813 | 31425 | else |
e6cc62c6 VS |
31426 | echo "$as_me: failed program was:" >&5 |
31427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31428 | ||
31429 | cat >conftest.$ac_ext <<_ACEOF | |
31430 | #line $LINENO "configure" | |
31431 | /* confdefs.h. */ | |
31432 | _ACEOF | |
31433 | cat confdefs.h >>conftest.$ac_ext | |
31434 | cat >>conftest.$ac_ext <<_ACEOF | |
31435 | /* end confdefs.h. */ | |
51a9faba | 31436 | |
9711d31e GD |
31437 | #include <sys/types.h> |
31438 | #include <sys/socket.h> | |
e6cc62c6 VS |
31439 | |
31440 | int | |
31441 | main () | |
31442 | { | |
51a9faba | 31443 | |
9711d31e GD |
31444 | int len; |
31445 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31446 | |
31447 | ; | |
31448 | return 0; | |
31449 | } | |
31450 | _ACEOF | |
31451 | rm -f conftest.$ac_objext | |
31452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31453 | (eval $ac_compile) 2>&5 | |
31454 | ac_status=$? | |
31455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31456 | (exit $ac_status); } && | |
31457 | { ac_try='test -s conftest.$ac_objext' | |
31458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31459 | (eval $ac_try) 2>&5 | |
31460 | ac_status=$? | |
31461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31462 | (exit $ac_status); }; }; then | |
51a9faba | 31463 | wx_cv_type_getsockname3=int |
afc31813 | 31464 | else |
e6cc62c6 VS |
31465 | echo "$as_me: failed program was:" >&5 |
31466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31467 | ||
31468 | wx_cv_type_getsockname3=unknown | |
31469 | ||
afc31813 | 31470 | fi |
e6cc62c6 VS |
31471 | rm -f conftest.$ac_objext conftest.$ac_ext |
31472 | ||
afc31813 | 31473 | fi |
e6cc62c6 | 31474 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31475 | |
31476 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31477 | |
31478 | ||
247f5006 | 31479 | fi |
e6cc62c6 | 31480 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31481 | |
e6cc62c6 VS |
31482 | fi |
31483 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31484 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31485 | |
3a922bb4 RL |
31486 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31487 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31488 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31489 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31490 | else |
e6cc62c6 | 31491 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31492 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31493 | _ACEOF |
51a9faba | 31494 | |
3a922bb4 | 31495 | fi |
51a9faba VZ |
31496 | fi |
31497 | fi | |
afc31813 | 31498 | |
51a9faba | 31499 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31500 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31501 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31502 | _ACEOF |
afc31813 | 31503 | |
70f7a477 | 31504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31505 | fi |
31506 | ||
3879ecda VZ |
31507 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31508 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31509 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31510 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31511 | wxUSE_PROTOCOL=no | |
31512 | fi | |
31513 | fi | |
31514 | ||
31515 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31516 | cat >>confdefs.h <<\_ACEOF | |
31517 | #define wxUSE_PROTOCOL 1 | |
31518 | _ACEOF | |
31519 | ||
31520 | ||
31521 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31522 | cat >>confdefs.h <<\_ACEOF | |
31523 | #define wxUSE_PROTOCOL_HTTP 1 | |
31524 | _ACEOF | |
31525 | ||
31526 | fi | |
31527 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31528 | cat >>confdefs.h <<\_ACEOF | |
31529 | #define wxUSE_PROTOCOL_FTP 1 | |
31530 | _ACEOF | |
31531 | ||
31532 | fi | |
31533 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31534 | cat >>confdefs.h <<\_ACEOF | |
31535 | #define wxUSE_PROTOCOL_FILE 1 | |
31536 | _ACEOF | |
31537 | ||
31538 | fi | |
31539 | else | |
31540 | if test "$wxUSE_FS_INET" = "yes"; then | |
31541 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31542 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31543 | wxUSE_FS_INET="no" | |
31544 | fi | |
31545 | fi | |
31546 | ||
31547 | if test "$wxUSE_URL" = "yes"; then | |
31548 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31549 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31550 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31551 | wxUSE_URL=no | |
31552 | fi | |
31553 | if test "$wxUSE_URL" = "yes"; then | |
31554 | cat >>confdefs.h <<\_ACEOF | |
31555 | #define wxUSE_URL 1 | |
31556 | _ACEOF | |
31557 | ||
31558 | fi | |
31559 | fi | |
31560 | ||
31561 | if test "$wxUSE_FS_INET" = "yes"; then | |
31562 | cat >>confdefs.h <<\_ACEOF | |
31563 | #define wxUSE_FS_INET 1 | |
31564 | _ACEOF | |
31565 | ||
31566 | fi | |
31567 | ||
8284b0c5 | 31568 | |
dc3d889d VZ |
31569 | if test "$wxUSE_GUI" = "yes"; then |
31570 | ||
ac0c4cc3 | 31571 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31572 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31573 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31574 | wxUSE_JOYSTICK=no |
156b2523 GD |
31575 | fi |
31576 | ||
131f235d | 31577 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31578 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31579 | |
31580 | for ac_header in linux/joystick.h | |
10f2d63a | 31581 | do |
e6cc62c6 VS |
31582 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31588 | fi | |
31589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31591 | else | |
31592 | # Is the header compilable? | |
31593 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31594 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31595 | cat >conftest.$ac_ext <<_ACEOF | |
31596 | #line $LINENO "configure" | |
31597 | /* confdefs.h. */ | |
31598 | _ACEOF | |
31599 | cat confdefs.h >>conftest.$ac_ext | |
31600 | cat >>conftest.$ac_ext <<_ACEOF | |
31601 | /* end confdefs.h. */ | |
31602 | $ac_includes_default | |
31603 | #include <$ac_header> | |
31604 | _ACEOF | |
31605 | rm -f conftest.$ac_objext | |
31606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31607 | (eval $ac_compile) 2>&5 | |
31608 | ac_status=$? | |
31609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31610 | (exit $ac_status); } && | |
31611 | { ac_try='test -s conftest.$ac_objext' | |
31612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31613 | (eval $ac_try) 2>&5 | |
31614 | ac_status=$? | |
31615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31616 | (exit $ac_status); }; }; then | |
31617 | ac_header_compiler=yes | |
31618 | else | |
31619 | echo "$as_me: failed program was:" >&5 | |
31620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31621 | ||
31622 | ac_header_compiler=no | |
31623 | fi | |
31624 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31626 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31627 | ||
31628 | # Is the header present? | |
31629 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31630 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31631 | cat >conftest.$ac_ext <<_ACEOF | |
31632 | #line $LINENO "configure" | |
31633 | /* confdefs.h. */ | |
31634 | _ACEOF | |
31635 | cat confdefs.h >>conftest.$ac_ext | |
31636 | cat >>conftest.$ac_ext <<_ACEOF | |
31637 | /* end confdefs.h. */ | |
31638 | #include <$ac_header> | |
31639 | _ACEOF | |
31640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31642 | ac_status=$? | |
31643 | grep -v '^ *+' conftest.er1 >conftest.err | |
31644 | rm -f conftest.er1 | |
31645 | cat conftest.err >&5 | |
31646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31647 | (exit $ac_status); } >/dev/null; then | |
31648 | if test -s conftest.err; then | |
31649 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31650 | else | |
31651 | ac_cpp_err= | |
31652 | fi | |
31653 | else | |
31654 | ac_cpp_err=yes | |
31655 | fi | |
31656 | if test -z "$ac_cpp_err"; then | |
31657 | ac_header_preproc=yes | |
31658 | else | |
31659 | echo "$as_me: failed program was:" >&5 | |
31660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31661 | ||
31662 | ac_header_preproc=no | |
31663 | fi | |
31664 | rm -f conftest.err conftest.$ac_ext | |
31665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31666 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31667 | ||
31668 | # So? What about this header? | |
31669 | case $ac_header_compiler:$ac_header_preproc in | |
31670 | yes:no ) | |
31671 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31672 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31674 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31675 | ( | |
31676 | cat <<\_ASBOX | |
31677 | ## ------------------------------------ ## | |
31678 | ## Report this to bug-autoconf@gnu.org. ## | |
31679 | ## ------------------------------------ ## | |
31680 | _ASBOX | |
31681 | ) | | |
31682 | sed "s/^/$as_me: WARNING: /" >&2 | |
31683 | ;; | |
31684 | no:yes ) | |
31685 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31686 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31687 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31688 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31689 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31690 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31691 | ( | |
31692 | cat <<\_ASBOX | |
31693 | ## ------------------------------------ ## | |
31694 | ## Report this to bug-autoconf@gnu.org. ## | |
31695 | ## ------------------------------------ ## | |
31696 | _ASBOX | |
31697 | ) | | |
31698 | sed "s/^/$as_me: WARNING: /" >&2 | |
31699 | ;; | |
31700 | esac | |
31701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31705 | else | |
31706 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31707 | fi |
e6cc62c6 VS |
31708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31710 | ||
10f2d63a | 31711 | fi |
e6cc62c6 VS |
31712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31713 | cat >>confdefs.h <<_ACEOF | |
31714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31715 | _ACEOF | |
31716 | ||
247f5006 | 31717 | fi |
e6cc62c6 | 31718 | |
10f2d63a VZ |
31719 | done |
31720 | ||
3a922bb4 RL |
31721 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31722 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31723 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31724 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31725 | fi |
31726 | fi | |
31727 | fi | |
b089607b | 31728 | |
3a922bb4 | 31729 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31730 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31731 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31732 | _ACEOF |
10f2d63a | 31733 | |
3a922bb4 RL |
31734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31735 | fi | |
dc3d889d VZ |
31736 | fi |
31737 | ||
8284b0c5 | 31738 | |
b089607b VZ |
31739 | if test "$TOOLKIT" != "MSW"; then |
31740 | ||
3a922bb4 RL |
31741 | HAVE_DL_FUNCS=0 |
31742 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31743 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31744 | if test "$USE_DARWIN" = 1; then |
31745 | HAVE_DL_FUNCS=1 | |
31746 | else | |
e6cc62c6 VS |
31747 | |
31748 | for ac_func in dlopen | |
10f2d63a | 31749 | do |
e6cc62c6 VS |
31750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31753 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31755 | else | |
31756 | cat >conftest.$ac_ext <<_ACEOF | |
31757 | #line $LINENO "configure" | |
31758 | /* confdefs.h. */ | |
31759 | _ACEOF | |
31760 | cat confdefs.h >>conftest.$ac_ext | |
31761 | cat >>conftest.$ac_ext <<_ACEOF | |
31762 | /* end confdefs.h. */ | |
10f2d63a | 31763 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31764 | which can conflict with char $ac_func (); below. |
31765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31766 | <limits.h> exists even on freestanding compilers. */ | |
31767 | #ifdef __STDC__ | |
31768 | # include <limits.h> | |
31769 | #else | |
31770 | # include <assert.h> | |
31771 | #endif | |
10f2d63a | 31772 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31773 | #ifdef __cplusplus |
31774 | extern "C" | |
31775 | { | |
31776 | #endif | |
10f2d63a | 31777 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31778 | builtin and then its argument prototype would still apply. */ |
31779 | char $ac_func (); | |
10f2d63a VZ |
31780 | /* The GNU C library defines this for functions which it implements |
31781 | to always fail with ENOSYS. Some functions are actually named | |
31782 | something starting with __ and the normal name is an alias. */ | |
31783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31784 | choke me | |
31785 | #else | |
e6cc62c6 VS |
31786 | char (*f) () = $ac_func; |
31787 | #endif | |
31788 | #ifdef __cplusplus | |
31789 | } | |
10f2d63a VZ |
31790 | #endif |
31791 | ||
e6cc62c6 VS |
31792 | int |
31793 | main () | |
31794 | { | |
31795 | return f != $ac_func; | |
31796 | ; | |
31797 | return 0; | |
31798 | } | |
31799 | _ACEOF | |
31800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31802 | (eval $ac_link) 2>&5 | |
31803 | ac_status=$? | |
31804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31805 | (exit $ac_status); } && | |
31806 | { ac_try='test -s conftest$ac_exeext' | |
31807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31808 | (eval $ac_try) 2>&5 | |
31809 | ac_status=$? | |
31810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31811 | (exit $ac_status); }; }; then | |
31812 | eval "$as_ac_var=yes" | |
31813 | else | |
31814 | echo "$as_me: failed program was:" >&5 | |
31815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31816 | ||
31817 | eval "$as_ac_var=no" | |
31818 | fi | |
31819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31820 | fi | |
31821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31822 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31824 | cat >>confdefs.h <<_ACEOF | |
31825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31826 | _ACEOF | |
31827 | ||
31828 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31829 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31830 | _ACEOF |
10f2d63a | 31831 | |
3a922bb4 | 31832 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31833 | |
10f2d63a | 31834 | else |
e6cc62c6 VS |
31835 | |
31836 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31837 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31838 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31840 | else |
e6cc62c6 | 31841 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31842 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31843 | cat >conftest.$ac_ext <<_ACEOF |
31844 | #line $LINENO "configure" | |
31845 | /* confdefs.h. */ | |
31846 | _ACEOF | |
31847 | cat confdefs.h >>conftest.$ac_ext | |
31848 | cat >>conftest.$ac_ext <<_ACEOF | |
31849 | /* end confdefs.h. */ | |
31850 | ||
10f2d63a | 31851 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31852 | #ifdef __cplusplus |
31853 | extern "C" | |
31854 | #endif | |
10f2d63a | 31855 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31856 | builtin and then its argument prototype would still apply. */ |
31857 | char dlopen (); | |
31858 | int | |
31859 | main () | |
31860 | { | |
31861 | dlopen (); | |
31862 | ; | |
31863 | return 0; | |
31864 | } | |
31865 | _ACEOF | |
31866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31868 | (eval $ac_link) 2>&5 | |
31869 | ac_status=$? | |
31870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31871 | (exit $ac_status); } && | |
31872 | { ac_try='test -s conftest$ac_exeext' | |
31873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31874 | (eval $ac_try) 2>&5 | |
31875 | ac_status=$? | |
31876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31877 | (exit $ac_status); }; }; then | |
31878 | ac_cv_lib_dl_dlopen=yes | |
31879 | else | |
31880 | echo "$as_me: failed program was:" >&5 | |
31881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31882 | ||
31883 | ac_cv_lib_dl_dlopen=no | |
31884 | fi | |
31885 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31886 | LIBS=$ac_check_lib_save_LIBS | |
31887 | fi | |
31888 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31889 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31890 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31891 | ||
31892 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31893 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31894 | _ACEOF |
10f2d63a | 31895 | |
3a922bb4 | 31896 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31897 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31898 | |
10f2d63a | 31899 | else |
10f2d63a | 31900 | |
e6cc62c6 VS |
31901 | |
31902 | for ac_func in shl_load | |
10f2d63a | 31903 | do |
e6cc62c6 VS |
31904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31905 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31907 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31909 | else | |
31910 | cat >conftest.$ac_ext <<_ACEOF | |
31911 | #line $LINENO "configure" | |
31912 | /* confdefs.h. */ | |
31913 | _ACEOF | |
31914 | cat confdefs.h >>conftest.$ac_ext | |
31915 | cat >>conftest.$ac_ext <<_ACEOF | |
31916 | /* end confdefs.h. */ | |
10f2d63a | 31917 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31918 | which can conflict with char $ac_func (); below. |
31919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31920 | <limits.h> exists even on freestanding compilers. */ | |
31921 | #ifdef __STDC__ | |
31922 | # include <limits.h> | |
31923 | #else | |
31924 | # include <assert.h> | |
31925 | #endif | |
10f2d63a | 31926 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31927 | #ifdef __cplusplus |
31928 | extern "C" | |
31929 | { | |
31930 | #endif | |
10f2d63a | 31931 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31932 | builtin and then its argument prototype would still apply. */ |
31933 | char $ac_func (); | |
10f2d63a VZ |
31934 | /* The GNU C library defines this for functions which it implements |
31935 | to always fail with ENOSYS. Some functions are actually named | |
31936 | something starting with __ and the normal name is an alias. */ | |
31937 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31938 | choke me | |
31939 | #else | |
e6cc62c6 VS |
31940 | char (*f) () = $ac_func; |
31941 | #endif | |
31942 | #ifdef __cplusplus | |
31943 | } | |
10f2d63a VZ |
31944 | #endif |
31945 | ||
e6cc62c6 VS |
31946 | int |
31947 | main () | |
31948 | { | |
31949 | return f != $ac_func; | |
31950 | ; | |
31951 | return 0; | |
31952 | } | |
31953 | _ACEOF | |
31954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31956 | (eval $ac_link) 2>&5 | |
31957 | ac_status=$? | |
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31959 | (exit $ac_status); } && | |
31960 | { ac_try='test -s conftest$ac_exeext' | |
31961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31962 | (eval $ac_try) 2>&5 | |
31963 | ac_status=$? | |
31964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31965 | (exit $ac_status); }; }; then | |
31966 | eval "$as_ac_var=yes" | |
31967 | else | |
31968 | echo "$as_me: failed program was:" >&5 | |
31969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31970 | ||
31971 | eval "$as_ac_var=no" | |
31972 | fi | |
31973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31974 | fi | |
31975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31976 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31977 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31978 | cat >>confdefs.h <<_ACEOF | |
31979 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31980 | _ACEOF | |
31981 | ||
31982 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31983 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31984 | _ACEOF |
10f2d63a | 31985 | |
3a922bb4 | 31986 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31987 | |
10f2d63a | 31988 | else |
e6cc62c6 VS |
31989 | |
31990 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31991 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31992 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31994 | else |
e6cc62c6 | 31995 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31996 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31997 | cat >conftest.$ac_ext <<_ACEOF |
31998 | #line $LINENO "configure" | |
31999 | /* confdefs.h. */ | |
32000 | _ACEOF | |
32001 | cat confdefs.h >>conftest.$ac_ext | |
32002 | cat >>conftest.$ac_ext <<_ACEOF | |
32003 | /* end confdefs.h. */ | |
32004 | ||
8284b0c5 | 32005 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32006 | #ifdef __cplusplus |
32007 | extern "C" | |
32008 | #endif | |
f6bcfd97 | 32009 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32010 | builtin and then its argument prototype would still apply. */ |
32011 | char dld (); | |
32012 | int | |
32013 | main () | |
32014 | { | |
32015 | dld (); | |
32016 | ; | |
32017 | return 0; | |
32018 | } | |
32019 | _ACEOF | |
32020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32022 | (eval $ac_link) 2>&5 | |
32023 | ac_status=$? | |
32024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32025 | (exit $ac_status); } && | |
32026 | { ac_try='test -s conftest$ac_exeext' | |
32027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32028 | (eval $ac_try) 2>&5 | |
32029 | ac_status=$? | |
32030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32031 | (exit $ac_status); }; }; then | |
32032 | ac_cv_lib_shl_load_dld=yes | |
32033 | else | |
32034 | echo "$as_me: failed program was:" >&5 | |
32035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32036 | ||
32037 | ac_cv_lib_shl_load_dld=no | |
32038 | fi | |
32039 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32040 | LIBS=$ac_check_lib_save_LIBS | |
32041 | fi | |
32042 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
32043 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
32044 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 32045 | |
3a922bb4 | 32046 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 32047 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 32048 | |
f6bcfd97 BP |
32049 | fi |
32050 | ||
e6cc62c6 | 32051 | |
10f2d63a VZ |
32052 | fi |
32053 | done | |
32054 | ||
e6cc62c6 | 32055 | |
10f2d63a VZ |
32056 | fi |
32057 | ||
e6cc62c6 | 32058 | |
10f2d63a VZ |
32059 | fi |
32060 | done | |
32061 | ||
5c6fa7d2 | 32062 | |
8284b0c5 | 32063 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
32064 | |
32065 | for ac_func in dlerror | |
f6bcfd97 | 32066 | do |
e6cc62c6 VS |
32067 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32068 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32069 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32070 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32072 | else | |
32073 | cat >conftest.$ac_ext <<_ACEOF | |
32074 | #line $LINENO "configure" | |
32075 | /* confdefs.h. */ | |
32076 | _ACEOF | |
32077 | cat confdefs.h >>conftest.$ac_ext | |
32078 | cat >>conftest.$ac_ext <<_ACEOF | |
32079 | /* end confdefs.h. */ | |
f6bcfd97 | 32080 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32081 | which can conflict with char $ac_func (); below. |
32082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32083 | <limits.h> exists even on freestanding compilers. */ | |
32084 | #ifdef __STDC__ | |
32085 | # include <limits.h> | |
32086 | #else | |
32087 | # include <assert.h> | |
32088 | #endif | |
f6bcfd97 | 32089 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32090 | #ifdef __cplusplus |
32091 | extern "C" | |
32092 | { | |
32093 | #endif | |
f6bcfd97 | 32094 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32095 | builtin and then its argument prototype would still apply. */ |
32096 | char $ac_func (); | |
f6bcfd97 BP |
32097 | /* The GNU C library defines this for functions which it implements |
32098 | to always fail with ENOSYS. Some functions are actually named | |
32099 | something starting with __ and the normal name is an alias. */ | |
32100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32101 | choke me | |
32102 | #else | |
e6cc62c6 VS |
32103 | char (*f) () = $ac_func; |
32104 | #endif | |
32105 | #ifdef __cplusplus | |
32106 | } | |
f6bcfd97 BP |
32107 | #endif |
32108 | ||
e6cc62c6 VS |
32109 | int |
32110 | main () | |
32111 | { | |
32112 | return f != $ac_func; | |
32113 | ; | |
32114 | return 0; | |
32115 | } | |
32116 | _ACEOF | |
32117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32119 | (eval $ac_link) 2>&5 | |
32120 | ac_status=$? | |
32121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32122 | (exit $ac_status); } && | |
32123 | { ac_try='test -s conftest$ac_exeext' | |
32124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32125 | (eval $ac_try) 2>&5 | |
32126 | ac_status=$? | |
32127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32128 | (exit $ac_status); }; }; then | |
32129 | eval "$as_ac_var=yes" | |
32130 | else | |
32131 | echo "$as_me: failed program was:" >&5 | |
32132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32133 | ||
32134 | eval "$as_ac_var=no" | |
32135 | fi | |
32136 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32137 | fi | |
32138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32139 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32140 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32141 | cat >>confdefs.h <<_ACEOF | |
32142 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32143 | _ACEOF | |
32144 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32145 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32146 | _ACEOF |
f6bcfd97 BP |
32147 | |
32148 | else | |
e6cc62c6 VS |
32149 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
32150 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
32151 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
32152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 32153 | else |
e6cc62c6 | 32154 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 32155 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
32156 | cat >conftest.$ac_ext <<_ACEOF |
32157 | #line $LINENO "configure" | |
32158 | /* confdefs.h. */ | |
32159 | _ACEOF | |
32160 | cat confdefs.h >>conftest.$ac_ext | |
32161 | cat >>conftest.$ac_ext <<_ACEOF | |
32162 | /* end confdefs.h. */ | |
32163 | ||
f6bcfd97 | 32164 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32165 | #ifdef __cplusplus |
32166 | extern "C" | |
32167 | #endif | |
f6bcfd97 | 32168 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32169 | builtin and then its argument prototype would still apply. */ |
32170 | char dlerror (); | |
32171 | int | |
32172 | main () | |
32173 | { | |
32174 | dlerror (); | |
32175 | ; | |
32176 | return 0; | |
32177 | } | |
32178 | _ACEOF | |
32179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32181 | (eval $ac_link) 2>&5 | |
32182 | ac_status=$? | |
32183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32184 | (exit $ac_status); } && | |
32185 | { ac_try='test -s conftest$ac_exeext' | |
32186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32187 | (eval $ac_try) 2>&5 | |
32188 | ac_status=$? | |
32189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32190 | (exit $ac_status); }; }; then | |
32191 | ac_cv_lib_dl_dlerror=yes | |
32192 | else | |
32193 | echo "$as_me: failed program was:" >&5 | |
32194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32195 | ||
32196 | ac_cv_lib_dl_dlerror=no | |
32197 | fi | |
32198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32199 | LIBS=$ac_check_lib_save_LIBS | |
32200 | fi | |
32201 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
32202 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
32203 | if test $ac_cv_lib_dl_dlerror = yes; then | |
32204 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32205 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32206 | _ACEOF |
f6bcfd97 | 32207 | |
f6bcfd97 BP |
32208 | fi |
32209 | ||
32210 | fi | |
32211 | done | |
32212 | ||
3a922bb4 RL |
32213 | fi |
32214 | fi | |
f6bcfd97 | 32215 | |
3a922bb4 RL |
32216 | if test "$HAVE_DL_FUNCS" = 0; then |
32217 | if test "$HAVE_SHL_FUNCS" = 0; then | |
32218 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
32219 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
32220 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 32221 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
32222 | wxUSE_DYNLIB_CLASS=no |
32223 | else | |
e6cc62c6 VS |
32224 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
32225 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
32226 | fi |
32227 | fi | |
10f2d63a VZ |
32228 | fi |
32229 | fi | |
32230 | fi | |
32231 | ||
0b9ab0bd | 32232 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 32233 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 32234 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 32235 | _ACEOF |
0b9ab0bd | 32236 | |
1948bb32 VS |
32237 | fi |
32238 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 32239 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32240 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 32241 | _ACEOF |
10f2d63a VZ |
32242 | |
32243 | fi | |
32244 | ||
8284b0c5 | 32245 | |
1e6feb95 | 32246 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 32247 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32248 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 32249 | _ACEOF |
1e6feb95 VZ |
32250 | |
32251 | fi | |
32252 | ||
10f2d63a | 32253 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 32254 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32255 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 32256 | _ACEOF |
10f2d63a | 32257 | |
8284b0c5 | 32258 | |
eb854003 | 32259 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
32260 | wxUSE_UNICODE_MSLU=no |
32261 | fi | |
a72a4bfa | 32262 | |
eb854003 | 32263 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
32264 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32265 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32266 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32268 | else |
e6cc62c6 | 32269 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32270 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
32271 | cat >conftest.$ac_ext <<_ACEOF |
32272 | #line $LINENO "configure" | |
32273 | /* confdefs.h. */ | |
32274 | _ACEOF | |
32275 | cat confdefs.h >>conftest.$ac_ext | |
32276 | cat >>conftest.$ac_ext <<_ACEOF | |
32277 | /* end confdefs.h. */ | |
a72a4bfa | 32278 | |
8284b0c5 | 32279 | |
e6cc62c6 VS |
32280 | int |
32281 | main () | |
32282 | { | |
32283 | main (); | |
32284 | ; | |
32285 | return 0; | |
32286 | } | |
32287 | _ACEOF | |
32288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32290 | (eval $ac_link) 2>&5 | |
32291 | ac_status=$? | |
32292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32293 | (exit $ac_status); } && | |
32294 | { ac_try='test -s conftest$ac_exeext' | |
32295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32296 | (eval $ac_try) 2>&5 | |
32297 | ac_status=$? | |
32298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32299 | (exit $ac_status); }; }; then | |
32300 | ac_cv_lib_unicows_main=yes | |
32301 | else | |
32302 | echo "$as_me: failed program was:" >&5 | |
32303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32304 | ||
32305 | ac_cv_lib_unicows_main=no | |
32306 | fi | |
32307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32308 | LIBS=$ac_check_lib_save_LIBS | |
32309 | fi | |
32310 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32311 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32312 | if test $ac_cv_lib_unicows_main = yes; then | |
32313 | ||
32314 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32315 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32316 | _ACEOF |
32317 | ||
a72a4bfa | 32318 | |
a72a4bfa | 32319 | else |
a72a4bfa | 32320 | |
e6cc62c6 VS |
32321 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32322 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32323 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32324 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32325 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32326 | |
a72a4bfa VS |
32327 | fi |
32328 | ||
32329 | fi | |
10f2d63a VZ |
32330 | fi |
32331 | ||
10f2d63a | 32332 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32333 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32334 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32335 | _ACEOF |
10f2d63a VZ |
32336 | |
32337 | fi | |
32338 | ||
8284b0c5 | 32339 | |
10f2d63a | 32340 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32341 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32342 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32343 | _ACEOF |
10f2d63a VZ |
32344 | |
32345 | fi | |
32346 | ||
e6cc62c6 | 32347 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32348 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32349 | _ACEOF |
10f2d63a | 32350 | |
8284b0c5 | 32351 | |
e6cc62c6 | 32352 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32353 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32354 | _ACEOF |
10f2d63a | 32355 | |
8284b0c5 MB |
32356 | |
32357 | ||
10f2d63a | 32358 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32359 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32360 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32361 | _ACEOF |
10f2d63a VZ |
32362 | |
32363 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32364 | fi | |
32365 | ||
3879ecda | 32366 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32367 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32368 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32369 | _ACEOF |
10f2d63a | 32370 | |
1772d20c | 32371 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32372 | fi |
32373 | ||
32374 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32375 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32376 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32377 | _ACEOF |
10f2d63a VZ |
32378 | |
32379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32380 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32382 | fi | |
32383 | fi | |
32384 | ||
32385 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32386 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32387 | #define wxUSE_HELP 1 |
e6cc62c6 | 32388 | _ACEOF |
10f2d63a VZ |
32389 | |
32390 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32391 | |
77e13408 | 32392 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32393 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32394 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32395 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32396 | _ACEOF |
29fd3c0c | 32397 | |
3e44f09d | 32398 | fi |
3379ed37 | 32399 | fi |
031d8228 VS |
32400 | |
32401 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32402 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32403 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32404 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32405 | _ACEOF |
031d8228 VS |
32406 | |
32407 | else | |
e6cc62c6 VS |
32408 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32409 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32410 | wxUSE_WXHTML_HELP=no |
32411 | fi | |
32412 | fi | |
10f2d63a VZ |
32413 | fi |
32414 | ||
32415 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32416 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32417 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32418 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32419 | else |
e6cc62c6 | 32420 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32421 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32422 | _ACEOF |
10f2d63a VZ |
32423 | |
32424 | fi | |
32425 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32426 | fi | |
32427 | ||
e6cc62c6 VS |
32428 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32429 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32430 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32431 | { (exit 1); exit 1; }; } | |
32432 | fi | |
32433 | ||
32434 | ||
32435 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32436 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32437 | -o "$wxUSE_OLE" = "yes" \ | |
32438 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32439 | ||
32440 | for ac_header in ole2.h | |
32441 | do | |
32442 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32444 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32445 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32446 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32448 | fi | |
32449 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32450 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32451 | else | |
32452 | # Is the header compilable? | |
32453 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32454 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32455 | cat >conftest.$ac_ext <<_ACEOF | |
32456 | #line $LINENO "configure" | |
32457 | /* confdefs.h. */ | |
32458 | _ACEOF | |
32459 | cat confdefs.h >>conftest.$ac_ext | |
32460 | cat >>conftest.$ac_ext <<_ACEOF | |
32461 | /* end confdefs.h. */ | |
32462 | $ac_includes_default | |
32463 | #include <$ac_header> | |
32464 | _ACEOF | |
32465 | rm -f conftest.$ac_objext | |
32466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32467 | (eval $ac_compile) 2>&5 | |
32468 | ac_status=$? | |
32469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32470 | (exit $ac_status); } && | |
32471 | { ac_try='test -s conftest.$ac_objext' | |
32472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32473 | (eval $ac_try) 2>&5 | |
32474 | ac_status=$? | |
32475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32476 | (exit $ac_status); }; }; then | |
32477 | ac_header_compiler=yes | |
32478 | else | |
32479 | echo "$as_me: failed program was:" >&5 | |
32480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32481 | ||
32482 | ac_header_compiler=no | |
32483 | fi | |
32484 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32486 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32487 | ||
32488 | # Is the header present? | |
32489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32491 | cat >conftest.$ac_ext <<_ACEOF | |
32492 | #line $LINENO "configure" | |
32493 | /* confdefs.h. */ | |
32494 | _ACEOF | |
32495 | cat confdefs.h >>conftest.$ac_ext | |
32496 | cat >>conftest.$ac_ext <<_ACEOF | |
32497 | /* end confdefs.h. */ | |
32498 | #include <$ac_header> | |
32499 | _ACEOF | |
32500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32502 | ac_status=$? | |
32503 | grep -v '^ *+' conftest.er1 >conftest.err | |
32504 | rm -f conftest.er1 | |
32505 | cat conftest.err >&5 | |
32506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32507 | (exit $ac_status); } >/dev/null; then | |
32508 | if test -s conftest.err; then | |
32509 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32510 | else | |
32511 | ac_cpp_err= | |
32512 | fi | |
32513 | else | |
32514 | ac_cpp_err=yes | |
32515 | fi | |
32516 | if test -z "$ac_cpp_err"; then | |
32517 | ac_header_preproc=yes | |
32518 | else | |
32519 | echo "$as_me: failed program was:" >&5 | |
32520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32521 | ||
32522 | ac_header_preproc=no | |
32523 | fi | |
32524 | rm -f conftest.err conftest.$ac_ext | |
32525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32526 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32527 | ||
32528 | # So? What about this header? | |
32529 | case $ac_header_compiler:$ac_header_preproc in | |
32530 | yes:no ) | |
32531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32534 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32535 | ( | |
32536 | cat <<\_ASBOX | |
32537 | ## ------------------------------------ ## | |
32538 | ## Report this to bug-autoconf@gnu.org. ## | |
32539 | ## ------------------------------------ ## | |
32540 | _ASBOX | |
32541 | ) | | |
32542 | sed "s/^/$as_me: WARNING: /" >&2 | |
32543 | ;; | |
32544 | no:yes ) | |
32545 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32546 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32547 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32548 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32550 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32551 | ( | |
32552 | cat <<\_ASBOX | |
32553 | ## ------------------------------------ ## | |
32554 | ## Report this to bug-autoconf@gnu.org. ## | |
32555 | ## ------------------------------------ ## | |
32556 | _ASBOX | |
32557 | ) | | |
32558 | sed "s/^/$as_me: WARNING: /" >&2 | |
32559 | ;; | |
32560 | esac | |
32561 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32562 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32565 | else | |
32566 | eval "$as_ac_Header=$ac_header_preproc" | |
32567 | fi | |
32568 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32569 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32570 | ||
10f2d63a | 32571 | fi |
e6cc62c6 VS |
32572 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32573 | cat >>confdefs.h <<_ACEOF | |
32574 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32575 | _ACEOF | |
10f2d63a | 32576 | |
10f2d63a | 32577 | fi |
e6cc62c6 | 32578 | |
10f2d63a VZ |
32579 | done |
32580 | ||
8284b0c5 | 32581 | |
2b9bdf71 VZ |
32582 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32583 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32584 | |
32585 | ||
e6cc62c6 VS |
32586 | ac_ext=cc |
32587 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32588 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32589 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32590 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32591 | ||
32592 | ||
32593 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32594 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32595 | cat >conftest.$ac_ext <<_ACEOF | |
32596 | #line $LINENO "configure" | |
32597 | /* confdefs.h. */ | |
32598 | _ACEOF | |
32599 | cat confdefs.h >>conftest.$ac_ext | |
32600 | cat >>conftest.$ac_ext <<_ACEOF | |
32601 | /* end confdefs.h. */ | |
8284b0c5 MB |
32602 | #include <windows.h> |
32603 | #include <ole2.h> | |
e6cc62c6 VS |
32604 | int |
32605 | main () | |
32606 | { | |
8284b0c5 | 32607 | |
e6cc62c6 VS |
32608 | ; |
32609 | return 0; | |
32610 | } | |
32611 | _ACEOF | |
32612 | rm -f conftest.$ac_objext | |
32613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32614 | (eval $ac_compile) 2>&5 | |
32615 | ac_status=$? | |
32616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32617 | (exit $ac_status); } && | |
32618 | { ac_try='test -s conftest.$ac_objext' | |
32619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32620 | (eval $ac_try) 2>&5 | |
32621 | ac_status=$? | |
32622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32623 | (exit $ac_status); }; }; then | |
32624 | echo "$as_me:$LINENO: result: no" >&5 | |
32625 | echo "${ECHO_T}no" >&6 | |
32626 | else | |
32627 | echo "$as_me: failed program was:" >&5 | |
32628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32629 | ||
32630 | echo "$as_me:$LINENO: result: yes" >&5 | |
32631 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32632 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32633 | fi | |
e6cc62c6 | 32634 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32635 | ac_ext=c |
8284b0c5 | 32636 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32640 | |
2b9bdf71 | 32641 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32642 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32643 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32644 | #define wxUSE_OLE 1 |
e6cc62c6 | 32645 | _ACEOF |
4f11a343 | 32646 | |
8284b0c5 | 32647 | |
2b9bdf71 VZ |
32648 | fi |
32649 | ||
e6cc62c6 | 32650 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32651 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32652 | _ACEOF |
2b9bdf71 VZ |
32653 | |
32654 | else | |
e6cc62c6 VS |
32655 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32656 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32657 | |
32658 | wxUSE_CLIPBOARD=no | |
32659 | wxUSE_DRAG_AND_DROP=no | |
32660 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32661 | wxUSE_OLE=no |
32662 | fi | |
32663 | ||
32664 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32665 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32666 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32667 | _ACEOF |
3bce6687 JS |
32668 | |
32669 | ||
e6cc62c6 | 32670 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32671 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32672 | _ACEOF |
3bce6687 JS |
32673 | |
32674 | fi | |
32675 | fi | |
32676 | ||
2b9bdf71 VZ |
32677 | if test "$wxUSE_IPC" = "yes"; then |
32678 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32679 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32680 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32681 | fi |
32682 | ||
e6cc62c6 | 32683 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32684 | #define wxUSE_IPC 1 |
e6cc62c6 | 32685 | _ACEOF |
2b9bdf71 VZ |
32686 | |
32687 | fi | |
32688 | ||
32689 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32690 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32691 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32692 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32693 | wxUSE_CLIPBOARD=no |
32694 | fi | |
32695 | ||
32696 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32697 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32698 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32699 | _ACEOF |
2b9bdf71 | 32700 | |
8284b0c5 | 32701 | |
e6cc62c6 | 32702 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32703 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32704 | _ACEOF |
673f4220 | 32705 | |
6c657b52 | 32706 | fi |
2b9bdf71 VZ |
32707 | fi |
32708 | ||
32709 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32710 | if test "$wxUSE_GTK" = 1; then | |
32711 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32712 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32713 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32714 | wxUSE_DRAG_AND_DROP=no |
32715 | fi | |
32716 | fi | |
32717 | ||
2b9bdf71 | 32718 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32719 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32720 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32721 | wxUSE_DRAG_AND_DROP=no |
32722 | fi | |
32723 | ||
f79bd02d | 32724 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32725 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32726 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32727 | wxUSE_DRAG_AND_DROP=no |
32728 | fi | |
32729 | ||
6c657b52 | 32730 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32731 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32732 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32733 | wxUSE_DRAG_AND_DROP=no |
32734 | fi | |
32735 | ||
10f2d63a | 32736 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32737 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32738 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32739 | _ACEOF |
10f2d63a VZ |
32740 | |
32741 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32742 | fi | |
32743 | ||
32744 | fi | |
32745 | ||
32746 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32747 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32748 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32749 | _ACEOF |
10f2d63a VZ |
32750 | |
32751 | fi | |
32752 | ||
8284b0c5 | 32753 | |
1e6feb95 VZ |
32754 | USES_CONTROLS=0 |
32755 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32756 | USES_CONTROLS=1 | |
32757 | fi | |
32758 | ||
10f2d63a | 32759 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32761 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32762 | _ACEOF |
10f2d63a | 32763 | |
1e6feb95 VZ |
32764 | USES_CONTROLS=1 |
32765 | fi | |
32766 | ||
32767 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32768 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32769 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32770 | _ACEOF |
1e6feb95 VZ |
32771 | |
32772 | USES_CONTROLS=1 | |
32773 | fi | |
32774 | ||
32775 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32776 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32777 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32778 | _ACEOF |
1e6feb95 VZ |
32779 | |
32780 | USES_CONTROLS=1 | |
32781 | fi | |
32782 | ||
32783 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32784 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32785 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32786 | _ACEOF |
1e6feb95 VZ |
32787 | |
32788 | USES_CONTROLS=1 | |
32789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32790 | fi |
32791 | ||
32792 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32793 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32794 | #define wxUSE_CARET 1 |
e6cc62c6 | 32795 | _ACEOF |
10f2d63a | 32796 | |
1e6feb95 | 32797 | USES_CONTROLS=1 |
10f2d63a VZ |
32798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32799 | fi | |
32800 | ||
32801 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32802 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32803 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32804 | _ACEOF |
10f2d63a | 32805 | |
1e6feb95 | 32806 | USES_CONTROLS=1 |
10f2d63a VZ |
32807 | fi |
32808 | ||
32809 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32811 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32812 | _ACEOF |
10f2d63a | 32813 | |
1e6feb95 | 32814 | USES_CONTROLS=1 |
10f2d63a VZ |
32815 | fi |
32816 | ||
32817 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32818 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32819 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32820 | _ACEOF |
10f2d63a | 32821 | |
1e6feb95 | 32822 | USES_CONTROLS=1 |
10f2d63a VZ |
32823 | fi |
32824 | ||
32825 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32826 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32827 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32828 | _ACEOF |
10f2d63a | 32829 | |
1e6feb95 | 32830 | USES_CONTROLS=1 |
10f2d63a VZ |
32831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32832 | fi | |
32833 | ||
da494b40 | 32834 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32835 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32836 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32837 | _ACEOF |
da494b40 MB |
32838 | |
32839 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32840 | fi | |
32841 | ||
10f2d63a | 32842 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32843 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32844 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32845 | _ACEOF |
10f2d63a | 32846 | |
1e6feb95 | 32847 | USES_CONTROLS=1 |
10f2d63a VZ |
32848 | fi |
32849 | ||
d6a55c4b | 32850 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32851 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32852 | #define wxUSE_GRID 1 |
e6cc62c6 | 32853 | _ACEOF |
10f2d63a | 32854 | |
1e6feb95 | 32855 | USES_CONTROLS=1 |
d6a55c4b | 32856 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32857 | fi |
32858 | ||
32859 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32860 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32861 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32862 | _ACEOF |
10f2d63a VZ |
32863 | |
32864 | fi | |
32865 | ||
32866 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32867 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32868 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32869 | _ACEOF |
10f2d63a | 32870 | |
1e6feb95 | 32871 | USES_CONTROLS=1 |
10f2d63a VZ |
32872 | fi |
32873 | ||
32874 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32875 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32876 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32877 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32878 | _ACEOF |
10f2d63a | 32879 | |
1e6feb95 | 32880 | USES_CONTROLS=1 |
10f2d63a VZ |
32881 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32882 | else | |
e6cc62c6 VS |
32883 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32884 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32885 | fi |
32886 | fi | |
32887 | ||
32888 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32889 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32890 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32891 | _ACEOF |
10f2d63a | 32892 | |
1e6feb95 | 32893 | USES_CONTROLS=1 |
10f2d63a VZ |
32894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32895 | fi | |
32896 | ||
24176f2c | 32897 | |
10f2d63a | 32898 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32899 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32900 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32901 | _ACEOF |
10f2d63a | 32902 | |
1e6feb95 | 32903 | USES_CONTROLS=1 |
10f2d63a VZ |
32904 | fi |
32905 | ||
32906 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32907 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32908 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32909 | _ACEOF |
10f2d63a | 32910 | |
1e6feb95 | 32911 | USES_CONTROLS=1 |
10f2d63a VZ |
32912 | fi |
32913 | ||
32914 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32915 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32916 | #define wxUSE_SASH 1 |
e6cc62c6 | 32917 | _ACEOF |
10f2d63a VZ |
32918 | |
32919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32920 | fi | |
32921 | ||
32922 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32923 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32924 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32925 | _ACEOF |
10f2d63a | 32926 | |
1e6feb95 | 32927 | USES_CONTROLS=1 |
741a9306 | 32928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32929 | fi |
32930 | ||
32931 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32932 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32933 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32934 | _ACEOF |
10f2d63a | 32935 | |
1e6feb95 | 32936 | USES_CONTROLS=1 |
10f2d63a VZ |
32937 | fi |
32938 | ||
32939 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32940 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32941 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32942 | _ACEOF |
10f2d63a | 32943 | |
1e6feb95 | 32944 | USES_CONTROLS=1 |
10f2d63a VZ |
32945 | fi |
32946 | ||
56cfaa52 | 32947 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32948 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32949 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32950 | _ACEOF |
56cfaa52 | 32951 | |
1e6feb95 | 32952 | USES_CONTROLS=1 |
56cfaa52 RR |
32953 | fi |
32954 | ||
10f2d63a | 32955 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32956 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32957 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32958 | _ACEOF |
10f2d63a VZ |
32959 | |
32960 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32961 | fi | |
32962 | ||
32963 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32964 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32965 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32966 | _ACEOF |
10f2d63a | 32967 | |
1e6feb95 | 32968 | USES_CONTROLS=1 |
10f2d63a VZ |
32969 | fi |
32970 | ||
32971 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32972 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32973 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32974 | _ACEOF |
10f2d63a | 32975 | |
1e6feb95 VZ |
32976 | USES_CONTROLS=1 |
32977 | fi | |
32978 | ||
32979 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32980 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32981 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32982 | _ACEOF |
1e6feb95 VZ |
32983 | |
32984 | USES_CONTROLS=1 | |
10f2d63a VZ |
32985 | fi |
32986 | ||
32987 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32988 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32989 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32990 | _ACEOF |
10f2d63a | 32991 | |
89e6bf6d | 32992 | USES_CONTROLS=1 |
10f2d63a VZ |
32993 | fi |
32994 | ||
32995 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32996 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32997 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32998 | _ACEOF |
10f2d63a | 32999 | |
1e6feb95 | 33000 | USES_CONTROLS=1 |
698dcdb6 | 33001 | |
2286341c | 33002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
33003 | fi |
33004 | ||
33005 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 33006 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33007 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 33008 | _ACEOF |
10f2d63a VZ |
33009 | |
33010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
33011 | fi | |
33012 | ||
1e6feb95 | 33013 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 33014 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33015 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 33016 | _ACEOF |
1e6feb95 VZ |
33017 | |
33018 | USES_CONTROLS=1 | |
33019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
33020 | fi | |
33021 | ||
1db8dc4a | 33022 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 33023 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33024 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
33025 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
33026 | wxUSE_TOGGLEBTN=no |
33027 | fi | |
33028 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
33029 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
33030 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
33031 | wxUSE_TOGGLEBTN=no |
33032 | fi | |
33033 | ||
33034 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 33035 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 33036 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 33037 | _ACEOF |
1db8dc4a | 33038 | |
1e6feb95 | 33039 | USES_CONTROLS=1 |
a45d7ab7 | 33040 | fi |
1db8dc4a VZ |
33041 | fi |
33042 | ||
360d6699 | 33043 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 33044 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33045 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 33046 | _ACEOF |
360d6699 VZ |
33047 | |
33048 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 33049 | USES_CONTROLS=1 |
360d6699 VZ |
33050 | fi |
33051 | ||
10f2d63a | 33052 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 33053 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33054 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 33055 | _ACEOF |
10f2d63a | 33056 | |
1e6feb95 | 33057 | USES_CONTROLS=1 |
698dcdb6 | 33058 | |
360d6699 VZ |
33059 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
33060 | wxUSE_TOOLBAR_NATIVE="yes" | |
33061 | fi | |
33062 | ||
1e6feb95 | 33063 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 33064 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33065 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 33066 | _ACEOF |
360d6699 | 33067 | |
1e6feb95 VZ |
33068 | USES_CONTROLS=1 |
33069 | fi | |
33070 | ||
33071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
33072 | fi |
33073 | ||
10f2d63a VZ |
33074 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
33075 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
33076 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
33077 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 33078 | else |
89e6bf6d | 33079 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
33080 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
33081 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 33082 | else |
e6cc62c6 | 33083 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33084 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 33085 | _ACEOF |
10f2d63a VZ |
33086 | |
33087 | fi | |
33088 | fi | |
33089 | fi | |
33090 | ||
33091 | if test "$wxUSE_TREECTRL" = "yes"; then | |
33092 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33093 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33094 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 33095 | _ACEOF |
10f2d63a | 33096 | |
1e6feb95 | 33097 | USES_CONTROLS=1 |
10f2d63a VZ |
33098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
33099 | else | |
e6cc62c6 VS |
33100 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
33101 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
33102 | fi |
33103 | fi | |
33104 | ||
9f41d601 | 33105 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 33106 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33107 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
33108 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 33109 | else |
485cf710 | 33110 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
33111 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
33112 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 33113 | else |
3c011993 | 33114 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33115 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
33116 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33117 | else |
e6cc62c6 | 33118 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 33119 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 33120 | _ACEOF |
9f41d601 | 33121 | |
8284b0c5 | 33122 | |
3c011993 VZ |
33123 | USES_CONTROLS=1 |
33124 | fi | |
485cf710 | 33125 | fi |
6abe4b65 | 33126 | fi |
9f41d601 RR |
33127 | fi |
33128 | ||
dd964dcc | 33129 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 33130 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33131 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
33132 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33133 | else |
e6cc62c6 | 33134 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 33135 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 33136 | _ACEOF |
dd964dcc | 33137 | |
3c011993 | 33138 | fi |
dd964dcc VZ |
33139 | fi |
33140 | ||
1e6feb95 | 33141 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 33142 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33143 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 33144 | _ACEOF |
10f2d63a | 33145 | |
10f2d63a VZ |
33146 | fi |
33147 | ||
8284b0c5 | 33148 | |
1e6feb95 | 33149 | |
24fd6d87 | 33150 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 33151 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 33152 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 33153 | _ACEOF |
24fd6d87 VZ |
33154 | |
33155 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
33156 | fi | |
33157 | ||
7bb2947d | 33158 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 33159 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 33160 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 33161 | _ACEOF |
7bb2947d MB |
33162 | |
33163 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
33164 | fi | |
33165 | ||
1e6feb95 | 33166 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 33167 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33168 | #define wxUSE_MENUS 1 |
e6cc62c6 | 33169 | _ACEOF |
10f2d63a | 33170 | |
1e6feb95 | 33171 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
33172 | fi |
33173 | ||
1e6feb95 | 33174 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 33175 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33176 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 33177 | _ACEOF |
10f2d63a | 33178 | |
10f2d63a VZ |
33179 | fi |
33180 | ||
1e6feb95 | 33181 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 33182 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33183 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 33184 | _ACEOF |
10f2d63a | 33185 | |
10f2d63a VZ |
33186 | fi |
33187 | ||
3e44f09d | 33188 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 33189 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 33190 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 33191 | _ACEOF |
3e44f09d | 33192 | |
131f235d VS |
33193 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
33194 | "$TOOLKIT" = "MOTIF"; then | |
321d2b14 VZ |
33195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
33196 | fi | |
33197 | ||
3e44f09d VZ |
33198 | fi |
33199 | ||
10f2d63a | 33200 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 33201 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33202 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 33203 | _ACEOF |
10f2d63a VZ |
33204 | |
33205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
33206 | fi | |
33207 | ||
4d264332 | 33208 | USE_HTML=0 |
10f2d63a | 33209 | if test "$wxUSE_HTML" = "yes"; then |
e6cc62c6 | 33210 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33211 | #define wxUSE_HTML 1 |
e6cc62c6 | 33212 | _ACEOF |
10f2d63a | 33213 | |
4d264332 | 33214 | USE_HTML=1 |
c74dc163 | 33215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
33216 | fi |
33217 | ||
33218 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 33219 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 33220 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 33221 | _ACEOF |
703e0a69 | 33222 | |
698dcdb6 VZ |
33223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
33224 | fi | |
33225 | ||
edae8572 | 33226 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 33227 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 33228 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 33229 | _ACEOF |
edae8572 VZ |
33230 | |
33231 | fi | |
33232 | ||
698dcdb6 | 33233 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 33234 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33235 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 33236 | _ACEOF |
698dcdb6 VZ |
33237 | |
33238 | fi | |
33239 | ||
33240 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 33241 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33242 | #define wxUSE_GIF 1 |
e6cc62c6 | 33243 | _ACEOF |
698dcdb6 VZ |
33244 | |
33245 | fi | |
33246 | ||
33247 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 33248 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33249 | #define wxUSE_PCX 1 |
e6cc62c6 | 33250 | _ACEOF |
698dcdb6 VZ |
33251 | |
33252 | fi | |
33253 | ||
4b6b4dfc | 33254 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 33255 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 33256 | #define wxUSE_IFF 1 |
e6cc62c6 | 33257 | _ACEOF |
4b6b4dfc RR |
33258 | |
33259 | fi | |
33260 | ||
698dcdb6 | 33261 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 33262 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33263 | #define wxUSE_PNM 1 |
e6cc62c6 | 33264 | _ACEOF |
698dcdb6 VZ |
33265 | |
33266 | fi | |
33267 | ||
33268 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 33269 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33270 | #define wxUSE_XPM 1 |
e6cc62c6 | 33271 | _ACEOF |
698dcdb6 VZ |
33272 | |
33273 | fi | |
33274 | ||
658974ae | 33275 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 33276 | cat >>confdefs.h <<\_ACEOF |
658974ae | 33277 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33278 | _ACEOF |
658974ae VS |
33279 | |
33280 | fi | |
33281 | ||
a72a4bfa VS |
33282 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33283 | LIBS=" -lunicows $LIBS" | |
33284 | fi | |
33285 | ||
8284b0c5 | 33286 | |
1e6feb95 | 33287 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33288 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33289 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33290 | _ACEOF |
1e6feb95 VZ |
33291 | |
33292 | fi | |
33293 | ||
33294 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33295 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33296 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33297 | _ACEOF |
1e6feb95 VZ |
33298 | |
33299 | fi | |
33300 | ||
33301 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33302 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33303 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33304 | _ACEOF |
1e6feb95 VZ |
33305 | |
33306 | fi | |
33307 | ||
8db37e06 | 33308 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33309 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33310 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33311 | _ACEOF |
8db37e06 VZ |
33312 | |
33313 | fi | |
33314 | ||
1e6feb95 | 33315 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33316 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33317 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33318 | _ACEOF |
1e6feb95 VZ |
33319 | |
33320 | fi | |
33321 | ||
33322 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33323 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33324 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33325 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33326 | else |
e6cc62c6 | 33327 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33328 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33329 | _ACEOF |
1e6feb95 | 33330 | |
1e6feb95 VZ |
33331 | fi |
33332 | fi | |
33333 | ||
33334 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33335 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33336 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33337 | _ACEOF |
1e6feb95 VZ |
33338 | |
33339 | fi | |
33340 | ||
33341 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33342 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33343 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33344 | _ACEOF |
1e6feb95 VZ |
33345 | |
33346 | fi | |
33347 | ||
33348 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33349 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33350 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33351 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33352 | else |
e6cc62c6 | 33353 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33354 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33355 | _ACEOF |
1e6feb95 VZ |
33356 | |
33357 | fi | |
33358 | fi | |
33359 | ||
cbca9943 | 33360 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33361 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33362 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33363 | _ACEOF |
cbca9943 VZ |
33364 | |
33365 | fi | |
33366 | ||
1e6feb95 VZ |
33367 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33368 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33369 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33370 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33371 | else |
e6cc62c6 | 33372 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33373 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33374 | _ACEOF |
1e6feb95 | 33375 | |
7b4a847f RR |
33376 | fi |
33377 | fi | |
579d8138 | 33378 | |
8284b0c5 | 33379 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33380 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33381 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33382 | _ACEOF |
8284b0c5 MB |
33383 | |
33384 | fi | |
33385 | ||
33386 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33387 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33388 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33389 | _ACEOF |
8284b0c5 MB |
33390 | |
33391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33392 | fi | |
33393 | ||
33394 | ||
33395 | if test "$cross_compiling" = "yes"; then | |
33396 | OSINFO="\"$host\"" | |
33397 | else | |
33398 | OSINFO=`uname -s -r -m` | |
33399 | OSINFO="\"$OSINFO\"" | |
33400 | fi | |
33401 | ||
e6cc62c6 | 33402 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33403 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33404 | _ACEOF |
8284b0c5 MB |
33405 | |
33406 | ||
33407 | ||
33408 | if test "x$prefix" != "xNONE"; then | |
33409 | wxPREFIX=$prefix | |
33410 | else | |
33411 | wxPREFIX=$ac_default_prefix | |
33412 | fi | |
33413 | ||
e6cc62c6 | 33414 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33415 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33416 | _ACEOF |
8284b0c5 MB |
33417 | |
33418 | ||
e6cc62c6 | 33419 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33420 | |
8284b0c5 MB |
33421 | |
33422 | ||
edd891e2 VS |
33423 | CORE_BASE_LIBS="net base" |
33424 | CORE_GUI_LIBS="adv core" | |
33425 | ||
33426 | if test "$wxUSE_XML" = "yes" ; then | |
33427 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33428 | fi | |
45293562 VS |
33429 | if test "$wxUSE_ODBC" != "no" ; then |
33430 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33431 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33432 | fi |
33433 | if test "$wxUSE_HTML" = "yes" ; then | |
33434 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33435 | fi | |
33436 | ||
33437 | ||
33438 | ||
33439 | ||
33440 | ||
33441 | ||
33442 | ||
8284b0c5 MB |
33443 | |
33444 | if test "$wxUSE_MAC" = 1 ; then | |
33445 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33446 | fi | |
ac0c4cc3 DE |
33447 | if test "$wxUSE_COCOA" = 1 ; then |
33448 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33449 | fi | |
8284b0c5 MB |
33450 | |
33451 | ||
2b5f62a0 VZ |
33452 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33453 | ||
33454 | have_cos=0 | |
33455 | have_floor=0 | |
e6cc62c6 | 33456 | |
2b5f62a0 VZ |
33457 | for ac_func in cos |
33458 | do | |
e6cc62c6 VS |
33459 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33460 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33461 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33462 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33464 | else | |
33465 | cat >conftest.$ac_ext <<_ACEOF | |
33466 | #line $LINENO "configure" | |
33467 | /* confdefs.h. */ | |
33468 | _ACEOF | |
33469 | cat confdefs.h >>conftest.$ac_ext | |
33470 | cat >>conftest.$ac_ext <<_ACEOF | |
33471 | /* end confdefs.h. */ | |
2b5f62a0 | 33472 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33473 | which can conflict with char $ac_func (); below. |
33474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33475 | <limits.h> exists even on freestanding compilers. */ | |
33476 | #ifdef __STDC__ | |
33477 | # include <limits.h> | |
33478 | #else | |
33479 | # include <assert.h> | |
33480 | #endif | |
2b5f62a0 | 33481 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33482 | #ifdef __cplusplus |
33483 | extern "C" | |
33484 | { | |
33485 | #endif | |
2b5f62a0 | 33486 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33487 | builtin and then its argument prototype would still apply. */ |
33488 | char $ac_func (); | |
2b5f62a0 VZ |
33489 | /* The GNU C library defines this for functions which it implements |
33490 | to always fail with ENOSYS. Some functions are actually named | |
33491 | something starting with __ and the normal name is an alias. */ | |
33492 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33493 | choke me | |
33494 | #else | |
e6cc62c6 VS |
33495 | char (*f) () = $ac_func; |
33496 | #endif | |
33497 | #ifdef __cplusplus | |
33498 | } | |
2b5f62a0 VZ |
33499 | #endif |
33500 | ||
e6cc62c6 VS |
33501 | int |
33502 | main () | |
33503 | { | |
33504 | return f != $ac_func; | |
33505 | ; | |
33506 | return 0; | |
33507 | } | |
33508 | _ACEOF | |
33509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33511 | (eval $ac_link) 2>&5 | |
33512 | ac_status=$? | |
33513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33514 | (exit $ac_status); } && | |
33515 | { ac_try='test -s conftest$ac_exeext' | |
33516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33517 | (eval $ac_try) 2>&5 | |
33518 | ac_status=$? | |
33519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33520 | (exit $ac_status); }; }; then | |
33521 | eval "$as_ac_var=yes" | |
33522 | else | |
33523 | echo "$as_me: failed program was:" >&5 | |
33524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33525 | ||
33526 | eval "$as_ac_var=no" | |
33527 | fi | |
33528 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33529 | fi | |
33530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33531 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33532 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33533 | cat >>confdefs.h <<_ACEOF | |
33534 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33535 | _ACEOF | |
2b5f62a0 | 33536 | have_cos=1 |
2b5f62a0 VZ |
33537 | fi |
33538 | done | |
33539 | ||
e6cc62c6 | 33540 | |
2b5f62a0 VZ |
33541 | for ac_func in floor |
33542 | do | |
e6cc62c6 VS |
33543 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33544 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33545 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33546 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33548 | else | |
33549 | cat >conftest.$ac_ext <<_ACEOF | |
33550 | #line $LINENO "configure" | |
33551 | /* confdefs.h. */ | |
33552 | _ACEOF | |
33553 | cat confdefs.h >>conftest.$ac_ext | |
33554 | cat >>conftest.$ac_ext <<_ACEOF | |
33555 | /* end confdefs.h. */ | |
2b5f62a0 | 33556 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33557 | which can conflict with char $ac_func (); below. |
33558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33559 | <limits.h> exists even on freestanding compilers. */ | |
33560 | #ifdef __STDC__ | |
33561 | # include <limits.h> | |
33562 | #else | |
33563 | # include <assert.h> | |
33564 | #endif | |
2b5f62a0 | 33565 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33566 | #ifdef __cplusplus |
33567 | extern "C" | |
33568 | { | |
33569 | #endif | |
2b5f62a0 | 33570 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33571 | builtin and then its argument prototype would still apply. */ |
33572 | char $ac_func (); | |
2b5f62a0 VZ |
33573 | /* The GNU C library defines this for functions which it implements |
33574 | to always fail with ENOSYS. Some functions are actually named | |
33575 | something starting with __ and the normal name is an alias. */ | |
33576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33577 | choke me | |
33578 | #else | |
e6cc62c6 VS |
33579 | char (*f) () = $ac_func; |
33580 | #endif | |
33581 | #ifdef __cplusplus | |
33582 | } | |
2b5f62a0 VZ |
33583 | #endif |
33584 | ||
e6cc62c6 VS |
33585 | int |
33586 | main () | |
33587 | { | |
33588 | return f != $ac_func; | |
33589 | ; | |
33590 | return 0; | |
33591 | } | |
33592 | _ACEOF | |
33593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33595 | (eval $ac_link) 2>&5 | |
33596 | ac_status=$? | |
33597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33598 | (exit $ac_status); } && | |
33599 | { ac_try='test -s conftest$ac_exeext' | |
33600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33601 | (eval $ac_try) 2>&5 | |
33602 | ac_status=$? | |
33603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33604 | (exit $ac_status); }; }; then | |
33605 | eval "$as_ac_var=yes" | |
33606 | else | |
33607 | echo "$as_me: failed program was:" >&5 | |
33608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33609 | ||
33610 | eval "$as_ac_var=no" | |
33611 | fi | |
33612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33613 | fi | |
33614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33615 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33616 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33617 | cat >>confdefs.h <<_ACEOF | |
33618 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33619 | _ACEOF | |
2b5f62a0 | 33620 | have_floor=1 |
2b5f62a0 VZ |
33621 | fi |
33622 | done | |
33623 | ||
e6cc62c6 VS |
33624 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33625 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33626 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33627 | echo "$as_me:$LINENO: result: yes" >&5 |
33628 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33629 | else |
e6cc62c6 VS |
33630 | echo "$as_me:$LINENO: result: no" >&5 |
33631 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33632 | LIBS="$LIBS -lm" |
33633 | # use different functions to avoid configure caching | |
33634 | have_sin=0 | |
33635 | have_ceil=0 | |
e6cc62c6 VS |
33636 | |
33637 | for ac_func in sin | |
2b5f62a0 | 33638 | do |
e6cc62c6 VS |
33639 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33640 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33641 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33642 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33644 | else | |
33645 | cat >conftest.$ac_ext <<_ACEOF | |
33646 | #line $LINENO "configure" | |
33647 | /* confdefs.h. */ | |
33648 | _ACEOF | |
33649 | cat confdefs.h >>conftest.$ac_ext | |
33650 | cat >>conftest.$ac_ext <<_ACEOF | |
33651 | /* end confdefs.h. */ | |
2b5f62a0 | 33652 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33653 | which can conflict with char $ac_func (); below. |
33654 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33655 | <limits.h> exists even on freestanding compilers. */ | |
33656 | #ifdef __STDC__ | |
33657 | # include <limits.h> | |
33658 | #else | |
33659 | # include <assert.h> | |
33660 | #endif | |
2b5f62a0 | 33661 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33662 | #ifdef __cplusplus |
33663 | extern "C" | |
33664 | { | |
33665 | #endif | |
2b5f62a0 | 33666 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33667 | builtin and then its argument prototype would still apply. */ |
33668 | char $ac_func (); | |
2b5f62a0 VZ |
33669 | /* The GNU C library defines this for functions which it implements |
33670 | to always fail with ENOSYS. Some functions are actually named | |
33671 | something starting with __ and the normal name is an alias. */ | |
33672 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33673 | choke me | |
33674 | #else | |
e6cc62c6 VS |
33675 | char (*f) () = $ac_func; |
33676 | #endif | |
33677 | #ifdef __cplusplus | |
33678 | } | |
2b5f62a0 VZ |
33679 | #endif |
33680 | ||
e6cc62c6 VS |
33681 | int |
33682 | main () | |
33683 | { | |
33684 | return f != $ac_func; | |
33685 | ; | |
33686 | return 0; | |
33687 | } | |
33688 | _ACEOF | |
33689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33691 | (eval $ac_link) 2>&5 | |
33692 | ac_status=$? | |
33693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33694 | (exit $ac_status); } && | |
33695 | { ac_try='test -s conftest$ac_exeext' | |
33696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33697 | (eval $ac_try) 2>&5 | |
33698 | ac_status=$? | |
33699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33700 | (exit $ac_status); }; }; then | |
33701 | eval "$as_ac_var=yes" | |
33702 | else | |
33703 | echo "$as_me: failed program was:" >&5 | |
33704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33705 | ||
33706 | eval "$as_ac_var=no" | |
33707 | fi | |
33708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33709 | fi | |
33710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33711 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33712 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33713 | cat >>confdefs.h <<_ACEOF | |
33714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33715 | _ACEOF | |
2b5f62a0 | 33716 | have_sin=1 |
2b5f62a0 VZ |
33717 | fi |
33718 | done | |
33719 | ||
e6cc62c6 VS |
33720 | |
33721 | for ac_func in ceil | |
2b5f62a0 | 33722 | do |
e6cc62c6 VS |
33723 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33724 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33725 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33726 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33728 | else | |
33729 | cat >conftest.$ac_ext <<_ACEOF | |
33730 | #line $LINENO "configure" | |
33731 | /* confdefs.h. */ | |
33732 | _ACEOF | |
33733 | cat confdefs.h >>conftest.$ac_ext | |
33734 | cat >>conftest.$ac_ext <<_ACEOF | |
33735 | /* end confdefs.h. */ | |
2b5f62a0 | 33736 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33737 | which can conflict with char $ac_func (); below. |
33738 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33739 | <limits.h> exists even on freestanding compilers. */ | |
33740 | #ifdef __STDC__ | |
33741 | # include <limits.h> | |
33742 | #else | |
33743 | # include <assert.h> | |
33744 | #endif | |
2b5f62a0 | 33745 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33746 | #ifdef __cplusplus |
33747 | extern "C" | |
33748 | { | |
33749 | #endif | |
2b5f62a0 | 33750 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33751 | builtin and then its argument prototype would still apply. */ |
33752 | char $ac_func (); | |
2b5f62a0 VZ |
33753 | /* The GNU C library defines this for functions which it implements |
33754 | to always fail with ENOSYS. Some functions are actually named | |
33755 | something starting with __ and the normal name is an alias. */ | |
33756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33757 | choke me | |
33758 | #else | |
e6cc62c6 VS |
33759 | char (*f) () = $ac_func; |
33760 | #endif | |
33761 | #ifdef __cplusplus | |
33762 | } | |
2b5f62a0 VZ |
33763 | #endif |
33764 | ||
e6cc62c6 VS |
33765 | int |
33766 | main () | |
33767 | { | |
33768 | return f != $ac_func; | |
33769 | ; | |
33770 | return 0; | |
33771 | } | |
33772 | _ACEOF | |
33773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33775 | (eval $ac_link) 2>&5 | |
33776 | ac_status=$? | |
33777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33778 | (exit $ac_status); } && | |
33779 | { ac_try='test -s conftest$ac_exeext' | |
33780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33781 | (eval $ac_try) 2>&5 | |
33782 | ac_status=$? | |
33783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33784 | (exit $ac_status); }; }; then | |
33785 | eval "$as_ac_var=yes" | |
33786 | else | |
33787 | echo "$as_me: failed program was:" >&5 | |
33788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33789 | ||
33790 | eval "$as_ac_var=no" | |
33791 | fi | |
33792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33793 | fi | |
33794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33797 | cat >>confdefs.h <<_ACEOF | |
33798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33799 | _ACEOF | |
2b5f62a0 | 33800 | have_ceil=1 |
2b5f62a0 VZ |
33801 | fi |
33802 | done | |
33803 | ||
e6cc62c6 VS |
33804 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33805 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33806 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33807 | echo "$as_me:$LINENO: result: yes" >&5 |
33808 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33809 | else |
e6cc62c6 VS |
33810 | echo "$as_me:$LINENO: result: no" >&5 |
33811 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33812 | # not sure we should warn the user, crash, etc. |
33813 | fi | |
33814 | fi | |
8284b0c5 MB |
33815 | |
33816 | if test "$wxUSE_GUI" = "yes"; then | |
33817 | ||
e6cc62c6 | 33818 | |
8284b0c5 MB |
33819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33820 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 33821 | minimal propsize rotate shaped widgets render" |
b625909c VS |
33822 | |
33823 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33825 | fi | |
8284b0c5 MB |
33826 | else |
33827 | SAMPLES_SUBDIRS="console" | |
33828 | fi | |
33829 | ||
33830 | ||
e6cc62c6 | 33831 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33832 | -I\${top_srcdir}/include \ |
33833 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33834 | $TOOLKIT_INCLUDE" | |
33835 | ||
fddeb06b VS |
33836 | if test "$GXX" = yes ; then |
33837 | CXXWARNINGS="-Wall" | |
33838 | fi | |
33839 | ||
33840 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33841 | ||
95318f7d | 33842 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33843 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33844 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33845 | |
33846 | ||
fddeb06b | 33847 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 33848 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 33849 | EXTRALIBS_XML="$EXPAT_LINK" |
bb41dcbe | 33850 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
33851 | if test "$wxUSE_GUI" = "yes"; then |
33852 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33853 | fi | |
34b08d2c VS |
33854 | if test "$wxUSE_OPENGL" = "yes"; then |
33855 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
33856 | fi | |
fddeb06b VS |
33857 | |
33858 | LDFLAGS="$LDFLAGS $PROFILE" | |
33859 | ||
8284b0c5 MB |
33860 | if test "$wxUSE_GTK" = 1; then |
33861 | WXCONFIG_INCLUDE= | |
33862 | else | |
33863 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33864 | fi | |
33865 | ||
67c13b6c VS |
33866 | WXCONFIG_EXTRALIBS="$LIBS" |
33867 | ||
33868 | if test "$wxUSE_REGEX" = "builtin" ; then | |
33869 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
33870 | fi | |
33871 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
33872 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
33873 | fi | |
33874 | if test "$wxUSE_ODBC" = "builtin" ; then | |
33875 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33876 | fi | |
33877 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
33878 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
33879 | fi | |
33880 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
33881 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
33882 | fi | |
33883 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
33884 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
33885 | fi | |
33886 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
33887 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
33888 | fi | |
bb41dcbe VS |
33889 | if test "$wxUSE_ODBC" = "builtin" ; then |
33890 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33891 | fi | |
67c13b6c VS |
33892 | |
33893 | for i in $wxconfig_3rdparty ; do | |
33894 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
33895 | done | |
33896 | ||
33897 | ||
fe0895cf VS |
33898 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33899 | WXUNIV=1 | |
33900 | else | |
33901 | WXUNIV=0 | |
8284b0c5 MB |
33902 | fi |
33903 | ||
8284b0c5 MB |
33904 | |
33905 | ||
33906 | ||
33907 | ||
33908 | ||
33909 | ||
33910 | ||
672abd7a | 33911 | |
9747f85d VS |
33912 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33913 | MONOLITHIC=1 | |
33914 | else | |
33915 | MONOLITHIC=0 | |
33916 | fi | |
8284b0c5 | 33917 | |
bb41dcbe VS |
33918 | if test $wxUSE_ODBC != "no" ; then |
33919 | USE_ODBC=1 | |
33920 | else | |
33921 | USE_ODBC=0 | |
33922 | fi | |
33923 | ||
029b47ad VS |
33924 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
33925 | OFFICIAL_BUILD=1 | |
33926 | else | |
33927 | OFFICIAL_BUILD=0 | |
33928 | fi | |
33929 | ||
8ee2dd05 VS |
33930 | |
33931 | ||
33932 | ||
8284b0c5 MB |
33933 | |
33934 | ||
33935 | ||
33936 | ||
33937 | ||
33938 | ||
c74dc163 | 33939 | |
34b08d2c | 33940 | |
672abd7a | 33941 | |
cf615ebb | 33942 | |
6c67131a VS |
33943 | |
33944 | ||
bb41dcbe | 33945 | |
fe0895cf | 33946 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33947 | |
33948 | ||
33949 | ||
33950 | ||
33951 | ||
ea66c762 | 33952 | |
fe0895cf | 33953 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33954 | |
33955 | if test -n "$ac_tool_prefix"; then | |
33956 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33957 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33958 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33959 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33960 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33962 | else |
fe0895cf VS |
33963 | if test -n "$RANLIB"; then |
33964 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33965 | else |
e6cc62c6 VS |
33966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33967 | for as_dir in $PATH | |
33968 | do | |
33969 | IFS=$as_save_IFS | |
33970 | test -z "$as_dir" && as_dir=. | |
33971 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33972 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33973 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33974 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33975 | break 2 | |
33976 | fi | |
33977 | done | |
33978 | done | |
33979 | ||
10f2d63a | 33980 | fi |
10f2d63a | 33981 | fi |
e6cc62c6 | 33982 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33983 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33984 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33985 | echo "${ECHO_T}$RANLIB" >&6 | |
33986 | else | |
33987 | echo "$as_me:$LINENO: result: no" >&5 | |
33988 | echo "${ECHO_T}no" >&6 | |
33989 | fi | |
33990 | ||
33991 | fi | |
33992 | if test -z "$ac_cv_prog_RANLIB"; then | |
33993 | ac_ct_RANLIB=$RANLIB | |
33994 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33995 | set dummy ranlib; ac_word=$2 | |
33996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33998 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34000 | else | |
34001 | if test -n "$ac_ct_RANLIB"; then | |
34002 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
34003 | else | |
34004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34005 | for as_dir in $PATH | |
34006 | do | |
34007 | IFS=$as_save_IFS | |
34008 | test -z "$as_dir" && as_dir=. | |
34009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34011 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
34012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34013 | break 2 | |
34014 | fi | |
34015 | done | |
34016 | done | |
34017 | ||
34018 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
34019 | fi | |
34020 | fi | |
34021 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
34022 | if test -n "$ac_ct_RANLIB"; then | |
34023 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
34024 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 34025 | else |
e6cc62c6 VS |
34026 | echo "$as_me:$LINENO: result: no" >&5 |
34027 | echo "${ECHO_T}no" >&6 | |
34028 | fi | |
34029 | ||
34030 | RANLIB=$ac_ct_RANLIB | |
34031 | else | |
34032 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 34033 | fi |
665bbe97 | 34034 | |
fe0895cf VS |
34035 | # Find a good install program. We prefer a C program (faster), |
34036 | # so one script is as good as another. But avoid the broken or | |
34037 | # incompatible versions: | |
34038 | # SysV /etc/install, /usr/sbin/install | |
34039 | # SunOS /usr/etc/install | |
34040 | # IRIX /sbin/install | |
34041 | # AIX /bin/install | |
e6cc62c6 | 34042 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
34043 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
34044 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
34045 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
34046 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
34047 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
34048 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 34049 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
34050 | if test "${ac_cv_path_install+set}" = set; then |
34051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34052 | else | |
34053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34054 | for as_dir in $PATH | |
34055 | do | |
34056 | IFS=$as_save_IFS | |
34057 | test -z "$as_dir" && as_dir=. | |
34058 | # Account for people who put trailing slashes in PATH elements. | |
34059 | case $as_dir/ in | |
34060 | ./ | .// | /cC/* | \ | |
34061 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
34062 | /usr/ucb/* ) ;; | |
34063 | *) | |
34064 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
34065 | # Don't use installbsd from OSF since it installs stuff as root | |
34066 | # by default. | |
34067 | for ac_prog in ginstall scoinst install; do | |
34068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34069 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
34070 | if test $ac_prog = install && | |
34071 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34072 | # AIX install. It has an incompatible calling convention. | |
34073 | : | |
34074 | elif test $ac_prog = install && | |
34075 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34076 | # program-specific install script used by HP pwplus--don't use. | |
34077 | : | |
34078 | else | |
34079 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
34080 | break 3 | |
34081 | fi | |
34082 | fi | |
fe0895cf | 34083 | done |
e6cc62c6 VS |
34084 | done |
34085 | ;; | |
34086 | esac | |
34087 | done | |
34088 | ||
fe0895cf VS |
34089 | |
34090 | fi | |
34091 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 34092 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
34093 | else |
34094 | # As a last resort, use the slow shell script. We don't cache a | |
34095 | # path for INSTALL within a source directory, because that will | |
34096 | # break other packages using the cache if that directory is | |
34097 | # removed, or if the path is relative. | |
e6cc62c6 | 34098 | INSTALL=$ac_install_sh |
fe0895cf VS |
34099 | fi |
34100 | fi | |
e6cc62c6 VS |
34101 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
34102 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
34103 | |
34104 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
34105 | # It thinks the first close brace ends the variable substitution. | |
34106 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
34107 | ||
e6cc62c6 | 34108 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
34109 | |
34110 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
34111 | ||
e6cc62c6 VS |
34112 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
34113 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
34114 | LN_S=$as_ln_s | |
34115 | if test "$LN_S" = "ln -s"; then | |
34116 | echo "$as_me:$LINENO: result: yes" >&5 | |
34117 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 34118 | else |
e6cc62c6 VS |
34119 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
34120 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
34121 | fi |
34122 | ||
34123 | ||
e6cc62c6 VS |
34124 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
34125 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34126 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34127 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34129 | else |
e6cc62c6 | 34130 | cat >conftest.make <<\_ACEOF |
fe0895cf | 34131 | all: |
e6cc62c6 VS |
34132 | @echo 'ac_maketemp="$(MAKE)"' |
34133 | _ACEOF | |
fe0895cf | 34134 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 34135 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
34136 | if test -n "$ac_maketemp"; then |
34137 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34138 | else | |
34139 | eval ac_cv_prog_make_${ac_make}_set=no | |
34140 | fi | |
e6cc62c6 | 34141 | rm -f conftest.make |
fe0895cf VS |
34142 | fi |
34143 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
34144 | echo "$as_me:$LINENO: result: yes" >&5 |
34145 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
34146 | SET_MAKE= |
34147 | else | |
e6cc62c6 VS |
34148 | echo "$as_me:$LINENO: result: no" >&5 |
34149 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34150 | SET_MAKE="MAKE=${MAKE-make}" |
34151 | fi | |
34152 | ||
e6cc62c6 VS |
34153 | |
34154 | ||
fe0895cf VS |
34155 | if test "$build" != "$host" ; then |
34156 | AR=$host_alias-ar | |
34157 | STRIP=$host_alias-strip | |
34158 | else | |
34159 | # Extract the first word of "ar", so it can be a program name with args. | |
34160 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
34161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34163 | if test "${ac_cv_prog_AR+set}" = set; then | |
34164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34165 | else |
34166 | if test -n "$AR"; then | |
34167 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
34168 | else | |
e6cc62c6 VS |
34169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34170 | for as_dir in $PATH | |
34171 | do | |
34172 | IFS=$as_save_IFS | |
34173 | test -z "$as_dir" && as_dir=. | |
34174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34176 | ac_cv_prog_AR="ar" | |
34177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34178 | break 2 | |
34179 | fi | |
34180 | done | |
34181 | done | |
34182 | ||
fe0895cf VS |
34183 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
34184 | fi | |
34185 | fi | |
e6cc62c6 | 34186 | AR=$ac_cv_prog_AR |
fe0895cf | 34187 | if test -n "$AR"; then |
e6cc62c6 VS |
34188 | echo "$as_me:$LINENO: result: $AR" >&5 |
34189 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 34190 | else |
e6cc62c6 VS |
34191 | echo "$as_me:$LINENO: result: no" >&5 |
34192 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34193 | fi |
34194 | ||
34195 | # Extract the first word of "strip", so it can be a program name with args. | |
34196 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
34197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34199 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
34200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34201 | else |
34202 | if test -n "$STRIP"; then | |
34203 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
34204 | else | |
e6cc62c6 VS |
34205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34206 | for as_dir in $PATH | |
34207 | do | |
34208 | IFS=$as_save_IFS | |
34209 | test -z "$as_dir" && as_dir=. | |
34210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34212 | ac_cv_prog_STRIP="strip" | |
34213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34214 | break 2 | |
34215 | fi | |
34216 | done | |
34217 | done | |
34218 | ||
fe0895cf VS |
34219 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
34220 | fi | |
34221 | fi | |
e6cc62c6 | 34222 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 34223 | if test -n "$STRIP"; then |
e6cc62c6 VS |
34224 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
34225 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 34226 | else |
e6cc62c6 VS |
34227 | echo "$as_me:$LINENO: result: no" >&5 |
34228 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34229 | fi |
34230 | ||
34231 | fi | |
34232 | ||
34233 | case ${host} in | |
34234 | *-hp-hpux* ) | |
34235 | INSTALL_DIR="mkdir" | |
34236 | ;; | |
34237 | *) INSTALL_DIR="$INSTALL -d" | |
34238 | ;; | |
34239 | esac | |
e6cc62c6 | 34240 | |
fe0895cf | 34241 | |
6b9d41a5 VS |
34242 | LDFLAGS_GUI= |
34243 | case ${host} in | |
34244 | *-*-cygwin* | *-*-mingw32* ) | |
34245 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
34246 | esac | |
34247 | ||
34248 | ||
fe0895cf | 34249 | fi |
e6cc62c6 VS |
34250 | |
34251 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
34252 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 34253 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 34254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 34255 | else |
e6cc62c6 | 34256 | |
fe0895cf VS |
34257 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34258 | egrep -s GNU > /dev/null); then | |
34259 | bakefile_cv_prog_makeisgnu="yes" | |
34260 | else | |
34261 | bakefile_cv_prog_makeisgnu="no" | |
34262 | fi | |
fe0895cf | 34263 | |
e6cc62c6 | 34264 | fi |
49b0a3aa VS |
34265 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34266 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34267 | |
34268 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34269 | IF_GNU_MAKE="" | |
34270 | else | |
34271 | IF_GNU_MAKE="#" | |
34272 | fi | |
fe0895cf | 34273 | |
e6cc62c6 VS |
34274 | |
34275 | ||
fe0895cf VS |
34276 | PLATFORM_UNIX=0 |
34277 | PLATFORM_WIN32=0 | |
34278 | PLATFORM_MSDOS=0 | |
34279 | PLATFORM_MAC=0 | |
34280 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 34281 | |
fe0895cf VS |
34282 | case "${host}" in |
34283 | *-*-cygwin* | *-*-mingw32* ) | |
34284 | PLATFORM_WIN32=1 | |
34285 | ;; | |
34286 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34287 | PLATFORM_MSDOS=1 | |
34288 | ;; | |
34289 | powerpc-*-darwin* ) | |
34290 | PLATFORM_MAC=1 | |
34291 | PLATFORM_MACOSX=1 | |
34292 | ;; | |
34293 | * ) | |
34294 | PLATFORM_UNIX=1 | |
34295 | ;; | |
34296 | esac | |
34297 | ||
fe0895cf | 34298 | |
e6cc62c6 VS |
34299 | |
34300 | ||
34301 | ||
34302 | ||
34303 | ||
34304 | ||
fe0895cf | 34305 | SO_SUFFIX="so" |
131f235d | 34306 | SO_SUFFIX_MODULE="so" |
fe0895cf VS |
34307 | EXEEXT="" |
34308 | DLLPREFIX=lib | |
131f235d | 34309 | DLLPREFIX_MODULE= |
e6cc62c6 | 34310 | |
fe0895cf VS |
34311 | case "${host}" in |
34312 | *-hp-hpux* ) | |
34313 | SO_SUFFIX="sl" | |
131f235d | 34314 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34315 | ;; |
34316 | *-*-aix* ) | |
34317 | SO_SUFFIX="a" | |
131f235d | 34318 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34319 | ;; |
34320 | *-*-cygwin* | *-*-mingw32* ) | |
34321 | SO_SUFFIX="dll" | |
131f235d | 34322 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34323 | EXEEXT=".exe" |
34324 | DLLPREFIX="" | |
34325 | ;; | |
34326 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
34327 | EXEEXT=".exe" | |
34328 | DLLPREFIX="" | |
34329 | ;; | |
34330 | powerpc-*-darwin* ) | |
34331 | SO_SUFFIX="dylib" | |
131f235d | 34332 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34333 | ;; |
34334 | esac | |
34335 | ||
fe0895cf | 34336 | |
e6cc62c6 VS |
34337 | |
34338 | ||
34339 | ||
34340 | ||
131f235d VS |
34341 | |
34342 | ||
fe0895cf VS |
34343 | SHARED_LD_CC="\$(CC) -shared -o" |
34344 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34345 | ||
34346 | if test "x$GCC" = "xyes"; then | |
34347 | PIC_FLAG="-fPIC" | |
34348 | fi | |
34349 | ||
34350 | case "${host}" in | |
34351 | *-hp-hpux* ) | |
34352 | if test "x$GCC" = "xyes"; then | |
34353 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34354 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34355 | else | |
34356 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34357 | ||
34358 | SHARED_LD_CC="${CC} -b -o" | |
34359 | SHARED_LD_CXX="${CXX} -b -o" | |
34360 | PIC_FLAG="+Z" | |
34361 | fi | |
34362 | ;; | |
34363 | ||
34364 | *-*-linux* ) | |
34365 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34366 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34367 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34368 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34370 | else |
fe0895cf | 34371 | |
e6cc62c6 VS |
34372 | cat >conftest.$ac_ext <<_ACEOF |
34373 | #line $LINENO "configure" | |
34374 | /* confdefs.h. */ | |
34375 | _ACEOF | |
34376 | cat confdefs.h >>conftest.$ac_ext | |
34377 | cat >>conftest.$ac_ext <<_ACEOF | |
34378 | /* end confdefs.h. */ | |
34379 | ||
34380 | int | |
34381 | main () | |
34382 | { | |
fe0895cf VS |
34383 | |
34384 | #ifndef __INTEL_COMPILER | |
34385 | #error Not icc | |
34386 | #endif | |
e6cc62c6 VS |
34387 | |
34388 | ; | |
34389 | return 0; | |
34390 | } | |
34391 | _ACEOF | |
34392 | rm -f conftest.$ac_objext | |
34393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34394 | (eval $ac_compile) 2>&5 | |
34395 | ac_status=$? | |
34396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34397 | (exit $ac_status); } && | |
34398 | { ac_try='test -s conftest.$ac_objext' | |
34399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34400 | (eval $ac_try) 2>&5 | |
34401 | ac_status=$? | |
34402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34403 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34404 | bakefile_cv_prog_icc=yes |
34405 | else | |
e6cc62c6 VS |
34406 | echo "$as_me: failed program was:" >&5 |
34407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34408 | ||
34409 | bakefile_cv_prog_icc=no | |
34410 | ||
fe0895cf | 34411 | fi |
e6cc62c6 | 34412 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34413 | |
e6cc62c6 VS |
34414 | fi |
34415 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34416 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34417 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34418 | PIC_FLAG="-KPIC" | |
34419 | fi | |
34420 | fi | |
34421 | ;; | |
34422 | ||
34423 | *-*-solaris2* ) | |
34424 | if test "x$GCC" != xyes ; then | |
34425 | SHARED_LD_CC="${CC} -G -o" | |
34426 | SHARED_LD_CXX="${CXX} -G -o" | |
34427 | PIC_FLAG="-KPIC" | |
34428 | fi | |
34429 | ;; | |
34430 | ||
34431 | *-*-darwin* ) | |
34432 | CFLAGS="$CFLAGS -fno-common" | |
34433 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34434 | |
34435 | ||
fe0895cf VS |
34436 | cat <<EOF >shared-ld-sh |
34437 | #!/bin/sh | |
34438 | #----------------------------------------------------------------------------- | |
34439 | #-- Name: distrib/mac/shared-ld-sh | |
34440 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34441 | #-- Author: Gilles Depeyrot | |
34442 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34443 | #-- Licence: any use permitted | |
34444 | #----------------------------------------------------------------------------- | |
34445 | ||
34446 | verbose=0 | |
34447 | args="" | |
34448 | objects="" | |
131f235d | 34449 | linking_flag="-dynamiclib" |
fe0895cf VS |
34450 | |
34451 | while test \${#} -gt 0; do | |
34452 | case \${1} in | |
34453 | ||
34454 | -v) | |
34455 | verbose=1 | |
34456 | ;; | |
34457 | ||
34458 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34459 | # collect these options and values | |
34460 | args="\${args} \${1} \${2}" | |
34461 | shift | |
34462 | ;; | |
34463 | ||
34464 | -l*|-L*|-flat_namespace) | |
34465 | # collect these options | |
34466 | args="\${args} \${1}" | |
34467 | ;; | |
34468 | ||
131f235d VS |
34469 | -dynamiclib|-bundle) |
34470 | linking_flag="\${1}" | |
fe0895cf VS |
34471 | ;; |
34472 | ||
34473 | -*) | |
34474 | echo "shared-ld: unhandled option '\${1}'" | |
34475 | exit 1 | |
34476 | ;; | |
34477 | ||
4d264332 | 34478 | *.o | *.a | *.dylib) |
fe0895cf VS |
34479 | # collect object files |
34480 | objects="\${objects} \${1}" | |
34481 | ;; | |
34482 | ||
34483 | *) | |
34484 | echo "shared-ld: unhandled argument '\${1}'" | |
34485 | exit 1 | |
34486 | ;; | |
34487 | ||
34488 | esac | |
34489 | shift | |
34490 | done | |
34491 | ||
34492 | # | |
34493 | # Link one module containing all the others | |
34494 | # | |
34495 | if test \${verbose} = 1; then | |
34496 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34497 | fi | |
34498 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34499 | status=\$? | |
34500 | if test \${status} != 0; then | |
34501 | exit \${status} | |
34502 | fi | |
34503 | ||
34504 | # | |
34505 | # Link the shared library from the single module created | |
34506 | # | |
34507 | if test \${verbose} = 1; then | |
131f235d | 34508 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34509 | fi |
131f235d | 34510 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34511 | status=\$? |
34512 | if test \${status} != 0; then | |
34513 | exit \${status} | |
34514 | fi | |
34515 | ||
34516 | # | |
34517 | # Remove intermediate module | |
34518 | # | |
34519 | rm -f master.\$\$.o | |
34520 | ||
34521 | exit 0 | |
34522 | EOF | |
34523 | chmod +x shared-ld-sh | |
34524 | ||
131f235d VS |
34525 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o" |
34526 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o" | |
fe0895cf | 34527 | SHARED_LD_CXX="$SHARED_LD_CC" |
131f235d | 34528 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" |
fe0895cf VS |
34529 | PIC_FLAG="-dynamic -fPIC" |
34530 | ;; | |
34531 | ||
34532 | *-*-aix* ) | |
34533 | if test "x$GCC" != "xyes"; then | |
34534 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34535 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34538 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34540 | else |
34541 | if test -n "$AIX_CXX_LD"; then | |
34542 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34543 | else | |
e6cc62c6 VS |
34544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34545 | for as_dir in $PATH | |
34546 | do | |
34547 | IFS=$as_save_IFS | |
34548 | test -z "$as_dir" && as_dir=. | |
34549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34551 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34553 | break 2 | |
34554 | fi | |
34555 | done | |
34556 | done | |
34557 | ||
fe0895cf VS |
34558 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34559 | fi | |
34560 | fi | |
e6cc62c6 | 34561 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34562 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34563 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34564 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34565 | else |
e6cc62c6 VS |
34566 | echo "$as_me:$LINENO: result: no" >&5 |
34567 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34568 | fi |
34569 | ||
34570 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34571 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34572 | fi | |
34573 | ;; | |
34574 | ||
34575 | *-*-beos* ) | |
34576 | SHARED_LD_CC="${LD} -shared -o" | |
34577 | SHARED_LD_CXX="${LD} -shared -o" | |
34578 | ;; | |
34579 | ||
34580 | *-*-irix* ) | |
34581 | if test "x$GCC" != "xyes"; then | |
34582 | PIC_FLAG="-KPIC" | |
34583 | fi | |
34584 | ;; | |
e6cc62c6 | 34585 | |
fe0895cf VS |
34586 | *-*-cygwin* | *-*-mingw32* ) |
34587 | PIC_FLAG="" | |
34588 | ;; | |
e6cc62c6 | 34589 | |
fe0895cf VS |
34590 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34591 | *-*-sunos4* | \ | |
34592 | *-*-osf* | \ | |
34593 | *-*-dgux5* | \ | |
34594 | *-*-sysv5* ) | |
34595 | ;; | |
34596 | ||
34597 | *) | |
e6cc62c6 VS |
34598 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34599 | echo "$as_me: error: unknown system type $host." >&2;} | |
34600 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34601 | esac |
34602 | ||
131f235d VS |
34603 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
34604 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
34605 | fi | |
34606 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 34607 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
34608 | fi |
34609 | ||
34610 | ||
34611 | ||
fe0895cf | 34612 | |
e6cc62c6 VS |
34613 | |
34614 | ||
34615 | ||
34616 | ||
fe0895cf VS |
34617 | USE_SOVERSION=0 |
34618 | USE_SOVERLINUX=0 | |
34619 | USE_SOVERSOLARIS=0 | |
34620 | USE_SOSYMLINKS=0 | |
34621 | USE_MACVERSION=0 | |
34622 | SONAME_FLAG= | |
34623 | ||
34624 | case "${host}" in | |
34625 | *-*-linux* ) | |
34626 | SONAME_FLAG="-Wl,-soname," | |
34627 | USE_SOVERSION=1 | |
34628 | USE_SOVERLINUX=1 | |
34629 | USE_SOSYMLINKS=1 | |
34630 | ;; | |
34631 | ||
34632 | *-*-solaris2* ) | |
34633 | SONAME_FLAG="-h " | |
34634 | USE_SOVERSION=1 | |
34635 | USE_SOVERSOLARIS=1 | |
34636 | USE_SOSYMLINKS=1 | |
34637 | ;; | |
34638 | ||
34639 | *-*-darwin* ) | |
34640 | USE_MACVERSION=1 | |
34641 | USE_SOVERSION=1 | |
34642 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34643 | ;; |
fe0895cf VS |
34644 | esac |
34645 | ||
fe0895cf | 34646 | |
e6cc62c6 VS |
34647 | |
34648 | ||
34649 | ||
34650 | ||
34651 | ||
34652 | ||
34653 | ||
49b0a3aa VS |
34654 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34655 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34656 | DEPS_TRACKING=0 | |
34657 | ||
fe0895cf | 34658 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34659 | DEPSMODE=gcc |
34660 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
34661 | case "${host}" in |
34662 | powerpc-*-darwin* ) | |
34663 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
34664 | ;; | |
34665 | * ) | |
34666 | DEPSFLAG_GCC="-MMD" | |
34667 | ;; | |
34668 | esac | |
49b0a3aa VS |
34669 | echo "$as_me:$LINENO: result: gcc" >&5 |
34670 | echo "${ECHO_T}gcc" >&6 | |
34671 | else | |
34672 | echo "$as_me:$LINENO: result: none" >&5 | |
34673 | echo "${ECHO_T}none" >&6 | |
34674 | fi | |
34675 | ||
34676 | if test $DEPS_TRACKING = 1 ; then | |
34677 | cat <<EOF >bk-deps | |
34678 | #!/bin/sh | |
34679 | ||
45842500 VS |
34680 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
34681 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
34682 | # |
34683 | # Permission is given to use this file in any way. | |
34684 | ||
34685 | DEPSMODE=$DEPSMODE | |
34686 | DEPSDIR=.deps | |
3e5c3c83 | 34687 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
34688 | |
34689 | mkdir -p \$DEPSDIR | |
34690 | ||
34691 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 34692 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
34693 | status=\${?} |
34694 | if test \${status} != 0 ; then | |
34695 | exit \${status} | |
34696 | fi | |
34697 | # move created file to the location we want it in: | |
34698 | while test \${#} -gt 0; do | |
34699 | case "\${1}" in | |
34700 | -o ) | |
34701 | shift | |
34702 | objfile=\${1} | |
34703 | ;; | |
34704 | -* ) | |
34705 | ;; | |
34706 | * ) | |
34707 | srcfile=\${1} | |
34708 | ;; | |
34709 | esac | |
34710 | shift | |
34711 | done | |
34712 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34713 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34714 | if test -f \$depfile ; then |
34715 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34716 | rm -f \$depfile | |
34717 | else | |
34718 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34719 | if test -f \$depfile ; then | |
4c8b7f4b | 34720 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34721 | rm -f \$depfile |
34722 | fi | |
34723 | fi | |
49b0a3aa VS |
34724 | exit 0 |
34725 | else | |
34726 | \${*} | |
34727 | exit \${?} | |
34728 | fi | |
34729 | EOF | |
34730 | chmod +x bk-deps | |
fe0895cf | 34731 | fi |
fe0895cf | 34732 | |
e6cc62c6 VS |
34733 | |
34734 | ||
34735 | ||
fe0895cf VS |
34736 | RESCOMP= |
34737 | SETFILE= | |
34738 | ||
e6cc62c6 | 34739 | case ${host} in |
fe0895cf VS |
34740 | *-*-cygwin* | *-*-mingw32* ) |
34741 | if test "$build" != "$host" ; then | |
34742 | RESCOMP=$host_alias-windres | |
34743 | else | |
34744 | # Extract the first word of "windres", so it can be a program name with args. | |
34745 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34746 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34748 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34750 | else |
34751 | if test -n "$RESCOMP"; then | |
34752 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34753 | else | |
e6cc62c6 VS |
34754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34755 | for as_dir in $PATH | |
34756 | do | |
34757 | IFS=$as_save_IFS | |
34758 | test -z "$as_dir" && as_dir=. | |
34759 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34761 | ac_cv_prog_RESCOMP="windres" | |
34762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34763 | break 2 | |
34764 | fi | |
34765 | done | |
34766 | done | |
34767 | ||
fe0895cf VS |
34768 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34769 | fi | |
34770 | fi | |
e6cc62c6 | 34771 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34772 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34773 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34774 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34775 | else |
e6cc62c6 VS |
34776 | echo "$as_me:$LINENO: result: no" >&5 |
34777 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34778 | fi |
34779 | ||
34780 | fi | |
34781 | ;; | |
e6cc62c6 | 34782 | |
fe0895cf VS |
34783 | *-*-darwin* ) |
34784 | # Extract the first word of "Rez", so it can be a program name with args. | |
34785 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34788 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34790 | else |
34791 | if test -n "$RESCOMP"; then | |
34792 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34793 | else | |
e6cc62c6 VS |
34794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34795 | for as_dir in $PATH | |
34796 | do | |
34797 | IFS=$as_save_IFS | |
34798 | test -z "$as_dir" && as_dir=. | |
34799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34801 | ac_cv_prog_RESCOMP="Rez" | |
34802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34803 | break 2 | |
34804 | fi | |
34805 | done | |
34806 | done | |
34807 | ||
fe0895cf VS |
34808 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34809 | fi | |
34810 | fi | |
e6cc62c6 | 34811 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34812 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34813 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34814 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34815 | else |
e6cc62c6 VS |
34816 | echo "$as_me:$LINENO: result: no" >&5 |
34817 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34818 | fi |
34819 | ||
34820 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34821 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34824 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34826 | else |
34827 | if test -n "$SETFILE"; then | |
34828 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34829 | else | |
e6cc62c6 VS |
34830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34831 | for as_dir in $PATH | |
34832 | do | |
34833 | IFS=$as_save_IFS | |
34834 | test -z "$as_dir" && as_dir=. | |
34835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34836 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34837 | ac_cv_prog_SETFILE="SetFile" | |
34838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34839 | break 2 | |
34840 | fi | |
34841 | done | |
34842 | done | |
34843 | ||
fe0895cf VS |
34844 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34845 | fi | |
34846 | fi | |
e6cc62c6 | 34847 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34848 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34849 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34850 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34851 | else |
e6cc62c6 VS |
34852 | echo "$as_me:$LINENO: result: no" >&5 |
34853 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34854 | fi |
34855 | ||
34856 | ;; | |
34857 | esac | |
34858 | ||
fe0895cf VS |
34859 | |
34860 | ||
e6cc62c6 VS |
34861 | |
34862 | ||
34863 | ||
34864 | ||
45842500 VS |
34865 | |
34866 | ||
34867 | ||
34868 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
34869 | if test "${enable_precomp_headers+set}" = set; then | |
34870 | enableval="$enable_precomp_headers" | |
34871 | bk_use_pch="$enableval" | |
34872 | fi; | |
34873 | ||
34874 | GCC_PCH=0 | |
34875 | ||
34876 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
34877 | if test "x$GCC" = "xyes"; then | |
34878 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
34879 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
34880 | cat >conftest.$ac_ext <<_ACEOF | |
34881 | #line $LINENO "configure" | |
34882 | /* confdefs.h. */ | |
34883 | _ACEOF | |
34884 | cat confdefs.h >>conftest.$ac_ext | |
34885 | cat >>conftest.$ac_ext <<_ACEOF | |
34886 | /* end confdefs.h. */ | |
34887 | ||
34888 | int | |
34889 | main () | |
34890 | { | |
34891 | ||
34892 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) || \ | |
34893 | (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4) | |
34894 | #error "no pch support" | |
34895 | #endif | |
34896 | ||
34897 | ; | |
34898 | return 0; | |
34899 | } | |
34900 | _ACEOF | |
34901 | rm -f conftest.$ac_objext | |
34902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34903 | (eval $ac_compile) 2>&5 | |
34904 | ac_status=$? | |
34905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34906 | (exit $ac_status); } && | |
34907 | { ac_try='test -s conftest.$ac_objext' | |
34908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34909 | (eval $ac_try) 2>&5 | |
34910 | ac_status=$? | |
34911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34912 | (exit $ac_status); }; }; then | |
34913 | ||
34914 | echo "$as_me:$LINENO: result: yes" >&5 | |
34915 | echo "${ECHO_T}yes" >&6 | |
34916 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
34917 | GCC_PCH=1 | |
34918 | ||
34919 | else | |
34920 | echo "$as_me: failed program was:" >&5 | |
34921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34922 | ||
34923 | ||
34924 | echo "$as_me:$LINENO: result: no" >&5 | |
34925 | echo "${ECHO_T}no" >&6 | |
34926 | ||
34927 | fi | |
34928 | rm -f conftest.$ac_objext conftest.$ac_ext | |
34929 | if test $GCC_PCH = 1 ; then | |
34930 | cat <<EOF >bk-make-pch | |
34931 | #!/bin/sh | |
34932 | ||
34933 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
34934 | # script. It is used to generated precompiled headers. | |
34935 | # | |
34936 | # Permission is given to use this file in any way. | |
34937 | ||
34938 | outfile="\${1}" | |
34939 | header="\${2}" | |
34940 | shift | |
34941 | shift | |
34942 | ||
34943 | compiler= | |
34944 | headerfile= | |
34945 | while test \${#} -gt 0; do | |
34946 | case "\${1}" in | |
34947 | -I* ) | |
34948 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
34949 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
34950 | headerfile="\${incdir}/\${header}" | |
34951 | fi | |
34952 | ;; | |
34953 | esac | |
34954 | compiler="\${compiler} \${1}" | |
34955 | shift | |
34956 | done | |
34957 | ||
34958 | if test "x\${headerfile}" = "x" ; then | |
34959 | echo "error: can't find header \${header} in include paths" >2 | |
34960 | else | |
34961 | if test -f \${outfile} ; then | |
34962 | rm -f \${outfile} | |
34963 | else | |
34964 | mkdir -p \`dirname \${outfile}\` | |
34965 | fi | |
34966 | depsfile=".deps/\`basename \${outfile}\`.d" | |
34967 | mkdir -p .deps | |
34968 | # can do this because gcc is >= 3.4: | |
34969 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
34970 | exit \${?} | |
34971 | fi | |
34972 | EOF | |
34973 | chmod +x bk-make-pch | |
34974 | fi | |
34975 | fi | |
34976 | fi | |
34977 | ||
34978 | ||
34979 | ||
34980 | ||
34981 | ||
d78c94f2 | 34982 | COND_BUILD_DEBUG="#" |
6f628073 | 34983 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34984 | COND_BUILD_DEBUG="" |
6f628073 VS |
34985 | fi |
34986 | ||
6c67131a VS |
34987 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
34988 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
34989 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
34990 | fi | |
34991 | ||
34992 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
34993 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34994 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
34995 | fi | |
34996 | ||
d78c94f2 | 34997 | COND_BUILD_RELEASE="#" |
6f628073 | 34998 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34999 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
35000 | fi |
35001 | ||
6c67131a VS |
35002 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
35003 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
35004 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
35005 | fi | |
35006 | ||
35007 | COND_DEBUG_FLAG_1="#" | |
35008 | if test "x$DEBUG_FLAG" = "x1" ; then | |
35009 | COND_DEBUG_FLAG_1="" | |
35010 | fi | |
35011 | ||
35012 | COND_DEBUG_INFO_0="#" | |
35013 | if test "x$DEBUG_INFO" = "x0" ; then | |
35014 | COND_DEBUG_INFO_0="" | |
35015 | fi | |
35016 | ||
35017 | COND_DEBUG_INFO_1="#" | |
35018 | if test "x$DEBUG_INFO" = "x1" ; then | |
35019 | COND_DEBUG_INFO_1="" | |
35020 | fi | |
35021 | ||
f95cd8fa VS |
35022 | COND_DEPS_TRACKING_0="#" |
35023 | if test "x$DEPS_TRACKING" = "x0" ; then | |
35024 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
35025 | fi |
35026 | ||
8ee2dd05 VS |
35027 | COND_DEPS_TRACKING_1="#" |
35028 | if test "x$DEPS_TRACKING" = "x1" ; then | |
35029 | COND_DEPS_TRACKING_1="" | |
35030 | fi | |
35031 | ||
45842500 VS |
35032 | COND_GCC_PCH_1="#" |
35033 | if test "x$GCC_PCH" = "x1" ; then | |
35034 | COND_GCC_PCH_1="" | |
35035 | fi | |
35036 | ||
6f628073 VS |
35037 | COND_MONOLITHIC_0="#" |
35038 | if test "x$MONOLITHIC" = "x0" ; then | |
35039 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
35040 | fi |
35041 | ||
6f628073 VS |
35042 | COND_MONOLITHIC_0_SHARED_0="#" |
35043 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
35044 | COND_MONOLITHIC_0_SHARED_0="" | |
35045 | fi | |
35046 | ||
35047 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
35048 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
35049 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 35050 | fi |
e6cc62c6 | 35051 | |
8772a1a7 VS |
35052 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
35053 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35054 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
35055 | fi | |
35056 | ||
250700e4 RD |
35057 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
35058 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
35059 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
35060 | fi | |
35061 | ||
8ee2dd05 VS |
35062 | COND_MONOLITHIC_0_SHARED_1="#" |
35063 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
35064 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 35065 | fi |
e6cc62c6 | 35066 | |
6f628073 VS |
35067 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
35068 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
35069 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
35070 | fi | |
35071 | ||
8772a1a7 VS |
35072 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
35073 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35074 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
35075 | fi | |
35076 | ||
250700e4 RD |
35077 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
35078 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
35079 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
35080 | fi | |
35081 | ||
3af038c0 VS |
35082 | COND_MONOLITHIC_1="#" |
35083 | if test "x$MONOLITHIC" = "x1" ; then | |
35084 | COND_MONOLITHIC_1="" | |
35085 | fi | |
35086 | ||
6f628073 VS |
35087 | COND_MONOLITHIC_1_SHARED_0="#" |
35088 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
35089 | COND_MONOLITHIC_1_SHARED_0="" | |
35090 | fi | |
35091 | ||
35092 | COND_MONOLITHIC_1_SHARED_1="#" | |
35093 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
35094 | COND_MONOLITHIC_1_SHARED_1="" | |
35095 | fi | |
35096 | ||
3af038c0 VS |
35097 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
35098 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35099 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
35100 | fi | |
35101 | ||
35102 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
35103 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35104 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
35105 | fi | |
35106 | ||
6f628073 VS |
35107 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
35108 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
35109 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
35110 | fi | |
35111 | ||
3af038c0 VS |
35112 | COND_PLATFORM_MACOSX_1="#" |
35113 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
35114 | COND_PLATFORM_MACOSX_1="" | |
35115 | fi | |
35116 | ||
250700e4 RD |
35117 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
35118 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
35119 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
35120 | fi | |
35121 | ||
35122 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
35123 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
35124 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
35125 | fi | |
35126 | ||
35127 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
35128 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
35129 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
35130 | fi | |
35131 | ||
8ee2dd05 VS |
35132 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
35133 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
35134 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
35135 | fi | |
35136 | ||
45842500 VS |
35137 | COND_PLATFORM_MAC_1="#" |
35138 | if test "x$PLATFORM_MAC" = "x1" ; then | |
35139 | COND_PLATFORM_MAC_1="" | |
35140 | fi | |
35141 | ||
8772a1a7 VS |
35142 | COND_PLATFORM_UNIX_0="#" |
35143 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
35144 | COND_PLATFORM_UNIX_0="" | |
35145 | fi | |
35146 | ||
3af038c0 VS |
35147 | COND_PLATFORM_UNIX_1="#" |
35148 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
35149 | COND_PLATFORM_UNIX_1="" | |
35150 | fi | |
35151 | ||
35152 | COND_PLATFORM_WIN32_0="#" | |
35153 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
35154 | COND_PLATFORM_WIN32_0="" | |
35155 | fi | |
35156 | ||
35157 | COND_PLATFORM_WIN32_1="#" | |
35158 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
35159 | COND_PLATFORM_WIN32_1="" | |
35160 | fi | |
35161 | ||
45842500 VS |
35162 | COND_SHARED_0="#" |
35163 | if test "x$SHARED" = "x0" ; then | |
35164 | COND_SHARED_0="" | |
35165 | fi | |
35166 | ||
250700e4 RD |
35167 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
35168 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35169 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
35170 | fi | |
35171 | ||
45842500 VS |
35172 | COND_SHARED_1="#" |
35173 | if test "x$SHARED" = "x1" ; then | |
35174 | COND_SHARED_1="" | |
35175 | fi | |
35176 | ||
250700e4 RD |
35177 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
35178 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35179 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
35180 | fi | |
35181 | ||
6f628073 VS |
35182 | COND_TOOLKIT_COCOA="#" |
35183 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
35184 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
35185 | fi |
35186 | ||
6f628073 VS |
35187 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
35188 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35189 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35190 | fi |
35191 | ||
6f628073 VS |
35192 | COND_TOOLKIT_GTK="#" |
35193 | if test "x$TOOLKIT" = "xGTK" ; then | |
35194 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
35195 | fi |
35196 | ||
6f628073 VS |
35197 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
35198 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
35199 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
35200 | fi |
35201 | ||
6f628073 VS |
35202 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
35203 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35204 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35205 | fi |
35206 | ||
3af038c0 VS |
35207 | COND_TOOLKIT_MAC="#" |
35208 | if test "x$TOOLKIT" = "xMAC" ; then | |
35209 | COND_TOOLKIT_MAC="" | |
35210 | fi | |
35211 | ||
8772a1a7 VS |
35212 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35213 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35214 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35215 | fi | |
35216 | ||
6f628073 VS |
35217 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35218 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35219 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35220 | fi |
35221 | ||
6f628073 VS |
35222 | COND_TOOLKIT_MGL="#" |
35223 | if test "x$TOOLKIT" = "xMGL" ; then | |
35224 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35225 | fi |
35226 | ||
6f628073 VS |
35227 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35228 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35229 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35230 | fi |
35231 | ||
6f628073 VS |
35232 | COND_TOOLKIT_MOTIF="#" |
35233 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35234 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35235 | fi |
35236 | ||
6f628073 VS |
35237 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35238 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35239 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35240 | fi |
e6cc62c6 | 35241 | |
6f628073 VS |
35242 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35243 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35244 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35245 | fi |
35246 | ||
6f628073 VS |
35247 | COND_TOOLKIT_MSW="#" |
35248 | if test "x$TOOLKIT" = "xMSW" ; then | |
35249 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35250 | fi |
35251 | ||
6f628073 VS |
35252 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35253 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35254 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35255 | fi |
e6cc62c6 | 35256 | |
6f628073 VS |
35257 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35258 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35259 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35260 | fi |
e6cc62c6 | 35261 | |
6f628073 VS |
35262 | COND_TOOLKIT_OS2="#" |
35263 | if test "x$TOOLKIT" = "xOS2" ; then | |
35264 | COND_TOOLKIT_OS2="" | |
9747f85d VS |
35265 | fi |
35266 | ||
8772a1a7 VS |
35267 | COND_TOOLKIT_OS2_USE_GUI_1="#" |
35268 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then | |
35269 | COND_TOOLKIT_OS2_USE_GUI_1="" | |
35270 | fi | |
35271 | ||
6f628073 VS |
35272 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#" |
35273 | if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35274 | COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="" | |
f95cd8fa VS |
35275 | fi |
35276 | ||
6f628073 VS |
35277 | COND_TOOLKIT_X11="#" |
35278 | if test "x$TOOLKIT" = "xX11" ; then | |
35279 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35280 | fi |
35281 | ||
6f628073 VS |
35282 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35283 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35284 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35285 | fi |
35286 | ||
3af038c0 VS |
35287 | COND_UNICODE_1="#" |
35288 | if test "x$UNICODE" = "x1" ; then | |
35289 | COND_UNICODE_1="" | |
35290 | fi | |
35291 | ||
35292 | COND_USE_GUI_0="#" | |
35293 | if test "x$USE_GUI" = "x0" ; then | |
35294 | COND_USE_GUI_0="" | |
35295 | fi | |
35296 | ||
35297 | COND_USE_GUI_1="#" | |
35298 | if test "x$USE_GUI" = "x1" ; then | |
35299 | COND_USE_GUI_1="" | |
35300 | fi | |
35301 | ||
e6cc62c6 | 35302 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35303 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35304 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35305 | fi |
e6cc62c6 VS |
35306 | |
35307 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35308 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35309 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35310 | fi |
35311 | ||
66a96744 VS |
35312 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35313 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35314 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35315 | fi | |
35316 | ||
35317 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35318 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35319 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35320 | fi | |
35321 | ||
35322 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35323 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35324 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35325 | fi | |
35326 | ||
6f628073 VS |
35327 | COND_USE_SOSYMLINKS_1="#" |
35328 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35329 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35330 | fi |
35331 | ||
6f628073 VS |
35332 | COND_USE_SOVERLINUX_1="#" |
35333 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35334 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35335 | fi |
35336 | ||
6f628073 VS |
35337 | COND_USE_SOVERSION_0="#" |
35338 | if test "x$USE_SOVERSION" = "x0" ; then | |
35339 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35340 | fi |
fe0895cf | 35341 | |
6f628073 VS |
35342 | COND_USE_SOVERSOLARIS_1="#" |
35343 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35344 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35345 | fi |
fe0895cf | 35346 | |
3af038c0 VS |
35347 | COND_WXUNIV_1="#" |
35348 | if test "x$WXUNIV" = "x1" ; then | |
35349 | COND_WXUNIV_1="" | |
35350 | fi | |
35351 | ||
66a96744 VS |
35352 | COND_WXUSE_EXPAT_BUILTIN="#" |
35353 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35354 | COND_WXUSE_EXPAT_BUILTIN="" | |
35355 | fi | |
35356 | ||
02980527 VS |
35357 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35358 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35359 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35360 | fi | |
35361 | ||
35362 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35363 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35364 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35365 | fi | |
35366 | ||
35367 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35368 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35369 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35370 | fi | |
35371 | ||
35372 | COND_WXUSE_ODBC_BUILTIN="#" | |
35373 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35374 | COND_WXUSE_ODBC_BUILTIN="" | |
35375 | fi | |
35376 | ||
35377 | COND_WXUSE_REGEX_BUILTIN="#" | |
35378 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35379 | COND_WXUSE_REGEX_BUILTIN="" | |
35380 | fi | |
35381 | ||
35382 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35383 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35384 | COND_WXUSE_ZLIB_BUILTIN="" | |
35385 | fi | |
35386 | ||
1772d20c | 35387 | |
fe0895cf | 35388 | |
fe0895cf | 35389 | |
fe0895cf | 35390 | |
45842500 VS |
35391 | if test $GCC_PCH = 1 ; then |
35392 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
35393 | else | |
35394 | case "${host}" in | |
35395 | powerpc-*-darwin* ) | |
35396 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
35397 | ;; | |
35398 | *) | |
35399 | ;; | |
35400 | esac | |
35401 | fi | |
fe0895cf VS |
35402 | |
35403 | ||
fddeb06b | 35404 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35405 | |
35406 | ||
35407 | ||
35408 | ||
35409 | ||
35410 | ||
35411 | ||
35412 | ||
35413 | ||
35414 | ||
35415 | ||
35416 | ||
35417 | ||
35418 | ||
35419 | ||
35420 | ||
35421 | ||
35422 | ||
35423 | ||
35424 | ||
35425 | ||
35426 | ||
35427 | ||
35428 | ||
35429 | ||
35430 | ||
35431 | ||
35432 | ||
35433 | ||
35434 | ||
35435 | ||
35436 | ||
35437 | ||
35438 | ||
35439 | ||
35440 | ||
35441 | ||
35442 | ||
35443 | ||
35444 | ||
35445 | ||
35446 | ||
35447 | ||
35448 | ||
35449 | ||
35450 | ||
35451 | ||
35452 | ||
35453 | ||
35454 | ||
35455 | ||
35456 | ||
35457 | ||
35458 | ||
35459 | ||
35460 | ||
35461 | ||
35462 | ||
35463 | ||
35464 | ||
35465 | ||
35466 | ||
35467 | ||
35468 | ||
35469 | ||
35470 | ||
35471 | ||
35472 | ||
35473 | ||
35474 | ||
35475 | ||
35476 | ||
35477 | ||
35478 | ||
35479 | ||
35480 | ||
35481 | ||
35482 | ||
35483 | ||
35484 | ||
35485 | ||
35486 | ||
35487 | ||
35488 | ||
35489 | ||
35490 | ||
35491 | ||
35492 | ||
35493 | ||
35494 | ||
35495 | ||
35496 | ||
35497 | ||
35498 | ||
fe0895cf | 35499 | |
f0290fca VS |
35500 | |
35501 | ||
67c13b6c | 35502 | |
e6cc62c6 VS |
35503 | |
35504 | ||
35505 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35506 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35507 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
35508 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
35509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35510 | else | |
35511 | cat >conftest.make <<\_ACEOF | |
35512 | all: | |
35513 | @echo 'ac_maketemp="$(MAKE)"' | |
35514 | _ACEOF | |
35515 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35516 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35517 | if test -n "$ac_maketemp"; then | |
35518 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35519 | else | |
35520 | eval ac_cv_prog_make_${ac_make}_set=no | |
35521 | fi | |
35522 | rm -f conftest.make | |
35523 | fi | |
35524 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35525 | echo "$as_me:$LINENO: result: yes" >&5 | |
35526 | echo "${ECHO_T}yes" >&6 | |
35527 | SET_MAKE= | |
35528 | else | |
35529 | echo "$as_me:$LINENO: result: no" >&5 | |
35530 | echo "${ECHO_T}no" >&6 | |
35531 | SET_MAKE="MAKE=${MAKE-make}" | |
35532 | fi | |
35533 | ||
35534 | ||
35535 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
35536 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
35537 | fi | |
35538 | ||
35539 | ac_config_headers="$ac_config_headers setup.h" | |
35540 | ||
35541 | ||
81345eef | 35542 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
35543 | |
35544 | ||
35545 | ac_config_commands="$ac_config_commands default" | |
35546 | ||
35547 | ||
9de9b8f0 | 35548 | |
6c3e36af VZ |
35549 | if test "$wxUSE_GUI" = "yes"; then |
35550 | SUBDIRS="samples demos utils contrib" | |
35551 | else SUBDIRS="samples utils" | |
35552 | fi | |
e6cc62c6 | 35553 | |
166263e6 | 35554 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 35555 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 35556 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 35557 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
35558 | makefiles="samples/Makefile.in $makefiles" |
35559 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
35560 | if test -d $srcdir/samples/$sample; then |
35561 | makefiles="samples/$sample/Makefile.in $makefiles" | |
35562 | fi | |
35563 | done | |
35564 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
35565 | fi | |
6c3e36af | 35566 | else if test ${subdir} = "samples"; then |
8772a1a7 | 35567 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af VZ |
35568 | else makefiles="utils/HelpGen/Makefile.in \ |
35569 | utils/HelpGen/src/Makefile.in \ | |
35570 | utils/makegen/Makefile.in" | |
35571 | fi | |
35572 | fi | |
35573 | ||
9747f85d VS |
35574 | for mkin in $makefiles ; do |
35575 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
35576 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 35577 | |
9747f85d VS |
35578 | done |
35579 | fi | |
35580 | done | |
e6cc62c6 | 35581 | |
9de9b8f0 | 35582 | |
e6cc62c6 VS |
35583 | cat >confcache <<\_ACEOF |
35584 | # This file is a shell script that caches the results of configure | |
35585 | # tests run on this system so they can be shared between configure | |
35586 | # scripts and configure runs, see configure's option --config-cache. | |
35587 | # It is not useful on other systems. If it contains results you don't | |
35588 | # want to keep, you may remove or edit it. | |
35589 | # | |
35590 | # config.status only pays attention to the cache file if you give it | |
35591 | # the --recheck option to rerun configure. | |
35592 | # | |
35593 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35594 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35595 | # following values. | |
35596 | ||
35597 | _ACEOF | |
35598 | ||
35599 | # The following way of writing the cache mishandles newlines in values, | |
35600 | # but we know of no workaround that is simple, portable, and efficient. | |
35601 | # So, don't put newlines in cache variables' values. | |
35602 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35603 | # and sets the high bit in the cache file unless we assign to the vars. | |
35604 | { | |
35605 | (set) 2>&1 | | |
35606 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35607 | *ac_space=\ *) | |
35608 | # `set' does not quote correctly, so add quotes (double-quote | |
35609 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35610 | sed -n \ | |
35611 | "s/'/'\\\\''/g; | |
35612 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
35613 | ;; | |
35614 | *) | |
35615 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35616 | sed -n \ | |
35617 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
35618 | ;; | |
35619 | esac; | |
35620 | } | | |
35621 | sed ' | |
35622 | t clear | |
35623 | : clear | |
35624 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35625 | t end | |
35626 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35627 | : end' >>confcache | |
35628 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35629 | if test -w $cache_file; then | |
35630 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35631 | cat confcache >$cache_file | |
35632 | else | |
35633 | echo "not updating unwritable cache $cache_file" | |
35634 | fi | |
35635 | fi | |
35636 | rm -f confcache | |
35637 | ||
35638 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
35639 | # Let make expand exec_prefix. | |
35640 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
35641 | ||
35642 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
35643 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
35644 | # trailing colons and then remove the whole line if VPATH becomes empty | |
35645 | # (actually we leave an empty line to preserve line numbers). | |
35646 | if test "x$srcdir" = x.; then | |
35647 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
35648 | s/:*\$(srcdir):*/:/; | |
35649 | s/:*\${srcdir}:*/:/; | |
35650 | s/:*@srcdir@:*/:/; | |
35651 | s/^\([^=]*=[ ]*\):*/\1/; | |
35652 | s/:*$//; | |
35653 | s/^[^=]*=[ ]*$//; | |
35654 | }' | |
35655 | fi | |
35656 | ||
35657 | DEFS=-DHAVE_CONFIG_H | |
35658 | ||
35659 | ac_libobjs= | |
35660 | ac_ltlibobjs= | |
35661 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
35662 | # 1. Remove the extension, and $U if already installed. | |
35663 | ac_i=`echo "$ac_i" | | |
35664 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
35665 | # 2. Add them. | |
35666 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
35667 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
35668 | done | |
35669 | LIBOBJS=$ac_libobjs | |
35670 | ||
35671 | LTLIBOBJS=$ac_ltlibobjs | |
35672 | ||
35673 | ||
35674 | ||
35675 | : ${CONFIG_STATUS=./config.status} | |
35676 | ac_clean_files_save=$ac_clean_files | |
35677 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
35678 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
35679 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
35680 | cat >$CONFIG_STATUS <<_ACEOF | |
35681 | #! $SHELL | |
35682 | # Generated by $as_me. | |
35683 | # Run this file to recreate the current configuration. | |
35684 | # Compiler output produced by configure, useful for debugging | |
35685 | # configure, is in config.log if it exists. | |
35686 | ||
35687 | debug=false | |
35688 | ac_cs_recheck=false | |
35689 | ac_cs_silent=false | |
35690 | SHELL=\${CONFIG_SHELL-$SHELL} | |
35691 | _ACEOF | |
35692 | ||
35693 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35694 | ## --------------------- ## | |
35695 | ## M4sh Initialization. ## | |
35696 | ## --------------------- ## | |
35697 | ||
35698 | # Be Bourne compatible | |
35699 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35700 | emulate sh | |
35701 | NULLCMD=: | |
35702 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35703 | # is contrary to our usage. Disable this feature. | |
35704 | alias -g '${1+"$@"}'='"$@"' | |
35705 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
35706 | set -o posix | |
35707 | fi | |
35708 | ||
35709 | # Support unset when possible. | |
35710 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
35711 | as_unset=unset | |
35712 | else | |
35713 | as_unset=false | |
35714 | fi | |
35715 | ||
35716 | ||
35717 | # Work around bugs in pre-3.0 UWIN ksh. | |
35718 | $as_unset ENV MAIL MAILPATH | |
35719 | PS1='$ ' | |
35720 | PS2='> ' | |
35721 | PS4='+ ' | |
35722 | ||
35723 | # NLS nuisances. | |
35724 | for as_var in \ | |
35725 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
35726 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
35727 | LC_TELEPHONE LC_TIME | |
35728 | do | |
35729 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
35730 | eval $as_var=C; export $as_var | |
35731 | else | |
35732 | $as_unset $as_var | |
35733 | fi | |
35734 | done | |
35735 | ||
35736 | # Required to use basename. | |
35737 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35738 | as_expr=expr | |
35739 | else | |
35740 | as_expr=false | |
35741 | fi | |
35742 | ||
35743 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
35744 | as_basename=basename | |
35745 | else | |
35746 | as_basename=false | |
35747 | fi | |
35748 | ||
35749 | ||
35750 | # Name of the executable. | |
35751 | as_me=`$as_basename "$0" || | |
35752 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
35753 | X"$0" : 'X\(//\)$' \| \ | |
35754 | X"$0" : 'X\(/\)$' \| \ | |
35755 | . : '\(.\)' 2>/dev/null || | |
35756 | echo X/"$0" | | |
35757 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
35758 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
35759 | /^X\/\(\/\).*/{ s//\1/; q; } | |
35760 | s/.*/./; q'` | |
35761 | ||
35762 | ||
35763 | # PATH needs CR, and LINENO needs CR and PATH. | |
35764 | # Avoid depending upon Character Ranges. | |
35765 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35766 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35767 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35768 | as_cr_digits='0123456789' | |
35769 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35770 | ||
35771 | # The user is always right. | |
35772 | if test "${PATH_SEPARATOR+set}" != set; then | |
35773 | echo "#! /bin/sh" >conf$$.sh | |
35774 | echo "exit 0" >>conf$$.sh | |
35775 | chmod +x conf$$.sh | |
35776 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
35777 | PATH_SEPARATOR=';' | |
35778 | else | |
35779 | PATH_SEPARATOR=: | |
35780 | fi | |
35781 | rm -f conf$$.sh | |
35782 | fi | |
35783 | ||
35784 | ||
35785 | as_lineno_1=$LINENO | |
35786 | as_lineno_2=$LINENO | |
35787 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35788 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35789 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
35790 | # Find who we are. Look in the path if we contain no path at all | |
35791 | # relative or not. | |
35792 | case $0 in | |
35793 | *[\\/]* ) as_myself=$0 ;; | |
35794 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35795 | for as_dir in $PATH | |
35796 | do | |
35797 | IFS=$as_save_IFS | |
35798 | test -z "$as_dir" && as_dir=. | |
35799 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
35800 | done | |
35801 | ||
35802 | ;; | |
35803 | esac | |
35804 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
35805 | # in which case we are not to be found in the path. | |
35806 | if test "x$as_myself" = x; then | |
35807 | as_myself=$0 | |
35808 | fi | |
35809 | if test ! -f "$as_myself"; then | |
35810 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
35811 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
35812 | { (exit 1); exit 1; }; } | |
35813 | fi | |
35814 | case $CONFIG_SHELL in | |
35815 | '') | |
35816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35817 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
35818 | do | |
35819 | IFS=$as_save_IFS | |
35820 | test -z "$as_dir" && as_dir=. | |
35821 | for as_base in sh bash ksh sh5; do | |
35822 | case $as_dir in | |
35823 | /*) | |
35824 | if ("$as_dir/$as_base" -c ' | |
35825 | as_lineno_1=$LINENO | |
35826 | as_lineno_2=$LINENO | |
35827 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35828 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35829 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
35830 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
35831 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
35832 | CONFIG_SHELL=$as_dir/$as_base | |
35833 | export CONFIG_SHELL | |
35834 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
35835 | fi;; | |
35836 | esac | |
35837 | done | |
35838 | done | |
35839 | ;; | |
35840 | esac | |
35841 | ||
35842 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35843 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35844 | # line-number line before each line; the second 'sed' does the real | |
35845 | # work. The second script uses 'N' to pair each line-number line | |
35846 | # with the numbered line, and appends trailing '-' during | |
35847 | # substitution so that $LINENO is not a special case at line end. | |
35848 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35849 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35850 | sed '=' <$as_myself | | |
35851 | sed ' | |
35852 | N | |
35853 | s,$,-, | |
35854 | : loop | |
35855 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35856 | t loop | |
35857 | s,-$,, | |
35858 | s,^['$as_cr_digits']*\n,, | |
35859 | ' >$as_me.lineno && | |
35860 | chmod +x $as_me.lineno || | |
35861 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35862 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35863 | { (exit 1); exit 1; }; } | |
35864 | ||
35865 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35866 | # (the dirname of $[0] is not the place where we might find the | |
35867 | # original and so on. Autoconf is especially sensible to this). | |
35868 | . ./$as_me.lineno | |
35869 | # Exit status is that of the last command. | |
35870 | exit | |
35871 | } | |
35872 | ||
35873 | ||
35874 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35875 | *c*,-n*) ECHO_N= ECHO_C=' | |
35876 | ' ECHO_T=' ' ;; | |
35877 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35878 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35879 | esac | |
35880 | ||
35881 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35882 | as_expr=expr | |
35883 | else | |
35884 | as_expr=false | |
35885 | fi | |
35886 | ||
35887 | rm -f conf$$ conf$$.exe conf$$.file | |
35888 | echo >conf$$.file | |
35889 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35890 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35891 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35892 | if test -f conf$$.exe; then | |
35893 | # Don't use ln at all; we don't have any links | |
35894 | as_ln_s='cp -p' | |
35895 | else | |
35896 | as_ln_s='ln -s' | |
35897 | fi | |
35898 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35899 | as_ln_s=ln | |
35900 | else | |
35901 | as_ln_s='cp -p' | |
35902 | fi | |
35903 | rm -f conf$$ conf$$.exe conf$$.file | |
35904 | ||
35905 | if mkdir -p . 2>/dev/null; then | |
35906 | as_mkdir_p=: | |
35907 | else | |
35908 | as_mkdir_p=false | |
35909 | fi | |
35910 | ||
35911 | as_executable_p="test -f" | |
35912 | ||
35913 | # Sed expression to map a string onto a valid CPP name. | |
35914 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35915 | ||
35916 | # Sed expression to map a string onto a valid variable name. | |
35917 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35918 | ||
35919 | ||
35920 | # IFS | |
35921 | # We need space, tab and new line, in precisely that order. | |
35922 | as_nl=' | |
35923 | ' | |
35924 | IFS=" $as_nl" | |
35925 | ||
35926 | # CDPATH. | |
35927 | $as_unset CDPATH | |
35928 | ||
35929 | exec 6>&1 | |
35930 | ||
35931 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35932 | # report actual input values of CONFIG_FILES etc. instead of their | |
35933 | # values after options handling. Logging --version etc. is OK. | |
35934 | exec 5>>config.log | |
35935 | { | |
35936 | echo | |
35937 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35938 | ## Running $as_me. ## | |
35939 | _ASBOX | |
35940 | } >&5 | |
35941 | cat >&5 <<_CSEOF | |
35942 | ||
35943 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35944 | generated by GNU Autoconf 2.57. Invocation command line was | |
35945 | ||
35946 | CONFIG_FILES = $CONFIG_FILES | |
35947 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35948 | CONFIG_LINKS = $CONFIG_LINKS | |
35949 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35950 | $ $0 $@ | |
35951 | ||
35952 | _CSEOF | |
35953 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35954 | echo >&5 | |
35955 | _ACEOF | |
35956 | ||
35957 | # Files that config.status was made for. | |
35958 | if test -n "$ac_config_files"; then | |
35959 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35960 | fi | |
35961 | ||
35962 | if test -n "$ac_config_headers"; then | |
35963 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35964 | fi | |
35965 | ||
35966 | if test -n "$ac_config_links"; then | |
35967 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35968 | fi | |
35969 | ||
35970 | if test -n "$ac_config_commands"; then | |
35971 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35972 | fi | |
35973 | ||
35974 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35975 | ||
35976 | ac_cs_usage="\ | |
35977 | \`$as_me' instantiates files from templates according to the | |
35978 | current configuration. | |
35979 | ||
35980 | Usage: $0 [OPTIONS] [FILE]... | |
35981 | ||
35982 | -h, --help print this help, then exit | |
35983 | -V, --version print version number, then exit | |
35984 | -q, --quiet do not print progress messages | |
35985 | -d, --debug don't remove temporary files | |
35986 | --recheck update $as_me by reconfiguring in the same conditions | |
35987 | --file=FILE[:TEMPLATE] | |
35988 | instantiate the configuration file FILE | |
35989 | --header=FILE[:TEMPLATE] | |
35990 | instantiate the configuration header FILE | |
35991 | ||
35992 | Configuration files: | |
35993 | $config_files | |
35994 | ||
35995 | Configuration headers: | |
35996 | $config_headers | |
35997 | ||
35998 | Configuration commands: | |
35999 | $config_commands | |
36000 | ||
36001 | Report bugs to <bug-autoconf@gnu.org>." | |
36002 | _ACEOF | |
36003 | ||
36004 | cat >>$CONFIG_STATUS <<_ACEOF | |
36005 | ac_cs_version="\\ | |
36006 | wxWindows config.status 2.5.0 | |
36007 | configured by $0, generated by GNU Autoconf 2.57, | |
36008 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
36009 | ||
36010 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
36011 | Free Software Foundation, Inc. | |
36012 | This config.status script is free software; the Free Software Foundation | |
36013 | gives unlimited permission to copy, distribute and modify it." | |
36014 | srcdir=$srcdir | |
36015 | INSTALL="$INSTALL" | |
36016 | _ACEOF | |
36017 | ||
36018 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36019 | # If no file are specified by the user, then we need to provide default | |
36020 | # value. By we need to know if files were specified by the user. | |
36021 | ac_need_defaults=: | |
36022 | while test $# != 0 | |
36023 | do | |
36024 | case $1 in | |
36025 | --*=*) | |
36026 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
36027 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
36028 | ac_shift=: | |
36029 | ;; | |
36030 | -*) | |
36031 | ac_option=$1 | |
36032 | ac_optarg=$2 | |
36033 | ac_shift=shift | |
36034 | ;; | |
36035 | *) # This is not an option, so the user has probably given explicit | |
36036 | # arguments. | |
36037 | ac_option=$1 | |
36038 | ac_need_defaults=false;; | |
36039 | esac | |
36040 | ||
36041 | case $ac_option in | |
36042 | # Handling of the options. | |
36043 | _ACEOF | |
36044 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36045 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
36046 | ac_cs_recheck=: ;; | |
36047 | --version | --vers* | -V ) | |
36048 | echo "$ac_cs_version"; exit 0 ;; | |
36049 | --he | --h) | |
36050 | # Conflict between --help and --header | |
36051 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
36052 | Try \`$0 --help' for more information." >&5 | |
36053 | echo "$as_me: error: ambiguous option: $1 | |
36054 | Try \`$0 --help' for more information." >&2;} | |
36055 | { (exit 1); exit 1; }; };; | |
36056 | --help | --hel | -h ) | |
36057 | echo "$ac_cs_usage"; exit 0 ;; | |
36058 | --debug | --d* | -d ) | |
36059 | debug=: ;; | |
36060 | --file | --fil | --fi | --f ) | |
36061 | $ac_shift | |
36062 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
36063 | ac_need_defaults=false;; | |
36064 | --header | --heade | --head | --hea ) | |
36065 | $ac_shift | |
36066 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
36067 | ac_need_defaults=false;; | |
36068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
36069 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
36070 | ac_cs_silent=: ;; | |
36071 | ||
36072 | # This is an error. | |
36073 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
36074 | Try \`$0 --help' for more information." >&5 | |
36075 | echo "$as_me: error: unrecognized option: $1 | |
36076 | Try \`$0 --help' for more information." >&2;} | |
36077 | { (exit 1); exit 1; }; } ;; | |
36078 | ||
36079 | *) ac_config_targets="$ac_config_targets $1" ;; | |
36080 | ||
36081 | esac | |
36082 | shift | |
36083 | done | |
36084 | ||
36085 | ac_configure_extra_args= | |
36086 | ||
36087 | if $ac_cs_silent; then | |
36088 | exec 6>/dev/null | |
36089 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
36090 | fi |
36091 | ||
e6cc62c6 VS |
36092 | _ACEOF |
36093 | cat >>$CONFIG_STATUS <<_ACEOF | |
36094 | if \$ac_cs_recheck; then | |
36095 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
36096 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
36097 | fi |
36098 | ||
e6cc62c6 | 36099 | _ACEOF |
fe0895cf | 36100 | |
e6cc62c6 | 36101 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 36102 | # |
e6cc62c6 | 36103 | # INIT-COMMANDS section. |
10f2d63a | 36104 | # |
10f2d63a | 36105 | |
a0b9e27f | 36106 | |
e6cc62c6 VS |
36107 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
36108 | LN_S="${LN_S}" | |
10f2d63a | 36109 | |
10f2d63a | 36110 | |
10f2d63a | 36111 | |
e6cc62c6 | 36112 | _ACEOF |
8284b0c5 | 36113 | |
52127426 | 36114 | |
247f5006 | 36115 | |
e6cc62c6 VS |
36116 | cat >>$CONFIG_STATUS <<\_ACEOF |
36117 | for ac_config_target in $ac_config_targets | |
247f5006 | 36118 | do |
e6cc62c6 VS |
36119 | case "$ac_config_target" in |
36120 | # Handling of arguments. | |
81345eef VZ |
36121 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
36122 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
36123 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 36124 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
36125 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
36126 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
36127 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
36128 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
36129 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
36130 | esac |
36131 | done | |
36132 | ||
e6cc62c6 VS |
36133 | # If the user did not use the arguments to specify the items to instantiate, |
36134 | # then the envvar interface is used. Set only those that are not. | |
36135 | # We use the long form for the default assignment because of an extremely | |
36136 | # bizarre bug on SunOS 4.1.3. | |
36137 | if $ac_need_defaults; then | |
36138 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
36139 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
36140 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
36141 | fi | |
36142 | ||
36143 | # Have a temporary directory for convenience. Make it in the build tree | |
36144 | # simply because there is no reason to put it here, and in addition, | |
36145 | # creating and moving files from /tmp can sometimes cause problems. | |
36146 | # Create a temporary directory, and hook for its removal unless debugging. | |
36147 | $debug || | |
36148 | { | |
36149 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
36150 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
36151 | } | |
247f5006 | 36152 | |
e6cc62c6 | 36153 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 36154 | |
e6cc62c6 VS |
36155 | { |
36156 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
36157 | test -n "$tmp" && test -d "$tmp" | |
36158 | } || | |
36159 | { | |
36160 | tmp=./confstat$$-$RANDOM | |
36161 | (umask 077 && mkdir $tmp) | |
36162 | } || | |
36163 | { | |
36164 | echo "$me: cannot create a temporary directory in ." >&2 | |
36165 | { (exit 1); exit 1; } | |
36166 | } | |
36167 | ||
36168 | _ACEOF | |
36169 | ||
36170 | cat >>$CONFIG_STATUS <<_ACEOF | |
36171 | ||
36172 | # | |
36173 | # CONFIG_FILES section. | |
36174 | # | |
247f5006 | 36175 | |
e6cc62c6 VS |
36176 | # No need to generate the scripts if there are no CONFIG_FILES. |
36177 | # This happens for instance when ./config.status config.h | |
36178 | if test -n "\$CONFIG_FILES"; then | |
36179 | # Protect against being on the right side of a sed subst in config.status. | |
36180 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
36181 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
36182 | s,@SHELL@,$SHELL,;t t | |
36183 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
36184 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
36185 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
36186 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
36187 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
36188 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
36189 | s,@exec_prefix@,$exec_prefix,;t t | |
36190 | s,@prefix@,$prefix,;t t | |
36191 | s,@program_transform_name@,$program_transform_name,;t t | |
36192 | s,@bindir@,$bindir,;t t | |
36193 | s,@sbindir@,$sbindir,;t t | |
36194 | s,@libexecdir@,$libexecdir,;t t | |
36195 | s,@datadir@,$datadir,;t t | |
36196 | s,@sysconfdir@,$sysconfdir,;t t | |
36197 | s,@sharedstatedir@,$sharedstatedir,;t t | |
36198 | s,@localstatedir@,$localstatedir,;t t | |
36199 | s,@libdir@,$libdir,;t t | |
36200 | s,@includedir@,$includedir,;t t | |
36201 | s,@oldincludedir@,$oldincludedir,;t t | |
36202 | s,@infodir@,$infodir,;t t | |
36203 | s,@mandir@,$mandir,;t t | |
36204 | s,@build_alias@,$build_alias,;t t | |
36205 | s,@host_alias@,$host_alias,;t t | |
36206 | s,@target_alias@,$target_alias,;t t | |
36207 | s,@DEFS@,$DEFS,;t t | |
36208 | s,@ECHO_C@,$ECHO_C,;t t | |
36209 | s,@ECHO_N@,$ECHO_N,;t t | |
36210 | s,@ECHO_T@,$ECHO_T,;t t | |
36211 | s,@LIBS@,$LIBS,;t t | |
36212 | s,@build@,$build,;t t | |
36213 | s,@build_cpu@,$build_cpu,;t t | |
36214 | s,@build_vendor@,$build_vendor,;t t | |
36215 | s,@build_os@,$build_os,;t t | |
36216 | s,@host@,$host,;t t | |
36217 | s,@host_cpu@,$host_cpu,;t t | |
36218 | s,@host_vendor@,$host_vendor,;t t | |
36219 | s,@host_os@,$host_os,;t t | |
36220 | s,@target@,$target,;t t | |
36221 | s,@target_cpu@,$target_cpu,;t t | |
36222 | s,@target_vendor@,$target_vendor,;t t | |
36223 | s,@target_os@,$target_os,;t t | |
36224 | s,@CC@,$CC,;t t | |
36225 | s,@CFLAGS@,$CFLAGS,;t t | |
36226 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36227 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36228 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36229 | s,@EXEEXT@,$EXEEXT,;t t | |
36230 | s,@OBJEXT@,$OBJEXT,;t t | |
36231 | s,@CPP@,$CPP,;t t | |
36232 | s,@EGREP@,$EGREP,;t t | |
36233 | s,@CXX@,$CXX,;t t | |
36234 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36235 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36236 | s,@RANLIB@,$RANLIB,;t t | |
36237 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36238 | s,@AR@,$AR,;t t | |
36239 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36240 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36241 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36242 | s,@STRIP@,$STRIP,;t t | |
36243 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
36244 | s,@YACC@,$YACC,;t t | |
36245 | s,@LEX@,$LEX,;t t | |
36246 | s,@LEXLIB@,$LEXLIB,;t t | |
36247 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
36248 | s,@LN_S@,$LN_S,;t t | |
36249 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36250 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36251 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36252 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36253 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36254 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36255 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36256 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36257 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36258 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36259 | s,@X_LIBS@,$X_LIBS,;t t | |
36260 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36261 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36262 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36263 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36264 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36265 | s,@RESCOMP@,$RESCOMP,;t t |
36266 | s,@DEREZ@,$DEREZ,;t t | |
36267 | s,@SETFILE@,$SETFILE,;t t | |
36268 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36269 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36270 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36271 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36272 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36273 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36274 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36275 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36276 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36277 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36278 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36279 | s,@VENDOR@,$VENDOR,;t t |
36280 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36281 | s,@WXUNIV@,$WXUNIV,;t t |
36282 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36283 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36284 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
bb41dcbe | 36285 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36286 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36287 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36288 | s,@UNICODE@,$UNICODE,;t t |
36289 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36290 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36291 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36292 | s,@SHARED@,$SHARED,;t t |
36293 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36294 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36295 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
ea66c762 | 36296 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36297 | s,@SET_MAKE@,$SET_MAKE,;t t |
36298 | s,@MAKE_SET@,$MAKE_SET,;t t | |
36299 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 36300 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36301 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36302 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36303 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36304 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36305 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
36306 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
131f235d | 36307 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
e6cc62c6 | 36308 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36309 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36310 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36311 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36312 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36313 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36314 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36315 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36316 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36317 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36318 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36319 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36320 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36321 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36322 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 36323 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 36324 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36325 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36326 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36327 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36328 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36329 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36330 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36331 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36332 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36333 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 36334 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 36335 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36336 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36337 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 36338 | 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 | 36339 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
8ee2dd05 | 36340 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36341 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 36342 | 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 | 36343 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
3af038c0 | 36344 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36345 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36346 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36347 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36348 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36349 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36350 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36351 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36352 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36353 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
8ee2dd05 | 36354 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 36355 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
8772a1a7 | 36356 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 VS |
36357 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
36358 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
36359 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 36360 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 36361 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
45842500 | 36362 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 36363 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
36364 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36365 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36366 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36367 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 36368 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 36369 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 36370 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
36371 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36372 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36373 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
36374 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
36375 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36376 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36377 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36378 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36379 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 | 36380 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t |
8772a1a7 | 36381 | s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t |
6f628073 VS |
36382 | s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t |
36383 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t | |
36384 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 VS |
36385 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
36386 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
36387 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36388 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36389 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36390 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36391 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36392 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
6f628073 VS |
36393 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36394 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36395 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36396 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36397 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36398 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36399 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36400 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36401 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36402 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36403 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36404 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
36405 | s,@LEX_STEM@,$LEX_STEM,;t t |
36406 | s,@PATH_IFS@,$PATH_IFS,;t t | |
36407 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36408 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36409 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36410 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36411 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36412 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36413 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36414 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36415 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36416 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36417 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36418 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36419 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36420 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36421 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36422 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36423 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36424 | s,@WX_ALL@,$WX_ALL,;t t | |
36425 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36426 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36427 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36428 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36429 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36430 | s,@USE_GUI@,$USE_GUI,;t t | |
36431 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36432 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36433 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36434 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36435 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36436 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36437 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36438 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36439 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36440 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36441 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36442 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36443 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36444 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36445 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36446 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36447 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
36448 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
f0290fca VS |
36449 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36450 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36451 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36452 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36453 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36454 | s,@GUIDIST@,$GUIDIST,;t t | |
36455 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36456 | s,@DISTDIR@,$DISTDIR,;t t | |
36457 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36458 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36459 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36460 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36461 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36462 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36463 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36464 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36465 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36466 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36467 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
36468 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
36469 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
36470 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36471 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36472 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36473 | s,@GCC@,$GCC,;t t | |
36474 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36475 | s,@AS@,$AS,;t t | |
36476 | s,@NM@,$NM,;t t | |
36477 | s,@LD@,$LD,;t t | |
36478 | s,@MAKEINFO@,$MAKEINFO,;t t | |
36479 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
36480 | s,@LIBOBJS@,$LIBOBJS,;t t |
36481 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
36482 | CEOF |
36483 | ||
e6cc62c6 VS |
36484 | _ACEOF |
36485 | ||
36486 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36487 | # Split the substitutions into bite-sized pieces for seds with | |
36488 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
36489 | ac_max_sed_lines=48 | |
36490 | ac_sed_frag=1 # Number of current file. | |
36491 | ac_beg=1 # First line for current file. | |
36492 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
36493 | ac_more_lines=: | |
36494 | ac_sed_cmds= | |
36495 | while $ac_more_lines; do | |
36496 | if test $ac_beg -gt 1; then | |
36497 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 36498 | else |
e6cc62c6 VS |
36499 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
36500 | fi | |
36501 | if test ! -s $tmp/subs.frag; then | |
36502 | ac_more_lines=false | |
36503 | else | |
36504 | # The purpose of the label and of the branching condition is to | |
36505 | # speed up the sed processing (if there are no `@' at all, there | |
36506 | # is no need to browse any of the substitutions). | |
36507 | # These are the two extra sed commands mentioned above. | |
36508 | (echo ':t | |
36509 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
36510 | if test -z "$ac_sed_cmds"; then | |
36511 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
36512 | else | |
36513 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
36514 | fi | |
36515 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
36516 | ac_beg=$ac_end | |
36517 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 36518 | fi |
e6cc62c6 VS |
36519 | done |
36520 | if test -z "$ac_sed_cmds"; then | |
36521 | ac_sed_cmds=cat | |
10f2d63a | 36522 | fi |
e6cc62c6 | 36523 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 36524 | |
e6cc62c6 VS |
36525 | _ACEOF |
36526 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36527 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 36528 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36529 | case $ac_file in |
36530 | - | *:- | *:-:* ) # input from stdin | |
36531 | cat >$tmp/stdin | |
36532 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36533 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36534 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36535 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36536 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 36537 | esac |
247f5006 | 36538 | |
e6cc62c6 VS |
36539 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
36540 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36541 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36542 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36543 | X"$ac_file" : 'X\(//\)$' \| \ | |
36544 | X"$ac_file" : 'X\(/\)' \| \ | |
36545 | . : '\(.\)' 2>/dev/null || | |
36546 | echo X"$ac_file" | | |
36547 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36548 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36549 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36550 | /^X\(\/\).*/{ s//\1/; q; } | |
36551 | s/.*/./; q'` | |
36552 | { if $as_mkdir_p; then | |
36553 | mkdir -p "$ac_dir" | |
a0b9e27f | 36554 | else |
e6cc62c6 VS |
36555 | as_dir="$ac_dir" |
36556 | as_dirs= | |
36557 | while test ! -d "$as_dir"; do | |
36558 | as_dirs="$as_dir $as_dirs" | |
36559 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36560 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36561 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36562 | X"$as_dir" : 'X\(//\)$' \| \ | |
36563 | X"$as_dir" : 'X\(/\)' \| \ | |
36564 | . : '\(.\)' 2>/dev/null || | |
36565 | echo X"$as_dir" | | |
36566 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36567 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36568 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36569 | /^X\(\/\).*/{ s//\1/; q; } | |
36570 | s/.*/./; q'` | |
36571 | done | |
36572 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36573 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36574 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36575 | { (exit 1); exit 1; }; }; } | |
36576 | ||
36577 | ac_builddir=. | |
36578 | ||
36579 | if test "$ac_dir" != .; then | |
36580 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36581 | # A "../" for each directory in $ac_dir_suffix. | |
36582 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36583 | else | |
36584 | ac_dir_suffix= ac_top_builddir= | |
36585 | fi | |
247f5006 | 36586 | |
e6cc62c6 VS |
36587 | case $srcdir in |
36588 | .) # No --srcdir option. We are building in place. | |
36589 | ac_srcdir=. | |
36590 | if test -z "$ac_top_builddir"; then | |
36591 | ac_top_srcdir=. | |
36592 | else | |
36593 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36594 | fi ;; | |
36595 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36596 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36597 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 36598 | *) # Relative path. |
e6cc62c6 VS |
36599 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
36600 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36601 | esac | |
36602 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36603 | # absolute. | |
36604 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36605 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36606 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36607 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 36608 | |
247f5006 | 36609 | |
e6cc62c6 VS |
36610 | case $INSTALL in |
36611 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
36612 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 36613 | esac |
247f5006 | 36614 | |
e6cc62c6 VS |
36615 | if test x"$ac_file" != x-; then |
36616 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
36617 | echo "$as_me: creating $ac_file" >&6;} | |
36618 | rm -f "$ac_file" | |
36619 | fi | |
36620 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36621 | # use $as_me), people would be surprised to read: | |
36622 | # /* config.h. Generated by config.status. */ | |
36623 | if test x"$ac_file" = x-; then | |
36624 | configure_input= | |
36625 | else | |
36626 | configure_input="$ac_file. " | |
36627 | fi | |
36628 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
36629 | sed 's,.*/,,'` by configure." | |
36630 | ||
36631 | # First look for the input files in the build tree, otherwise in the | |
36632 | # src tree. | |
36633 | ac_file_inputs=`IFS=: | |
36634 | for f in $ac_file_in; do | |
36635 | case $f in | |
36636 | -) echo $tmp/stdin ;; | |
36637 | [\\/$]*) | |
36638 | # Absolute (can't be DOS-style, as IFS=:) | |
36639 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36640 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36641 | { (exit 1); exit 1; }; } | |
36642 | echo $f;; | |
36643 | *) # Relative | |
36644 | if test -f "$f"; then | |
36645 | # Build tree | |
36646 | echo $f | |
36647 | elif test -f "$srcdir/$f"; then | |
36648 | # Source tree | |
36649 | echo $srcdir/$f | |
36650 | else | |
36651 | # /dev/null tree | |
36652 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36653 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36654 | { (exit 1); exit 1; }; } | |
36655 | fi;; | |
36656 | esac | |
36657 | done` || { (exit 1); exit 1; } | |
36658 | _ACEOF | |
36659 | cat >>$CONFIG_STATUS <<_ACEOF | |
36660 | sed "$ac_vpsub | |
36661 | $extrasub | |
36662 | _ACEOF | |
36663 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36664 | :t | |
36665 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
36666 | s,@configure_input@,$configure_input,;t t | |
36667 | s,@srcdir@,$ac_srcdir,;t t | |
36668 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
36669 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
36670 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
36671 | s,@builddir@,$ac_builddir,;t t | |
36672 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
36673 | s,@top_builddir@,$ac_top_builddir,;t t | |
36674 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
36675 | s,@INSTALL@,$ac_INSTALL,;t t | |
36676 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
36677 | rm -f $tmp/stdin | |
36678 | if test x"$ac_file" != x-; then | |
36679 | mv $tmp/out $ac_file | |
36680 | else | |
36681 | cat $tmp/out | |
36682 | rm -f $tmp/out | |
36683 | fi | |
36684 | ||
36685 | done | |
36686 | _ACEOF | |
36687 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36688 | ||
36689 | # | |
36690 | # CONFIG_HEADER section. | |
36691 | # | |
10f2d63a VZ |
36692 | |
36693 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
36694 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
36695 | # | |
36696 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
36697 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
36698 | ac_dB='[ ].*$,\1#\2' | |
36699 | ac_dC=' ' | |
36700 | ac_dD=',;t' | |
36701 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
36702 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
36703 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 36704 | ac_uC=' ' |
e6cc62c6 VS |
36705 | ac_uD=',;t' |
36706 | ||
36707 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 36708 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36709 | case $ac_file in |
36710 | - | *:- | *:-:* ) # input from stdin | |
36711 | cat >$tmp/stdin | |
36712 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36713 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36714 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36715 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36716 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
36717 | esac |
36718 | ||
e6cc62c6 VS |
36719 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
36720 | echo "$as_me: creating $ac_file" >&6;} | |
36721 | ||
36722 | # First look for the input files in the build tree, otherwise in the | |
36723 | # src tree. | |
36724 | ac_file_inputs=`IFS=: | |
36725 | for f in $ac_file_in; do | |
36726 | case $f in | |
36727 | -) echo $tmp/stdin ;; | |
36728 | [\\/$]*) | |
36729 | # Absolute (can't be DOS-style, as IFS=:) | |
36730 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36731 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36732 | { (exit 1); exit 1; }; } | |
36733 | echo $f;; | |
36734 | *) # Relative | |
36735 | if test -f "$f"; then | |
36736 | # Build tree | |
36737 | echo $f | |
36738 | elif test -f "$srcdir/$f"; then | |
36739 | # Source tree | |
36740 | echo $srcdir/$f | |
36741 | else | |
36742 | # /dev/null tree | |
36743 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36744 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36745 | { (exit 1); exit 1; }; } | |
36746 | fi;; | |
36747 | esac | |
36748 | done` || { (exit 1); exit 1; } | |
36749 | # Remove the trailing spaces. | |
36750 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
36751 | ||
36752 | _ACEOF | |
36753 | ||
36754 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
36755 | # `conftest.undefs', that substitutes the proper values into | |
36756 | # config.h.in to produce config.h. The first handles `#define' | |
36757 | # templates, and the second `#undef' templates. | |
36758 | # And first: Protect against being on the right side of a sed subst in | |
36759 | # config.status. Protect against being in an unquoted here document | |
36760 | # in config.status. | |
36761 | rm -f conftest.defines conftest.undefs | |
36762 | # Using a here document instead of a string reduces the quoting nightmare. | |
36763 | # Putting comments in sed scripts is not portable. | |
36764 | # | |
36765 | # `end' is used to avoid that the second main sed command (meant for | |
36766 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
36767 | # See the Autoconf documentation for `clear'. | |
36768 | cat >confdef2sed.sed <<\_ACEOF | |
36769 | s/[\\&,]/\\&/g | |
36770 | s,[\\$`],\\&,g | |
36771 | t clear | |
36772 | : clear | |
36773 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
36774 | t end | |
36775 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
36776 | : end | |
36777 | _ACEOF | |
36778 | # If some macros were called several times there might be several times | |
36779 | # the same #defines, which is useless. Nevertheless, we may not want to | |
36780 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
36781 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
36782 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
36783 | rm -f confdef2sed.sed | |
10f2d63a VZ |
36784 | |
36785 | # This sed command replaces #undef with comments. This is necessary, for | |
36786 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
36787 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
36788 | cat >>conftest.undefs <<\_ACEOF |
36789 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
36790 | _ACEOF | |
36791 | ||
36792 | # Break up conftest.defines because some shells have a limit on the size | |
36793 | # of here documents, and old seds have small limits too (100 cmds). | |
36794 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
36795 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
36796 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
36797 | echo ' :' >>$CONFIG_STATUS | |
36798 | rm -f conftest.tail | |
36799 | while grep . conftest.defines >/dev/null | |
36800 | do | |
36801 | # Write a limited-size here document to $tmp/defines.sed. | |
36802 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
36803 | # Speed up: don't consider the non `#define' lines. | |
36804 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
36805 | # Work around the forget-to-reset-the-flag bug. | |
36806 | echo 't clr' >>$CONFIG_STATUS | |
36807 | echo ': clr' >>$CONFIG_STATUS | |
36808 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
36809 | echo 'CEOF | |
36810 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
36811 | rm -f $tmp/in | |
36812 | mv $tmp/out $tmp/in | |
36813 | ' >>$CONFIG_STATUS | |
36814 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
36815 | rm -f conftest.defines | |
36816 | mv conftest.tail conftest.defines | |
36817 | done | |
36818 | rm -f conftest.defines | |
36819 | echo ' fi # grep' >>$CONFIG_STATUS | |
36820 | echo >>$CONFIG_STATUS | |
10f2d63a | 36821 | |
e6cc62c6 VS |
36822 | # Break up conftest.undefs because some shells have a limit on the size |
36823 | # of here documents, and old seds have small limits too (100 cmds). | |
36824 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 36825 | rm -f conftest.tail |
e6cc62c6 | 36826 | while grep . conftest.undefs >/dev/null |
10f2d63a | 36827 | do |
e6cc62c6 VS |
36828 | # Write a limited-size here document to $tmp/undefs.sed. |
36829 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
36830 | # Speed up: don't consider the non `#undef' | |
36831 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
36832 | # Work around the forget-to-reset-the-flag bug. | |
36833 | echo 't clr' >>$CONFIG_STATUS | |
36834 | echo ': clr' >>$CONFIG_STATUS | |
36835 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 36836 | echo 'CEOF |
e6cc62c6 VS |
36837 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
36838 | rm -f $tmp/in | |
36839 | mv $tmp/out $tmp/in | |
36840 | ' >>$CONFIG_STATUS | |
36841 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
36842 | rm -f conftest.undefs | |
36843 | mv conftest.tail conftest.undefs | |
10f2d63a | 36844 | done |
e6cc62c6 VS |
36845 | rm -f conftest.undefs |
36846 | ||
36847 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36848 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36849 | # use $as_me), people would be surprised to read: | |
36850 | # /* config.h. Generated by config.status. */ | |
36851 | if test x"$ac_file" = x-; then | |
36852 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 36853 | else |
e6cc62c6 | 36854 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 36855 | fi |
e6cc62c6 VS |
36856 | cat $tmp/in >>$tmp/config.h |
36857 | rm -f $tmp/in | |
36858 | if test x"$ac_file" != x-; then | |
36859 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
36860 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
36861 | echo "$as_me: $ac_file is unchanged" >&6;} | |
36862 | else | |
36863 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36864 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36865 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36866 | X"$ac_file" : 'X\(//\)$' \| \ | |
36867 | X"$ac_file" : 'X\(/\)' \| \ | |
36868 | . : '\(.\)' 2>/dev/null || | |
36869 | echo X"$ac_file" | | |
36870 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36871 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36872 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36873 | /^X\(\/\).*/{ s//\1/; q; } | |
36874 | s/.*/./; q'` | |
36875 | { if $as_mkdir_p; then | |
36876 | mkdir -p "$ac_dir" | |
36877 | else | |
36878 | as_dir="$ac_dir" | |
36879 | as_dirs= | |
36880 | while test ! -d "$as_dir"; do | |
36881 | as_dirs="$as_dir $as_dirs" | |
36882 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36883 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36884 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36885 | X"$as_dir" : 'X\(//\)$' \| \ | |
36886 | X"$as_dir" : 'X\(/\)' \| \ | |
36887 | . : '\(.\)' 2>/dev/null || | |
36888 | echo X"$as_dir" | | |
36889 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36890 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36891 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36892 | /^X\(\/\).*/{ s//\1/; q; } | |
36893 | s/.*/./; q'` | |
36894 | done | |
36895 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36896 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36897 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36898 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36899 | |
e6cc62c6 VS |
36900 | rm -f $ac_file |
36901 | mv $tmp/config.h $ac_file | |
36902 | fi | |
36903 | else | |
36904 | cat $tmp/config.h | |
36905 | rm -f $tmp/config.h | |
36906 | fi | |
36907 | done | |
36908 | _ACEOF | |
36909 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36910 | |
e6cc62c6 VS |
36911 | # |
36912 | # CONFIG_COMMANDS section. | |
36913 | # | |
36914 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36915 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36916 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36917 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36918 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36919 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36920 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36921 | X"$ac_dest" : 'X\(/\)' \| \ | |
36922 | . : '\(.\)' 2>/dev/null || | |
36923 | echo X"$ac_dest" | | |
36924 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36925 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36926 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36927 | /^X\(\/\).*/{ s//\1/; q; } | |
36928 | s/.*/./; q'` | |
36929 | ac_builddir=. | |
36930 | ||
36931 | if test "$ac_dir" != .; then | |
36932 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36933 | # A "../" for each directory in $ac_dir_suffix. | |
36934 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36935 | else | |
36936 | ac_dir_suffix= ac_top_builddir= | |
36937 | fi | |
36938 | ||
36939 | case $srcdir in | |
36940 | .) # No --srcdir option. We are building in place. | |
36941 | ac_srcdir=. | |
36942 | if test -z "$ac_top_builddir"; then | |
36943 | ac_top_srcdir=. | |
36944 | else | |
36945 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36946 | fi ;; | |
36947 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36948 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36949 | ac_top_srcdir=$srcdir ;; | |
36950 | *) # Relative path. | |
36951 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36952 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36953 | esac | |
36954 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36955 | # absolute. | |
36956 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36957 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36958 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36959 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36960 | ||
36961 | ||
36962 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36963 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36964 | case $ac_dest in | |
36965 | default ) | |
652d930d | 36966 | if test ! -h wx-config; then |
991a5759 | 36967 | chmod +x wx-config |
3a922bb4 RL |
36968 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36969 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36970 | fi |
665bbe97 | 36971 | |
00cf1208 RR |
36972 | if test ! -d lib; then |
36973 | mkdir lib | |
36974 | fi | |
36975 | if test ! -d lib/wx; then | |
36976 | mkdir lib/wx | |
36977 | fi | |
36978 | if test ! -d lib/wx/include; then | |
36979 | mkdir lib/wx/include | |
36980 | fi | |
3a922bb4 RL |
36981 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36982 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36983 | fi |
3a922bb4 RL |
36984 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36985 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36986 | fi |
36987 | if test -f setup.h; then | |
3a922bb4 | 36988 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36989 | fi |
e6cc62c6 VS |
36990 | ;; |
36991 | esac | |
36992 | done | |
36993 | _ACEOF | |
2224580a | 36994 | |
e6cc62c6 | 36995 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36996 | |
e6cc62c6 VS |
36997 | { (exit 0); exit 0; } |
36998 | _ACEOF | |
36999 | chmod +x $CONFIG_STATUS | |
37000 | ac_clean_files=$ac_clean_files_save | |
37001 | ||
37002 | ||
37003 | # configure is writing to config.log, and then calls config.status. | |
37004 | # config.status does its own redirection, appending to config.log. | |
37005 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
37006 | # by configure, so config.status won't be able to write to it; its | |
37007 | # output is simply discarded. So we exec the FD to /dev/null, | |
37008 | # effectively closing config.log, so it can be properly (re)opened and | |
37009 | # appended to by config.status. When coming back to configure, we | |
37010 | # need to make the FD available again. | |
37011 | if test "$no_create" != yes; then | |
37012 | ac_cs_success=: | |
37013 | ac_config_status_args= | |
37014 | test "$silent" = yes && | |
37015 | ac_config_status_args="$ac_config_status_args --quiet" | |
37016 | exec 5>/dev/null | |
37017 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
37018 | exec 5>>config.log | |
37019 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
37020 | # would make configure fail if this is the last instruction. | |
37021 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
37022 | fi |
37023 | ||
672abd7a VS |
37024 | # |
37025 | # CONFIG_SUBDIRS section. | |
37026 | # | |
37027 | if test "$no_recursion" != yes; then | |
37028 | ||
37029 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
37030 | ac_sub_configure_args= | |
37031 | ac_prev= | |
37032 | for ac_arg in $ac_configure_args; do | |
37033 | if test -n "$ac_prev"; then | |
37034 | ac_prev= | |
37035 | continue | |
37036 | fi | |
37037 | case $ac_arg in | |
37038 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
37039 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
37040 | ac_prev=cache_file ;; | |
37041 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
37042 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
37043 | | --c=*) | |
37044 | ;; | |
37045 | --config-cache | -C) | |
37046 | ;; | |
37047 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
37048 | ac_prev=srcdir ;; | |
37049 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
37050 | ;; | |
37051 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
37052 | ac_prev=prefix ;; | |
37053 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
37054 | ;; | |
37055 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
37056 | esac | |
37057 | done | |
37058 | ||
37059 | # Always prepend --prefix to ensure using the same prefix | |
37060 | # in subdir configurations. | |
37061 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
37062 | ||
37063 | ac_popdir=`pwd` | |
37064 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
37065 | ||
37066 | # Do not complain, so a configure script can configure whichever | |
37067 | # parts of a large source tree are present. | |
37068 | test -d $srcdir/$ac_dir || continue | |
37069 | ||
37070 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
37071 | echo "$as_me: configuring in $ac_dir" >&6;} | |
37072 | { if $as_mkdir_p; then | |
37073 | mkdir -p "$ac_dir" | |
37074 | else | |
37075 | as_dir="$ac_dir" | |
37076 | as_dirs= | |
37077 | while test ! -d "$as_dir"; do | |
37078 | as_dirs="$as_dir $as_dirs" | |
37079 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
37080 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37081 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
37082 | X"$as_dir" : 'X\(//\)$' \| \ | |
37083 | X"$as_dir" : 'X\(/\)' \| \ | |
37084 | . : '\(.\)' 2>/dev/null || | |
37085 | echo X"$as_dir" | | |
37086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37088 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37089 | /^X\(\/\).*/{ s//\1/; q; } | |
37090 | s/.*/./; q'` | |
37091 | done | |
37092 | test ! -n "$as_dirs" || mkdir $as_dirs | |
37093 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
37094 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
37095 | { (exit 1); exit 1; }; }; } | |
37096 | ||
37097 | ac_builddir=. | |
37098 | ||
37099 | if test "$ac_dir" != .; then | |
37100 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
37101 | # A "../" for each directory in $ac_dir_suffix. | |
37102 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
37103 | else | |
37104 | ac_dir_suffix= ac_top_builddir= | |
37105 | fi | |
37106 | ||
37107 | case $srcdir in | |
37108 | .) # No --srcdir option. We are building in place. | |
37109 | ac_srcdir=. | |
37110 | if test -z "$ac_top_builddir"; then | |
37111 | ac_top_srcdir=. | |
37112 | else | |
37113 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37114 | fi ;; | |
37115 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37116 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37117 | ac_top_srcdir=$srcdir ;; | |
37118 | *) # Relative path. | |
37119 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
37120 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37121 | esac | |
37122 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
37123 | # absolute. | |
37124 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37125 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37126 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37127 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
37128 | ||
37129 | ||
37130 | cd $ac_dir | |
37131 | ||
37132 | # Check for guested configure; otherwise get Cygnus style configure. | |
37133 | if test -f $ac_srcdir/configure.gnu; then | |
37134 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
37135 | elif test -f $ac_srcdir/configure; then | |
37136 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
37137 | elif test -f $ac_srcdir/configure.in; then | |
37138 | ac_sub_configure=$ac_configure | |
37139 | else | |
37140 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
37141 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
37142 | ac_sub_configure= | |
37143 | fi | |
37144 | ||
37145 | # The recursion is here. | |
37146 | if test -n "$ac_sub_configure"; then | |
37147 | # Make the cache file name correct relative to the subdirectory. | |
37148 | case $cache_file in | |
37149 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
37150 | *) # Relative path. | |
37151 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
37152 | esac | |
37153 | ||
37154 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
37155 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
37156 | # The eval makes quoting arguments work. | |
37157 | eval $ac_sub_configure $ac_sub_configure_args \ | |
37158 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
37159 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
37160 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
37161 | { (exit 1); exit 1; }; } | |
37162 | fi | |
37163 | ||
37164 | cd $ac_popdir | |
37165 | done | |
37166 | fi | |
37167 | ||
8284b0c5 | 37168 | |
2b5f62a0 VZ |
37169 | echo |
37170 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
37171 | echo "" | |
37172 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 37173 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
37174 | |
37175 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
37176 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
37177 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
37178 | ||
0c98a14e GD |
37179 | echo " What level of wxWindows compatibility should be enabled?" |
37180 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
37181 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
37182 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 37183 | |
2b5f62a0 VZ |
37184 | echo " Which libraries should wxWindows use?" |
37185 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
37186 | echo " png ${wxUSE_LIBPNG-none}" | |
37187 | echo " regex ${wxUSE_REGEX}" | |
37188 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
37189 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 37190 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 37191 | echo " expat ${wxUSE_EXPAT}" |
2b5f62a0 VZ |
37192 | |
37193 | echo "" | |
37194 |