]>
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. | |
32ddf007 | 4 | # Generated by GNU Autoconf 2.59 for wxWindows 2.5.1. |
e6cc62c6 VS |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
32ddf007 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
fe0895cf | 14 | |
e6cc62c6 VS |
15 | # Be Bourne compatible |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
32ddf007 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
fe0895cf | 26 | |
e6cc62c6 | 27 | # Support unset when possible. |
32ddf007 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
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 | |
32ddf007 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
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 | |
32ddf007 | 224 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
225 | as_mkdir_p=false |
226 | fi | |
fe0895cf | 227 | |
e6cc62c6 | 228 | as_executable_p="test -f" |
fe0895cf | 229 | |
e6cc62c6 | 230 | # Sed expression to map a string onto a valid CPP name. |
32ddf007 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf | 232 | |
e6cc62c6 | 233 | # Sed expression to map a string onto a valid variable name. |
32ddf007 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
fe0895cf VS |
235 | |
236 | ||
e6cc62c6 VS |
237 | # IFS |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
fe0895cf | 242 | |
e6cc62c6 VS |
243 | # CDPATH. |
244 | $as_unset CDPATH | |
fe0895cf VS |
245 | |
246 | ||
e6cc62c6 VS |
247 | # Name of the host. |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 251 | |
e6cc62c6 | 252 | exec 6>&1 |
fe0895cf | 253 | |
a0b9e27f | 254 | # |
e6cc62c6 VS |
255 | # Initializations. |
256 | # | |
a0b9e27f | 257 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
258 | ac_config_libobj_dir=. |
259 | cross_compiling=no | |
260 | subdirs= | |
261 | MFLAGS= | |
262 | MAKEFLAGS= | |
263 | SHELL=${CONFIG_SHELL-/bin/sh} | |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
270 | # Identity of this package. | |
271 | PACKAGE_NAME='wxWindows' | |
272 | PACKAGE_TARNAME='wxwindows' | |
e46d2a18 VS |
273 | PACKAGE_VERSION='2.5.1' |
274 | PACKAGE_STRING='wxWindows 2.5.1' | |
e6cc62c6 VS |
275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' |
276 | ||
277 | ac_unique_file="wx-config.in" | |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
314 | ||
672abd7a | 315 | ac_subdirs_all="$ac_subdirs_all src/expat" |
243f8ae5 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_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_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 317 | ac_subst_files='' |
10f2d63a VZ |
318 | |
319 | # Initialize some variables set by options. | |
e6cc62c6 VS |
320 | ac_init_help= |
321 | ac_init_version=false | |
10f2d63a VZ |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
e6cc62c6 | 324 | cache_file=/dev/null |
10f2d63a | 325 | exec_prefix=NONE |
10f2d63a | 326 | no_create= |
10f2d63a VZ |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
10f2d63a VZ |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
e6cc62c6 VS |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
10f2d63a VZ |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
10f2d63a VZ |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
e6cc62c6 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
e6cc62c6 | 371 | case $ac_option in |
10f2d63a VZ |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 376 | bindir=$ac_optarg ;; |
10f2d63a VZ |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 379 | ac_prev=build_alias ;; |
10f2d63a | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 381 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
10f2d63a VZ |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
e6cc62c6 | 397 | datadir=$ac_optarg ;; |
10f2d63a VZ |
398 | |
399 | -disable-* | --disable-*) | |
e6cc62c6 | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 401 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
407 | |
408 | -enable-* | --enable-*) | |
e6cc62c6 | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 410 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
417 | *) ac_optarg=yes ;; |
418 | esac | |
e6cc62c6 | 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 428 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
e6cc62c6 VS |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
10f2d63a VZ |
440 | |
441 | -host | --host | --hos | --ho) | |
e6cc62c6 | 442 | ac_prev=host_alias ;; |
10f2d63a | 443 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 444 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 451 | includedir=$ac_optarg ;; |
10f2d63a VZ |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 456 | infodir=$ac_optarg ;; |
10f2d63a VZ |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 461 | libdir=$ac_optarg ;; |
10f2d63a VZ |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 468 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 477 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 482 | mandir=$ac_optarg ;; |
10f2d63a VZ |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 489 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 503 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 508 | prefix=$ac_optarg ;; |
10f2d63a VZ |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 515 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 522 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 539 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
e6cc62c6 | 549 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
e6cc62c6 | 560 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 565 | site=$ac_optarg ;; |
10f2d63a VZ |
566 | |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 570 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 577 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 580 | ac_prev=target_alias ;; |
10f2d63a | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 582 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
e6cc62c6 VS |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
10f2d63a VZ |
589 | |
590 | -with-* | --with-*) | |
e6cc62c6 | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 592 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
10f2d63a | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
599 | *) ac_optarg=yes ;; |
600 | esac | |
e6cc62c6 | 601 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
602 | |
603 | -without-* | --without-*) | |
e6cc62c6 | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 605 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 621 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 628 | x_libraries=$ac_optarg ;; |
10f2d63a | 629 | |
e6cc62c6 VS |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
633 | ;; |
634 | ||
e6cc62c6 VS |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
10f2d63a | 645 | *) |
e6cc62c6 VS |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
a0b9e27f | 660 | fi |
a0b9e27f | 661 | |
e6cc62c6 VS |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
8284b0c5 | 672 | |
e6cc62c6 VS |
673 | # Be sure to have absolute paths. |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
32ddf007 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
10f2d63a | 676 | do |
e6cc62c6 VS |
677 | eval ac_val=$`echo $ac_var` |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
682 | esac |
683 | done | |
684 | ||
e6cc62c6 VS |
685 | # There might be people who depend on the old broken behavior: `$host' |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
247f5006 | 702 | |
e6cc62c6 VS |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 707 | |
10f2d63a VZ |
708 | |
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
10f2d63a VZ |
725 | srcdir=$ac_confdir |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
735 | { (exit 1); exit 1; }; } | |
10f2d63a | 736 | else |
e6cc62c6 VS |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
738 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
739 | fi |
740 | fi | |
e6cc62c6 VS |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 789 | |
e6cc62c6 VS |
790 | # |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
e46d2a18 | 797 | \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems. |
10f2d63a | 798 | |
e6cc62c6 | 799 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 800 | |
e6cc62c6 VS |
801 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
802 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 803 | |
e6cc62c6 VS |
804 | Defaults for the options are specified in brackets. |
805 | ||
806 | Configuration: | |
807 | -h, --help display this help and exit | |
808 | --help=short display options specific to this package | |
809 | --help=recursive display the short help of all the included packages | |
810 | -V, --version display version information and exit | |
811 | -q, --quiet, --silent do not print \`checking...' messages | |
812 | --cache-file=FILE cache test results in FILE [disabled] | |
813 | -C, --config-cache alias for \`--cache-file=config.cache' | |
814 | -n, --no-create do not create output files | |
815 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
816 | ||
817 | _ACEOF | |
818 | ||
819 | cat <<_ACEOF | |
820 | Installation directories: | |
821 | --prefix=PREFIX install architecture-independent files in PREFIX | |
32ddf007 | 822 | [$ac_default_prefix] |
e6cc62c6 | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
32ddf007 | 824 | [PREFIX] |
e6cc62c6 VS |
825 | |
826 | By default, \`make install' will install all the files in | |
827 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
828 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
829 | for instance \`--prefix=\$HOME'. | |
830 | ||
831 | For better control, use the options below. | |
832 | ||
833 | Fine tuning of the installation directories: | |
834 | --bindir=DIR user executables [EPREFIX/bin] | |
835 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
836 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
837 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
838 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
839 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
840 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
841 | --libdir=DIR object code libraries [EPREFIX/lib] | |
842 | --includedir=DIR C header files [PREFIX/include] | |
843 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
844 | --infodir=DIR info documentation [PREFIX/info] | |
845 | --mandir=DIR man documentation [PREFIX/man] | |
846 | _ACEOF | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | X features: | |
851 | --x-includes=DIR X include files are in DIR | |
852 | --x-libraries=DIR X library files are in DIR | |
853 | ||
854 | System types: | |
855 | --build=BUILD configure for building on BUILD [guessed] | |
856 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
857 | --target=TARGET configure for building compilers for TARGET [HOST] | |
858 | _ACEOF | |
859 | fi | |
860 | ||
861 | if test -n "$ac_init_help"; then | |
862 | case $ac_init_help in | |
e46d2a18 | 863 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; |
e6cc62c6 VS |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
f93ca9fd VS |
871 | --enable-monolithic build wxWindows as single library |
872 | --enable-plugins build parts of wxWindows as loadable components | |
e6cc62c6 VS |
873 | --enable-universal use wxWindows GUI controls instead of native ones |
874 | --enable-nanox use NanoX | |
875 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
0f87e84c | 876 | --enable-gpe use GNOME PDA Environment features if possible |
e6cc62c6 | 877 | --enable-shared create shared library code |
e6cc62c6 VS |
878 | --enable-optimise create optimised code |
879 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 880 | --enable-stl use STL for containers |
e6cc62c6 VS |
881 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
882 | --enable-debug_info create code with debugging information | |
883 | --enable-debug_gdb create code with extra GDB debugging information | |
884 | --enable-debug_cntxt use wxDebugContext | |
885 | --enable-mem_tracing create code with memory tracing | |
886 | --enable-profile create code with profiling information | |
887 | --enable-no_rtti create code without RTTI information | |
888 | --enable-no_exceptions create code without C++ exceptions handling | |
889 | --enable-permissive compile code disregarding strict ANSI | |
890 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
891 | --enable-compat22 enable wxWindows 2.2 compatibility |
892 | --disable-compat24 disable wxWindows 2.4 compatibility | |
893 | --enable-rpath=DIR output the rpath flag from wx-config | |
894 | --enable-intl use internationalization system | |
895 | --enable-config use wxConfig (and derived) classes | |
896 | --enable-protocols use wxProtocol and derived classes | |
897 | --enable-ftp use wxFTP (requires wxProtocol | |
898 | --enable-http use wxHTTP (requires wxProtocol | |
899 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
900 | --enable-sockets use socket/network classes | |
e46d2a18 | 901 | --enable-ole use OLE classes (Win32 only) |
e6cc62c6 VS |
902 | --enable-dataobj use data object classes |
903 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e46d2a18 VS |
904 | --enable-apple_ieee use the Apple IEEE codec |
905 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
e6cc62c6 VS |
906 | --enable-cmdline use wxCmdLineParser class |
907 | --enable-datetime use wxDateTime class | |
e6cc62c6 | 908 | --enable-dialupman use dialup network classes |
e6cc62c6 VS |
909 | --enable-dynlib use wxLibrary class for DLL loading |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
e46d2a18 VS |
911 | --enable-exceptions build exception-safe library |
912 | --enable-ffile use wxFFile class | |
913 | --enable-file use wxFile class | |
914 | --enable-filesystem use virtual file systems classes | |
915 | --enable-fontmap use font encodings conversion classes | |
916 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
917 | --enable-fs_zip use virtual ZIP filesystems | |
e6cc62c6 VS |
918 | --enable-geometry use geometry class |
919 | --enable-log use logging system | |
e46d2a18 VS |
920 | --enable-longlong use wxLongLong class |
921 | --enable-mimetype use wxMimeTypesManager | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
923 | --enable-snglinst use wxSingleInstanceChecker class | |
e6cc62c6 | 924 | --enable-streams use wxStream etc classes |
e46d2a18 VS |
925 | --enable-std_iostreams use standard C++ stream classes |
926 | --enable-stopwatch use wxStopWatch class | |
927 | --enable-sysoptions use wxSystemOptions | |
e6cc62c6 VS |
928 | --enable-textbuf use wxTextBuffer class |
929 | --enable-textfile use wxTextFile class | |
e46d2a18 | 930 | --enable-timer use wxTimer class |
e6cc62c6 | 931 | --enable-unicode compile wxString with Unicode support |
002ed9af | 932 | --enable-sound use wxSound class |
e6cc62c6 | 933 | --enable-wxprintfv use wxWindows implementation of vprintf() |
e6cc62c6 | 934 | --enable-zipstream use wxZipInputStream |
7015ef3a | 935 | --enable-gzstream use wxGzipInputStream |
e6cc62c6 VS |
936 | --enable-url use wxURL class |
937 | --enable-protocol use wxProtocol class | |
938 | --enable-protocol-http HTTP support in wxProtocol | |
939 | --enable-protocol-ftp FTP support in wxProtocol | |
940 | --enable-protocol-file FILE support in wxProtocol | |
941 | --enable-threads use threads | |
942 | --enable-docview use document view architecture | |
943 | --enable-help use help subsystem | |
944 | --enable-mshtmlhelp use MS HTML Help (win32) | |
945 | --enable-html use wxHTML sub-library | |
946 | --enable-htmlhelp use wxHTML-based help | |
947 | --enable-constraints use layout-constraints system | |
948 | --enable-printarch use printing architecture | |
949 | --enable-mdi use multiple document interface architecture | |
950 | --enable-loggui use standard GUI logger | |
951 | --enable-logwin use wxLogWindow | |
952 | --enable-logdialog use wxLogDialog | |
953 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
954 | --enable-prologio not available; see contrib | |
955 | --enable-resources not available; see contrib | |
956 | --enable-clipboard use wxClipboard class | |
957 | --enable-dnd use Drag'n'Drop classes | |
958 | --enable-metafile use win32 metafiles | |
959 | --enable-controls use all usual controls | |
960 | --enable-accel use accelerators | |
961 | --enable-button use wxButton class | |
962 | --enable-bmpbutton use wxBitmapButton class | |
963 | --enable-calendar use wxCalendarCtrl class | |
964 | --enable-caret use wxCaret class | |
965 | --enable-checkbox use wxCheckBox class | |
966 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
967 | --enable-choice use wxChoice class | |
968 | --enable-combobox use wxComboBox class | |
969 | --enable-display use wxDisplay class | |
970 | --enable-gauge use wxGauge class | |
971 | --enable-grid use wxGrid class | |
972 | --enable-imaglist use wxImageList class | |
0e012a93 | 973 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
974 | --enable-listbox use wxListBox class |
975 | --enable-listctrl use wxListCtrl class | |
976 | --enable-notebook use wxNotebook class | |
977 | --enable-radiobox use wxRadioBox class | |
978 | --enable-radiobtn use wxRadioButton class | |
979 | --enable-sash use wxSashWindow class | |
980 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
981 | --enable-slider use wxSlider class | |
982 | --enable-spinbtn use wxSpinButton class | |
983 | --enable-spinctrl use wxSpinCtrl class | |
984 | --enable-splitter use wxSplitterWindow class | |
985 | --enable-statbmp use wxStaticBitmap class | |
986 | --enable-statbox use wxStaticBox class | |
987 | --enable-statline use wxStaticLine class | |
988 | --enable-stattext use wxStaticText class | |
989 | --enable-statusbar use wxStatusBar class | |
990 | --enable-tabdialog use wxTabControl class | |
991 | --enable-textctrl use wxTextCtrl class | |
992 | --enable-togglebtn use wxToggleButton class | |
993 | --enable-toolbar use wxToolBar class | |
994 | --enable-tbarnative use native wxToolBar class | |
995 | --enable-tbarsmpl use wxToolBarSimple class | |
996 | --enable-treectrl use wxTreeCtrl class | |
997 | --enable-tipwindow use wxTipWindow class | |
998 | --enable-popupwin use wxPopUpWindow class | |
999 | --enable-commondlg use all common dialogs | |
1000 | --enable-choicedlg use wxChoiceDialog | |
1001 | --enable-coldlg use wxColourDialog | |
1002 | --enable-filedlg use wxFileDialog | |
1003 | --enable-finddlg use wxFindReplaceDialog | |
1004 | --enable-fontdlg use wxFontDialog | |
1005 | --enable-dirdlg use wxDirDialog | |
1006 | --enable-msgdlg use wxMessageDialog | |
1007 | --enable-numberdlg use wxNumberEntryDialog | |
1008 | --enable-splash use wxSplashScreen | |
1009 | --enable-textdlg use wxTextDialog | |
1010 | --enable-tipdlg use startup tips | |
1011 | --enable-progressdlg use wxProgressDialog | |
1012 | --enable-wizarddlg use wxWizard | |
1013 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1014 | --enable-miniframe use wxMiniFrame class | |
1015 | --enable-tooltips use wxToolTip class | |
1016 | --enable-splines use spline drawing code | |
1017 | --enable-validators use wxValidator and derived classes | |
1018 | --enable-busyinfo use wxBusyInfo | |
1019 | --enable-joystick use wxJoystick (Linux only) | |
1020 | --enable-metafiles use wxMetaFile (Windows only) | |
1021 | --enable-dragimage use wxDragImage | |
1022 | --enable-accessibility enable accessibility support | |
1023 | --enable-palette use wxPalette class | |
1024 | --enable-image use wxImage class | |
1025 | --enable-gif use gif images (GIF file format) | |
1026 | --enable-pcx use pcx images (PCX file format) | |
1027 | --enable-iff use iff images (IFF file format) | |
1028 | --enable-pnm use pnm images (PNM file format) | |
1029 | --enable-xpm use xpm images (XPM file format) | |
1030 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1031 | --enable-official_build official build of wxWindows (win32 DLL only) |
1032 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1033 | --disable-largefile omit support for large files |
1034 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1035 | --disable-gtktest Do not try to compile and run a test GTK program | |
f93ca9fd | 1036 | --disable-sdltest Do not try to compile and run a test SDL program |
45842500 | 1037 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1038 | |
1039 | Optional Packages: | |
1040 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1041 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1042 | --with-gtk use GTK+ | |
1043 | --with-motif use Motif/Lesstif | |
1044 | --with-mac use Mac OS X | |
1045 | --with-cocoa use Cocoa | |
1046 | --with-wine use Wine | |
1047 | --with-msw use MS-Windows | |
1048 | --with-pm use OS/2 Presentation Manager | |
1049 | --with-mgl use SciTech MGL | |
1050 | --with-microwin use MicroWindows | |
1051 | --with-x11 use X11 | |
1052 | --with-libpng use libpng (PNG image format) | |
1053 | --with-libjpeg use libjpeg (JPEG file format) | |
1054 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1055 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1056 | --with-libmspack use libmspack (CHM help files loading) |
f93ca9fd | 1057 | --with-sdl use SDL for audio on Unix |
e6cc62c6 VS |
1058 | --with-opengl use OpenGL (or Mesa) |
1059 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1060 | --with-regex enable support for wxRegEx class | |
1061 | --with-zlib use zlib for LZW compression | |
1062 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1063 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1064 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1065 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1066 | --with-x use the X Window System | |
1067 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
f93ca9fd VS |
1068 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
1069 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
e6cc62c6 VS |
1070 | |
1071 | Some influential environment variables: | |
1072 | CC C compiler command | |
1073 | CFLAGS C compiler flags | |
1074 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1075 | nonstandard directory <lib dir> | |
1076 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1077 | headers in a nonstandard directory <include dir> | |
1078 | CPP C preprocessor | |
1079 | CXX C++ compiler command | |
1080 | CXXFLAGS C++ compiler flags | |
1081 | CXXCPP C++ preprocessor | |
1082 | ||
1083 | Use these variables to override the choices made by `configure' or to help | |
1084 | it to find libraries and programs with nonstandard names/locations. | |
1085 | ||
1086 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1087 | _ACEOF | |
1088 | fi | |
1089 | ||
1090 | if test "$ac_init_help" = "recursive"; then | |
1091 | # If there are subdirs, report their specific --help. | |
1092 | ac_popdir=`pwd` | |
1093 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1094 | test -d $ac_dir || continue | |
1095 | ac_builddir=. | |
1096 | ||
1097 | if test "$ac_dir" != .; then | |
1098 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1099 | # A "../" for each directory in $ac_dir_suffix. | |
1100 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1101 | else | |
1102 | ac_dir_suffix= ac_top_builddir= | |
1103 | fi | |
1104 | ||
1105 | case $srcdir in | |
1106 | .) # No --srcdir option. We are building in place. | |
1107 | ac_srcdir=. | |
1108 | if test -z "$ac_top_builddir"; then | |
1109 | ac_top_srcdir=. | |
1110 | else | |
1111 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1112 | fi ;; | |
1113 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1114 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1115 | ac_top_srcdir=$srcdir ;; | |
1116 | *) # Relative path. | |
1117 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1118 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1119 | esac | |
32ddf007 VS |
1120 | |
1121 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1122 | # the directories may not exist. | |
1123 | case `pwd` in | |
1124 | .) ac_abs_builddir="$ac_dir";; | |
1125 | *) | |
1126 | case "$ac_dir" in | |
1127 | .) ac_abs_builddir=`pwd`;; | |
1128 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1129 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1130 | esac;; | |
1131 | esac | |
1132 | case $ac_abs_builddir in | |
1133 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1134 | *) | |
1135 | case ${ac_top_builddir}. in | |
1136 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1138 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1139 | esac;; | |
1140 | esac | |
1141 | case $ac_abs_builddir in | |
1142 | .) ac_abs_srcdir=$ac_srcdir;; | |
1143 | *) | |
1144 | case $ac_srcdir in | |
1145 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1147 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1152 | *) | |
1153 | case $ac_top_srcdir in | |
1154 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1156 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1157 | esac;; | |
1158 | esac | |
e6cc62c6 VS |
1159 | |
1160 | cd $ac_dir | |
1161 | # Check for guested configure; otherwise get Cygnus style configure. | |
1162 | if test -f $ac_srcdir/configure.gnu; then | |
1163 | echo | |
1164 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1165 | elif test -f $ac_srcdir/configure; then | |
1166 | echo | |
1167 | $SHELL $ac_srcdir/configure --help=recursive | |
1168 | elif test -f $ac_srcdir/configure.ac || | |
32ddf007 | 1169 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1170 | echo |
1171 | $ac_configure --help | |
1172 | else | |
1173 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1174 | fi | |
1175 | cd $ac_popdir | |
1176 | done | |
1177 | fi | |
8284b0c5 | 1178 | |
e6cc62c6 VS |
1179 | test -n "$ac_init_help" && exit 0 |
1180 | if $ac_init_version; then | |
1181 | cat <<\_ACEOF | |
e46d2a18 | 1182 | wxWindows configure 2.5.1 |
32ddf007 | 1183 | generated by GNU Autoconf 2.59 |
10f2d63a | 1184 | |
32ddf007 | 1185 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
1186 | This configure script is free software; the Free Software Foundation |
1187 | gives unlimited permission to copy, distribute and modify it. | |
1188 | _ACEOF | |
1189 | exit 0 | |
7c66a493 | 1190 | fi |
e6cc62c6 VS |
1191 | exec 5>config.log |
1192 | cat >&5 <<_ACEOF | |
1193 | This file contains any messages produced by compilers while | |
1194 | running configure, to aid debugging if configure makes a mistake. | |
1195 | ||
e46d2a18 | 1196 | It was created by wxWindows $as_me 2.5.1, which was |
32ddf007 | 1197 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
1198 | |
1199 | $ $0 $@ | |
1200 | ||
1201 | _ACEOF | |
1202 | { | |
1203 | cat <<_ASUNAME | |
1204 | ## --------- ## | |
1205 | ## Platform. ## | |
1206 | ## --------- ## | |
1207 | ||
1208 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1209 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1210 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1211 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1212 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1213 | ||
1214 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1215 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1216 | ||
1217 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1218 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1219 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1220 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1221 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1222 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1223 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1224 | ||
1225 | _ASUNAME | |
1226 | ||
1227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1228 | for as_dir in $PATH | |
1229 | do | |
1230 | IFS=$as_save_IFS | |
1231 | test -z "$as_dir" && as_dir=. | |
1232 | echo "PATH: $as_dir" | |
1233 | done | |
1234 | ||
1235 | } >&5 | |
1236 | ||
1237 | cat >&5 <<_ACEOF | |
1238 | ||
1239 | ||
1240 | ## ----------- ## | |
1241 | ## Core tests. ## | |
1242 | ## ----------- ## | |
1243 | ||
1244 | _ACEOF | |
1245 | ||
1246 | ||
1247 | # Keep a trace of the command line. | |
1248 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1249 | # Strip out --silent because we don't want to record it for future runs. | |
1250 | # Also quote any args containing shell meta-characters. | |
1251 | # Make two passes to allow for proper duplicate-argument suppression. | |
1252 | ac_configure_args= | |
1253 | ac_configure_args0= | |
1254 | ac_configure_args1= | |
1255 | ac_sep= | |
1256 | ac_must_keep_next=false | |
1257 | for ac_pass in 1 2 | |
1258 | do | |
1259 | for ac_arg | |
1260 | do | |
1261 | case $ac_arg in | |
1262 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1263 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1264 | | -silent | --silent | --silen | --sile | --sil) | |
1265 | continue ;; | |
1266 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1267 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1268 | esac | |
1269 | case $ac_pass in | |
1270 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1271 | 2) | |
1272 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1273 | if test $ac_must_keep_next = true; then | |
32ddf007 | 1274 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1275 | else |
32ddf007 VS |
1276 | case $ac_arg in |
1277 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1278 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1279 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1280 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1281 | case "$ac_configure_args0 " in | |
1282 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1283 | esac | |
1284 | ;; | |
1285 | -* ) ac_must_keep_next=true ;; | |
1286 | esac | |
e6cc62c6 VS |
1287 | fi |
1288 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1289 | # Get rid of the leading space. | |
1290 | ac_sep=" " | |
1291 | ;; | |
1292 | esac | |
1293 | done | |
1294 | done | |
1295 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1296 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1297 | ||
1298 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1299 | # config.log. We remove comments because anyway the quotes in there | |
1300 | # would cause problems or look ugly. | |
1301 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1302 | # such as our DU 5.0 friend, will then `close' the trap. | |
1303 | trap 'exit_status=$? | |
1304 | # Save into config.log some information that might help in debugging. | |
1305 | { | |
1306 | echo | |
1307 | ||
1308 | cat <<\_ASBOX | |
1309 | ## ---------------- ## | |
1310 | ## Cache variables. ## | |
1311 | ## ---------------- ## | |
1312 | _ASBOX | |
1313 | echo | |
1314 | # The following way of writing the cache mishandles newlines in values, | |
1315 | { | |
1316 | (set) 2>&1 | | |
1317 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1318 | *ac_space=\ *) | |
1319 | sed -n \ | |
32ddf007 VS |
1320 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1322 | ;; |
1323 | *) | |
1324 | sed -n \ | |
32ddf007 | 1325 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1326 | ;; |
1327 | esac; | |
1328 | } | |
1329 | echo | |
1330 | ||
1331 | cat <<\_ASBOX | |
1332 | ## ----------------- ## | |
1333 | ## Output variables. ## | |
1334 | ## ----------------- ## | |
1335 | _ASBOX | |
1336 | echo | |
1337 | for ac_var in $ac_subst_vars | |
1338 | do | |
1339 | eval ac_val=$`echo $ac_var` | |
1340 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1341 | done | sort | |
1342 | echo | |
1343 | ||
1344 | if test -n "$ac_subst_files"; then | |
1345 | cat <<\_ASBOX | |
1346 | ## ------------- ## | |
1347 | ## Output files. ## | |
1348 | ## ------------- ## | |
1349 | _ASBOX | |
1350 | echo | |
1351 | for ac_var in $ac_subst_files | |
1352 | do | |
1353 | eval ac_val=$`echo $ac_var` | |
32ddf007 | 1354 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1355 | done | sort |
1356 | echo | |
1357 | fi | |
1358 | ||
1359 | if test -s confdefs.h; then | |
1360 | cat <<\_ASBOX | |
1361 | ## ----------- ## | |
1362 | ## confdefs.h. ## | |
1363 | ## ----------- ## | |
1364 | _ASBOX | |
1365 | echo | |
1366 | sed "/^$/d" confdefs.h | sort | |
1367 | echo | |
1368 | fi | |
1369 | test "$ac_signal" != 0 && | |
1370 | echo "$as_me: caught signal $ac_signal" | |
1371 | echo "$as_me: exit $exit_status" | |
1372 | } >&5 | |
32ddf007 | 1373 | rm -f core *.core && |
e6cc62c6 VS |
1374 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1375 | exit $exit_status | |
1376 | ' 0 | |
1377 | for ac_signal in 1 2 13 15; do | |
1378 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1379 | done | |
1380 | ac_signal=0 | |
1381 | ||
1382 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1383 | rm -rf conftest* confdefs.h | |
1384 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1385 | echo >confdefs.h | |
1386 | ||
1387 | # Predefined preprocessor variables. | |
1388 | ||
1389 | cat >>confdefs.h <<_ACEOF | |
1390 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1391 | _ACEOF | |
1392 | ||
1393 | ||
1394 | cat >>confdefs.h <<_ACEOF | |
1395 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1396 | _ACEOF | |
1397 | ||
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | # Let the site file select an alternate cache file if it wants to. | |
1415 | # Prefer explicitly selected file to automatically selected ones. | |
1416 | if test -z "$CONFIG_SITE"; then | |
1417 | if test "x$prefix" != xNONE; then | |
1418 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1419 | else | |
1420 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1421 | fi | |
1422 | fi | |
1423 | for ac_site_file in $CONFIG_SITE; do | |
1424 | if test -r "$ac_site_file"; then | |
1425 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1426 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1427 | sed 's/^/| /' "$ac_site_file" >&5 | |
1428 | . "$ac_site_file" | |
1429 | fi | |
1430 | done | |
1431 | ||
1432 | if test -r "$cache_file"; then | |
1433 | # Some versions of bash will fail to source /dev/null (special | |
1434 | # files actually), so we avoid doing that. | |
1435 | if test -f "$cache_file"; then | |
1436 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1437 | echo "$as_me: loading cache $cache_file" >&6;} | |
1438 | case $cache_file in | |
1439 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1440 | *) . ./$cache_file;; | |
1441 | esac | |
1442 | fi | |
1443 | else | |
1444 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1445 | echo "$as_me: creating cache $cache_file" >&6;} | |
1446 | >$cache_file | |
1447 | fi | |
1448 | ||
1449 | # Check that the precious variables saved in the cache have kept the same | |
1450 | # value. | |
1451 | ac_cache_corrupted=false | |
1452 | for ac_var in `(set) 2>&1 | | |
32ddf007 | 1453 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1454 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1455 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1456 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1457 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1458 | case $ac_old_set,$ac_new_set in | |
1459 | set,) | |
1460 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1461 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1462 | ac_cache_corrupted=: ;; | |
1463 | ,set) | |
1464 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1465 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1466 | ac_cache_corrupted=: ;; | |
1467 | ,);; | |
1468 | *) | |
1469 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
32ddf007 | 1470 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1471 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
32ddf007 | 1472 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1473 | echo "$as_me: former value: $ac_old_val" >&2;} |
32ddf007 | 1474 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1475 | echo "$as_me: current value: $ac_new_val" >&2;} |
32ddf007 | 1476 | ac_cache_corrupted=: |
e6cc62c6 VS |
1477 | fi;; |
1478 | esac | |
1479 | # Pass precious variables to config.status. | |
1480 | if test "$ac_new_set" = set; then | |
1481 | case $ac_new_val in | |
1482 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1483 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1484 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1485 | esac | |
1486 | case " $ac_configure_args " in | |
1487 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1488 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1489 | esac | |
1490 | fi | |
1491 | done | |
1492 | if $ac_cache_corrupted; then | |
1493 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1494 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1495 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1496 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1497 | { (exit 1); exit 1; }; } | |
1498 | fi | |
1499 | ||
1500 | ac_ext=c | |
1501 | ac_cpp='$CPP $CPPFLAGS' | |
1502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | ||
1513 | ||
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
698dcdb6 | 1522 | |
8284b0c5 | 1523 | |
7c66a493 | 1524 | |
a0b9e27f MB |
1525 | |
1526 | ||
a0b9e27f | 1527 | |
a0b9e27f | 1528 | |
a0b9e27f | 1529 | |
a0b9e27f | 1530 | |
a0b9e27f | 1531 | |
a0b9e27f | 1532 | |
e6cc62c6 VS |
1533 | |
1534 | ||
1535 | ac_aux_dir= | |
1536 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1537 | if test -f $ac_dir/install-sh; then | |
1538 | ac_aux_dir=$ac_dir | |
1539 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1540 | break | |
1541 | elif test -f $ac_dir/install.sh; then | |
1542 | ac_aux_dir=$ac_dir | |
1543 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1544 | break | |
1545 | elif test -f $ac_dir/shtool; then | |
1546 | ac_aux_dir=$ac_dir | |
1547 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1548 | break | |
1549 | fi | |
1550 | done | |
1551 | if test -z "$ac_aux_dir"; then | |
1552 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1553 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1554 | { (exit 1); exit 1; }; } | |
1555 | fi | |
1556 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1557 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1558 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1559 | ||
1560 | # Make sure we can run config.sub. | |
1561 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1562 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1563 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | ||
1566 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1567 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1568 | if test "${ac_cv_build+set}" = set; then | |
1569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1570 | else | |
1571 | ac_cv_build_alias=$build_alias | |
1572 | test -z "$ac_cv_build_alias" && | |
1573 | ac_cv_build_alias=`$ac_config_guess` | |
1574 | test -z "$ac_cv_build_alias" && | |
1575 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1576 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1577 | { (exit 1); exit 1; }; } | |
1578 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1579 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1580 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1581 | { (exit 1); exit 1; }; } | |
1582 | ||
1583 | fi | |
1584 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1585 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1586 | build=$ac_cv_build | |
1587 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1588 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1589 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1590 | ||
1591 | ||
1592 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1593 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1594 | if test "${ac_cv_host+set}" = set; then | |
1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1596 | else | |
1597 | ac_cv_host_alias=$host_alias | |
1598 | test -z "$ac_cv_host_alias" && | |
1599 | ac_cv_host_alias=$ac_cv_build_alias | |
1600 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1601 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1602 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1603 | { (exit 1); exit 1; }; } | |
1604 | ||
1605 | fi | |
1606 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1607 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1608 | host=$ac_cv_host | |
1609 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1610 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1611 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1612 | ||
1613 | ||
1614 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1615 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1616 | if test "${ac_cv_target+set}" = set; then | |
1617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1618 | else | |
1619 | ac_cv_target_alias=$target_alias | |
1620 | test "x$ac_cv_target_alias" = "x" && | |
1621 | ac_cv_target_alias=$ac_cv_host_alias | |
1622 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1623 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1624 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1625 | { (exit 1); exit 1; }; } | |
1626 | ||
1627 | fi | |
1628 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1629 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1630 | target=$ac_cv_target | |
1631 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1632 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1633 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1634 | ||
1635 | ||
1636 | # The aliases save the names the user supplied, while $host etc. | |
1637 | # will get canonicalized. | |
1638 | test -n "$target_alias" && | |
7c66a493 VZ |
1639 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1640 | NONENONEs,x,x, && | |
1641 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1642 | |
1643 | ||
a0b9e27f | 1644 | |
10f2d63a | 1645 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1646 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1647 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1648 | |
10f2d63a | 1649 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1650 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1651 | |
978f1259 RL |
1652 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1653 | ||
7015ef3a | 1654 | WX_CURRENT=1 |
6426998c RL |
1655 | WX_REVISION=0 |
1656 | WX_AGE=0 | |
1657 | ||
8284b0c5 MB |
1658 | |
1659 | ||
10f2d63a | 1660 | USE_UNIX=1 |
73d617c9 | 1661 | USE_OS2=0 |
10f2d63a | 1662 | USE_WIN32=0 |
f9bc1684 | 1663 | USE_DOS=0 |
b12915c1 | 1664 | USE_BEOS=0 |
1216f52d | 1665 | USE_MAC=0 |
b12915c1 | 1666 | |
10f2d63a | 1667 | USE_AIX= |
fe0895cf VS |
1668 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1669 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1670 | USE_LINUX= |
f6bcfd97 | 1671 | USE_NETBSD= |
89e3b3e4 | 1672 | USE_OPENBSD= |
fe0895cf VS |
1673 | USE_OSF= USE_SGI= |
1674 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1675 | USE_ULTRIX= |
89e3b3e4 VZ |
1676 | USE_UNIXWARE= |
1677 | ||
1678 | USE_ALPHA= | |
10f2d63a | 1679 | |
ab9b9eab VZ |
1680 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1681 | ||
ac0c4cc3 | 1682 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1683 | |
ac0c4cc3 | 1684 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1685 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1686 | DEFAULT_wxUSE_MAC=0 |
1687 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1688 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1689 | DEFAULT_wxUSE_MOTIF=0 |
1690 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1691 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1692 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1693 | |
ac0c4cc3 | 1694 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1695 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1696 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1697 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1698 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1699 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1700 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1701 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1702 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1703 | |
d6a55c4b | 1704 | PROGRAM_EXT= |
3a922bb4 | 1705 | SO_SUFFIX=so |
fe0895cf | 1706 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1707 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1708 | |
10f2d63a VZ |
1709 | case "${host}" in |
1710 | *-hp-hpux* ) | |
1711 | USE_HPUX=1 | |
1712 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1713 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1714 | SO_SUFFIX=sl |
e6cc62c6 | 1715 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1716 | #define __HPUX__ 1 |
e6cc62c6 | 1717 | _ACEOF |
10f2d63a VZ |
1718 | |
1719 | ;; | |
1720 | *-*-linux* ) | |
1721 | USE_LINUX=1 | |
e6cc62c6 | 1722 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1723 | #define __LINUX__ 1 |
e6cc62c6 | 1724 | _ACEOF |
10f2d63a VZ |
1725 | |
1726 | TMP=`uname -m` | |
1727 | if test "x$TMP" = "xalpha"; then | |
1728 | USE_ALPHA=1 | |
e6cc62c6 | 1729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1730 | #define __ALPHA__ 1 |
e6cc62c6 | 1731 | _ACEOF |
fe0895cf VS |
1732 | |
1733 | fi | |
1734 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1735 | ;; | |
1736 | *-*-gnu* ) | |
1737 | USE_GNU=1 | |
e6cc62c6 | 1738 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1739 | #define __GNU__ 1 |
e6cc62c6 | 1740 | _ACEOF |
fe0895cf VS |
1741 | |
1742 | TMP=`uname -m` | |
1743 | if test "x$TMP" = "xalpha"; then | |
1744 | USE_ALPHA=1 | |
e6cc62c6 | 1745 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1746 | #define __ALPHA__ 1 |
e6cc62c6 | 1747 | _ACEOF |
10f2d63a VZ |
1748 | |
1749 | fi | |
1750 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1751 | ;; | |
1752 | *-*-irix5* | *-*-irix6* ) | |
1753 | USE_SGI=1 | |
1754 | USE_SVR4=1 | |
e6cc62c6 | 1755 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1756 | #define __SGI__ 1 |
e6cc62c6 | 1757 | _ACEOF |
10f2d63a | 1758 | |
e6cc62c6 | 1759 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1760 | #define __SVR4__ 1 |
e6cc62c6 | 1761 | _ACEOF |
10f2d63a VZ |
1762 | |
1763 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1764 | ;; | |
1765 | *-*-solaris2* ) | |
1766 | USE_SUN=1 | |
1767 | USE_SOLARIS=1 | |
1768 | USE_SVR4=1 | |
e6cc62c6 | 1769 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1770 | #define __SUN__ 1 |
e6cc62c6 | 1771 | _ACEOF |
10f2d63a | 1772 | |
e6cc62c6 | 1773 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1774 | #define __SOLARIS__ 1 |
e6cc62c6 | 1775 | _ACEOF |
10f2d63a | 1776 | |
e6cc62c6 | 1777 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1778 | #define __SVR4__ 1 |
e6cc62c6 | 1779 | _ACEOF |
10f2d63a VZ |
1780 | |
1781 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1782 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1783 | ;; |
1784 | *-*-sunos4* ) | |
1785 | USE_SUN=1 | |
1786 | USE_SUNOS=1 | |
1787 | USE_BSD=1 | |
e6cc62c6 | 1788 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1789 | #define __SUN__ 1 |
e6cc62c6 | 1790 | _ACEOF |
10f2d63a | 1791 | |
e6cc62c6 | 1792 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1793 | #define __SUNOS__ 1 |
e6cc62c6 | 1794 | _ACEOF |
10f2d63a | 1795 | |
e6cc62c6 | 1796 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1797 | #define __BSD__ 1 |
e6cc62c6 | 1798 | _ACEOF |
10f2d63a VZ |
1799 | |
1800 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1801 | ;; | |
f6bcfd97 | 1802 | *-*-freebsd*) |
10f2d63a VZ |
1803 | USE_BSD=1 |
1804 | USE_FREEBSD=1 | |
e6cc62c6 | 1805 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1806 | #define __FREEBSD__ 1 |
e6cc62c6 | 1807 | _ACEOF |
10f2d63a | 1808 | |
e6cc62c6 | 1809 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1810 | #define __BSD__ 1 |
e6cc62c6 | 1811 | _ACEOF |
95c8801c VS |
1812 | |
1813 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1814 | ;; | |
1815 | *-*-openbsd*) | |
1816 | USE_BSD=1 | |
1817 | USE_OPENBSD=1 | |
e6cc62c6 | 1818 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1819 | #define __OPENBSD__ 1 |
e6cc62c6 | 1820 | _ACEOF |
95c8801c | 1821 | |
e6cc62c6 | 1822 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1823 | #define __BSD__ 1 |
e6cc62c6 | 1824 | _ACEOF |
f6bcfd97 BP |
1825 | |
1826 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1827 | ;; | |
1828 | *-*-netbsd*) | |
1829 | USE_BSD=1 | |
1830 | USE_NETBSD=1 | |
e6cc62c6 | 1831 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1832 | #define __NETBSD__ 1 |
e6cc62c6 | 1833 | _ACEOF |
f6bcfd97 | 1834 | |
e6cc62c6 | 1835 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1836 | #define __BSD__ 1 |
e6cc62c6 | 1837 | _ACEOF |
10f2d63a VZ |
1838 | |
1839 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1840 | ;; | |
1841 | *-*-osf* ) | |
1842 | USE_ALPHA=1 | |
1843 | USE_OSF=1 | |
e6cc62c6 | 1844 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1845 | #define __ALPHA__ 1 |
e6cc62c6 | 1846 | _ACEOF |
10f2d63a | 1847 | |
e6cc62c6 | 1848 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1849 | #define __OSF__ 1 |
e6cc62c6 | 1850 | _ACEOF |
10f2d63a VZ |
1851 | |
1852 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1853 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1854 | ;; |
1855 | *-*-dgux5* ) | |
1856 | USE_ALPHA=1 | |
1857 | USE_SVR4=1 | |
e6cc62c6 | 1858 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1859 | #define __ALPHA__ 1 |
e6cc62c6 | 1860 | _ACEOF |
10f2d63a | 1861 | |
e6cc62c6 | 1862 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1863 | #define __SVR4__ 1 |
e6cc62c6 | 1864 | _ACEOF |
10f2d63a VZ |
1865 | |
1866 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1867 | ;; | |
1868 | *-*-sysv5* ) | |
1869 | USE_SYSV=1 | |
1870 | USE_SVR4=1 | |
e6cc62c6 | 1871 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1872 | #define __SYSV__ 1 |
e6cc62c6 | 1873 | _ACEOF |
10f2d63a | 1874 | |
e6cc62c6 | 1875 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1876 | #define __SVR4__ 1 |
e6cc62c6 | 1877 | _ACEOF |
10f2d63a VZ |
1878 | |
1879 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1880 | ;; | |
1881 | *-*-aix* ) | |
1882 | USE_AIX=1 | |
1883 | USE_SYSV=1 | |
1884 | USE_SVR4=1 | |
2b5f62a0 | 1885 | SO_SUFFIX=a |
e6cc62c6 | 1886 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1887 | #define __AIX__ 1 |
e6cc62c6 | 1888 | _ACEOF |
10f2d63a | 1889 | |
e6cc62c6 | 1890 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1891 | #define __SYSV__ 1 |
e6cc62c6 | 1892 | _ACEOF |
10f2d63a | 1893 | |
e6cc62c6 | 1894 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1895 | #define __SVR4__ 1 |
e6cc62c6 | 1896 | _ACEOF |
10f2d63a VZ |
1897 | |
1898 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1899 | ;; | |
1900 | ||
89e3b3e4 VZ |
1901 | *-*-*UnixWare*) |
1902 | USE_SYSV=1 | |
1903 | USE_SVR4=1 | |
1904 | USE_UNIXWARE=1 | |
e6cc62c6 | 1905 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1906 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1907 | _ACEOF |
89e3b3e4 VZ |
1908 | |
1909 | ;; | |
1910 | ||
1c8183e2 | 1911 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1912 | SO_SUFFIX=dll |
cf27ef00 | 1913 | PROGRAM_EXT=".exe" |
7b7a7637 | 1914 | RESCOMP=windres |
10f2d63a VZ |
1915 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1916 | ;; | |
1917 | ||
f9bc1684 VS |
1918 | *-pc-msdosdjgpp ) |
1919 | USE_UNIX=0 | |
1920 | USE_DOS=1 | |
e6cc62c6 | 1921 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1922 | #define __DOS__ 1 |
e6cc62c6 | 1923 | _ACEOF |
f9bc1684 VS |
1924 | |
1925 | PROGRAM_EXT=".exe" | |
1926 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1927 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1928 | ;; |
1929 | ||
6fa882bd | 1930 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1931 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1932 | #define __EMX__ 1 |
e6cc62c6 | 1933 | _ACEOF |
10f2d63a | 1934 | |
73d617c9 | 1935 | USE_OS2=1 |
7015ef3a VZ |
1936 | cat >>confdefs.h <<\_ACEOF |
1937 | #define __OS2__ 1 | |
1938 | _ACEOF | |
1939 | ||
cf27ef00 | 1940 | PROGRAM_EXT=".exe" |
e07802fc | 1941 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1942 | CXX=gcc |
32ddf007 | 1943 | LDFLAGS="$LDFLAGS -Zcrtdll" |
d5fc095c VS |
1944 | ac_executable_extensions=".exe" |
1945 | export ac_executable_extensions | |
1946 | ac_save_IFS="$IFS" | |
e46d2a18 | 1947 | IFS='\\' |
d5fc095c VS |
1948 | ac_TEMP_PATH= |
1949 | for ac_dir in $PATH; do | |
1950 | IFS=$ac_save_IFS | |
1951 | if test -z "$ac_TEMP_PATH"; then | |
1952 | ac_TEMP_PATH="$ac_dir" | |
1953 | else | |
1954 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1955 | fi | |
1956 | done | |
1957 | export PATH="$ac_TEMP_PATH" | |
1958 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1959 | ;; |
1960 | ||
d08b457b GD |
1961 | powerpc-*-darwin* ) |
1962 | USE_BSD=1 | |
f11bdd03 | 1963 | USE_DARWIN=1 |
3a922bb4 | 1964 | SO_SUFFIX=dylib |
e6cc62c6 | 1965 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1966 | #define __BSD__ 1 |
e6cc62c6 | 1967 | _ACEOF |
b4085ce6 | 1968 | |
e6cc62c6 | 1969 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1970 | #define __DARWIN__ 1 |
e6cc62c6 | 1971 | _ACEOF |
d08b457b | 1972 | |
e6cc62c6 | 1973 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1974 | #define __POWERPC__ 1 |
e6cc62c6 | 1975 | _ACEOF |
82d43113 | 1976 | |
e6cc62c6 | 1977 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1978 | #define TARGET_CARBON 1 |
e6cc62c6 | 1979 | _ACEOF |
b4085ce6 GD |
1980 | |
1981 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1982 | ;; | |
1983 | ||
b12915c1 VZ |
1984 | *-*-beos* ) |
1985 | USE_BEOS=1 | |
e6cc62c6 | 1986 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1987 | #define __BEOS__ 1 |
e6cc62c6 | 1988 | _ACEOF |
b12915c1 VZ |
1989 | |
1990 | ;; | |
1991 | ||
10f2d63a | 1992 | *) |
e6cc62c6 VS |
1993 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1994 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1995 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1996 | esac |
1997 | ||
8284b0c5 MB |
1998 | |
1999 | ||
2000 | ||
2001 | wx_arg_cache_file="configarg.cache" | |
2002 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
2003 | rm -f ${wx_arg_cache_file}.tmp |
2004 | touch ${wx_arg_cache_file}.tmp | |
2005 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 2006 | |
10f2d63a VZ |
2007 | |
2008 | DEBUG_CONFIGURE=0 | |
2009 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 2010 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2011 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2012 | |
d8356fa3 VZ |
2013 | DEFAULT_wxUSE_NANOX=no |
2014 | ||
10f2d63a VZ |
2015 | DEFAULT_wxUSE_THREADS=yes |
2016 | ||
2017 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 2018 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
2019 | DEFAULT_wxUSE_PROFILE=no |
2020 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2021 | DEFAULT_wxUSE_NO_RTTI=no |
2022 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2023 | DEFAULT_wxUSE_PERMISSIVE=no |
2024 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2025 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2026 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2027 | DEFAULT_wxUSE_MEM_TRACING=no | |
2028 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2029 | DEFAULT_wxUSE_DMALLOC=no | |
2030 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2031 | ||
e46d2a18 | 2032 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 2033 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
2034 | DEFAULT_wxUSE_LOGWINDOW=no |
2035 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 2036 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
2037 | |
2038 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2039 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2040 | |
3e44f09d | 2041 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2042 | DEFAULT_wxUSE_XML=no |
2043 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2044 | DEFAULT_wxUSE_ZLIB=no |
2045 | DEFAULT_wxUSE_LIBPNG=no | |
2046 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2047 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2048 | DEFAULT_wxUSE_LIBXPM=no |
f93ca9fd VS |
2049 | DEFAULT_wxUSE_LIBMSPACK=no |
2050 | DEFAULT_wxUSE_LIBSDL=no | |
10f2d63a | 2051 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2052 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2053 | |
eb4efbdc | 2054 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2055 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2056 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2057 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2058 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2059 | DEFAULT_wxUSE_TIMER=no |
2060 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2061 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2062 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2063 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2064 | DEFAULT_wxUSE_TEXTFILE=no |
002ed9af | 2065 | DEFAULT_wxUSE_SOUND=no |
10f2d63a VZ |
2066 | DEFAULT_wxUSE_INTL=no |
2067 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2068 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2069 | DEFAULT_wxUSE_STREAMS=no |
2070 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2071 | DEFAULT_wxUSE_OLE=no |
2072 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2073 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2074 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2075 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2076 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2077 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2078 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2079 | |
2080 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2081 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2082 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2083 | ||
10f2d63a VZ |
2084 | DEFAULT_wxUSE_CLIPBOARD=no |
2085 | DEFAULT_wxUSE_TOOLTIPS=no | |
2086 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2087 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2088 | DEFAULT_wxUSE_SPLINES=no |
2089 | ||
2090 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2091 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2092 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2093 | ||
10f2d63a VZ |
2094 | DEFAULT_wxUSE_RESOURCES=no |
2095 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2096 | DEFAULT_wxUSE_IPC=no | |
2097 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2098 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2099 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2100 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2101 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2102 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2103 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2104 | DEFAULT_wxUSE_PROTOCOL=no | |
2105 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2106 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2107 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2108 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2109 | |
10f2d63a | 2110 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2111 | DEFAULT_wxUSE_CHOICEDLG=no |
2112 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2113 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2114 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2115 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2116 | DEFAULT_wxUSE_FONTDLG=no |
2117 | DEFAULT_wxUSE_MSGDLG=no | |
2118 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2119 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2120 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2121 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2122 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2123 | DEFAULT_wxUSE_WIZARDDLG=no |
2124 | ||
1e6feb95 | 2125 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2126 | DEFAULT_wxUSE_MINIFRAME=no |
2127 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2128 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2129 | DEFAULT_wxUSE_FS_INET=no |
2130 | DEFAULT_wxUSE_FS_ZIP=no | |
2131 | DEFAULT_wxUSE_BUSYINFO=no | |
2132 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2133 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2134 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2135 | |
2136 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2137 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2138 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2139 | DEFAULT_wxUSE_CALCTRL=no |
2140 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2141 | DEFAULT_wxUSE_CHECKBOX=no |
2142 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2143 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2144 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2145 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2146 | DEFAULT_wxUSE_GAUGE=no |
2147 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2148 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2149 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2150 | DEFAULT_wxUSE_LISTBOX=no |
2151 | DEFAULT_wxUSE_LISTCTRL=no | |
2152 | DEFAULT_wxUSE_NOTEBOOK=no | |
2153 | DEFAULT_wxUSE_RADIOBOX=no | |
2154 | DEFAULT_wxUSE_RADIOBTN=no | |
2155 | DEFAULT_wxUSE_SASH=no | |
2156 | DEFAULT_wxUSE_SCROLLBAR=no | |
2157 | DEFAULT_wxUSE_SLIDER=no | |
2158 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2159 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2160 | DEFAULT_wxUSE_SPLITTER=no |
2161 | DEFAULT_wxUSE_STATBMP=no | |
2162 | DEFAULT_wxUSE_STATBOX=no | |
2163 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2164 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2165 | DEFAULT_wxUSE_STATUSBAR=yes |
2166 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2167 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2168 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2169 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2170 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2171 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2172 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2173 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2174 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2175 | |
2176 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2177 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2178 | DEFAULT_wxUSE_WCSRTOMBS=no |
2179 | ||
edae8572 | 2180 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2181 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2182 | DEFAULT_wxUSE_GIF=no |
2183 | DEFAULT_wxUSE_PCX=no | |
2184 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2185 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2186 | DEFAULT_wxUSE_XPM=no |
658974ae | 2187 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2188 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2189 | |
e9e0dc15 | 2190 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2191 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2192 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2193 | else |
1e6feb95 | 2194 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2195 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2196 | |
d8356fa3 VZ |
2197 | DEFAULT_wxUSE_NANOX=no |
2198 | ||
10f2d63a VZ |
2199 | DEFAULT_wxUSE_THREADS=yes |
2200 | ||
2201 | DEFAULT_wxUSE_SHARED=yes | |
2202 | DEFAULT_wxUSE_OPTIMISE=yes | |
2203 | DEFAULT_wxUSE_PROFILE=no | |
2204 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2205 | DEFAULT_wxUSE_NO_RTTI=no |
2206 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2207 | DEFAULT_wxUSE_PERMISSIVE=no |
2208 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2209 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2210 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2211 | DEFAULT_wxUSE_MEM_TRACING=no | |
2212 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2213 | DEFAULT_wxUSE_DMALLOC=no | |
2214 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2215 | ||
e46d2a18 | 2216 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2217 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2218 | DEFAULT_wxUSE_LOGWINDOW=yes |
2219 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2220 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2221 | |
2222 | DEFAULT_wxUSE_GUI=yes | |
2223 | ||
aa2d9ecc | 2224 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2225 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2226 | DEFAULT_wxUSE_EXPAT=yes |
2227 | DEFAULT_wxUSE_ZLIB=yes | |
2228 | DEFAULT_wxUSE_LIBPNG=yes | |
2229 | DEFAULT_wxUSE_LIBJPEG=yes | |
2230 | DEFAULT_wxUSE_LIBTIFF=yes | |
2231 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2232 | DEFAULT_wxUSE_LIBMSPACK=yes |
f93ca9fd | 2233 | DEFAULT_wxUSE_LIBSDL=no |
16b52fa1 | 2234 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2235 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2236 | |
eb4efbdc | 2237 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2238 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2239 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2240 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2241 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2242 | DEFAULT_wxUSE_TIMER=yes |
2243 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2244 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2245 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2246 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2247 | DEFAULT_wxUSE_TEXTFILE=yes |
002ed9af | 2248 | DEFAULT_wxUSE_SOUND=yes |
10f2d63a VZ |
2249 | DEFAULT_wxUSE_INTL=yes |
2250 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2251 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2252 | DEFAULT_wxUSE_STREAMS=yes |
2253 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2254 | DEFAULT_wxUSE_OLE=yes |
2255 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2256 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2257 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2258 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2259 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2260 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2261 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2262 | |
2263 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2264 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2265 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2266 | ||
10f2d63a VZ |
2267 | DEFAULT_wxUSE_CLIPBOARD=yes |
2268 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2269 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2270 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2271 | DEFAULT_wxUSE_SPLINES=yes |
2272 | ||
2273 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2274 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2275 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2276 | ||
2b5f62a0 | 2277 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2278 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2279 | DEFAULT_wxUSE_IPC=yes | |
2280 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2281 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2282 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2283 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2284 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2285 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2286 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2287 | DEFAULT_wxUSE_PROTOCOL=yes |
2288 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2289 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2290 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2291 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2292 | |
2293 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2294 | DEFAULT_wxUSE_CHOICEDLG=yes |
2295 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2296 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2297 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2298 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2299 | DEFAULT_wxUSE_FONTDLG=yes |
2300 | DEFAULT_wxUSE_MSGDLG=yes | |
2301 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2302 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2303 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2304 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2305 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2306 | DEFAULT_wxUSE_WIZARDDLG=yes |
2307 | ||
1e6feb95 | 2308 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2309 | DEFAULT_wxUSE_MINIFRAME=yes |
2310 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2311 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2312 | DEFAULT_wxUSE_FS_INET=yes |
2313 | DEFAULT_wxUSE_FS_ZIP=yes | |
2314 | DEFAULT_wxUSE_BUSYINFO=yes | |
2315 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2316 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2317 | DEFAULT_wxUSE_VALIDATORS=yes |
2318 | ||
2319 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2320 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2321 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2322 | DEFAULT_wxUSE_CALCTRL=yes |
2323 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2324 | DEFAULT_wxUSE_CHECKBOX=yes |
2325 | DEFAULT_wxUSE_CHECKLST=yes | |
2326 | DEFAULT_wxUSE_CHOICE=yes | |
2327 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2328 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2329 | DEFAULT_wxUSE_GAUGE=yes |
2330 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2331 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2332 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2333 | DEFAULT_wxUSE_LISTBOX=yes |
2334 | DEFAULT_wxUSE_LISTCTRL=yes | |
2335 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2336 | DEFAULT_wxUSE_RADIOBOX=yes | |
2337 | DEFAULT_wxUSE_RADIOBTN=yes | |
2338 | DEFAULT_wxUSE_SASH=yes | |
2339 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2340 | DEFAULT_wxUSE_SLIDER=yes | |
2341 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2342 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2343 | DEFAULT_wxUSE_SPLITTER=yes |
2344 | DEFAULT_wxUSE_STATBMP=yes | |
2345 | DEFAULT_wxUSE_STATBOX=yes | |
2346 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2347 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2348 | DEFAULT_wxUSE_STATUSBAR=yes |
2349 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2350 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2351 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2352 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2353 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2354 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2355 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2356 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2357 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2358 | |
2359 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2360 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2361 | DEFAULT_wxUSE_WCSRTOMBS=no |
2362 | ||
edae8572 | 2363 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2364 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2365 | DEFAULT_wxUSE_GIF=yes |
2366 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2367 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2368 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2369 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2370 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2371 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2372 | |
e9e0dc15 | 2373 | DEFAULT_wxUSE_MONOLITHIC=no |
f93ca9fd | 2374 | DEFAULT_wxUSE_PLUGINS=no |
029b47ad | 2375 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2376 | fi |
2377 | ||
8284b0c5 MB |
2378 | |
2379 | ||
10f2d63a | 2380 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2381 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2382 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2383 | has_toolkit_in_cache=1 |
2384 | eval "DEFAULT_$LINE" | |
2385 | eval "CACHE_$toolkit=1" | |
2386 | fi | |
2387 | done | |
2388 | ||
8284b0c5 MB |
2389 | |
2390 | ||
5005acfe | 2391 | enablestring= |
e6cc62c6 VS |
2392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2393 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2394 | no_cache=0 |
2395 | # Check whether --enable-gui or --disable-gui was given. | |
2396 | if test "${enable_gui+set}" = set; then | |
2397 | enableval="$enable_gui" | |
e6cc62c6 | 2398 | |
10f2d63a VZ |
2399 | if test "$enableval" = yes; then |
2400 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2401 | else | |
2402 | ac_cv_use_gui='wxUSE_GUI=no' | |
2403 | fi | |
e6cc62c6 | 2404 | |
10f2d63a | 2405 | else |
e6cc62c6 | 2406 | |
10f2d63a VZ |
2407 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2408 | if test "x$LINE" != x ; then | |
2409 | eval "DEFAULT_$LINE" | |
2410 | else | |
2411 | no_cache=1 | |
2412 | fi | |
2413 | ||
2414 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2415 | |
e6cc62c6 | 2416 | fi; |
10f2d63a VZ |
2417 | |
2418 | eval "$ac_cv_use_gui" | |
2419 | if test "$no_cache" != 1; then | |
2420 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2421 | fi | |
2422 | ||
2423 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2424 | echo "$as_me:$LINENO: result: yes" >&5 |
2425 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2426 | else |
e6cc62c6 VS |
2427 | echo "$as_me:$LINENO: result: no" >&5 |
2428 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2429 | fi |
e6cc62c6 | 2430 | |
10f2d63a | 2431 | |
9747f85d VS |
2432 | enablestring= |
2433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2434 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2435 | no_cache=0 | |
2436 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2437 | if test "${enable_monolithic+set}" = set; then | |
2438 | enableval="$enable_monolithic" | |
2439 | ||
2440 | if test "$enableval" = yes; then | |
2441 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2442 | else | |
2443 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2444 | fi | |
2445 | ||
2446 | else | |
2447 | ||
2448 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2449 | if test "x$LINE" != x ; then | |
2450 | eval "DEFAULT_$LINE" | |
2451 | else | |
2452 | no_cache=1 | |
2453 | fi | |
2454 | ||
2455 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2456 | ||
2457 | fi; | |
2458 | ||
2459 | eval "$ac_cv_use_monolithic" | |
2460 | if test "$no_cache" != 1; then | |
2461 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2462 | fi | |
2463 | ||
2464 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2465 | echo "$as_me:$LINENO: result: yes" >&5 | |
2466 | echo "${ECHO_T}yes" >&6 | |
2467 | else | |
2468 | echo "$as_me:$LINENO: result: no" >&5 | |
2469 | echo "${ECHO_T}no" >&6 | |
2470 | fi | |
2471 | ||
2472 | ||
f93ca9fd VS |
2473 | enablestring= |
2474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2475 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2476 | no_cache=0 | |
2477 | # Check whether --enable-plugins or --disable-plugins was given. | |
2478 | if test "${enable_plugins+set}" = set; then | |
2479 | enableval="$enable_plugins" | |
2480 | ||
2481 | if test "$enableval" = yes; then | |
2482 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2483 | else | |
2484 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2485 | fi | |
2486 | ||
2487 | else | |
2488 | ||
2489 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2490 | if test "x$LINE" != x ; then | |
2491 | eval "DEFAULT_$LINE" | |
2492 | else | |
2493 | no_cache=1 | |
2494 | fi | |
2495 | ||
2496 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2497 | ||
2498 | fi; | |
2499 | ||
2500 | eval "$ac_cv_use_plugins" | |
2501 | if test "$no_cache" != 1; then | |
2502 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2503 | fi | |
2504 | ||
2505 | if test "$wxUSE_PLUGINS" = yes; then | |
2506 | echo "$as_me:$LINENO: result: yes" >&5 | |
2507 | echo "${ECHO_T}yes" >&6 | |
2508 | else | |
2509 | echo "$as_me:$LINENO: result: no" >&5 | |
2510 | echo "${ECHO_T}no" >&6 | |
2511 | fi | |
2512 | ||
2513 | ||
b12915c1 | 2514 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2515 | |
8284b0c5 | 2516 | |
5005acfe | 2517 | enablestring= |
e6cc62c6 VS |
2518 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2519 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2520 | no_cache=0 |
2521 | # Check whether --enable-universal or --disable-universal was given. | |
2522 | if test "${enable_universal+set}" = set; then | |
2523 | enableval="$enable_universal" | |
e6cc62c6 | 2524 | |
1e6feb95 VZ |
2525 | if test "$enableval" = yes; then |
2526 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2527 | else | |
2528 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2529 | fi | |
e6cc62c6 | 2530 | |
1e6feb95 | 2531 | else |
e6cc62c6 | 2532 | |
1e6feb95 VZ |
2533 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2534 | if test "x$LINE" != x ; then | |
2535 | eval "DEFAULT_$LINE" | |
2536 | else | |
2537 | no_cache=1 | |
2538 | fi | |
2539 | ||
2540 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2541 | |
e6cc62c6 | 2542 | fi; |
1e6feb95 VZ |
2543 | |
2544 | eval "$ac_cv_use_universal" | |
2545 | if test "$no_cache" != 1; then | |
2546 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2547 | fi | |
2548 | ||
2549 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2550 | echo "$as_me:$LINENO: result: yes" >&5 |
2551 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2552 | else |
e6cc62c6 VS |
2553 | echo "$as_me:$LINENO: result: no" >&5 |
2554 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2555 | fi |
e6cc62c6 VS |
2556 | |
2557 | ||
10f2d63a VZ |
2558 | # Check whether --with-gtk or --without-gtk was given. |
2559 | if test "${with_gtk+set}" = set; then | |
2560 | withval="$with_gtk" | |
2561 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2562 | fi; |
10f2d63a VZ |
2563 | |
2564 | # Check whether --with-motif or --without-motif was given. | |
2565 | if test "${with_motif+set}" = set; then | |
2566 | withval="$with_motif" | |
2567 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2568 | fi; |
10f2d63a | 2569 | |
b4085ce6 GD |
2570 | # Check whether --with-mac or --without-mac was given. |
2571 | if test "${with_mac+set}" = set; then | |
2572 | withval="$with_mac" | |
2573 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2574 | fi; |
b4085ce6 | 2575 | |
ac0c4cc3 DE |
2576 | # Check whether --with-cocoa or --without-cocoa was given. |
2577 | if test "${with_cocoa+set}" = set; then | |
2578 | withval="$with_cocoa" | |
2579 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2580 | fi; |
ac0c4cc3 | 2581 | |
10f2d63a VZ |
2582 | # Check whether --with-wine or --without-wine was given. |
2583 | if test "${with_wine+set}" = set; then | |
2584 | withval="$with_wine" | |
89e6bf6d | 2585 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2586 | fi; |
10f2d63a | 2587 | |
77e13408 RL |
2588 | # Check whether --with-msw or --without-msw was given. |
2589 | if test "${with_msw+set}" = set; then | |
2590 | withval="$with_msw" | |
b4efce5e | 2591 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2592 | fi; |
10f2d63a | 2593 | |
e07802fc VZ |
2594 | # Check whether --with-pm or --without-pm was given. |
2595 | if test "${with_pm+set}" = set; then | |
2596 | withval="$with_pm" | |
2597 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2598 | fi; |
698dcdb6 | 2599 | |
1e6feb95 VZ |
2600 | # Check whether --with-mgl or --without-mgl was given. |
2601 | if test "${with_mgl+set}" = set; then | |
2602 | withval="$with_mgl" | |
6c657b52 | 2603 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2604 | fi; |
1e6feb95 | 2605 | |
1725144d RR |
2606 | # Check whether --with-microwin or --without-microwin was given. |
2607 | if test "${with_microwin+set}" = set; then | |
2608 | withval="$with_microwin" | |
2609 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2610 | fi; |
1725144d | 2611 | |
f79bd02d JS |
2612 | # Check whether --with-x11 or --without-x11 was given. |
2613 | if test "${with_x11+set}" = set; then | |
2614 | withval="$with_x11" | |
3c011993 | 2615 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2616 | fi; |
a0b9e27f | 2617 | |
5005acfe | 2618 | enablestring= |
e6cc62c6 VS |
2619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2620 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2621 | no_cache=0 |
ba875e66 VZ |
2622 | # Check whether --enable-nanox or --disable-nanox was given. |
2623 | if test "${enable_nanox+set}" = set; then | |
2624 | enableval="$enable_nanox" | |
e6cc62c6 | 2625 | |
d8356fa3 | 2626 | if test "$enableval" = yes; then |
ba875e66 | 2627 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2628 | else |
ba875e66 | 2629 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2630 | fi |
e6cc62c6 | 2631 | |
d8356fa3 | 2632 | else |
e6cc62c6 | 2633 | |
d8356fa3 VZ |
2634 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2635 | if test "x$LINE" != x ; then | |
2636 | eval "DEFAULT_$LINE" | |
2637 | else | |
2638 | no_cache=1 | |
2639 | fi | |
2640 | ||
ba875e66 | 2641 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2642 | |
e6cc62c6 | 2643 | fi; |
d8356fa3 | 2644 | |
ba875e66 | 2645 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2646 | if test "$no_cache" != 1; then |
ba875e66 | 2647 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2648 | fi |
2649 | ||
2650 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2651 | echo "$as_me:$LINENO: result: yes" >&5 |
2652 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2653 | else |
e6cc62c6 VS |
2654 | echo "$as_me:$LINENO: result: no" >&5 |
2655 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2656 | fi |
e6cc62c6 | 2657 | |
8284b0c5 | 2658 | |
d74f4b5a | 2659 | |
5005acfe | 2660 | enablestring= |
e6cc62c6 VS |
2661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2662 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2663 | no_cache=0 |
2664 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2665 | if test "${enable_gtk2+set}" = set; then |
2666 | enableval="$enable_gtk2" | |
e6cc62c6 | 2667 | |
d74f4b5a VZ |
2668 | if test "$enableval" = yes; then |
2669 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2670 | else | |
2671 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2672 | fi | |
e6cc62c6 | 2673 | |
10f2d63a | 2674 | else |
e6cc62c6 | 2675 | |
d74f4b5a VZ |
2676 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2677 | if test "x$LINE" != x ; then | |
2678 | eval "DEFAULT_$LINE" | |
2679 | else | |
2680 | no_cache=1 | |
2681 | fi | |
2682 | ||
2683 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2684 | |
e6cc62c6 | 2685 | fi; |
328a083c | 2686 | |
d74f4b5a VZ |
2687 | eval "$ac_cv_use_gtk2" |
2688 | if test "$no_cache" != 1; then | |
2689 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2690 | fi | |
2691 | ||
2692 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2693 | echo "$as_me:$LINENO: result: yes" >&5 |
2694 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2695 | else |
e6cc62c6 VS |
2696 | echo "$as_me:$LINENO: result: no" >&5 |
2697 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2698 | fi |
d74f4b5a | 2699 | |
5c6fa7d2 | 2700 | |
0f87e84c RR |
2701 | enablestring= |
2702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2703 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2704 | no_cache=0 | |
2705 | # Check whether --enable-gpe or --disable-gpe was given. | |
2706 | if test "${enable_gpe+set}" = set; then | |
2707 | enableval="$enable_gpe" | |
2708 | ||
2709 | if test "$enableval" = yes; then | |
2710 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2711 | else | |
2712 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2713 | fi | |
2714 | ||
2715 | else | |
2716 | ||
2717 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2718 | if test "x$LINE" != x ; then | |
2719 | eval "DEFAULT_$LINE" | |
2720 | else | |
2721 | no_cache=1 | |
2722 | fi | |
2723 | ||
2724 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2725 | ||
2726 | fi; | |
2727 | ||
2728 | eval "$ac_cv_use_gpe" | |
2729 | if test "$no_cache" != 1; then | |
2730 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2731 | fi | |
2732 | ||
2733 | if test "$wxUSE_GPE" = yes; then | |
2734 | echo "$as_me:$LINENO: result: yes" >&5 | |
2735 | echo "${ECHO_T}yes" >&6 | |
2736 | else | |
2737 | echo "$as_me:$LINENO: result: no" >&5 | |
2738 | echo "${ECHO_T}no" >&6 | |
2739 | fi | |
2740 | ||
2741 | ||
e6cc62c6 VS |
2742 | |
2743 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2744 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2745 | no_cache=0 |
e6cc62c6 VS |
2746 | |
2747 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2748 | if test "${with_libpng+set}" = set; then |
2749 | withval="$with_libpng" | |
e6cc62c6 | 2750 | |
10f2d63a | 2751 | if test "$withval" = yes; then |
b12915c1 | 2752 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2753 | elif test "$withval" = no; then |
b12915c1 | 2754 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2755 | elif test "$withval" = sys; then |
2756 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2757 | elif test "$withval" = builtin; then |
2758 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2759 | else |
e6cc62c6 VS |
2760 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2761 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2762 | { (exit 1); exit 1; }; } | |
10f2d63a | 2763 | fi |
e6cc62c6 | 2764 | |
10f2d63a | 2765 | else |
e6cc62c6 | 2766 | |
b12915c1 | 2767 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2768 | if test "x$LINE" != x ; then |
2769 | eval "DEFAULT_$LINE" | |
2770 | else | |
2771 | no_cache=1 | |
2772 | fi | |
2773 | ||
b12915c1 | 2774 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2775 | |
e6cc62c6 | 2776 | fi; |
10f2d63a | 2777 | |
b12915c1 | 2778 | eval "$ac_cv_use_libpng" |
10f2d63a | 2779 | if test "$no_cache" != 1; then |
b12915c1 | 2780 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2781 | fi |
2782 | ||
b12915c1 | 2783 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2784 | echo "$as_me:$LINENO: result: yes" >&5 |
2785 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2786 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2787 | echo "$as_me:$LINENO: result: no" >&5 |
2788 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2789 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2790 | echo "$as_me:$LINENO: result: system version" >&5 |
2791 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2792 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2793 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2794 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2795 | else |
e6cc62c6 VS |
2796 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2797 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2798 | { (exit 1); exit 1; }; } | |
10f2d63a | 2799 | fi |
10f2d63a | 2800 | |
e6cc62c6 VS |
2801 | |
2802 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2803 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2804 | no_cache=0 |
e6cc62c6 VS |
2805 | |
2806 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2807 | if test "${with_libjpeg+set}" = set; then |
2808 | withval="$with_libjpeg" | |
e6cc62c6 | 2809 | |
10f2d63a | 2810 | if test "$withval" = yes; then |
b12915c1 | 2811 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2812 | elif test "$withval" = no; then |
b12915c1 | 2813 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2814 | elif test "$withval" = sys; then |
2815 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2816 | elif test "$withval" = builtin; then |
2817 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2818 | else |
e6cc62c6 VS |
2819 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2820 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2821 | { (exit 1); exit 1; }; } | |
10f2d63a | 2822 | fi |
e6cc62c6 | 2823 | |
10f2d63a | 2824 | else |
e6cc62c6 | 2825 | |
b12915c1 | 2826 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2827 | if test "x$LINE" != x ; then |
2828 | eval "DEFAULT_$LINE" | |
2829 | else | |
2830 | no_cache=1 | |
2831 | fi | |
2832 | ||
b12915c1 | 2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2834 | |
e6cc62c6 | 2835 | fi; |
10f2d63a | 2836 | |
b12915c1 | 2837 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2838 | if test "$no_cache" != 1; then |
b12915c1 | 2839 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2840 | fi |
2841 | ||
b12915c1 | 2842 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2843 | echo "$as_me:$LINENO: result: yes" >&5 |
2844 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2845 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2846 | echo "$as_me:$LINENO: result: no" >&5 |
2847 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2848 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2849 | echo "$as_me:$LINENO: result: system version" >&5 |
2850 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2851 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2852 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2853 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2854 | else |
e6cc62c6 VS |
2855 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2856 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2857 | { (exit 1); exit 1; }; } | |
10f2d63a | 2858 | fi |
10f2d63a | 2859 | |
e6cc62c6 VS |
2860 | |
2861 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2862 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2863 | no_cache=0 |
e6cc62c6 VS |
2864 | |
2865 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2866 | if test "${with_libtiff+set}" = set; then |
2867 | withval="$with_libtiff" | |
e6cc62c6 | 2868 | |
10f2d63a | 2869 | if test "$withval" = yes; then |
b12915c1 | 2870 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2871 | elif test "$withval" = no; then |
b12915c1 | 2872 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2873 | elif test "$withval" = sys; then |
2874 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2875 | elif test "$withval" = builtin; then |
2876 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2877 | else |
e6cc62c6 VS |
2878 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2879 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2880 | { (exit 1); exit 1; }; } | |
10f2d63a | 2881 | fi |
e6cc62c6 | 2882 | |
10f2d63a | 2883 | else |
e6cc62c6 | 2884 | |
b12915c1 | 2885 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2886 | if test "x$LINE" != x ; then |
2887 | eval "DEFAULT_$LINE" | |
2888 | else | |
2889 | no_cache=1 | |
2890 | fi | |
2891 | ||
b12915c1 | 2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2893 | |
e6cc62c6 | 2894 | fi; |
10f2d63a | 2895 | |
b12915c1 | 2896 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2897 | if test "$no_cache" != 1; then |
b12915c1 | 2898 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2899 | fi |
2900 | ||
b12915c1 | 2901 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2902 | echo "$as_me:$LINENO: result: yes" >&5 |
2903 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2904 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2905 | echo "$as_me:$LINENO: result: no" >&5 |
2906 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2907 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2908 | echo "$as_me:$LINENO: result: system version" >&5 |
2909 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2910 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2911 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2912 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2913 | else |
e6cc62c6 VS |
2914 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2915 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2916 | { (exit 1); exit 1; }; } | |
10f2d63a | 2917 | fi |
10f2d63a | 2918 | |
e6cc62c6 | 2919 | |
89fe663f VZ |
2920 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2921 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2922 | no_cache=0 | |
2923 | ||
2924 | # Check whether --with-libxpm or --without-libxpm was given. | |
2925 | if test "${with_libxpm+set}" = set; then | |
2926 | withval="$with_libxpm" | |
2927 | ||
2928 | if test "$withval" = yes; then | |
2929 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2930 | elif test "$withval" = no; then | |
2931 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2932 | elif test "$withval" = sys; then | |
2933 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2934 | elif test "$withval" = builtin; then | |
2935 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2936 | else | |
2937 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2938 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2939 | { (exit 1); exit 1; }; } | |
2940 | fi | |
2941 | ||
2942 | else | |
2943 | ||
2944 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2945 | if test "x$LINE" != x ; then | |
2946 | eval "DEFAULT_$LINE" | |
2947 | else | |
2948 | no_cache=1 | |
2949 | fi | |
2950 | ||
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2952 | ||
2953 | fi; | |
2954 | ||
2955 | eval "$ac_cv_use_libxpm" | |
2956 | if test "$no_cache" != 1; then | |
2957 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2958 | fi | |
2959 | ||
2960 | if test "$wxUSE_LIBXPM" = yes; then | |
2961 | echo "$as_me:$LINENO: result: yes" >&5 | |
2962 | echo "${ECHO_T}yes" >&6 | |
2963 | elif test "$wxUSE_LIBXPM" = no; then | |
2964 | echo "$as_me:$LINENO: result: no" >&5 | |
2965 | echo "${ECHO_T}no" >&6 | |
2966 | elif test "$wxUSE_LIBXPM" = sys; then | |
2967 | echo "$as_me:$LINENO: result: system version" >&5 | |
2968 | echo "${ECHO_T}system version" >&6 | |
2969 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2970 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2971 | echo "${ECHO_T}builtin version" >&6 | |
2972 | else | |
2973 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2974 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2975 | { (exit 1); exit 1; }; } | |
2976 | fi | |
2977 | ||
2978 | ||
3527f29c VS |
2979 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2980 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2981 | no_cache=0 | |
2982 | ||
2983 | # Check whether --with-libmspack or --without-libmspack was given. | |
2984 | if test "${with_libmspack+set}" = set; then | |
2985 | withval="$with_libmspack" | |
2986 | ||
2987 | if test "$withval" = yes; then | |
2988 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2989 | else | |
2990 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2991 | fi | |
2992 | ||
2993 | else | |
2994 | ||
2995 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2996 | if test "x$LINE" != x ; then | |
2997 | eval "DEFAULT_$LINE" | |
2998 | else | |
2999 | no_cache=1 | |
3000 | fi | |
3001 | ||
3002 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3003 | ||
3004 | fi; | |
3005 | ||
3006 | eval "$ac_cv_use_libmspack" | |
3007 | if test "$no_cache" != 1; then | |
3008 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3009 | fi | |
3010 | ||
3011 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3012 | echo "$as_me:$LINENO: result: yes" >&5 | |
3013 | echo "${ECHO_T}yes" >&6 | |
3014 | else | |
3015 | echo "$as_me:$LINENO: result: no" >&5 | |
3016 | echo "${ECHO_T}no" >&6 | |
3017 | fi | |
3018 | ||
3019 | ||
f93ca9fd VS |
3020 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 |
3021 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3022 | no_cache=0 | |
3023 | ||
3024 | # Check whether --with-sdl or --without-sdl was given. | |
3025 | if test "${with_sdl+set}" = set; then | |
3026 | withval="$with_sdl" | |
3027 | ||
3028 | if test "$withval" = yes; then | |
3029 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3030 | else | |
3031 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3032 | fi | |
3033 | ||
3034 | else | |
3035 | ||
3036 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3044 | ||
3045 | fi; | |
3046 | ||
3047 | eval "$ac_cv_use_sdl" | |
3048 | if test "$no_cache" != 1; then | |
3049 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3050 | fi | |
3051 | ||
3052 | if test "$wxUSE_LIBSDL" = yes; then | |
3053 | echo "$as_me:$LINENO: result: yes" >&5 | |
3054 | echo "${ECHO_T}yes" >&6 | |
3055 | else | |
3056 | echo "$as_me:$LINENO: result: no" >&5 | |
3057 | echo "${ECHO_T}no" >&6 | |
3058 | fi | |
3059 | ||
3060 | ||
e6cc62c6 VS |
3061 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3062 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 3063 | no_cache=0 |
e6cc62c6 VS |
3064 | |
3065 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
3066 | if test "${with_opengl+set}" = set; then |
3067 | withval="$with_opengl" | |
e6cc62c6 | 3068 | |
10f2d63a | 3069 | if test "$withval" = yes; then |
b12915c1 | 3070 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 3071 | else |
b12915c1 | 3072 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 3073 | fi |
e6cc62c6 | 3074 | |
10f2d63a | 3075 | else |
e6cc62c6 | 3076 | |
b12915c1 | 3077 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
3078 | if test "x$LINE" != x ; then |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
b12915c1 | 3084 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 3085 | |
e6cc62c6 | 3086 | fi; |
10f2d63a | 3087 | |
b12915c1 | 3088 | eval "$ac_cv_use_opengl" |
10f2d63a | 3089 | if test "$no_cache" != 1; then |
b12915c1 | 3090 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3091 | fi |
3092 | ||
b12915c1 | 3093 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
3094 | echo "$as_me:$LINENO: result: yes" >&5 |
3095 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3096 | else |
e6cc62c6 VS |
3097 | echo "$as_me:$LINENO: result: no" >&5 |
3098 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3099 | fi |
e6cc62c6 | 3100 | |
10f2d63a | 3101 | |
b12915c1 VZ |
3102 | fi |
3103 | ||
5c6fa7d2 | 3104 | |
e6cc62c6 VS |
3105 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
3106 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 3107 | no_cache=0 |
e6cc62c6 VS |
3108 | |
3109 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
3110 | if test "${with_dmalloc+set}" = set; then |
3111 | withval="$with_dmalloc" | |
e6cc62c6 | 3112 | |
c7a2bf27 | 3113 | if test "$withval" = yes; then |
b12915c1 | 3114 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 3115 | else |
b12915c1 | 3116 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 3117 | fi |
e6cc62c6 | 3118 | |
c7a2bf27 | 3119 | else |
e6cc62c6 | 3120 | |
b12915c1 | 3121 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
3122 | if test "x$LINE" != x ; then |
3123 | eval "DEFAULT_$LINE" | |
3124 | else | |
3125 | no_cache=1 | |
3126 | fi | |
3127 | ||
b12915c1 | 3128 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 3129 | |
e6cc62c6 | 3130 | fi; |
c7a2bf27 | 3131 | |
b12915c1 | 3132 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 3133 | if test "$no_cache" != 1; then |
b12915c1 | 3134 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
3135 | fi |
3136 | ||
b12915c1 | 3137 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
3138 | echo "$as_me:$LINENO: result: yes" >&5 |
3139 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 3140 | else |
e6cc62c6 VS |
3141 | echo "$as_me:$LINENO: result: no" >&5 |
3142 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 3143 | fi |
c7a2bf27 | 3144 | |
e6cc62c6 VS |
3145 | |
3146 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3147 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 3148 | no_cache=0 |
e6cc62c6 VS |
3149 | |
3150 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
3151 | if test "${with_regex+set}" = set; then |
3152 | withval="$with_regex" | |
e6cc62c6 | 3153 | |
3e44f09d VZ |
3154 | if test "$withval" = yes; then |
3155 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3156 | elif test "$withval" = no; then | |
3157 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3158 | elif test "$withval" = sys; then | |
3159 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
3160 | elif test "$withval" = builtin; then |
3161 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 3162 | else |
e6cc62c6 VS |
3163 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3164 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3165 | { (exit 1); exit 1; }; } | |
3e44f09d | 3166 | fi |
e6cc62c6 | 3167 | |
3e44f09d | 3168 | else |
e6cc62c6 | 3169 | |
3e44f09d VZ |
3170 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3171 | if test "x$LINE" != x ; then | |
3172 | eval "DEFAULT_$LINE" | |
3173 | else | |
3174 | no_cache=1 | |
3175 | fi | |
3176 | ||
3177 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3178 | |
e6cc62c6 | 3179 | fi; |
3e44f09d VZ |
3180 | |
3181 | eval "$ac_cv_use_regex" | |
3182 | if test "$no_cache" != 1; then | |
3183 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3184 | fi | |
3185 | ||
3186 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3187 | echo "$as_me:$LINENO: result: yes" >&5 |
3188 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3189 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3190 | echo "$as_me:$LINENO: result: no" >&5 |
3191 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3192 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3193 | echo "$as_me:$LINENO: result: system version" >&5 |
3194 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3195 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3196 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3197 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3198 | else |
e6cc62c6 VS |
3199 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3200 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3201 | { (exit 1); exit 1; }; } | |
3e44f09d | 3202 | fi |
3e44f09d | 3203 | |
e6cc62c6 VS |
3204 | |
3205 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3206 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3207 | no_cache=0 |
e6cc62c6 VS |
3208 | |
3209 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3210 | if test "${with_zlib+set}" = set; then |
3211 | withval="$with_zlib" | |
e6cc62c6 | 3212 | |
10f2d63a | 3213 | if test "$withval" = yes; then |
b12915c1 | 3214 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3215 | elif test "$withval" = no; then |
b12915c1 | 3216 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3217 | elif test "$withval" = sys; then |
3218 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3219 | elif test "$withval" = builtin; then |
3220 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3221 | else |
e6cc62c6 VS |
3222 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3223 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3224 | { (exit 1); exit 1; }; } | |
10f2d63a | 3225 | fi |
e6cc62c6 | 3226 | |
10f2d63a | 3227 | else |
e6cc62c6 | 3228 | |
b12915c1 | 3229 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3230 | if test "x$LINE" != x ; then |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
b12915c1 | 3236 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3237 | |
e6cc62c6 | 3238 | fi; |
10f2d63a | 3239 | |
b12915c1 | 3240 | eval "$ac_cv_use_zlib" |
10f2d63a | 3241 | if test "$no_cache" != 1; then |
b12915c1 | 3242 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3243 | fi |
3244 | ||
b12915c1 | 3245 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3246 | echo "$as_me:$LINENO: result: yes" >&5 |
3247 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3248 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3249 | echo "$as_me:$LINENO: result: no" >&5 |
3250 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3251 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3252 | echo "$as_me:$LINENO: result: system version" >&5 |
3253 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3254 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3255 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3256 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3257 | else |
e6cc62c6 VS |
3258 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3259 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3260 | { (exit 1); exit 1; }; } | |
10f2d63a | 3261 | fi |
10f2d63a | 3262 | |
e6cc62c6 VS |
3263 | |
3264 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3265 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3266 | no_cache=0 |
e6cc62c6 VS |
3267 | |
3268 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3269 | if test "${with_odbc+set}" = set; then |
3270 | withval="$with_odbc" | |
e6cc62c6 | 3271 | |
10f2d63a VZ |
3272 | if test "$withval" = yes; then |
3273 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3274 | elif test "$withval" = no; then |
10f2d63a | 3275 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3276 | elif test "$withval" = sys; then |
3277 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3278 | elif test "$withval" = builtin; then | |
3279 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3280 | else | |
e6cc62c6 VS |
3281 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3282 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3283 | { (exit 1); exit 1; }; } | |
10f2d63a | 3284 | fi |
e6cc62c6 | 3285 | |
10f2d63a | 3286 | else |
e6cc62c6 | 3287 | |
10f2d63a VZ |
3288 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3296 | |
e6cc62c6 | 3297 | fi; |
10f2d63a VZ |
3298 | |
3299 | eval "$ac_cv_use_odbc" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3305 | echo "$as_me:$LINENO: result: yes" >&5 |
3306 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3307 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3308 | echo "$as_me:$LINENO: result: no" >&5 |
3309 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3310 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3311 | echo "$as_me:$LINENO: result: system version" >&5 |
3312 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3313 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3314 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3315 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3316 | else |
e6cc62c6 VS |
3317 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3318 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3319 | { (exit 1); exit 1; }; } | |
10f2d63a | 3320 | fi |
e6cc62c6 | 3321 | |
52127426 | 3322 | |
672abd7a VS |
3323 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3324 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3325 | no_cache=0 | |
3326 | ||
3327 | # Check whether --with-expat or --without-expat was given. | |
3328 | if test "${with_expat+set}" = set; then | |
3329 | withval="$with_expat" | |
3330 | ||
3331 | if test "$withval" = yes; then | |
3332 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3333 | elif test "$withval" = no; then | |
3334 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3335 | elif test "$withval" = sys; then | |
3336 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3337 | elif test "$withval" = builtin; then | |
3338 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3339 | else | |
3340 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3341 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3342 | { (exit 1); exit 1; }; } | |
3343 | fi | |
3344 | ||
3345 | else | |
3346 | ||
3347 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3348 | if test "x$LINE" != x ; then | |
3349 | eval "DEFAULT_$LINE" | |
3350 | else | |
3351 | no_cache=1 | |
3352 | fi | |
3353 | ||
3354 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3355 | ||
3356 | fi; | |
3357 | ||
3358 | eval "$ac_cv_use_expat" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_EXPAT" = yes; then | |
3364 | echo "$as_me:$LINENO: result: yes" >&5 | |
3365 | echo "${ECHO_T}yes" >&6 | |
3366 | elif test "$wxUSE_EXPAT" = no; then | |
3367 | echo "$as_me:$LINENO: result: no" >&5 | |
3368 | echo "${ECHO_T}no" >&6 | |
3369 | elif test "$wxUSE_EXPAT" = sys; then | |
3370 | echo "$as_me:$LINENO: result: system version" >&5 | |
3371 | echo "${ECHO_T}system version" >&6 | |
3372 | elif test "$wxUSE_EXPAT" = builtin; then | |
3373 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3374 | echo "${ECHO_T}builtin version" >&6 | |
3375 | else | |
3376 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3377 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3378 | { (exit 1); exit 1; }; } | |
3379 | fi | |
3380 | ||
3381 | ||
8284b0c5 MB |
3382 | |
3383 | ||
5005acfe | 3384 | enablestring= |
e6cc62c6 VS |
3385 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3386 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3387 | no_cache=0 |
3388 | # Check whether --enable-shared or --disable-shared was given. | |
3389 | if test "${enable_shared+set}" = set; then | |
3390 | enableval="$enable_shared" | |
e6cc62c6 | 3391 | |
10f2d63a VZ |
3392 | if test "$enableval" = yes; then |
3393 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3394 | else | |
3395 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3396 | fi | |
e6cc62c6 | 3397 | |
10f2d63a | 3398 | else |
e6cc62c6 | 3399 | |
10f2d63a VZ |
3400 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3401 | if test "x$LINE" != x ; then | |
3402 | eval "DEFAULT_$LINE" | |
3403 | else | |
3404 | no_cache=1 | |
3405 | fi | |
3406 | ||
3407 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3408 | |
e6cc62c6 | 3409 | fi; |
10f2d63a VZ |
3410 | |
3411 | eval "$ac_cv_use_shared" | |
3412 | if test "$no_cache" != 1; then | |
3413 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3414 | fi | |
3415 | ||
3416 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3417 | echo "$as_me:$LINENO: result: yes" >&5 |
3418 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3419 | else |
e6cc62c6 VS |
3420 | echo "$as_me:$LINENO: result: no" >&5 |
3421 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3422 | fi |
e6cc62c6 | 3423 | |
10f2d63a | 3424 | |
5005acfe | 3425 | enablestring= |
e6cc62c6 VS |
3426 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3427 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3428 | no_cache=0 |
3429 | # Check whether --enable-optimise or --disable-optimise was given. | |
3430 | if test "${enable_optimise+set}" = set; then | |
3431 | enableval="$enable_optimise" | |
e6cc62c6 | 3432 | |
10f2d63a VZ |
3433 | if test "$enableval" = yes; then |
3434 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3435 | else | |
3436 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3437 | fi | |
e6cc62c6 | 3438 | |
10f2d63a | 3439 | else |
e6cc62c6 | 3440 | |
10f2d63a VZ |
3441 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3449 | |
e6cc62c6 | 3450 | fi; |
10f2d63a VZ |
3451 | |
3452 | eval "$ac_cv_use_optimise" | |
3453 | if test "$no_cache" != 1; then | |
3454 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3455 | fi | |
3456 | ||
3457 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3458 | echo "$as_me:$LINENO: result: yes" >&5 |
3459 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3460 | else |
e6cc62c6 VS |
3461 | echo "$as_me:$LINENO: result: no" >&5 |
3462 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3463 | fi |
e6cc62c6 | 3464 | |
10f2d63a | 3465 | |
5005acfe | 3466 | enablestring= |
e6cc62c6 VS |
3467 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3468 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3469 | no_cache=0 |
3470 | # Check whether --enable-debug or --disable-debug was given. | |
3471 | if test "${enable_debug+set}" = set; then | |
3472 | enableval="$enable_debug" | |
e6cc62c6 | 3473 | |
10f2d63a VZ |
3474 | if test "$enableval" = yes; then |
3475 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3476 | else | |
3477 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3478 | fi | |
e6cc62c6 | 3479 | |
10f2d63a | 3480 | else |
e6cc62c6 | 3481 | |
10f2d63a VZ |
3482 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3483 | if test "x$LINE" != x ; then | |
3484 | eval "DEFAULT_$LINE" | |
3485 | else | |
3486 | no_cache=1 | |
3487 | fi | |
3488 | ||
3489 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3490 | |
e6cc62c6 | 3491 | fi; |
10f2d63a VZ |
3492 | |
3493 | eval "$ac_cv_use_debug" | |
3494 | if test "$no_cache" != 1; then | |
3495 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3496 | fi | |
3497 | ||
3498 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3499 | echo "$as_me:$LINENO: result: yes" >&5 |
3500 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3501 | else |
e6cc62c6 VS |
3502 | echo "$as_me:$LINENO: result: no" >&5 |
3503 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3504 | fi |
e6cc62c6 | 3505 | |
52127426 | 3506 | |
df5168c4 MB |
3507 | enablestring= |
3508 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3509 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3510 | no_cache=0 | |
3511 | # Check whether --enable-stl or --disable-stl was given. | |
3512 | if test "${enable_stl+set}" = set; then | |
3513 | enableval="$enable_stl" | |
3514 | ||
3515 | if test "$enableval" = yes; then | |
3516 | ac_cv_use_stl='wxUSE_STL=yes' | |
3517 | else | |
3518 | ac_cv_use_stl='wxUSE_STL=no' | |
3519 | fi | |
3520 | ||
3521 | else | |
3522 | ||
3523 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3531 | ||
3532 | fi; | |
3533 | ||
3534 | eval "$ac_cv_use_stl" | |
3535 | if test "$no_cache" != 1; then | |
3536 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3537 | fi | |
3538 | ||
3539 | if test "$wxUSE_STL" = yes; then | |
3540 | echo "$as_me:$LINENO: result: yes" >&5 | |
3541 | echo "${ECHO_T}yes" >&6 | |
3542 | else | |
3543 | echo "$as_me:$LINENO: result: no" >&5 | |
3544 | echo "${ECHO_T}no" >&6 | |
3545 | fi | |
3546 | ||
3547 | ||
10f2d63a VZ |
3548 | if test "$wxUSE_DEBUG" = "yes"; then |
3549 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3550 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3551 | BUILD=debug |
10f2d63a VZ |
3552 | elif test "$wxUSE_DEBUG" = "no"; then |
3553 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3554 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3555 | BUILD=release |
10f2d63a VZ |
3556 | fi |
3557 | ||
8284b0c5 | 3558 | |
5005acfe | 3559 | enablestring= |
e6cc62c6 VS |
3560 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3561 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3562 | no_cache=0 |
3563 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3564 | if test "${enable_debug_flag+set}" = set; then | |
3565 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3566 | |
10f2d63a VZ |
3567 | if test "$enableval" = yes; then |
3568 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3569 | else | |
3570 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3571 | fi | |
e6cc62c6 | 3572 | |
10f2d63a | 3573 | else |
e6cc62c6 | 3574 | |
10f2d63a VZ |
3575 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3576 | if test "x$LINE" != x ; then | |
3577 | eval "DEFAULT_$LINE" | |
3578 | else | |
3579 | no_cache=1 | |
3580 | fi | |
3581 | ||
3582 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3583 | |
e6cc62c6 | 3584 | fi; |
10f2d63a VZ |
3585 | |
3586 | eval "$ac_cv_use_debug_flag" | |
3587 | if test "$no_cache" != 1; then | |
3588 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3589 | fi | |
3590 | ||
3591 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3592 | echo "$as_me:$LINENO: result: yes" >&5 |
3593 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3594 | else |
e6cc62c6 VS |
3595 | echo "$as_me:$LINENO: result: no" >&5 |
3596 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3597 | fi |
e6cc62c6 | 3598 | |
10f2d63a | 3599 | |
5005acfe | 3600 | enablestring= |
e6cc62c6 VS |
3601 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3602 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3603 | no_cache=0 |
3604 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3605 | if test "${enable_debug_info+set}" = set; then | |
3606 | enableval="$enable_debug_info" | |
e6cc62c6 | 3607 | |
10f2d63a VZ |
3608 | if test "$enableval" = yes; then |
3609 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3610 | else | |
3611 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3612 | fi | |
e6cc62c6 | 3613 | |
10f2d63a | 3614 | else |
e6cc62c6 | 3615 | |
10f2d63a VZ |
3616 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3617 | if test "x$LINE" != x ; then | |
3618 | eval "DEFAULT_$LINE" | |
3619 | else | |
3620 | no_cache=1 | |
3621 | fi | |
3622 | ||
3623 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3624 | |
e6cc62c6 | 3625 | fi; |
10f2d63a VZ |
3626 | |
3627 | eval "$ac_cv_use_debug_info" | |
3628 | if test "$no_cache" != 1; then | |
3629 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3630 | fi | |
3631 | ||
3632 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3633 | echo "$as_me:$LINENO: result: yes" >&5 |
3634 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3635 | else |
e6cc62c6 VS |
3636 | echo "$as_me:$LINENO: result: no" >&5 |
3637 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3638 | fi |
e6cc62c6 | 3639 | |
10f2d63a | 3640 | |
5005acfe | 3641 | enablestring= |
e6cc62c6 VS |
3642 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3643 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3644 | no_cache=0 |
3645 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3646 | if test "${enable_debug_gdb+set}" = set; then | |
3647 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3648 | |
10f2d63a VZ |
3649 | if test "$enableval" = yes; then |
3650 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3651 | else | |
3652 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3653 | fi | |
e6cc62c6 | 3654 | |
10f2d63a | 3655 | else |
e6cc62c6 | 3656 | |
10f2d63a VZ |
3657 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3658 | if test "x$LINE" != x ; then | |
3659 | eval "DEFAULT_$LINE" | |
3660 | else | |
3661 | no_cache=1 | |
3662 | fi | |
3663 | ||
3664 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3665 | |
e6cc62c6 | 3666 | fi; |
10f2d63a VZ |
3667 | |
3668 | eval "$ac_cv_use_debug_gdb" | |
3669 | if test "$no_cache" != 1; then | |
3670 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3671 | fi | |
3672 | ||
3673 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3674 | echo "$as_me:$LINENO: result: yes" >&5 |
3675 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3676 | else |
e6cc62c6 VS |
3677 | echo "$as_me:$LINENO: result: no" >&5 |
3678 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3679 | fi |
e6cc62c6 | 3680 | |
10f2d63a | 3681 | |
5005acfe | 3682 | enablestring= |
e6cc62c6 VS |
3683 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3684 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3685 | no_cache=0 |
3686 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3687 | if test "${enable_debug_cntxt+set}" = set; then | |
3688 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3689 | |
10f2d63a VZ |
3690 | if test "$enableval" = yes; then |
3691 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3692 | else | |
3693 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3694 | fi | |
e6cc62c6 | 3695 | |
10f2d63a | 3696 | else |
e6cc62c6 | 3697 | |
10f2d63a VZ |
3698 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3699 | if test "x$LINE" != x ; then | |
3700 | eval "DEFAULT_$LINE" | |
3701 | else | |
3702 | no_cache=1 | |
3703 | fi | |
3704 | ||
3705 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3706 | |
e6cc62c6 | 3707 | fi; |
10f2d63a VZ |
3708 | |
3709 | eval "$ac_cv_use_debug_cntxt" | |
3710 | if test "$no_cache" != 1; then | |
3711 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3712 | fi | |
3713 | ||
3714 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3715 | echo "$as_me:$LINENO: result: yes" >&5 |
3716 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3717 | else |
e6cc62c6 VS |
3718 | echo "$as_me:$LINENO: result: no" >&5 |
3719 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3720 | fi |
e6cc62c6 | 3721 | |
10f2d63a | 3722 | |
5005acfe | 3723 | enablestring= |
e6cc62c6 VS |
3724 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3725 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3726 | no_cache=0 |
3727 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3728 | if test "${enable_mem_tracing+set}" = set; then | |
3729 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3730 | |
10f2d63a VZ |
3731 | if test "$enableval" = yes; then |
3732 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3733 | else | |
3734 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3735 | fi | |
e6cc62c6 | 3736 | |
10f2d63a | 3737 | else |
e6cc62c6 | 3738 | |
10f2d63a VZ |
3739 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3740 | if test "x$LINE" != x ; then | |
3741 | eval "DEFAULT_$LINE" | |
3742 | else | |
3743 | no_cache=1 | |
3744 | fi | |
3745 | ||
3746 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3747 | |
e6cc62c6 | 3748 | fi; |
10f2d63a VZ |
3749 | |
3750 | eval "$ac_cv_use_mem_tracing" | |
3751 | if test "$no_cache" != 1; then | |
3752 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3753 | fi | |
3754 | ||
3755 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3756 | echo "$as_me:$LINENO: result: yes" >&5 |
3757 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3758 | else |
e6cc62c6 VS |
3759 | echo "$as_me:$LINENO: result: no" >&5 |
3760 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3761 | fi |
e6cc62c6 | 3762 | |
10f2d63a | 3763 | |
5005acfe | 3764 | enablestring= |
e6cc62c6 VS |
3765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3766 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3767 | no_cache=0 |
3768 | # Check whether --enable-profile or --disable-profile was given. | |
3769 | if test "${enable_profile+set}" = set; then | |
3770 | enableval="$enable_profile" | |
e6cc62c6 | 3771 | |
10f2d63a VZ |
3772 | if test "$enableval" = yes; then |
3773 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3774 | else | |
3775 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3776 | fi | |
e6cc62c6 | 3777 | |
10f2d63a | 3778 | else |
e6cc62c6 | 3779 | |
10f2d63a VZ |
3780 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3781 | if test "x$LINE" != x ; then | |
3782 | eval "DEFAULT_$LINE" | |
3783 | else | |
3784 | no_cache=1 | |
3785 | fi | |
3786 | ||
3787 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3788 | |
e6cc62c6 | 3789 | fi; |
10f2d63a VZ |
3790 | |
3791 | eval "$ac_cv_use_profile" | |
3792 | if test "$no_cache" != 1; then | |
3793 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3794 | fi | |
3795 | ||
3796 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3797 | echo "$as_me:$LINENO: result: yes" >&5 |
3798 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3799 | else |
e6cc62c6 VS |
3800 | echo "$as_me:$LINENO: result: no" >&5 |
3801 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3802 | fi |
e6cc62c6 | 3803 | |
10f2d63a | 3804 | |
5005acfe | 3805 | enablestring= |
e6cc62c6 VS |
3806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3807 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3808 | no_cache=0 |
3809 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3810 | if test "${enable_no_rtti+set}" = set; then | |
3811 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3812 | |
10f2d63a VZ |
3813 | if test "$enableval" = yes; then |
3814 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3815 | else | |
3816 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3817 | fi | |
e6cc62c6 | 3818 | |
10f2d63a | 3819 | else |
e6cc62c6 | 3820 | |
10f2d63a VZ |
3821 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3822 | if test "x$LINE" != x ; then | |
3823 | eval "DEFAULT_$LINE" | |
3824 | else | |
3825 | no_cache=1 | |
3826 | fi | |
3827 | ||
3828 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3829 | |
e6cc62c6 | 3830 | fi; |
10f2d63a VZ |
3831 | |
3832 | eval "$ac_cv_use_no_rtti" | |
3833 | if test "$no_cache" != 1; then | |
3834 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3835 | fi | |
3836 | ||
3837 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3838 | echo "$as_me:$LINENO: result: yes" >&5 |
3839 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3840 | else |
e6cc62c6 VS |
3841 | echo "$as_me:$LINENO: result: no" >&5 |
3842 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3843 | fi |
e6cc62c6 | 3844 | |
10f2d63a | 3845 | |
5005acfe | 3846 | enablestring= |
e6cc62c6 VS |
3847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3848 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3849 | no_cache=0 |
3850 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3851 | if test "${enable_no_exceptions+set}" = set; then | |
3852 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3853 | |
10f2d63a VZ |
3854 | if test "$enableval" = yes; then |
3855 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3856 | else | |
3857 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3858 | fi | |
e6cc62c6 | 3859 | |
10f2d63a | 3860 | else |
e6cc62c6 | 3861 | |
10f2d63a VZ |
3862 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3863 | if test "x$LINE" != x ; then | |
3864 | eval "DEFAULT_$LINE" | |
3865 | else | |
3866 | no_cache=1 | |
3867 | fi | |
3868 | ||
3869 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3870 | |
e6cc62c6 | 3871 | fi; |
10f2d63a VZ |
3872 | |
3873 | eval "$ac_cv_use_no_exceptions" | |
3874 | if test "$no_cache" != 1; then | |
3875 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3876 | fi | |
3877 | ||
3878 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3879 | echo "$as_me:$LINENO: result: yes" >&5 |
3880 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3881 | else |
e6cc62c6 VS |
3882 | echo "$as_me:$LINENO: result: no" >&5 |
3883 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3884 | fi |
e6cc62c6 | 3885 | |
10f2d63a | 3886 | |
5005acfe | 3887 | enablestring= |
e6cc62c6 VS |
3888 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3889 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3890 | no_cache=0 |
3891 | # Check whether --enable-permissive or --disable-permissive was given. | |
3892 | if test "${enable_permissive+set}" = set; then | |
3893 | enableval="$enable_permissive" | |
e6cc62c6 | 3894 | |
10f2d63a VZ |
3895 | if test "$enableval" = yes; then |
3896 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3897 | else | |
3898 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3899 | fi | |
e6cc62c6 | 3900 | |
10f2d63a | 3901 | else |
e6cc62c6 | 3902 | |
10f2d63a VZ |
3903 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3904 | if test "x$LINE" != x ; then | |
3905 | eval "DEFAULT_$LINE" | |
3906 | else | |
3907 | no_cache=1 | |
3908 | fi | |
3909 | ||
3910 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3911 | |
e6cc62c6 | 3912 | fi; |
10f2d63a VZ |
3913 | |
3914 | eval "$ac_cv_use_permissive" | |
3915 | if test "$no_cache" != 1; then | |
3916 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3917 | fi | |
3918 | ||
3919 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3920 | echo "$as_me:$LINENO: result: yes" >&5 |
3921 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3922 | else |
e6cc62c6 VS |
3923 | echo "$as_me:$LINENO: result: no" >&5 |
3924 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3925 | fi |
e6cc62c6 | 3926 | |
10f2d63a | 3927 | |
5005acfe | 3928 | enablestring= |
e6cc62c6 VS |
3929 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3930 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3931 | no_cache=0 |
3932 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3933 | if test "${enable_no_deps+set}" = set; then | |
3934 | enableval="$enable_no_deps" | |
e6cc62c6 | 3935 | |
10f2d63a VZ |
3936 | if test "$enableval" = yes; then |
3937 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3938 | else | |
3939 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3940 | fi | |
e6cc62c6 | 3941 | |
10f2d63a | 3942 | else |
e6cc62c6 | 3943 | |
10f2d63a VZ |
3944 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3945 | if test "x$LINE" != x ; then | |
3946 | eval "DEFAULT_$LINE" | |
3947 | else | |
3948 | no_cache=1 | |
3949 | fi | |
3950 | ||
3951 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3952 | |
e6cc62c6 | 3953 | fi; |
10f2d63a VZ |
3954 | |
3955 | eval "$ac_cv_use_no_deps" | |
3956 | if test "$no_cache" != 1; then | |
3957 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3958 | fi | |
3959 | ||
3960 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3961 | echo "$as_me:$LINENO: result: yes" >&5 |
3962 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3963 | else |
e6cc62c6 VS |
3964 | echo "$as_me:$LINENO: result: no" >&5 |
3965 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3966 | fi |
e6cc62c6 | 3967 | |
52127426 | 3968 | |
8284b0c5 | 3969 | |
65d8ef1e | 3970 | enablestring= |
e6cc62c6 VS |
3971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3972 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3973 | no_cache=0 |
3974 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3975 | if test "${enable_compat22+set}" = set; then | |
3976 | enableval="$enable_compat22" | |
e6cc62c6 | 3977 | |
54276ccf VZ |
3978 | if test "$enableval" = yes; then |
3979 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3980 | else | |
3981 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3982 | fi | |
e6cc62c6 | 3983 | |
54276ccf | 3984 | else |
e6cc62c6 | 3985 | |
54276ccf VZ |
3986 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3987 | if test "x$LINE" != x ; then | |
3988 | eval "DEFAULT_$LINE" | |
3989 | else | |
3990 | no_cache=1 | |
3991 | fi | |
3992 | ||
3993 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3994 | |
e6cc62c6 | 3995 | fi; |
54276ccf VZ |
3996 | |
3997 | eval "$ac_cv_use_compat22" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
4003 | echo "$as_me:$LINENO: result: yes" >&5 |
4004 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 4005 | else |
e6cc62c6 VS |
4006 | echo "$as_me:$LINENO: result: no" >&5 |
4007 | echo "${ECHO_T}no" >&6 | |
54276ccf | 4008 | fi |
e6cc62c6 | 4009 | |
54276ccf | 4010 | |
65d8ef1e | 4011 | enablestring=disable |
e6cc62c6 VS |
4012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
4013 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
4014 | no_cache=0 |
4015 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4016 | if test "${enable_compat24+set}" = set; then | |
4017 | enableval="$enable_compat24" | |
e6cc62c6 | 4018 | |
65d8ef1e VS |
4019 | if test "$enableval" = yes; then |
4020 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4021 | else | |
4022 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4023 | fi | |
e6cc62c6 | 4024 | |
65d8ef1e | 4025 | else |
e6cc62c6 | 4026 | |
65d8ef1e VS |
4027 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 4035 | |
e6cc62c6 | 4036 | fi; |
65d8ef1e VS |
4037 | |
4038 | eval "$ac_cv_use_compat24" | |
4039 | if test "$no_cache" != 1; then | |
4040 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4041 | fi | |
4042 | ||
4043 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
4044 | echo "$as_me:$LINENO: result: yes" >&5 |
4045 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 4046 | else |
e6cc62c6 VS |
4047 | echo "$as_me:$LINENO: result: no" >&5 |
4048 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 4049 | fi |
e6cc62c6 | 4050 | |
65d8ef1e | 4051 | |
3bd8fb5f RD |
4052 | # Check whether --enable-rpath or --disable-rpath was given. |
4053 | if test "${enable_rpath+set}" = set; then | |
4054 | enableval="$enable_rpath" | |
4055 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 4056 | fi; |
3bd8fb5f RD |
4057 | |
4058 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
4059 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
4060 | fi | |
4061 | ||
8284b0c5 MB |
4062 | |
4063 | ||
4064 | ||
5005acfe | 4065 | enablestring= |
e6cc62c6 VS |
4066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
4067 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
4068 | no_cache=0 |
4069 | # Check whether --enable-intl or --disable-intl was given. | |
4070 | if test "${enable_intl+set}" = set; then | |
4071 | enableval="$enable_intl" | |
e6cc62c6 | 4072 | |
10f2d63a VZ |
4073 | if test "$enableval" = yes; then |
4074 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4075 | else | |
4076 | ac_cv_use_intl='wxUSE_INTL=no' | |
4077 | fi | |
e6cc62c6 | 4078 | |
10f2d63a | 4079 | else |
e6cc62c6 | 4080 | |
10f2d63a VZ |
4081 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
4082 | if test "x$LINE" != x ; then | |
4083 | eval "DEFAULT_$LINE" | |
4084 | else | |
4085 | no_cache=1 | |
4086 | fi | |
4087 | ||
4088 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 4089 | |
e6cc62c6 | 4090 | fi; |
10f2d63a VZ |
4091 | |
4092 | eval "$ac_cv_use_intl" | |
4093 | if test "$no_cache" != 1; then | |
4094 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4095 | fi | |
4096 | ||
4097 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
4098 | echo "$as_me:$LINENO: result: yes" >&5 |
4099 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4100 | else |
e6cc62c6 VS |
4101 | echo "$as_me:$LINENO: result: no" >&5 |
4102 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4103 | fi |
e6cc62c6 | 4104 | |
10f2d63a | 4105 | |
5005acfe | 4106 | enablestring= |
e6cc62c6 VS |
4107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
4108 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
4109 | no_cache=0 |
4110 | # Check whether --enable-config or --disable-config was given. | |
4111 | if test "${enable_config+set}" = set; then | |
4112 | enableval="$enable_config" | |
e6cc62c6 | 4113 | |
10f2d63a VZ |
4114 | if test "$enableval" = yes; then |
4115 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4116 | else | |
4117 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4118 | fi | |
e6cc62c6 | 4119 | |
10f2d63a | 4120 | else |
e6cc62c6 | 4121 | |
10f2d63a VZ |
4122 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
4123 | if test "x$LINE" != x ; then | |
4124 | eval "DEFAULT_$LINE" | |
4125 | else | |
4126 | no_cache=1 | |
4127 | fi | |
4128 | ||
4129 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 4130 | |
e6cc62c6 | 4131 | fi; |
10f2d63a VZ |
4132 | |
4133 | eval "$ac_cv_use_config" | |
4134 | if test "$no_cache" != 1; then | |
4135 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4136 | fi | |
4137 | ||
4138 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
4139 | echo "$as_me:$LINENO: result: yes" >&5 |
4140 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4141 | else |
e6cc62c6 VS |
4142 | echo "$as_me:$LINENO: result: no" >&5 |
4143 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4144 | fi |
e6cc62c6 | 4145 | |
52127426 | 4146 | |
8284b0c5 | 4147 | |
5005acfe | 4148 | enablestring= |
e6cc62c6 VS |
4149 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
4150 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
4151 | no_cache=0 |
4152 | # Check whether --enable-protocols or --disable-protocols was given. | |
4153 | if test "${enable_protocols+set}" = set; then | |
4154 | enableval="$enable_protocols" | |
e6cc62c6 | 4155 | |
a1622950 VZ |
4156 | if test "$enableval" = yes; then |
4157 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4158 | else | |
4159 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4160 | fi | |
e6cc62c6 | 4161 | |
a1622950 | 4162 | else |
e6cc62c6 | 4163 | |
a1622950 VZ |
4164 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4165 | if test "x$LINE" != x ; then | |
4166 | eval "DEFAULT_$LINE" | |
4167 | else | |
4168 | no_cache=1 | |
4169 | fi | |
4170 | ||
4171 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4172 | |
e6cc62c6 | 4173 | fi; |
a1622950 VZ |
4174 | |
4175 | eval "$ac_cv_use_protocols" | |
4176 | if test "$no_cache" != 1; then | |
4177 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4178 | fi | |
4179 | ||
4180 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4181 | echo "$as_me:$LINENO: result: yes" >&5 |
4182 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4183 | else |
e6cc62c6 VS |
4184 | echo "$as_me:$LINENO: result: no" >&5 |
4185 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4186 | fi |
e6cc62c6 | 4187 | |
a1622950 | 4188 | |
5005acfe | 4189 | enablestring= |
e6cc62c6 VS |
4190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4191 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4192 | no_cache=0 |
4193 | # Check whether --enable-ftp or --disable-ftp was given. | |
4194 | if test "${enable_ftp+set}" = set; then | |
4195 | enableval="$enable_ftp" | |
e6cc62c6 | 4196 | |
a1622950 VZ |
4197 | if test "$enableval" = yes; then |
4198 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4199 | else | |
4200 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4201 | fi | |
e6cc62c6 | 4202 | |
a1622950 | 4203 | else |
e6cc62c6 | 4204 | |
a1622950 VZ |
4205 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4206 | if test "x$LINE" != x ; then | |
4207 | eval "DEFAULT_$LINE" | |
4208 | else | |
4209 | no_cache=1 | |
4210 | fi | |
4211 | ||
4212 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4213 | |
e6cc62c6 | 4214 | fi; |
a1622950 VZ |
4215 | |
4216 | eval "$ac_cv_use_ftp" | |
4217 | if test "$no_cache" != 1; then | |
4218 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4219 | fi | |
4220 | ||
4221 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4222 | echo "$as_me:$LINENO: result: yes" >&5 |
4223 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4224 | else |
e6cc62c6 VS |
4225 | echo "$as_me:$LINENO: result: no" >&5 |
4226 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4227 | fi |
e6cc62c6 | 4228 | |
a1622950 | 4229 | |
5005acfe | 4230 | enablestring= |
e6cc62c6 VS |
4231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4232 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4233 | no_cache=0 |
4234 | # Check whether --enable-http or --disable-http was given. | |
4235 | if test "${enable_http+set}" = set; then | |
4236 | enableval="$enable_http" | |
e6cc62c6 | 4237 | |
a1622950 VZ |
4238 | if test "$enableval" = yes; then |
4239 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4240 | else | |
4241 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4242 | fi | |
e6cc62c6 | 4243 | |
a1622950 | 4244 | else |
e6cc62c6 | 4245 | |
a1622950 VZ |
4246 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4247 | if test "x$LINE" != x ; then | |
4248 | eval "DEFAULT_$LINE" | |
4249 | else | |
4250 | no_cache=1 | |
4251 | fi | |
4252 | ||
4253 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4254 | |
e6cc62c6 | 4255 | fi; |
a1622950 VZ |
4256 | |
4257 | eval "$ac_cv_use_http" | |
4258 | if test "$no_cache" != 1; then | |
4259 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4260 | fi | |
4261 | ||
4262 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4263 | echo "$as_me:$LINENO: result: yes" >&5 |
4264 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4265 | else |
e6cc62c6 VS |
4266 | echo "$as_me:$LINENO: result: no" >&5 |
4267 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4268 | fi |
e6cc62c6 | 4269 | |
a1622950 | 4270 | |
5005acfe | 4271 | enablestring= |
e6cc62c6 VS |
4272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4273 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4274 | no_cache=0 |
4275 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4276 | if test "${enable_fileproto+set}" = set; then | |
4277 | enableval="$enable_fileproto" | |
e6cc62c6 | 4278 | |
a1622950 VZ |
4279 | if test "$enableval" = yes; then |
4280 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4281 | else | |
4282 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4283 | fi | |
e6cc62c6 | 4284 | |
a1622950 | 4285 | else |
e6cc62c6 | 4286 | |
a1622950 VZ |
4287 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4288 | if test "x$LINE" != x ; then | |
4289 | eval "DEFAULT_$LINE" | |
4290 | else | |
4291 | no_cache=1 | |
4292 | fi | |
4293 | ||
4294 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4295 | |
e6cc62c6 | 4296 | fi; |
a1622950 VZ |
4297 | |
4298 | eval "$ac_cv_use_fileproto" | |
4299 | if test "$no_cache" != 1; then | |
4300 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4301 | fi | |
4302 | ||
4303 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4304 | echo "$as_me:$LINENO: result: yes" >&5 |
4305 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4306 | else |
e6cc62c6 VS |
4307 | echo "$as_me:$LINENO: result: no" >&5 |
4308 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4309 | fi |
e6cc62c6 | 4310 | |
a1622950 | 4311 | |
5005acfe | 4312 | enablestring= |
e6cc62c6 VS |
4313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4314 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4315 | no_cache=0 |
4316 | # Check whether --enable-sockets or --disable-sockets was given. | |
4317 | if test "${enable_sockets+set}" = set; then | |
4318 | enableval="$enable_sockets" | |
e6cc62c6 | 4319 | |
10f2d63a VZ |
4320 | if test "$enableval" = yes; then |
4321 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4322 | else | |
4323 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4324 | fi | |
e6cc62c6 | 4325 | |
10f2d63a | 4326 | else |
e6cc62c6 | 4327 | |
10f2d63a VZ |
4328 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4329 | if test "x$LINE" != x ; then | |
4330 | eval "DEFAULT_$LINE" | |
4331 | else | |
4332 | no_cache=1 | |
4333 | fi | |
4334 | ||
4335 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4336 | |
e6cc62c6 | 4337 | fi; |
10f2d63a VZ |
4338 | |
4339 | eval "$ac_cv_use_sockets" | |
4340 | if test "$no_cache" != 1; then | |
4341 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4342 | fi | |
4343 | ||
4344 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4345 | echo "$as_me:$LINENO: result: yes" >&5 |
4346 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4347 | else |
e6cc62c6 VS |
4348 | echo "$as_me:$LINENO: result: no" >&5 |
4349 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4350 | fi |
e6cc62c6 | 4351 | |
8284b0c5 | 4352 | |
5005acfe | 4353 | enablestring= |
e6cc62c6 VS |
4354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4355 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4356 | no_cache=0 |
4357 | # Check whether --enable-ole or --disable-ole was given. | |
4358 | if test "${enable_ole+set}" = set; then | |
4359 | enableval="$enable_ole" | |
e6cc62c6 | 4360 | |
3bce6687 JS |
4361 | if test "$enableval" = yes; then |
4362 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4363 | else | |
4364 | ac_cv_use_ole='wxUSE_OLE=no' | |
4365 | fi | |
e6cc62c6 | 4366 | |
3bce6687 | 4367 | else |
e6cc62c6 | 4368 | |
3bce6687 JS |
4369 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4377 | |
e6cc62c6 | 4378 | fi; |
3bce6687 JS |
4379 | |
4380 | eval "$ac_cv_use_ole" | |
4381 | if test "$no_cache" != 1; then | |
4382 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4383 | fi | |
4384 | ||
4385 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4386 | echo "$as_me:$LINENO: result: yes" >&5 |
4387 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4388 | else |
e6cc62c6 VS |
4389 | echo "$as_me:$LINENO: result: no" >&5 |
4390 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4391 | fi |
e6cc62c6 | 4392 | |
3bce6687 | 4393 | |
5005acfe | 4394 | enablestring= |
e6cc62c6 VS |
4395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4396 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4397 | no_cache=0 |
4398 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4399 | if test "${enable_dataobj+set}" = set; then | |
4400 | enableval="$enable_dataobj" | |
e6cc62c6 | 4401 | |
3bce6687 JS |
4402 | if test "$enableval" = yes; then |
4403 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4404 | else | |
4405 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4406 | fi | |
e6cc62c6 | 4407 | |
3bce6687 | 4408 | else |
e6cc62c6 | 4409 | |
3bce6687 JS |
4410 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4411 | if test "x$LINE" != x ; then | |
4412 | eval "DEFAULT_$LINE" | |
4413 | else | |
4414 | no_cache=1 | |
4415 | fi | |
4416 | ||
4417 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4418 | |
e6cc62c6 | 4419 | fi; |
3bce6687 JS |
4420 | |
4421 | eval "$ac_cv_use_dataobj" | |
4422 | if test "$no_cache" != 1; then | |
4423 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4424 | fi | |
4425 | ||
4426 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4427 | echo "$as_me:$LINENO: result: yes" >&5 |
4428 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4429 | else |
e6cc62c6 VS |
4430 | echo "$as_me:$LINENO: result: no" >&5 |
4431 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4432 | fi |
e6cc62c6 | 4433 | |
3bce6687 | 4434 | |
52127426 | 4435 | |
5005acfe | 4436 | enablestring= |
e6cc62c6 VS |
4437 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4438 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4439 | no_cache=0 |
eb4efbdc VZ |
4440 | # Check whether --enable-ipc or --disable-ipc was given. |
4441 | if test "${enable_ipc+set}" = set; then | |
4442 | enableval="$enable_ipc" | |
e6cc62c6 | 4443 | |
10f2d63a | 4444 | if test "$enableval" = yes; then |
eb4efbdc | 4445 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4446 | else |
eb4efbdc | 4447 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4448 | fi |
e6cc62c6 | 4449 | |
10f2d63a | 4450 | else |
e6cc62c6 | 4451 | |
eb4efbdc | 4452 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4453 | if test "x$LINE" != x ; then |
4454 | eval "DEFAULT_$LINE" | |
4455 | else | |
4456 | no_cache=1 | |
4457 | fi | |
4458 | ||
eb4efbdc | 4459 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4460 | |
e6cc62c6 | 4461 | fi; |
10f2d63a | 4462 | |
eb4efbdc | 4463 | eval "$ac_cv_use_ipc" |
10f2d63a | 4464 | if test "$no_cache" != 1; then |
eb4efbdc | 4465 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4466 | fi |
4467 | ||
eb4efbdc | 4468 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4469 | echo "$as_me:$LINENO: result: yes" >&5 |
4470 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4471 | else |
e6cc62c6 VS |
4472 | echo "$as_me:$LINENO: result: no" >&5 |
4473 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4474 | fi |
e6cc62c6 | 4475 | |
52127426 | 4476 | |
8284b0c5 | 4477 | |
5005acfe | 4478 | enablestring= |
e46d2a18 VS |
4479 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4480 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4481 | no_cache=0 |
e46d2a18 VS |
4482 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4483 | if test "${enable_apple_ieee+set}" = set; then | |
4484 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4485 | |
10f2d63a | 4486 | if test "$enableval" = yes; then |
e46d2a18 | 4487 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4488 | else |
e46d2a18 | 4489 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4490 | fi |
e6cc62c6 | 4491 | |
10f2d63a | 4492 | else |
e6cc62c6 | 4493 | |
e46d2a18 | 4494 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4495 | if test "x$LINE" != x ; then |
4496 | eval "DEFAULT_$LINE" | |
4497 | else | |
4498 | no_cache=1 | |
4499 | fi | |
4500 | ||
e46d2a18 | 4501 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4502 | |
e6cc62c6 | 4503 | fi; |
10f2d63a | 4504 | |
e46d2a18 | 4505 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4506 | if test "$no_cache" != 1; then |
e46d2a18 | 4507 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4508 | fi |
4509 | ||
e46d2a18 | 4510 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4511 | echo "$as_me:$LINENO: result: yes" >&5 |
4512 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4513 | else |
e6cc62c6 VS |
4514 | echo "$as_me:$LINENO: result: no" >&5 |
4515 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4516 | fi |
e6cc62c6 | 4517 | |
10f2d63a | 4518 | |
5005acfe | 4519 | enablestring= |
e46d2a18 VS |
4520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4521 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4522 | no_cache=0 |
e46d2a18 VS |
4523 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4524 | if test "${enable_catch_segvs+set}" = set; then | |
4525 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4526 | |
10f2d63a | 4527 | if test "$enableval" = yes; then |
e46d2a18 | 4528 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4529 | else |
e46d2a18 | 4530 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4531 | fi |
e6cc62c6 | 4532 | |
10f2d63a | 4533 | else |
e6cc62c6 | 4534 | |
e46d2a18 | 4535 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4536 | if test "x$LINE" != x ; then |
4537 | eval "DEFAULT_$LINE" | |
4538 | else | |
4539 | no_cache=1 | |
4540 | fi | |
4541 | ||
e46d2a18 | 4542 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4543 | |
e6cc62c6 | 4544 | fi; |
10f2d63a | 4545 | |
e46d2a18 | 4546 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4547 | if test "$no_cache" != 1; then |
e46d2a18 | 4548 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4549 | fi |
4550 | ||
e46d2a18 | 4551 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4552 | echo "$as_me:$LINENO: result: yes" >&5 |
4553 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4554 | else |
e6cc62c6 VS |
4555 | echo "$as_me:$LINENO: result: no" >&5 |
4556 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4557 | fi |
e6cc62c6 | 4558 | |
10f2d63a | 4559 | |
5005acfe | 4560 | enablestring= |
e46d2a18 VS |
4561 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4562 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4563 | no_cache=0 |
e46d2a18 VS |
4564 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4565 | if test "${enable_cmdline+set}" = set; then | |
4566 | enableval="$enable_cmdline" | |
e6cc62c6 | 4567 | |
10f2d63a | 4568 | if test "$enableval" = yes; then |
e46d2a18 | 4569 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4570 | else |
e46d2a18 | 4571 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4572 | fi |
e6cc62c6 | 4573 | |
10f2d63a | 4574 | else |
e6cc62c6 | 4575 | |
e46d2a18 | 4576 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4577 | if test "x$LINE" != x ; then |
4578 | eval "DEFAULT_$LINE" | |
4579 | else | |
4580 | no_cache=1 | |
4581 | fi | |
4582 | ||
e46d2a18 | 4583 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4584 | |
e6cc62c6 | 4585 | fi; |
10f2d63a | 4586 | |
e46d2a18 | 4587 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4588 | if test "$no_cache" != 1; then |
e46d2a18 | 4589 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4590 | fi |
4591 | ||
e46d2a18 | 4592 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4593 | echo "$as_me:$LINENO: result: yes" >&5 |
4594 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4595 | else |
e6cc62c6 VS |
4596 | echo "$as_me:$LINENO: result: no" >&5 |
4597 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4598 | fi |
e6cc62c6 | 4599 | |
10f2d63a | 4600 | |
5005acfe | 4601 | enablestring= |
e46d2a18 VS |
4602 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4603 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4604 | no_cache=0 |
e46d2a18 VS |
4605 | # Check whether --enable-datetime or --disable-datetime was given. |
4606 | if test "${enable_datetime+set}" = set; then | |
4607 | enableval="$enable_datetime" | |
e6cc62c6 | 4608 | |
10f2d63a | 4609 | if test "$enableval" = yes; then |
e46d2a18 | 4610 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4611 | else |
e46d2a18 | 4612 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4613 | fi |
e6cc62c6 | 4614 | |
10f2d63a | 4615 | else |
e6cc62c6 | 4616 | |
e46d2a18 | 4617 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4618 | if test "x$LINE" != x ; then |
4619 | eval "DEFAULT_$LINE" | |
4620 | else | |
4621 | no_cache=1 | |
4622 | fi | |
4623 | ||
e46d2a18 | 4624 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4625 | |
e6cc62c6 | 4626 | fi; |
10f2d63a | 4627 | |
e46d2a18 | 4628 | eval "$ac_cv_use_datetime" |
10f2d63a | 4629 | if test "$no_cache" != 1; then |
e46d2a18 | 4630 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4631 | fi |
4632 | ||
e46d2a18 | 4633 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4634 | echo "$as_me:$LINENO: result: yes" >&5 |
4635 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4636 | else |
e6cc62c6 VS |
4637 | echo "$as_me:$LINENO: result: no" >&5 |
4638 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4639 | fi |
e6cc62c6 | 4640 | |
10f2d63a | 4641 | |
5005acfe | 4642 | enablestring= |
e46d2a18 VS |
4643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4644 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4645 | no_cache=0 |
e46d2a18 VS |
4646 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4647 | if test "${enable_dialupman+set}" = set; then | |
4648 | enableval="$enable_dialupman" | |
e6cc62c6 | 4649 | |
10f2d63a | 4650 | if test "$enableval" = yes; then |
e46d2a18 | 4651 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4652 | else |
e46d2a18 | 4653 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4654 | fi |
e6cc62c6 | 4655 | |
10f2d63a | 4656 | else |
e6cc62c6 | 4657 | |
e46d2a18 | 4658 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4659 | if test "x$LINE" != x ; then |
4660 | eval "DEFAULT_$LINE" | |
4661 | else | |
4662 | no_cache=1 | |
4663 | fi | |
4664 | ||
e46d2a18 | 4665 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4666 | |
e6cc62c6 | 4667 | fi; |
10f2d63a | 4668 | |
e46d2a18 | 4669 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4670 | if test "$no_cache" != 1; then |
e46d2a18 | 4671 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4672 | fi |
4673 | ||
e46d2a18 | 4674 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4675 | echo "$as_me:$LINENO: result: yes" >&5 |
4676 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4677 | else |
e6cc62c6 VS |
4678 | echo "$as_me:$LINENO: result: no" >&5 |
4679 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4680 | fi |
e6cc62c6 | 4681 | |
10f2d63a | 4682 | |
5005acfe | 4683 | enablestring= |
e6cc62c6 VS |
4684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4685 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4686 | no_cache=0 |
4687 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4688 | if test "${enable_dynlib+set}" = set; then | |
4689 | enableval="$enable_dynlib" | |
e6cc62c6 | 4690 | |
10f2d63a VZ |
4691 | if test "$enableval" = yes; then |
4692 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4693 | else | |
4694 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4695 | fi | |
e6cc62c6 | 4696 | |
10f2d63a | 4697 | else |
e6cc62c6 | 4698 | |
10f2d63a VZ |
4699 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4700 | if test "x$LINE" != x ; then | |
4701 | eval "DEFAULT_$LINE" | |
4702 | else | |
4703 | no_cache=1 | |
4704 | fi | |
4705 | ||
4706 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4707 | |
e6cc62c6 | 4708 | fi; |
10f2d63a VZ |
4709 | |
4710 | eval "$ac_cv_use_dynlib" | |
4711 | if test "$no_cache" != 1; then | |
4712 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4713 | fi | |
4714 | ||
4715 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4716 | echo "$as_me:$LINENO: result: yes" >&5 |
4717 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4718 | else |
e6cc62c6 VS |
4719 | echo "$as_me:$LINENO: result: no" >&5 |
4720 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4721 | fi |
e6cc62c6 | 4722 | |
10f2d63a | 4723 | |
5005acfe | 4724 | enablestring= |
e6cc62c6 VS |
4725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4726 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4727 | no_cache=0 |
4728 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4729 | if test "${enable_dynamicloader+set}" = set; then | |
4730 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4731 | |
0b9ab0bd RL |
4732 | if test "$enableval" = yes; then |
4733 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4734 | else | |
4735 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4736 | fi | |
e6cc62c6 | 4737 | |
0b9ab0bd | 4738 | else |
e6cc62c6 | 4739 | |
0b9ab0bd RL |
4740 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4741 | if test "x$LINE" != x ; then | |
4742 | eval "DEFAULT_$LINE" | |
4743 | else | |
4744 | no_cache=1 | |
4745 | fi | |
4746 | ||
4747 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4748 | |
e6cc62c6 | 4749 | fi; |
0b9ab0bd RL |
4750 | |
4751 | eval "$ac_cv_use_dynamicloader" | |
4752 | if test "$no_cache" != 1; then | |
4753 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4754 | fi | |
4755 | ||
4756 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4757 | echo "$as_me:$LINENO: result: yes" >&5 |
4758 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4759 | else |
e6cc62c6 VS |
4760 | echo "$as_me:$LINENO: result: no" >&5 |
4761 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4762 | fi |
e6cc62c6 | 4763 | |
0b9ab0bd | 4764 | |
5005acfe | 4765 | enablestring= |
e46d2a18 VS |
4766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4767 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4768 | no_cache=0 |
e46d2a18 VS |
4769 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4770 | if test "${enable_exceptions+set}" = set; then | |
4771 | enableval="$enable_exceptions" | |
e6cc62c6 | 4772 | |
10f2d63a | 4773 | if test "$enableval" = yes; then |
e46d2a18 | 4774 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4775 | else |
e46d2a18 | 4776 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4777 | fi |
e6cc62c6 | 4778 | |
10f2d63a | 4779 | else |
e6cc62c6 | 4780 | |
e46d2a18 | 4781 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4782 | if test "x$LINE" != x ; then |
4783 | eval "DEFAULT_$LINE" | |
4784 | else | |
4785 | no_cache=1 | |
4786 | fi | |
4787 | ||
e46d2a18 | 4788 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4789 | |
e6cc62c6 | 4790 | fi; |
10f2d63a | 4791 | |
e46d2a18 | 4792 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4793 | if test "$no_cache" != 1; then |
e46d2a18 | 4794 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4795 | fi |
4796 | ||
e46d2a18 | 4797 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4798 | echo "$as_me:$LINENO: result: yes" >&5 |
4799 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4800 | else |
e6cc62c6 VS |
4801 | echo "$as_me:$LINENO: result: no" >&5 |
4802 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4803 | fi |
e6cc62c6 | 4804 | |
10f2d63a | 4805 | |
5005acfe | 4806 | enablestring= |
e46d2a18 VS |
4807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4808 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4809 | no_cache=0 |
e46d2a18 VS |
4810 | # Check whether --enable-ffile or --disable-ffile was given. |
4811 | if test "${enable_ffile+set}" = set; then | |
4812 | enableval="$enable_ffile" | |
e6cc62c6 | 4813 | |
e8f65ba6 | 4814 | if test "$enableval" = yes; then |
e46d2a18 | 4815 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4816 | else |
e46d2a18 | 4817 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4818 | fi |
e6cc62c6 | 4819 | |
e8f65ba6 | 4820 | else |
e6cc62c6 | 4821 | |
e46d2a18 | 4822 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4823 | if test "x$LINE" != x ; then |
4824 | eval "DEFAULT_$LINE" | |
4825 | else | |
4826 | no_cache=1 | |
4827 | fi | |
4828 | ||
e46d2a18 | 4829 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4830 | |
e6cc62c6 | 4831 | fi; |
e8f65ba6 | 4832 | |
e46d2a18 | 4833 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4834 | if test "$no_cache" != 1; then |
e46d2a18 | 4835 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4836 | fi |
4837 | ||
e46d2a18 | 4838 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4839 | echo "$as_me:$LINENO: result: yes" >&5 |
4840 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4841 | else |
e6cc62c6 VS |
4842 | echo "$as_me:$LINENO: result: no" >&5 |
4843 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4844 | fi |
e6cc62c6 | 4845 | |
e8f65ba6 | 4846 | |
5005acfe | 4847 | enablestring= |
e46d2a18 VS |
4848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4849 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4850 | no_cache=0 |
e46d2a18 VS |
4851 | # Check whether --enable-file or --disable-file was given. |
4852 | if test "${enable_file+set}" = set; then | |
4853 | enableval="$enable_file" | |
e6cc62c6 | 4854 | |
10f2d63a | 4855 | if test "$enableval" = yes; then |
e46d2a18 | 4856 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4857 | else |
e46d2a18 | 4858 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4859 | fi |
e6cc62c6 | 4860 | |
10f2d63a | 4861 | else |
e6cc62c6 | 4862 | |
e46d2a18 | 4863 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4864 | if test "x$LINE" != x ; then |
4865 | eval "DEFAULT_$LINE" | |
4866 | else | |
4867 | no_cache=1 | |
4868 | fi | |
4869 | ||
e46d2a18 | 4870 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4871 | |
e6cc62c6 | 4872 | fi; |
10f2d63a | 4873 | |
e46d2a18 | 4874 | eval "$ac_cv_use_file" |
10f2d63a | 4875 | if test "$no_cache" != 1; then |
e46d2a18 | 4876 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4877 | fi |
4878 | ||
e46d2a18 | 4879 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4880 | echo "$as_me:$LINENO: result: yes" >&5 |
4881 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4882 | else |
e6cc62c6 VS |
4883 | echo "$as_me:$LINENO: result: no" >&5 |
4884 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4885 | fi |
e6cc62c6 | 4886 | |
10f2d63a | 4887 | |
5005acfe | 4888 | enablestring= |
e46d2a18 VS |
4889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4890 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4891 | no_cache=0 |
e46d2a18 VS |
4892 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4893 | if test "${enable_filesystem+set}" = set; then | |
4894 | enableval="$enable_filesystem" | |
e6cc62c6 | 4895 | |
10f2d63a | 4896 | if test "$enableval" = yes; then |
e46d2a18 | 4897 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4898 | else |
e46d2a18 | 4899 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4900 | fi |
e6cc62c6 | 4901 | |
10f2d63a | 4902 | else |
e6cc62c6 | 4903 | |
e46d2a18 | 4904 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4905 | if test "x$LINE" != x ; then |
4906 | eval "DEFAULT_$LINE" | |
4907 | else | |
4908 | no_cache=1 | |
4909 | fi | |
4910 | ||
e46d2a18 | 4911 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4912 | |
e6cc62c6 | 4913 | fi; |
10f2d63a | 4914 | |
e46d2a18 | 4915 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4916 | if test "$no_cache" != 1; then |
e46d2a18 | 4917 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4918 | fi |
4919 | ||
e46d2a18 | 4920 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4921 | echo "$as_me:$LINENO: result: yes" >&5 |
4922 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4923 | else |
e6cc62c6 VS |
4924 | echo "$as_me:$LINENO: result: no" >&5 |
4925 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4926 | fi |
e6cc62c6 | 4927 | |
10f2d63a | 4928 | |
5005acfe | 4929 | enablestring= |
e46d2a18 VS |
4930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4931 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4932 | no_cache=0 |
e46d2a18 VS |
4933 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4934 | if test "${enable_fontmap+set}" = set; then | |
4935 | enableval="$enable_fontmap" | |
e6cc62c6 | 4936 | |
10f2d63a | 4937 | if test "$enableval" = yes; then |
e46d2a18 | 4938 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4939 | else |
e46d2a18 | 4940 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4941 | fi |
e6cc62c6 | 4942 | |
10f2d63a | 4943 | else |
e6cc62c6 | 4944 | |
e46d2a18 | 4945 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4946 | if test "x$LINE" != x ; then |
4947 | eval "DEFAULT_$LINE" | |
4948 | else | |
4949 | no_cache=1 | |
4950 | fi | |
4951 | ||
e46d2a18 | 4952 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4953 | |
e6cc62c6 | 4954 | fi; |
10f2d63a | 4955 | |
e46d2a18 | 4956 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4957 | if test "$no_cache" != 1; then |
e46d2a18 | 4958 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4959 | fi |
4960 | ||
e46d2a18 | 4961 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4962 | echo "$as_me:$LINENO: result: yes" >&5 |
4963 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4964 | else |
e6cc62c6 VS |
4965 | echo "$as_me:$LINENO: result: no" >&5 |
4966 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4967 | fi |
e6cc62c6 | 4968 | |
10f2d63a | 4969 | |
5005acfe | 4970 | enablestring= |
e46d2a18 VS |
4971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4972 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4973 | no_cache=0 |
e46d2a18 VS |
4974 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4975 | if test "${enable_fs_inet+set}" = set; then | |
4976 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4977 | |
10f2d63a | 4978 | if test "$enableval" = yes; then |
e46d2a18 | 4979 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4980 | else |
e46d2a18 | 4981 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4982 | fi |
e6cc62c6 | 4983 | |
10f2d63a | 4984 | else |
e6cc62c6 | 4985 | |
e46d2a18 | 4986 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4987 | if test "x$LINE" != x ; then |
4988 | eval "DEFAULT_$LINE" | |
4989 | else | |
4990 | no_cache=1 | |
4991 | fi | |
4992 | ||
e46d2a18 | 4993 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4994 | |
e6cc62c6 | 4995 | fi; |
10f2d63a | 4996 | |
e46d2a18 | 4997 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4998 | if test "$no_cache" != 1; then |
e46d2a18 | 4999 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5000 | fi |
5001 | ||
e46d2a18 | 5002 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
5003 | echo "$as_me:$LINENO: result: yes" >&5 |
5004 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5005 | else |
e6cc62c6 VS |
5006 | echo "$as_me:$LINENO: result: no" >&5 |
5007 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5008 | fi |
e6cc62c6 | 5009 | |
10f2d63a | 5010 | |
5005acfe | 5011 | enablestring= |
e46d2a18 VS |
5012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5013 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 5014 | no_cache=0 |
e46d2a18 VS |
5015 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
5016 | if test "${enable_fs_zip+set}" = set; then | |
5017 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5018 | |
a3a584a7 | 5019 | if test "$enableval" = yes; then |
e46d2a18 | 5020 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 5021 | else |
e46d2a18 | 5022 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 5023 | fi |
e6cc62c6 | 5024 | |
a3a584a7 | 5025 | else |
e6cc62c6 | 5026 | |
e46d2a18 | 5027 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
5028 | if test "x$LINE" != x ; then |
5029 | eval "DEFAULT_$LINE" | |
5030 | else | |
5031 | no_cache=1 | |
5032 | fi | |
5033 | ||
e46d2a18 | 5034 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 5035 | |
e6cc62c6 | 5036 | fi; |
a3a584a7 | 5037 | |
e46d2a18 | 5038 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 5039 | if test "$no_cache" != 1; then |
e46d2a18 | 5040 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
5041 | fi |
5042 | ||
e46d2a18 | 5043 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
5044 | echo "$as_me:$LINENO: result: yes" >&5 |
5045 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 5046 | else |
e6cc62c6 VS |
5047 | echo "$as_me:$LINENO: result: no" >&5 |
5048 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 5049 | fi |
e6cc62c6 | 5050 | |
a3a584a7 | 5051 | |
5005acfe | 5052 | enablestring= |
e46d2a18 VS |
5053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
5054 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 5055 | no_cache=0 |
e46d2a18 VS |
5056 | # Check whether --enable-geometry or --disable-geometry was given. |
5057 | if test "${enable_geometry+set}" = set; then | |
5058 | enableval="$enable_geometry" | |
e6cc62c6 | 5059 | |
10f2d63a | 5060 | if test "$enableval" = yes; then |
e46d2a18 | 5061 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 5062 | else |
e46d2a18 | 5063 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 5064 | fi |
e6cc62c6 | 5065 | |
10f2d63a | 5066 | else |
e6cc62c6 | 5067 | |
e46d2a18 | 5068 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
5069 | if test "x$LINE" != x ; then |
5070 | eval "DEFAULT_$LINE" | |
5071 | else | |
5072 | no_cache=1 | |
5073 | fi | |
5074 | ||
e46d2a18 | 5075 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 5076 | |
e6cc62c6 | 5077 | fi; |
10f2d63a | 5078 | |
e46d2a18 | 5079 | eval "$ac_cv_use_geometry" |
10f2d63a | 5080 | if test "$no_cache" != 1; then |
e46d2a18 | 5081 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5082 | fi |
5083 | ||
e46d2a18 | 5084 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
5085 | echo "$as_me:$LINENO: result: yes" >&5 |
5086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5087 | else |
e6cc62c6 VS |
5088 | echo "$as_me:$LINENO: result: no" >&5 |
5089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5090 | fi |
e6cc62c6 | 5091 | |
10f2d63a | 5092 | |
5005acfe | 5093 | enablestring= |
e46d2a18 VS |
5094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
5095 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 5096 | no_cache=0 |
e46d2a18 VS |
5097 | # Check whether --enable-log or --disable-log was given. |
5098 | if test "${enable_log+set}" = set; then | |
5099 | enableval="$enable_log" | |
e6cc62c6 | 5100 | |
10f2d63a | 5101 | if test "$enableval" = yes; then |
e46d2a18 | 5102 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 5103 | else |
e46d2a18 | 5104 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 5105 | fi |
e6cc62c6 | 5106 | |
10f2d63a | 5107 | else |
e6cc62c6 | 5108 | |
e46d2a18 | 5109 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
5110 | if test "x$LINE" != x ; then |
5111 | eval "DEFAULT_$LINE" | |
5112 | else | |
5113 | no_cache=1 | |
5114 | fi | |
5115 | ||
e46d2a18 | 5116 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 5117 | |
e6cc62c6 | 5118 | fi; |
10f2d63a | 5119 | |
e46d2a18 | 5120 | eval "$ac_cv_use_log" |
10f2d63a | 5121 | if test "$no_cache" != 1; then |
e46d2a18 | 5122 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5123 | fi |
5124 | ||
e46d2a18 | 5125 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
5126 | echo "$as_me:$LINENO: result: yes" >&5 |
5127 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5128 | else |
e6cc62c6 VS |
5129 | echo "$as_me:$LINENO: result: no" >&5 |
5130 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5131 | fi |
e6cc62c6 | 5132 | |
10f2d63a | 5133 | |
5005acfe | 5134 | enablestring= |
e46d2a18 VS |
5135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
5136 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 5137 | no_cache=0 |
e46d2a18 VS |
5138 | # Check whether --enable-longlong or --disable-longlong was given. |
5139 | if test "${enable_longlong+set}" = set; then | |
5140 | enableval="$enable_longlong" | |
e6cc62c6 | 5141 | |
1e6feb95 | 5142 | if test "$enableval" = yes; then |
e46d2a18 | 5143 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 5144 | else |
e46d2a18 | 5145 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 5146 | fi |
e6cc62c6 | 5147 | |
1e6feb95 | 5148 | else |
e6cc62c6 | 5149 | |
e46d2a18 | 5150 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5151 | if test "x$LINE" != x ; then |
5152 | eval "DEFAULT_$LINE" | |
5153 | else | |
5154 | no_cache=1 | |
5155 | fi | |
5156 | ||
e46d2a18 | 5157 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 5158 | |
e6cc62c6 | 5159 | fi; |
1e6feb95 | 5160 | |
e46d2a18 | 5161 | eval "$ac_cv_use_longlong" |
1e6feb95 | 5162 | if test "$no_cache" != 1; then |
e46d2a18 | 5163 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5164 | fi |
5165 | ||
e46d2a18 VS |
5166 | if test "$wxUSE_LONGLONG" = yes; then |
5167 | echo "$as_me:$LINENO: result: yes" >&5 | |
5168 | echo "${ECHO_T}yes" >&6 | |
5169 | else | |
5170 | echo "$as_me:$LINENO: result: no" >&5 | |
5171 | echo "${ECHO_T}no" >&6 | |
5172 | fi | |
5173 | ||
5174 | ||
5175 | enablestring= | |
5176 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5177 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5178 | no_cache=0 | |
5179 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5180 | if test "${enable_mimetype+set}" = set; then | |
5181 | enableval="$enable_mimetype" | |
5182 | ||
5183 | if test "$enableval" = yes; then | |
5184 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5185 | else | |
5186 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5187 | fi | |
5188 | ||
5189 | else | |
5190 | ||
5191 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5192 | if test "x$LINE" != x ; then | |
5193 | eval "DEFAULT_$LINE" | |
5194 | else | |
5195 | no_cache=1 | |
5196 | fi | |
5197 | ||
5198 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5199 | ||
5200 | fi; | |
5201 | ||
5202 | eval "$ac_cv_use_mimetype" | |
5203 | if test "$no_cache" != 1; then | |
5204 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5205 | fi | |
5206 | ||
5207 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5208 | echo "$as_me:$LINENO: result: yes" >&5 |
5209 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5210 | else |
e6cc62c6 VS |
5211 | echo "$as_me:$LINENO: result: no" >&5 |
5212 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5213 | fi |
e6cc62c6 | 5214 | |
1e6feb95 | 5215 | |
5005acfe | 5216 | enablestring= |
e6cc62c6 VS |
5217 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5218 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5219 | no_cache=0 |
5220 | # Check whether --enable-mslu or --disable-mslu was given. | |
5221 | if test "${enable_mslu+set}" = set; then | |
5222 | enableval="$enable_mslu" | |
e6cc62c6 | 5223 | |
a72a4bfa VS |
5224 | if test "$enableval" = yes; then |
5225 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5226 | else | |
5227 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5228 | fi | |
e6cc62c6 | 5229 | |
a72a4bfa | 5230 | else |
e6cc62c6 | 5231 | |
a72a4bfa VS |
5232 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5233 | if test "x$LINE" != x ; then | |
5234 | eval "DEFAULT_$LINE" | |
5235 | else | |
5236 | no_cache=1 | |
5237 | fi | |
5238 | ||
5239 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5240 | |
e6cc62c6 | 5241 | fi; |
a72a4bfa VS |
5242 | |
5243 | eval "$ac_cv_use_mslu" | |
5244 | if test "$no_cache" != 1; then | |
5245 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5246 | fi | |
5247 | ||
5248 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5249 | echo "$as_me:$LINENO: result: yes" >&5 |
5250 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5251 | else |
e6cc62c6 VS |
5252 | echo "$as_me:$LINENO: result: no" >&5 |
5253 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5254 | fi |
e6cc62c6 | 5255 | |
a72a4bfa | 5256 | |
5005acfe | 5257 | enablestring= |
e46d2a18 VS |
5258 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5259 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5260 | no_cache=0 |
e46d2a18 VS |
5261 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5262 | if test "${enable_snglinst+set}" = set; then | |
5263 | enableval="$enable_snglinst" | |
e6cc62c6 | 5264 | |
1e6feb95 | 5265 | if test "$enableval" = yes; then |
e46d2a18 | 5266 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5267 | else |
e46d2a18 | 5268 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5269 | fi |
e6cc62c6 | 5270 | |
10f2d63a | 5271 | else |
e6cc62c6 | 5272 | |
e46d2a18 | 5273 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5274 | if test "x$LINE" != x ; then |
5275 | eval "DEFAULT_$LINE" | |
5276 | else | |
5277 | no_cache=1 | |
5278 | fi | |
5279 | ||
e46d2a18 | 5280 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5281 | |
e6cc62c6 | 5282 | fi; |
10f2d63a | 5283 | |
e46d2a18 | 5284 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5285 | if test "$no_cache" != 1; then |
e46d2a18 | 5286 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5287 | fi |
5288 | ||
e46d2a18 VS |
5289 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5290 | echo "$as_me:$LINENO: result: yes" >&5 | |
5291 | echo "${ECHO_T}yes" >&6 | |
5292 | else | |
5293 | echo "$as_me:$LINENO: result: no" >&5 | |
5294 | echo "${ECHO_T}no" >&6 | |
5295 | fi | |
5296 | ||
5297 | ||
5298 | enablestring= | |
5299 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5300 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5301 | no_cache=0 | |
5302 | # Check whether --enable-streams or --disable-streams was given. | |
5303 | if test "${enable_streams+set}" = set; then | |
5304 | enableval="$enable_streams" | |
5305 | ||
5306 | if test "$enableval" = yes; then | |
5307 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5308 | else | |
5309 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5310 | fi | |
5311 | ||
5312 | else | |
5313 | ||
5314 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5315 | if test "x$LINE" != x ; then | |
5316 | eval "DEFAULT_$LINE" | |
5317 | else | |
5318 | no_cache=1 | |
5319 | fi | |
5320 | ||
5321 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5322 | ||
5323 | fi; | |
5324 | ||
5325 | eval "$ac_cv_use_streams" | |
5326 | if test "$no_cache" != 1; then | |
5327 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5328 | fi | |
5329 | ||
5330 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5331 | echo "$as_me:$LINENO: result: yes" >&5 |
5332 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5333 | else |
e6cc62c6 VS |
5334 | echo "$as_me:$LINENO: result: no" >&5 |
5335 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5336 | fi |
e6cc62c6 | 5337 | |
10f2d63a | 5338 | |
5005acfe | 5339 | enablestring= |
e6cc62c6 VS |
5340 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5341 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5342 | no_cache=0 |
5343 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5344 | if test "${enable_std_iostreams+set}" = set; then | |
5345 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5346 | |
10f2d63a VZ |
5347 | if test "$enableval" = yes; then |
5348 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5349 | else | |
5350 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5351 | fi | |
e6cc62c6 | 5352 | |
10f2d63a | 5353 | else |
e6cc62c6 | 5354 | |
10f2d63a VZ |
5355 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5356 | if test "x$LINE" != x ; then | |
5357 | eval "DEFAULT_$LINE" | |
5358 | else | |
5359 | no_cache=1 | |
5360 | fi | |
5361 | ||
5362 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5363 | |
e6cc62c6 | 5364 | fi; |
10f2d63a VZ |
5365 | |
5366 | eval "$ac_cv_use_std_iostreams" | |
5367 | if test "$no_cache" != 1; then | |
5368 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5369 | fi | |
5370 | ||
5371 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5372 | echo "$as_me:$LINENO: result: yes" >&5 |
5373 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5374 | else |
e6cc62c6 VS |
5375 | echo "$as_me:$LINENO: result: no" >&5 |
5376 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5377 | fi |
e6cc62c6 | 5378 | |
10f2d63a | 5379 | |
5005acfe | 5380 | enablestring= |
e46d2a18 VS |
5381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5382 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5383 | no_cache=0 |
e46d2a18 VS |
5384 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5385 | if test "${enable_stopwatch+set}" = set; then | |
5386 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5387 | |
24528b0c | 5388 | if test "$enableval" = yes; then |
e46d2a18 | 5389 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5390 | else |
e46d2a18 | 5391 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5392 | fi |
e6cc62c6 | 5393 | |
24528b0c | 5394 | else |
e6cc62c6 | 5395 | |
e46d2a18 | 5396 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5397 | if test "x$LINE" != x ; then |
5398 | eval "DEFAULT_$LINE" | |
5399 | else | |
5400 | no_cache=1 | |
5401 | fi | |
5402 | ||
e46d2a18 | 5403 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5404 | |
e6cc62c6 | 5405 | fi; |
24528b0c | 5406 | |
e46d2a18 | 5407 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5408 | if test "$no_cache" != 1; then |
e46d2a18 | 5409 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5410 | fi |
5411 | ||
e46d2a18 | 5412 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5413 | echo "$as_me:$LINENO: result: yes" >&5 |
5414 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5415 | else |
e6cc62c6 VS |
5416 | echo "$as_me:$LINENO: result: no" >&5 |
5417 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5418 | fi |
e6cc62c6 | 5419 | |
24528b0c | 5420 | |
5005acfe | 5421 | enablestring= |
e46d2a18 VS |
5422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5423 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5424 | no_cache=0 |
e46d2a18 VS |
5425 | # Check whether --enable-system_options or --disable-system_options was given. |
5426 | if test "${enable_system_options+set}" = set; then | |
5427 | enableval="$enable_system_options" | |
e6cc62c6 | 5428 | |
10f2d63a | 5429 | if test "$enableval" = yes; then |
e46d2a18 | 5430 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5431 | else |
e46d2a18 | 5432 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5433 | fi |
e6cc62c6 | 5434 | |
10f2d63a | 5435 | else |
e6cc62c6 | 5436 | |
e46d2a18 | 5437 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5438 | if test "x$LINE" != x ; then |
5439 | eval "DEFAULT_$LINE" | |
5440 | else | |
5441 | no_cache=1 | |
5442 | fi | |
5443 | ||
e46d2a18 | 5444 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5445 | |
e6cc62c6 | 5446 | fi; |
10f2d63a | 5447 | |
e46d2a18 | 5448 | eval "$ac_cv_use_system_options" |
10f2d63a | 5449 | if test "$no_cache" != 1; then |
e46d2a18 | 5450 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5451 | fi |
5452 | ||
e46d2a18 | 5453 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5454 | echo "$as_me:$LINENO: result: yes" >&5 |
5455 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5456 | else |
e6cc62c6 VS |
5457 | echo "$as_me:$LINENO: result: no" >&5 |
5458 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5459 | fi |
e6cc62c6 | 5460 | |
10f2d63a | 5461 | |
5005acfe | 5462 | enablestring= |
e46d2a18 VS |
5463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5464 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5465 | no_cache=0 |
e46d2a18 VS |
5466 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5467 | if test "${enable_textbuf+set}" = set; then | |
5468 | enableval="$enable_textbuf" | |
e6cc62c6 | 5469 | |
10f2d63a | 5470 | if test "$enableval" = yes; then |
e46d2a18 | 5471 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5472 | else |
e46d2a18 | 5473 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5474 | fi |
e6cc62c6 | 5475 | |
10f2d63a | 5476 | else |
e6cc62c6 | 5477 | |
e46d2a18 | 5478 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5479 | if test "x$LINE" != x ; then |
5480 | eval "DEFAULT_$LINE" | |
5481 | else | |
5482 | no_cache=1 | |
5483 | fi | |
5484 | ||
e46d2a18 | 5485 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5486 | |
e6cc62c6 | 5487 | fi; |
10f2d63a | 5488 | |
e46d2a18 | 5489 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5490 | if test "$no_cache" != 1; then |
e46d2a18 | 5491 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5492 | fi |
5493 | ||
e46d2a18 | 5494 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5495 | echo "$as_me:$LINENO: result: yes" >&5 |
5496 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5497 | else |
e6cc62c6 VS |
5498 | echo "$as_me:$LINENO: result: no" >&5 |
5499 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5500 | fi |
e6cc62c6 | 5501 | |
10f2d63a | 5502 | |
5005acfe | 5503 | enablestring= |
e46d2a18 VS |
5504 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5505 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5506 | no_cache=0 |
e46d2a18 VS |
5507 | # Check whether --enable-textfile or --disable-textfile was given. |
5508 | if test "${enable_textfile+set}" = set; then | |
5509 | enableval="$enable_textfile" | |
e6cc62c6 | 5510 | |
10f2d63a | 5511 | if test "$enableval" = yes; then |
e46d2a18 | 5512 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5513 | else |
e46d2a18 | 5514 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5515 | fi |
e6cc62c6 | 5516 | |
10f2d63a | 5517 | else |
e6cc62c6 | 5518 | |
e46d2a18 | 5519 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5520 | if test "x$LINE" != x ; then |
5521 | eval "DEFAULT_$LINE" | |
5522 | else | |
5523 | no_cache=1 | |
5524 | fi | |
5525 | ||
e46d2a18 | 5526 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5527 | |
e6cc62c6 | 5528 | fi; |
10f2d63a | 5529 | |
e46d2a18 | 5530 | eval "$ac_cv_use_textfile" |
10f2d63a | 5531 | if test "$no_cache" != 1; then |
e46d2a18 | 5532 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5533 | fi |
5534 | ||
e46d2a18 | 5535 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5536 | echo "$as_me:$LINENO: result: yes" >&5 |
5537 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5538 | else |
e6cc62c6 VS |
5539 | echo "$as_me:$LINENO: result: no" >&5 |
5540 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5541 | fi |
e6cc62c6 | 5542 | |
8284b0c5 | 5543 | |
5005acfe | 5544 | enablestring= |
e46d2a18 VS |
5545 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5546 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5547 | no_cache=0 |
e46d2a18 VS |
5548 | # Check whether --enable-timer or --disable-timer was given. |
5549 | if test "${enable_timer+set}" = set; then | |
5550 | enableval="$enable_timer" | |
e6cc62c6 | 5551 | |
eb4efbdc | 5552 | if test "$enableval" = yes; then |
e46d2a18 | 5553 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5554 | else |
e46d2a18 | 5555 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5556 | fi |
e6cc62c6 | 5557 | |
eb4efbdc | 5558 | else |
e6cc62c6 | 5559 | |
e46d2a18 | 5560 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5561 | if test "x$LINE" != x ; then |
5562 | eval "DEFAULT_$LINE" | |
5563 | else | |
5564 | no_cache=1 | |
5565 | fi | |
5566 | ||
e46d2a18 | 5567 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5568 | |
e6cc62c6 | 5569 | fi; |
eb4efbdc | 5570 | |
e46d2a18 | 5571 | eval "$ac_cv_use_timer" |
eb4efbdc | 5572 | if test "$no_cache" != 1; then |
e46d2a18 | 5573 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5574 | fi |
5575 | ||
e46d2a18 | 5576 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5577 | echo "$as_me:$LINENO: result: yes" >&5 |
5578 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5579 | else |
e6cc62c6 VS |
5580 | echo "$as_me:$LINENO: result: no" >&5 |
5581 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5582 | fi |
e6cc62c6 | 5583 | |
eb4efbdc | 5584 | |
5005acfe | 5585 | enablestring= |
e46d2a18 VS |
5586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5587 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5588 | no_cache=0 |
e46d2a18 VS |
5589 | # Check whether --enable-unicode or --disable-unicode was given. |
5590 | if test "${enable_unicode+set}" = set; then | |
5591 | enableval="$enable_unicode" | |
e6cc62c6 | 5592 | |
4f3c5f06 | 5593 | if test "$enableval" = yes; then |
e46d2a18 | 5594 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5595 | else |
e46d2a18 | 5596 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5597 | fi |
e6cc62c6 | 5598 | |
4f3c5f06 | 5599 | else |
e6cc62c6 | 5600 | |
e46d2a18 | 5601 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5602 | if test "x$LINE" != x ; then |
5603 | eval "DEFAULT_$LINE" | |
5604 | else | |
5605 | no_cache=1 | |
5606 | fi | |
5607 | ||
e46d2a18 | 5608 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5609 | |
e6cc62c6 | 5610 | fi; |
4f3c5f06 | 5611 | |
e46d2a18 | 5612 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5613 | if test "$no_cache" != 1; then |
e46d2a18 | 5614 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5615 | fi |
5616 | ||
e46d2a18 | 5617 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5618 | echo "$as_me:$LINENO: result: yes" >&5 |
5619 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5620 | else |
e6cc62c6 VS |
5621 | echo "$as_me:$LINENO: result: no" >&5 |
5622 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5623 | fi |
e6cc62c6 | 5624 | |
52127426 | 5625 | |
e46d2a18 | 5626 | enablestring= |
002ed9af VS |
5627 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 |
5628 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
e46d2a18 | 5629 | no_cache=0 |
002ed9af VS |
5630 | # Check whether --enable-sound or --disable-sound was given. |
5631 | if test "${enable_sound+set}" = set; then | |
5632 | enableval="$enable_sound" | |
e46d2a18 VS |
5633 | |
5634 | if test "$enableval" = yes; then | |
002ed9af | 5635 | ac_cv_use_sound='wxUSE_SOUND=yes' |
e46d2a18 | 5636 | else |
002ed9af | 5637 | ac_cv_use_sound='wxUSE_SOUND=no' |
e46d2a18 VS |
5638 | fi |
5639 | ||
5640 | else | |
5641 | ||
002ed9af | 5642 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` |
e46d2a18 VS |
5643 | if test "x$LINE" != x ; then |
5644 | eval "DEFAULT_$LINE" | |
5645 | else | |
5646 | no_cache=1 | |
5647 | fi | |
5648 | ||
002ed9af | 5649 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND |
e46d2a18 VS |
5650 | |
5651 | fi; | |
5652 | ||
002ed9af | 5653 | eval "$ac_cv_use_sound" |
e46d2a18 | 5654 | if test "$no_cache" != 1; then |
002ed9af | 5655 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp |
e46d2a18 VS |
5656 | fi |
5657 | ||
002ed9af | 5658 | if test "$wxUSE_SOUND" = yes; then |
e46d2a18 VS |
5659 | echo "$as_me:$LINENO: result: yes" >&5 |
5660 | echo "${ECHO_T}yes" >&6 | |
5661 | else | |
5662 | echo "$as_me:$LINENO: result: no" >&5 | |
5663 | echo "${ECHO_T}no" >&6 | |
5664 | fi | |
5665 | ||
8284b0c5 | 5666 | |
5005acfe | 5667 | enablestring= |
e46d2a18 VS |
5668 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5669 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5670 | no_cache=0 |
e46d2a18 VS |
5671 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5672 | if test "${enable_wxprintfv+set}" = set; then | |
5673 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5674 | |
1e6feb95 | 5675 | if test "$enableval" = yes; then |
e46d2a18 | 5676 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5677 | else |
e46d2a18 | 5678 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5679 | fi |
e6cc62c6 | 5680 | |
1e6feb95 | 5681 | else |
e6cc62c6 | 5682 | |
e46d2a18 | 5683 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5684 | if test "x$LINE" != x ; then |
5685 | eval "DEFAULT_$LINE" | |
5686 | else | |
5687 | no_cache=1 | |
5688 | fi | |
5689 | ||
e46d2a18 | 5690 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5691 | |
e6cc62c6 | 5692 | fi; |
1e6feb95 | 5693 | |
e46d2a18 | 5694 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5695 | if test "$no_cache" != 1; then |
e46d2a18 | 5696 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5697 | fi |
5698 | ||
e46d2a18 | 5699 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5700 | echo "$as_me:$LINENO: result: yes" >&5 |
5701 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5702 | else |
e6cc62c6 VS |
5703 | echo "$as_me:$LINENO: result: no" >&5 |
5704 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5705 | fi |
e6cc62c6 | 5706 | |
1e6feb95 | 5707 | |
5005acfe | 5708 | enablestring= |
e46d2a18 VS |
5709 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5710 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5711 | no_cache=0 |
e46d2a18 VS |
5712 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5713 | if test "${enable_zipstream+set}" = set; then | |
5714 | enableval="$enable_zipstream" | |
e6cc62c6 | 5715 | |
3e44f09d | 5716 | if test "$enableval" = yes; then |
e46d2a18 | 5717 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5718 | else |
e46d2a18 | 5719 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5720 | fi |
e6cc62c6 | 5721 | |
3e44f09d | 5722 | else |
e6cc62c6 | 5723 | |
e46d2a18 | 5724 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5725 | if test "x$LINE" != x ; then |
5726 | eval "DEFAULT_$LINE" | |
5727 | else | |
5728 | no_cache=1 | |
5729 | fi | |
5730 | ||
e46d2a18 | 5731 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5732 | |
e6cc62c6 | 5733 | fi; |
3e44f09d | 5734 | |
e46d2a18 | 5735 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5736 | if test "$no_cache" != 1; then |
e46d2a18 | 5737 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5738 | fi |
5739 | ||
e46d2a18 | 5740 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5741 | echo "$as_me:$LINENO: result: yes" >&5 |
5742 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5743 | else |
e6cc62c6 VS |
5744 | echo "$as_me:$LINENO: result: no" >&5 |
5745 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5746 | fi |
e6cc62c6 | 5747 | |
8284b0c5 | 5748 | |
7015ef3a VZ |
5749 | enablestring= |
5750 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5751 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5752 | no_cache=0 | |
5753 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5754 | if test "${enable_gzstream+set}" = set; then | |
5755 | enableval="$enable_gzstream" | |
5756 | ||
5757 | if test "$enableval" = yes; then | |
5758 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5759 | else | |
5760 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5761 | fi | |
5762 | ||
5763 | else | |
5764 | ||
5765 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5766 | if test "x$LINE" != x ; then | |
5767 | eval "DEFAULT_$LINE" | |
5768 | else | |
5769 | no_cache=1 | |
5770 | fi | |
5771 | ||
5772 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5773 | ||
5774 | fi; | |
5775 | ||
5776 | eval "$ac_cv_use_gzstream" | |
5777 | if test "$no_cache" != 1; then | |
5778 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5779 | fi | |
5780 | ||
5781 | if test "$wxUSE_GZSTREAM" = yes; then | |
5782 | echo "$as_me:$LINENO: result: yes" >&5 | |
5783 | echo "${ECHO_T}yes" >&6 | |
5784 | else | |
5785 | echo "$as_me:$LINENO: result: no" >&5 | |
5786 | echo "${ECHO_T}no" >&6 | |
5787 | fi | |
5788 | ||
5789 | ||
52127426 | 5790 | |
5005acfe | 5791 | enablestring= |
e6cc62c6 VS |
5792 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5793 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5794 | no_cache=0 |
5795 | # Check whether --enable-url or --disable-url was given. | |
5796 | if test "${enable_url+set}" = set; then | |
5797 | enableval="$enable_url" | |
e6cc62c6 | 5798 | |
4cdb0ab0 VS |
5799 | if test "$enableval" = yes; then |
5800 | ac_cv_use_url='wxUSE_URL=yes' | |
5801 | else | |
5802 | ac_cv_use_url='wxUSE_URL=no' | |
5803 | fi | |
e6cc62c6 | 5804 | |
4cdb0ab0 | 5805 | else |
e6cc62c6 | 5806 | |
4cdb0ab0 VS |
5807 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5808 | if test "x$LINE" != x ; then | |
5809 | eval "DEFAULT_$LINE" | |
5810 | else | |
5811 | no_cache=1 | |
5812 | fi | |
5813 | ||
5814 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5815 | |
e6cc62c6 | 5816 | fi; |
4cdb0ab0 VS |
5817 | |
5818 | eval "$ac_cv_use_url" | |
5819 | if test "$no_cache" != 1; then | |
5820 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5821 | fi | |
5822 | ||
5823 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5824 | echo "$as_me:$LINENO: result: yes" >&5 |
5825 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5826 | else |
e6cc62c6 VS |
5827 | echo "$as_me:$LINENO: result: no" >&5 |
5828 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5829 | fi |
e6cc62c6 | 5830 | |
4cdb0ab0 | 5831 | |
5005acfe | 5832 | enablestring= |
e6cc62c6 VS |
5833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5834 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5835 | no_cache=0 |
5836 | # Check whether --enable-protocol or --disable-protocol was given. | |
5837 | if test "${enable_protocol+set}" = set; then | |
5838 | enableval="$enable_protocol" | |
e6cc62c6 | 5839 | |
4cdb0ab0 VS |
5840 | if test "$enableval" = yes; then |
5841 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5842 | else | |
5843 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5844 | fi | |
e6cc62c6 | 5845 | |
4cdb0ab0 | 5846 | else |
e6cc62c6 | 5847 | |
4cdb0ab0 VS |
5848 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5849 | if test "x$LINE" != x ; then | |
5850 | eval "DEFAULT_$LINE" | |
5851 | else | |
5852 | no_cache=1 | |
5853 | fi | |
5854 | ||
5855 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5856 | |
e6cc62c6 | 5857 | fi; |
4cdb0ab0 VS |
5858 | |
5859 | eval "$ac_cv_use_protocol" | |
5860 | if test "$no_cache" != 1; then | |
5861 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5862 | fi | |
5863 | ||
5864 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5865 | echo "$as_me:$LINENO: result: yes" >&5 |
5866 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5867 | else |
e6cc62c6 VS |
5868 | echo "$as_me:$LINENO: result: no" >&5 |
5869 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5870 | fi |
e6cc62c6 | 5871 | |
4cdb0ab0 | 5872 | |
5005acfe | 5873 | enablestring= |
e6cc62c6 VS |
5874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5875 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5876 | no_cache=0 |
5877 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5878 | if test "${enable_protocol_http+set}" = set; then | |
5879 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5880 | |
4cdb0ab0 VS |
5881 | if test "$enableval" = yes; then |
5882 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5883 | else | |
5884 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5885 | fi | |
e6cc62c6 | 5886 | |
4cdb0ab0 | 5887 | else |
e6cc62c6 | 5888 | |
4cdb0ab0 VS |
5889 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5890 | if test "x$LINE" != x ; then | |
5891 | eval "DEFAULT_$LINE" | |
5892 | else | |
5893 | no_cache=1 | |
5894 | fi | |
5895 | ||
5896 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5897 | |
e6cc62c6 | 5898 | fi; |
4cdb0ab0 VS |
5899 | |
5900 | eval "$ac_cv_use_protocol_http" | |
5901 | if test "$no_cache" != 1; then | |
5902 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5903 | fi | |
5904 | ||
5905 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5906 | echo "$as_me:$LINENO: result: yes" >&5 |
5907 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5908 | else |
e6cc62c6 VS |
5909 | echo "$as_me:$LINENO: result: no" >&5 |
5910 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5911 | fi |
e6cc62c6 | 5912 | |
4cdb0ab0 | 5913 | |
5005acfe | 5914 | enablestring= |
e6cc62c6 VS |
5915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5916 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5917 | no_cache=0 |
5918 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5919 | if test "${enable_protocol_ftp+set}" = set; then | |
5920 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5921 | |
4cdb0ab0 VS |
5922 | if test "$enableval" = yes; then |
5923 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5924 | else | |
5925 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5926 | fi | |
e6cc62c6 | 5927 | |
4cdb0ab0 | 5928 | else |
e6cc62c6 | 5929 | |
4cdb0ab0 VS |
5930 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5931 | if test "x$LINE" != x ; then | |
5932 | eval "DEFAULT_$LINE" | |
5933 | else | |
5934 | no_cache=1 | |
5935 | fi | |
5936 | ||
5937 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5938 | |
e6cc62c6 | 5939 | fi; |
4cdb0ab0 VS |
5940 | |
5941 | eval "$ac_cv_use_protocol_ftp" | |
5942 | if test "$no_cache" != 1; then | |
5943 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5944 | fi | |
5945 | ||
5946 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5947 | echo "$as_me:$LINENO: result: yes" >&5 |
5948 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5949 | else |
e6cc62c6 VS |
5950 | echo "$as_me:$LINENO: result: no" >&5 |
5951 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5952 | fi |
e6cc62c6 | 5953 | |
4cdb0ab0 | 5954 | |
5005acfe | 5955 | enablestring= |
e6cc62c6 VS |
5956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5957 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5958 | no_cache=0 |
5959 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5960 | if test "${enable_protocol_file+set}" = set; then | |
5961 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5962 | |
4cdb0ab0 VS |
5963 | if test "$enableval" = yes; then |
5964 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5965 | else | |
5966 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5967 | fi | |
e6cc62c6 | 5968 | |
4cdb0ab0 | 5969 | else |
e6cc62c6 | 5970 | |
4cdb0ab0 VS |
5971 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5972 | if test "x$LINE" != x ; then | |
5973 | eval "DEFAULT_$LINE" | |
5974 | else | |
5975 | no_cache=1 | |
5976 | fi | |
5977 | ||
5978 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5979 | |
e6cc62c6 | 5980 | fi; |
4cdb0ab0 VS |
5981 | |
5982 | eval "$ac_cv_use_protocol_file" | |
5983 | if test "$no_cache" != 1; then | |
5984 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5985 | fi | |
5986 | ||
5987 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5988 | echo "$as_me:$LINENO: result: yes" >&5 |
5989 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5990 | else |
e6cc62c6 VS |
5991 | echo "$as_me:$LINENO: result: no" >&5 |
5992 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5993 | fi |
e6cc62c6 | 5994 | |
52127426 | 5995 | |
8284b0c5 MB |
5996 | |
5997 | ||
5998 | ||
5005acfe | 5999 | enablestring= |
e6cc62c6 VS |
6000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
6001 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
6002 | no_cache=0 |
6003 | # Check whether --enable-threads or --disable-threads was given. | |
6004 | if test "${enable_threads+set}" = set; then | |
6005 | enableval="$enable_threads" | |
e6cc62c6 | 6006 | |
10f2d63a VZ |
6007 | if test "$enableval" = yes; then |
6008 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6009 | else | |
6010 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6011 | fi | |
e6cc62c6 | 6012 | |
10f2d63a | 6013 | else |
e6cc62c6 | 6014 | |
10f2d63a VZ |
6015 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
6016 | if test "x$LINE" != x ; then | |
6017 | eval "DEFAULT_$LINE" | |
6018 | else | |
6019 | no_cache=1 | |
6020 | fi | |
6021 | ||
6022 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 6023 | |
e6cc62c6 | 6024 | fi; |
10f2d63a VZ |
6025 | |
6026 | eval "$ac_cv_use_threads" | |
6027 | if test "$no_cache" != 1; then | |
6028 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6029 | fi | |
6030 | ||
6031 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
6032 | echo "$as_me:$LINENO: result: yes" >&5 |
6033 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6034 | else |
e6cc62c6 VS |
6035 | echo "$as_me:$LINENO: result: no" >&5 |
6036 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6037 | fi |
e6cc62c6 | 6038 | |
10f2d63a | 6039 | |
b12915c1 VZ |
6040 | if test "$wxUSE_GUI" = "yes"; then |
6041 | ||
8284b0c5 MB |
6042 | |
6043 | ||
5005acfe | 6044 | enablestring= |
e6cc62c6 VS |
6045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
6046 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
6047 | no_cache=0 |
6048 | # Check whether --enable-docview or --disable-docview was given. | |
6049 | if test "${enable_docview+set}" = set; then | |
6050 | enableval="$enable_docview" | |
e6cc62c6 | 6051 | |
10f2d63a VZ |
6052 | if test "$enableval" = yes; then |
6053 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6054 | else | |
6055 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6056 | fi | |
e6cc62c6 | 6057 | |
10f2d63a | 6058 | else |
e6cc62c6 | 6059 | |
10f2d63a VZ |
6060 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
6061 | if test "x$LINE" != x ; then | |
6062 | eval "DEFAULT_$LINE" | |
6063 | else | |
6064 | no_cache=1 | |
6065 | fi | |
6066 | ||
6067 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 6068 | |
e6cc62c6 | 6069 | fi; |
10f2d63a VZ |
6070 | |
6071 | eval "$ac_cv_use_docview" | |
6072 | if test "$no_cache" != 1; then | |
6073 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6074 | fi | |
6075 | ||
6076 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6077 | echo "$as_me:$LINENO: result: yes" >&5 |
6078 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6079 | else |
e6cc62c6 VS |
6080 | echo "$as_me:$LINENO: result: no" >&5 |
6081 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6082 | fi |
e6cc62c6 | 6083 | |
10f2d63a | 6084 | |
5005acfe | 6085 | enablestring= |
e6cc62c6 VS |
6086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
6087 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
6088 | no_cache=0 |
6089 | # Check whether --enable-help or --disable-help was given. | |
6090 | if test "${enable_help+set}" = set; then | |
6091 | enableval="$enable_help" | |
e6cc62c6 | 6092 | |
10f2d63a VZ |
6093 | if test "$enableval" = yes; then |
6094 | ac_cv_use_help='wxUSE_HELP=yes' | |
6095 | else | |
6096 | ac_cv_use_help='wxUSE_HELP=no' | |
6097 | fi | |
e6cc62c6 | 6098 | |
10f2d63a | 6099 | else |
e6cc62c6 | 6100 | |
10f2d63a VZ |
6101 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
6102 | if test "x$LINE" != x ; then | |
6103 | eval "DEFAULT_$LINE" | |
6104 | else | |
6105 | no_cache=1 | |
6106 | fi | |
6107 | ||
6108 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 6109 | |
e6cc62c6 | 6110 | fi; |
10f2d63a VZ |
6111 | |
6112 | eval "$ac_cv_use_help" | |
6113 | if test "$no_cache" != 1; then | |
6114 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6115 | fi | |
6116 | ||
6117 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
6118 | echo "$as_me:$LINENO: result: yes" >&5 |
6119 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6120 | else |
e6cc62c6 VS |
6121 | echo "$as_me:$LINENO: result: no" >&5 |
6122 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6123 | fi |
e6cc62c6 | 6124 | |
10f2d63a | 6125 | |
5005acfe | 6126 | enablestring= |
e6cc62c6 VS |
6127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
6128 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
6129 | no_cache=0 |
6130 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6131 | if test "${enable_mshtmlhelp+set}" = set; then | |
6132 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 6133 | |
29fd3c0c VS |
6134 | if test "$enableval" = yes; then |
6135 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6136 | else | |
6137 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6138 | fi | |
e6cc62c6 | 6139 | |
29fd3c0c | 6140 | else |
e6cc62c6 | 6141 | |
29fd3c0c VS |
6142 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
6143 | if test "x$LINE" != x ; then | |
6144 | eval "DEFAULT_$LINE" | |
6145 | else | |
6146 | no_cache=1 | |
6147 | fi | |
6148 | ||
6149 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 6150 | |
e6cc62c6 | 6151 | fi; |
29fd3c0c VS |
6152 | |
6153 | eval "$ac_cv_use_mshtmlhelp" | |
6154 | if test "$no_cache" != 1; then | |
6155 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6156 | fi | |
6157 | ||
6158 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
6159 | echo "$as_me:$LINENO: result: yes" >&5 |
6160 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 6161 | else |
e6cc62c6 VS |
6162 | echo "$as_me:$LINENO: result: no" >&5 |
6163 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 6164 | fi |
e6cc62c6 | 6165 | |
29fd3c0c | 6166 | |
5005acfe | 6167 | enablestring= |
e6cc62c6 VS |
6168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6169 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6170 | no_cache=0 |
6171 | # Check whether --enable-html or --disable-html was given. | |
6172 | if test "${enable_html+set}" = set; then | |
6173 | enableval="$enable_html" | |
e6cc62c6 | 6174 | |
3379ed37 VZ |
6175 | if test "$enableval" = yes; then |
6176 | ac_cv_use_html='wxUSE_HTML=yes' | |
6177 | else | |
6178 | ac_cv_use_html='wxUSE_HTML=no' | |
6179 | fi | |
e6cc62c6 | 6180 | |
3379ed37 | 6181 | else |
e6cc62c6 | 6182 | |
3379ed37 VZ |
6183 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6184 | if test "x$LINE" != x ; then | |
6185 | eval "DEFAULT_$LINE" | |
6186 | else | |
6187 | no_cache=1 | |
6188 | fi | |
6189 | ||
6190 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6191 | |
e6cc62c6 | 6192 | fi; |
3379ed37 VZ |
6193 | |
6194 | eval "$ac_cv_use_html" | |
6195 | if test "$no_cache" != 1; then | |
6196 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6197 | fi | |
6198 | ||
6199 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6200 | echo "$as_me:$LINENO: result: yes" >&5 |
6201 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6202 | else |
e6cc62c6 VS |
6203 | echo "$as_me:$LINENO: result: no" >&5 |
6204 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6205 | fi |
e6cc62c6 | 6206 | |
3379ed37 | 6207 | |
5005acfe | 6208 | enablestring= |
e6cc62c6 VS |
6209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6210 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6211 | no_cache=0 |
6212 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6213 | if test "${enable_htmlhelp+set}" = set; then | |
6214 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6215 | |
3379ed37 VZ |
6216 | if test "$enableval" = yes; then |
6217 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6218 | else | |
6219 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6220 | fi | |
e6cc62c6 | 6221 | |
3379ed37 | 6222 | else |
e6cc62c6 | 6223 | |
3379ed37 VZ |
6224 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6232 | |
e6cc62c6 | 6233 | fi; |
3379ed37 VZ |
6234 | |
6235 | eval "$ac_cv_use_htmlhelp" | |
6236 | if test "$no_cache" != 1; then | |
6237 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6238 | fi | |
6239 | ||
6240 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6241 | echo "$as_me:$LINENO: result: yes" >&5 |
6242 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6243 | else |
e6cc62c6 VS |
6244 | echo "$as_me:$LINENO: result: no" >&5 |
6245 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6246 | fi |
e6cc62c6 | 6247 | |
3379ed37 | 6248 | |
5005acfe | 6249 | enablestring= |
e6cc62c6 VS |
6250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6251 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6252 | no_cache=0 |
6253 | # Check whether --enable-constraints or --disable-constraints was given. | |
6254 | if test "${enable_constraints+set}" = set; then | |
6255 | enableval="$enable_constraints" | |
e6cc62c6 | 6256 | |
10f2d63a VZ |
6257 | if test "$enableval" = yes; then |
6258 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6259 | else | |
6260 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6261 | fi | |
e6cc62c6 | 6262 | |
10f2d63a | 6263 | else |
e6cc62c6 | 6264 | |
10f2d63a VZ |
6265 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6266 | if test "x$LINE" != x ; then | |
6267 | eval "DEFAULT_$LINE" | |
6268 | else | |
6269 | no_cache=1 | |
6270 | fi | |
6271 | ||
6272 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6273 | |
e6cc62c6 | 6274 | fi; |
10f2d63a VZ |
6275 | |
6276 | eval "$ac_cv_use_constraints" | |
6277 | if test "$no_cache" != 1; then | |
6278 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6279 | fi | |
6280 | ||
6281 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6282 | echo "$as_me:$LINENO: result: yes" >&5 |
6283 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6284 | else |
e6cc62c6 VS |
6285 | echo "$as_me:$LINENO: result: no" >&5 |
6286 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6287 | fi |
e6cc62c6 | 6288 | |
10f2d63a | 6289 | |
5005acfe | 6290 | enablestring= |
e6cc62c6 VS |
6291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6292 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6293 | no_cache=0 |
6294 | # Check whether --enable-printarch or --disable-printarch was given. | |
6295 | if test "${enable_printarch+set}" = set; then | |
6296 | enableval="$enable_printarch" | |
e6cc62c6 | 6297 | |
10f2d63a VZ |
6298 | if test "$enableval" = yes; then |
6299 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6300 | else | |
6301 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6302 | fi | |
e6cc62c6 | 6303 | |
10f2d63a | 6304 | else |
e6cc62c6 | 6305 | |
10f2d63a VZ |
6306 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6307 | if test "x$LINE" != x ; then | |
6308 | eval "DEFAULT_$LINE" | |
6309 | else | |
6310 | no_cache=1 | |
6311 | fi | |
6312 | ||
6313 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6314 | |
e6cc62c6 | 6315 | fi; |
10f2d63a VZ |
6316 | |
6317 | eval "$ac_cv_use_printarch" | |
6318 | if test "$no_cache" != 1; then | |
6319 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6320 | fi | |
6321 | ||
6322 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6323 | echo "$as_me:$LINENO: result: yes" >&5 |
6324 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6325 | else |
e6cc62c6 VS |
6326 | echo "$as_me:$LINENO: result: no" >&5 |
6327 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6328 | fi |
e6cc62c6 | 6329 | |
10f2d63a | 6330 | |
5005acfe | 6331 | enablestring= |
e6cc62c6 VS |
6332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6333 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6334 | no_cache=0 |
6335 | # Check whether --enable-mdi or --disable-mdi was given. | |
6336 | if test "${enable_mdi+set}" = set; then | |
6337 | enableval="$enable_mdi" | |
e6cc62c6 | 6338 | |
10f2d63a VZ |
6339 | if test "$enableval" = yes; then |
6340 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6341 | else | |
6342 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6343 | fi | |
e6cc62c6 | 6344 | |
10f2d63a | 6345 | else |
e6cc62c6 | 6346 | |
10f2d63a VZ |
6347 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6348 | if test "x$LINE" != x ; then | |
6349 | eval "DEFAULT_$LINE" | |
6350 | else | |
6351 | no_cache=1 | |
6352 | fi | |
6353 | ||
6354 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6355 | |
e6cc62c6 | 6356 | fi; |
10f2d63a VZ |
6357 | |
6358 | eval "$ac_cv_use_mdi" | |
6359 | if test "$no_cache" != 1; then | |
6360 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6361 | fi | |
6362 | ||
6363 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6364 | echo "$as_me:$LINENO: result: yes" >&5 |
6365 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6366 | else |
e6cc62c6 VS |
6367 | echo "$as_me:$LINENO: result: no" >&5 |
6368 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6369 | fi |
e6cc62c6 | 6370 | |
698dcdb6 | 6371 | |
5005acfe | 6372 | enablestring= |
e6cc62c6 VS |
6373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6374 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6375 | no_cache=0 |
6376 | # Check whether --enable-loggui or --disable-loggui was given. | |
6377 | if test "${enable_loggui+set}" = set; then | |
6378 | enableval="$enable_loggui" | |
e6cc62c6 | 6379 | |
1e6feb95 VZ |
6380 | if test "$enableval" = yes; then |
6381 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6382 | else | |
6383 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6384 | fi | |
e6cc62c6 | 6385 | |
1e6feb95 | 6386 | else |
e6cc62c6 | 6387 | |
1e6feb95 VZ |
6388 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6389 | if test "x$LINE" != x ; then | |
6390 | eval "DEFAULT_$LINE" | |
6391 | else | |
6392 | no_cache=1 | |
6393 | fi | |
6394 | ||
6395 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6396 | |
e6cc62c6 | 6397 | fi; |
1e6feb95 VZ |
6398 | |
6399 | eval "$ac_cv_use_loggui" | |
6400 | if test "$no_cache" != 1; then | |
6401 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6402 | fi | |
6403 | ||
6404 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6405 | echo "$as_me:$LINENO: result: yes" >&5 |
6406 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6407 | else |
e6cc62c6 VS |
6408 | echo "$as_me:$LINENO: result: no" >&5 |
6409 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6410 | fi |
e6cc62c6 | 6411 | |
1e6feb95 | 6412 | |
5005acfe | 6413 | enablestring= |
e6cc62c6 VS |
6414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6415 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6416 | no_cache=0 |
6417 | # Check whether --enable-logwin or --disable-logwin was given. | |
6418 | if test "${enable_logwin+set}" = set; then | |
6419 | enableval="$enable_logwin" | |
e6cc62c6 | 6420 | |
1e6feb95 VZ |
6421 | if test "$enableval" = yes; then |
6422 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6423 | else | |
6424 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6425 | fi | |
e6cc62c6 | 6426 | |
1e6feb95 | 6427 | else |
e6cc62c6 | 6428 | |
1e6feb95 VZ |
6429 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6430 | if test "x$LINE" != x ; then | |
6431 | eval "DEFAULT_$LINE" | |
6432 | else | |
6433 | no_cache=1 | |
6434 | fi | |
6435 | ||
6436 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6437 | |
e6cc62c6 | 6438 | fi; |
1e6feb95 VZ |
6439 | |
6440 | eval "$ac_cv_use_logwin" | |
6441 | if test "$no_cache" != 1; then | |
6442 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6443 | fi | |
6444 | ||
6445 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6446 | echo "$as_me:$LINENO: result: yes" >&5 |
6447 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6448 | else |
e6cc62c6 VS |
6449 | echo "$as_me:$LINENO: result: no" >&5 |
6450 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6451 | fi |
e6cc62c6 | 6452 | |
1e6feb95 | 6453 | |
5005acfe | 6454 | enablestring= |
e6cc62c6 VS |
6455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6456 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6457 | no_cache=0 |
6458 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6459 | if test "${enable_logdialog+set}" = set; then | |
6460 | enableval="$enable_logdialog" | |
e6cc62c6 | 6461 | |
69d27ff7 MB |
6462 | if test "$enableval" = yes; then |
6463 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6464 | else | |
6465 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6466 | fi | |
e6cc62c6 | 6467 | |
69d27ff7 | 6468 | else |
e6cc62c6 | 6469 | |
69d27ff7 MB |
6470 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6471 | if test "x$LINE" != x ; then | |
6472 | eval "DEFAULT_$LINE" | |
6473 | else | |
6474 | no_cache=1 | |
6475 | fi | |
6476 | ||
6477 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6478 | |
e6cc62c6 | 6479 | fi; |
69d27ff7 MB |
6480 | |
6481 | eval "$ac_cv_use_logdialog" | |
6482 | if test "$no_cache" != 1; then | |
6483 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6484 | fi | |
6485 | ||
6486 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6487 | echo "$as_me:$LINENO: result: yes" >&5 |
6488 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6489 | else |
e6cc62c6 VS |
6490 | echo "$as_me:$LINENO: result: no" >&5 |
6491 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6492 | fi |
e6cc62c6 | 6493 | |
8284b0c5 | 6494 | |
52127426 | 6495 | |
5005acfe | 6496 | enablestring= |
e6cc62c6 VS |
6497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6498 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6499 | no_cache=0 |
6500 | # Check whether --enable-postscript or --disable-postscript was given. | |
6501 | if test "${enable_postscript+set}" = set; then | |
6502 | enableval="$enable_postscript" | |
e6cc62c6 | 6503 | |
10f2d63a VZ |
6504 | if test "$enableval" = yes; then |
6505 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6506 | else | |
6507 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6508 | fi | |
e6cc62c6 | 6509 | |
10f2d63a | 6510 | else |
e6cc62c6 | 6511 | |
10f2d63a VZ |
6512 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6513 | if test "x$LINE" != x ; then | |
6514 | eval "DEFAULT_$LINE" | |
6515 | else | |
6516 | no_cache=1 | |
6517 | fi | |
6518 | ||
6519 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6520 | |
e6cc62c6 | 6521 | fi; |
10f2d63a VZ |
6522 | |
6523 | eval "$ac_cv_use_postscript" | |
6524 | if test "$no_cache" != 1; then | |
6525 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6526 | fi | |
6527 | ||
6528 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6529 | echo "$as_me:$LINENO: result: yes" >&5 |
6530 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6531 | else |
e6cc62c6 VS |
6532 | echo "$as_me:$LINENO: result: no" >&5 |
6533 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6534 | fi |
e6cc62c6 | 6535 | |
8284b0c5 MB |
6536 | |
6537 | ||
52127426 | 6538 | |
8284b0c5 | 6539 | |
5005acfe | 6540 | enablestring= |
e6cc62c6 VS |
6541 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6542 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6543 | no_cache=0 |
3c907f20 VZ |
6544 | # Check whether --enable-prologio or --disable-prologio was given. |
6545 | if test "${enable_prologio+set}" = set; then | |
6546 | enableval="$enable_prologio" | |
e6cc62c6 | 6547 | |
10f2d63a | 6548 | if test "$enableval" = yes; then |
3c907f20 | 6549 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6550 | else |
3c907f20 | 6551 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6552 | fi |
e6cc62c6 | 6553 | |
10f2d63a | 6554 | else |
e6cc62c6 | 6555 | |
3c907f20 | 6556 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6557 | if test "x$LINE" != x ; then |
6558 | eval "DEFAULT_$LINE" | |
6559 | else | |
6560 | no_cache=1 | |
6561 | fi | |
6562 | ||
3c907f20 | 6563 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6564 | |
e6cc62c6 | 6565 | fi; |
10f2d63a | 6566 | |
3c907f20 | 6567 | eval "$ac_cv_use_prologio" |
10f2d63a | 6568 | if test "$no_cache" != 1; then |
3c907f20 | 6569 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6570 | fi |
6571 | ||
3c907f20 | 6572 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6573 | echo "$as_me:$LINENO: result: yes" >&5 |
6574 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6575 | else |
e6cc62c6 VS |
6576 | echo "$as_me:$LINENO: result: no" >&5 |
6577 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6578 | fi |
e6cc62c6 | 6579 | |
8284b0c5 | 6580 | |
5005acfe | 6581 | enablestring= |
e6cc62c6 VS |
6582 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6583 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6584 | no_cache=0 |
3c907f20 VZ |
6585 | # Check whether --enable-resources or --disable-resources was given. |
6586 | if test "${enable_resources+set}" = set; then | |
6587 | enableval="$enable_resources" | |
e6cc62c6 | 6588 | |
10f2d63a | 6589 | if test "$enableval" = yes; then |
3c907f20 | 6590 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6591 | else |
3c907f20 | 6592 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6593 | fi |
e6cc62c6 | 6594 | |
10f2d63a | 6595 | else |
e6cc62c6 | 6596 | |
3c907f20 | 6597 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6598 | if test "x$LINE" != x ; then |
6599 | eval "DEFAULT_$LINE" | |
6600 | else | |
6601 | no_cache=1 | |
6602 | fi | |
6603 | ||
3c907f20 | 6604 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6605 | |
e6cc62c6 | 6606 | fi; |
10f2d63a | 6607 | |
3c907f20 | 6608 | eval "$ac_cv_use_resources" |
10f2d63a | 6609 | if test "$no_cache" != 1; then |
3c907f20 | 6610 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6611 | fi |
6612 | ||
3c907f20 | 6613 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6614 | echo "$as_me:$LINENO: result: yes" >&5 |
6615 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6616 | else |
e6cc62c6 VS |
6617 | echo "$as_me:$LINENO: result: no" >&5 |
6618 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6619 | fi |
e6cc62c6 | 6620 | |
8284b0c5 MB |
6621 | |
6622 | ||
52127426 | 6623 | |
5005acfe | 6624 | enablestring= |
e6cc62c6 VS |
6625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6626 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6627 | no_cache=0 |
6628 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6629 | if test "${enable_clipboard+set}" = set; then | |
6630 | enableval="$enable_clipboard" | |
e6cc62c6 | 6631 | |
10f2d63a VZ |
6632 | if test "$enableval" = yes; then |
6633 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6634 | else | |
6635 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6636 | fi | |
e6cc62c6 | 6637 | |
10f2d63a | 6638 | else |
e6cc62c6 | 6639 | |
10f2d63a VZ |
6640 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6641 | if test "x$LINE" != x ; then | |
6642 | eval "DEFAULT_$LINE" | |
6643 | else | |
6644 | no_cache=1 | |
6645 | fi | |
6646 | ||
6647 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6648 | |
e6cc62c6 | 6649 | fi; |
10f2d63a VZ |
6650 | |
6651 | eval "$ac_cv_use_clipboard" | |
6652 | if test "$no_cache" != 1; then | |
6653 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6654 | fi | |
6655 | ||
6656 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6657 | echo "$as_me:$LINENO: result: yes" >&5 |
6658 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6659 | else |
e6cc62c6 VS |
6660 | echo "$as_me:$LINENO: result: no" >&5 |
6661 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6662 | fi |
e6cc62c6 | 6663 | |
10f2d63a | 6664 | |
5005acfe | 6665 | enablestring= |
e6cc62c6 VS |
6666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6667 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6668 | no_cache=0 |
6669 | # Check whether --enable-dnd or --disable-dnd was given. | |
6670 | if test "${enable_dnd+set}" = set; then | |
6671 | enableval="$enable_dnd" | |
e6cc62c6 | 6672 | |
10f2d63a VZ |
6673 | if test "$enableval" = yes; then |
6674 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6675 | else | |
6676 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6677 | fi | |
e6cc62c6 | 6678 | |
10f2d63a | 6679 | else |
e6cc62c6 | 6680 | |
10f2d63a VZ |
6681 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6682 | if test "x$LINE" != x ; then | |
6683 | eval "DEFAULT_$LINE" | |
6684 | else | |
6685 | no_cache=1 | |
6686 | fi | |
6687 | ||
6688 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6689 | |
e6cc62c6 | 6690 | fi; |
10f2d63a VZ |
6691 | |
6692 | eval "$ac_cv_use_dnd" | |
6693 | if test "$no_cache" != 1; then | |
6694 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6695 | fi | |
6696 | ||
6697 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6698 | echo "$as_me:$LINENO: result: yes" >&5 |
6699 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6700 | else |
e6cc62c6 VS |
6701 | echo "$as_me:$LINENO: result: no" >&5 |
6702 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6703 | fi |
e6cc62c6 | 6704 | |
10f2d63a | 6705 | |
5005acfe | 6706 | enablestring= |
e6cc62c6 VS |
6707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6708 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6709 | no_cache=0 |
6710 | # Check whether --enable-metafile or --disable-metafile was given. | |
6711 | if test "${enable_metafile+set}" = set; then | |
6712 | enableval="$enable_metafile" | |
e6cc62c6 | 6713 | |
b64f0a5f RL |
6714 | if test "$enableval" = yes; then |
6715 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6716 | else | |
6717 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6718 | fi | |
e6cc62c6 | 6719 | |
b64f0a5f | 6720 | else |
e6cc62c6 | 6721 | |
b64f0a5f RL |
6722 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6723 | if test "x$LINE" != x ; then | |
6724 | eval "DEFAULT_$LINE" | |
6725 | else | |
6726 | no_cache=1 | |
6727 | fi | |
6728 | ||
6729 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6730 | |
e6cc62c6 | 6731 | fi; |
b64f0a5f RL |
6732 | |
6733 | eval "$ac_cv_use_metafile" | |
6734 | if test "$no_cache" != 1; then | |
6735 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6736 | fi | |
6737 | ||
6738 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6739 | echo "$as_me:$LINENO: result: yes" >&5 |
6740 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6741 | else |
e6cc62c6 VS |
6742 | echo "$as_me:$LINENO: result: no" >&5 |
6743 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6744 | fi |
e6cc62c6 | 6745 | |
52127426 | 6746 | |
8284b0c5 | 6747 | |
52127426 | 6748 | |
8284b0c5 | 6749 | |
5005acfe | 6750 | enablestring= |
e6cc62c6 VS |
6751 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6752 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6753 | no_cache=0 |
6754 | # Check whether --enable-controls or --disable-controls was given. | |
6755 | if test "${enable_controls+set}" = set; then | |
6756 | enableval="$enable_controls" | |
e6cc62c6 | 6757 | |
10f2d63a VZ |
6758 | if test "$enableval" = yes; then |
6759 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6760 | else | |
6761 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6762 | fi | |
e6cc62c6 | 6763 | |
10f2d63a | 6764 | else |
e6cc62c6 | 6765 | |
10f2d63a VZ |
6766 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6767 | if test "x$LINE" != x ; then | |
6768 | eval "DEFAULT_$LINE" | |
6769 | else | |
6770 | no_cache=1 | |
6771 | fi | |
6772 | ||
6773 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6774 | |
e6cc62c6 | 6775 | fi; |
10f2d63a VZ |
6776 | |
6777 | eval "$ac_cv_use_controls" | |
6778 | if test "$no_cache" != 1; then | |
6779 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6780 | fi | |
6781 | ||
6782 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6783 | echo "$as_me:$LINENO: result: yes" >&5 |
6784 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6785 | else |
e6cc62c6 VS |
6786 | echo "$as_me:$LINENO: result: no" >&5 |
6787 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6788 | fi |
e6cc62c6 | 6789 | |
10f2d63a VZ |
6790 | |
6791 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6792 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6793 | DEFAULT_wxUSE_BMPBUTTON=yes |
6794 | DEFAULT_wxUSE_BUTTON=yes | |
6795 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6796 | DEFAULT_wxUSE_CARET=yes |
6797 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6798 | DEFAULT_wxUSE_CHECKBOX=yes |
6799 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6800 | DEFAULT_wxUSE_CHOICE=yes | |
6801 | DEFAULT_wxUSE_GAUGE=yes | |
6802 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6803 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6804 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6805 | DEFAULT_wxUSE_LISTBOX=yes |
6806 | DEFAULT_wxUSE_LISTCTRL=yes | |
6807 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6808 | DEFAULT_wxUSE_RADIOBOX=yes | |
6809 | DEFAULT_wxUSE_RADIOBTN=yes | |
6810 | DEFAULT_wxUSE_SASH=yes | |
6811 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6812 | DEFAULT_wxUSE_SLIDER=yes | |
6813 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6814 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6815 | DEFAULT_wxUSE_SPLITTER=yes |
6816 | DEFAULT_wxUSE_STATBMP=yes | |
6817 | DEFAULT_wxUSE_STATBOX=yes | |
6818 | DEFAULT_wxUSE_STATLINE=yes | |
6819 | DEFAULT_wxUSE_STATUSBAR=yes | |
6820 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6821 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6822 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6823 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6824 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6825 | DEFAULT_wxUSE_TOOLTIPS=yes |
6826 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6827 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6828 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6829 | elif test "$wxUSE_CONTROLS" = "no"; then |
6830 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6831 | DEFAULT_wxUSE_BMPBUTTON=no |
6832 | DEFAULT_wxUSE_BUTTON=no | |
6833 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6834 | DEFAULT_wxUSE_CARET=no |
6835 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6836 | DEFAULT_wxUSE_CHECKBOX=no |
6837 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6838 | DEFAULT_wxUSE_CHOICE=no | |
6839 | DEFAULT_wxUSE_GAUGE=no | |
6840 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6841 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6842 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6843 | DEFAULT_wxUSE_LISTBOX=no |
6844 | DEFAULT_wxUSE_LISTCTRL=no | |
6845 | DEFAULT_wxUSE_NOTEBOOK=no | |
6846 | DEFAULT_wxUSE_RADIOBOX=no | |
6847 | DEFAULT_wxUSE_RADIOBTN=no | |
6848 | DEFAULT_wxUSE_SASH=no | |
6849 | DEFAULT_wxUSE_SCROLLBAR=no | |
6850 | DEFAULT_wxUSE_SLIDER=no | |
6851 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6852 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6853 | DEFAULT_wxUSE_SPLITTER=no |
6854 | DEFAULT_wxUSE_STATBMP=no | |
6855 | DEFAULT_wxUSE_STATBOX=no | |
6856 | DEFAULT_wxUSE_STATLINE=no | |
6857 | DEFAULT_wxUSE_STATUSBAR=no | |
6858 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6859 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6860 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6861 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6862 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6863 | DEFAULT_wxUSE_TOOLTIPS=no |
6864 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6865 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6866 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6867 | fi |
6868 | ||
ac0c4cc3 DE |
6869 | ## FIXME: This is a blatant hack |
6870 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6871 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6872 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6873 | # Generic notebook requires tab dialog |
6874 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6875 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6876 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6877 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6878 | fi |
6879 | ||
8284b0c5 | 6880 | |
5005acfe | 6881 | enablestring= |
e6cc62c6 VS |
6882 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6883 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6884 | no_cache=0 |
6885 | # Check whether --enable-accel or --disable-accel was given. | |
6886 | if test "${enable_accel+set}" = set; then | |
6887 | enableval="$enable_accel" | |
e6cc62c6 | 6888 | |
10f2d63a VZ |
6889 | if test "$enableval" = yes; then |
6890 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6891 | else | |
6892 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6893 | fi | |
e6cc62c6 | 6894 | |
10f2d63a | 6895 | else |
e6cc62c6 | 6896 | |
10f2d63a VZ |
6897 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6898 | if test "x$LINE" != x ; then | |
6899 | eval "DEFAULT_$LINE" | |
6900 | else | |
6901 | no_cache=1 | |
6902 | fi | |
6903 | ||
6904 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6905 | |
e6cc62c6 | 6906 | fi; |
10f2d63a VZ |
6907 | |
6908 | eval "$ac_cv_use_accel" | |
6909 | if test "$no_cache" != 1; then | |
6910 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6911 | fi | |
6912 | ||
6913 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6914 | echo "$as_me:$LINENO: result: yes" >&5 |
6915 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6916 | else |
e6cc62c6 VS |
6917 | echo "$as_me:$LINENO: result: no" >&5 |
6918 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6919 | fi |
e6cc62c6 | 6920 | |
10f2d63a | 6921 | |
5005acfe | 6922 | enablestring= |
e6cc62c6 VS |
6923 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6924 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6925 | no_cache=0 |
1e6feb95 VZ |
6926 | # Check whether --enable-button or --disable-button was given. |
6927 | if test "${enable_button+set}" = set; then | |
6928 | enableval="$enable_button" | |
e6cc62c6 | 6929 | |
10f2d63a | 6930 | if test "$enableval" = yes; then |
1e6feb95 | 6931 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6932 | else |
1e6feb95 | 6933 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6934 | fi |
e6cc62c6 | 6935 | |
10f2d63a | 6936 | else |
e6cc62c6 | 6937 | |
1e6feb95 | 6938 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6939 | if test "x$LINE" != x ; then |
6940 | eval "DEFAULT_$LINE" | |
6941 | else | |
6942 | no_cache=1 | |
6943 | fi | |
6944 | ||
1e6feb95 | 6945 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6946 | |
e6cc62c6 | 6947 | fi; |
10f2d63a | 6948 | |
1e6feb95 | 6949 | eval "$ac_cv_use_button" |
10f2d63a | 6950 | if test "$no_cache" != 1; then |
1e6feb95 | 6951 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6952 | fi |
6953 | ||
1e6feb95 | 6954 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6955 | echo "$as_me:$LINENO: result: yes" >&5 |
6956 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6957 | else |
e6cc62c6 VS |
6958 | echo "$as_me:$LINENO: result: no" >&5 |
6959 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6960 | fi |
e6cc62c6 | 6961 | |
10f2d63a | 6962 | |
5005acfe | 6963 | enablestring= |
e6cc62c6 VS |
6964 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6965 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6966 | no_cache=0 |
6967 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6968 | if test "${enable_bmpbutton+set}" = set; then | |
6969 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6970 | |
10f2d63a VZ |
6971 | if test "$enableval" = yes; then |
6972 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6973 | else | |
6974 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6975 | fi | |
e6cc62c6 | 6976 | |
10f2d63a | 6977 | else |
e6cc62c6 | 6978 | |
10f2d63a VZ |
6979 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6980 | if test "x$LINE" != x ; then | |
6981 | eval "DEFAULT_$LINE" | |
6982 | else | |
6983 | no_cache=1 | |
6984 | fi | |
6985 | ||
6986 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6987 | |
e6cc62c6 | 6988 | fi; |
10f2d63a VZ |
6989 | |
6990 | eval "$ac_cv_use_bmpbutton" | |
6991 | if test "$no_cache" != 1; then | |
6992 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6993 | fi | |
6994 | ||
6995 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6996 | echo "$as_me:$LINENO: result: yes" >&5 |
6997 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6998 | else |
e6cc62c6 VS |
6999 | echo "$as_me:$LINENO: result: no" >&5 |
7000 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7001 | fi |
e6cc62c6 | 7002 | |
10f2d63a | 7003 | |
5005acfe | 7004 | enablestring= |
e6cc62c6 VS |
7005 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
7006 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
7007 | no_cache=0 |
7008 | # Check whether --enable-calendar or --disable-calendar was given. | |
7009 | if test "${enable_calendar+set}" = set; then | |
7010 | enableval="$enable_calendar" | |
e6cc62c6 | 7011 | |
1e6feb95 VZ |
7012 | if test "$enableval" = yes; then |
7013 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7014 | else | |
7015 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7016 | fi | |
e6cc62c6 | 7017 | |
1e6feb95 | 7018 | else |
e6cc62c6 | 7019 | |
1e6feb95 VZ |
7020 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
7021 | if test "x$LINE" != x ; then | |
7022 | eval "DEFAULT_$LINE" | |
7023 | else | |
7024 | no_cache=1 | |
7025 | fi | |
7026 | ||
7027 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 7028 | |
e6cc62c6 | 7029 | fi; |
1e6feb95 VZ |
7030 | |
7031 | eval "$ac_cv_use_calendar" | |
7032 | if test "$no_cache" != 1; then | |
7033 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7034 | fi | |
7035 | ||
7036 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
7037 | echo "$as_me:$LINENO: result: yes" >&5 |
7038 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7039 | else |
e6cc62c6 VS |
7040 | echo "$as_me:$LINENO: result: no" >&5 |
7041 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7042 | fi |
e6cc62c6 | 7043 | |
1e6feb95 | 7044 | |
5005acfe | 7045 | enablestring= |
e6cc62c6 VS |
7046 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
7047 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
7048 | no_cache=0 |
7049 | # Check whether --enable-caret or --disable-caret was given. | |
7050 | if test "${enable_caret+set}" = set; then | |
7051 | enableval="$enable_caret" | |
e6cc62c6 | 7052 | |
1e6feb95 VZ |
7053 | if test "$enableval" = yes; then |
7054 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7055 | else | |
7056 | ac_cv_use_caret='wxUSE_CARET=no' | |
7057 | fi | |
e6cc62c6 | 7058 | |
1e6feb95 | 7059 | else |
e6cc62c6 | 7060 | |
1e6feb95 VZ |
7061 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
7062 | if test "x$LINE" != x ; then | |
7063 | eval "DEFAULT_$LINE" | |
7064 | else | |
7065 | no_cache=1 | |
7066 | fi | |
7067 | ||
7068 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 7069 | |
e6cc62c6 | 7070 | fi; |
1e6feb95 VZ |
7071 | |
7072 | eval "$ac_cv_use_caret" | |
7073 | if test "$no_cache" != 1; then | |
7074 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7075 | fi | |
7076 | ||
7077 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
7078 | echo "$as_me:$LINENO: result: yes" >&5 |
7079 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7080 | else |
e6cc62c6 VS |
7081 | echo "$as_me:$LINENO: result: no" >&5 |
7082 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7083 | fi |
e6cc62c6 | 7084 | |
1e6feb95 | 7085 | |
5005acfe | 7086 | enablestring= |
e6cc62c6 VS |
7087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
7088 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7089 | no_cache=0 |
7090 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7091 | if test "${enable_checkbox+set}" = set; then | |
7092 | enableval="$enable_checkbox" | |
e6cc62c6 | 7093 | |
10f2d63a VZ |
7094 | if test "$enableval" = yes; then |
7095 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7096 | else | |
7097 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7098 | fi | |
e6cc62c6 | 7099 | |
10f2d63a | 7100 | else |
e6cc62c6 | 7101 | |
10f2d63a VZ |
7102 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
7103 | if test "x$LINE" != x ; then | |
7104 | eval "DEFAULT_$LINE" | |
7105 | else | |
7106 | no_cache=1 | |
7107 | fi | |
7108 | ||
7109 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 7110 | |
e6cc62c6 | 7111 | fi; |
10f2d63a VZ |
7112 | |
7113 | eval "$ac_cv_use_checkbox" | |
7114 | if test "$no_cache" != 1; then | |
7115 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7116 | fi | |
7117 | ||
7118 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
7119 | echo "$as_me:$LINENO: result: yes" >&5 |
7120 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7121 | else |
e6cc62c6 VS |
7122 | echo "$as_me:$LINENO: result: no" >&5 |
7123 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7124 | fi |
e6cc62c6 | 7125 | |
10f2d63a | 7126 | |
5005acfe | 7127 | enablestring= |
e6cc62c6 VS |
7128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
7129 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
7130 | no_cache=0 |
7131 | # Check whether --enable-checklst or --disable-checklst was given. | |
7132 | if test "${enable_checklst+set}" = set; then | |
7133 | enableval="$enable_checklst" | |
e6cc62c6 | 7134 | |
10f2d63a VZ |
7135 | if test "$enableval" = yes; then |
7136 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7137 | else | |
7138 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7139 | fi | |
e6cc62c6 | 7140 | |
10f2d63a | 7141 | else |
e6cc62c6 | 7142 | |
10f2d63a VZ |
7143 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
7144 | if test "x$LINE" != x ; then | |
7145 | eval "DEFAULT_$LINE" | |
7146 | else | |
7147 | no_cache=1 | |
7148 | fi | |
7149 | ||
7150 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 7151 | |
e6cc62c6 | 7152 | fi; |
10f2d63a VZ |
7153 | |
7154 | eval "$ac_cv_use_checklst" | |
7155 | if test "$no_cache" != 1; then | |
7156 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7157 | fi | |
7158 | ||
7159 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
7160 | echo "$as_me:$LINENO: result: yes" >&5 |
7161 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7162 | else |
e6cc62c6 VS |
7163 | echo "$as_me:$LINENO: result: no" >&5 |
7164 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7165 | fi |
e6cc62c6 | 7166 | |
10f2d63a | 7167 | |
5005acfe | 7168 | enablestring= |
e6cc62c6 VS |
7169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7170 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7171 | no_cache=0 |
7172 | # Check whether --enable-choice or --disable-choice was given. | |
7173 | if test "${enable_choice+set}" = set; then | |
7174 | enableval="$enable_choice" | |
e6cc62c6 | 7175 | |
10f2d63a VZ |
7176 | if test "$enableval" = yes; then |
7177 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7178 | else | |
7179 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7180 | fi | |
e6cc62c6 | 7181 | |
10f2d63a | 7182 | else |
e6cc62c6 | 7183 | |
10f2d63a VZ |
7184 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7192 | |
e6cc62c6 | 7193 | fi; |
10f2d63a VZ |
7194 | |
7195 | eval "$ac_cv_use_choice" | |
7196 | if test "$no_cache" != 1; then | |
7197 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7198 | fi | |
7199 | ||
7200 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7201 | echo "$as_me:$LINENO: result: yes" >&5 |
7202 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7203 | else |
e6cc62c6 VS |
7204 | echo "$as_me:$LINENO: result: no" >&5 |
7205 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7206 | fi |
e6cc62c6 | 7207 | |
10f2d63a | 7208 | |
5005acfe | 7209 | enablestring= |
e6cc62c6 VS |
7210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7211 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7212 | no_cache=0 |
7213 | # Check whether --enable-combobox or --disable-combobox was given. | |
7214 | if test "${enable_combobox+set}" = set; then | |
7215 | enableval="$enable_combobox" | |
e6cc62c6 | 7216 | |
10f2d63a VZ |
7217 | if test "$enableval" = yes; then |
7218 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7219 | else | |
7220 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7221 | fi | |
e6cc62c6 | 7222 | |
10f2d63a | 7223 | else |
e6cc62c6 | 7224 | |
10f2d63a VZ |
7225 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7226 | if test "x$LINE" != x ; then | |
7227 | eval "DEFAULT_$LINE" | |
7228 | else | |
7229 | no_cache=1 | |
7230 | fi | |
7231 | ||
7232 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7233 | |
e6cc62c6 | 7234 | fi; |
10f2d63a VZ |
7235 | |
7236 | eval "$ac_cv_use_combobox" | |
7237 | if test "$no_cache" != 1; then | |
7238 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7239 | fi | |
7240 | ||
7241 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7242 | echo "$as_me:$LINENO: result: yes" >&5 |
7243 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7244 | else |
e6cc62c6 VS |
7245 | echo "$as_me:$LINENO: result: no" >&5 |
7246 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7247 | fi |
e6cc62c6 | 7248 | |
10f2d63a | 7249 | |
da494b40 | 7250 | enablestring= |
e6cc62c6 VS |
7251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7252 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7253 | no_cache=0 |
7254 | # Check whether --enable-display or --disable-display was given. | |
7255 | if test "${enable_display+set}" = set; then | |
7256 | enableval="$enable_display" | |
e6cc62c6 | 7257 | |
da494b40 MB |
7258 | if test "$enableval" = yes; then |
7259 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7260 | else | |
7261 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7262 | fi | |
e6cc62c6 | 7263 | |
da494b40 | 7264 | else |
e6cc62c6 | 7265 | |
da494b40 MB |
7266 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7267 | if test "x$LINE" != x ; then | |
7268 | eval "DEFAULT_$LINE" | |
7269 | else | |
7270 | no_cache=1 | |
7271 | fi | |
7272 | ||
7273 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7274 | |
e6cc62c6 | 7275 | fi; |
da494b40 MB |
7276 | |
7277 | eval "$ac_cv_use_display" | |
7278 | if test "$no_cache" != 1; then | |
7279 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7280 | fi | |
7281 | ||
7282 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7283 | echo "$as_me:$LINENO: result: yes" >&5 |
7284 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7285 | else |
e6cc62c6 VS |
7286 | echo "$as_me:$LINENO: result: no" >&5 |
7287 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7288 | fi |
e6cc62c6 | 7289 | |
da494b40 | 7290 | |
5005acfe | 7291 | enablestring= |
e6cc62c6 VS |
7292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7293 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7294 | no_cache=0 |
7295 | # Check whether --enable-gauge or --disable-gauge was given. | |
7296 | if test "${enable_gauge+set}" = set; then | |
7297 | enableval="$enable_gauge" | |
e6cc62c6 | 7298 | |
10f2d63a VZ |
7299 | if test "$enableval" = yes; then |
7300 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7301 | else | |
7302 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7303 | fi | |
e6cc62c6 | 7304 | |
10f2d63a | 7305 | else |
e6cc62c6 | 7306 | |
10f2d63a VZ |
7307 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7308 | if test "x$LINE" != x ; then | |
7309 | eval "DEFAULT_$LINE" | |
7310 | else | |
7311 | no_cache=1 | |
7312 | fi | |
7313 | ||
7314 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7315 | |
e6cc62c6 | 7316 | fi; |
10f2d63a VZ |
7317 | |
7318 | eval "$ac_cv_use_gauge" | |
7319 | if test "$no_cache" != 1; then | |
7320 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7321 | fi | |
7322 | ||
7323 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7324 | echo "$as_me:$LINENO: result: yes" >&5 |
7325 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7326 | else |
e6cc62c6 VS |
7327 | echo "$as_me:$LINENO: result: no" >&5 |
7328 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7329 | fi |
e6cc62c6 | 7330 | |
10f2d63a | 7331 | |
5005acfe | 7332 | enablestring= |
e6cc62c6 VS |
7333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7334 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7335 | no_cache=0 |
7336 | # Check whether --enable-grid or --disable-grid was given. | |
7337 | if test "${enable_grid+set}" = set; then | |
7338 | enableval="$enable_grid" | |
e6cc62c6 | 7339 | |
10f2d63a VZ |
7340 | if test "$enableval" = yes; then |
7341 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7342 | else | |
7343 | ac_cv_use_grid='wxUSE_GRID=no' | |
7344 | fi | |
e6cc62c6 | 7345 | |
10f2d63a | 7346 | else |
e6cc62c6 | 7347 | |
10f2d63a VZ |
7348 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7349 | if test "x$LINE" != x ; then | |
7350 | eval "DEFAULT_$LINE" | |
7351 | else | |
7352 | no_cache=1 | |
7353 | fi | |
7354 | ||
7355 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7356 | |
e6cc62c6 | 7357 | fi; |
10f2d63a VZ |
7358 | |
7359 | eval "$ac_cv_use_grid" | |
7360 | if test "$no_cache" != 1; then | |
7361 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7362 | fi | |
7363 | ||
7364 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7365 | echo "$as_me:$LINENO: result: yes" >&5 |
7366 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7367 | else |
e6cc62c6 VS |
7368 | echo "$as_me:$LINENO: result: no" >&5 |
7369 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7370 | fi |
e6cc62c6 | 7371 | |
10f2d63a | 7372 | |
5005acfe | 7373 | enablestring= |
e6cc62c6 VS |
7374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7375 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7376 | no_cache=0 |
7377 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7378 | if test "${enable_imaglist+set}" = set; then | |
7379 | enableval="$enable_imaglist" | |
e6cc62c6 | 7380 | |
10f2d63a VZ |
7381 | if test "$enableval" = yes; then |
7382 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7383 | else | |
7384 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7385 | fi | |
e6cc62c6 | 7386 | |
10f2d63a | 7387 | else |
e6cc62c6 | 7388 | |
10f2d63a VZ |
7389 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7390 | if test "x$LINE" != x ; then | |
7391 | eval "DEFAULT_$LINE" | |
7392 | else | |
7393 | no_cache=1 | |
7394 | fi | |
7395 | ||
7396 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7397 | |
e6cc62c6 | 7398 | fi; |
10f2d63a VZ |
7399 | |
7400 | eval "$ac_cv_use_imaglist" | |
7401 | if test "$no_cache" != 1; then | |
7402 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7403 | fi | |
7404 | ||
7405 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7406 | echo "$as_me:$LINENO: result: yes" >&5 |
7407 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7408 | else |
e6cc62c6 VS |
7409 | echo "$as_me:$LINENO: result: no" >&5 |
7410 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7411 | fi |
e6cc62c6 | 7412 | |
10f2d63a | 7413 | |
0e012a93 VZ |
7414 | enablestring= |
7415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7416 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7417 | no_cache=0 | |
7418 | # Check whether --enable-listbook or --disable-listbook was given. | |
7419 | if test "${enable_listbook+set}" = set; then | |
7420 | enableval="$enable_listbook" | |
7421 | ||
7422 | if test "$enableval" = yes; then | |
7423 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7424 | else | |
7425 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7426 | fi | |
7427 | ||
7428 | else | |
7429 | ||
7430 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7431 | if test "x$LINE" != x ; then | |
7432 | eval "DEFAULT_$LINE" | |
7433 | else | |
7434 | no_cache=1 | |
7435 | fi | |
7436 | ||
7437 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7438 | ||
7439 | fi; | |
7440 | ||
7441 | eval "$ac_cv_use_listbook" | |
7442 | if test "$no_cache" != 1; then | |
7443 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7444 | fi | |
7445 | ||
7446 | if test "$wxUSE_LISTBOOK" = yes; then | |
7447 | echo "$as_me:$LINENO: result: yes" >&5 | |
7448 | echo "${ECHO_T}yes" >&6 | |
7449 | else | |
7450 | echo "$as_me:$LINENO: result: no" >&5 | |
7451 | echo "${ECHO_T}no" >&6 | |
7452 | fi | |
7453 | ||
7454 | ||
5005acfe | 7455 | enablestring= |
e6cc62c6 VS |
7456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7457 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7458 | no_cache=0 |
7459 | # Check whether --enable-listbox or --disable-listbox was given. | |
7460 | if test "${enable_listbox+set}" = set; then | |
7461 | enableval="$enable_listbox" | |
e6cc62c6 | 7462 | |
10f2d63a VZ |
7463 | if test "$enableval" = yes; then |
7464 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7465 | else | |
7466 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7467 | fi | |
e6cc62c6 | 7468 | |
10f2d63a | 7469 | else |
e6cc62c6 | 7470 | |
10f2d63a VZ |
7471 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7472 | if test "x$LINE" != x ; then | |
7473 | eval "DEFAULT_$LINE" | |
7474 | else | |
7475 | no_cache=1 | |
7476 | fi | |
7477 | ||
7478 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7479 | |
e6cc62c6 | 7480 | fi; |
10f2d63a VZ |
7481 | |
7482 | eval "$ac_cv_use_listbox" | |
7483 | if test "$no_cache" != 1; then | |
7484 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7485 | fi | |
7486 | ||
7487 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7488 | echo "$as_me:$LINENO: result: yes" >&5 |
7489 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7490 | else |
e6cc62c6 VS |
7491 | echo "$as_me:$LINENO: result: no" >&5 |
7492 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7493 | fi |
e6cc62c6 | 7494 | |
10f2d63a | 7495 | |
5005acfe | 7496 | enablestring= |
e6cc62c6 VS |
7497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7498 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7499 | no_cache=0 |
7500 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7501 | if test "${enable_listctrl+set}" = set; then | |
7502 | enableval="$enable_listctrl" | |
e6cc62c6 | 7503 | |
10f2d63a VZ |
7504 | if test "$enableval" = yes; then |
7505 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7506 | else | |
7507 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7508 | fi | |
e6cc62c6 | 7509 | |
10f2d63a | 7510 | else |
e6cc62c6 | 7511 | |
10f2d63a VZ |
7512 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7513 | if test "x$LINE" != x ; then | |
7514 | eval "DEFAULT_$LINE" | |
7515 | else | |
7516 | no_cache=1 | |
7517 | fi | |
7518 | ||
7519 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7520 | |
e6cc62c6 | 7521 | fi; |
10f2d63a VZ |
7522 | |
7523 | eval "$ac_cv_use_listctrl" | |
7524 | if test "$no_cache" != 1; then | |
7525 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7526 | fi | |
7527 | ||
7528 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7529 | echo "$as_me:$LINENO: result: yes" >&5 |
7530 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7531 | else |
e6cc62c6 VS |
7532 | echo "$as_me:$LINENO: result: no" >&5 |
7533 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7534 | fi |
e6cc62c6 | 7535 | |
10f2d63a | 7536 | |
5005acfe | 7537 | enablestring= |
e6cc62c6 VS |
7538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7539 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7540 | no_cache=0 |
7541 | # Check whether --enable-notebook or --disable-notebook was given. | |
7542 | if test "${enable_notebook+set}" = set; then | |
7543 | enableval="$enable_notebook" | |
e6cc62c6 | 7544 | |
10f2d63a VZ |
7545 | if test "$enableval" = yes; then |
7546 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7547 | else | |
7548 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7549 | fi | |
e6cc62c6 | 7550 | |
10f2d63a | 7551 | else |
e6cc62c6 | 7552 | |
10f2d63a VZ |
7553 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7554 | if test "x$LINE" != x ; then | |
7555 | eval "DEFAULT_$LINE" | |
7556 | else | |
7557 | no_cache=1 | |
7558 | fi | |
7559 | ||
7560 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7561 | |
e6cc62c6 | 7562 | fi; |
10f2d63a VZ |
7563 | |
7564 | eval "$ac_cv_use_notebook" | |
7565 | if test "$no_cache" != 1; then | |
7566 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7567 | fi | |
7568 | ||
7569 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7570 | echo "$as_me:$LINENO: result: yes" >&5 |
7571 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7572 | else |
e6cc62c6 VS |
7573 | echo "$as_me:$LINENO: result: no" >&5 |
7574 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7575 | fi |
e6cc62c6 | 7576 | |
10f2d63a | 7577 | |
5005acfe | 7578 | enablestring= |
e6cc62c6 VS |
7579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7580 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7581 | no_cache=0 |
7582 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7583 | if test "${enable_radiobox+set}" = set; then | |
7584 | enableval="$enable_radiobox" | |
e6cc62c6 | 7585 | |
10f2d63a VZ |
7586 | if test "$enableval" = yes; then |
7587 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7588 | else | |
7589 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7590 | fi | |
e6cc62c6 | 7591 | |
10f2d63a | 7592 | else |
e6cc62c6 | 7593 | |
10f2d63a VZ |
7594 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7595 | if test "x$LINE" != x ; then | |
7596 | eval "DEFAULT_$LINE" | |
7597 | else | |
7598 | no_cache=1 | |
7599 | fi | |
7600 | ||
7601 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7602 | |
e6cc62c6 | 7603 | fi; |
10f2d63a VZ |
7604 | |
7605 | eval "$ac_cv_use_radiobox" | |
7606 | if test "$no_cache" != 1; then | |
7607 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7608 | fi | |
7609 | ||
7610 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7611 | echo "$as_me:$LINENO: result: yes" >&5 |
7612 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7613 | else |
e6cc62c6 VS |
7614 | echo "$as_me:$LINENO: result: no" >&5 |
7615 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7616 | fi |
e6cc62c6 | 7617 | |
10f2d63a | 7618 | |
5005acfe | 7619 | enablestring= |
e6cc62c6 VS |
7620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7621 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7622 | no_cache=0 |
7623 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7624 | if test "${enable_radiobtn+set}" = set; then | |
7625 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7626 | |
10f2d63a VZ |
7627 | if test "$enableval" = yes; then |
7628 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7629 | else | |
7630 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7631 | fi | |
e6cc62c6 | 7632 | |
10f2d63a | 7633 | else |
e6cc62c6 | 7634 | |
10f2d63a VZ |
7635 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7636 | if test "x$LINE" != x ; then | |
7637 | eval "DEFAULT_$LINE" | |
7638 | else | |
7639 | no_cache=1 | |
7640 | fi | |
7641 | ||
7642 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7643 | |
e6cc62c6 | 7644 | fi; |
10f2d63a VZ |
7645 | |
7646 | eval "$ac_cv_use_radiobtn" | |
7647 | if test "$no_cache" != 1; then | |
7648 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7649 | fi | |
7650 | ||
7651 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7652 | echo "$as_me:$LINENO: result: yes" >&5 |
7653 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7654 | else |
e6cc62c6 VS |
7655 | echo "$as_me:$LINENO: result: no" >&5 |
7656 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7657 | fi |
e6cc62c6 | 7658 | |
10f2d63a | 7659 | |
5005acfe | 7660 | enablestring= |
e6cc62c6 VS |
7661 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7662 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7663 | no_cache=0 |
7664 | # Check whether --enable-sash or --disable-sash was given. | |
7665 | if test "${enable_sash+set}" = set; then | |
7666 | enableval="$enable_sash" | |
e6cc62c6 | 7667 | |
10f2d63a VZ |
7668 | if test "$enableval" = yes; then |
7669 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7670 | else | |
7671 | ac_cv_use_sash='wxUSE_SASH=no' | |
7672 | fi | |
e6cc62c6 | 7673 | |
10f2d63a | 7674 | else |
e6cc62c6 | 7675 | |
10f2d63a VZ |
7676 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7677 | if test "x$LINE" != x ; then | |
7678 | eval "DEFAULT_$LINE" | |
7679 | else | |
7680 | no_cache=1 | |
7681 | fi | |
7682 | ||
7683 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7684 | |
e6cc62c6 | 7685 | fi; |
10f2d63a VZ |
7686 | |
7687 | eval "$ac_cv_use_sash" | |
7688 | if test "$no_cache" != 1; then | |
7689 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7690 | fi | |
7691 | ||
7692 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7693 | echo "$as_me:$LINENO: result: yes" >&5 |
7694 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7695 | else |
e6cc62c6 VS |
7696 | echo "$as_me:$LINENO: result: no" >&5 |
7697 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7698 | fi |
e6cc62c6 | 7699 | |
10f2d63a | 7700 | |
5005acfe | 7701 | enablestring= |
e6cc62c6 VS |
7702 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7703 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7704 | no_cache=0 |
7705 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7706 | if test "${enable_scrollbar+set}" = set; then | |
7707 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7708 | |
10f2d63a VZ |
7709 | if test "$enableval" = yes; then |
7710 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7711 | else | |
7712 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7713 | fi | |
e6cc62c6 | 7714 | |
10f2d63a | 7715 | else |
e6cc62c6 | 7716 | |
10f2d63a VZ |
7717 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7718 | if test "x$LINE" != x ; then | |
7719 | eval "DEFAULT_$LINE" | |
7720 | else | |
7721 | no_cache=1 | |
7722 | fi | |
7723 | ||
7724 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7725 | |
e6cc62c6 | 7726 | fi; |
10f2d63a VZ |
7727 | |
7728 | eval "$ac_cv_use_scrollbar" | |
7729 | if test "$no_cache" != 1; then | |
7730 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7731 | fi | |
7732 | ||
7733 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7734 | echo "$as_me:$LINENO: result: yes" >&5 |
7735 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7736 | else |
e6cc62c6 VS |
7737 | echo "$as_me:$LINENO: result: no" >&5 |
7738 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7739 | fi |
e6cc62c6 | 7740 | |
10f2d63a | 7741 | |
5005acfe | 7742 | enablestring= |
e6cc62c6 VS |
7743 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7744 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7745 | no_cache=0 |
7746 | # Check whether --enable-slider or --disable-slider was given. | |
7747 | if test "${enable_slider+set}" = set; then | |
7748 | enableval="$enable_slider" | |
e6cc62c6 | 7749 | |
10f2d63a VZ |
7750 | if test "$enableval" = yes; then |
7751 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7752 | else | |
7753 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7754 | fi | |
e6cc62c6 | 7755 | |
10f2d63a | 7756 | else |
e6cc62c6 | 7757 | |
10f2d63a VZ |
7758 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7759 | if test "x$LINE" != x ; then | |
7760 | eval "DEFAULT_$LINE" | |
7761 | else | |
7762 | no_cache=1 | |
7763 | fi | |
7764 | ||
7765 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7766 | |
e6cc62c6 | 7767 | fi; |
10f2d63a VZ |
7768 | |
7769 | eval "$ac_cv_use_slider" | |
7770 | if test "$no_cache" != 1; then | |
7771 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7772 | fi | |
7773 | ||
7774 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7775 | echo "$as_me:$LINENO: result: yes" >&5 |
7776 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7777 | else |
e6cc62c6 VS |
7778 | echo "$as_me:$LINENO: result: no" >&5 |
7779 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7780 | fi |
e6cc62c6 | 7781 | |
10f2d63a | 7782 | |
5005acfe | 7783 | enablestring= |
e6cc62c6 VS |
7784 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7785 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7786 | no_cache=0 |
7787 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7788 | if test "${enable_spinbtn+set}" = set; then | |
7789 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7790 | |
10f2d63a VZ |
7791 | if test "$enableval" = yes; then |
7792 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7793 | else | |
7794 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7795 | fi | |
e6cc62c6 | 7796 | |
10f2d63a | 7797 | else |
e6cc62c6 | 7798 | |
10f2d63a VZ |
7799 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7800 | if test "x$LINE" != x ; then | |
7801 | eval "DEFAULT_$LINE" | |
7802 | else | |
7803 | no_cache=1 | |
7804 | fi | |
7805 | ||
7806 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7807 | |
e6cc62c6 | 7808 | fi; |
10f2d63a VZ |
7809 | |
7810 | eval "$ac_cv_use_spinbtn" | |
7811 | if test "$no_cache" != 1; then | |
7812 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7813 | fi | |
7814 | ||
7815 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7816 | echo "$as_me:$LINENO: result: yes" >&5 |
7817 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7818 | else |
e6cc62c6 VS |
7819 | echo "$as_me:$LINENO: result: no" >&5 |
7820 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7821 | fi |
e6cc62c6 | 7822 | |
10f2d63a | 7823 | |
5005acfe | 7824 | enablestring= |
e6cc62c6 VS |
7825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7826 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7827 | no_cache=0 |
7828 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7829 | if test "${enable_spinctrl+set}" = set; then | |
7830 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7831 | |
56cfaa52 RR |
7832 | if test "$enableval" = yes; then |
7833 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7834 | else | |
7835 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7836 | fi | |
e6cc62c6 | 7837 | |
56cfaa52 | 7838 | else |
e6cc62c6 | 7839 | |
56cfaa52 RR |
7840 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7841 | if test "x$LINE" != x ; then | |
7842 | eval "DEFAULT_$LINE" | |
7843 | else | |
7844 | no_cache=1 | |
7845 | fi | |
7846 | ||
7847 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7848 | |
e6cc62c6 | 7849 | fi; |
56cfaa52 RR |
7850 | |
7851 | eval "$ac_cv_use_spinctrl" | |
7852 | if test "$no_cache" != 1; then | |
7853 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7854 | fi | |
7855 | ||
7856 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7857 | echo "$as_me:$LINENO: result: yes" >&5 |
7858 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7859 | else |
e6cc62c6 VS |
7860 | echo "$as_me:$LINENO: result: no" >&5 |
7861 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7862 | fi |
e6cc62c6 | 7863 | |
56cfaa52 | 7864 | |
5005acfe | 7865 | enablestring= |
e6cc62c6 VS |
7866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7867 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7868 | no_cache=0 |
7869 | # Check whether --enable-splitter or --disable-splitter was given. | |
7870 | if test "${enable_splitter+set}" = set; then | |
7871 | enableval="$enable_splitter" | |
e6cc62c6 | 7872 | |
10f2d63a VZ |
7873 | if test "$enableval" = yes; then |
7874 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7875 | else | |
7876 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7877 | fi | |
e6cc62c6 | 7878 | |
10f2d63a | 7879 | else |
e6cc62c6 | 7880 | |
10f2d63a VZ |
7881 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7882 | if test "x$LINE" != x ; then | |
7883 | eval "DEFAULT_$LINE" | |
7884 | else | |
7885 | no_cache=1 | |
7886 | fi | |
7887 | ||
7888 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7889 | |
e6cc62c6 | 7890 | fi; |
10f2d63a VZ |
7891 | |
7892 | eval "$ac_cv_use_splitter" | |
7893 | if test "$no_cache" != 1; then | |
7894 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7895 | fi | |
7896 | ||
7897 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7898 | echo "$as_me:$LINENO: result: yes" >&5 |
7899 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7900 | else |
e6cc62c6 VS |
7901 | echo "$as_me:$LINENO: result: no" >&5 |
7902 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7903 | fi |
e6cc62c6 | 7904 | |
10f2d63a | 7905 | |
5005acfe | 7906 | enablestring= |
e6cc62c6 VS |
7907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7908 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7909 | no_cache=0 |
7910 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7911 | if test "${enable_statbmp+set}" = set; then | |
7912 | enableval="$enable_statbmp" | |
e6cc62c6 | 7913 | |
10f2d63a VZ |
7914 | if test "$enableval" = yes; then |
7915 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7916 | else | |
7917 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7918 | fi | |
e6cc62c6 | 7919 | |
10f2d63a | 7920 | else |
e6cc62c6 | 7921 | |
10f2d63a VZ |
7922 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7923 | if test "x$LINE" != x ; then | |
7924 | eval "DEFAULT_$LINE" | |
7925 | else | |
7926 | no_cache=1 | |
7927 | fi | |
7928 | ||
7929 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7930 | |
e6cc62c6 | 7931 | fi; |
10f2d63a VZ |
7932 | |
7933 | eval "$ac_cv_use_statbmp" | |
7934 | if test "$no_cache" != 1; then | |
7935 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7936 | fi | |
7937 | ||
7938 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7939 | echo "$as_me:$LINENO: result: yes" >&5 |
7940 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7941 | else |
e6cc62c6 VS |
7942 | echo "$as_me:$LINENO: result: no" >&5 |
7943 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7944 | fi |
e6cc62c6 | 7945 | |
10f2d63a | 7946 | |
5005acfe | 7947 | enablestring= |
e6cc62c6 VS |
7948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7949 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7950 | no_cache=0 |
7951 | # Check whether --enable-statbox or --disable-statbox was given. | |
7952 | if test "${enable_statbox+set}" = set; then | |
7953 | enableval="$enable_statbox" | |
e6cc62c6 | 7954 | |
10f2d63a VZ |
7955 | if test "$enableval" = yes; then |
7956 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7957 | else | |
7958 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7959 | fi | |
e6cc62c6 | 7960 | |
10f2d63a | 7961 | else |
e6cc62c6 | 7962 | |
10f2d63a VZ |
7963 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7964 | if test "x$LINE" != x ; then | |
7965 | eval "DEFAULT_$LINE" | |
7966 | else | |
7967 | no_cache=1 | |
7968 | fi | |
7969 | ||
7970 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7971 | |
e6cc62c6 | 7972 | fi; |
10f2d63a VZ |
7973 | |
7974 | eval "$ac_cv_use_statbox" | |
7975 | if test "$no_cache" != 1; then | |
7976 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7977 | fi | |
7978 | ||
7979 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7980 | echo "$as_me:$LINENO: result: yes" >&5 |
7981 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7982 | else |
e6cc62c6 VS |
7983 | echo "$as_me:$LINENO: result: no" >&5 |
7984 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7985 | fi |
e6cc62c6 | 7986 | |
10f2d63a | 7987 | |
5005acfe | 7988 | enablestring= |
e6cc62c6 VS |
7989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7990 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7991 | no_cache=0 |
7992 | # Check whether --enable-statline or --disable-statline was given. | |
7993 | if test "${enable_statline+set}" = set; then | |
7994 | enableval="$enable_statline" | |
e6cc62c6 | 7995 | |
10f2d63a VZ |
7996 | if test "$enableval" = yes; then |
7997 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7998 | else | |
7999 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8000 | fi | |
e6cc62c6 | 8001 | |
10f2d63a | 8002 | else |
e6cc62c6 | 8003 | |
10f2d63a VZ |
8004 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
8005 | if test "x$LINE" != x ; then | |
8006 | eval "DEFAULT_$LINE" | |
8007 | else | |
8008 | no_cache=1 | |
8009 | fi | |
8010 | ||
8011 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 8012 | |
e6cc62c6 | 8013 | fi; |
10f2d63a VZ |
8014 | |
8015 | eval "$ac_cv_use_statline" | |
8016 | if test "$no_cache" != 1; then | |
8017 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8018 | fi | |
8019 | ||
8020 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
8021 | echo "$as_me:$LINENO: result: yes" >&5 |
8022 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8023 | else |
e6cc62c6 VS |
8024 | echo "$as_me:$LINENO: result: no" >&5 |
8025 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8026 | fi |
e6cc62c6 | 8027 | |
10f2d63a | 8028 | |
5005acfe | 8029 | enablestring= |
e6cc62c6 VS |
8030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
8031 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
8032 | no_cache=0 |
8033 | # Check whether --enable-stattext or --disable-stattext was given. | |
8034 | if test "${enable_stattext+set}" = set; then | |
8035 | enableval="$enable_stattext" | |
e6cc62c6 | 8036 | |
1e6feb95 VZ |
8037 | if test "$enableval" = yes; then |
8038 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8039 | else | |
8040 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8041 | fi | |
e6cc62c6 | 8042 | |
1e6feb95 | 8043 | else |
e6cc62c6 | 8044 | |
1e6feb95 VZ |
8045 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
8046 | if test "x$LINE" != x ; then | |
8047 | eval "DEFAULT_$LINE" | |
8048 | else | |
8049 | no_cache=1 | |
8050 | fi | |
8051 | ||
8052 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 8053 | |
e6cc62c6 | 8054 | fi; |
1e6feb95 VZ |
8055 | |
8056 | eval "$ac_cv_use_stattext" | |
8057 | if test "$no_cache" != 1; then | |
8058 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8059 | fi | |
8060 | ||
8061 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
8062 | echo "$as_me:$LINENO: result: yes" >&5 |
8063 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8064 | else |
e6cc62c6 VS |
8065 | echo "$as_me:$LINENO: result: no" >&5 |
8066 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8067 | fi |
e6cc62c6 | 8068 | |
1e6feb95 | 8069 | |
5005acfe | 8070 | enablestring= |
e6cc62c6 VS |
8071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
8072 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8073 | no_cache=0 |
8074 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8075 | if test "${enable_statusbar+set}" = set; then | |
8076 | enableval="$enable_statusbar" | |
e6cc62c6 | 8077 | |
10f2d63a VZ |
8078 | if test "$enableval" = yes; then |
8079 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8080 | else | |
8081 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8082 | fi | |
e6cc62c6 | 8083 | |
10f2d63a | 8084 | else |
e6cc62c6 | 8085 | |
10f2d63a VZ |
8086 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
8087 | if test "x$LINE" != x ; then | |
8088 | eval "DEFAULT_$LINE" | |
8089 | else | |
8090 | no_cache=1 | |
8091 | fi | |
8092 | ||
8093 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 8094 | |
e6cc62c6 | 8095 | fi; |
10f2d63a VZ |
8096 | |
8097 | eval "$ac_cv_use_statusbar" | |
8098 | if test "$no_cache" != 1; then | |
8099 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8100 | fi | |
8101 | ||
8102 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
8103 | echo "$as_me:$LINENO: result: yes" >&5 |
8104 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8105 | else |
e6cc62c6 VS |
8106 | echo "$as_me:$LINENO: result: no" >&5 |
8107 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8108 | fi |
e6cc62c6 | 8109 | |
10f2d63a | 8110 | |
5005acfe | 8111 | enablestring= |
e6cc62c6 VS |
8112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
8113 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
8114 | no_cache=0 |
8115 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8116 | if test "${enable_tabdialog+set}" = set; then | |
8117 | enableval="$enable_tabdialog" | |
e6cc62c6 | 8118 | |
10f2d63a VZ |
8119 | if test "$enableval" = yes; then |
8120 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8121 | else | |
8122 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8123 | fi | |
e6cc62c6 | 8124 | |
10f2d63a | 8125 | else |
e6cc62c6 | 8126 | |
10f2d63a VZ |
8127 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
8128 | if test "x$LINE" != x ; then | |
8129 | eval "DEFAULT_$LINE" | |
8130 | else | |
8131 | no_cache=1 | |
8132 | fi | |
8133 | ||
8134 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 8135 | |
e6cc62c6 | 8136 | fi; |
10f2d63a VZ |
8137 | |
8138 | eval "$ac_cv_use_tabdialog" | |
8139 | if test "$no_cache" != 1; then | |
8140 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8141 | fi | |
8142 | ||
8143 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
8144 | echo "$as_me:$LINENO: result: yes" >&5 |
8145 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8146 | else |
e6cc62c6 VS |
8147 | echo "$as_me:$LINENO: result: no" >&5 |
8148 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8149 | fi |
e6cc62c6 | 8150 | |
10f2d63a | 8151 | |
5005acfe | 8152 | enablestring= |
e6cc62c6 VS |
8153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
8154 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
8155 | no_cache=0 |
8156 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8157 | if test "${enable_textctrl+set}" = set; then | |
8158 | enableval="$enable_textctrl" | |
e6cc62c6 | 8159 | |
1e6feb95 VZ |
8160 | if test "$enableval" = yes; then |
8161 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8162 | else | |
8163 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8164 | fi | |
e6cc62c6 | 8165 | |
1e6feb95 | 8166 | else |
e6cc62c6 | 8167 | |
1e6feb95 VZ |
8168 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8169 | if test "x$LINE" != x ; then | |
8170 | eval "DEFAULT_$LINE" | |
8171 | else | |
8172 | no_cache=1 | |
8173 | fi | |
8174 | ||
8175 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8176 | |
e6cc62c6 | 8177 | fi; |
1e6feb95 VZ |
8178 | |
8179 | eval "$ac_cv_use_textctrl" | |
8180 | if test "$no_cache" != 1; then | |
8181 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8182 | fi | |
8183 | ||
8184 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8185 | echo "$as_me:$LINENO: result: yes" >&5 |
8186 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8187 | else |
e6cc62c6 VS |
8188 | echo "$as_me:$LINENO: result: no" >&5 |
8189 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8190 | fi |
e6cc62c6 | 8191 | |
1e6feb95 | 8192 | |
5005acfe | 8193 | enablestring= |
e6cc62c6 VS |
8194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8195 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8196 | no_cache=0 |
8197 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8198 | if test "${enable_togglebtn+set}" = set; then | |
8199 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8200 | |
1db8dc4a VZ |
8201 | if test "$enableval" = yes; then |
8202 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8203 | else | |
8204 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8205 | fi | |
e6cc62c6 | 8206 | |
1db8dc4a | 8207 | else |
e6cc62c6 | 8208 | |
1db8dc4a VZ |
8209 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8210 | if test "x$LINE" != x ; then | |
8211 | eval "DEFAULT_$LINE" | |
8212 | else | |
8213 | no_cache=1 | |
8214 | fi | |
8215 | ||
8216 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8217 | |
e6cc62c6 | 8218 | fi; |
1db8dc4a VZ |
8219 | |
8220 | eval "$ac_cv_use_togglebtn" | |
8221 | if test "$no_cache" != 1; then | |
8222 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8223 | fi | |
8224 | ||
8225 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8226 | echo "$as_me:$LINENO: result: yes" >&5 |
8227 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8228 | else |
e6cc62c6 VS |
8229 | echo "$as_me:$LINENO: result: no" >&5 |
8230 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8231 | fi |
e6cc62c6 | 8232 | |
1db8dc4a | 8233 | |
5005acfe | 8234 | enablestring= |
e6cc62c6 VS |
8235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8236 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8237 | no_cache=0 |
8238 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8239 | if test "${enable_toolbar+set}" = set; then | |
8240 | enableval="$enable_toolbar" | |
e6cc62c6 | 8241 | |
10f2d63a VZ |
8242 | if test "$enableval" = yes; then |
8243 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8244 | else | |
8245 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8246 | fi | |
e6cc62c6 | 8247 | |
10f2d63a | 8248 | else |
e6cc62c6 | 8249 | |
10f2d63a VZ |
8250 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8251 | if test "x$LINE" != x ; then | |
8252 | eval "DEFAULT_$LINE" | |
8253 | else | |
8254 | no_cache=1 | |
8255 | fi | |
8256 | ||
8257 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8258 | |
e6cc62c6 | 8259 | fi; |
10f2d63a VZ |
8260 | |
8261 | eval "$ac_cv_use_toolbar" | |
8262 | if test "$no_cache" != 1; then | |
8263 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8264 | fi | |
8265 | ||
8266 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8267 | echo "$as_me:$LINENO: result: yes" >&5 |
8268 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8269 | else |
e6cc62c6 VS |
8270 | echo "$as_me:$LINENO: result: no" >&5 |
8271 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8272 | fi |
e6cc62c6 | 8273 | |
10f2d63a | 8274 | |
5005acfe | 8275 | enablestring= |
e6cc62c6 VS |
8276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8277 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8278 | no_cache=0 |
8279 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8280 | if test "${enable_tbarnative+set}" = set; then | |
8281 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8282 | |
360d6699 VZ |
8283 | if test "$enableval" = yes; then |
8284 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8285 | else | |
8286 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8287 | fi | |
e6cc62c6 | 8288 | |
360d6699 | 8289 | else |
e6cc62c6 | 8290 | |
360d6699 VZ |
8291 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8292 | if test "x$LINE" != x ; then | |
8293 | eval "DEFAULT_$LINE" | |
8294 | else | |
8295 | no_cache=1 | |
8296 | fi | |
8297 | ||
8298 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8299 | |
e6cc62c6 | 8300 | fi; |
360d6699 VZ |
8301 | |
8302 | eval "$ac_cv_use_tbarnative" | |
8303 | if test "$no_cache" != 1; then | |
8304 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8305 | fi | |
8306 | ||
8307 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8308 | echo "$as_me:$LINENO: result: yes" >&5 |
8309 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8310 | else |
e6cc62c6 VS |
8311 | echo "$as_me:$LINENO: result: no" >&5 |
8312 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8313 | fi |
e6cc62c6 | 8314 | |
360d6699 | 8315 | |
5005acfe | 8316 | enablestring= |
e6cc62c6 VS |
8317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8318 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8319 | no_cache=0 |
8320 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8321 | if test "${enable_tbarsmpl+set}" = set; then | |
8322 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8323 | |
360d6699 VZ |
8324 | if test "$enableval" = yes; then |
8325 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8326 | else | |
8327 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8328 | fi | |
e6cc62c6 | 8329 | |
360d6699 | 8330 | else |
e6cc62c6 | 8331 | |
360d6699 VZ |
8332 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8333 | if test "x$LINE" != x ; then | |
8334 | eval "DEFAULT_$LINE" | |
8335 | else | |
8336 | no_cache=1 | |
8337 | fi | |
8338 | ||
8339 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8340 | |
e6cc62c6 | 8341 | fi; |
360d6699 VZ |
8342 | |
8343 | eval "$ac_cv_use_tbarsmpl" | |
8344 | if test "$no_cache" != 1; then | |
8345 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8346 | fi | |
8347 | ||
8348 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8349 | echo "$as_me:$LINENO: result: yes" >&5 |
8350 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8351 | else |
e6cc62c6 VS |
8352 | echo "$as_me:$LINENO: result: no" >&5 |
8353 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8354 | fi |
e6cc62c6 | 8355 | |
360d6699 | 8356 | |
5005acfe | 8357 | enablestring= |
e6cc62c6 VS |
8358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8359 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8360 | no_cache=0 |
8361 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8362 | if test "${enable_treectrl+set}" = set; then | |
8363 | enableval="$enable_treectrl" | |
e6cc62c6 | 8364 | |
10f2d63a VZ |
8365 | if test "$enableval" = yes; then |
8366 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8367 | else | |
8368 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8369 | fi | |
e6cc62c6 | 8370 | |
10f2d63a | 8371 | else |
e6cc62c6 | 8372 | |
10f2d63a VZ |
8373 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8374 | if test "x$LINE" != x ; then | |
8375 | eval "DEFAULT_$LINE" | |
8376 | else | |
8377 | no_cache=1 | |
8378 | fi | |
8379 | ||
8380 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8381 | |
e6cc62c6 | 8382 | fi; |
10f2d63a | 8383 | |
1e6feb95 VZ |
8384 | eval "$ac_cv_use_treectrl" |
8385 | if test "$no_cache" != 1; then | |
8386 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8387 | fi | |
8388 | ||
8389 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8390 | echo "$as_me:$LINENO: result: yes" >&5 |
8391 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8392 | else |
e6cc62c6 VS |
8393 | echo "$as_me:$LINENO: result: no" >&5 |
8394 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8395 | fi |
e6cc62c6 | 8396 | |
1e6feb95 | 8397 | |
5005acfe | 8398 | enablestring= |
e6cc62c6 VS |
8399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8400 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8401 | no_cache=0 |
8402 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8403 | if test "${enable_tipwindow+set}" = set; then | |
8404 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8405 | |
9926e4a4 VZ |
8406 | if test "$enableval" = yes; then |
8407 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8408 | else | |
8409 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8410 | fi | |
e6cc62c6 | 8411 | |
9926e4a4 | 8412 | else |
e6cc62c6 | 8413 | |
9926e4a4 VZ |
8414 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8415 | if test "x$LINE" != x ; then | |
8416 | eval "DEFAULT_$LINE" | |
8417 | else | |
8418 | no_cache=1 | |
8419 | fi | |
8420 | ||
8421 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8422 | |
e6cc62c6 | 8423 | fi; |
9926e4a4 VZ |
8424 | |
8425 | eval "$ac_cv_use_tipwindow" | |
8426 | if test "$no_cache" != 1; then | |
8427 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8428 | fi | |
8429 | ||
8430 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8431 | echo "$as_me:$LINENO: result: yes" >&5 |
8432 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8433 | else |
e6cc62c6 VS |
8434 | echo "$as_me:$LINENO: result: no" >&5 |
8435 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8436 | fi |
e6cc62c6 | 8437 | |
9926e4a4 | 8438 | |
5005acfe | 8439 | enablestring= |
e6cc62c6 VS |
8440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8441 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8442 | no_cache=0 |
8443 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8444 | if test "${enable_popupwin+set}" = set; then | |
8445 | enableval="$enable_popupwin" | |
e6cc62c6 | 8446 | |
9f41d601 RR |
8447 | if test "$enableval" = yes; then |
8448 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8449 | else | |
8450 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8451 | fi | |
e6cc62c6 | 8452 | |
9f41d601 | 8453 | else |
e6cc62c6 | 8454 | |
9f41d601 RR |
8455 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8456 | if test "x$LINE" != x ; then | |
8457 | eval "DEFAULT_$LINE" | |
8458 | else | |
8459 | no_cache=1 | |
8460 | fi | |
8461 | ||
8462 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8463 | |
e6cc62c6 | 8464 | fi; |
9f41d601 RR |
8465 | |
8466 | eval "$ac_cv_use_popupwin" | |
8467 | if test "$no_cache" != 1; then | |
8468 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8469 | fi | |
8470 | ||
8471 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8472 | echo "$as_me:$LINENO: result: yes" >&5 |
8473 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8474 | else |
e6cc62c6 VS |
8475 | echo "$as_me:$LINENO: result: no" >&5 |
8476 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8477 | fi |
e6cc62c6 | 8478 | |
52127426 | 8479 | |
8284b0c5 MB |
8480 | |
8481 | ||
5005acfe | 8482 | enablestring= |
e6cc62c6 VS |
8483 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8484 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8485 | no_cache=0 |
8486 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8487 | if test "${enable_commondlg+set}" = set; then | |
8488 | enableval="$enable_commondlg" | |
e6cc62c6 | 8489 | |
1e6feb95 VZ |
8490 | if test "$enableval" = yes; then |
8491 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8492 | else | |
8493 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8494 | fi | |
e6cc62c6 | 8495 | |
1e6feb95 | 8496 | else |
e6cc62c6 | 8497 | |
1e6feb95 VZ |
8498 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8499 | if test "x$LINE" != x ; then | |
8500 | eval "DEFAULT_$LINE" | |
8501 | else | |
8502 | no_cache=1 | |
8503 | fi | |
8504 | ||
8505 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8506 | |
e6cc62c6 | 8507 | fi; |
1e6feb95 VZ |
8508 | |
8509 | eval "$ac_cv_use_commondlg" | |
8510 | if test "$no_cache" != 1; then | |
8511 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8512 | fi | |
8513 | ||
8514 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8515 | echo "$as_me:$LINENO: result: yes" >&5 |
8516 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8517 | else |
e6cc62c6 VS |
8518 | echo "$as_me:$LINENO: result: no" >&5 |
8519 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8520 | fi |
e6cc62c6 | 8521 | |
1e6feb95 | 8522 | |
5005acfe | 8523 | enablestring= |
e6cc62c6 VS |
8524 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8525 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8526 | no_cache=0 |
8527 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8528 | if test "${enable_choicedlg+set}" = set; then | |
8529 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8530 | |
1e6feb95 VZ |
8531 | if test "$enableval" = yes; then |
8532 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8533 | else | |
8534 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8535 | fi | |
e6cc62c6 | 8536 | |
1e6feb95 | 8537 | else |
e6cc62c6 | 8538 | |
1e6feb95 VZ |
8539 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8540 | if test "x$LINE" != x ; then | |
8541 | eval "DEFAULT_$LINE" | |
8542 | else | |
8543 | no_cache=1 | |
8544 | fi | |
8545 | ||
8546 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8547 | |
e6cc62c6 | 8548 | fi; |
1e6feb95 VZ |
8549 | |
8550 | eval "$ac_cv_use_choicedlg" | |
8551 | if test "$no_cache" != 1; then | |
8552 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8553 | fi | |
8554 | ||
8555 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8556 | echo "$as_me:$LINENO: result: yes" >&5 |
8557 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8558 | else |
e6cc62c6 VS |
8559 | echo "$as_me:$LINENO: result: no" >&5 |
8560 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8561 | fi |
e6cc62c6 | 8562 | |
1e6feb95 | 8563 | |
5005acfe | 8564 | enablestring= |
e6cc62c6 VS |
8565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8566 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8567 | no_cache=0 |
8568 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8569 | if test "${enable_coldlg+set}" = set; then | |
8570 | enableval="$enable_coldlg" | |
e6cc62c6 | 8571 | |
1e6feb95 VZ |
8572 | if test "$enableval" = yes; then |
8573 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8574 | else | |
8575 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8576 | fi | |
e6cc62c6 | 8577 | |
1e6feb95 | 8578 | else |
e6cc62c6 | 8579 | |
1e6feb95 VZ |
8580 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8581 | if test "x$LINE" != x ; then | |
8582 | eval "DEFAULT_$LINE" | |
8583 | else | |
8584 | no_cache=1 | |
8585 | fi | |
8586 | ||
8587 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8588 | |
e6cc62c6 | 8589 | fi; |
1e6feb95 VZ |
8590 | |
8591 | eval "$ac_cv_use_coldlg" | |
8592 | if test "$no_cache" != 1; then | |
8593 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8594 | fi | |
8595 | ||
8596 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8597 | echo "$as_me:$LINENO: result: yes" >&5 |
8598 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8599 | else |
e6cc62c6 VS |
8600 | echo "$as_me:$LINENO: result: no" >&5 |
8601 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8602 | fi |
e6cc62c6 | 8603 | |
1e6feb95 | 8604 | |
5005acfe | 8605 | enablestring= |
e6cc62c6 VS |
8606 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8607 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8608 | no_cache=0 |
8609 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8610 | if test "${enable_filedlg+set}" = set; then | |
8611 | enableval="$enable_filedlg" | |
e6cc62c6 | 8612 | |
1e6feb95 VZ |
8613 | if test "$enableval" = yes; then |
8614 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8615 | else | |
8616 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8617 | fi | |
e6cc62c6 | 8618 | |
1e6feb95 | 8619 | else |
e6cc62c6 | 8620 | |
1e6feb95 VZ |
8621 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8622 | if test "x$LINE" != x ; then | |
8623 | eval "DEFAULT_$LINE" | |
8624 | else | |
8625 | no_cache=1 | |
8626 | fi | |
8627 | ||
8628 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8629 | |
e6cc62c6 | 8630 | fi; |
1e6feb95 VZ |
8631 | |
8632 | eval "$ac_cv_use_filedlg" | |
8633 | if test "$no_cache" != 1; then | |
8634 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8635 | fi | |
8636 | ||
8637 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8638 | echo "$as_me:$LINENO: result: yes" >&5 |
8639 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8640 | else |
e6cc62c6 VS |
8641 | echo "$as_me:$LINENO: result: no" >&5 |
8642 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8643 | fi |
e6cc62c6 | 8644 | |
1e6feb95 | 8645 | |
5005acfe | 8646 | enablestring= |
e6cc62c6 VS |
8647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8648 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8649 | no_cache=0 |
69d27ff7 MB |
8650 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8651 | if test "${enable_finddlg+set}" = set; then | |
8652 | enableval="$enable_finddlg" | |
e6cc62c6 | 8653 | |
8db37e06 | 8654 | if test "$enableval" = yes; then |
69d27ff7 | 8655 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8656 | else |
69d27ff7 | 8657 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8658 | fi |
e6cc62c6 | 8659 | |
8db37e06 | 8660 | else |
e6cc62c6 | 8661 | |
8db37e06 VZ |
8662 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8663 | if test "x$LINE" != x ; then | |
8664 | eval "DEFAULT_$LINE" | |
8665 | else | |
8666 | no_cache=1 | |
8667 | fi | |
8668 | ||
69d27ff7 | 8669 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8670 | |
e6cc62c6 | 8671 | fi; |
8db37e06 | 8672 | |
69d27ff7 | 8673 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8674 | if test "$no_cache" != 1; then |
69d27ff7 | 8675 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8676 | fi |
8677 | ||
8678 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8679 | echo "$as_me:$LINENO: result: yes" >&5 |
8680 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8681 | else |
e6cc62c6 VS |
8682 | echo "$as_me:$LINENO: result: no" >&5 |
8683 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8684 | fi |
e6cc62c6 | 8685 | |
8db37e06 | 8686 | |
5005acfe | 8687 | enablestring= |
e6cc62c6 VS |
8688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8689 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8690 | no_cache=0 |
8691 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8692 | if test "${enable_fontdlg+set}" = set; then | |
8693 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8694 | |
1e6feb95 VZ |
8695 | if test "$enableval" = yes; then |
8696 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8697 | else | |
8698 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8699 | fi | |
e6cc62c6 | 8700 | |
1e6feb95 | 8701 | else |
e6cc62c6 | 8702 | |
1e6feb95 VZ |
8703 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8704 | if test "x$LINE" != x ; then | |
8705 | eval "DEFAULT_$LINE" | |
8706 | else | |
8707 | no_cache=1 | |
8708 | fi | |
8709 | ||
8710 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8711 | |
e6cc62c6 | 8712 | fi; |
1e6feb95 VZ |
8713 | |
8714 | eval "$ac_cv_use_fontdlg" | |
8715 | if test "$no_cache" != 1; then | |
8716 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8717 | fi | |
8718 | ||
8719 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8720 | echo "$as_me:$LINENO: result: yes" >&5 |
8721 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8722 | else |
e6cc62c6 VS |
8723 | echo "$as_me:$LINENO: result: no" >&5 |
8724 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8725 | fi |
e6cc62c6 | 8726 | |
1e6feb95 | 8727 | |
5005acfe | 8728 | enablestring= |
e6cc62c6 VS |
8729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8730 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8731 | no_cache=0 |
8732 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8733 | if test "${enable_dirdlg+set}" = set; then | |
8734 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8735 | |
1e6feb95 VZ |
8736 | if test "$enableval" = yes; then |
8737 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8738 | else | |
8739 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8740 | fi | |
e6cc62c6 | 8741 | |
1e6feb95 | 8742 | else |
e6cc62c6 | 8743 | |
1e6feb95 VZ |
8744 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8745 | if test "x$LINE" != x ; then | |
8746 | eval "DEFAULT_$LINE" | |
8747 | else | |
8748 | no_cache=1 | |
8749 | fi | |
8750 | ||
8751 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8752 | |
e6cc62c6 | 8753 | fi; |
1e6feb95 VZ |
8754 | |
8755 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8756 | if test "$no_cache" != 1; then |
1e6feb95 | 8757 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8758 | fi |
8759 | ||
1e6feb95 | 8760 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8761 | echo "$as_me:$LINENO: result: yes" >&5 |
8762 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8763 | else |
e6cc62c6 VS |
8764 | echo "$as_me:$LINENO: result: no" >&5 |
8765 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8766 | fi |
e6cc62c6 | 8767 | |
698dcdb6 | 8768 | |
5005acfe | 8769 | enablestring= |
e6cc62c6 VS |
8770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8771 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8772 | no_cache=0 |
1e6feb95 VZ |
8773 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8774 | if test "${enable_msgdlg+set}" = set; then | |
8775 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8776 | |
10f2d63a | 8777 | if test "$enableval" = yes; then |
1e6feb95 | 8778 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8779 | else |
1e6feb95 | 8780 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8781 | fi |
e6cc62c6 | 8782 | |
10f2d63a | 8783 | else |
e6cc62c6 | 8784 | |
1e6feb95 | 8785 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8786 | if test "x$LINE" != x ; then |
8787 | eval "DEFAULT_$LINE" | |
8788 | else | |
8789 | no_cache=1 | |
8790 | fi | |
8791 | ||
1e6feb95 | 8792 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8793 | |
e6cc62c6 | 8794 | fi; |
10f2d63a | 8795 | |
1e6feb95 | 8796 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8797 | if test "$no_cache" != 1; then |
1e6feb95 | 8798 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8799 | fi |
8800 | ||
1e6feb95 | 8801 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8802 | echo "$as_me:$LINENO: result: yes" >&5 |
8803 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8804 | else |
e6cc62c6 VS |
8805 | echo "$as_me:$LINENO: result: no" >&5 |
8806 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8807 | fi |
e6cc62c6 | 8808 | |
10f2d63a | 8809 | |
5005acfe | 8810 | enablestring= |
e6cc62c6 VS |
8811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8812 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8813 | no_cache=0 |
1e6feb95 VZ |
8814 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8815 | if test "${enable_numberdlg+set}" = set; then | |
8816 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8817 | |
10f2d63a | 8818 | if test "$enableval" = yes; then |
1e6feb95 | 8819 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8820 | else |
1e6feb95 | 8821 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8822 | fi |
e6cc62c6 | 8823 | |
10f2d63a | 8824 | else |
e6cc62c6 | 8825 | |
1e6feb95 | 8826 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8827 | if test "x$LINE" != x ; then |
8828 | eval "DEFAULT_$LINE" | |
8829 | else | |
8830 | no_cache=1 | |
8831 | fi | |
8832 | ||
1e6feb95 | 8833 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8834 | |
e6cc62c6 | 8835 | fi; |
10f2d63a | 8836 | |
1e6feb95 | 8837 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8838 | if test "$no_cache" != 1; then |
1e6feb95 | 8839 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8840 | fi |
8841 | ||
1e6feb95 | 8842 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8843 | echo "$as_me:$LINENO: result: yes" >&5 |
8844 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8845 | else |
e6cc62c6 VS |
8846 | echo "$as_me:$LINENO: result: no" >&5 |
8847 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8848 | fi |
e6cc62c6 | 8849 | |
10f2d63a | 8850 | |
5005acfe | 8851 | enablestring= |
e6cc62c6 VS |
8852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8853 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8854 | no_cache=0 |
8855 | # Check whether --enable-splash or --disable-splash was given. | |
8856 | if test "${enable_splash+set}" = set; then | |
8857 | enableval="$enable_splash" | |
e6cc62c6 | 8858 | |
cbca9943 VZ |
8859 | if test "$enableval" = yes; then |
8860 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8861 | else | |
8862 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8863 | fi | |
e6cc62c6 | 8864 | |
cbca9943 | 8865 | else |
e6cc62c6 | 8866 | |
cbca9943 VZ |
8867 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8868 | if test "x$LINE" != x ; then | |
8869 | eval "DEFAULT_$LINE" | |
8870 | else | |
8871 | no_cache=1 | |
8872 | fi | |
8873 | ||
8874 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8875 | |
e6cc62c6 | 8876 | fi; |
cbca9943 VZ |
8877 | |
8878 | eval "$ac_cv_use_splash" | |
8879 | if test "$no_cache" != 1; then | |
8880 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8881 | fi | |
8882 | ||
8883 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8884 | echo "$as_me:$LINENO: result: yes" >&5 |
8885 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8886 | else |
e6cc62c6 VS |
8887 | echo "$as_me:$LINENO: result: no" >&5 |
8888 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8889 | fi |
e6cc62c6 | 8890 | |
cbca9943 | 8891 | |
5005acfe | 8892 | enablestring= |
e6cc62c6 VS |
8893 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8894 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8895 | no_cache=0 |
8896 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8897 | if test "${enable_textdlg+set}" = set; then | |
8898 | enableval="$enable_textdlg" | |
e6cc62c6 | 8899 | |
10f2d63a VZ |
8900 | if test "$enableval" = yes; then |
8901 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8902 | else | |
8903 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8904 | fi | |
e6cc62c6 | 8905 | |
10f2d63a | 8906 | else |
e6cc62c6 | 8907 | |
10f2d63a VZ |
8908 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8909 | if test "x$LINE" != x ; then | |
8910 | eval "DEFAULT_$LINE" | |
8911 | else | |
8912 | no_cache=1 | |
8913 | fi | |
8914 | ||
8915 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8916 | |
e6cc62c6 | 8917 | fi; |
10f2d63a VZ |
8918 | |
8919 | eval "$ac_cv_use_textdlg" | |
8920 | if test "$no_cache" != 1; then | |
8921 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8922 | fi | |
8923 | ||
8924 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8925 | echo "$as_me:$LINENO: result: yes" >&5 |
8926 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8927 | else |
e6cc62c6 VS |
8928 | echo "$as_me:$LINENO: result: no" >&5 |
8929 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8930 | fi |
e6cc62c6 | 8931 | |
10f2d63a | 8932 | |
5005acfe | 8933 | enablestring= |
e6cc62c6 VS |
8934 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8935 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8936 | no_cache=0 |
8937 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8938 | if test "${enable_tipdlg+set}" = set; then | |
8939 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8940 | |
10f2d63a VZ |
8941 | if test "$enableval" = yes; then |
8942 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8943 | else | |
8944 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8945 | fi | |
e6cc62c6 | 8946 | |
10f2d63a | 8947 | else |
e6cc62c6 | 8948 | |
10f2d63a VZ |
8949 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8950 | if test "x$LINE" != x ; then | |
8951 | eval "DEFAULT_$LINE" | |
8952 | else | |
8953 | no_cache=1 | |
8954 | fi | |
8955 | ||
8956 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8957 | |
e6cc62c6 | 8958 | fi; |
10f2d63a VZ |
8959 | |
8960 | eval "$ac_cv_use_tipdlg" | |
8961 | if test "$no_cache" != 1; then | |
8962 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8963 | fi | |
8964 | ||
8965 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8966 | echo "$as_me:$LINENO: result: yes" >&5 |
8967 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8968 | else |
e6cc62c6 VS |
8969 | echo "$as_me:$LINENO: result: no" >&5 |
8970 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8971 | fi |
e6cc62c6 | 8972 | |
10f2d63a | 8973 | |
5005acfe | 8974 | enablestring= |
e6cc62c6 VS |
8975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8976 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8977 | no_cache=0 |
8978 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8979 | if test "${enable_progressdlg+set}" = set; then | |
8980 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8981 | |
10f2d63a VZ |
8982 | if test "$enableval" = yes; then |
8983 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8984 | else | |
8985 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8986 | fi | |
e6cc62c6 | 8987 | |
10f2d63a | 8988 | else |
e6cc62c6 | 8989 | |
10f2d63a VZ |
8990 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8991 | if test "x$LINE" != x ; then | |
8992 | eval "DEFAULT_$LINE" | |
8993 | else | |
8994 | no_cache=1 | |
8995 | fi | |
8996 | ||
8997 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8998 | |
e6cc62c6 | 8999 | fi; |
10f2d63a VZ |
9000 | |
9001 | eval "$ac_cv_use_progressdlg" | |
9002 | if test "$no_cache" != 1; then | |
9003 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9004 | fi | |
9005 | ||
9006 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
9007 | echo "$as_me:$LINENO: result: yes" >&5 |
9008 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9009 | else |
e6cc62c6 VS |
9010 | echo "$as_me:$LINENO: result: no" >&5 |
9011 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9012 | fi |
e6cc62c6 | 9013 | |
10f2d63a | 9014 | |
5005acfe | 9015 | enablestring= |
e6cc62c6 VS |
9016 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
9017 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
9018 | no_cache=0 |
9019 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9020 | if test "${enable_wizarddlg+set}" = set; then | |
9021 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 9022 | |
b1f5d087 VZ |
9023 | if test "$enableval" = yes; then |
9024 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9025 | else | |
9026 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9027 | fi | |
e6cc62c6 | 9028 | |
b1f5d087 | 9029 | else |
e6cc62c6 | 9030 | |
b1f5d087 VZ |
9031 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
9032 | if test "x$LINE" != x ; then | |
9033 | eval "DEFAULT_$LINE" | |
9034 | else | |
9035 | no_cache=1 | |
9036 | fi | |
9037 | ||
9038 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 9039 | |
e6cc62c6 | 9040 | fi; |
b1f5d087 VZ |
9041 | |
9042 | eval "$ac_cv_use_wizarddlg" | |
9043 | if test "$no_cache" != 1; then | |
9044 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9045 | fi | |
9046 | ||
9047 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
9048 | echo "$as_me:$LINENO: result: yes" >&5 |
9049 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 9050 | else |
e6cc62c6 VS |
9051 | echo "$as_me:$LINENO: result: no" >&5 |
9052 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 9053 | fi |
e6cc62c6 | 9054 | |
8284b0c5 MB |
9055 | |
9056 | ||
52127426 | 9057 | |
5005acfe | 9058 | enablestring= |
e6cc62c6 VS |
9059 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
9060 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
9061 | no_cache=0 |
9062 | # Check whether --enable-menus or --disable-menus was given. | |
9063 | if test "${enable_menus+set}" = set; then | |
9064 | enableval="$enable_menus" | |
e6cc62c6 | 9065 | |
1e6feb95 VZ |
9066 | if test "$enableval" = yes; then |
9067 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9068 | else | |
9069 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9070 | fi | |
e6cc62c6 | 9071 | |
1e6feb95 | 9072 | else |
e6cc62c6 | 9073 | |
1e6feb95 VZ |
9074 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
9075 | if test "x$LINE" != x ; then | |
9076 | eval "DEFAULT_$LINE" | |
9077 | else | |
9078 | no_cache=1 | |
9079 | fi | |
9080 | ||
9081 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 9082 | |
e6cc62c6 | 9083 | fi; |
1e6feb95 VZ |
9084 | |
9085 | eval "$ac_cv_use_menus" | |
9086 | if test "$no_cache" != 1; then | |
9087 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9088 | fi | |
9089 | ||
9090 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
9091 | echo "$as_me:$LINENO: result: yes" >&5 |
9092 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9093 | else |
e6cc62c6 VS |
9094 | echo "$as_me:$LINENO: result: no" >&5 |
9095 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9096 | fi |
e6cc62c6 | 9097 | |
1e6feb95 | 9098 | |
5005acfe | 9099 | enablestring= |
e6cc62c6 VS |
9100 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
9101 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
9102 | no_cache=0 |
9103 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9104 | if test "${enable_miniframe+set}" = set; then | |
9105 | enableval="$enable_miniframe" | |
e6cc62c6 | 9106 | |
10f2d63a VZ |
9107 | if test "$enableval" = yes; then |
9108 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9109 | else | |
9110 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9111 | fi | |
e6cc62c6 | 9112 | |
10f2d63a | 9113 | else |
e6cc62c6 | 9114 | |
10f2d63a VZ |
9115 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
9116 | if test "x$LINE" != x ; then | |
9117 | eval "DEFAULT_$LINE" | |
9118 | else | |
9119 | no_cache=1 | |
9120 | fi | |
9121 | ||
9122 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 9123 | |
e6cc62c6 | 9124 | fi; |
10f2d63a VZ |
9125 | |
9126 | eval "$ac_cv_use_miniframe" | |
9127 | if test "$no_cache" != 1; then | |
9128 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9129 | fi | |
9130 | ||
9131 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
9132 | echo "$as_me:$LINENO: result: yes" >&5 |
9133 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9134 | else |
e6cc62c6 VS |
9135 | echo "$as_me:$LINENO: result: no" >&5 |
9136 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9137 | fi |
e6cc62c6 | 9138 | |
10f2d63a | 9139 | |
5005acfe | 9140 | enablestring= |
e6cc62c6 VS |
9141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
9142 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
9143 | no_cache=0 |
9144 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9145 | if test "${enable_tooltips+set}" = set; then | |
9146 | enableval="$enable_tooltips" | |
e6cc62c6 | 9147 | |
10f2d63a VZ |
9148 | if test "$enableval" = yes; then |
9149 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9150 | else | |
9151 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9152 | fi | |
e6cc62c6 | 9153 | |
10f2d63a | 9154 | else |
e6cc62c6 | 9155 | |
10f2d63a VZ |
9156 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
9157 | if test "x$LINE" != x ; then | |
9158 | eval "DEFAULT_$LINE" | |
9159 | else | |
9160 | no_cache=1 | |
9161 | fi | |
9162 | ||
9163 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 9164 | |
e6cc62c6 | 9165 | fi; |
10f2d63a VZ |
9166 | |
9167 | eval "$ac_cv_use_tooltips" | |
9168 | if test "$no_cache" != 1; then | |
9169 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9170 | fi | |
9171 | ||
9172 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9173 | echo "$as_me:$LINENO: result: yes" >&5 |
9174 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9175 | else |
e6cc62c6 VS |
9176 | echo "$as_me:$LINENO: result: no" >&5 |
9177 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9178 | fi |
e6cc62c6 | 9179 | |
10f2d63a | 9180 | |
5005acfe | 9181 | enablestring= |
e6cc62c6 VS |
9182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9183 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9184 | no_cache=0 |
9185 | # Check whether --enable-splines or --disable-splines was given. | |
9186 | if test "${enable_splines+set}" = set; then | |
9187 | enableval="$enable_splines" | |
e6cc62c6 | 9188 | |
10f2d63a VZ |
9189 | if test "$enableval" = yes; then |
9190 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9191 | else | |
9192 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9193 | fi | |
e6cc62c6 | 9194 | |
10f2d63a | 9195 | else |
e6cc62c6 | 9196 | |
10f2d63a VZ |
9197 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9198 | if test "x$LINE" != x ; then | |
9199 | eval "DEFAULT_$LINE" | |
9200 | else | |
9201 | no_cache=1 | |
9202 | fi | |
9203 | ||
9204 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9205 | |
e6cc62c6 | 9206 | fi; |
10f2d63a VZ |
9207 | |
9208 | eval "$ac_cv_use_splines" | |
9209 | if test "$no_cache" != 1; then | |
9210 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9211 | fi | |
9212 | ||
9213 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9214 | echo "$as_me:$LINENO: result: yes" >&5 |
9215 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9216 | else |
e6cc62c6 VS |
9217 | echo "$as_me:$LINENO: result: no" >&5 |
9218 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9219 | fi |
e6cc62c6 | 9220 | |
10f2d63a | 9221 | |
5005acfe | 9222 | enablestring= |
e6cc62c6 VS |
9223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9224 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9225 | no_cache=0 |
9226 | # Check whether --enable-validators or --disable-validators was given. | |
9227 | if test "${enable_validators+set}" = set; then | |
9228 | enableval="$enable_validators" | |
e6cc62c6 | 9229 | |
10f2d63a VZ |
9230 | if test "$enableval" = yes; then |
9231 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9232 | else | |
9233 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9234 | fi | |
e6cc62c6 | 9235 | |
10f2d63a | 9236 | else |
e6cc62c6 | 9237 | |
10f2d63a VZ |
9238 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9239 | if test "x$LINE" != x ; then | |
9240 | eval "DEFAULT_$LINE" | |
9241 | else | |
9242 | no_cache=1 | |
9243 | fi | |
9244 | ||
9245 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9246 | |
e6cc62c6 | 9247 | fi; |
10f2d63a VZ |
9248 | |
9249 | eval "$ac_cv_use_validators" | |
9250 | if test "$no_cache" != 1; then | |
9251 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9252 | fi | |
9253 | ||
9254 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9255 | echo "$as_me:$LINENO: result: yes" >&5 |
9256 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9257 | else |
e6cc62c6 VS |
9258 | echo "$as_me:$LINENO: result: no" >&5 |
9259 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9260 | fi |
e6cc62c6 | 9261 | |
10f2d63a | 9262 | |
5005acfe | 9263 | enablestring= |
e6cc62c6 VS |
9264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9265 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9266 | no_cache=0 |
9267 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9268 | if test "${enable_busyinfo+set}" = set; then | |
9269 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9270 | |
10f2d63a VZ |
9271 | if test "$enableval" = yes; then |
9272 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9273 | else | |
9274 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9275 | fi | |
e6cc62c6 | 9276 | |
10f2d63a | 9277 | else |
e6cc62c6 | 9278 | |
10f2d63a VZ |
9279 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9280 | if test "x$LINE" != x ; then | |
9281 | eval "DEFAULT_$LINE" | |
9282 | else | |
9283 | no_cache=1 | |
9284 | fi | |
9285 | ||
9286 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9287 | |
e6cc62c6 | 9288 | fi; |
10f2d63a VZ |
9289 | |
9290 | eval "$ac_cv_use_busyinfo" | |
9291 | if test "$no_cache" != 1; then | |
9292 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9293 | fi | |
9294 | ||
9295 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9296 | echo "$as_me:$LINENO: result: yes" >&5 |
9297 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9298 | else |
e6cc62c6 VS |
9299 | echo "$as_me:$LINENO: result: no" >&5 |
9300 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9301 | fi |
e6cc62c6 | 9302 | |
10f2d63a | 9303 | |
5005acfe | 9304 | enablestring= |
e6cc62c6 VS |
9305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9306 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9307 | no_cache=0 |
9308 | # Check whether --enable-joystick or --disable-joystick was given. | |
9309 | if test "${enable_joystick+set}" = set; then | |
9310 | enableval="$enable_joystick" | |
e6cc62c6 | 9311 | |
f6bcfd97 BP |
9312 | if test "$enableval" = yes; then |
9313 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9314 | else | |
9315 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9316 | fi | |
e6cc62c6 | 9317 | |
f6bcfd97 | 9318 | else |
e6cc62c6 | 9319 | |
f6bcfd97 BP |
9320 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9321 | if test "x$LINE" != x ; then | |
9322 | eval "DEFAULT_$LINE" | |
9323 | else | |
9324 | no_cache=1 | |
9325 | fi | |
9326 | ||
9327 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9328 | |
e6cc62c6 | 9329 | fi; |
f6bcfd97 BP |
9330 | |
9331 | eval "$ac_cv_use_joystick" | |
9332 | if test "$no_cache" != 1; then | |
9333 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9334 | fi | |
9335 | ||
9336 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9337 | echo "$as_me:$LINENO: result: yes" >&5 |
9338 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9339 | else |
e6cc62c6 VS |
9340 | echo "$as_me:$LINENO: result: no" >&5 |
9341 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9342 | fi |
e6cc62c6 | 9343 | |
698dcdb6 | 9344 | |
5005acfe | 9345 | enablestring= |
e6cc62c6 VS |
9346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9347 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9348 | no_cache=0 |
9349 | # Check whether --enable-metafile or --disable-metafile was given. | |
9350 | if test "${enable_metafile+set}" = set; then | |
9351 | enableval="$enable_metafile" | |
e6cc62c6 | 9352 | |
1e6feb95 VZ |
9353 | if test "$enableval" = yes; then |
9354 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9355 | else | |
9356 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9357 | fi | |
e6cc62c6 | 9358 | |
1e6feb95 | 9359 | else |
e6cc62c6 | 9360 | |
1e6feb95 VZ |
9361 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9362 | if test "x$LINE" != x ; then | |
9363 | eval "DEFAULT_$LINE" | |
9364 | else | |
9365 | no_cache=1 | |
9366 | fi | |
9367 | ||
9368 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9369 | |
e6cc62c6 | 9370 | fi; |
1e6feb95 VZ |
9371 | |
9372 | eval "$ac_cv_use_metafile" | |
9373 | if test "$no_cache" != 1; then | |
9374 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9375 | fi | |
9376 | ||
9377 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9378 | echo "$as_me:$LINENO: result: yes" >&5 |
9379 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9380 | else |
e6cc62c6 VS |
9381 | echo "$as_me:$LINENO: result: no" >&5 |
9382 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9383 | fi |
e6cc62c6 | 9384 | |
1e6feb95 | 9385 | |
5005acfe | 9386 | enablestring= |
e6cc62c6 VS |
9387 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9388 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9389 | no_cache=0 |
9390 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9391 | if test "${enable_dragimage+set}" = set; then | |
9392 | enableval="$enable_dragimage" | |
e6cc62c6 | 9393 | |
24fd6d87 VZ |
9394 | if test "$enableval" = yes; then |
9395 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9396 | else | |
9397 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9398 | fi | |
e6cc62c6 | 9399 | |
24fd6d87 | 9400 | else |
e6cc62c6 | 9401 | |
24fd6d87 VZ |
9402 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9403 | if test "x$LINE" != x ; then | |
9404 | eval "DEFAULT_$LINE" | |
9405 | else | |
9406 | no_cache=1 | |
9407 | fi | |
9408 | ||
9409 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9410 | |
e6cc62c6 | 9411 | fi; |
24fd6d87 VZ |
9412 | |
9413 | eval "$ac_cv_use_dragimage" | |
9414 | if test "$no_cache" != 1; then | |
9415 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9416 | fi | |
9417 | ||
9418 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9419 | echo "$as_me:$LINENO: result: yes" >&5 |
9420 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9421 | else |
e6cc62c6 VS |
9422 | echo "$as_me:$LINENO: result: no" >&5 |
9423 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9424 | fi |
e6cc62c6 | 9425 | |
52127426 | 9426 | |
7bb2947d | 9427 | enablestring= |
e6cc62c6 VS |
9428 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9429 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9430 | no_cache=0 |
9431 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9432 | if test "${enable_accessibility+set}" = set; then | |
9433 | enableval="$enable_accessibility" | |
e6cc62c6 | 9434 | |
7bb2947d MB |
9435 | if test "$enableval" = yes; then |
9436 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9437 | else | |
9438 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9439 | fi | |
e6cc62c6 | 9440 | |
7bb2947d | 9441 | else |
e6cc62c6 | 9442 | |
7bb2947d MB |
9443 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9444 | if test "x$LINE" != x ; then | |
9445 | eval "DEFAULT_$LINE" | |
9446 | else | |
9447 | no_cache=1 | |
9448 | fi | |
9449 | ||
9450 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9451 | |
e6cc62c6 | 9452 | fi; |
7bb2947d MB |
9453 | |
9454 | eval "$ac_cv_use_accessibility" | |
9455 | if test "$no_cache" != 1; then | |
9456 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9457 | fi | |
9458 | ||
9459 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9460 | echo "$as_me:$LINENO: result: yes" >&5 |
9461 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9462 | else |
e6cc62c6 VS |
9463 | echo "$as_me:$LINENO: result: no" >&5 |
9464 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9465 | fi |
e6cc62c6 | 9466 | |
7bb2947d | 9467 | |
8284b0c5 MB |
9468 | |
9469 | ||
5005acfe | 9470 | enablestring= |
e6cc62c6 VS |
9471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9472 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9473 | no_cache=0 |
9474 | # Check whether --enable-palette or --disable-palette was given. | |
9475 | if test "${enable_palette+set}" = set; then | |
9476 | enableval="$enable_palette" | |
e6cc62c6 | 9477 | |
edae8572 VZ |
9478 | if test "$enableval" = yes; then |
9479 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9480 | else | |
9481 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9482 | fi | |
e6cc62c6 | 9483 | |
edae8572 | 9484 | else |
e6cc62c6 | 9485 | |
edae8572 VZ |
9486 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9487 | if test "x$LINE" != x ; then | |
9488 | eval "DEFAULT_$LINE" | |
9489 | else | |
9490 | no_cache=1 | |
9491 | fi | |
9492 | ||
9493 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9494 | |
e6cc62c6 | 9495 | fi; |
edae8572 VZ |
9496 | |
9497 | eval "$ac_cv_use_palette" | |
9498 | if test "$no_cache" != 1; then | |
9499 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9500 | fi | |
9501 | ||
9502 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9503 | echo "$as_me:$LINENO: result: yes" >&5 |
9504 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9505 | else |
e6cc62c6 VS |
9506 | echo "$as_me:$LINENO: result: no" >&5 |
9507 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9508 | fi |
e6cc62c6 | 9509 | |
edae8572 | 9510 | |
5005acfe | 9511 | enablestring= |
e6cc62c6 VS |
9512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9513 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9514 | no_cache=0 |
9515 | # Check whether --enable-image or --disable-image was given. | |
9516 | if test "${enable_image+set}" = set; then | |
9517 | enableval="$enable_image" | |
e6cc62c6 | 9518 | |
0046ff7c VS |
9519 | if test "$enableval" = yes; then |
9520 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9521 | else | |
9522 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9523 | fi | |
e6cc62c6 | 9524 | |
0046ff7c | 9525 | else |
e6cc62c6 | 9526 | |
0046ff7c VS |
9527 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9528 | if test "x$LINE" != x ; then | |
9529 | eval "DEFAULT_$LINE" | |
9530 | else | |
9531 | no_cache=1 | |
9532 | fi | |
9533 | ||
9534 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9535 | |
e6cc62c6 | 9536 | fi; |
0046ff7c VS |
9537 | |
9538 | eval "$ac_cv_use_image" | |
9539 | if test "$no_cache" != 1; then | |
9540 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9541 | fi | |
9542 | ||
9543 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9544 | echo "$as_me:$LINENO: result: yes" >&5 |
9545 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9546 | else |
e6cc62c6 VS |
9547 | echo "$as_me:$LINENO: result: no" >&5 |
9548 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9549 | fi |
e6cc62c6 | 9550 | |
0046ff7c | 9551 | |
5005acfe | 9552 | enablestring= |
e6cc62c6 VS |
9553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9554 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9555 | no_cache=0 |
9556 | # Check whether --enable-gif or --disable-gif was given. | |
9557 | if test "${enable_gif+set}" = set; then | |
9558 | enableval="$enable_gif" | |
e6cc62c6 | 9559 | |
10f2d63a VZ |
9560 | if test "$enableval" = yes; then |
9561 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9562 | else | |
9563 | ac_cv_use_gif='wxUSE_GIF=no' | |
9564 | fi | |
e6cc62c6 | 9565 | |
10f2d63a | 9566 | else |
e6cc62c6 | 9567 | |
10f2d63a VZ |
9568 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9569 | if test "x$LINE" != x ; then | |
9570 | eval "DEFAULT_$LINE" | |
9571 | else | |
9572 | no_cache=1 | |
9573 | fi | |
9574 | ||
9575 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9576 | |
e6cc62c6 | 9577 | fi; |
10f2d63a VZ |
9578 | |
9579 | eval "$ac_cv_use_gif" | |
9580 | if test "$no_cache" != 1; then | |
9581 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9582 | fi | |
9583 | ||
9584 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9585 | echo "$as_me:$LINENO: result: yes" >&5 |
9586 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9587 | else |
e6cc62c6 VS |
9588 | echo "$as_me:$LINENO: result: no" >&5 |
9589 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9590 | fi |
e6cc62c6 | 9591 | |
10f2d63a | 9592 | |
5005acfe | 9593 | enablestring= |
e6cc62c6 VS |
9594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9595 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9596 | no_cache=0 |
9597 | # Check whether --enable-pcx or --disable-pcx was given. | |
9598 | if test "${enable_pcx+set}" = set; then | |
9599 | enableval="$enable_pcx" | |
e6cc62c6 | 9600 | |
10f2d63a VZ |
9601 | if test "$enableval" = yes; then |
9602 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9603 | else | |
9604 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9605 | fi | |
e6cc62c6 | 9606 | |
10f2d63a | 9607 | else |
e6cc62c6 | 9608 | |
10f2d63a VZ |
9609 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9610 | if test "x$LINE" != x ; then | |
9611 | eval "DEFAULT_$LINE" | |
9612 | else | |
9613 | no_cache=1 | |
9614 | fi | |
9615 | ||
9616 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9617 | |
e6cc62c6 | 9618 | fi; |
10f2d63a VZ |
9619 | |
9620 | eval "$ac_cv_use_pcx" | |
9621 | if test "$no_cache" != 1; then | |
9622 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9623 | fi | |
9624 | ||
9625 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9626 | echo "$as_me:$LINENO: result: yes" >&5 |
9627 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9628 | else |
e6cc62c6 VS |
9629 | echo "$as_me:$LINENO: result: no" >&5 |
9630 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9631 | fi |
e6cc62c6 | 9632 | |
10f2d63a | 9633 | |
5005acfe | 9634 | enablestring= |
e6cc62c6 VS |
9635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9636 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9637 | no_cache=0 |
9638 | # Check whether --enable-iff or --disable-iff was given. | |
9639 | if test "${enable_iff+set}" = set; then | |
9640 | enableval="$enable_iff" | |
e6cc62c6 | 9641 | |
4b6b4dfc RR |
9642 | if test "$enableval" = yes; then |
9643 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9644 | else | |
9645 | ac_cv_use_iff='wxUSE_IFF=no' | |
9646 | fi | |
e6cc62c6 | 9647 | |
4b6b4dfc | 9648 | else |
e6cc62c6 | 9649 | |
4b6b4dfc RR |
9650 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9651 | if test "x$LINE" != x ; then | |
9652 | eval "DEFAULT_$LINE" | |
9653 | else | |
9654 | no_cache=1 | |
9655 | fi | |
9656 | ||
9657 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9658 | |
e6cc62c6 | 9659 | fi; |
4b6b4dfc RR |
9660 | |
9661 | eval "$ac_cv_use_iff" | |
9662 | if test "$no_cache" != 1; then | |
9663 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9664 | fi | |
9665 | ||
9666 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9667 | echo "$as_me:$LINENO: result: yes" >&5 |
9668 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9669 | else |
e6cc62c6 VS |
9670 | echo "$as_me:$LINENO: result: no" >&5 |
9671 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9672 | fi |
e6cc62c6 | 9673 | |
4b6b4dfc | 9674 | |
5005acfe | 9675 | enablestring= |
e6cc62c6 VS |
9676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9677 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9678 | no_cache=0 |
9679 | # Check whether --enable-pnm or --disable-pnm was given. | |
9680 | if test "${enable_pnm+set}" = set; then | |
9681 | enableval="$enable_pnm" | |
e6cc62c6 | 9682 | |
10f2d63a VZ |
9683 | if test "$enableval" = yes; then |
9684 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9685 | else | |
9686 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9687 | fi | |
e6cc62c6 | 9688 | |
10f2d63a | 9689 | else |
e6cc62c6 | 9690 | |
10f2d63a VZ |
9691 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9692 | if test "x$LINE" != x ; then | |
9693 | eval "DEFAULT_$LINE" | |
9694 | else | |
9695 | no_cache=1 | |
9696 | fi | |
9697 | ||
9698 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9699 | |
e6cc62c6 | 9700 | fi; |
10f2d63a VZ |
9701 | |
9702 | eval "$ac_cv_use_pnm" | |
9703 | if test "$no_cache" != 1; then | |
9704 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9705 | fi | |
9706 | ||
9707 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9708 | echo "$as_me:$LINENO: result: yes" >&5 |
9709 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9710 | else |
e6cc62c6 VS |
9711 | echo "$as_me:$LINENO: result: no" >&5 |
9712 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9713 | fi |
e6cc62c6 | 9714 | |
10f2d63a | 9715 | |
5005acfe | 9716 | enablestring= |
e6cc62c6 VS |
9717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9718 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9719 | no_cache=0 |
69d27ff7 MB |
9720 | # Check whether --enable-xpm or --disable-xpm was given. |
9721 | if test "${enable_xpm+set}" = set; then | |
9722 | enableval="$enable_xpm" | |
e6cc62c6 | 9723 | |
0046ff7c | 9724 | if test "$enableval" = yes; then |
69d27ff7 | 9725 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9726 | else |
69d27ff7 | 9727 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9728 | fi |
e6cc62c6 | 9729 | |
0046ff7c | 9730 | else |
e6cc62c6 | 9731 | |
0046ff7c VS |
9732 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9733 | if test "x$LINE" != x ; then | |
9734 | eval "DEFAULT_$LINE" | |
9735 | else | |
9736 | no_cache=1 | |
9737 | fi | |
9738 | ||
69d27ff7 | 9739 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9740 | |
e6cc62c6 | 9741 | fi; |
0046ff7c | 9742 | |
69d27ff7 | 9743 | eval "$ac_cv_use_xpm" |
0046ff7c | 9744 | if test "$no_cache" != 1; then |
69d27ff7 | 9745 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9746 | fi |
9747 | ||
9748 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9749 | echo "$as_me:$LINENO: result: yes" >&5 |
9750 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9751 | else |
e6cc62c6 VS |
9752 | echo "$as_me:$LINENO: result: no" >&5 |
9753 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9754 | fi |
e6cc62c6 | 9755 | |
0046ff7c | 9756 | |
5005acfe | 9757 | enablestring= |
e6cc62c6 VS |
9758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9759 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9760 | no_cache=0 |
c7206e64 VS |
9761 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9762 | if test "${enable_ico_cur+set}" = set; then | |
9763 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9764 | |
658974ae | 9765 | if test "$enableval" = yes; then |
c7206e64 | 9766 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9767 | else |
c7206e64 | 9768 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9769 | fi |
e6cc62c6 | 9770 | |
658974ae | 9771 | else |
e6cc62c6 | 9772 | |
658974ae VS |
9773 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9774 | if test "x$LINE" != x ; then | |
9775 | eval "DEFAULT_$LINE" | |
9776 | else | |
9777 | no_cache=1 | |
9778 | fi | |
9779 | ||
c7206e64 | 9780 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9781 | |
e6cc62c6 | 9782 | fi; |
658974ae | 9783 | |
c7206e64 | 9784 | eval "$ac_cv_use_ico_cur" |
658974ae | 9785 | if test "$no_cache" != 1; then |
c7206e64 | 9786 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9787 | fi |
9788 | ||
9789 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9790 | echo "$as_me:$LINENO: result: yes" >&5 |
9791 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9792 | else |
e6cc62c6 VS |
9793 | echo "$as_me:$LINENO: result: no" >&5 |
9794 | echo "${ECHO_T}no" >&6 | |
658974ae | 9795 | fi |
e6cc62c6 | 9796 | |
658974ae | 9797 | |
b12915c1 VZ |
9798 | fi |
9799 | ||
029b47ad VS |
9800 | |
9801 | ||
9802 | enablestring= | |
9803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9804 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9805 | no_cache=0 | |
9806 | # Check whether --enable-official_build or --disable-official_build was given. | |
9807 | if test "${enable_official_build+set}" = set; then | |
9808 | enableval="$enable_official_build" | |
9809 | ||
9810 | if test "$enableval" = yes; then | |
9811 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9812 | else | |
9813 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9814 | fi | |
9815 | ||
9816 | else | |
9817 | ||
9818 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9819 | if test "x$LINE" != x ; then | |
9820 | eval "DEFAULT_$LINE" | |
9821 | else | |
9822 | no_cache=1 | |
9823 | fi | |
9824 | ||
9825 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9826 | ||
9827 | fi; | |
9828 | ||
9829 | eval "$ac_cv_use_official_build" | |
9830 | if test "$no_cache" != 1; then | |
9831 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9832 | fi | |
9833 | ||
9834 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9835 | echo "$as_me:$LINENO: result: yes" >&5 | |
9836 | echo "${ECHO_T}yes" >&6 | |
9837 | else | |
9838 | echo "$as_me:$LINENO: result: no" >&5 | |
9839 | echo "${ECHO_T}no" >&6 | |
9840 | fi | |
9841 | ||
9842 | # Check whether --enable-vendor or --disable-vendor was given. | |
9843 | if test "${enable_vendor+set}" = set; then | |
9844 | enableval="$enable_vendor" | |
9845 | VENDOR="$enableval" | |
9846 | fi; | |
9847 | if test "x$VENDOR" = "x"; then | |
9848 | VENDOR="custom" | |
9849 | fi | |
9850 | ||
d558c907 VS |
9851 | case "${host}" in |
9852 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9853 | PATH_IFS=';' |
d558c907 VS |
9854 | ;; |
9855 | *) | |
9856 | PATH_IFS=':' | |
d558c907 VS |
9857 | ;; |
9858 | esac | |
9859 | ||
8284b0c5 MB |
9860 | |
9861 | ||
10f2d63a VZ |
9862 | echo "saving argument cache $wx_arg_cache_file" |
9863 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9864 | |
8284b0c5 | 9865 | |
e6cc62c6 VS |
9866 | |
9867 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9868 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9869 | |
9870 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9871 | if test "$wxUSE_WINE" = "yes"; then | |
9872 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9873 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9874 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9875 | wxUSE_SHARED=no |
89e6bf6d | 9876 | fi |
10f2d63a VZ |
9877 | |
9878 | if test "$wxUSE_GUI" = "yes"; then | |
9879 | ||
3a922bb4 | 9880 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9881 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9882 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9883 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9884 | fi |
b12915c1 | 9885 | |
3a922bb4 RL |
9886 | if test "$TOOLKIT_GIVEN" = 1; then |
9887 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9888 | var=wxUSE_$toolkit | |
9889 | eval "value=\$${var}" | |
9890 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9891 | done | |
10f2d63a | 9892 | else |
3a922bb4 RL |
9893 | for toolkit in `echo $ALL_TOOLKITS`; do |
9894 | if test "$has_toolkit_in_cache" != 1; then | |
9895 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9896 | else | |
9897 | var=DEFAULT_wxUSE_$toolkit | |
9898 | fi | |
9899 | eval "wxUSE_$toolkit=\$${var}" | |
9900 | done | |
10f2d63a | 9901 | fi |
10f2d63a | 9902 | |
ac0c4cc3 DE |
9903 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9904 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9905 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9906 | |
d558c907 | 9907 | case "${host}" in |
6fa882bd | 9908 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9909 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9910 | esac |
10f2d63a | 9911 | |
3a922bb4 RL |
9912 | case "$NUM_TOOLKITS" in |
9913 | 1) | |
9914 | ;; | |
9915 | 0) | |
e6cc62c6 VS |
9916 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9917 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9918 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9919 | ;; |
9920 | *) | |
e6cc62c6 VS |
9921 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9922 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9923 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9924 | esac |
10f2d63a | 9925 | |
3a922bb4 RL |
9926 | for toolkit in `echo $ALL_TOOLKITS`; do |
9927 | var=wxUSE_$toolkit | |
9928 | eval "value=\$${var}" | |
9929 | if test "x$value" != x; then | |
9930 | cache_var=CACHE_$toolkit | |
9931 | eval "cache=\$${cache_var}" | |
9932 | if test "$cache" = 1; then | |
9933 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9934 | fi | |
9935 | if test "$value" = 1; then | |
89fe663f | 9936 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9937 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9938 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9939 | fi |
9940 | fi | |
9941 | done | |
10f2d63a | 9942 | else |
9de9b8f0 VZ |
9943 | if test "x$host_alias" != "x"; then |
9944 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9945 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9946 | else |
9947 | echo "$as_me:$LINENO: result: base only" >&5 | |
9948 | echo "${ECHO_T}base only" >&6 | |
9949 | fi | |
10f2d63a VZ |
9950 | fi |
9951 | ||
43d99b6d VS |
9952 | wants_win32=0 |
9953 | doesnt_want_win32=0 | |
17234b26 MB |
9954 | case "${host}" in |
9955 | *-*-cygwin*) | |
9956 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9957 | wants_win32=1 |
9958 | else | |
9959 | doesnt_want_win32=1 | |
17234b26 MB |
9960 | fi |
9961 | ;; | |
9962 | *-*-mingw*) | |
43d99b6d | 9963 | wants_win32=1 |
17234b26 MB |
9964 | ;; |
9965 | esac | |
9966 | ||
89e6bf6d VZ |
9967 | if test "$wxUSE_WINE" = "yes"; then |
9968 | wants_win32=1 | |
9969 | CC=winegcc | |
9970 | CXX=wineg++ | |
9971 | RESCOMP=wrc | |
30f2fa6c | 9972 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9973 | fi |
9974 | ||
43d99b6d | 9975 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9976 | USE_UNIX=0 |
9977 | USE_WIN32=1 | |
e6cc62c6 | 9978 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9979 | #define __WIN32__ 1 |
e6cc62c6 | 9980 | _ACEOF |
17234b26 | 9981 | |
e6cc62c6 | 9982 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9983 | #define __WIN95__ 1 |
e6cc62c6 | 9984 | _ACEOF |
17234b26 | 9985 | |
e6cc62c6 | 9986 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9987 | #define __WINDOWS__ 1 |
e6cc62c6 | 9988 | _ACEOF |
17234b26 | 9989 | |
e6cc62c6 | 9990 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9991 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9992 | _ACEOF |
17234b26 | 9993 | |
e6cc62c6 | 9994 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9995 | #define STRICT 1 |
e6cc62c6 | 9996 | _ACEOF |
17234b26 | 9997 | |
e6cc62c6 | 9998 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9999 | #define WINVER 0x0400 |
e6cc62c6 | 10000 | _ACEOF |
17234b26 | 10001 | |
43d99b6d VS |
10002 | fi |
10003 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
10004 | USE_UNIX=1 |
10005 | USE_WIN32=0 | |
10006 | fi | |
10007 | ||
10008 | if test "$USE_UNIX" = 1 ; then | |
10009 | wxUSE_UNIX=yes | |
e6cc62c6 | 10010 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 10011 | #define __UNIX__ 1 |
e6cc62c6 | 10012 | _ACEOF |
17234b26 MB |
10013 | |
10014 | fi | |
10015 | ||
8284b0c5 | 10016 | |
e6cc62c6 | 10017 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
10018 | # This file is a shell script that caches the results of configure |
10019 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
10020 | # scripts and configure runs, see configure's option --config-cache. |
10021 | # It is not useful on other systems. If it contains results you don't | |
10022 | # want to keep, you may remove or edit it. | |
10f2d63a | 10023 | # |
e6cc62c6 VS |
10024 | # config.status only pays attention to the cache file if you give it |
10025 | # the --recheck option to rerun configure. | |
10f2d63a | 10026 | # |
e6cc62c6 VS |
10027 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
10028 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10029 | # following values. | |
10030 | ||
10031 | _ACEOF | |
10032 | ||
10f2d63a VZ |
10033 | # The following way of writing the cache mishandles newlines in values, |
10034 | # but we know of no workaround that is simple, portable, and efficient. | |
10035 | # So, don't put newlines in cache variables' values. | |
10036 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10037 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
10038 | { |
10039 | (set) 2>&1 | | |
10040 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10041 | *ac_space=\ *) | |
10042 | # `set' does not quote correctly, so add quotes (double-quote | |
10043 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10044 | sed -n \ | |
32ddf007 VS |
10045 | "s/'/'\\\\''/g; |
10046 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
10047 | ;; |
10048 | *) | |
10049 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10050 | sed -n \ | |
32ddf007 | 10051 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
10052 | ;; |
10053 | esac; | |
10054 | } | | |
10055 | sed ' | |
10056 | t clear | |
10057 | : clear | |
10058 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10059 | t end | |
10060 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10061 | : end' >>confcache | |
10062 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 10063 | if test -w $cache_file; then |
e6cc62c6 VS |
10064 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
10065 | cat confcache >$cache_file | |
10f2d63a VZ |
10066 | else |
10067 | echo "not updating unwritable cache $cache_file" | |
10068 | fi | |
10069 | fi | |
10070 | rm -f confcache | |
10071 | ||
e59890c3 | 10072 | if test "$build" != "$host" ; then |
9d353d4a | 10073 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
10074 | CC=$host_alias-gcc |
10075 | CXX=$host_alias-c++ | |
10076 | AR=$host_alias-ar | |
10077 | RANLIB=$host_alias-ranlib | |
10078 | DLLTOOL=$host_alias-dlltool | |
10079 | RESCOMP=$host_alias-windres | |
10080 | LD=$host_alias-ld | |
10081 | NM=$host_alias-nm | |
10082 | STRIP=$host_alias-strip | |
10083 | else | |
e6cc62c6 VS |
10084 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
10085 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10086 | { (exit 1); exit 1; }; } | |
3a922bb4 | 10087 | fi |
10f2d63a VZ |
10088 | fi |
10089 | ||
ec603395 | 10090 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
10091 | ac_ext=c |
10092 | ac_cpp='$CPP $CPPFLAGS' | |
10093 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10094 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10095 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10096 | if test -n "$ac_tool_prefix"; then | |
10097 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10098 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10101 | if test "${ac_cv_prog_CC+set}" = set; then | |
10102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10103 | else | |
10104 | if test -n "$CC"; then | |
10105 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10106 | else | |
10107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10108 | for as_dir in $PATH | |
10109 | do | |
10110 | IFS=$as_save_IFS | |
10111 | test -z "$as_dir" && as_dir=. | |
10112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10114 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10116 | break 2 | |
10117 | fi | |
10118 | done | |
10119 | done | |
10120 | ||
10121 | fi | |
10122 | fi | |
10123 | CC=$ac_cv_prog_CC | |
10124 | if test -n "$CC"; then | |
10125 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10126 | echo "${ECHO_T}$CC" >&6 | |
10127 | else | |
10128 | echo "$as_me:$LINENO: result: no" >&5 | |
10129 | echo "${ECHO_T}no" >&6 | |
10130 | fi | |
10131 | ||
10132 | fi | |
10133 | if test -z "$ac_cv_prog_CC"; then | |
10134 | ac_ct_CC=$CC | |
10135 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 10136 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
10137 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10139 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10141 | else | |
10142 | if test -n "$ac_ct_CC"; then | |
10143 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10144 | else | |
10145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10146 | for as_dir in $PATH | |
10147 | do | |
10148 | IFS=$as_save_IFS | |
10149 | test -z "$as_dir" && as_dir=. | |
10150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10152 | ac_cv_prog_ac_ct_CC="gcc" | |
10153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10154 | break 2 | |
10155 | fi | |
10156 | done | |
10157 | done | |
10158 | ||
10159 | fi | |
10160 | fi | |
10161 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10162 | if test -n "$ac_ct_CC"; then | |
10163 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10164 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10165 | else | |
10166 | echo "$as_me:$LINENO: result: no" >&5 | |
10167 | echo "${ECHO_T}no" >&6 | |
10168 | fi | |
10169 | ||
10170 | CC=$ac_ct_CC | |
10171 | else | |
10172 | CC="$ac_cv_prog_CC" | |
10173 | fi | |
10174 | ||
10175 | if test -z "$CC"; then | |
10176 | if test -n "$ac_tool_prefix"; then | |
10177 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10178 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10181 | if test "${ac_cv_prog_CC+set}" = set; then | |
10182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10183 | else |
10184 | if test -n "$CC"; then | |
10185 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10186 | else |
e6cc62c6 VS |
10187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10188 | for as_dir in $PATH | |
10189 | do | |
10190 | IFS=$as_save_IFS | |
10191 | test -z "$as_dir" && as_dir=. | |
10192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10193 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10194 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10196 | break 2 | |
10197 | fi | |
10198 | done | |
10199 | done | |
10200 | ||
10f2d63a | 10201 | fi |
6232543b | 10202 | fi |
e6cc62c6 | 10203 | CC=$ac_cv_prog_CC |
6232543b | 10204 | if test -n "$CC"; then |
e6cc62c6 VS |
10205 | echo "$as_me:$LINENO: result: $CC" >&5 |
10206 | echo "${ECHO_T}$CC" >&6 | |
10207 | else | |
10208 | echo "$as_me:$LINENO: result: no" >&5 | |
10209 | echo "${ECHO_T}no" >&6 | |
10210 | fi | |
10211 | ||
10212 | fi | |
10213 | if test -z "$ac_cv_prog_CC"; then | |
10214 | ac_ct_CC=$CC | |
10215 | # Extract the first word of "cc", so it can be a program name with args. | |
10216 | set dummy cc; ac_word=$2 | |
10217 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10219 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10221 | else | |
10222 | if test -n "$ac_ct_CC"; then | |
10223 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10224 | else | |
10225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10226 | for as_dir in $PATH | |
10227 | do | |
10228 | IFS=$as_save_IFS | |
10229 | test -z "$as_dir" && as_dir=. | |
10230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10232 | ac_cv_prog_ac_ct_CC="cc" | |
10233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10234 | break 2 | |
10235 | fi | |
10236 | done | |
10237 | done | |
10238 | ||
10239 | fi | |
10240 | fi | |
10241 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10242 | if test -n "$ac_ct_CC"; then | |
10243 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10244 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10245 | else | |
10246 | echo "$as_me:$LINENO: result: no" >&5 | |
10247 | echo "${ECHO_T}no" >&6 | |
10248 | fi | |
10249 | ||
10250 | CC=$ac_ct_CC | |
247f5006 | 10251 | else |
e6cc62c6 | 10252 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10253 | fi |
10254 | ||
e6cc62c6 | 10255 | fi |
5c6fa7d2 RR |
10256 | if test -z "$CC"; then |
10257 | # Extract the first word of "cc", so it can be a program name with args. | |
10258 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10259 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10261 | if test "${ac_cv_prog_CC+set}" = set; then | |
10262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10263 | else |
10264 | if test -n "$CC"; then | |
10265 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10266 | else | |
10267 | ac_prog_rejected=no | |
e6cc62c6 VS |
10268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10269 | for as_dir in $PATH | |
10270 | do | |
10271 | IFS=$as_save_IFS | |
10272 | test -z "$as_dir" && as_dir=. | |
10273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10275 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10276 | ac_prog_rejected=yes | |
10277 | continue | |
10278 | fi | |
10279 | ac_cv_prog_CC="cc" | |
10280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10281 | break 2 | |
10282 | fi | |
10283 | done | |
10284 | done | |
10285 | ||
328a083c RR |
10286 | if test $ac_prog_rejected = yes; then |
10287 | # We found a bogon in the path, so make sure we never use it. | |
10288 | set dummy $ac_cv_prog_CC | |
10289 | shift | |
e6cc62c6 | 10290 | if test $# != 0; then |
328a083c | 10291 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10292 | # However, it has the same basename, so the bogon will be chosen |
10293 | # first if we set CC to just the basename; use the full file name. | |
10294 | shift | |
e6cc62c6 | 10295 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10296 | fi |
1e487827 VS |
10297 | fi |
10298 | fi | |
10299 | fi | |
e6cc62c6 | 10300 | CC=$ac_cv_prog_CC |
1e487827 | 10301 | if test -n "$CC"; then |
e6cc62c6 VS |
10302 | echo "$as_me:$LINENO: result: $CC" >&5 |
10303 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10304 | else |
e6cc62c6 VS |
10305 | echo "$as_me:$LINENO: result: no" >&5 |
10306 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10307 | fi |
1e487827 | 10308 | |
e6cc62c6 VS |
10309 | fi |
10310 | if test -z "$CC"; then | |
10311 | if test -n "$ac_tool_prefix"; then | |
10312 | for ac_prog in cl | |
10313 | do | |
10314 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10315 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10318 | if test "${ac_cv_prog_CC+set}" = set; then | |
10319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10320 | else |
10321 | if test -n "$CC"; then | |
10322 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10323 | else | |
e6cc62c6 VS |
10324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10325 | for as_dir in $PATH | |
10326 | do | |
10327 | IFS=$as_save_IFS | |
10328 | test -z "$as_dir" && as_dir=. | |
10329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10331 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10333 | break 2 | |
10334 | fi | |
10335 | done | |
10336 | done | |
10337 | ||
f09359cf VS |
10338 | fi |
10339 | fi | |
e6cc62c6 | 10340 | CC=$ac_cv_prog_CC |
f09359cf | 10341 | if test -n "$CC"; then |
e6cc62c6 VS |
10342 | echo "$as_me:$LINENO: result: $CC" >&5 |
10343 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10344 | else |
e6cc62c6 VS |
10345 | echo "$as_me:$LINENO: result: no" >&5 |
10346 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10347 | fi |
1e487827 | 10348 | |
e6cc62c6 VS |
10349 | test -n "$CC" && break |
10350 | done | |
10351 | fi | |
10352 | if test -z "$CC"; then | |
10353 | ac_ct_CC=$CC | |
10354 | for ac_prog in cl | |
10355 | do | |
10356 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10357 | set dummy $ac_prog; ac_word=$2 | |
10358 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10360 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10362 | else | |
10363 | if test -n "$ac_ct_CC"; then | |
10364 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10365 | else | |
10366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10367 | for as_dir in $PATH | |
10368 | do | |
10369 | IFS=$as_save_IFS | |
10370 | test -z "$as_dir" && as_dir=. | |
10371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10373 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10375 | break 2 | |
10376 | fi | |
10377 | done | |
10378 | done | |
f09359cf | 10379 | |
e6cc62c6 VS |
10380 | fi |
10381 | fi | |
10382 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10383 | if test -n "$ac_ct_CC"; then | |
10384 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10385 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10386 | else | |
10387 | echo "$as_me:$LINENO: result: no" >&5 | |
10388 | echo "${ECHO_T}no" >&6 | |
10389 | fi | |
f09359cf | 10390 | |
e6cc62c6 VS |
10391 | test -n "$ac_ct_CC" && break |
10392 | done | |
247f5006 | 10393 | |
e6cc62c6 VS |
10394 | CC=$ac_ct_CC |
10395 | fi | |
10396 | ||
10397 | fi | |
10398 | ||
10399 | ||
10400 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10401 | See \`config.log' for more details." >&5 | |
10402 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10403 | See \`config.log' for more details." >&2;} | |
10404 | { (exit 1); exit 1; }; } | |
10405 | ||
10406 | # Provide some information about the compiler. | |
10407 | echo "$as_me:$LINENO:" \ | |
10408 | "checking for C compiler version" >&5 | |
10409 | ac_compiler=`set X $ac_compile; echo $2` | |
10410 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10411 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10412 | ac_status=$? | |
10413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10414 | (exit $ac_status); } | |
10415 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10416 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10417 | ac_status=$? | |
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10419 | (exit $ac_status); } | |
10420 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10421 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10422 | ac_status=$? | |
10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10424 | (exit $ac_status); } | |
10425 | ||
10426 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10427 | /* confdefs.h. */ |
10428 | _ACEOF | |
10429 | cat confdefs.h >>conftest.$ac_ext | |
10430 | cat >>conftest.$ac_ext <<_ACEOF | |
10431 | /* end confdefs.h. */ | |
10432 | ||
10433 | int | |
10434 | main () | |
10435 | { | |
247f5006 | 10436 | |
e6cc62c6 VS |
10437 | ; |
10438 | return 0; | |
10439 | } | |
10440 | _ACEOF | |
10441 | ac_clean_files_save=$ac_clean_files | |
10442 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10443 | # Try to create an executable without -o first, disregard a.out. | |
10444 | # It will help us diagnose broken compilers, and finding out an intuition | |
10445 | # of exeext. | |
32ddf007 VS |
10446 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10447 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
e6cc62c6 VS |
10448 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10449 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10450 | (eval $ac_link_default) 2>&5 | |
10451 | ac_status=$? | |
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10453 | (exit $ac_status); }; then | |
10454 | # Find the output, starting from the most likely. This scheme is | |
10455 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10456 | # resort. | |
10457 | ||
10458 | # Be careful to initialize this variable, since it used to be cached. | |
10459 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10460 | ac_cv_exeext= | |
10461 | # b.out is created by i960 compilers. | |
10462 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10463 | do | |
10464 | test -f "$ac_file" || continue | |
10465 | case $ac_file in | |
10466 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
32ddf007 | 10467 | ;; |
e6cc62c6 | 10468 | conftest.$ac_ext ) |
32ddf007 VS |
10469 | # This is the source file. |
10470 | ;; | |
e6cc62c6 | 10471 | [ab].out ) |
32ddf007 VS |
10472 | # We found the default executable, but exeext='' is most |
10473 | # certainly right. | |
10474 | break;; | |
e6cc62c6 | 10475 | *.* ) |
32ddf007 VS |
10476 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10477 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10478 | # but it would be cool to find out if it's true. Does anybody | |
10479 | # maintain Libtool? --akim. | |
10480 | export ac_cv_exeext | |
10481 | break;; | |
e6cc62c6 | 10482 | * ) |
32ddf007 | 10483 | break;; |
e6cc62c6 VS |
10484 | esac |
10485 | done | |
10486 | else | |
10487 | echo "$as_me: failed program was:" >&5 | |
10488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10489 | ||
10490 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10491 | See \`config.log' for more details." >&5 | |
10492 | echo "$as_me: error: C compiler cannot create executables | |
10493 | See \`config.log' for more details." >&2;} | |
10494 | { (exit 77); exit 77; }; } | |
10495 | fi | |
10496 | ||
10497 | ac_exeext=$ac_cv_exeext | |
10498 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10499 | echo "${ECHO_T}$ac_file" >&6 | |
10500 | ||
10501 | # Check the compiler produces executables we can run. If not, either | |
10502 | # the compiler is broken, or we cross compile. | |
10503 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10504 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10505 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10506 | # If not cross compiling, check that we can run a simple program. | |
10507 | if test "$cross_compiling" != yes; then | |
10508 | if { ac_try='./$ac_file' | |
10509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10510 | (eval $ac_try) 2>&5 | |
10511 | ac_status=$? | |
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10513 | (exit $ac_status); }; }; then | |
10514 | cross_compiling=no | |
698dcdb6 | 10515 | else |
e6cc62c6 VS |
10516 | if test "$cross_compiling" = maybe; then |
10517 | cross_compiling=yes | |
10518 | else | |
10519 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10520 | If you meant to cross compile, use \`--host'. | |
10521 | See \`config.log' for more details." >&5 | |
10522 | echo "$as_me: error: cannot run C compiled programs. | |
10523 | If you meant to cross compile, use \`--host'. | |
10524 | See \`config.log' for more details." >&2;} | |
10525 | { (exit 1); exit 1; }; } | |
10526 | fi | |
698dcdb6 | 10527 | fi |
52127426 | 10528 | fi |
e6cc62c6 VS |
10529 | echo "$as_me:$LINENO: result: yes" >&5 |
10530 | echo "${ECHO_T}yes" >&6 | |
10531 | ||
10532 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10533 | ac_clean_files=$ac_clean_files_save | |
10534 | # Check the compiler produces executables we can run. If not, either | |
10535 | # the compiler is broken, or we cross compile. | |
10536 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10537 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10538 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10539 | echo "${ECHO_T}$cross_compiling" >&6 | |
10540 | ||
10541 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10542 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10544 | (eval $ac_link) 2>&5 | |
10545 | ac_status=$? | |
10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10547 | (exit $ac_status); }; then | |
10548 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10549 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10550 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10551 | # `rm'. | |
10552 | for ac_file in conftest.exe conftest conftest.*; do | |
10553 | test -f "$ac_file" || continue | |
10554 | case $ac_file in | |
10555 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10556 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
32ddf007 VS |
10557 | export ac_cv_exeext |
10558 | break;; | |
e6cc62c6 VS |
10559 | * ) break;; |
10560 | esac | |
10561 | done | |
5c6fa7d2 | 10562 | else |
e6cc62c6 VS |
10563 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10564 | See \`config.log' for more details." >&5 | |
10565 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10566 | See \`config.log' for more details." >&2;} | |
10567 | { (exit 1); exit 1; }; } | |
10568 | fi | |
10569 | ||
10570 | rm -f conftest$ac_cv_exeext | |
10571 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10572 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10573 | ||
10574 | rm -f conftest.$ac_ext | |
10575 | EXEEXT=$ac_cv_exeext | |
10576 | ac_exeext=$EXEEXT | |
10577 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10578 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10579 | if test "${ac_cv_objext+set}" = set; then | |
10580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10581 | else | |
10582 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10583 | /* confdefs.h. */ |
10584 | _ACEOF | |
10585 | cat confdefs.h >>conftest.$ac_ext | |
10586 | cat >>conftest.$ac_ext <<_ACEOF | |
10587 | /* end confdefs.h. */ | |
10588 | ||
10589 | int | |
10590 | main () | |
10591 | { | |
f09359cf | 10592 | |
e6cc62c6 VS |
10593 | ; |
10594 | return 0; | |
10595 | } | |
10596 | _ACEOF | |
10597 | rm -f conftest.o conftest.obj | |
10598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10599 | (eval $ac_compile) 2>&5 | |
10600 | ac_status=$? | |
10601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10602 | (exit $ac_status); }; then | |
10603 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10604 | case $ac_file in | |
10605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10606 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10607 | break;; | |
10608 | esac | |
10609 | done | |
a0b9e27f | 10610 | else |
e6cc62c6 VS |
10611 | echo "$as_me: failed program was:" >&5 |
10612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10613 | ||
10614 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10615 | See \`config.log' for more details." >&5 | |
10616 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10617 | See \`config.log' for more details." >&2;} | |
10618 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10619 | fi |
247f5006 | 10620 | |
e6cc62c6 VS |
10621 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10622 | fi | |
10623 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10624 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10625 | OBJEXT=$ac_cv_objext | |
10626 | ac_objext=$OBJEXT | |
10627 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10628 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10629 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10631 | else |
e6cc62c6 | 10632 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10633 | /* confdefs.h. */ |
10634 | _ACEOF | |
10635 | cat confdefs.h >>conftest.$ac_ext | |
10636 | cat >>conftest.$ac_ext <<_ACEOF | |
10637 | /* end confdefs.h. */ | |
10638 | ||
10639 | int | |
10640 | main () | |
10641 | { | |
10642 | #ifndef __GNUC__ | |
10643 | choke me | |
10644 | #endif | |
10645 | ||
10646 | ; | |
10647 | return 0; | |
10648 | } | |
10649 | _ACEOF | |
10650 | rm -f conftest.$ac_objext | |
10651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10652 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10653 | ac_status=$? |
32ddf007 VS |
10654 | grep -v '^ *+' conftest.er1 >conftest.err |
10655 | rm -f conftest.er1 | |
10656 | cat conftest.err >&5 | |
e6cc62c6 VS |
10657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10658 | (exit $ac_status); } && | |
32ddf007 VS |
10659 | { ac_try='test -z "$ac_c_werror_flag" |
10660 | || test ! -s conftest.err' | |
10661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10662 | (eval $ac_try) 2>&5 | |
10663 | ac_status=$? | |
10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10665 | (exit $ac_status); }; } && | |
10666 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10668 | (eval $ac_try) 2>&5 | |
10669 | ac_status=$? | |
10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10671 | (exit $ac_status); }; }; then | |
10672 | ac_compiler_gnu=yes | |
10673 | else | |
10674 | echo "$as_me: failed program was:" >&5 | |
10675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10676 | ||
10677 | ac_compiler_gnu=no | |
10678 | fi | |
32ddf007 | 10679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10680 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10681 | ||
10682 | fi | |
10683 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10684 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10685 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10686 | ac_test_CFLAGS=${CFLAGS+set} | |
10687 | ac_save_CFLAGS=$CFLAGS | |
10688 | CFLAGS="-g" | |
10689 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10690 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10691 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10693 | else | |
10694 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10695 | /* confdefs.h. */ |
10696 | _ACEOF | |
10697 | cat confdefs.h >>conftest.$ac_ext | |
10698 | cat >>conftest.$ac_ext <<_ACEOF | |
10699 | /* end confdefs.h. */ | |
10700 | ||
10701 | int | |
10702 | main () | |
10703 | { | |
10704 | ||
10705 | ; | |
10706 | return 0; | |
10707 | } | |
10708 | _ACEOF | |
10709 | rm -f conftest.$ac_objext | |
10710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10711 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10712 | ac_status=$? |
32ddf007 VS |
10713 | grep -v '^ *+' conftest.er1 >conftest.err |
10714 | rm -f conftest.er1 | |
10715 | cat conftest.err >&5 | |
e6cc62c6 VS |
10716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10717 | (exit $ac_status); } && | |
32ddf007 VS |
10718 | { ac_try='test -z "$ac_c_werror_flag" |
10719 | || test ! -s conftest.err' | |
10720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10721 | (eval $ac_try) 2>&5 | |
10722 | ac_status=$? | |
10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10724 | (exit $ac_status); }; } && | |
10725 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10727 | (eval $ac_try) 2>&5 | |
10728 | ac_status=$? | |
10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10730 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10731 | ac_cv_prog_cc_g=yes |
10732 | else | |
e6cc62c6 VS |
10733 | echo "$as_me: failed program was:" >&5 |
10734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10735 | |
e6cc62c6 | 10736 | ac_cv_prog_cc_g=no |
10f2d63a | 10737 | fi |
32ddf007 | 10738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10739 | fi |
10740 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10741 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10742 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10743 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10744 | elif test $ac_cv_prog_cc_g = yes; then |
10745 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10746 | CFLAGS="-g -O2" |
10747 | else | |
f09359cf | 10748 | CFLAGS="-g" |
10f2d63a | 10749 | fi |
5c0a20c3 | 10750 | else |
f09359cf VS |
10751 | if test "$GCC" = yes; then |
10752 | CFLAGS="-O2" | |
10753 | else | |
10754 | CFLAGS= | |
10755 | fi | |
10f2d63a | 10756 | fi |
e6cc62c6 VS |
10757 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10758 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10759 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10761 | else | |
10762 | ac_cv_prog_cc_stdc=no | |
10763 | ac_save_CC=$CC | |
10764 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10765 | /* confdefs.h. */ |
10766 | _ACEOF | |
10767 | cat confdefs.h >>conftest.$ac_ext | |
10768 | cat >>conftest.$ac_ext <<_ACEOF | |
10769 | /* end confdefs.h. */ | |
10770 | #include <stdarg.h> | |
10771 | #include <stdio.h> | |
10772 | #include <sys/types.h> | |
10773 | #include <sys/stat.h> | |
10774 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10775 | struct buf { int x; }; | |
10776 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10777 | static char *e (p, i) | |
10778 | char **p; | |
10779 | int i; | |
10780 | { | |
10781 | return p[i]; | |
10782 | } | |
10783 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10784 | { | |
10785 | char *s; | |
10786 | va_list v; | |
10787 | va_start (v,p); | |
10788 | s = g (p, va_arg (v,int)); | |
10789 | va_end (v); | |
10790 | return s; | |
10791 | } | |
32ddf007 VS |
10792 | |
10793 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10794 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10795 | These don't provoke an error unfortunately, instead are silently treated | |
10796 | as 'x'. The following induces an error, until -std1 is added to get | |
10797 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10798 | array size at least. It's necessary to write '\x00'==0 to get something | |
10799 | that's true only with -std1. */ | |
10800 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10801 | ||
e6cc62c6 VS |
10802 | int test (int i, double x); |
10803 | struct s1 {int (*f) (int a);}; | |
10804 | struct s2 {int (*f) (double a);}; | |
10805 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10806 | int argc; | |
10807 | char **argv; | |
10808 | int | |
10809 | main () | |
10810 | { | |
10811 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10812 | ; | |
10813 | return 0; | |
10814 | } | |
10815 | _ACEOF | |
10816 | # Don't try gcc -ansi; that turns off useful extensions and | |
10817 | # breaks some systems' header files. | |
10818 | # AIX -qlanglvl=ansi | |
10819 | # Ultrix and OSF/1 -std1 | |
10820 | # HP-UX 10.20 and later -Ae | |
10821 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10822 | # SVR4 -Xc -D__EXTENSIONS__ | |
10823 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10824 | do | |
10825 | CC="$ac_save_CC $ac_arg" | |
10826 | rm -f conftest.$ac_objext | |
10827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10828 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10829 | ac_status=$? |
32ddf007 VS |
10830 | grep -v '^ *+' conftest.er1 >conftest.err |
10831 | rm -f conftest.er1 | |
10832 | cat conftest.err >&5 | |
e6cc62c6 VS |
10833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10834 | (exit $ac_status); } && | |
32ddf007 VS |
10835 | { ac_try='test -z "$ac_c_werror_flag" |
10836 | || test ! -s conftest.err' | |
10837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10838 | (eval $ac_try) 2>&5 | |
10839 | ac_status=$? | |
10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10841 | (exit $ac_status); }; } && | |
10842 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10844 | (eval $ac_try) 2>&5 | |
10845 | ac_status=$? | |
10846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10847 | (exit $ac_status); }; }; then | |
10848 | ac_cv_prog_cc_stdc=$ac_arg | |
10849 | break | |
10850 | else | |
10851 | echo "$as_me: failed program was:" >&5 | |
10852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10853 | ||
10854 | fi | |
32ddf007 | 10855 | rm -f conftest.err conftest.$ac_objext |
e6cc62c6 VS |
10856 | done |
10857 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10858 | CC=$ac_save_CC | |
10859 | ||
10860 | fi | |
10861 | ||
10862 | case "x$ac_cv_prog_cc_stdc" in | |
10863 | x|xno) | |
10864 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10865 | echo "${ECHO_T}none needed" >&6 ;; | |
10866 | *) | |
10867 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10868 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10869 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10870 | esac | |
10871 | ||
10872 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10873 | # in C++ we need to declare it. In case someone uses the same compiler | |
10874 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10875 | # the declaration of exit, since it's the most demanding environment. | |
10876 | cat >conftest.$ac_ext <<_ACEOF | |
10877 | #ifndef __cplusplus | |
10878 | choke me | |
10879 | #endif | |
10880 | _ACEOF | |
10881 | rm -f conftest.$ac_objext | |
10882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10883 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10884 | ac_status=$? |
32ddf007 VS |
10885 | grep -v '^ *+' conftest.er1 >conftest.err |
10886 | rm -f conftest.er1 | |
10887 | cat conftest.err >&5 | |
e6cc62c6 VS |
10888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10889 | (exit $ac_status); } && | |
32ddf007 VS |
10890 | { ac_try='test -z "$ac_c_werror_flag" |
10891 | || test ! -s conftest.err' | |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; } && | |
10897 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10899 | (eval $ac_try) 2>&5 | |
10900 | ac_status=$? | |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); }; }; then | |
10903 | for ac_declaration in \ | |
32ddf007 | 10904 | '' \ |
e6cc62c6 VS |
10905 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10906 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10907 | 'extern "C" void exit (int) throw ();' \ | |
10908 | 'extern "C" void exit (int);' \ | |
10909 | 'void exit (int);' | |
10910 | do | |
10911 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
10912 | /* confdefs.h. */ |
10913 | _ACEOF | |
10914 | cat confdefs.h >>conftest.$ac_ext | |
10915 | cat >>conftest.$ac_ext <<_ACEOF | |
10916 | /* end confdefs.h. */ | |
0f87e84c | 10917 | $ac_declaration |
32ddf007 | 10918 | #include <stdlib.h> |
e6cc62c6 VS |
10919 | int |
10920 | main () | |
10921 | { | |
10922 | exit (42); | |
10923 | ; | |
10924 | return 0; | |
10925 | } | |
10926 | _ACEOF | |
10927 | rm -f conftest.$ac_objext | |
10928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10929 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10930 | ac_status=$? |
32ddf007 VS |
10931 | grep -v '^ *+' conftest.er1 >conftest.err |
10932 | rm -f conftest.er1 | |
10933 | cat conftest.err >&5 | |
e6cc62c6 VS |
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10935 | (exit $ac_status); } && | |
32ddf007 VS |
10936 | { ac_try='test -z "$ac_c_werror_flag" |
10937 | || test ! -s conftest.err' | |
10938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10939 | (eval $ac_try) 2>&5 | |
10940 | ac_status=$? | |
10941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10942 | (exit $ac_status); }; } && | |
10943 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10945 | (eval $ac_try) 2>&5 | |
10946 | ac_status=$? | |
10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10948 | (exit $ac_status); }; }; then | |
10949 | : | |
10950 | else | |
10951 | echo "$as_me: failed program was:" >&5 | |
10952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10953 | ||
10954 | continue | |
10955 | fi | |
32ddf007 | 10956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10957 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
10958 | /* confdefs.h. */ |
10959 | _ACEOF | |
10960 | cat confdefs.h >>conftest.$ac_ext | |
10961 | cat >>conftest.$ac_ext <<_ACEOF | |
10962 | /* end confdefs.h. */ | |
10963 | $ac_declaration | |
10964 | int | |
10965 | main () | |
10966 | { | |
10967 | exit (42); | |
10968 | ; | |
10969 | return 0; | |
10970 | } | |
10971 | _ACEOF | |
10972 | rm -f conftest.$ac_objext | |
10973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 10974 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 10975 | ac_status=$? |
32ddf007 VS |
10976 | grep -v '^ *+' conftest.er1 >conftest.err |
10977 | rm -f conftest.er1 | |
10978 | cat conftest.err >&5 | |
e6cc62c6 VS |
10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10980 | (exit $ac_status); } && | |
32ddf007 VS |
10981 | { ac_try='test -z "$ac_c_werror_flag" |
10982 | || test ! -s conftest.err' | |
10983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10984 | (eval $ac_try) 2>&5 | |
10985 | ac_status=$? | |
10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10987 | (exit $ac_status); }; } && | |
10988 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
10989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10990 | (eval $ac_try) 2>&5 | |
10991 | ac_status=$? | |
10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10993 | (exit $ac_status); }; }; then | |
10994 | break | |
10995 | else | |
10996 | echo "$as_me: failed program was:" >&5 | |
10997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10998 | ||
10999 | fi | |
32ddf007 | 11000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11001 | done |
11002 | rm -f conftest* | |
11003 | if test -n "$ac_declaration"; then | |
11004 | echo '#ifdef __cplusplus' >>confdefs.h | |
11005 | echo $ac_declaration >>confdefs.h | |
11006 | echo '#endif' >>confdefs.h | |
11007 | fi | |
11008 | ||
11009 | else | |
11010 | echo "$as_me: failed program was:" >&5 | |
11011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11012 | ||
11013 | fi | |
32ddf007 | 11014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11015 | ac_ext=c |
11016 | ac_cpp='$CPP $CPPFLAGS' | |
11017 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
11020 | |
11021 | ||
e6cc62c6 VS |
11022 | |
11023 | ac_ext=c | |
11024 | ac_cpp='$CPP $CPPFLAGS' | |
11025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11028 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11029 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
11030 | # On Suns, sometimes $CPP names a directory. |
11031 | if test -n "$CPP" && test -d "$CPP"; then | |
11032 | CPP= | |
11033 | fi | |
11034 | if test -z "$CPP"; then | |
e6cc62c6 VS |
11035 | if test "${ac_cv_prog_CPP+set}" = set; then |
11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11037 | else | |
11038 | # Double quotes because CPP needs to be expanded | |
11039 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11040 | do | |
11041 | ac_preproc_ok=false | |
11042 | for ac_c_preproc_warn_flag in '' yes | |
11043 | do | |
11044 | # Use a header file that comes with gcc, so configuring glibc | |
11045 | # with a fresh cross-compiler works. | |
11046 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11047 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 11048 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
11049 | # not just through cpp. "Syntax error" is here to catch this case. |
11050 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11051 | /* confdefs.h. */ |
11052 | _ACEOF | |
11053 | cat confdefs.h >>conftest.$ac_ext | |
11054 | cat >>conftest.$ac_ext <<_ACEOF | |
11055 | /* end confdefs.h. */ | |
11056 | #ifdef __STDC__ | |
11057 | # include <limits.h> | |
11058 | #else | |
11059 | # include <assert.h> | |
11060 | #endif | |
32ddf007 | 11061 | Syntax error |
e6cc62c6 VS |
11062 | _ACEOF |
11063 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11064 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11065 | ac_status=$? | |
11066 | grep -v '^ *+' conftest.er1 >conftest.err | |
11067 | rm -f conftest.er1 | |
11068 | cat conftest.err >&5 | |
11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11070 | (exit $ac_status); } >/dev/null; then | |
11071 | if test -s conftest.err; then | |
11072 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11073 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11074 | else |
11075 | ac_cpp_err= | |
11076 | fi | |
10f2d63a | 11077 | else |
e6cc62c6 VS |
11078 | ac_cpp_err=yes |
11079 | fi | |
11080 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 11081 | : |
247f5006 | 11082 | else |
e6cc62c6 VS |
11083 | echo "$as_me: failed program was:" >&5 |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11085 | ||
11086 | # Broken: fails on valid input. | |
11087 | continue | |
11088 | fi | |
11089 | rm -f conftest.err conftest.$ac_ext | |
11090 | ||
11091 | # OK, works on sane cases. Now check whether non-existent headers | |
11092 | # can be detected and how. | |
11093 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11094 | /* confdefs.h. */ |
11095 | _ACEOF | |
11096 | cat confdefs.h >>conftest.$ac_ext | |
11097 | cat >>conftest.$ac_ext <<_ACEOF | |
11098 | /* end confdefs.h. */ | |
11099 | #include <ac_nonexistent.h> | |
11100 | _ACEOF | |
11101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11103 | ac_status=$? | |
11104 | grep -v '^ *+' conftest.er1 >conftest.err | |
11105 | rm -f conftest.er1 | |
11106 | cat conftest.err >&5 | |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11108 | (exit $ac_status); } >/dev/null; then | |
11109 | if test -s conftest.err; then | |
11110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11112 | else |
11113 | ac_cpp_err= | |
11114 | fi | |
10f2d63a | 11115 | else |
e6cc62c6 | 11116 | ac_cpp_err=yes |
579d8138 | 11117 | fi |
e6cc62c6 VS |
11118 | if test -z "$ac_cpp_err"; then |
11119 | # Broken: success on invalid input. | |
11120 | continue | |
11121 | else | |
11122 | echo "$as_me: failed program was:" >&5 | |
11123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11124 | ||
11125 | # Passes both tests. | |
11126 | ac_preproc_ok=: | |
11127 | break | |
52127426 | 11128 | fi |
e6cc62c6 VS |
11129 | rm -f conftest.err conftest.$ac_ext |
11130 | ||
11131 | done | |
11132 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11133 | rm -f conftest.err conftest.$ac_ext | |
11134 | if $ac_preproc_ok; then | |
11135 | break | |
8284b0c5 | 11136 | fi |
e6cc62c6 VS |
11137 | |
11138 | done | |
11139 | ac_cv_prog_CPP=$CPP | |
11140 | ||
11141 | fi | |
11142 | CPP=$ac_cv_prog_CPP | |
11143 | else | |
11144 | ac_cv_prog_CPP=$CPP | |
11145 | fi | |
11146 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11147 | echo "${ECHO_T}$CPP" >&6 | |
11148 | ac_preproc_ok=false | |
11149 | for ac_c_preproc_warn_flag in '' yes | |
11150 | do | |
11151 | # Use a header file that comes with gcc, so configuring glibc | |
11152 | # with a fresh cross-compiler works. | |
11153 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11154 | # <limits.h> exists even on freestanding compilers. | |
11155 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11156 | # not just through cpp. "Syntax error" is here to catch this case. | |
11157 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11158 | /* confdefs.h. */ |
11159 | _ACEOF | |
11160 | cat confdefs.h >>conftest.$ac_ext | |
11161 | cat >>conftest.$ac_ext <<_ACEOF | |
11162 | /* end confdefs.h. */ | |
11163 | #ifdef __STDC__ | |
11164 | # include <limits.h> | |
11165 | #else | |
11166 | # include <assert.h> | |
11167 | #endif | |
32ddf007 | 11168 | Syntax error |
e6cc62c6 VS |
11169 | _ACEOF |
11170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11172 | ac_status=$? | |
11173 | grep -v '^ *+' conftest.er1 >conftest.err | |
11174 | rm -f conftest.er1 | |
11175 | cat conftest.err >&5 | |
11176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11177 | (exit $ac_status); } >/dev/null; then | |
11178 | if test -s conftest.err; then | |
11179 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11180 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11181 | else |
11182 | ac_cpp_err= | |
11183 | fi | |
11184 | else | |
11185 | ac_cpp_err=yes | |
11186 | fi | |
11187 | if test -z "$ac_cpp_err"; then | |
11188 | : | |
11189 | else | |
11190 | echo "$as_me: failed program was:" >&5 | |
11191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11192 | ||
11193 | # Broken: fails on valid input. | |
11194 | continue | |
11195 | fi | |
11196 | rm -f conftest.err conftest.$ac_ext | |
11197 | ||
11198 | # OK, works on sane cases. Now check whether non-existent headers | |
11199 | # can be detected and how. | |
11200 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11201 | /* confdefs.h. */ |
11202 | _ACEOF | |
11203 | cat confdefs.h >>conftest.$ac_ext | |
11204 | cat >>conftest.$ac_ext <<_ACEOF | |
11205 | /* end confdefs.h. */ | |
11206 | #include <ac_nonexistent.h> | |
11207 | _ACEOF | |
11208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11210 | ac_status=$? | |
11211 | grep -v '^ *+' conftest.er1 >conftest.err | |
11212 | rm -f conftest.er1 | |
11213 | cat conftest.err >&5 | |
11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11215 | (exit $ac_status); } >/dev/null; then | |
11216 | if test -s conftest.err; then | |
11217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 11218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
11219 | else |
11220 | ac_cpp_err= | |
11221 | fi | |
11222 | else | |
11223 | ac_cpp_err=yes | |
11224 | fi | |
11225 | if test -z "$ac_cpp_err"; then | |
11226 | # Broken: success on invalid input. | |
11227 | continue | |
11228 | else | |
11229 | echo "$as_me: failed program was:" >&5 | |
11230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11231 | ||
11232 | # Passes both tests. | |
11233 | ac_preproc_ok=: | |
11234 | break | |
a0b9e27f | 11235 | fi |
e6cc62c6 VS |
11236 | rm -f conftest.err conftest.$ac_ext |
11237 | ||
11238 | done | |
11239 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11240 | rm -f conftest.err conftest.$ac_ext | |
11241 | if $ac_preproc_ok; then | |
11242 | : | |
11243 | else | |
11244 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11245 | See \`config.log' for more details." >&5 | |
11246 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11247 | See \`config.log' for more details." >&2;} | |
11248 | { (exit 1); exit 1; }; } | |
11249 | fi | |
11250 | ||
11251 | ac_ext=c | |
11252 | ac_cpp='$CPP $CPPFLAGS' | |
11253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11256 | ||
11257 | ||
11258 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11259 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11260 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11262 | else |
e6cc62c6 VS |
11263 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11264 | then ac_cv_prog_egrep='grep -E' | |
11265 | else ac_cv_prog_egrep='egrep' | |
11266 | fi | |
10f2d63a | 11267 | fi |
e6cc62c6 VS |
11268 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11269 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11270 | EGREP=$ac_cv_prog_egrep | |
11271 | ||
10f2d63a | 11272 | |
e6cc62c6 VS |
11273 | if test $ac_cv_c_compiler_gnu = yes; then |
11274 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11275 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11276 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11278 | else |
11279 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11280 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11281 | /* confdefs.h. */ |
11282 | _ACEOF | |
11283 | cat confdefs.h >>conftest.$ac_ext | |
11284 | cat >>conftest.$ac_ext <<_ACEOF | |
11285 | /* end confdefs.h. */ | |
10f2d63a VZ |
11286 | #include <sgtty.h> |
11287 | Autoconf TIOCGETP | |
e6cc62c6 | 11288 | _ACEOF |
10f2d63a | 11289 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11290 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11291 | ac_cv_prog_gcc_traditional=yes |
11292 | else | |
10f2d63a VZ |
11293 | ac_cv_prog_gcc_traditional=no |
11294 | fi | |
11295 | rm -f conftest* | |
11296 | ||
8284b0c5 | 11297 | |
10f2d63a | 11298 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11299 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11300 | /* confdefs.h. */ |
11301 | _ACEOF | |
11302 | cat confdefs.h >>conftest.$ac_ext | |
11303 | cat >>conftest.$ac_ext <<_ACEOF | |
11304 | /* end confdefs.h. */ | |
10f2d63a VZ |
11305 | #include <termio.h> |
11306 | Autoconf TCGETA | |
e6cc62c6 | 11307 | _ACEOF |
10f2d63a | 11308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11309 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11310 | ac_cv_prog_gcc_traditional=yes |
11311 | fi | |
11312 | rm -f conftest* | |
11313 | ||
11314 | fi | |
11315 | fi | |
e6cc62c6 VS |
11316 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11317 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11318 | if test $ac_cv_prog_gcc_traditional = yes; then |
11319 | CC="$CC -traditional" | |
11320 | fi | |
11321 | fi | |
11322 | ||
8284b0c5 MB |
11323 | |
11324 | ||
e6cc62c6 VS |
11325 | |
11326 | ac_ext=cc | |
1e487827 | 11327 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11328 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11329 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11330 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11331 | |
698dcdb6 | 11332 | |
ec603395 | 11333 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11334 | ac_ext=cc |
11335 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11336 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11337 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11338 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11339 | if test -n "$ac_tool_prefix"; then | |
11340 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11341 | do | |
11342 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11343 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11346 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11348 | else |
11349 | if test -n "$CXX"; then | |
11350 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11351 | else | |
e6cc62c6 VS |
11352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11353 | for as_dir in $PATH | |
11354 | do | |
11355 | IFS=$as_save_IFS | |
11356 | test -z "$as_dir" && as_dir=. | |
11357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11359 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11361 | break 2 | |
11362 | fi | |
11363 | done | |
11364 | done | |
11365 | ||
10f2d63a VZ |
11366 | fi |
11367 | fi | |
e6cc62c6 | 11368 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11369 | if test -n "$CXX"; then |
e6cc62c6 VS |
11370 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11371 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11372 | else |
e6cc62c6 VS |
11373 | echo "$as_me:$LINENO: result: no" >&5 |
11374 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11375 | fi |
11376 | ||
e6cc62c6 VS |
11377 | test -n "$CXX" && break |
11378 | done | |
11379 | fi | |
11380 | if test -z "$CXX"; then | |
11381 | ac_ct_CXX=$CXX | |
11382 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11383 | do | |
11384 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11385 | set dummy $ac_prog; ac_word=$2 | |
11386 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11388 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11390 | else | |
11391 | if test -n "$ac_ct_CXX"; then | |
11392 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11393 | else | |
11394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11395 | for as_dir in $PATH | |
11396 | do | |
11397 | IFS=$as_save_IFS | |
11398 | test -z "$as_dir" && as_dir=. | |
11399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11400 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11401 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11403 | break 2 | |
11404 | fi | |
11405 | done | |
10f2d63a | 11406 | done |
a0b9e27f | 11407 | |
8284b0c5 | 11408 | fi |
a0b9e27f | 11409 | fi |
e6cc62c6 VS |
11410 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11411 | if test -n "$ac_ct_CXX"; then | |
11412 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11413 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11414 | else | |
11415 | echo "$as_me:$LINENO: result: no" >&5 | |
11416 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11417 | fi |
10f2d63a | 11418 | |
e6cc62c6 VS |
11419 | test -n "$ac_ct_CXX" && break |
11420 | done | |
11421 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11422 | ||
11423 | CXX=$ac_ct_CXX | |
11424 | fi | |
11425 | ||
11426 | ||
11427 | # Provide some information about the compiler. | |
11428 | echo "$as_me:$LINENO:" \ | |
11429 | "checking for C++ compiler version" >&5 | |
11430 | ac_compiler=`set X $ac_compile; echo $2` | |
11431 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11432 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11433 | ac_status=$? | |
11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11435 | (exit $ac_status); } | |
11436 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11437 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11438 | ac_status=$? | |
11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11440 | (exit $ac_status); } | |
11441 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11442 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11443 | ac_status=$? | |
11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11445 | (exit $ac_status); } | |
11446 | ||
11447 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11448 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11449 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11451 | else | |
11452 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11453 | /* confdefs.h. */ |
11454 | _ACEOF | |
11455 | cat confdefs.h >>conftest.$ac_ext | |
11456 | cat >>conftest.$ac_ext <<_ACEOF | |
11457 | /* end confdefs.h. */ | |
11458 | ||
11459 | int | |
11460 | main () | |
11461 | { | |
11462 | #ifndef __GNUC__ | |
11463 | choke me | |
11464 | #endif | |
10f2d63a | 11465 | |
e6cc62c6 VS |
11466 | ; |
11467 | return 0; | |
11468 | } | |
11469 | _ACEOF | |
11470 | rm -f conftest.$ac_objext | |
11471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11472 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11473 | ac_status=$? |
32ddf007 VS |
11474 | grep -v '^ *+' conftest.er1 >conftest.err |
11475 | rm -f conftest.er1 | |
11476 | cat conftest.err >&5 | |
e6cc62c6 VS |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11478 | (exit $ac_status); } && | |
32ddf007 VS |
11479 | { ac_try='test -z "$ac_cxx_werror_flag" |
11480 | || test ! -s conftest.err' | |
11481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11482 | (eval $ac_try) 2>&5 | |
11483 | ac_status=$? | |
11484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11485 | (exit $ac_status); }; } && | |
11486 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11488 | (eval $ac_try) 2>&5 | |
11489 | ac_status=$? | |
11490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11491 | (exit $ac_status); }; }; then | |
11492 | ac_compiler_gnu=yes | |
11493 | else | |
11494 | echo "$as_me: failed program was:" >&5 | |
11495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11496 | ||
11497 | ac_compiler_gnu=no | |
11498 | fi | |
32ddf007 | 11499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11500 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11501 | ||
11502 | fi | |
11503 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11504 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11505 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11506 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11507 | ac_save_CXXFLAGS=$CXXFLAGS | |
11508 | CXXFLAGS="-g" | |
11509 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11510 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11511 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11513 | else | |
11514 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11515 | /* confdefs.h. */ |
11516 | _ACEOF | |
11517 | cat confdefs.h >>conftest.$ac_ext | |
11518 | cat >>conftest.$ac_ext <<_ACEOF | |
11519 | /* end confdefs.h. */ | |
11520 | ||
11521 | int | |
11522 | main () | |
11523 | { | |
f09359cf | 11524 | |
e6cc62c6 VS |
11525 | ; |
11526 | return 0; | |
11527 | } | |
11528 | _ACEOF | |
11529 | rm -f conftest.$ac_objext | |
11530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11531 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11532 | ac_status=$? |
32ddf007 VS |
11533 | grep -v '^ *+' conftest.er1 >conftest.err |
11534 | rm -f conftest.er1 | |
11535 | cat conftest.err >&5 | |
e6cc62c6 VS |
11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11537 | (exit $ac_status); } && | |
32ddf007 VS |
11538 | { ac_try='test -z "$ac_cxx_werror_flag" |
11539 | || test ! -s conftest.err' | |
11540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11541 | (eval $ac_try) 2>&5 | |
11542 | ac_status=$? | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); }; } && | |
11545 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11547 | (eval $ac_try) 2>&5 | |
11548 | ac_status=$? | |
11549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11550 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11551 | ac_cv_prog_cxx_g=yes |
11552 | else | |
e6cc62c6 VS |
11553 | echo "$as_me: failed program was:" >&5 |
11554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11555 | |
e6cc62c6 | 11556 | ac_cv_prog_cxx_g=no |
10f2d63a | 11557 | fi |
32ddf007 | 11558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11559 | fi |
11560 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11561 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11562 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11563 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11564 | elif test $ac_cv_prog_cxx_g = yes; then |
11565 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11566 | CXXFLAGS="-g -O2" |
11567 | else | |
f09359cf | 11568 | CXXFLAGS="-g" |
10f2d63a | 11569 | fi |
5c0a20c3 | 11570 | else |
f09359cf VS |
11571 | if test "$GXX" = yes; then |
11572 | CXXFLAGS="-O2" | |
11573 | else | |
11574 | CXXFLAGS= | |
11575 | fi | |
10f2d63a | 11576 | fi |
e6cc62c6 | 11577 | for ac_declaration in \ |
32ddf007 | 11578 | '' \ |
e6cc62c6 VS |
11579 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11580 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11581 | 'extern "C" void exit (int) throw ();' \ | |
11582 | 'extern "C" void exit (int);' \ | |
11583 | 'void exit (int);' | |
11584 | do | |
11585 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
11586 | /* confdefs.h. */ |
11587 | _ACEOF | |
11588 | cat confdefs.h >>conftest.$ac_ext | |
11589 | cat >>conftest.$ac_ext <<_ACEOF | |
11590 | /* end confdefs.h. */ | |
0f87e84c | 11591 | $ac_declaration |
32ddf007 | 11592 | #include <stdlib.h> |
e6cc62c6 VS |
11593 | int |
11594 | main () | |
11595 | { | |
11596 | exit (42); | |
11597 | ; | |
11598 | return 0; | |
11599 | } | |
11600 | _ACEOF | |
11601 | rm -f conftest.$ac_objext | |
11602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11603 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11604 | ac_status=$? |
32ddf007 VS |
11605 | grep -v '^ *+' conftest.er1 >conftest.err |
11606 | rm -f conftest.er1 | |
11607 | cat conftest.err >&5 | |
e6cc62c6 VS |
11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11609 | (exit $ac_status); } && | |
32ddf007 VS |
11610 | { ac_try='test -z "$ac_cxx_werror_flag" |
11611 | || test ! -s conftest.err' | |
11612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11613 | (eval $ac_try) 2>&5 | |
11614 | ac_status=$? | |
11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11616 | (exit $ac_status); }; } && | |
11617 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11619 | (eval $ac_try) 2>&5 | |
11620 | ac_status=$? | |
11621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11622 | (exit $ac_status); }; }; then | |
11623 | : | |
11624 | else | |
11625 | echo "$as_me: failed program was:" >&5 | |
11626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11627 | ||
11628 | continue | |
11629 | fi | |
32ddf007 | 11630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11631 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
11632 | /* confdefs.h. */ |
11633 | _ACEOF | |
11634 | cat confdefs.h >>conftest.$ac_ext | |
11635 | cat >>conftest.$ac_ext <<_ACEOF | |
11636 | /* end confdefs.h. */ | |
11637 | $ac_declaration | |
11638 | int | |
11639 | main () | |
11640 | { | |
11641 | exit (42); | |
11642 | ; | |
11643 | return 0; | |
11644 | } | |
11645 | _ACEOF | |
11646 | rm -f conftest.$ac_objext | |
11647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 11648 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 11649 | ac_status=$? |
32ddf007 VS |
11650 | grep -v '^ *+' conftest.er1 >conftest.err |
11651 | rm -f conftest.er1 | |
11652 | cat conftest.err >&5 | |
e6cc62c6 VS |
11653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11654 | (exit $ac_status); } && | |
32ddf007 VS |
11655 | { ac_try='test -z "$ac_cxx_werror_flag" |
11656 | || test ! -s conftest.err' | |
11657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11658 | (eval $ac_try) 2>&5 | |
11659 | ac_status=$? | |
11660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11661 | (exit $ac_status); }; } && | |
11662 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
11663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11664 | (eval $ac_try) 2>&5 | |
11665 | ac_status=$? | |
11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11667 | (exit $ac_status); }; }; then | |
11668 | break | |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | fi | |
32ddf007 | 11674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11675 | done |
11676 | rm -f conftest* | |
11677 | if test -n "$ac_declaration"; then | |
11678 | echo '#ifdef __cplusplus' >>confdefs.h | |
11679 | echo $ac_declaration >>confdefs.h | |
11680 | echo '#endif' >>confdefs.h | |
11681 | fi | |
11682 | ||
11683 | ac_ext=cc | |
11684 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11685 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11686 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11687 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11688 | |
11689 | ||
10f2d63a | 11690 | ac_ext=c |
10f2d63a | 11691 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11695 | |
11696 | ||
243f8ae5 VS |
11697 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 |
11698 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11699 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11700 | if test "$GCC" = "yes" ; then | |
11701 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11702 | sed -n '1,/End of search list\./p' | \ | |
11703 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11704 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11705 | fi | |
11706 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11707 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11708 | ||
e6cc62c6 VS |
11709 | if test -n "$ac_tool_prefix"; then |
11710 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11711 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11714 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11716 | else |
11717 | if test -n "$RANLIB"; then | |
11718 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11719 | else | |
e6cc62c6 VS |
11720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11721 | for as_dir in $PATH | |
11722 | do | |
11723 | IFS=$as_save_IFS | |
11724 | test -z "$as_dir" && as_dir=. | |
11725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11727 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11729 | break 2 | |
11730 | fi | |
11731 | done | |
11732 | done | |
11733 | ||
10f2d63a VZ |
11734 | fi |
11735 | fi | |
e6cc62c6 | 11736 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11737 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11738 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11739 | echo "${ECHO_T}$RANLIB" >&6 | |
11740 | else | |
11741 | echo "$as_me:$LINENO: result: no" >&5 | |
11742 | echo "${ECHO_T}no" >&6 | |
11743 | fi | |
11744 | ||
11745 | fi | |
11746 | if test -z "$ac_cv_prog_RANLIB"; then | |
11747 | ac_ct_RANLIB=$RANLIB | |
11748 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11749 | set dummy ranlib; ac_word=$2 | |
11750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11752 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11754 | else |
e6cc62c6 VS |
11755 | if test -n "$ac_ct_RANLIB"; then |
11756 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11757 | else | |
11758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11759 | for as_dir in $PATH | |
11760 | do | |
11761 | IFS=$as_save_IFS | |
11762 | test -z "$as_dir" && as_dir=. | |
11763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11765 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11767 | break 2 | |
11768 | fi | |
11769 | done | |
11770 | done | |
11771 | ||
11772 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11773 | fi | |
11774 | fi | |
11775 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11776 | if test -n "$ac_ct_RANLIB"; then | |
11777 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11778 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11779 | else | |
11780 | echo "$as_me:$LINENO: result: no" >&5 | |
11781 | echo "${ECHO_T}no" >&6 | |
11782 | fi | |
11783 | ||
11784 | RANLIB=$ac_ct_RANLIB | |
11785 | else | |
11786 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11787 | fi |
11788 | ||
10f2d63a VZ |
11789 | |
11790 | # Extract the first word of "ar", so it can be a program name with args. | |
11791 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11794 | if test "${ac_cv_prog_AR+set}" = set; then | |
11795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11796 | else |
11797 | if test -n "$AR"; then | |
11798 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11799 | else | |
e6cc62c6 VS |
11800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11801 | for as_dir in $PATH | |
11802 | do | |
11803 | IFS=$as_save_IFS | |
11804 | test -z "$as_dir" && as_dir=. | |
11805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11807 | ac_cv_prog_AR="ar" | |
11808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11809 | break 2 | |
11810 | fi | |
11811 | done | |
11812 | done | |
11813 | ||
10f2d63a VZ |
11814 | fi |
11815 | fi | |
e6cc62c6 | 11816 | AR=$ac_cv_prog_AR |
10f2d63a | 11817 | if test -n "$AR"; then |
e6cc62c6 VS |
11818 | echo "$as_me:$LINENO: result: $AR" >&5 |
11819 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11820 | else |
e6cc62c6 VS |
11821 | echo "$as_me:$LINENO: result: no" >&5 |
11822 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11823 | fi |
11824 | ||
911740e7 VS |
11825 | if test "x$AR" = "x" ; then |
11826 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11827 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11828 | { (exit 1); exit 1; }; } | |
11829 | fi | |
8284b0c5 | 11830 | |
6054113a | 11831 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11832 | # so one script is as good as another. But avoid the broken or |
11833 | # incompatible versions: | |
11834 | # SysV /etc/install, /usr/sbin/install | |
11835 | # SunOS /usr/etc/install | |
11836 | # IRIX /sbin/install | |
11837 | # AIX /bin/install | |
e6cc62c6 | 11838 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11839 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11840 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11841 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 11842 | # OS/2's system install, which has a completely different semantic |
10f2d63a | 11843 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
11844 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11845 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11846 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11847 | if test "${ac_cv_path_install+set}" = set; then |
11848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11849 | else | |
11850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11851 | for as_dir in $PATH | |
11852 | do | |
11853 | IFS=$as_save_IFS | |
11854 | test -z "$as_dir" && as_dir=. | |
11855 | # Account for people who put trailing slashes in PATH elements. | |
11856 | case $as_dir/ in | |
11857 | ./ | .// | /cC/* | \ | |
11858 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 11859 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
11860 | /usr/ucb/* ) ;; |
11861 | *) | |
11862 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11863 | # Don't use installbsd from OSF since it installs stuff as root | |
11864 | # by default. | |
11865 | for ac_prog in ginstall scoinst install; do | |
11866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
11867 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11868 | if test $ac_prog = install && | |
11869 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11870 | # AIX install. It has an incompatible calling convention. | |
11871 | : | |
11872 | elif test $ac_prog = install && | |
11873 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11874 | # program-specific install script used by HP pwplus--don't use. | |
11875 | : | |
11876 | else | |
11877 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11878 | break 3 | |
11879 | fi | |
11880 | fi | |
10f2d63a | 11881 | done |
e6cc62c6 VS |
11882 | done |
11883 | ;; | |
11884 | esac | |
11885 | done | |
11886 | ||
10f2d63a VZ |
11887 | |
11888 | fi | |
11889 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11890 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11891 | else |
11892 | # As a last resort, use the slow shell script. We don't cache a | |
11893 | # path for INSTALL within a source directory, because that will | |
11894 | # break other packages using the cache if that directory is | |
11895 | # removed, or if the path is relative. | |
e6cc62c6 | 11896 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11897 | fi |
11898 | fi | |
e6cc62c6 VS |
11899 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11900 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11901 | |
11902 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11903 | # It thinks the first close brace ends the variable substitution. | |
11904 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11905 | ||
e6cc62c6 | 11906 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11907 | |
10f2d63a VZ |
11908 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11909 | ||
8284b0c5 | 11910 | |
1d1b75ac VZ |
11911 | case ${INSTALL} in |
11912 | /* ) # Absolute | |
11913 | ;; | |
4f5a7f74 VZ |
11914 | ?:* ) # Drive letter, considered as absolute. |
11915 | ;; | |
3bd8fb5f | 11916 | *) |
1d1b75ac VZ |
11917 | INSTALL=`pwd`/${INSTALL} ;; |
11918 | esac | |
11919 | ||
4f5a7f74 VZ |
11920 | case ${host} in |
11921 | *-hp-hpux* ) | |
11922 | INSTALL_DIR="mkdir" | |
11923 | ;; | |
11924 | ||
11925 | *) INSTALL_DIR="$INSTALL -d" | |
11926 | ;; | |
11927 | esac | |
11928 | ||
8284b0c5 | 11929 | |
6054113a GD |
11930 | case "${host}" in |
11931 | ||
b5853384 | 11932 | powerpc-*-darwin* ) |
eb99ae0b GD |
11933 | INSTALL_PROGRAM="cp -fp" |
11934 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11935 | ;; |
11936 | *) | |
11937 | ;; | |
d6853540 | 11938 | esac |
698dcdb6 | 11939 | |
10f2d63a VZ |
11940 | # Extract the first word of "strip", so it can be a program name with args. |
11941 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11944 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11946 | else |
11947 | if test -n "$STRIP"; then | |
11948 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11949 | else | |
e6cc62c6 VS |
11950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11951 | for as_dir in $PATH | |
11952 | do | |
11953 | IFS=$as_save_IFS | |
11954 | test -z "$as_dir" && as_dir=. | |
11955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11957 | ac_cv_prog_STRIP="strip" | |
11958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11959 | break 2 | |
11960 | fi | |
11961 | done | |
11962 | done | |
11963 | ||
10f2d63a VZ |
11964 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11965 | fi | |
11966 | fi | |
e6cc62c6 | 11967 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11968 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11969 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11970 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11971 | else |
e6cc62c6 VS |
11972 | echo "$as_me:$LINENO: result: no" >&5 |
11973 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11974 | fi |
11975 | ||
5c6fa7d2 | 11976 | |
e6cc62c6 VS |
11977 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11978 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11979 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11981 | else |
e6cc62c6 | 11982 | |
414eab6d | 11983 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11984 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11985 | wx_cv_prog_makeisgnu="yes" |
11986 | else | |
11987 | wx_cv_prog_makeisgnu="no" | |
11988 | fi | |
11989 | ||
11990 | fi | |
e6cc62c6 VS |
11991 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11992 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11993 | |
11994 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11995 | IF_GNU_MAKE="" | |
11996 | else | |
11997 | IF_GNU_MAKE="#" | |
11998 | fi | |
11999 | ||
8284b0c5 MB |
12000 | |
12001 | ||
414eab6d | 12002 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
12003 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
12004 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12005 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 12007 | else |
e6cc62c6 | 12008 | |
10f2d63a VZ |
12009 | cat - << EOF > confMake |
12010 | check : file | |
12011 | cp \$? \$@ | |
12012 | cp \$? final_file | |
12013 | EOF | |
12014 | ||
12015 | if test ! -d sub ; then | |
12016 | mkdir sub | |
12017 | fi | |
12018 | echo dummy > sub/file | |
f6bcfd97 | 12019 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
12020 | RESULT=$? |
12021 | rm -f sub/file check final_file confMake | |
12022 | rmdir sub | |
12023 | if test "$RESULT" = 0; then | |
04e7a216 | 12024 | wx_cv_prog_makevpath="yes" |
10f2d63a | 12025 | else |
04e7a216 VZ |
12026 | wx_cv_prog_makevpath="no" |
12027 | fi | |
12028 | ||
12029 | fi | |
e6cc62c6 VS |
12030 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
12031 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
12032 | |
12033 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 12034 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
12035 | You need a make-utility that is able to use the variable |
12036 | VPATH correctly. | |
12037 | If your version of make does not support VPATH correctly, | |
12038 | please install GNU-make (possibly as gmake), and start | |
12039 | configure with the following command: | |
12040 | export MAKE=gmake; ./configure for sh-type shells | |
12041 | setenv MAKE gmake; ./configure for csh-type shells | |
12042 | Also please do remember to use gmake in this case every time | |
12043 | you are trying to compile. | |
e6cc62c6 VS |
12044 | " >&5 |
12045 | echo "$as_me: error: | |
12046 | You need a make-utility that is able to use the variable | |
12047 | VPATH correctly. | |
12048 | If your version of make does not support VPATH correctly, | |
12049 | please install GNU-make (possibly as gmake), and start | |
12050 | configure with the following command: | |
12051 | export MAKE=gmake; ./configure for sh-type shells | |
12052 | setenv MAKE gmake; ./configure for csh-type shells | |
12053 | Also please do remember to use gmake in this case every time | |
12054 | you are trying to compile. | |
12055 | " >&2;} | |
12056 | { (exit 1); exit 1; }; } | |
12057 | fi fi | |
e6cc62c6 VS |
12058 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
12059 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12060 | LN_S=$as_ln_s | |
12061 | if test "$LN_S" = "ln -s"; then | |
12062 | echo "$as_me:$LINENO: result: yes" >&5 | |
12063 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 12064 | else |
e6cc62c6 VS |
12065 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
12066 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 12067 | fi |
5c6fa7d2 | 12068 | |
247f5006 | 12069 | |
243f8ae5 | 12070 | |
2b5f62a0 VZ |
12071 | case "${host}" in |
12072 | *-pc-os2_emx | *-pc-os2-emx ) | |
243f8ae5 | 12073 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
12074 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
12075 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12076 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 12078 | else |
e6cc62c6 | 12079 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 12080 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 12081 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
12082 | /* confdefs.h. */ |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
12087 | ||
2b5f62a0 | 12088 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
12089 | #ifdef __cplusplus |
12090 | extern "C" | |
12091 | #endif | |
2b5f62a0 | 12092 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
12093 | builtin and then its argument prototype would still apply. */ |
12094 | char drand48 (); | |
12095 | int | |
12096 | main () | |
12097 | { | |
12098 | drand48 (); | |
12099 | ; | |
12100 | return 0; | |
12101 | } | |
12102 | _ACEOF | |
12103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12105 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 12106 | ac_status=$? |
32ddf007 VS |
12107 | grep -v '^ *+' conftest.er1 >conftest.err |
12108 | rm -f conftest.er1 | |
12109 | cat conftest.err >&5 | |
e6cc62c6 VS |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12111 | (exit $ac_status); } && | |
32ddf007 VS |
12112 | { ac_try='test -z "$ac_c_werror_flag" |
12113 | || test ! -s conftest.err' | |
12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12115 | (eval $ac_try) 2>&5 | |
12116 | ac_status=$? | |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12118 | (exit $ac_status); }; } && | |
12119 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
12120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12121 | (eval $ac_try) 2>&5 | |
12122 | ac_status=$? | |
12123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12124 | (exit $ac_status); }; }; then | |
12125 | ac_cv_lib_cExt_drand48=yes | |
12126 | else | |
12127 | echo "$as_me: failed program was:" >&5 | |
12128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12129 | ||
12130 | ac_cv_lib_cExt_drand48=no | |
12131 | fi | |
32ddf007 VS |
12132 | rm -f conftest.err conftest.$ac_objext \ |
12133 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
12134 | LIBS=$ac_check_lib_save_LIBS |
12135 | fi | |
12136 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12137 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12138 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 12139 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
12140 | fi |
12141 | ||
12142 | else | |
12143 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12144 | fi | |
32ddf007 VS |
12145 | echo "$as_me:$LINENO: checking for gcc version" >&5 |
12146 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12147 | if test "${wx_cv_gccversion+set}" = set; then | |
73d617c9 MB |
12148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12149 | else | |
12150 | ||
12151 | cat >conftest.$ac_ext <<_ACEOF | |
73d617c9 MB |
12152 | /* confdefs.h. */ |
12153 | _ACEOF | |
12154 | cat confdefs.h >>conftest.$ac_ext | |
12155 | cat >>conftest.$ac_ext <<_ACEOF | |
12156 | /* end confdefs.h. */ | |
3527f29c | 12157 | |
73d617c9 MB |
12158 | int |
12159 | main () | |
12160 | { | |
12161 | ||
12162 | #if (__GNUC__ < 3) | |
12163 | #error old gcc | |
12164 | #endif | |
12165 | ||
12166 | ; | |
12167 | return 0; | |
12168 | } | |
12169 | _ACEOF | |
12170 | rm -f conftest.$ac_objext | |
12171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 VS |
12172 | (eval $ac_compile) 2>conftest.er1 |
12173 | ac_status=$? | |
12174 | grep -v '^ *+' conftest.er1 >conftest.err | |
12175 | rm -f conftest.er1 | |
12176 | cat conftest.err >&5 | |
12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12178 | (exit $ac_status); } && | |
12179 | { ac_try='test -z "$ac_c_werror_flag" | |
12180 | || test ! -s conftest.err' | |
12181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12182 | (eval $ac_try) 2>&5 | |
12183 | ac_status=$? | |
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12185 | (exit $ac_status); }; } && | |
12186 | { ac_try='test -s conftest.$ac_objext' | |
12187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12188 | (eval $ac_try) 2>&5 | |
12189 | ac_status=$? | |
12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12191 | (exit $ac_status); }; }; then | |
12192 | ||
12193 | cat >conftest.$ac_ext <<_ACEOF | |
12194 | /* confdefs.h. */ | |
12195 | _ACEOF | |
12196 | cat confdefs.h >>conftest.$ac_ext | |
12197 | cat >>conftest.$ac_ext <<_ACEOF | |
12198 | /* end confdefs.h. */ | |
12199 | ||
12200 | int | |
12201 | main () | |
12202 | { | |
12203 | ||
12204 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12205 | #error intermediate gcc | |
12206 | #endif | |
12207 | ||
12208 | ; | |
12209 | return 0; | |
12210 | } | |
12211 | _ACEOF | |
12212 | rm -f conftest.$ac_objext | |
12213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12214 | (eval $ac_compile) 2>conftest.er1 | |
73d617c9 | 12215 | ac_status=$? |
32ddf007 VS |
12216 | grep -v '^ *+' conftest.er1 >conftest.err |
12217 | rm -f conftest.er1 | |
12218 | cat conftest.err >&5 | |
73d617c9 MB |
12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12220 | (exit $ac_status); } && | |
32ddf007 VS |
12221 | { ac_try='test -z "$ac_c_werror_flag" |
12222 | || test ! -s conftest.err' | |
12223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12224 | (eval $ac_try) 2>&5 | |
12225 | ac_status=$? | |
12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12227 | (exit $ac_status); }; } && | |
12228 | { ac_try='test -s conftest.$ac_objext' | |
73d617c9 MB |
12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12230 | (eval $ac_try) 2>&5 | |
12231 | ac_status=$? | |
12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12233 | (exit $ac_status); }; }; then | |
12234 | ||
32ddf007 | 12235 | wx_cv_gccversion=Innotek |
73d617c9 MB |
12236 | |
12237 | else | |
12238 | echo "$as_me: failed program was:" >&5 | |
12239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12240 | ||
12241 | ||
32ddf007 | 12242 | wx_cv_gccversion=3 |
73d617c9 MB |
12243 | |
12244 | ||
12245 | fi | |
32ddf007 VS |
12246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12247 | ||
12248 | else | |
12249 | echo "$as_me: failed program was:" >&5 | |
12250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12251 | ||
12252 | ||
12253 | wx_cv_gccversion=2 | |
12254 | ||
73d617c9 MB |
12255 | |
12256 | fi | |
32ddf007 VS |
12257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12258 | ||
12259 | fi | |
12260 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12261 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12262 | if test "$wx_cv_gccversion" = "2"; then | |
73d617c9 | 12263 | LIBS="$LIBS -lstdcpp" |
32ddf007 | 12264 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
73d617c9 | 12265 | else |
32ddf007 VS |
12266 | if test "$wx_cv_gccversion" = "3"; then |
12267 | LIBS="$LIBS -lstdcxx" | |
12268 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12269 | else | |
12270 | LIBS="$LIBS -lstdc++" | |
12271 | fi | |
73d617c9 | 12272 | fi |
243f8ae5 VS |
12273 | ;; |
12274 | *) | |
a0b9e27f | 12275 | |
1c2d1459 VZ |
12276 | |
12277 | ||
243f8ae5 | 12278 | ac_ext=cc |
1c2d1459 VZ |
12279 | ac_cpp='$CXXCPP $CPPFLAGS' |
12280 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12281 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12282 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12283 | ||
12284 | ||
12285 | ||
12286 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12287 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12288 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
01aa5863 VS |
12289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12290 | else | |
1c2d1459 | 12291 | |
243f8ae5 | 12292 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12293 | /* confdefs.h. */ |
12294 | _ACEOF | |
12295 | cat confdefs.h >>conftest.$ac_ext | |
12296 | cat >>conftest.$ac_ext <<_ACEOF | |
12297 | /* end confdefs.h. */ | |
12298 | ||
243f8ae5 | 12299 | #include <string.h> |
1c2d1459 VZ |
12300 | |
12301 | int | |
12302 | main () | |
12303 | { | |
12304 | ||
243f8ae5 | 12305 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12306 | |
12307 | ; | |
12308 | return 0; | |
12309 | } | |
12310 | _ACEOF | |
12311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12313 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12314 | ac_status=$? |
32ddf007 VS |
12315 | grep -v '^ *+' conftest.er1 >conftest.err |
12316 | rm -f conftest.er1 | |
12317 | cat conftest.err >&5 | |
1c2d1459 VZ |
12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12319 | (exit $ac_status); } && | |
32ddf007 VS |
12320 | { ac_try='test -z "$ac_cxx_werror_flag" |
12321 | || test ! -s conftest.err' | |
12322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12323 | (eval $ac_try) 2>&5 | |
12324 | ac_status=$? | |
12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12326 | (exit $ac_status); }; } && | |
12327 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12329 | (eval $ac_try) 2>&5 | |
12330 | ac_status=$? | |
12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12332 | (exit $ac_status); }; }; then | |
12333 | ac_cv_string_strcasecmp=yes | |
12334 | else | |
12335 | echo "$as_me: failed program was:" >&5 | |
12336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12337 | ||
12338 | ac_cv_string_strcasecmp=no | |
12339 | ||
12340 | fi | |
32ddf007 VS |
12341 | rm -f conftest.err conftest.$ac_objext \ |
12342 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 VZ |
12343 | |
12344 | fi | |
12345 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12346 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12347 | ||
243f8ae5 VS |
12348 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12349 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12350 | #define HAVE_STRCASECMP_IN_STRING_H 1 |
12351 | _ACEOF | |
12352 | ||
243f8ae5 VS |
12353 | else |
12354 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
1c2d1459 VZ |
12355 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 |
12356 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12358 | else | |
12359 | ||
243f8ae5 | 12360 | cat >conftest.$ac_ext <<_ACEOF |
1c2d1459 VZ |
12361 | /* confdefs.h. */ |
12362 | _ACEOF | |
12363 | cat confdefs.h >>conftest.$ac_ext | |
12364 | cat >>conftest.$ac_ext <<_ACEOF | |
12365 | /* end confdefs.h. */ | |
12366 | ||
243f8ae5 | 12367 | #include <strings.h> |
1c2d1459 VZ |
12368 | |
12369 | int | |
12370 | main () | |
12371 | { | |
12372 | ||
243f8ae5 | 12373 | strcasecmp("foo", "bar"); |
1c2d1459 VZ |
12374 | |
12375 | ; | |
12376 | return 0; | |
12377 | } | |
12378 | _ACEOF | |
12379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 12381 | (eval $ac_link) 2>conftest.er1 |
1c2d1459 | 12382 | ac_status=$? |
32ddf007 VS |
12383 | grep -v '^ *+' conftest.er1 >conftest.err |
12384 | rm -f conftest.er1 | |
12385 | cat conftest.err >&5 | |
1c2d1459 VZ |
12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12387 | (exit $ac_status); } && | |
32ddf007 VS |
12388 | { ac_try='test -z "$ac_cxx_werror_flag" |
12389 | || test ! -s conftest.err' | |
12390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12391 | (eval $ac_try) 2>&5 | |
12392 | ac_status=$? | |
12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12394 | (exit $ac_status); }; } && | |
12395 | { ac_try='test -s conftest$ac_exeext' | |
1c2d1459 VZ |
12396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12397 | (eval $ac_try) 2>&5 | |
12398 | ac_status=$? | |
12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12400 | (exit $ac_status); }; }; then | |
12401 | ac_cv_strings_strcasecmp=yes | |
12402 | else | |
12403 | echo "$as_me: failed program was:" >&5 | |
12404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12405 | ||
12406 | ac_cv_strings_strcasecmp=no | |
12407 | ||
12408 | fi | |
32ddf007 VS |
12409 | rm -f conftest.err conftest.$ac_objext \ |
12410 | conftest$ac_exeext conftest.$ac_ext | |
1c2d1459 | 12411 | |
01aa5863 | 12412 | fi |
1c2d1459 VZ |
12413 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 |
12414 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12415 | ||
243f8ae5 VS |
12416 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then |
12417 | cat >>confdefs.h <<\_ACEOF | |
1c2d1459 VZ |
12418 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 |
12419 | _ACEOF | |
12420 | ||
243f8ae5 VS |
12421 | else |
12422 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
1c2d1459 VZ |
12423 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} |
12424 | { (exit 1); exit 1; }; } | |
243f8ae5 VS |
12425 | fi |
12426 | fi | |
1c2d1459 | 12427 | |
243f8ae5 | 12428 | ac_ext=c |
1c2d1459 VZ |
12429 | ac_cpp='$CPP $CPPFLAGS' |
12430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12433 | ||
243f8ae5 VS |
12434 | ;; |
12435 | esac | |
12436 | ||
1c2d1459 | 12437 | |
01aa5863 | 12438 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
e6cc62c6 VS |
12439 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
12440 | if test "${ac_cv_header_stdc+set}" = set; then | |
12441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12442 | else | |
12443 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12444 | /* confdefs.h. */ |
12445 | _ACEOF | |
12446 | cat confdefs.h >>conftest.$ac_ext | |
12447 | cat >>conftest.$ac_ext <<_ACEOF | |
12448 | /* end confdefs.h. */ | |
12449 | #include <stdlib.h> | |
12450 | #include <stdarg.h> | |
12451 | #include <string.h> | |
12452 | #include <float.h> | |
247f5006 | 12453 | |
e6cc62c6 VS |
12454 | int |
12455 | main () | |
12456 | { | |
90dd450c | 12457 | |
e6cc62c6 VS |
12458 | ; |
12459 | return 0; | |
12460 | } | |
12461 | _ACEOF | |
12462 | rm -f conftest.$ac_objext | |
12463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12464 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12465 | ac_status=$? |
32ddf007 VS |
12466 | grep -v '^ *+' conftest.er1 >conftest.err |
12467 | rm -f conftest.er1 | |
12468 | cat conftest.err >&5 | |
e6cc62c6 VS |
12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12470 | (exit $ac_status); } && | |
32ddf007 VS |
12471 | { ac_try='test -z "$ac_c_werror_flag" |
12472 | || test ! -s conftest.err' | |
12473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12474 | (eval $ac_try) 2>&5 | |
12475 | ac_status=$? | |
12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12477 | (exit $ac_status); }; } && | |
12478 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12480 | (eval $ac_try) 2>&5 | |
12481 | ac_status=$? | |
12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12483 | (exit $ac_status); }; }; then | |
12484 | ac_cv_header_stdc=yes | |
8284b0c5 | 12485 | else |
e6cc62c6 VS |
12486 | echo "$as_me: failed program was:" >&5 |
12487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12488 | ||
12489 | ac_cv_header_stdc=no | |
21d1c967 | 12490 | fi |
32ddf007 | 12491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 12492 | |
e6cc62c6 VS |
12493 | if test $ac_cv_header_stdc = yes; then |
12494 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12495 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12496 | /* confdefs.h. */ |
12497 | _ACEOF | |
12498 | cat confdefs.h >>conftest.$ac_ext | |
12499 | cat >>conftest.$ac_ext <<_ACEOF | |
12500 | /* end confdefs.h. */ | |
12501 | #include <string.h> | |
12502 | ||
12503 | _ACEOF | |
12504 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12505 | $EGREP "memchr" >/dev/null 2>&1; then | |
12506 | : | |
12507 | else | |
12508 | ac_cv_header_stdc=no | |
3a922bb4 | 12509 | fi |
a0b9e27f | 12510 | rm -f conftest* |
e6cc62c6 | 12511 | |
90dd450c | 12512 | fi |
e6cc62c6 VS |
12513 | |
12514 | if test $ac_cv_header_stdc = yes; then | |
12515 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12516 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12517 | /* confdefs.h. */ |
12518 | _ACEOF | |
12519 | cat confdefs.h >>conftest.$ac_ext | |
12520 | cat >>conftest.$ac_ext <<_ACEOF | |
12521 | /* end confdefs.h. */ | |
12522 | #include <stdlib.h> | |
12523 | ||
12524 | _ACEOF | |
12525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12526 | $EGREP "free" >/dev/null 2>&1; then | |
12527 | : | |
a0b9e27f | 12528 | else |
e6cc62c6 | 12529 | ac_cv_header_stdc=no |
21d1c967 | 12530 | fi |
e6cc62c6 | 12531 | rm -f conftest* |
247f5006 VZ |
12532 | |
12533 | fi | |
e6cc62c6 VS |
12534 | |
12535 | if test $ac_cv_header_stdc = yes; then | |
12536 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12537 | if test "$cross_compiling" = yes; then | |
12538 | : | |
12539 | else | |
12540 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12541 | /* confdefs.h. */ |
12542 | _ACEOF | |
12543 | cat confdefs.h >>conftest.$ac_ext | |
12544 | cat >>conftest.$ac_ext <<_ACEOF | |
12545 | /* end confdefs.h. */ | |
12546 | #include <ctype.h> | |
12547 | #if ((' ' & 0x0FF) == 0x020) | |
12548 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12549 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12550 | #else | |
12551 | # define ISLOWER(c) \ | |
32ddf007 VS |
12552 | (('a' <= (c) && (c) <= 'i') \ |
12553 | || ('j' <= (c) && (c) <= 'r') \ | |
12554 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12555 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12556 | #endif | |
12557 | ||
12558 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12559 | int | |
12560 | main () | |
12561 | { | |
12562 | int i; | |
12563 | for (i = 0; i < 256; i++) | |
12564 | if (XOR (islower (i), ISLOWER (i)) | |
32ddf007 | 12565 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12566 | exit(2); |
12567 | exit (0); | |
12568 | } | |
12569 | _ACEOF | |
12570 | rm -f conftest$ac_exeext | |
12571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12572 | (eval $ac_link) 2>&5 | |
12573 | ac_status=$? | |
12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12575 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12577 | (eval $ac_try) 2>&5 | |
12578 | ac_status=$? | |
12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12580 | (exit $ac_status); }; }; then | |
12581 | : | |
a0b9e27f | 12582 | else |
e6cc62c6 VS |
12583 | echo "$as_me: program exited with status $ac_status" >&5 |
12584 | echo "$as_me: failed program was:" >&5 | |
12585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12586 | ||
12587 | ( exit $ac_status ) | |
12588 | ac_cv_header_stdc=no | |
12589 | fi | |
32ddf007 | 12590 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12591 | fi |
12592 | fi | |
12593 | fi | |
12594 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12595 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12596 | if test $ac_cv_header_stdc = yes; then | |
12597 | ||
12598 | cat >>confdefs.h <<\_ACEOF | |
12599 | #define STDC_HEADERS 1 | |
12600 | _ACEOF | |
12601 | ||
a0b9e27f | 12602 | fi |
e6cc62c6 VS |
12603 | |
12604 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12605 | ||
12606 | ||
12607 | ||
12608 | ||
12609 | ||
12610 | ||
12611 | ||
12612 | ||
12613 | ||
12614 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
32ddf007 | 12615 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12616 | do |
12617 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12622 | else | |
12623 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12624 | /* confdefs.h. */ |
12625 | _ACEOF | |
12626 | cat confdefs.h >>conftest.$ac_ext | |
12627 | cat >>conftest.$ac_ext <<_ACEOF | |
12628 | /* end confdefs.h. */ | |
12629 | $ac_includes_default | |
12630 | ||
12631 | #include <$ac_header> | |
12632 | _ACEOF | |
12633 | rm -f conftest.$ac_objext | |
12634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12635 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12636 | ac_status=$? |
32ddf007 VS |
12637 | grep -v '^ *+' conftest.er1 >conftest.err |
12638 | rm -f conftest.er1 | |
12639 | cat conftest.err >&5 | |
e6cc62c6 VS |
12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12641 | (exit $ac_status); } && | |
32ddf007 VS |
12642 | { ac_try='test -z "$ac_c_werror_flag" |
12643 | || test ! -s conftest.err' | |
12644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12645 | (eval $ac_try) 2>&5 | |
12646 | ac_status=$? | |
12647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12648 | (exit $ac_status); }; } && | |
12649 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12651 | (eval $ac_try) 2>&5 | |
12652 | ac_status=$? | |
12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12654 | (exit $ac_status); }; }; then | |
12655 | eval "$as_ac_Header=yes" | |
12656 | else | |
12657 | echo "$as_me: failed program was:" >&5 | |
12658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12659 | ||
12660 | eval "$as_ac_Header=no" | |
12661 | fi | |
32ddf007 | 12662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12663 | fi |
12664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12666 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12667 | cat >>confdefs.h <<_ACEOF | |
12668 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12669 | _ACEOF | |
12670 | ||
12671 | fi | |
12672 | ||
a0b9e27f | 12673 | done |
90dd450c | 12674 | |
e6cc62c6 VS |
12675 | |
12676 | ||
e6cc62c6 VS |
12677 | for ac_header in stdlib.h |
12678 | do | |
12679 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12680 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12681 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12685 | fi | |
12686 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12687 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12688 | else | |
12689 | # Is the header compilable? | |
12690 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12691 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12692 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12693 | /* confdefs.h. */ |
12694 | _ACEOF | |
12695 | cat confdefs.h >>conftest.$ac_ext | |
12696 | cat >>conftest.$ac_ext <<_ACEOF | |
12697 | /* end confdefs.h. */ | |
12698 | $ac_includes_default | |
12699 | #include <$ac_header> | |
12700 | _ACEOF | |
12701 | rm -f conftest.$ac_objext | |
12702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12703 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12704 | ac_status=$? |
32ddf007 VS |
12705 | grep -v '^ *+' conftest.er1 >conftest.err |
12706 | rm -f conftest.er1 | |
12707 | cat conftest.err >&5 | |
e6cc62c6 VS |
12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12709 | (exit $ac_status); } && | |
32ddf007 VS |
12710 | { ac_try='test -z "$ac_c_werror_flag" |
12711 | || test ! -s conftest.err' | |
12712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12713 | (eval $ac_try) 2>&5 | |
12714 | ac_status=$? | |
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12716 | (exit $ac_status); }; } && | |
12717 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12719 | (eval $ac_try) 2>&5 | |
12720 | ac_status=$? | |
12721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12722 | (exit $ac_status); }; }; then | |
12723 | ac_header_compiler=yes | |
12724 | else | |
12725 | echo "$as_me: failed program was:" >&5 | |
12726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12727 | ||
12728 | ac_header_compiler=no | |
12729 | fi | |
32ddf007 | 12730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12733 | ||
12734 | # Is the header present? | |
12735 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12736 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12737 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12738 | /* confdefs.h. */ |
12739 | _ACEOF | |
12740 | cat confdefs.h >>conftest.$ac_ext | |
12741 | cat >>conftest.$ac_ext <<_ACEOF | |
12742 | /* end confdefs.h. */ | |
12743 | #include <$ac_header> | |
12744 | _ACEOF | |
12745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12747 | ac_status=$? | |
12748 | grep -v '^ *+' conftest.er1 >conftest.err | |
12749 | rm -f conftest.er1 | |
12750 | cat conftest.err >&5 | |
12751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12752 | (exit $ac_status); } >/dev/null; then | |
12753 | if test -s conftest.err; then | |
12754 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12755 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12756 | else |
12757 | ac_cpp_err= | |
12758 | fi | |
12759 | else | |
12760 | ac_cpp_err=yes | |
12761 | fi | |
12762 | if test -z "$ac_cpp_err"; then | |
12763 | ac_header_preproc=yes | |
12764 | else | |
12765 | echo "$as_me: failed program was:" >&5 | |
12766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12767 | ||
12768 | ac_header_preproc=no | |
12769 | fi | |
12770 | rm -f conftest.err conftest.$ac_ext | |
12771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12773 | ||
12774 | # So? What about this header? | |
32ddf007 VS |
12775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12776 | yes:no: ) | |
e6cc62c6 VS |
12777 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12778 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12780 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12781 | ac_header_preproc=yes | |
e6cc62c6 | 12782 | ;; |
32ddf007 | 12783 | no:yes:* ) |
e6cc62c6 VS |
12784 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12785 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12786 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12787 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12788 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12789 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12790 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12791 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12794 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12795 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12796 | ( |
12797 | cat <<\_ASBOX | |
32ddf007 VS |
12798 | ## ----------------------------------------- ## |
12799 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12800 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12801 | _ASBOX |
12802 | ) | | |
12803 | sed "s/^/$as_me: WARNING: /" >&2 | |
12804 | ;; | |
12805 | esac | |
12806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12810 | else |
32ddf007 | 12811 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
12812 | fi |
12813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12815 | ||
21d1c967 | 12816 | fi |
e6cc62c6 VS |
12817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12818 | cat >>confdefs.h <<_ACEOF | |
12819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12820 | _ACEOF | |
12821 | ||
12822 | fi | |
12823 | ||
21d1c967 | 12824 | done |
4f14bcd8 | 12825 | |
5c6fa7d2 | 12826 | |
e6cc62c6 | 12827 | for ac_header in malloc.h |
21d1c967 | 12828 | do |
e6cc62c6 VS |
12829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12830 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12835 | fi | |
12836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12838 | else | |
12839 | # Is the header compilable? | |
12840 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12841 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12842 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12843 | /* confdefs.h. */ |
12844 | _ACEOF | |
12845 | cat confdefs.h >>conftest.$ac_ext | |
12846 | cat >>conftest.$ac_ext <<_ACEOF | |
12847 | /* end confdefs.h. */ | |
12848 | $ac_includes_default | |
12849 | #include <$ac_header> | |
12850 | _ACEOF | |
12851 | rm -f conftest.$ac_objext | |
12852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 12853 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 12854 | ac_status=$? |
32ddf007 VS |
12855 | grep -v '^ *+' conftest.er1 >conftest.err |
12856 | rm -f conftest.er1 | |
12857 | cat conftest.err >&5 | |
e6cc62c6 VS |
12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12859 | (exit $ac_status); } && | |
32ddf007 VS |
12860 | { ac_try='test -z "$ac_c_werror_flag" |
12861 | || test ! -s conftest.err' | |
12862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12863 | (eval $ac_try) 2>&5 | |
12864 | ac_status=$? | |
12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12866 | (exit $ac_status); }; } && | |
12867 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
12868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12869 | (eval $ac_try) 2>&5 | |
12870 | ac_status=$? | |
12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12872 | (exit $ac_status); }; }; then | |
12873 | ac_header_compiler=yes | |
12874 | else | |
12875 | echo "$as_me: failed program was:" >&5 | |
12876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12877 | ||
12878 | ac_header_compiler=no | |
12879 | fi | |
32ddf007 | 12880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12882 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12883 | ||
12884 | # Is the header present? | |
12885 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12886 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12887 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12888 | /* confdefs.h. */ |
12889 | _ACEOF | |
12890 | cat confdefs.h >>conftest.$ac_ext | |
12891 | cat >>conftest.$ac_ext <<_ACEOF | |
12892 | /* end confdefs.h. */ | |
12893 | #include <$ac_header> | |
12894 | _ACEOF | |
12895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12897 | ac_status=$? | |
12898 | grep -v '^ *+' conftest.er1 >conftest.err | |
12899 | rm -f conftest.er1 | |
12900 | cat conftest.err >&5 | |
12901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12902 | (exit $ac_status); } >/dev/null; then | |
12903 | if test -s conftest.err; then | |
12904 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 12905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
12906 | else |
12907 | ac_cpp_err= | |
12908 | fi | |
12909 | else | |
12910 | ac_cpp_err=yes | |
12911 | fi | |
12912 | if test -z "$ac_cpp_err"; then | |
12913 | ac_header_preproc=yes | |
12914 | else | |
12915 | echo "$as_me: failed program was:" >&5 | |
12916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12917 | ||
12918 | ac_header_preproc=no | |
12919 | fi | |
12920 | rm -f conftest.err conftest.$ac_ext | |
12921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12922 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12923 | ||
12924 | # So? What about this header? | |
32ddf007 VS |
12925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12926 | yes:no: ) | |
e6cc62c6 VS |
12927 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12928 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12930 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12931 | ac_header_preproc=yes | |
e6cc62c6 | 12932 | ;; |
32ddf007 | 12933 | no:yes:* ) |
e6cc62c6 VS |
12934 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
12936 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12937 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12938 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12939 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12940 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12941 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
12942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12943 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
12944 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12945 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
12946 | ( |
12947 | cat <<\_ASBOX | |
32ddf007 VS |
12948 | ## ----------------------------------------- ## |
12949 | ## Report this to wx-dev@lists.wxwindows.org ## | |
12950 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
12951 | _ASBOX |
12952 | ) | | |
12953 | sed "s/^/$as_me: WARNING: /" >&2 | |
12954 | ;; | |
12955 | esac | |
12956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12960 | else | |
32ddf007 | 12961 | eval "$as_ac_Header=\$ac_header_preproc" |
d4158b5d | 12962 | fi |
e6cc62c6 VS |
12963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12965 | ||
21d1c967 | 12966 | fi |
e6cc62c6 VS |
12967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12968 | cat >>confdefs.h <<_ACEOF | |
12969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12970 | _ACEOF | |
12971 | ||
12972 | fi | |
12973 | ||
12974 | done | |
12975 | ||
12976 | ||
12977 | for ac_header in unistd.h | |
12978 | do | |
12979 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12985 | fi | |
12986 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12987 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12988 | else | |
12989 | # Is the header compilable? | |
12990 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12991 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12992 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
12993 | /* confdefs.h. */ |
12994 | _ACEOF | |
12995 | cat confdefs.h >>conftest.$ac_ext | |
12996 | cat >>conftest.$ac_ext <<_ACEOF | |
12997 | /* end confdefs.h. */ | |
12998 | $ac_includes_default | |
12999 | #include <$ac_header> | |
13000 | _ACEOF | |
13001 | rm -f conftest.$ac_objext | |
13002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13003 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13004 | ac_status=$? |
32ddf007 VS |
13005 | grep -v '^ *+' conftest.er1 >conftest.err |
13006 | rm -f conftest.er1 | |
13007 | cat conftest.err >&5 | |
e6cc62c6 VS |
13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13009 | (exit $ac_status); } && | |
32ddf007 VS |
13010 | { ac_try='test -z "$ac_c_werror_flag" |
13011 | || test ! -s conftest.err' | |
13012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13013 | (eval $ac_try) 2>&5 | |
13014 | ac_status=$? | |
13015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13016 | (exit $ac_status); }; } && | |
13017 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13019 | (eval $ac_try) 2>&5 | |
13020 | ac_status=$? | |
13021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13022 | (exit $ac_status); }; }; then | |
13023 | ac_header_compiler=yes | |
13024 | else | |
13025 | echo "$as_me: failed program was:" >&5 | |
13026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13027 | ||
13028 | ac_header_compiler=no | |
13029 | fi | |
32ddf007 | 13030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13031 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13032 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13033 | ||
13034 | # Is the header present? | |
13035 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13036 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13037 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13038 | /* confdefs.h. */ |
13039 | _ACEOF | |
13040 | cat confdefs.h >>conftest.$ac_ext | |
13041 | cat >>conftest.$ac_ext <<_ACEOF | |
13042 | /* end confdefs.h. */ | |
13043 | #include <$ac_header> | |
13044 | _ACEOF | |
13045 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13046 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13047 | ac_status=$? | |
13048 | grep -v '^ *+' conftest.er1 >conftest.err | |
13049 | rm -f conftest.er1 | |
13050 | cat conftest.err >&5 | |
13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13052 | (exit $ac_status); } >/dev/null; then | |
13053 | if test -s conftest.err; then | |
13054 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13055 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13056 | else |
13057 | ac_cpp_err= | |
13058 | fi | |
a0b9e27f | 13059 | else |
e6cc62c6 VS |
13060 | ac_cpp_err=yes |
13061 | fi | |
13062 | if test -z "$ac_cpp_err"; then | |
13063 | ac_header_preproc=yes | |
13064 | else | |
13065 | echo "$as_me: failed program was:" >&5 | |
13066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13067 | ||
13068 | ac_header_preproc=no | |
13069 | fi | |
13070 | rm -f conftest.err conftest.$ac_ext | |
13071 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13072 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13073 | ||
13074 | # So? What about this header? | |
32ddf007 VS |
13075 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13076 | yes:no: ) | |
e6cc62c6 VS |
13077 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13078 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13079 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13080 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13081 | ac_header_preproc=yes | |
e6cc62c6 | 13082 | ;; |
32ddf007 | 13083 | no:yes:* ) |
e6cc62c6 VS |
13084 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13085 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13086 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13087 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13088 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13089 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13090 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13091 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13093 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13094 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13095 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13096 | ( |
13097 | cat <<\_ASBOX | |
32ddf007 VS |
13098 | ## ----------------------------------------- ## |
13099 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13100 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13101 | _ASBOX |
13102 | ) | | |
13103 | sed "s/^/$as_me: WARNING: /" >&2 | |
13104 | ;; | |
13105 | esac | |
13106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13110 | else | |
32ddf007 | 13111 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13112 | fi |
13113 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13114 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13115 | ||
13116 | fi | |
13117 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13118 | cat >>confdefs.h <<_ACEOF | |
13119 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13120 | _ACEOF | |
13121 | ||
d4158b5d | 13122 | fi |
e6cc62c6 | 13123 | |
21d1c967 | 13124 | done |
f6bcfd97 | 13125 | |
e6cc62c6 VS |
13126 | |
13127 | for ac_header in wchar.h | |
13128 | do | |
13129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13135 | fi | |
13136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13138 | else | |
13139 | # Is the header compilable? | |
13140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13142 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13143 | /* confdefs.h. */ |
13144 | _ACEOF | |
13145 | cat confdefs.h >>conftest.$ac_ext | |
13146 | cat >>conftest.$ac_ext <<_ACEOF | |
13147 | /* end confdefs.h. */ | |
13148 | $ac_includes_default | |
13149 | #include <$ac_header> | |
13150 | _ACEOF | |
13151 | rm -f conftest.$ac_objext | |
13152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13153 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13154 | ac_status=$? |
32ddf007 VS |
13155 | grep -v '^ *+' conftest.er1 >conftest.err |
13156 | rm -f conftest.er1 | |
13157 | cat conftest.err >&5 | |
e6cc62c6 VS |
13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13159 | (exit $ac_status); } && | |
32ddf007 VS |
13160 | { ac_try='test -z "$ac_c_werror_flag" |
13161 | || test ! -s conftest.err' | |
13162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13163 | (eval $ac_try) 2>&5 | |
13164 | ac_status=$? | |
13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13166 | (exit $ac_status); }; } && | |
13167 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13169 | (eval $ac_try) 2>&5 | |
13170 | ac_status=$? | |
13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13172 | (exit $ac_status); }; }; then | |
13173 | ac_header_compiler=yes | |
13174 | else | |
13175 | echo "$as_me: failed program was:" >&5 | |
13176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13177 | ||
13178 | ac_header_compiler=no | |
13179 | fi | |
32ddf007 | 13180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13181 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13182 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13183 | ||
13184 | # Is the header present? | |
13185 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13187 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13188 | /* confdefs.h. */ |
13189 | _ACEOF | |
13190 | cat confdefs.h >>conftest.$ac_ext | |
13191 | cat >>conftest.$ac_ext <<_ACEOF | |
13192 | /* end confdefs.h. */ | |
13193 | #include <$ac_header> | |
13194 | _ACEOF | |
13195 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13196 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13197 | ac_status=$? | |
13198 | grep -v '^ *+' conftest.er1 >conftest.err | |
13199 | rm -f conftest.er1 | |
13200 | cat conftest.err >&5 | |
13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13202 | (exit $ac_status); } >/dev/null; then | |
13203 | if test -s conftest.err; then | |
13204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13205 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13206 | else |
13207 | ac_cpp_err= | |
13208 | fi | |
13209 | else | |
13210 | ac_cpp_err=yes | |
13211 | fi | |
13212 | if test -z "$ac_cpp_err"; then | |
13213 | ac_header_preproc=yes | |
13214 | else | |
13215 | echo "$as_me: failed program was:" >&5 | |
13216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13217 | ||
13218 | ac_header_preproc=no | |
13219 | fi | |
13220 | rm -f conftest.err conftest.$ac_ext | |
13221 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13222 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13223 | ||
13224 | # So? What about this header? | |
32ddf007 VS |
13225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13226 | yes:no: ) | |
e6cc62c6 VS |
13227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13231 | ac_header_preproc=yes | |
e6cc62c6 | 13232 | ;; |
32ddf007 | 13233 | no:yes:* ) |
e6cc62c6 VS |
13234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13246 | ( |
13247 | cat <<\_ASBOX | |
32ddf007 VS |
13248 | ## ----------------------------------------- ## |
13249 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13250 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13251 | _ASBOX |
13252 | ) | | |
13253 | sed "s/^/$as_me: WARNING: /" >&2 | |
13254 | ;; | |
13255 | esac | |
13256 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13257 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13260 | else | |
32ddf007 | 13261 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13262 | fi |
13263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13264 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13265 | ||
90dd450c | 13266 | fi |
e6cc62c6 VS |
13267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13268 | cat >>confdefs.h <<_ACEOF | |
13269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13270 | _ACEOF | |
13271 | ||
13272 | fi | |
13273 | ||
13274 | done | |
90dd450c | 13275 | |
e6cc62c6 VS |
13276 | |
13277 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13278 | ||
13279 | for ac_header in wcstr.h | |
21d1c967 | 13280 | do |
e6cc62c6 VS |
13281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13283 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13287 | fi | |
13288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13290 | else | |
13291 | # Is the header compilable? | |
13292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13294 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13295 | /* confdefs.h. */ |
13296 | _ACEOF | |
13297 | cat confdefs.h >>conftest.$ac_ext | |
13298 | cat >>conftest.$ac_ext <<_ACEOF | |
13299 | /* end confdefs.h. */ | |
13300 | $ac_includes_default | |
13301 | #include <$ac_header> | |
13302 | _ACEOF | |
13303 | rm -f conftest.$ac_objext | |
13304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13305 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13306 | ac_status=$? |
32ddf007 VS |
13307 | grep -v '^ *+' conftest.er1 >conftest.err |
13308 | rm -f conftest.er1 | |
13309 | cat conftest.err >&5 | |
e6cc62c6 VS |
13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13311 | (exit $ac_status); } && | |
32ddf007 VS |
13312 | { ac_try='test -z "$ac_c_werror_flag" |
13313 | || test ! -s conftest.err' | |
13314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13315 | (eval $ac_try) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); }; } && | |
13319 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13321 | (eval $ac_try) 2>&5 | |
13322 | ac_status=$? | |
13323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13324 | (exit $ac_status); }; }; then | |
13325 | ac_header_compiler=yes | |
13326 | else | |
13327 | echo "$as_me: failed program was:" >&5 | |
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13329 | ||
13330 | ac_header_compiler=no | |
13331 | fi | |
32ddf007 | 13332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13334 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13335 | ||
13336 | # Is the header present? | |
13337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13339 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13340 | /* confdefs.h. */ |
13341 | _ACEOF | |
13342 | cat confdefs.h >>conftest.$ac_ext | |
13343 | cat >>conftest.$ac_ext <<_ACEOF | |
13344 | /* end confdefs.h. */ | |
13345 | #include <$ac_header> | |
13346 | _ACEOF | |
13347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13349 | ac_status=$? | |
13350 | grep -v '^ *+' conftest.er1 >conftest.err | |
13351 | rm -f conftest.er1 | |
13352 | cat conftest.err >&5 | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); } >/dev/null; then | |
13355 | if test -s conftest.err; then | |
13356 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13358 | else |
13359 | ac_cpp_err= | |
13360 | fi | |
13361 | else | |
13362 | ac_cpp_err=yes | |
13363 | fi | |
13364 | if test -z "$ac_cpp_err"; then | |
13365 | ac_header_preproc=yes | |
13366 | else | |
13367 | echo "$as_me: failed program was:" >&5 | |
13368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13369 | ||
13370 | ac_header_preproc=no | |
13371 | fi | |
13372 | rm -f conftest.err conftest.$ac_ext | |
13373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13374 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13375 | ||
13376 | # So? What about this header? | |
32ddf007 VS |
13377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13378 | yes:no: ) | |
e6cc62c6 VS |
13379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13383 | ac_header_preproc=yes | |
e6cc62c6 | 13384 | ;; |
32ddf007 | 13385 | no:yes:* ) |
e6cc62c6 VS |
13386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13398 | ( |
13399 | cat <<\_ASBOX | |
32ddf007 VS |
13400 | ## ----------------------------------------- ## |
13401 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13402 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13403 | _ASBOX |
13404 | ) | | |
13405 | sed "s/^/$as_me: WARNING: /" >&2 | |
13406 | ;; | |
13407 | esac | |
13408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13412 | else | |
32ddf007 | 13413 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13414 | fi |
e6cc62c6 VS |
13415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13417 | ||
4f14bcd8 | 13418 | fi |
e6cc62c6 VS |
13419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13420 | cat >>confdefs.h <<_ACEOF | |
13421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13422 | _ACEOF | |
13423 | ||
13424 | fi | |
13425 | ||
13426 | done | |
13427 | ||
13428 | fi | |
13429 | ||
13430 | ||
13431 | for ac_header in fnmatch.h | |
13432 | do | |
13433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13439 | fi | |
13440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13442 | else | |
13443 | # Is the header compilable? | |
13444 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13445 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13446 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13447 | /* confdefs.h. */ |
13448 | _ACEOF | |
13449 | cat confdefs.h >>conftest.$ac_ext | |
13450 | cat >>conftest.$ac_ext <<_ACEOF | |
13451 | /* end confdefs.h. */ | |
13452 | $ac_includes_default | |
13453 | #include <$ac_header> | |
13454 | _ACEOF | |
13455 | rm -f conftest.$ac_objext | |
13456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13457 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13458 | ac_status=$? |
32ddf007 VS |
13459 | grep -v '^ *+' conftest.er1 >conftest.err |
13460 | rm -f conftest.er1 | |
13461 | cat conftest.err >&5 | |
e6cc62c6 VS |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13463 | (exit $ac_status); } && | |
32ddf007 VS |
13464 | { ac_try='test -z "$ac_c_werror_flag" |
13465 | || test ! -s conftest.err' | |
13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13467 | (eval $ac_try) 2>&5 | |
13468 | ac_status=$? | |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); }; } && | |
13471 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13473 | (eval $ac_try) 2>&5 | |
13474 | ac_status=$? | |
13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13476 | (exit $ac_status); }; }; then | |
13477 | ac_header_compiler=yes | |
13478 | else | |
13479 | echo "$as_me: failed program was:" >&5 | |
13480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13481 | ||
13482 | ac_header_compiler=no | |
13483 | fi | |
32ddf007 | 13484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13486 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13487 | ||
13488 | # Is the header present? | |
13489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13491 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13492 | /* confdefs.h. */ |
13493 | _ACEOF | |
13494 | cat confdefs.h >>conftest.$ac_ext | |
13495 | cat >>conftest.$ac_ext <<_ACEOF | |
13496 | /* end confdefs.h. */ | |
13497 | #include <$ac_header> | |
13498 | _ACEOF | |
13499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13501 | ac_status=$? | |
13502 | grep -v '^ *+' conftest.er1 >conftest.err | |
13503 | rm -f conftest.er1 | |
13504 | cat conftest.err >&5 | |
13505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13506 | (exit $ac_status); } >/dev/null; then | |
13507 | if test -s conftest.err; then | |
13508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13510 | else |
13511 | ac_cpp_err= | |
13512 | fi | |
13513 | else | |
13514 | ac_cpp_err=yes | |
13515 | fi | |
13516 | if test -z "$ac_cpp_err"; then | |
13517 | ac_header_preproc=yes | |
13518 | else | |
13519 | echo "$as_me: failed program was:" >&5 | |
13520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13521 | ||
13522 | ac_header_preproc=no | |
13523 | fi | |
13524 | rm -f conftest.err conftest.$ac_ext | |
13525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13526 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13527 | ||
13528 | # So? What about this header? | |
32ddf007 VS |
13529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13530 | yes:no: ) | |
e6cc62c6 VS |
13531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13534 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13535 | ac_header_preproc=yes | |
e6cc62c6 | 13536 | ;; |
32ddf007 | 13537 | no:yes:* ) |
e6cc62c6 VS |
13538 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13539 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13540 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13541 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13542 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13543 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13544 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13545 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13548 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13549 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13550 | ( |
13551 | cat <<\_ASBOX | |
32ddf007 VS |
13552 | ## ----------------------------------------- ## |
13553 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13554 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13555 | _ASBOX |
13556 | ) | | |
13557 | sed "s/^/$as_me: WARNING: /" >&2 | |
13558 | ;; | |
13559 | esac | |
13560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13564 | else |
32ddf007 | 13565 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
13566 | fi |
13567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13569 | ||
21d1c967 | 13570 | fi |
e6cc62c6 VS |
13571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13572 | cat >>confdefs.h <<_ACEOF | |
13573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13574 | _ACEOF | |
13575 | ||
13576 | fi | |
13577 | ||
21d1c967 | 13578 | done |
90dd450c | 13579 | |
5c6fa7d2 | 13580 | |
a0b9e27f | 13581 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13582 | |
13583 | for ac_func in fnmatch | |
21d1c967 | 13584 | do |
e6cc62c6 VS |
13585 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13586 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13587 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13588 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13590 | else | |
13591 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13592 | /* confdefs.h. */ |
13593 | _ACEOF | |
13594 | cat confdefs.h >>conftest.$ac_ext | |
13595 | cat >>conftest.$ac_ext <<_ACEOF | |
13596 | /* end confdefs.h. */ | |
32ddf007 VS |
13597 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13598 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13599 | #define $ac_func innocuous_$ac_func | |
13600 | ||
a0b9e27f | 13601 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13602 | which can conflict with char $ac_func (); below. |
13603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13604 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 13605 | |
e6cc62c6 VS |
13606 | #ifdef __STDC__ |
13607 | # include <limits.h> | |
13608 | #else | |
13609 | # include <assert.h> | |
13610 | #endif | |
32ddf007 VS |
13611 | |
13612 | #undef $ac_func | |
13613 | ||
a0b9e27f | 13614 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13615 | #ifdef __cplusplus |
13616 | extern "C" | |
13617 | { | |
13618 | #endif | |
a0b9e27f | 13619 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13620 | builtin and then its argument prototype would still apply. */ |
13621 | char $ac_func (); | |
a0b9e27f MB |
13622 | /* The GNU C library defines this for functions which it implements |
13623 | to always fail with ENOSYS. Some functions are actually named | |
13624 | something starting with __ and the normal name is an alias. */ | |
13625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13626 | choke me | |
13627 | #else | |
e6cc62c6 VS |
13628 | char (*f) () = $ac_func; |
13629 | #endif | |
13630 | #ifdef __cplusplus | |
13631 | } | |
a0b9e27f MB |
13632 | #endif |
13633 | ||
e6cc62c6 VS |
13634 | int |
13635 | main () | |
13636 | { | |
13637 | return f != $ac_func; | |
13638 | ; | |
13639 | return 0; | |
13640 | } | |
13641 | _ACEOF | |
13642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 13644 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 13645 | ac_status=$? |
32ddf007 VS |
13646 | grep -v '^ *+' conftest.er1 >conftest.err |
13647 | rm -f conftest.er1 | |
13648 | cat conftest.err >&5 | |
e6cc62c6 VS |
13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13650 | (exit $ac_status); } && | |
32ddf007 VS |
13651 | { ac_try='test -z "$ac_c_werror_flag" |
13652 | || test ! -s conftest.err' | |
13653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13654 | (eval $ac_try) 2>&5 | |
13655 | ac_status=$? | |
13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13657 | (exit $ac_status); }; } && | |
13658 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13660 | (eval $ac_try) 2>&5 | |
13661 | ac_status=$? | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); }; }; then | |
13664 | eval "$as_ac_var=yes" | |
13665 | else | |
13666 | echo "$as_me: failed program was:" >&5 | |
13667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13668 | ||
13669 | eval "$as_ac_var=no" | |
13670 | fi | |
32ddf007 VS |
13671 | rm -f conftest.err conftest.$ac_objext \ |
13672 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
13673 | fi |
13674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13675 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13676 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13677 | cat >>confdefs.h <<_ACEOF | |
13678 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13679 | _ACEOF | |
32832908 | 13680 | |
21d1c967 GD |
13681 | fi |
13682 | done | |
90dd450c | 13683 | |
a0b9e27f | 13684 | fi |
90dd450c | 13685 | |
e6cc62c6 VS |
13686 | |
13687 | for ac_header in langinfo.h | |
21d1c967 | 13688 | do |
e6cc62c6 VS |
13689 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13691 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13692 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13693 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13695 | fi | |
13696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13697 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13698 | else | |
13699 | # Is the header compilable? | |
13700 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13701 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13702 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13703 | /* confdefs.h. */ |
13704 | _ACEOF | |
13705 | cat confdefs.h >>conftest.$ac_ext | |
13706 | cat >>conftest.$ac_ext <<_ACEOF | |
13707 | /* end confdefs.h. */ | |
13708 | $ac_includes_default | |
13709 | #include <$ac_header> | |
13710 | _ACEOF | |
13711 | rm -f conftest.$ac_objext | |
13712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13713 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13714 | ac_status=$? |
32ddf007 VS |
13715 | grep -v '^ *+' conftest.er1 >conftest.err |
13716 | rm -f conftest.er1 | |
13717 | cat conftest.err >&5 | |
e6cc62c6 VS |
13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13719 | (exit $ac_status); } && | |
32ddf007 VS |
13720 | { ac_try='test -z "$ac_c_werror_flag" |
13721 | || test ! -s conftest.err' | |
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); }; } && | |
13727 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13729 | (eval $ac_try) 2>&5 | |
13730 | ac_status=$? | |
13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 | (exit $ac_status); }; }; then | |
13733 | ac_header_compiler=yes | |
13734 | else | |
13735 | echo "$as_me: failed program was:" >&5 | |
13736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13737 | ||
13738 | ac_header_compiler=no | |
13739 | fi | |
32ddf007 | 13740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13741 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13742 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13743 | ||
13744 | # Is the header present? | |
13745 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13746 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13747 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13748 | /* confdefs.h. */ |
13749 | _ACEOF | |
13750 | cat confdefs.h >>conftest.$ac_ext | |
13751 | cat >>conftest.$ac_ext <<_ACEOF | |
13752 | /* end confdefs.h. */ | |
13753 | #include <$ac_header> | |
13754 | _ACEOF | |
13755 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13756 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13757 | ac_status=$? | |
13758 | grep -v '^ *+' conftest.er1 >conftest.err | |
13759 | rm -f conftest.er1 | |
13760 | cat conftest.err >&5 | |
13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13762 | (exit $ac_status); } >/dev/null; then | |
13763 | if test -s conftest.err; then | |
13764 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13765 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13766 | else |
13767 | ac_cpp_err= | |
13768 | fi | |
13769 | else | |
13770 | ac_cpp_err=yes | |
13771 | fi | |
13772 | if test -z "$ac_cpp_err"; then | |
13773 | ac_header_preproc=yes | |
13774 | else | |
13775 | echo "$as_me: failed program was:" >&5 | |
13776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13777 | ||
13778 | ac_header_preproc=no | |
13779 | fi | |
13780 | rm -f conftest.err conftest.$ac_ext | |
13781 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13782 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13783 | ||
13784 | # So? What about this header? | |
32ddf007 VS |
13785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13786 | yes:no: ) | |
e6cc62c6 VS |
13787 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13788 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13790 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13791 | ac_header_preproc=yes | |
e6cc62c6 | 13792 | ;; |
32ddf007 | 13793 | no:yes:* ) |
e6cc62c6 VS |
13794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13798 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13799 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13800 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13801 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13804 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13805 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13806 | ( |
13807 | cat <<\_ASBOX | |
32ddf007 VS |
13808 | ## ----------------------------------------- ## |
13809 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13810 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13811 | _ASBOX |
13812 | ) | | |
13813 | sed "s/^/$as_me: WARNING: /" >&2 | |
13814 | ;; | |
13815 | esac | |
13816 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13820 | else | |
32ddf007 | 13821 | eval "$as_ac_Header=\$ac_header_preproc" |
90dd450c | 13822 | fi |
e6cc62c6 VS |
13823 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13824 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13825 | ||
4f14bcd8 | 13826 | fi |
e6cc62c6 VS |
13827 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13828 | cat >>confdefs.h <<_ACEOF | |
13829 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13830 | _ACEOF | |
13831 | ||
21d1c967 | 13832 | fi |
e6cc62c6 | 13833 | |
21d1c967 | 13834 | done |
3a922bb4 | 13835 | |
8284b0c5 | 13836 | |
4f5a7f74 VZ |
13837 | case "${host}" in |
13838 | *-pc-os2_emx | *-pc-os2-emx ) | |
13839 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13840 | LIBS="$LIBS -lintl" | |
13841 | fi | |
13842 | ;; | |
13843 | esac | |
1542ea39 | 13844 | |
a0b9e27f | 13845 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13846 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13847 | |
eb69fda5 | 13848 | for ac_header in X11/Xlib.h |
21d1c967 | 13849 | do |
e6cc62c6 VS |
13850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13856 | fi | |
13857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13859 | else | |
13860 | # Is the header compilable? | |
13861 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13863 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13864 | /* confdefs.h. */ |
13865 | _ACEOF | |
13866 | cat confdefs.h >>conftest.$ac_ext | |
13867 | cat >>conftest.$ac_ext <<_ACEOF | |
13868 | /* end confdefs.h. */ | |
13869 | $ac_includes_default | |
13870 | #include <$ac_header> | |
13871 | _ACEOF | |
13872 | rm -f conftest.$ac_objext | |
13873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 13874 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 13875 | ac_status=$? |
32ddf007 VS |
13876 | grep -v '^ *+' conftest.er1 >conftest.err |
13877 | rm -f conftest.er1 | |
13878 | cat conftest.err >&5 | |
e6cc62c6 VS |
13879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13880 | (exit $ac_status); } && | |
32ddf007 VS |
13881 | { ac_try='test -z "$ac_c_werror_flag" |
13882 | || test ! -s conftest.err' | |
13883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13884 | (eval $ac_try) 2>&5 | |
13885 | ac_status=$? | |
13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13887 | (exit $ac_status); }; } && | |
13888 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; }; then | |
13894 | ac_header_compiler=yes | |
13895 | else | |
13896 | echo "$as_me: failed program was:" >&5 | |
13897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13898 | ||
13899 | ac_header_compiler=no | |
13900 | fi | |
32ddf007 | 13901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13902 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13903 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13904 | ||
13905 | # Is the header present? | |
13906 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13907 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13908 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
13909 | /* confdefs.h. */ |
13910 | _ACEOF | |
13911 | cat confdefs.h >>conftest.$ac_ext | |
13912 | cat >>conftest.$ac_ext <<_ACEOF | |
13913 | /* end confdefs.h. */ | |
13914 | #include <$ac_header> | |
13915 | _ACEOF | |
13916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13918 | ac_status=$? | |
13919 | grep -v '^ *+' conftest.er1 >conftest.err | |
13920 | rm -f conftest.er1 | |
13921 | cat conftest.err >&5 | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); } >/dev/null; then | |
13924 | if test -s conftest.err; then | |
13925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 13926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
13927 | else |
13928 | ac_cpp_err= | |
13929 | fi | |
13930 | else | |
13931 | ac_cpp_err=yes | |
13932 | fi | |
13933 | if test -z "$ac_cpp_err"; then | |
13934 | ac_header_preproc=yes | |
13935 | else | |
13936 | echo "$as_me: failed program was:" >&5 | |
13937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13938 | ||
13939 | ac_header_preproc=no | |
13940 | fi | |
13941 | rm -f conftest.err conftest.$ac_ext | |
13942 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13943 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13944 | ||
13945 | # So? What about this header? | |
32ddf007 VS |
13946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13947 | yes:no: ) | |
e6cc62c6 VS |
13948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
13950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13952 | ac_header_preproc=yes | |
e6cc62c6 | 13953 | ;; |
32ddf007 | 13954 | no:yes:* ) |
e6cc62c6 VS |
13955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
13957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
13963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
13965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
13967 | ( |
13968 | cat <<\_ASBOX | |
32ddf007 VS |
13969 | ## ----------------------------------------- ## |
13970 | ## Report this to wx-dev@lists.wxwindows.org ## | |
13971 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
13972 | _ASBOX |
13973 | ) | | |
13974 | sed "s/^/$as_me: WARNING: /" >&2 | |
13975 | ;; | |
13976 | esac | |
13977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13981 | else | |
32ddf007 | 13982 | eval "$as_ac_Header=\$ac_header_preproc" |
3a922bb4 | 13983 | fi |
e6cc62c6 VS |
13984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13986 | ||
90dd450c | 13987 | fi |
e6cc62c6 VS |
13988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13989 | cat >>confdefs.h <<_ACEOF | |
13990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13991 | _ACEOF | |
13992 | ||
247f5006 | 13993 | fi |
e6cc62c6 | 13994 | |
eb69fda5 VS |
13995 | done |
13996 | ||
13997 | ||
13998 | for ac_header in X11/XKBlib.h | |
13999 | do | |
14000 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14005 | else | |
14006 | cat >conftest.$ac_ext <<_ACEOF | |
eb69fda5 VS |
14007 | /* confdefs.h. */ |
14008 | _ACEOF | |
14009 | cat confdefs.h >>conftest.$ac_ext | |
14010 | cat >>conftest.$ac_ext <<_ACEOF | |
14011 | /* end confdefs.h. */ | |
14012 | ||
14013 | #if HAVE_X11_XLIB_H | |
14014 | #include <X11/Xlib.h> | |
14015 | #endif | |
14016 | ||
14017 | ||
14018 | #include <$ac_header> | |
14019 | _ACEOF | |
14020 | rm -f conftest.$ac_objext | |
14021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14022 | (eval $ac_compile) 2>conftest.er1 |
eb69fda5 | 14023 | ac_status=$? |
32ddf007 VS |
14024 | grep -v '^ *+' conftest.er1 >conftest.err |
14025 | rm -f conftest.er1 | |
14026 | cat conftest.err >&5 | |
eb69fda5 VS |
14027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14028 | (exit $ac_status); } && | |
32ddf007 VS |
14029 | { ac_try='test -z "$ac_c_werror_flag" |
14030 | || test ! -s conftest.err' | |
14031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14032 | (eval $ac_try) 2>&5 | |
14033 | ac_status=$? | |
14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14035 | (exit $ac_status); }; } && | |
14036 | { ac_try='test -s conftest.$ac_objext' | |
eb69fda5 VS |
14037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14038 | (eval $ac_try) 2>&5 | |
14039 | ac_status=$? | |
14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14041 | (exit $ac_status); }; }; then | |
14042 | eval "$as_ac_Header=yes" | |
14043 | else | |
14044 | echo "$as_me: failed program was:" >&5 | |
14045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14046 | ||
14047 | eval "$as_ac_Header=no" | |
14048 | fi | |
32ddf007 | 14049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
14050 | fi |
14051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14054 | cat >>confdefs.h <<_ACEOF | |
14055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14056 | _ACEOF | |
14057 | ||
14058 | fi | |
14059 | ||
247f5006 VZ |
14060 | done |
14061 | ||
a0b9e27f MB |
14062 | fi |
14063 | fi | |
247f5006 | 14064 | |
247f5006 | 14065 | |
e6cc62c6 VS |
14066 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
14067 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14068 | if test "${ac_cv_c_const+set}" = set; then | |
14069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14070 | else | |
14071 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14072 | /* confdefs.h. */ |
14073 | _ACEOF | |
14074 | cat confdefs.h >>conftest.$ac_ext | |
14075 | cat >>conftest.$ac_ext <<_ACEOF | |
14076 | /* end confdefs.h. */ | |
14077 | ||
14078 | int | |
14079 | main () | |
14080 | { | |
14081 | /* FIXME: Include the comments suggested by Paul. */ | |
14082 | #ifndef __cplusplus | |
14083 | /* Ultrix mips cc rejects this. */ | |
14084 | typedef int charset[2]; | |
14085 | const charset x; | |
14086 | /* SunOS 4.1.1 cc rejects this. */ | |
14087 | char const *const *ccp; | |
14088 | char **p; | |
14089 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14090 | struct point {int x, y;}; | |
14091 | static struct point const zero = {0,0}; | |
14092 | /* AIX XL C 1.02.0.0 rejects this. | |
14093 | It does not let you subtract one const X* pointer from another in | |
14094 | an arm of an if-expression whose if-part is not a constant | |
14095 | expression */ | |
14096 | const char *g = "string"; | |
14097 | ccp = &g + (g ? g-g : 0); | |
14098 | /* HPUX 7.0 cc rejects these. */ | |
14099 | ++ccp; | |
14100 | p = (char**) ccp; | |
14101 | ccp = (char const *const *) p; | |
14102 | { /* SCO 3.2v4 cc rejects this. */ | |
14103 | char *t; | |
14104 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14105 | ||
14106 | *t++ = 0; | |
14107 | } | |
14108 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14109 | int x[] = {25, 17}; | |
14110 | const int *foo = &x[0]; | |
14111 | ++foo; | |
14112 | } | |
14113 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14114 | typedef const int *iptr; | |
14115 | iptr p = 0; | |
14116 | ++p; | |
14117 | } | |
14118 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14119 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14120 | struct s { int j; const int *ap[3]; }; | |
14121 | struct s *b; b->j = 5; | |
14122 | } | |
14123 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14124 | const int foo = 10; | |
14125 | } | |
14126 | #endif | |
14127 | ||
14128 | ; | |
14129 | return 0; | |
14130 | } | |
14131 | _ACEOF | |
14132 | rm -f conftest.$ac_objext | |
14133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14134 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14135 | ac_status=$? |
32ddf007 VS |
14136 | grep -v '^ *+' conftest.er1 >conftest.err |
14137 | rm -f conftest.er1 | |
14138 | cat conftest.err >&5 | |
e6cc62c6 VS |
14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14140 | (exit $ac_status); } && | |
32ddf007 VS |
14141 | { ac_try='test -z "$ac_c_werror_flag" |
14142 | || test ! -s conftest.err' | |
14143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14144 | (eval $ac_try) 2>&5 | |
14145 | ac_status=$? | |
14146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14147 | (exit $ac_status); }; } && | |
14148 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14150 | (eval $ac_try) 2>&5 | |
14151 | ac_status=$? | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); }; }; then | |
a0b9e27f | 14154 | ac_cv_c_const=yes |
247f5006 | 14155 | else |
e6cc62c6 VS |
14156 | echo "$as_me: failed program was:" >&5 |
14157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14158 | ||
14159 | ac_cv_c_const=no | |
247f5006 | 14160 | fi |
32ddf007 | 14161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 14162 | fi |
e6cc62c6 VS |
14163 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
14164 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 14165 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
14166 | |
14167 | cat >>confdefs.h <<\_ACEOF | |
14168 | #define const | |
14169 | _ACEOF | |
10f2d63a | 14170 | |
90dd450c | 14171 | fi |
81809c07 | 14172 | |
e6cc62c6 VS |
14173 | echo "$as_me:$LINENO: checking for inline" >&5 |
14174 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14175 | if test "${ac_cv_c_inline+set}" = set; then | |
14176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 14177 | else |
a0b9e27f MB |
14178 | ac_cv_c_inline=no |
14179 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 14180 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
14181 | /* confdefs.h. */ |
14182 | _ACEOF | |
14183 | cat confdefs.h >>conftest.$ac_ext | |
14184 | cat >>conftest.$ac_ext <<_ACEOF | |
14185 | /* end confdefs.h. */ | |
14186 | #ifndef __cplusplus | |
14187 | typedef int foo_t; | |
14188 | static $ac_kw foo_t static_foo () {return 0; } | |
14189 | $ac_kw foo_t foo () {return 0; } | |
14190 | #endif | |
a0b9e27f | 14191 | |
e6cc62c6 VS |
14192 | _ACEOF |
14193 | rm -f conftest.$ac_objext | |
14194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14195 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14196 | ac_status=$? |
32ddf007 VS |
14197 | grep -v '^ *+' conftest.er1 >conftest.err |
14198 | rm -f conftest.er1 | |
14199 | cat conftest.err >&5 | |
e6cc62c6 VS |
14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14201 | (exit $ac_status); } && | |
32ddf007 VS |
14202 | { ac_try='test -z "$ac_c_werror_flag" |
14203 | || test ! -s conftest.err' | |
14204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14205 | (eval $ac_try) 2>&5 | |
14206 | ac_status=$? | |
14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14208 | (exit $ac_status); }; } && | |
14209 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14211 | (eval $ac_try) 2>&5 | |
14212 | ac_status=$? | |
14213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14214 | (exit $ac_status); }; }; then | |
a0b9e27f | 14215 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 14216 | else |
e6cc62c6 VS |
14217 | echo "$as_me: failed program was:" >&5 |
14218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14219 | ||
247f5006 | 14220 | fi |
32ddf007 | 14221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 14222 | done |
247f5006 VZ |
14223 | |
14224 | fi | |
e6cc62c6 VS |
14225 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
14226 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
32ddf007 VS |
14227 | |
14228 | ||
e6cc62c6 | 14229 | case $ac_cv_c_inline in |
a0b9e27f | 14230 | inline | yes) ;; |
32ddf007 VS |
14231 | *) |
14232 | case $ac_cv_c_inline in | |
14233 | no) ac_val=;; | |
14234 | *) ac_val=$ac_cv_c_inline;; | |
14235 | esac | |
14236 | cat >>confdefs.h <<_ACEOF | |
14237 | #ifndef __cplusplus | |
14238 | #define inline $ac_val | |
14239 | #endif | |
0f87e84c | 14240 | _ACEOF |
32ddf007 | 14241 | ;; |
a0b9e27f | 14242 | esac |
247f5006 | 14243 | |
247f5006 | 14244 | |
e6cc62c6 VS |
14245 | echo "$as_me:$LINENO: checking for char" >&5 |
14246 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14247 | if test "${ac_cv_type_char+set}" = set; then | |
14248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14249 | else | |
14250 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14251 | /* confdefs.h. */ |
14252 | _ACEOF | |
14253 | cat confdefs.h >>conftest.$ac_ext | |
14254 | cat >>conftest.$ac_ext <<_ACEOF | |
14255 | /* end confdefs.h. */ | |
14256 | $ac_includes_default | |
14257 | int | |
14258 | main () | |
14259 | { | |
14260 | if ((char *) 0) | |
14261 | return 0; | |
14262 | if (sizeof (char)) | |
14263 | return 0; | |
14264 | ; | |
14265 | return 0; | |
14266 | } | |
14267 | _ACEOF | |
14268 | rm -f conftest.$ac_objext | |
14269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14270 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14271 | ac_status=$? |
32ddf007 VS |
14272 | grep -v '^ *+' conftest.er1 >conftest.err |
14273 | rm -f conftest.er1 | |
14274 | cat conftest.err >&5 | |
e6cc62c6 VS |
14275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14276 | (exit $ac_status); } && | |
32ddf007 VS |
14277 | { ac_try='test -z "$ac_c_werror_flag" |
14278 | || test ! -s conftest.err' | |
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); }; } && | |
14284 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14286 | (eval $ac_try) 2>&5 | |
14287 | ac_status=$? | |
14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14289 | (exit $ac_status); }; }; then | |
14290 | ac_cv_type_char=yes | |
14291 | else | |
14292 | echo "$as_me: failed program was:" >&5 | |
14293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14294 | ||
14295 | ac_cv_type_char=no | |
14296 | fi | |
32ddf007 | 14297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14298 | fi |
14299 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14300 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14301 | ||
14302 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14303 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14304 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14306 | else | |
14307 | if test "$ac_cv_type_char" = yes; then | |
14308 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14309 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14310 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14311 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 14312 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
14313 | # Depending upon the size, compute the lo and hi bounds. |
14314 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14315 | /* confdefs.h. */ |
14316 | _ACEOF | |
14317 | cat confdefs.h >>conftest.$ac_ext | |
14318 | cat >>conftest.$ac_ext <<_ACEOF | |
14319 | /* end confdefs.h. */ | |
14320 | $ac_includes_default | |
14321 | int | |
14322 | main () | |
14323 | { | |
14324 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14325 | test_array [0] = 0 | |
14326 | ||
14327 | ; | |
14328 | return 0; | |
14329 | } | |
14330 | _ACEOF | |
14331 | rm -f conftest.$ac_objext | |
14332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14333 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14334 | ac_status=$? |
32ddf007 VS |
14335 | grep -v '^ *+' conftest.er1 >conftest.err |
14336 | rm -f conftest.er1 | |
14337 | cat conftest.err >&5 | |
e6cc62c6 VS |
14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14339 | (exit $ac_status); } && | |
32ddf007 VS |
14340 | { ac_try='test -z "$ac_c_werror_flag" |
14341 | || test ! -s conftest.err' | |
14342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14343 | (eval $ac_try) 2>&5 | |
14344 | ac_status=$? | |
14345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14346 | (exit $ac_status); }; } && | |
14347 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14349 | (eval $ac_try) 2>&5 | |
14350 | ac_status=$? | |
14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14352 | (exit $ac_status); }; }; then | |
14353 | ac_lo=0 ac_mid=0 | |
14354 | while :; do | |
14355 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14356 | /* confdefs.h. */ |
14357 | _ACEOF | |
14358 | cat confdefs.h >>conftest.$ac_ext | |
14359 | cat >>conftest.$ac_ext <<_ACEOF | |
14360 | /* end confdefs.h. */ | |
14361 | $ac_includes_default | |
14362 | int | |
14363 | main () | |
14364 | { | |
14365 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14366 | test_array [0] = 0 | |
14367 | ||
14368 | ; | |
14369 | return 0; | |
14370 | } | |
14371 | _ACEOF | |
14372 | rm -f conftest.$ac_objext | |
14373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14374 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14375 | ac_status=$? |
32ddf007 VS |
14376 | grep -v '^ *+' conftest.er1 >conftest.err |
14377 | rm -f conftest.er1 | |
14378 | cat conftest.err >&5 | |
e6cc62c6 VS |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14380 | (exit $ac_status); } && | |
32ddf007 VS |
14381 | { ac_try='test -z "$ac_c_werror_flag" |
14382 | || test ! -s conftest.err' | |
14383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14384 | (eval $ac_try) 2>&5 | |
14385 | ac_status=$? | |
14386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14387 | (exit $ac_status); }; } && | |
14388 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14390 | (eval $ac_try) 2>&5 | |
14391 | ac_status=$? | |
14392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14393 | (exit $ac_status); }; }; then | |
14394 | ac_hi=$ac_mid; break | |
14395 | else | |
14396 | echo "$as_me: failed program was:" >&5 | |
14397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14398 | ||
14399 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14400 | if test $ac_lo -le $ac_mid; then |
14401 | ac_lo= ac_hi= | |
14402 | break | |
14403 | fi | |
14404 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 14405 | fi |
32ddf007 | 14406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14407 | done |
a0b9e27f | 14408 | else |
e6cc62c6 VS |
14409 | echo "$as_me: failed program was:" >&5 |
14410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14411 | ||
14412 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14413 | /* confdefs.h. */ |
14414 | _ACEOF | |
14415 | cat confdefs.h >>conftest.$ac_ext | |
14416 | cat >>conftest.$ac_ext <<_ACEOF | |
14417 | /* end confdefs.h. */ | |
14418 | $ac_includes_default | |
14419 | int | |
14420 | main () | |
14421 | { | |
14422 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14423 | test_array [0] = 0 | |
14424 | ||
14425 | ; | |
14426 | return 0; | |
14427 | } | |
14428 | _ACEOF | |
14429 | rm -f conftest.$ac_objext | |
14430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14431 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14432 | ac_status=$? |
32ddf007 VS |
14433 | grep -v '^ *+' conftest.er1 >conftest.err |
14434 | rm -f conftest.er1 | |
14435 | cat conftest.err >&5 | |
e6cc62c6 VS |
14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14437 | (exit $ac_status); } && | |
32ddf007 VS |
14438 | { ac_try='test -z "$ac_c_werror_flag" |
14439 | || test ! -s conftest.err' | |
14440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14441 | (eval $ac_try) 2>&5 | |
14442 | ac_status=$? | |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14444 | (exit $ac_status); }; } && | |
14445 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14447 | (eval $ac_try) 2>&5 | |
14448 | ac_status=$? | |
14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14450 | (exit $ac_status); }; }; then | |
14451 | ac_hi=-1 ac_mid=-1 | |
14452 | while :; do | |
14453 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14454 | /* confdefs.h. */ |
14455 | _ACEOF | |
14456 | cat confdefs.h >>conftest.$ac_ext | |
14457 | cat >>conftest.$ac_ext <<_ACEOF | |
14458 | /* end confdefs.h. */ | |
14459 | $ac_includes_default | |
14460 | int | |
14461 | main () | |
14462 | { | |
14463 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14464 | test_array [0] = 0 | |
14465 | ||
14466 | ; | |
14467 | return 0; | |
14468 | } | |
14469 | _ACEOF | |
14470 | rm -f conftest.$ac_objext | |
14471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14472 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14473 | ac_status=$? |
32ddf007 VS |
14474 | grep -v '^ *+' conftest.er1 >conftest.err |
14475 | rm -f conftest.er1 | |
14476 | cat conftest.err >&5 | |
e6cc62c6 VS |
14477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14478 | (exit $ac_status); } && | |
32ddf007 VS |
14479 | { ac_try='test -z "$ac_c_werror_flag" |
14480 | || test ! -s conftest.err' | |
14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14482 | (eval $ac_try) 2>&5 | |
14483 | ac_status=$? | |
14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14485 | (exit $ac_status); }; } && | |
14486 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14488 | (eval $ac_try) 2>&5 | |
14489 | ac_status=$? | |
14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14491 | (exit $ac_status); }; }; then | |
14492 | ac_lo=$ac_mid; break | |
14493 | else | |
14494 | echo "$as_me: failed program was:" >&5 | |
14495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14496 | ||
14497 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14498 | if test $ac_mid -le $ac_hi; then |
14499 | ac_lo= ac_hi= | |
14500 | break | |
14501 | fi | |
14502 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14503 | fi |
32ddf007 | 14504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14505 | done |
14506 | else | |
14507 | echo "$as_me: failed program was:" >&5 | |
14508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14509 | ||
14510 | ac_lo= ac_hi= | |
14511 | fi | |
32ddf007 | 14512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14513 | fi |
32ddf007 | 14514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14515 | # Binary search between lo and hi bounds. |
14516 | while test "x$ac_lo" != "x$ac_hi"; do | |
14517 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14518 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14519 | /* confdefs.h. */ |
14520 | _ACEOF | |
14521 | cat confdefs.h >>conftest.$ac_ext | |
14522 | cat >>conftest.$ac_ext <<_ACEOF | |
14523 | /* end confdefs.h. */ | |
14524 | $ac_includes_default | |
14525 | int | |
14526 | main () | |
14527 | { | |
14528 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14529 | test_array [0] = 0 | |
14530 | ||
14531 | ; | |
14532 | return 0; | |
14533 | } | |
14534 | _ACEOF | |
14535 | rm -f conftest.$ac_objext | |
14536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14537 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14538 | ac_status=$? |
32ddf007 VS |
14539 | grep -v '^ *+' conftest.er1 >conftest.err |
14540 | rm -f conftest.er1 | |
14541 | cat conftest.err >&5 | |
e6cc62c6 VS |
14542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14543 | (exit $ac_status); } && | |
32ddf007 VS |
14544 | { ac_try='test -z "$ac_c_werror_flag" |
14545 | || test ! -s conftest.err' | |
14546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14547 | (eval $ac_try) 2>&5 | |
14548 | ac_status=$? | |
14549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14550 | (exit $ac_status); }; } && | |
14551 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14553 | (eval $ac_try) 2>&5 | |
14554 | ac_status=$? | |
14555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14556 | (exit $ac_status); }; }; then | |
14557 | ac_hi=$ac_mid | |
14558 | else | |
14559 | echo "$as_me: failed program was:" >&5 | |
14560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14561 | ||
14562 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14563 | fi | |
32ddf007 | 14564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14565 | done |
14566 | case $ac_lo in | |
14567 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14568 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14569 | See \`config.log' for more details." >&5 | |
14570 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14571 | See \`config.log' for more details." >&2;} | |
14572 | { (exit 1); exit 1; }; } ;; | |
14573 | esac | |
14574 | else | |
14575 | if test "$cross_compiling" = yes; then | |
14576 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14577 | See \`config.log' for more details." >&5 | |
14578 | echo "$as_me: error: cannot run test program while cross compiling | |
14579 | See \`config.log' for more details." >&2;} | |
14580 | { (exit 1); exit 1; }; } | |
14581 | else | |
14582 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14583 | /* confdefs.h. */ |
14584 | _ACEOF | |
14585 | cat confdefs.h >>conftest.$ac_ext | |
14586 | cat >>conftest.$ac_ext <<_ACEOF | |
14587 | /* end confdefs.h. */ | |
14588 | $ac_includes_default | |
14589 | long longval () { return (long) (sizeof (char)); } | |
14590 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14591 | #include <stdio.h> |
e6cc62c6 VS |
14592 | #include <stdlib.h> |
14593 | int | |
14594 | main () | |
247f5006 | 14595 | { |
e6cc62c6 VS |
14596 | |
14597 | FILE *f = fopen ("conftest.val", "w"); | |
14598 | if (! f) | |
14599 | exit (1); | |
14600 | if (((long) (sizeof (char))) < 0) | |
14601 | { | |
14602 | long i = longval (); | |
14603 | if (i != ((long) (sizeof (char)))) | |
14604 | exit (1); | |
14605 | fprintf (f, "%ld\n", i); | |
14606 | } | |
14607 | else | |
14608 | { | |
14609 | unsigned long i = ulongval (); | |
14610 | if (i != ((long) (sizeof (char)))) | |
14611 | exit (1); | |
14612 | fprintf (f, "%lu\n", i); | |
14613 | } | |
14614 | exit (ferror (f) || fclose (f) != 0); | |
14615 | ||
14616 | ; | |
14617 | return 0; | |
52127426 | 14618 | } |
e6cc62c6 VS |
14619 | _ACEOF |
14620 | rm -f conftest$ac_exeext | |
14621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14622 | (eval $ac_link) 2>&5 | |
14623 | ac_status=$? | |
14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14625 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14627 | (eval $ac_try) 2>&5 | |
14628 | ac_status=$? | |
14629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14630 | (exit $ac_status); }; }; then | |
14631 | ac_cv_sizeof_char=`cat conftest.val` | |
14632 | else | |
14633 | echo "$as_me: program exited with status $ac_status" >&5 | |
14634 | echo "$as_me: failed program was:" >&5 | |
14635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14636 | ||
14637 | ( exit $ac_status ) | |
14638 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14639 | See \`config.log' for more details." >&5 | |
14640 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14641 | See \`config.log' for more details." >&2;} | |
14642 | { (exit 1); exit 1; }; } | |
14643 | fi | |
32ddf007 | 14644 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14645 | fi |
14646 | fi | |
14647 | rm -f conftest.val | |
247f5006 | 14648 | else |
a0b9e27f | 14649 | ac_cv_sizeof_char=0 |
247f5006 | 14650 | fi |
247f5006 | 14651 | fi |
e6cc62c6 VS |
14652 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14653 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14654 | cat >>confdefs.h <<_ACEOF | |
14655 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14656 | _ACEOF | |
14657 | ||
14658 | ||
14659 | echo "$as_me:$LINENO: checking for short" >&5 | |
14660 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14661 | if test "${ac_cv_type_short+set}" = set; then | |
14662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14663 | else | |
14664 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14665 | /* confdefs.h. */ |
14666 | _ACEOF | |
14667 | cat confdefs.h >>conftest.$ac_ext | |
14668 | cat >>conftest.$ac_ext <<_ACEOF | |
14669 | /* end confdefs.h. */ | |
14670 | $ac_includes_default | |
14671 | int | |
14672 | main () | |
14673 | { | |
14674 | if ((short *) 0) | |
14675 | return 0; | |
14676 | if (sizeof (short)) | |
14677 | return 0; | |
14678 | ; | |
14679 | return 0; | |
14680 | } | |
14681 | _ACEOF | |
14682 | rm -f conftest.$ac_objext | |
14683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14684 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14685 | ac_status=$? |
32ddf007 VS |
14686 | grep -v '^ *+' conftest.er1 >conftest.err |
14687 | rm -f conftest.er1 | |
14688 | cat conftest.err >&5 | |
e6cc62c6 VS |
14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14690 | (exit $ac_status); } && | |
32ddf007 VS |
14691 | { ac_try='test -z "$ac_c_werror_flag" |
14692 | || test ! -s conftest.err' | |
14693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14694 | (eval $ac_try) 2>&5 | |
14695 | ac_status=$? | |
14696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14697 | (exit $ac_status); }; } && | |
14698 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14700 | (eval $ac_try) 2>&5 | |
14701 | ac_status=$? | |
14702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14703 | (exit $ac_status); }; }; then | |
14704 | ac_cv_type_short=yes | |
14705 | else | |
14706 | echo "$as_me: failed program was:" >&5 | |
14707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14708 | ||
14709 | ac_cv_type_short=no | |
14710 | fi | |
32ddf007 | 14711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14712 | fi |
14713 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14714 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14715 | ||
14716 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14717 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14718 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14720 | else | |
14721 | if test "$ac_cv_type_short" = yes; then | |
14722 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14723 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14724 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14725 | # This bug is HP SR number 8606223364. | |
14726 | if test "$cross_compiling" = yes; then | |
14727 | # Depending upon the size, compute the lo and hi bounds. | |
14728 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14729 | /* confdefs.h. */ |
14730 | _ACEOF | |
14731 | cat confdefs.h >>conftest.$ac_ext | |
14732 | cat >>conftest.$ac_ext <<_ACEOF | |
14733 | /* end confdefs.h. */ | |
14734 | $ac_includes_default | |
14735 | int | |
14736 | main () | |
14737 | { | |
14738 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14739 | test_array [0] = 0 | |
247f5006 | 14740 | |
e6cc62c6 VS |
14741 | ; |
14742 | return 0; | |
14743 | } | |
14744 | _ACEOF | |
14745 | rm -f conftest.$ac_objext | |
14746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14747 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14748 | ac_status=$? |
32ddf007 VS |
14749 | grep -v '^ *+' conftest.er1 >conftest.err |
14750 | rm -f conftest.er1 | |
14751 | cat conftest.err >&5 | |
e6cc62c6 VS |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14753 | (exit $ac_status); } && | |
32ddf007 VS |
14754 | { ac_try='test -z "$ac_c_werror_flag" |
14755 | || test ! -s conftest.err' | |
14756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14757 | (eval $ac_try) 2>&5 | |
14758 | ac_status=$? | |
14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14760 | (exit $ac_status); }; } && | |
14761 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14763 | (eval $ac_try) 2>&5 | |
14764 | ac_status=$? | |
14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14766 | (exit $ac_status); }; }; then | |
14767 | ac_lo=0 ac_mid=0 | |
14768 | while :; do | |
14769 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14770 | /* confdefs.h. */ |
14771 | _ACEOF | |
14772 | cat confdefs.h >>conftest.$ac_ext | |
14773 | cat >>conftest.$ac_ext <<_ACEOF | |
14774 | /* end confdefs.h. */ | |
14775 | $ac_includes_default | |
14776 | int | |
14777 | main () | |
14778 | { | |
14779 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14780 | test_array [0] = 0 | |
14781 | ||
14782 | ; | |
14783 | return 0; | |
14784 | } | |
14785 | _ACEOF | |
14786 | rm -f conftest.$ac_objext | |
14787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14788 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14789 | ac_status=$? |
32ddf007 VS |
14790 | grep -v '^ *+' conftest.er1 >conftest.err |
14791 | rm -f conftest.er1 | |
14792 | cat conftest.err >&5 | |
e6cc62c6 VS |
14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14794 | (exit $ac_status); } && | |
32ddf007 VS |
14795 | { ac_try='test -z "$ac_c_werror_flag" |
14796 | || test ! -s conftest.err' | |
14797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14798 | (eval $ac_try) 2>&5 | |
14799 | ac_status=$? | |
14800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14801 | (exit $ac_status); }; } && | |
14802 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
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_hi=$ac_mid; break | |
14809 | else | |
14810 | echo "$as_me: failed program was:" >&5 | |
14811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14812 | ||
14813 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
14814 | if test $ac_lo -le $ac_mid; then |
14815 | ac_lo= ac_hi= | |
14816 | break | |
14817 | fi | |
14818 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14819 | fi |
32ddf007 | 14820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14821 | done |
14822 | else | |
14823 | echo "$as_me: failed program was:" >&5 | |
14824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14825 | ||
14826 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14827 | /* confdefs.h. */ |
14828 | _ACEOF | |
14829 | cat confdefs.h >>conftest.$ac_ext | |
14830 | cat >>conftest.$ac_ext <<_ACEOF | |
14831 | /* end confdefs.h. */ | |
14832 | $ac_includes_default | |
14833 | int | |
14834 | main () | |
14835 | { | |
14836 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14837 | test_array [0] = 0 | |
247f5006 | 14838 | |
e6cc62c6 VS |
14839 | ; |
14840 | return 0; | |
14841 | } | |
14842 | _ACEOF | |
14843 | rm -f conftest.$ac_objext | |
14844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14845 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14846 | ac_status=$? |
32ddf007 VS |
14847 | grep -v '^ *+' conftest.er1 >conftest.err |
14848 | rm -f conftest.er1 | |
14849 | cat conftest.err >&5 | |
e6cc62c6 VS |
14850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14851 | (exit $ac_status); } && | |
32ddf007 VS |
14852 | { ac_try='test -z "$ac_c_werror_flag" |
14853 | || test ! -s conftest.err' | |
14854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14855 | (eval $ac_try) 2>&5 | |
14856 | ac_status=$? | |
14857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14858 | (exit $ac_status); }; } && | |
14859 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14861 | (eval $ac_try) 2>&5 | |
14862 | ac_status=$? | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); }; }; then | |
14865 | ac_hi=-1 ac_mid=-1 | |
14866 | while :; do | |
14867 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14868 | /* confdefs.h. */ |
14869 | _ACEOF | |
14870 | cat confdefs.h >>conftest.$ac_ext | |
14871 | cat >>conftest.$ac_ext <<_ACEOF | |
14872 | /* end confdefs.h. */ | |
14873 | $ac_includes_default | |
14874 | int | |
14875 | main () | |
14876 | { | |
14877 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14878 | test_array [0] = 0 | |
247f5006 | 14879 | |
e6cc62c6 VS |
14880 | ; |
14881 | return 0; | |
14882 | } | |
14883 | _ACEOF | |
14884 | rm -f conftest.$ac_objext | |
14885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14886 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14887 | ac_status=$? |
32ddf007 VS |
14888 | grep -v '^ *+' conftest.er1 >conftest.err |
14889 | rm -f conftest.er1 | |
14890 | cat conftest.err >&5 | |
e6cc62c6 VS |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14892 | (exit $ac_status); } && | |
32ddf007 VS |
14893 | { ac_try='test -z "$ac_c_werror_flag" |
14894 | || test ! -s conftest.err' | |
14895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14896 | (eval $ac_try) 2>&5 | |
14897 | ac_status=$? | |
14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14899 | (exit $ac_status); }; } && | |
14900 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14902 | (eval $ac_try) 2>&5 | |
14903 | ac_status=$? | |
14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14905 | (exit $ac_status); }; }; then | |
14906 | ac_lo=$ac_mid; break | |
14907 | else | |
14908 | echo "$as_me: failed program was:" >&5 | |
14909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14910 | ||
14911 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
14912 | if test $ac_mid -le $ac_hi; then |
14913 | ac_lo= ac_hi= | |
14914 | break | |
14915 | fi | |
14916 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14917 | fi |
32ddf007 | 14918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14919 | done |
247f5006 | 14920 | else |
e6cc62c6 VS |
14921 | echo "$as_me: failed program was:" >&5 |
14922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14923 | ||
14924 | ac_lo= ac_hi= | |
14925 | fi | |
32ddf007 | 14926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14927 | fi |
32ddf007 | 14928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14929 | # Binary search between lo and hi bounds. |
14930 | while test "x$ac_lo" != "x$ac_hi"; do | |
14931 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14932 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14933 | /* confdefs.h. */ |
14934 | _ACEOF | |
14935 | cat confdefs.h >>conftest.$ac_ext | |
14936 | cat >>conftest.$ac_ext <<_ACEOF | |
14937 | /* end confdefs.h. */ | |
14938 | $ac_includes_default | |
14939 | int | |
14940 | main () | |
14941 | { | |
14942 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14943 | test_array [0] = 0 | |
14944 | ||
14945 | ; | |
14946 | return 0; | |
14947 | } | |
14948 | _ACEOF | |
14949 | rm -f conftest.$ac_objext | |
14950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 14951 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 14952 | ac_status=$? |
32ddf007 VS |
14953 | grep -v '^ *+' conftest.er1 >conftest.err |
14954 | rm -f conftest.er1 | |
14955 | cat conftest.err >&5 | |
e6cc62c6 VS |
14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14957 | (exit $ac_status); } && | |
32ddf007 VS |
14958 | { ac_try='test -z "$ac_c_werror_flag" |
14959 | || test ! -s conftest.err' | |
14960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14961 | (eval $ac_try) 2>&5 | |
14962 | ac_status=$? | |
14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14964 | (exit $ac_status); }; } && | |
14965 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
14966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14967 | (eval $ac_try) 2>&5 | |
14968 | ac_status=$? | |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14970 | (exit $ac_status); }; }; then | |
14971 | ac_hi=$ac_mid | |
14972 | else | |
14973 | echo "$as_me: failed program was:" >&5 | |
14974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14975 | ||
14976 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14977 | fi | |
32ddf007 | 14978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14979 | done |
14980 | case $ac_lo in | |
14981 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14982 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14983 | See \`config.log' for more details." >&5 | |
14984 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14985 | See \`config.log' for more details." >&2;} | |
14986 | { (exit 1); exit 1; }; } ;; | |
14987 | esac | |
247f5006 | 14988 | else |
e6cc62c6 VS |
14989 | if test "$cross_compiling" = yes; then |
14990 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14991 | See \`config.log' for more details." >&5 | |
14992 | echo "$as_me: error: cannot run test program while cross compiling | |
14993 | See \`config.log' for more details." >&2;} | |
14994 | { (exit 1); exit 1; }; } | |
14995 | else | |
14996 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
14997 | /* confdefs.h. */ |
14998 | _ACEOF | |
14999 | cat confdefs.h >>conftest.$ac_ext | |
15000 | cat >>conftest.$ac_ext <<_ACEOF | |
15001 | /* end confdefs.h. */ | |
15002 | $ac_includes_default | |
15003 | long longval () { return (long) (sizeof (short)); } | |
15004 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 15005 | #include <stdio.h> |
e6cc62c6 VS |
15006 | #include <stdlib.h> |
15007 | int | |
15008 | main () | |
a0b9e27f | 15009 | { |
e6cc62c6 VS |
15010 | |
15011 | FILE *f = fopen ("conftest.val", "w"); | |
15012 | if (! f) | |
15013 | exit (1); | |
15014 | if (((long) (sizeof (short))) < 0) | |
15015 | { | |
15016 | long i = longval (); | |
15017 | if (i != ((long) (sizeof (short)))) | |
15018 | exit (1); | |
15019 | fprintf (f, "%ld\n", i); | |
15020 | } | |
15021 | else | |
15022 | { | |
15023 | unsigned long i = ulongval (); | |
15024 | if (i != ((long) (sizeof (short)))) | |
15025 | exit (1); | |
15026 | fprintf (f, "%lu\n", i); | |
15027 | } | |
15028 | exit (ferror (f) || fclose (f) != 0); | |
15029 | ||
15030 | ; | |
15031 | return 0; | |
a0b9e27f | 15032 | } |
e6cc62c6 VS |
15033 | _ACEOF |
15034 | rm -f conftest$ac_exeext | |
15035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15036 | (eval $ac_link) 2>&5 | |
15037 | ac_status=$? | |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15041 | (eval $ac_try) 2>&5 | |
15042 | ac_status=$? | |
15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15044 | (exit $ac_status); }; }; then | |
15045 | ac_cv_sizeof_short=`cat conftest.val` | |
15046 | else | |
15047 | echo "$as_me: program exited with status $ac_status" >&5 | |
15048 | echo "$as_me: failed program was:" >&5 | |
15049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15050 | ||
15051 | ( exit $ac_status ) | |
15052 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15053 | See \`config.log' for more details." >&5 | |
15054 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15055 | See \`config.log' for more details." >&2;} | |
15056 | { (exit 1); exit 1; }; } | |
15057 | fi | |
32ddf007 | 15058 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15059 | fi |
15060 | fi | |
15061 | rm -f conftest.val | |
247f5006 | 15062 | else |
a0b9e27f | 15063 | ac_cv_sizeof_short=0 |
247f5006 | 15064 | fi |
247f5006 | 15065 | fi |
e6cc62c6 VS |
15066 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
15067 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15068 | cat >>confdefs.h <<_ACEOF | |
15069 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15070 | _ACEOF | |
15071 | ||
15072 | ||
15073 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15074 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15075 | if test "${ac_cv_type_void_p+set}" = set; then | |
15076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15077 | else | |
15078 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15079 | /* confdefs.h. */ |
15080 | _ACEOF | |
15081 | cat confdefs.h >>conftest.$ac_ext | |
15082 | cat >>conftest.$ac_ext <<_ACEOF | |
15083 | /* end confdefs.h. */ | |
15084 | $ac_includes_default | |
15085 | int | |
15086 | main () | |
15087 | { | |
15088 | if ((void * *) 0) | |
15089 | return 0; | |
15090 | if (sizeof (void *)) | |
15091 | return 0; | |
15092 | ; | |
15093 | return 0; | |
15094 | } | |
15095 | _ACEOF | |
15096 | rm -f conftest.$ac_objext | |
15097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15098 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15099 | ac_status=$? |
32ddf007 VS |
15100 | grep -v '^ *+' conftest.er1 >conftest.err |
15101 | rm -f conftest.er1 | |
15102 | cat conftest.err >&5 | |
e6cc62c6 VS |
15103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15104 | (exit $ac_status); } && | |
32ddf007 VS |
15105 | { ac_try='test -z "$ac_c_werror_flag" |
15106 | || test ! -s conftest.err' | |
15107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15108 | (eval $ac_try) 2>&5 | |
15109 | ac_status=$? | |
15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15111 | (exit $ac_status); }; } && | |
15112 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); }; }; then | |
15118 | ac_cv_type_void_p=yes | |
15119 | else | |
15120 | echo "$as_me: failed program was:" >&5 | |
15121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15122 | ||
15123 | ac_cv_type_void_p=no | |
15124 | fi | |
32ddf007 | 15125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15126 | fi |
15127 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15128 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15129 | ||
15130 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15131 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15132 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15134 | else | |
15135 | if test "$ac_cv_type_void_p" = yes; then | |
15136 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15137 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15138 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15139 | # This bug is HP SR number 8606223364. | |
15140 | if test "$cross_compiling" = yes; then | |
15141 | # Depending upon the size, compute the lo and hi bounds. | |
15142 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15143 | /* confdefs.h. */ |
15144 | _ACEOF | |
15145 | cat confdefs.h >>conftest.$ac_ext | |
15146 | cat >>conftest.$ac_ext <<_ACEOF | |
15147 | /* end confdefs.h. */ | |
15148 | $ac_includes_default | |
15149 | int | |
15150 | main () | |
15151 | { | |
15152 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15153 | test_array [0] = 0 | |
15154 | ||
15155 | ; | |
15156 | return 0; | |
15157 | } | |
15158 | _ACEOF | |
15159 | rm -f conftest.$ac_objext | |
15160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15161 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15162 | ac_status=$? |
32ddf007 VS |
15163 | grep -v '^ *+' conftest.er1 >conftest.err |
15164 | rm -f conftest.er1 | |
15165 | cat conftest.err >&5 | |
e6cc62c6 VS |
15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15167 | (exit $ac_status); } && | |
32ddf007 VS |
15168 | { ac_try='test -z "$ac_c_werror_flag" |
15169 | || test ! -s conftest.err' | |
15170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15171 | (eval $ac_try) 2>&5 | |
15172 | ac_status=$? | |
15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15174 | (exit $ac_status); }; } && | |
15175 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15177 | (eval $ac_try) 2>&5 | |
15178 | ac_status=$? | |
15179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15180 | (exit $ac_status); }; }; then | |
15181 | ac_lo=0 ac_mid=0 | |
15182 | while :; do | |
15183 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15184 | /* confdefs.h. */ |
15185 | _ACEOF | |
15186 | cat confdefs.h >>conftest.$ac_ext | |
15187 | cat >>conftest.$ac_ext <<_ACEOF | |
15188 | /* end confdefs.h. */ | |
15189 | $ac_includes_default | |
15190 | int | |
15191 | main () | |
15192 | { | |
15193 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15194 | test_array [0] = 0 | |
247f5006 | 15195 | |
e6cc62c6 VS |
15196 | ; |
15197 | return 0; | |
15198 | } | |
15199 | _ACEOF | |
15200 | rm -f conftest.$ac_objext | |
15201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15202 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15203 | ac_status=$? |
32ddf007 VS |
15204 | grep -v '^ *+' conftest.er1 >conftest.err |
15205 | rm -f conftest.er1 | |
15206 | cat conftest.err >&5 | |
e6cc62c6 VS |
15207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15208 | (exit $ac_status); } && | |
32ddf007 VS |
15209 | { ac_try='test -z "$ac_c_werror_flag" |
15210 | || test ! -s conftest.err' | |
15211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15212 | (eval $ac_try) 2>&5 | |
15213 | ac_status=$? | |
15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15215 | (exit $ac_status); }; } && | |
15216 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15218 | (eval $ac_try) 2>&5 | |
15219 | ac_status=$? | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); }; }; then | |
15222 | ac_hi=$ac_mid; break | |
15223 | else | |
15224 | echo "$as_me: failed program was:" >&5 | |
15225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15226 | ||
15227 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15228 | if test $ac_lo -le $ac_mid; then |
15229 | ac_lo= ac_hi= | |
15230 | break | |
15231 | fi | |
15232 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15233 | fi |
32ddf007 | 15234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15235 | done |
15236 | else | |
15237 | echo "$as_me: failed program was:" >&5 | |
15238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15239 | ||
15240 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15241 | /* confdefs.h. */ |
15242 | _ACEOF | |
15243 | cat confdefs.h >>conftest.$ac_ext | |
15244 | cat >>conftest.$ac_ext <<_ACEOF | |
15245 | /* end confdefs.h. */ | |
15246 | $ac_includes_default | |
15247 | int | |
15248 | main () | |
15249 | { | |
15250 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15251 | test_array [0] = 0 | |
247f5006 | 15252 | |
e6cc62c6 VS |
15253 | ; |
15254 | return 0; | |
15255 | } | |
15256 | _ACEOF | |
15257 | rm -f conftest.$ac_objext | |
15258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15259 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15260 | ac_status=$? |
32ddf007 VS |
15261 | grep -v '^ *+' conftest.er1 >conftest.err |
15262 | rm -f conftest.er1 | |
15263 | cat conftest.err >&5 | |
e6cc62c6 VS |
15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15265 | (exit $ac_status); } && | |
32ddf007 VS |
15266 | { ac_try='test -z "$ac_c_werror_flag" |
15267 | || test ! -s conftest.err' | |
15268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15269 | (eval $ac_try) 2>&5 | |
15270 | ac_status=$? | |
15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15272 | (exit $ac_status); }; } && | |
15273 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15275 | (eval $ac_try) 2>&5 | |
15276 | ac_status=$? | |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 | (exit $ac_status); }; }; then | |
15279 | ac_hi=-1 ac_mid=-1 | |
15280 | while :; do | |
15281 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15282 | /* confdefs.h. */ |
15283 | _ACEOF | |
15284 | cat confdefs.h >>conftest.$ac_ext | |
15285 | cat >>conftest.$ac_ext <<_ACEOF | |
15286 | /* end confdefs.h. */ | |
15287 | $ac_includes_default | |
15288 | int | |
15289 | main () | |
15290 | { | |
15291 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15292 | test_array [0] = 0 | |
247f5006 | 15293 | |
e6cc62c6 VS |
15294 | ; |
15295 | return 0; | |
15296 | } | |
15297 | _ACEOF | |
15298 | rm -f conftest.$ac_objext | |
15299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15300 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15301 | ac_status=$? |
32ddf007 VS |
15302 | grep -v '^ *+' conftest.er1 >conftest.err |
15303 | rm -f conftest.er1 | |
15304 | cat conftest.err >&5 | |
e6cc62c6 VS |
15305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15306 | (exit $ac_status); } && | |
32ddf007 VS |
15307 | { ac_try='test -z "$ac_c_werror_flag" |
15308 | || test ! -s conftest.err' | |
15309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15310 | (eval $ac_try) 2>&5 | |
15311 | ac_status=$? | |
15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15313 | (exit $ac_status); }; } && | |
15314 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15316 | (eval $ac_try) 2>&5 | |
15317 | ac_status=$? | |
15318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15319 | (exit $ac_status); }; }; then | |
15320 | ac_lo=$ac_mid; break | |
15321 | else | |
15322 | echo "$as_me: failed program was:" >&5 | |
15323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15324 | ||
15325 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15326 | if test $ac_mid -le $ac_hi; then |
15327 | ac_lo= ac_hi= | |
15328 | break | |
15329 | fi | |
15330 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15331 | fi |
32ddf007 | 15332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15333 | done |
a0b9e27f | 15334 | else |
e6cc62c6 VS |
15335 | echo "$as_me: failed program was:" >&5 |
15336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15337 | ||
15338 | ac_lo= ac_hi= | |
15339 | fi | |
32ddf007 | 15340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15341 | fi |
32ddf007 | 15342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15343 | # Binary search between lo and hi bounds. |
15344 | while test "x$ac_lo" != "x$ac_hi"; do | |
15345 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15346 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15347 | /* confdefs.h. */ |
15348 | _ACEOF | |
15349 | cat confdefs.h >>conftest.$ac_ext | |
15350 | cat >>conftest.$ac_ext <<_ACEOF | |
15351 | /* end confdefs.h. */ | |
15352 | $ac_includes_default | |
15353 | int | |
15354 | main () | |
15355 | { | |
15356 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15357 | test_array [0] = 0 | |
15358 | ||
15359 | ; | |
15360 | return 0; | |
15361 | } | |
15362 | _ACEOF | |
15363 | rm -f conftest.$ac_objext | |
15364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15365 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15366 | ac_status=$? |
32ddf007 VS |
15367 | grep -v '^ *+' conftest.er1 >conftest.err |
15368 | rm -f conftest.er1 | |
15369 | cat conftest.err >&5 | |
e6cc62c6 VS |
15370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15371 | (exit $ac_status); } && | |
32ddf007 VS |
15372 | { ac_try='test -z "$ac_c_werror_flag" |
15373 | || test ! -s conftest.err' | |
15374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15375 | (eval $ac_try) 2>&5 | |
15376 | ac_status=$? | |
15377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15378 | (exit $ac_status); }; } && | |
15379 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15381 | (eval $ac_try) 2>&5 | |
15382 | ac_status=$? | |
15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15384 | (exit $ac_status); }; }; then | |
15385 | ac_hi=$ac_mid | |
15386 | else | |
15387 | echo "$as_me: failed program was:" >&5 | |
15388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15389 | ||
15390 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15391 | fi | |
32ddf007 | 15392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15393 | done |
15394 | case $ac_lo in | |
15395 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15396 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15397 | See \`config.log' for more details." >&5 | |
15398 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15399 | See \`config.log' for more details." >&2;} | |
15400 | { (exit 1); exit 1; }; } ;; | |
15401 | esac | |
247f5006 | 15402 | else |
e6cc62c6 VS |
15403 | if test "$cross_compiling" = yes; then |
15404 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15405 | See \`config.log' for more details." >&5 | |
15406 | echo "$as_me: error: cannot run test program while cross compiling | |
15407 | See \`config.log' for more details." >&2;} | |
15408 | { (exit 1); exit 1; }; } | |
15409 | else | |
15410 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15411 | /* confdefs.h. */ |
15412 | _ACEOF | |
15413 | cat confdefs.h >>conftest.$ac_ext | |
15414 | cat >>conftest.$ac_ext <<_ACEOF | |
15415 | /* end confdefs.h. */ | |
15416 | $ac_includes_default | |
15417 | long longval () { return (long) (sizeof (void *)); } | |
15418 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 15419 | #include <stdio.h> |
e6cc62c6 VS |
15420 | #include <stdlib.h> |
15421 | int | |
15422 | main () | |
247f5006 | 15423 | { |
e6cc62c6 VS |
15424 | |
15425 | FILE *f = fopen ("conftest.val", "w"); | |
15426 | if (! f) | |
15427 | exit (1); | |
15428 | if (((long) (sizeof (void *))) < 0) | |
15429 | { | |
15430 | long i = longval (); | |
15431 | if (i != ((long) (sizeof (void *)))) | |
15432 | exit (1); | |
15433 | fprintf (f, "%ld\n", i); | |
15434 | } | |
15435 | else | |
15436 | { | |
15437 | unsigned long i = ulongval (); | |
15438 | if (i != ((long) (sizeof (void *)))) | |
15439 | exit (1); | |
15440 | fprintf (f, "%lu\n", i); | |
15441 | } | |
15442 | exit (ferror (f) || fclose (f) != 0); | |
15443 | ||
15444 | ; | |
15445 | return 0; | |
5c6fa7d2 | 15446 | } |
e6cc62c6 VS |
15447 | _ACEOF |
15448 | rm -f conftest$ac_exeext | |
15449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15450 | (eval $ac_link) 2>&5 | |
15451 | ac_status=$? | |
15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15453 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15455 | (eval $ac_try) 2>&5 | |
15456 | ac_status=$? | |
15457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15458 | (exit $ac_status); }; }; then | |
15459 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15460 | else | |
15461 | echo "$as_me: program exited with status $ac_status" >&5 | |
15462 | echo "$as_me: failed program was:" >&5 | |
15463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15464 | ||
15465 | ( exit $ac_status ) | |
15466 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15467 | See \`config.log' for more details." >&5 | |
15468 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15469 | See \`config.log' for more details." >&2;} | |
15470 | { (exit 1); exit 1; }; } | |
15471 | fi | |
32ddf007 | 15472 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15473 | fi |
15474 | fi | |
15475 | rm -f conftest.val | |
a0b9e27f | 15476 | else |
a0b9e27f MB |
15477 | ac_cv_sizeof_void_p=0 |
15478 | fi | |
a0b9e27f | 15479 | fi |
e6cc62c6 VS |
15480 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
15481 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15482 | cat >>confdefs.h <<_ACEOF | |
15483 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15484 | _ACEOF | |
15485 | ||
15486 | ||
15487 | echo "$as_me:$LINENO: checking for int" >&5 | |
15488 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15489 | if test "${ac_cv_type_int+set}" = set; then | |
15490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15491 | else | |
15492 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15493 | /* confdefs.h. */ |
15494 | _ACEOF | |
15495 | cat confdefs.h >>conftest.$ac_ext | |
15496 | cat >>conftest.$ac_ext <<_ACEOF | |
15497 | /* end confdefs.h. */ | |
15498 | $ac_includes_default | |
15499 | int | |
15500 | main () | |
15501 | { | |
15502 | if ((int *) 0) | |
15503 | return 0; | |
15504 | if (sizeof (int)) | |
15505 | return 0; | |
15506 | ; | |
15507 | return 0; | |
15508 | } | |
15509 | _ACEOF | |
15510 | rm -f conftest.$ac_objext | |
15511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15512 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15513 | ac_status=$? |
32ddf007 VS |
15514 | grep -v '^ *+' conftest.er1 >conftest.err |
15515 | rm -f conftest.er1 | |
15516 | cat conftest.err >&5 | |
e6cc62c6 VS |
15517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15518 | (exit $ac_status); } && | |
32ddf007 VS |
15519 | { ac_try='test -z "$ac_c_werror_flag" |
15520 | || test ! -s conftest.err' | |
15521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15522 | (eval $ac_try) 2>&5 | |
15523 | ac_status=$? | |
15524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15525 | (exit $ac_status); }; } && | |
15526 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15528 | (eval $ac_try) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); }; }; then | |
15532 | ac_cv_type_int=yes | |
15533 | else | |
15534 | echo "$as_me: failed program was:" >&5 | |
15535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15536 | ||
15537 | ac_cv_type_int=no | |
15538 | fi | |
32ddf007 | 15539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15540 | fi |
15541 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15542 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15543 | ||
15544 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15545 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15546 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15548 | else | |
15549 | if test "$ac_cv_type_int" = yes; then | |
15550 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15551 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15552 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15553 | # This bug is HP SR number 8606223364. | |
15554 | if test "$cross_compiling" = yes; then | |
15555 | # Depending upon the size, compute the lo and hi bounds. | |
15556 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15557 | /* confdefs.h. */ |
15558 | _ACEOF | |
15559 | cat confdefs.h >>conftest.$ac_ext | |
15560 | cat >>conftest.$ac_ext <<_ACEOF | |
15561 | /* end confdefs.h. */ | |
15562 | $ac_includes_default | |
15563 | int | |
15564 | main () | |
15565 | { | |
15566 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15567 | test_array [0] = 0 | |
8284b0c5 | 15568 | |
e6cc62c6 VS |
15569 | ; |
15570 | return 0; | |
15571 | } | |
15572 | _ACEOF | |
15573 | rm -f conftest.$ac_objext | |
15574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15575 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15576 | ac_status=$? |
32ddf007 VS |
15577 | grep -v '^ *+' conftest.er1 >conftest.err |
15578 | rm -f conftest.er1 | |
15579 | cat conftest.err >&5 | |
e6cc62c6 VS |
15580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15581 | (exit $ac_status); } && | |
32ddf007 VS |
15582 | { ac_try='test -z "$ac_c_werror_flag" |
15583 | || test ! -s conftest.err' | |
15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15585 | (eval $ac_try) 2>&5 | |
15586 | ac_status=$? | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); }; } && | |
15589 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15591 | (eval $ac_try) 2>&5 | |
15592 | ac_status=$? | |
15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15594 | (exit $ac_status); }; }; then | |
15595 | ac_lo=0 ac_mid=0 | |
15596 | while :; do | |
15597 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15598 | /* confdefs.h. */ |
15599 | _ACEOF | |
15600 | cat confdefs.h >>conftest.$ac_ext | |
15601 | cat >>conftest.$ac_ext <<_ACEOF | |
15602 | /* end confdefs.h. */ | |
15603 | $ac_includes_default | |
15604 | int | |
15605 | main () | |
15606 | { | |
15607 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15608 | test_array [0] = 0 | |
15609 | ||
15610 | ; | |
15611 | return 0; | |
15612 | } | |
15613 | _ACEOF | |
15614 | rm -f conftest.$ac_objext | |
15615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15616 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15617 | ac_status=$? |
32ddf007 VS |
15618 | grep -v '^ *+' conftest.er1 >conftest.err |
15619 | rm -f conftest.er1 | |
15620 | cat conftest.err >&5 | |
e6cc62c6 VS |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15622 | (exit $ac_status); } && | |
32ddf007 VS |
15623 | { ac_try='test -z "$ac_c_werror_flag" |
15624 | || test ! -s conftest.err' | |
15625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15626 | (eval $ac_try) 2>&5 | |
15627 | ac_status=$? | |
15628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15629 | (exit $ac_status); }; } && | |
15630 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15632 | (eval $ac_try) 2>&5 | |
15633 | ac_status=$? | |
15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15635 | (exit $ac_status); }; }; then | |
15636 | ac_hi=$ac_mid; break | |
15637 | else | |
15638 | echo "$as_me: failed program was:" >&5 | |
15639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15640 | ||
15641 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
15642 | if test $ac_lo -le $ac_mid; then |
15643 | ac_lo= ac_hi= | |
15644 | break | |
15645 | fi | |
15646 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 15647 | fi |
32ddf007 | 15648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15649 | done |
15650 | else | |
15651 | echo "$as_me: failed program was:" >&5 | |
15652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15653 | ||
15654 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
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 (int))) < 0)]; | |
15665 | test_array [0] = 0 | |
247f5006 | 15666 | |
e6cc62c6 VS |
15667 | ; |
15668 | return 0; | |
15669 | } | |
15670 | _ACEOF | |
15671 | rm -f conftest.$ac_objext | |
15672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15673 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15674 | ac_status=$? |
32ddf007 VS |
15675 | grep -v '^ *+' conftest.er1 >conftest.err |
15676 | rm -f conftest.er1 | |
15677 | cat conftest.err >&5 | |
e6cc62c6 VS |
15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15679 | (exit $ac_status); } && | |
32ddf007 VS |
15680 | { ac_try='test -z "$ac_c_werror_flag" |
15681 | || test ! -s conftest.err' | |
15682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15683 | (eval $ac_try) 2>&5 | |
15684 | ac_status=$? | |
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15686 | (exit $ac_status); }; } && | |
15687 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15689 | (eval $ac_try) 2>&5 | |
15690 | ac_status=$? | |
15691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15692 | (exit $ac_status); }; }; then | |
15693 | ac_hi=-1 ac_mid=-1 | |
15694 | while :; do | |
15695 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15696 | /* confdefs.h. */ |
15697 | _ACEOF | |
15698 | cat confdefs.h >>conftest.$ac_ext | |
15699 | cat >>conftest.$ac_ext <<_ACEOF | |
15700 | /* end confdefs.h. */ | |
15701 | $ac_includes_default | |
15702 | int | |
15703 | main () | |
15704 | { | |
15705 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15706 | test_array [0] = 0 | |
247f5006 | 15707 | |
e6cc62c6 VS |
15708 | ; |
15709 | return 0; | |
15710 | } | |
15711 | _ACEOF | |
15712 | rm -f conftest.$ac_objext | |
15713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15714 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15715 | ac_status=$? |
32ddf007 VS |
15716 | grep -v '^ *+' conftest.er1 >conftest.err |
15717 | rm -f conftest.er1 | |
15718 | cat conftest.err >&5 | |
e6cc62c6 VS |
15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15720 | (exit $ac_status); } && | |
32ddf007 VS |
15721 | { ac_try='test -z "$ac_c_werror_flag" |
15722 | || test ! -s conftest.err' | |
15723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15724 | (eval $ac_try) 2>&5 | |
15725 | ac_status=$? | |
15726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15727 | (exit $ac_status); }; } && | |
15728 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15730 | (eval $ac_try) 2>&5 | |
15731 | ac_status=$? | |
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15733 | (exit $ac_status); }; }; then | |
15734 | ac_lo=$ac_mid; break | |
15735 | else | |
15736 | echo "$as_me: failed program was:" >&5 | |
15737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15738 | ||
15739 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
15740 | if test $ac_mid -le $ac_hi; then |
15741 | ac_lo= ac_hi= | |
15742 | break | |
15743 | fi | |
15744 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15745 | fi |
32ddf007 | 15746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15747 | done |
247f5006 | 15748 | else |
e6cc62c6 VS |
15749 | echo "$as_me: failed program was:" >&5 |
15750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15751 | ||
15752 | ac_lo= ac_hi= | |
15753 | fi | |
32ddf007 | 15754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15755 | fi |
32ddf007 | 15756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15757 | # Binary search between lo and hi bounds. |
15758 | while test "x$ac_lo" != "x$ac_hi"; do | |
15759 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15760 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15761 | /* confdefs.h. */ |
15762 | _ACEOF | |
15763 | cat confdefs.h >>conftest.$ac_ext | |
15764 | cat >>conftest.$ac_ext <<_ACEOF | |
15765 | /* end confdefs.h. */ | |
15766 | $ac_includes_default | |
15767 | int | |
15768 | main () | |
15769 | { | |
15770 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15771 | test_array [0] = 0 | |
15772 | ||
15773 | ; | |
15774 | return 0; | |
15775 | } | |
15776 | _ACEOF | |
15777 | rm -f conftest.$ac_objext | |
15778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15779 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15780 | ac_status=$? |
32ddf007 VS |
15781 | grep -v '^ *+' conftest.er1 >conftest.err |
15782 | rm -f conftest.er1 | |
15783 | cat conftest.err >&5 | |
e6cc62c6 VS |
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15785 | (exit $ac_status); } && | |
32ddf007 VS |
15786 | { ac_try='test -z "$ac_c_werror_flag" |
15787 | || test ! -s conftest.err' | |
15788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15789 | (eval $ac_try) 2>&5 | |
15790 | ac_status=$? | |
15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15792 | (exit $ac_status); }; } && | |
15793 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15795 | (eval $ac_try) 2>&5 | |
15796 | ac_status=$? | |
15797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15798 | (exit $ac_status); }; }; then | |
15799 | ac_hi=$ac_mid | |
15800 | else | |
15801 | echo "$as_me: failed program was:" >&5 | |
15802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15803 | ||
15804 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15805 | fi | |
32ddf007 | 15806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15807 | done |
15808 | case $ac_lo in | |
15809 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15810 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15811 | See \`config.log' for more details." >&5 | |
15812 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15813 | See \`config.log' for more details." >&2;} | |
15814 | { (exit 1); exit 1; }; } ;; | |
15815 | esac | |
a0b9e27f | 15816 | else |
e6cc62c6 VS |
15817 | if test "$cross_compiling" = yes; then |
15818 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15819 | See \`config.log' for more details." >&5 | |
15820 | echo "$as_me: error: cannot run test program while cross compiling | |
15821 | See \`config.log' for more details." >&2;} | |
15822 | { (exit 1); exit 1; }; } | |
15823 | else | |
15824 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15825 | /* confdefs.h. */ |
15826 | _ACEOF | |
15827 | cat confdefs.h >>conftest.$ac_ext | |
15828 | cat >>conftest.$ac_ext <<_ACEOF | |
15829 | /* end confdefs.h. */ | |
15830 | $ac_includes_default | |
15831 | long longval () { return (long) (sizeof (int)); } | |
15832 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15833 | #include <stdio.h> |
e6cc62c6 VS |
15834 | #include <stdlib.h> |
15835 | int | |
15836 | main () | |
247f5006 | 15837 | { |
e6cc62c6 VS |
15838 | |
15839 | FILE *f = fopen ("conftest.val", "w"); | |
15840 | if (! f) | |
15841 | exit (1); | |
15842 | if (((long) (sizeof (int))) < 0) | |
15843 | { | |
15844 | long i = longval (); | |
15845 | if (i != ((long) (sizeof (int)))) | |
15846 | exit (1); | |
15847 | fprintf (f, "%ld\n", i); | |
15848 | } | |
15849 | else | |
15850 | { | |
15851 | unsigned long i = ulongval (); | |
15852 | if (i != ((long) (sizeof (int)))) | |
15853 | exit (1); | |
15854 | fprintf (f, "%lu\n", i); | |
15855 | } | |
15856 | exit (ferror (f) || fclose (f) != 0); | |
15857 | ||
15858 | ; | |
15859 | return 0; | |
247f5006 | 15860 | } |
e6cc62c6 VS |
15861 | _ACEOF |
15862 | rm -f conftest$ac_exeext | |
15863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15864 | (eval $ac_link) 2>&5 | |
15865 | ac_status=$? | |
15866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15869 | (eval $ac_try) 2>&5 | |
15870 | ac_status=$? | |
15871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15872 | (exit $ac_status); }; }; then | |
15873 | ac_cv_sizeof_int=`cat conftest.val` | |
15874 | else | |
15875 | echo "$as_me: program exited with status $ac_status" >&5 | |
15876 | echo "$as_me: failed program was:" >&5 | |
15877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15878 | ||
15879 | ( exit $ac_status ) | |
15880 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15881 | See \`config.log' for more details." >&5 | |
15882 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15883 | See \`config.log' for more details." >&2;} | |
15884 | { (exit 1); exit 1; }; } | |
15885 | fi | |
32ddf007 | 15886 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15887 | fi |
15888 | fi | |
15889 | rm -f conftest.val | |
6f72b082 | 15890 | else |
a0b9e27f | 15891 | ac_cv_sizeof_int=0 |
21d1c967 | 15892 | fi |
698dcdb6 | 15893 | fi |
e6cc62c6 VS |
15894 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15895 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15896 | cat >>confdefs.h <<_ACEOF | |
15897 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15898 | _ACEOF | |
15899 | ||
15900 | ||
15901 | echo "$as_me:$LINENO: checking for long" >&5 | |
15902 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15903 | if test "${ac_cv_type_long+set}" = set; then | |
15904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15905 | else | |
15906 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15907 | /* confdefs.h. */ |
15908 | _ACEOF | |
15909 | cat confdefs.h >>conftest.$ac_ext | |
15910 | cat >>conftest.$ac_ext <<_ACEOF | |
15911 | /* end confdefs.h. */ | |
15912 | $ac_includes_default | |
15913 | int | |
15914 | main () | |
15915 | { | |
15916 | if ((long *) 0) | |
15917 | return 0; | |
15918 | if (sizeof (long)) | |
15919 | return 0; | |
15920 | ; | |
15921 | return 0; | |
15922 | } | |
15923 | _ACEOF | |
15924 | rm -f conftest.$ac_objext | |
15925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15926 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15927 | ac_status=$? |
32ddf007 VS |
15928 | grep -v '^ *+' conftest.er1 >conftest.err |
15929 | rm -f conftest.er1 | |
15930 | cat conftest.err >&5 | |
e6cc62c6 VS |
15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15932 | (exit $ac_status); } && | |
32ddf007 VS |
15933 | { ac_try='test -z "$ac_c_werror_flag" |
15934 | || test ! -s conftest.err' | |
15935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15936 | (eval $ac_try) 2>&5 | |
15937 | ac_status=$? | |
15938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15939 | (exit $ac_status); }; } && | |
15940 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
15941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15942 | (eval $ac_try) 2>&5 | |
15943 | ac_status=$? | |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15945 | (exit $ac_status); }; }; then | |
15946 | ac_cv_type_long=yes | |
15947 | else | |
15948 | echo "$as_me: failed program was:" >&5 | |
15949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15950 | ||
15951 | ac_cv_type_long=no | |
15952 | fi | |
32ddf007 | 15953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15954 | fi |
15955 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15956 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15957 | ||
15958 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15959 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15960 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15962 | else | |
15963 | if test "$ac_cv_type_long" = yes; then | |
15964 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15965 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15966 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15967 | # This bug is HP SR number 8606223364. | |
15968 | if test "$cross_compiling" = yes; then | |
15969 | # Depending upon the size, compute the lo and hi bounds. | |
15970 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
15971 | /* confdefs.h. */ |
15972 | _ACEOF | |
15973 | cat confdefs.h >>conftest.$ac_ext | |
15974 | cat >>conftest.$ac_ext <<_ACEOF | |
15975 | /* end confdefs.h. */ | |
15976 | $ac_includes_default | |
15977 | int | |
15978 | main () | |
15979 | { | |
15980 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15981 | test_array [0] = 0 | |
15982 | ||
15983 | ; | |
15984 | return 0; | |
15985 | } | |
15986 | _ACEOF | |
15987 | rm -f conftest.$ac_objext | |
15988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 15989 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 15990 | ac_status=$? |
32ddf007 VS |
15991 | grep -v '^ *+' conftest.er1 >conftest.err |
15992 | rm -f conftest.er1 | |
15993 | cat conftest.err >&5 | |
e6cc62c6 VS |
15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15995 | (exit $ac_status); } && | |
32ddf007 VS |
15996 | { ac_try='test -z "$ac_c_werror_flag" |
15997 | || test ! -s conftest.err' | |
15998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15999 | (eval $ac_try) 2>&5 | |
16000 | ac_status=$? | |
16001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16002 | (exit $ac_status); }; } && | |
16003 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16005 | (eval $ac_try) 2>&5 | |
16006 | ac_status=$? | |
16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16008 | (exit $ac_status); }; }; then | |
16009 | ac_lo=0 ac_mid=0 | |
16010 | while :; do | |
16011 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16012 | /* confdefs.h. */ |
16013 | _ACEOF | |
16014 | cat confdefs.h >>conftest.$ac_ext | |
16015 | cat >>conftest.$ac_ext <<_ACEOF | |
16016 | /* end confdefs.h. */ | |
16017 | $ac_includes_default | |
16018 | int | |
16019 | main () | |
16020 | { | |
16021 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16022 | test_array [0] = 0 | |
4f14bcd8 | 16023 | |
e6cc62c6 VS |
16024 | ; |
16025 | return 0; | |
16026 | } | |
16027 | _ACEOF | |
16028 | rm -f conftest.$ac_objext | |
16029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16030 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16031 | ac_status=$? |
32ddf007 VS |
16032 | grep -v '^ *+' conftest.er1 >conftest.err |
16033 | rm -f conftest.er1 | |
16034 | cat conftest.err >&5 | |
e6cc62c6 VS |
16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16036 | (exit $ac_status); } && | |
32ddf007 VS |
16037 | { ac_try='test -z "$ac_c_werror_flag" |
16038 | || test ! -s conftest.err' | |
16039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16040 | (eval $ac_try) 2>&5 | |
16041 | ac_status=$? | |
16042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16043 | (exit $ac_status); }; } && | |
16044 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16046 | (eval $ac_try) 2>&5 | |
16047 | ac_status=$? | |
16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16049 | (exit $ac_status); }; }; then | |
16050 | ac_hi=$ac_mid; break | |
16051 | else | |
16052 | echo "$as_me: failed program was:" >&5 | |
16053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16054 | ||
16055 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16056 | if test $ac_lo -le $ac_mid; then |
16057 | ac_lo= ac_hi= | |
16058 | break | |
16059 | fi | |
16060 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 16061 | fi |
32ddf007 | 16062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16063 | done |
16064 | else | |
16065 | echo "$as_me: failed program was:" >&5 | |
16066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16067 | ||
16068 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16069 | /* confdefs.h. */ |
16070 | _ACEOF | |
16071 | cat confdefs.h >>conftest.$ac_ext | |
16072 | cat >>conftest.$ac_ext <<_ACEOF | |
16073 | /* end confdefs.h. */ | |
16074 | $ac_includes_default | |
16075 | int | |
16076 | main () | |
16077 | { | |
16078 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16079 | test_array [0] = 0 | |
4f14bcd8 | 16080 | |
e6cc62c6 VS |
16081 | ; |
16082 | return 0; | |
16083 | } | |
16084 | _ACEOF | |
16085 | rm -f conftest.$ac_objext | |
16086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16087 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16088 | ac_status=$? |
32ddf007 VS |
16089 | grep -v '^ *+' conftest.er1 >conftest.err |
16090 | rm -f conftest.er1 | |
16091 | cat conftest.err >&5 | |
e6cc62c6 VS |
16092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16093 | (exit $ac_status); } && | |
32ddf007 VS |
16094 | { ac_try='test -z "$ac_c_werror_flag" |
16095 | || test ! -s conftest.err' | |
16096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16097 | (eval $ac_try) 2>&5 | |
16098 | ac_status=$? | |
16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16100 | (exit $ac_status); }; } && | |
16101 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16103 | (eval $ac_try) 2>&5 | |
16104 | ac_status=$? | |
16105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16106 | (exit $ac_status); }; }; then | |
16107 | ac_hi=-1 ac_mid=-1 | |
16108 | while :; do | |
16109 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16110 | /* confdefs.h. */ |
16111 | _ACEOF | |
16112 | cat confdefs.h >>conftest.$ac_ext | |
16113 | cat >>conftest.$ac_ext <<_ACEOF | |
16114 | /* end confdefs.h. */ | |
16115 | $ac_includes_default | |
16116 | int | |
16117 | main () | |
16118 | { | |
16119 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16120 | test_array [0] = 0 | |
5c6fa7d2 | 16121 | |
e6cc62c6 VS |
16122 | ; |
16123 | return 0; | |
16124 | } | |
16125 | _ACEOF | |
16126 | rm -f conftest.$ac_objext | |
16127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16128 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16129 | ac_status=$? |
32ddf007 VS |
16130 | grep -v '^ *+' conftest.er1 >conftest.err |
16131 | rm -f conftest.er1 | |
16132 | cat conftest.err >&5 | |
e6cc62c6 VS |
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16134 | (exit $ac_status); } && | |
32ddf007 VS |
16135 | { ac_try='test -z "$ac_c_werror_flag" |
16136 | || test ! -s conftest.err' | |
16137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16138 | (eval $ac_try) 2>&5 | |
16139 | ac_status=$? | |
16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16141 | (exit $ac_status); }; } && | |
16142 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16144 | (eval $ac_try) 2>&5 | |
16145 | ac_status=$? | |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | (exit $ac_status); }; }; then | |
16148 | ac_lo=$ac_mid; break | |
16149 | else | |
16150 | echo "$as_me: failed program was:" >&5 | |
16151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16152 | ||
16153 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16154 | if test $ac_mid -le $ac_hi; then |
16155 | ac_lo= ac_hi= | |
16156 | break | |
16157 | fi | |
16158 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16159 | fi |
32ddf007 | 16160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16161 | done |
247f5006 | 16162 | else |
e6cc62c6 VS |
16163 | echo "$as_me: failed program was:" >&5 |
16164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16165 | ||
16166 | ac_lo= ac_hi= | |
16167 | fi | |
32ddf007 | 16168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16169 | fi |
32ddf007 | 16170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16171 | # Binary search between lo and hi bounds. |
16172 | while test "x$ac_lo" != "x$ac_hi"; do | |
16173 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16174 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16175 | /* confdefs.h. */ |
16176 | _ACEOF | |
16177 | cat confdefs.h >>conftest.$ac_ext | |
16178 | cat >>conftest.$ac_ext <<_ACEOF | |
16179 | /* end confdefs.h. */ | |
16180 | $ac_includes_default | |
16181 | int | |
16182 | main () | |
16183 | { | |
16184 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16185 | test_array [0] = 0 | |
16186 | ||
16187 | ; | |
16188 | return 0; | |
16189 | } | |
16190 | _ACEOF | |
16191 | rm -f conftest.$ac_objext | |
16192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16193 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16194 | ac_status=$? |
32ddf007 VS |
16195 | grep -v '^ *+' conftest.er1 >conftest.err |
16196 | rm -f conftest.er1 | |
16197 | cat conftest.err >&5 | |
e6cc62c6 VS |
16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16199 | (exit $ac_status); } && | |
32ddf007 VS |
16200 | { ac_try='test -z "$ac_c_werror_flag" |
16201 | || test ! -s conftest.err' | |
16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16203 | (eval $ac_try) 2>&5 | |
16204 | ac_status=$? | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); }; } && | |
16207 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16209 | (eval $ac_try) 2>&5 | |
16210 | ac_status=$? | |
16211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16212 | (exit $ac_status); }; }; then | |
16213 | ac_hi=$ac_mid | |
16214 | else | |
16215 | echo "$as_me: failed program was:" >&5 | |
16216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16217 | ||
16218 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16219 | fi | |
32ddf007 | 16220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16221 | done |
16222 | case $ac_lo in | |
16223 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16224 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16225 | See \`config.log' for more details." >&5 | |
16226 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16227 | See \`config.log' for more details." >&2;} | |
16228 | { (exit 1); exit 1; }; } ;; | |
16229 | esac | |
247f5006 | 16230 | else |
e6cc62c6 VS |
16231 | if test "$cross_compiling" = yes; then |
16232 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16233 | See \`config.log' for more details." >&5 | |
16234 | echo "$as_me: error: cannot run test program while cross compiling | |
16235 | See \`config.log' for more details." >&2;} | |
16236 | { (exit 1); exit 1; }; } | |
16237 | else | |
16238 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16239 | /* confdefs.h. */ |
16240 | _ACEOF | |
16241 | cat confdefs.h >>conftest.$ac_ext | |
16242 | cat >>conftest.$ac_ext <<_ACEOF | |
16243 | /* end confdefs.h. */ | |
16244 | $ac_includes_default | |
16245 | long longval () { return (long) (sizeof (long)); } | |
16246 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 16247 | #include <stdio.h> |
e6cc62c6 VS |
16248 | #include <stdlib.h> |
16249 | int | |
16250 | main () | |
247f5006 | 16251 | { |
e6cc62c6 VS |
16252 | |
16253 | FILE *f = fopen ("conftest.val", "w"); | |
16254 | if (! f) | |
16255 | exit (1); | |
16256 | if (((long) (sizeof (long))) < 0) | |
16257 | { | |
16258 | long i = longval (); | |
16259 | if (i != ((long) (sizeof (long)))) | |
16260 | exit (1); | |
16261 | fprintf (f, "%ld\n", i); | |
16262 | } | |
16263 | else | |
16264 | { | |
16265 | unsigned long i = ulongval (); | |
16266 | if (i != ((long) (sizeof (long)))) | |
16267 | exit (1); | |
16268 | fprintf (f, "%lu\n", i); | |
16269 | } | |
16270 | exit (ferror (f) || fclose (f) != 0); | |
16271 | ||
16272 | ; | |
16273 | return 0; | |
247f5006 | 16274 | } |
e6cc62c6 VS |
16275 | _ACEOF |
16276 | rm -f conftest$ac_exeext | |
16277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16278 | (eval $ac_link) 2>&5 | |
16279 | ac_status=$? | |
16280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16281 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16283 | (eval $ac_try) 2>&5 | |
16284 | ac_status=$? | |
16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16286 | (exit $ac_status); }; }; then | |
16287 | ac_cv_sizeof_long=`cat conftest.val` | |
16288 | else | |
16289 | echo "$as_me: program exited with status $ac_status" >&5 | |
16290 | echo "$as_me: failed program was:" >&5 | |
16291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16292 | ||
16293 | ( exit $ac_status ) | |
16294 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16295 | See \`config.log' for more details." >&5 | |
16296 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16297 | See \`config.log' for more details." >&2;} | |
16298 | { (exit 1); exit 1; }; } | |
16299 | fi | |
32ddf007 | 16300 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16301 | fi |
16302 | fi | |
16303 | rm -f conftest.val | |
247f5006 | 16304 | else |
a0b9e27f | 16305 | ac_cv_sizeof_long=0 |
247f5006 | 16306 | fi |
247f5006 | 16307 | fi |
e6cc62c6 VS |
16308 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
16309 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16310 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 16311 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 16312 | _ACEOF |
247f5006 | 16313 | |
a0b9e27f | 16314 | |
ecfd48ca VZ |
16315 | echo "$as_me:$LINENO: checking for size_t" >&5 |
16316 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16317 | if test "${ac_cv_type_size_t+set}" = set; then | |
16318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16319 | else | |
16320 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16321 | /* confdefs.h. */ |
16322 | _ACEOF | |
16323 | cat confdefs.h >>conftest.$ac_ext | |
16324 | cat >>conftest.$ac_ext <<_ACEOF | |
16325 | /* end confdefs.h. */ | |
16326 | $ac_includes_default | |
16327 | int | |
16328 | main () | |
16329 | { | |
16330 | if ((size_t *) 0) | |
16331 | return 0; | |
16332 | if (sizeof (size_t)) | |
16333 | return 0; | |
16334 | ; | |
16335 | return 0; | |
16336 | } | |
16337 | _ACEOF | |
16338 | rm -f conftest.$ac_objext | |
16339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16340 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16341 | ac_status=$? |
32ddf007 VS |
16342 | grep -v '^ *+' conftest.er1 >conftest.err |
16343 | rm -f conftest.er1 | |
16344 | cat conftest.err >&5 | |
ecfd48ca VZ |
16345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16346 | (exit $ac_status); } && | |
32ddf007 VS |
16347 | { ac_try='test -z "$ac_c_werror_flag" |
16348 | || test ! -s conftest.err' | |
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16350 | (eval $ac_try) 2>&5 | |
16351 | ac_status=$? | |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16353 | (exit $ac_status); }; } && | |
16354 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16356 | (eval $ac_try) 2>&5 | |
16357 | ac_status=$? | |
16358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16359 | (exit $ac_status); }; }; then | |
16360 | ac_cv_type_size_t=yes | |
16361 | else | |
16362 | echo "$as_me: failed program was:" >&5 | |
16363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16364 | ||
16365 | ac_cv_type_size_t=no | |
16366 | fi | |
32ddf007 | 16367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16368 | fi |
16369 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16370 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16371 | ||
16372 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16373 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16374 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16376 | else | |
16377 | if test "$ac_cv_type_size_t" = yes; then | |
16378 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16379 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16380 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16381 | # This bug is HP SR number 8606223364. | |
16382 | if test "$cross_compiling" = yes; then | |
16383 | # Depending upon the size, compute the lo and hi bounds. | |
16384 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16385 | /* confdefs.h. */ |
16386 | _ACEOF | |
16387 | cat confdefs.h >>conftest.$ac_ext | |
16388 | cat >>conftest.$ac_ext <<_ACEOF | |
16389 | /* end confdefs.h. */ | |
16390 | $ac_includes_default | |
16391 | int | |
16392 | main () | |
16393 | { | |
16394 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16395 | test_array [0] = 0 | |
16396 | ||
16397 | ; | |
16398 | return 0; | |
16399 | } | |
16400 | _ACEOF | |
16401 | rm -f conftest.$ac_objext | |
16402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16403 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16404 | ac_status=$? |
32ddf007 VS |
16405 | grep -v '^ *+' conftest.er1 >conftest.err |
16406 | rm -f conftest.er1 | |
16407 | cat conftest.err >&5 | |
ecfd48ca VZ |
16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16409 | (exit $ac_status); } && | |
32ddf007 VS |
16410 | { ac_try='test -z "$ac_c_werror_flag" |
16411 | || test ! -s conftest.err' | |
16412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16413 | (eval $ac_try) 2>&5 | |
16414 | ac_status=$? | |
16415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16416 | (exit $ac_status); }; } && | |
16417 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16419 | (eval $ac_try) 2>&5 | |
16420 | ac_status=$? | |
16421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16422 | (exit $ac_status); }; }; then | |
16423 | ac_lo=0 ac_mid=0 | |
16424 | while :; do | |
16425 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16426 | /* confdefs.h. */ |
16427 | _ACEOF | |
16428 | cat confdefs.h >>conftest.$ac_ext | |
16429 | cat >>conftest.$ac_ext <<_ACEOF | |
16430 | /* end confdefs.h. */ | |
16431 | $ac_includes_default | |
16432 | int | |
16433 | main () | |
16434 | { | |
16435 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16436 | test_array [0] = 0 | |
16437 | ||
16438 | ; | |
16439 | return 0; | |
16440 | } | |
16441 | _ACEOF | |
16442 | rm -f conftest.$ac_objext | |
16443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16444 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16445 | ac_status=$? |
32ddf007 VS |
16446 | grep -v '^ *+' conftest.er1 >conftest.err |
16447 | rm -f conftest.er1 | |
16448 | cat conftest.err >&5 | |
ecfd48ca VZ |
16449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16450 | (exit $ac_status); } && | |
32ddf007 VS |
16451 | { ac_try='test -z "$ac_c_werror_flag" |
16452 | || test ! -s conftest.err' | |
16453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16454 | (eval $ac_try) 2>&5 | |
16455 | ac_status=$? | |
16456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16457 | (exit $ac_status); }; } && | |
16458 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16460 | (eval $ac_try) 2>&5 | |
16461 | ac_status=$? | |
16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16463 | (exit $ac_status); }; }; then | |
16464 | ac_hi=$ac_mid; break | |
16465 | else | |
16466 | echo "$as_me: failed program was:" >&5 | |
16467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16468 | ||
16469 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16470 | if test $ac_lo -le $ac_mid; then |
16471 | ac_lo= ac_hi= | |
16472 | break | |
16473 | fi | |
16474 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
ecfd48ca | 16475 | fi |
32ddf007 | 16476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16477 | done |
16478 | else | |
16479 | echo "$as_me: failed program was:" >&5 | |
16480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16481 | ||
16482 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16483 | /* confdefs.h. */ |
16484 | _ACEOF | |
16485 | cat confdefs.h >>conftest.$ac_ext | |
16486 | cat >>conftest.$ac_ext <<_ACEOF | |
16487 | /* end confdefs.h. */ | |
16488 | $ac_includes_default | |
16489 | int | |
16490 | main () | |
16491 | { | |
16492 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16493 | test_array [0] = 0 | |
16494 | ||
16495 | ; | |
16496 | return 0; | |
16497 | } | |
16498 | _ACEOF | |
16499 | rm -f conftest.$ac_objext | |
16500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16501 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16502 | ac_status=$? |
32ddf007 VS |
16503 | grep -v '^ *+' conftest.er1 >conftest.err |
16504 | rm -f conftest.er1 | |
16505 | cat conftest.err >&5 | |
ecfd48ca VZ |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16507 | (exit $ac_status); } && | |
32ddf007 VS |
16508 | { ac_try='test -z "$ac_c_werror_flag" |
16509 | || test ! -s conftest.err' | |
16510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16511 | (eval $ac_try) 2>&5 | |
16512 | ac_status=$? | |
16513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16514 | (exit $ac_status); }; } && | |
16515 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16517 | (eval $ac_try) 2>&5 | |
16518 | ac_status=$? | |
16519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16520 | (exit $ac_status); }; }; then | |
16521 | ac_hi=-1 ac_mid=-1 | |
16522 | while :; do | |
16523 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16524 | /* confdefs.h. */ |
16525 | _ACEOF | |
16526 | cat confdefs.h >>conftest.$ac_ext | |
16527 | cat >>conftest.$ac_ext <<_ACEOF | |
16528 | /* end confdefs.h. */ | |
16529 | $ac_includes_default | |
16530 | int | |
16531 | main () | |
16532 | { | |
16533 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16534 | test_array [0] = 0 | |
16535 | ||
16536 | ; | |
16537 | return 0; | |
16538 | } | |
16539 | _ACEOF | |
16540 | rm -f conftest.$ac_objext | |
16541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16542 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16543 | ac_status=$? |
32ddf007 VS |
16544 | grep -v '^ *+' conftest.er1 >conftest.err |
16545 | rm -f conftest.er1 | |
16546 | cat conftest.err >&5 | |
ecfd48ca VZ |
16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16548 | (exit $ac_status); } && | |
32ddf007 VS |
16549 | { ac_try='test -z "$ac_c_werror_flag" |
16550 | || test ! -s conftest.err' | |
16551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16552 | (eval $ac_try) 2>&5 | |
16553 | ac_status=$? | |
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16555 | (exit $ac_status); }; } && | |
16556 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16558 | (eval $ac_try) 2>&5 | |
16559 | ac_status=$? | |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16561 | (exit $ac_status); }; }; then | |
16562 | ac_lo=$ac_mid; break | |
16563 | else | |
16564 | echo "$as_me: failed program was:" >&5 | |
16565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16566 | ||
16567 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16568 | if test $ac_mid -le $ac_hi; then |
16569 | ac_lo= ac_hi= | |
16570 | break | |
16571 | fi | |
16572 | ac_mid=`expr 2 '*' $ac_mid` | |
ecfd48ca | 16573 | fi |
32ddf007 | 16574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16575 | done |
16576 | else | |
16577 | echo "$as_me: failed program was:" >&5 | |
16578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16579 | ||
16580 | ac_lo= ac_hi= | |
16581 | fi | |
32ddf007 | 16582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca | 16583 | fi |
32ddf007 | 16584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16585 | # Binary search between lo and hi bounds. |
16586 | while test "x$ac_lo" != "x$ac_hi"; do | |
16587 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16588 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16589 | /* confdefs.h. */ |
16590 | _ACEOF | |
16591 | cat confdefs.h >>conftest.$ac_ext | |
16592 | cat >>conftest.$ac_ext <<_ACEOF | |
16593 | /* end confdefs.h. */ | |
16594 | $ac_includes_default | |
16595 | int | |
16596 | main () | |
16597 | { | |
16598 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16599 | test_array [0] = 0 | |
16600 | ||
16601 | ; | |
16602 | return 0; | |
16603 | } | |
16604 | _ACEOF | |
16605 | rm -f conftest.$ac_objext | |
16606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16607 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 16608 | ac_status=$? |
32ddf007 VS |
16609 | grep -v '^ *+' conftest.er1 >conftest.err |
16610 | rm -f conftest.er1 | |
16611 | cat conftest.err >&5 | |
ecfd48ca VZ |
16612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16613 | (exit $ac_status); } && | |
32ddf007 VS |
16614 | { ac_try='test -z "$ac_c_werror_flag" |
16615 | || test ! -s conftest.err' | |
16616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16617 | (eval $ac_try) 2>&5 | |
16618 | ac_status=$? | |
16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16620 | (exit $ac_status); }; } && | |
16621 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
16622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16623 | (eval $ac_try) 2>&5 | |
16624 | ac_status=$? | |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16626 | (exit $ac_status); }; }; then | |
16627 | ac_hi=$ac_mid | |
16628 | else | |
16629 | echo "$as_me: failed program was:" >&5 | |
16630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16631 | ||
16632 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16633 | fi | |
32ddf007 | 16634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16635 | done |
16636 | case $ac_lo in | |
16637 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16638 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16639 | See \`config.log' for more details." >&5 | |
16640 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16641 | See \`config.log' for more details." >&2;} | |
16642 | { (exit 1); exit 1; }; } ;; | |
16643 | esac | |
16644 | else | |
16645 | if test "$cross_compiling" = yes; then | |
16646 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16647 | See \`config.log' for more details." >&5 | |
16648 | echo "$as_me: error: cannot run test program while cross compiling | |
16649 | See \`config.log' for more details." >&2;} | |
16650 | { (exit 1); exit 1; }; } | |
16651 | else | |
16652 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
16653 | /* confdefs.h. */ |
16654 | _ACEOF | |
16655 | cat confdefs.h >>conftest.$ac_ext | |
16656 | cat >>conftest.$ac_ext <<_ACEOF | |
16657 | /* end confdefs.h. */ | |
16658 | $ac_includes_default | |
16659 | long longval () { return (long) (sizeof (size_t)); } | |
16660 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16661 | #include <stdio.h> | |
16662 | #include <stdlib.h> | |
16663 | int | |
16664 | main () | |
16665 | { | |
16666 | ||
16667 | FILE *f = fopen ("conftest.val", "w"); | |
16668 | if (! f) | |
16669 | exit (1); | |
16670 | if (((long) (sizeof (size_t))) < 0) | |
16671 | { | |
16672 | long i = longval (); | |
16673 | if (i != ((long) (sizeof (size_t)))) | |
16674 | exit (1); | |
16675 | fprintf (f, "%ld\n", i); | |
16676 | } | |
16677 | else | |
16678 | { | |
16679 | unsigned long i = ulongval (); | |
16680 | if (i != ((long) (sizeof (size_t)))) | |
16681 | exit (1); | |
16682 | fprintf (f, "%lu\n", i); | |
16683 | } | |
16684 | exit (ferror (f) || fclose (f) != 0); | |
16685 | ||
16686 | ; | |
16687 | return 0; | |
16688 | } | |
16689 | _ACEOF | |
16690 | rm -f conftest$ac_exeext | |
16691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16692 | (eval $ac_link) 2>&5 | |
16693 | ac_status=$? | |
16694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16695 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16697 | (eval $ac_try) 2>&5 | |
16698 | ac_status=$? | |
16699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16700 | (exit $ac_status); }; }; then | |
16701 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16702 | else | |
16703 | echo "$as_me: program exited with status $ac_status" >&5 | |
16704 | echo "$as_me: failed program was:" >&5 | |
16705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16706 | ||
16707 | ( exit $ac_status ) | |
16708 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16709 | See \`config.log' for more details." >&5 | |
16710 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16711 | See \`config.log' for more details." >&2;} | |
16712 | { (exit 1); exit 1; }; } | |
16713 | fi | |
32ddf007 | 16714 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
16715 | fi |
16716 | fi | |
16717 | rm -f conftest.val | |
16718 | else | |
16719 | ac_cv_sizeof_size_t=0 | |
16720 | fi | |
16721 | fi | |
16722 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16723 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16724 | cat >>confdefs.h <<_ACEOF | |
16725 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16726 | _ACEOF | |
16727 | ||
16728 | ||
a0b9e27f MB |
16729 | |
16730 | case "${host}" in | |
16731 | arm-*-linux* ) | |
e6cc62c6 VS |
16732 | echo "$as_me:$LINENO: checking for long long" >&5 |
16733 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16734 | if test "${ac_cv_type_long_long+set}" = set; then | |
16735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16736 | else | |
16737 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16738 | /* confdefs.h. */ |
16739 | _ACEOF | |
16740 | cat confdefs.h >>conftest.$ac_ext | |
16741 | cat >>conftest.$ac_ext <<_ACEOF | |
16742 | /* end confdefs.h. */ | |
16743 | $ac_includes_default | |
16744 | int | |
16745 | main () | |
16746 | { | |
16747 | if ((long long *) 0) | |
16748 | return 0; | |
16749 | if (sizeof (long long)) | |
16750 | return 0; | |
16751 | ; | |
16752 | return 0; | |
16753 | } | |
16754 | _ACEOF | |
16755 | rm -f conftest.$ac_objext | |
16756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16757 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16758 | ac_status=$? |
32ddf007 VS |
16759 | grep -v '^ *+' conftest.er1 >conftest.err |
16760 | rm -f conftest.er1 | |
16761 | cat conftest.err >&5 | |
e6cc62c6 VS |
16762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16763 | (exit $ac_status); } && | |
32ddf007 VS |
16764 | { ac_try='test -z "$ac_c_werror_flag" |
16765 | || test ! -s conftest.err' | |
16766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16767 | (eval $ac_try) 2>&5 | |
16768 | ac_status=$? | |
16769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16770 | (exit $ac_status); }; } && | |
16771 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16773 | (eval $ac_try) 2>&5 | |
16774 | ac_status=$? | |
16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16776 | (exit $ac_status); }; }; then | |
16777 | ac_cv_type_long_long=yes | |
16778 | else | |
16779 | echo "$as_me: failed program was:" >&5 | |
16780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16781 | ||
16782 | ac_cv_type_long_long=no | |
16783 | fi | |
32ddf007 | 16784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16785 | fi |
16786 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16787 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16788 | ||
16789 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16790 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16791 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16793 | else | |
16794 | if test "$ac_cv_type_long_long" = yes; then | |
16795 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16798 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 16799 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16800 | # Depending upon the size, compute the lo and hi bounds. |
16801 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16802 | /* confdefs.h. */ |
16803 | _ACEOF | |
16804 | cat confdefs.h >>conftest.$ac_ext | |
16805 | cat >>conftest.$ac_ext <<_ACEOF | |
16806 | /* end confdefs.h. */ | |
16807 | $ac_includes_default | |
16808 | int | |
16809 | main () | |
16810 | { | |
16811 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16812 | test_array [0] = 0 | |
16813 | ||
16814 | ; | |
16815 | return 0; | |
16816 | } | |
16817 | _ACEOF | |
16818 | rm -f conftest.$ac_objext | |
16819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16820 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16821 | ac_status=$? |
32ddf007 VS |
16822 | grep -v '^ *+' conftest.er1 >conftest.err |
16823 | rm -f conftest.er1 | |
16824 | cat conftest.err >&5 | |
e6cc62c6 VS |
16825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16826 | (exit $ac_status); } && | |
32ddf007 VS |
16827 | { ac_try='test -z "$ac_c_werror_flag" |
16828 | || test ! -s conftest.err' | |
16829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16830 | (eval $ac_try) 2>&5 | |
16831 | ac_status=$? | |
16832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16833 | (exit $ac_status); }; } && | |
16834 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16836 | (eval $ac_try) 2>&5 | |
16837 | ac_status=$? | |
16838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16839 | (exit $ac_status); }; }; then | |
16840 | ac_lo=0 ac_mid=0 | |
16841 | while :; do | |
16842 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16843 | /* confdefs.h. */ |
16844 | _ACEOF | |
16845 | cat confdefs.h >>conftest.$ac_ext | |
16846 | cat >>conftest.$ac_ext <<_ACEOF | |
16847 | /* end confdefs.h. */ | |
16848 | $ac_includes_default | |
16849 | int | |
16850 | main () | |
16851 | { | |
16852 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16853 | test_array [0] = 0 | |
16854 | ||
16855 | ; | |
16856 | return 0; | |
16857 | } | |
16858 | _ACEOF | |
16859 | rm -f conftest.$ac_objext | |
16860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16861 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16862 | ac_status=$? |
32ddf007 VS |
16863 | grep -v '^ *+' conftest.er1 >conftest.err |
16864 | rm -f conftest.er1 | |
16865 | cat conftest.err >&5 | |
e6cc62c6 VS |
16866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16867 | (exit $ac_status); } && | |
32ddf007 VS |
16868 | { ac_try='test -z "$ac_c_werror_flag" |
16869 | || test ! -s conftest.err' | |
16870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16871 | (eval $ac_try) 2>&5 | |
16872 | ac_status=$? | |
16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16874 | (exit $ac_status); }; } && | |
16875 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16877 | (eval $ac_try) 2>&5 | |
16878 | ac_status=$? | |
16879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16880 | (exit $ac_status); }; }; then | |
16881 | ac_hi=$ac_mid; break | |
16882 | else | |
16883 | echo "$as_me: failed program was:" >&5 | |
16884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16885 | ||
16886 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
16887 | if test $ac_lo -le $ac_mid; then |
16888 | ac_lo= ac_hi= | |
16889 | break | |
16890 | fi | |
16891 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16892 | fi |
32ddf007 | 16893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16894 | done |
16895 | else | |
16896 | echo "$as_me: failed program was:" >&5 | |
16897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16898 | ||
16899 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16900 | /* confdefs.h. */ |
16901 | _ACEOF | |
16902 | cat confdefs.h >>conftest.$ac_ext | |
16903 | cat >>conftest.$ac_ext <<_ACEOF | |
16904 | /* end confdefs.h. */ | |
16905 | $ac_includes_default | |
16906 | int | |
16907 | main () | |
16908 | { | |
16909 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16910 | test_array [0] = 0 | |
16911 | ||
16912 | ; | |
16913 | return 0; | |
16914 | } | |
16915 | _ACEOF | |
16916 | rm -f conftest.$ac_objext | |
16917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16918 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16919 | ac_status=$? |
32ddf007 VS |
16920 | grep -v '^ *+' conftest.er1 >conftest.err |
16921 | rm -f conftest.er1 | |
16922 | cat conftest.err >&5 | |
e6cc62c6 VS |
16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16924 | (exit $ac_status); } && | |
32ddf007 VS |
16925 | { ac_try='test -z "$ac_c_werror_flag" |
16926 | || test ! -s conftest.err' | |
16927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16928 | (eval $ac_try) 2>&5 | |
16929 | ac_status=$? | |
16930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16931 | (exit $ac_status); }; } && | |
16932 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16934 | (eval $ac_try) 2>&5 | |
16935 | ac_status=$? | |
16936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16937 | (exit $ac_status); }; }; then | |
16938 | ac_hi=-1 ac_mid=-1 | |
16939 | while :; do | |
16940 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
16941 | /* confdefs.h. */ |
16942 | _ACEOF | |
16943 | cat confdefs.h >>conftest.$ac_ext | |
16944 | cat >>conftest.$ac_ext <<_ACEOF | |
16945 | /* end confdefs.h. */ | |
16946 | $ac_includes_default | |
16947 | int | |
16948 | main () | |
16949 | { | |
16950 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16951 | test_array [0] = 0 | |
16952 | ||
16953 | ; | |
16954 | return 0; | |
16955 | } | |
16956 | _ACEOF | |
16957 | rm -f conftest.$ac_objext | |
16958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 16959 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 16960 | ac_status=$? |
32ddf007 VS |
16961 | grep -v '^ *+' conftest.er1 >conftest.err |
16962 | rm -f conftest.er1 | |
16963 | cat conftest.err >&5 | |
e6cc62c6 VS |
16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16965 | (exit $ac_status); } && | |
32ddf007 VS |
16966 | { ac_try='test -z "$ac_c_werror_flag" |
16967 | || test ! -s conftest.err' | |
16968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16969 | (eval $ac_try) 2>&5 | |
16970 | ac_status=$? | |
16971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16972 | (exit $ac_status); }; } && | |
16973 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
16974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16975 | (eval $ac_try) 2>&5 | |
16976 | ac_status=$? | |
16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16978 | (exit $ac_status); }; }; then | |
16979 | ac_lo=$ac_mid; break | |
16980 | else | |
16981 | echo "$as_me: failed program was:" >&5 | |
16982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16983 | ||
16984 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
16985 | if test $ac_mid -le $ac_hi; then |
16986 | ac_lo= ac_hi= | |
16987 | break | |
16988 | fi | |
16989 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16990 | fi |
32ddf007 | 16991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16992 | done |
16993 | else | |
16994 | echo "$as_me: failed program was:" >&5 | |
16995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16996 | ||
16997 | ac_lo= ac_hi= | |
16998 | fi | |
32ddf007 | 16999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17000 | fi |
32ddf007 | 17001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17002 | # Binary search between lo and hi bounds. |
17003 | while test "x$ac_lo" != "x$ac_hi"; do | |
17004 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17005 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17006 | /* confdefs.h. */ |
17007 | _ACEOF | |
17008 | cat confdefs.h >>conftest.$ac_ext | |
17009 | cat >>conftest.$ac_ext <<_ACEOF | |
17010 | /* end confdefs.h. */ | |
17011 | $ac_includes_default | |
17012 | int | |
17013 | main () | |
17014 | { | |
17015 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17016 | test_array [0] = 0 | |
17017 | ||
17018 | ; | |
17019 | return 0; | |
17020 | } | |
17021 | _ACEOF | |
17022 | rm -f conftest.$ac_objext | |
17023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17024 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17025 | ac_status=$? |
32ddf007 VS |
17026 | grep -v '^ *+' conftest.er1 >conftest.err |
17027 | rm -f conftest.er1 | |
17028 | cat conftest.err >&5 | |
e6cc62c6 VS |
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17030 | (exit $ac_status); } && | |
32ddf007 VS |
17031 | { ac_try='test -z "$ac_c_werror_flag" |
17032 | || test ! -s conftest.err' | |
17033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17034 | (eval $ac_try) 2>&5 | |
17035 | ac_status=$? | |
17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17037 | (exit $ac_status); }; } && | |
17038 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17040 | (eval $ac_try) 2>&5 | |
17041 | ac_status=$? | |
17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17043 | (exit $ac_status); }; }; then | |
17044 | ac_hi=$ac_mid | |
17045 | else | |
17046 | echo "$as_me: failed program was:" >&5 | |
17047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17048 | ||
17049 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17050 | fi | |
32ddf007 | 17051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17052 | done |
17053 | case $ac_lo in | |
17054 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17055 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17056 | See \`config.log' for more details." >&5 | |
17057 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17058 | See \`config.log' for more details." >&2;} | |
17059 | { (exit 1); exit 1; }; } ;; | |
17060 | esac | |
a0b9e27f | 17061 | else |
e6cc62c6 VS |
17062 | if test "$cross_compiling" = yes; then |
17063 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17064 | See \`config.log' for more details." >&5 | |
17065 | echo "$as_me: error: cannot run test program while cross compiling | |
17066 | See \`config.log' for more details." >&2;} | |
17067 | { (exit 1); exit 1; }; } | |
17068 | else | |
17069 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17070 | /* confdefs.h. */ |
17071 | _ACEOF | |
17072 | cat confdefs.h >>conftest.$ac_ext | |
17073 | cat >>conftest.$ac_ext <<_ACEOF | |
17074 | /* end confdefs.h. */ | |
17075 | $ac_includes_default | |
17076 | long longval () { return (long) (sizeof (long long)); } | |
17077 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 17078 | #include <stdio.h> |
e6cc62c6 VS |
17079 | #include <stdlib.h> |
17080 | int | |
17081 | main () | |
247f5006 | 17082 | { |
e6cc62c6 VS |
17083 | |
17084 | FILE *f = fopen ("conftest.val", "w"); | |
17085 | if (! f) | |
17086 | exit (1); | |
17087 | if (((long) (sizeof (long long))) < 0) | |
17088 | { | |
17089 | long i = longval (); | |
17090 | if (i != ((long) (sizeof (long long)))) | |
17091 | exit (1); | |
17092 | fprintf (f, "%ld\n", i); | |
17093 | } | |
17094 | else | |
17095 | { | |
17096 | unsigned long i = ulongval (); | |
17097 | if (i != ((long) (sizeof (long long)))) | |
17098 | exit (1); | |
17099 | fprintf (f, "%lu\n", i); | |
17100 | } | |
17101 | exit (ferror (f) || fclose (f) != 0); | |
17102 | ||
17103 | ; | |
17104 | return 0; | |
247f5006 | 17105 | } |
e6cc62c6 VS |
17106 | _ACEOF |
17107 | rm -f conftest$ac_exeext | |
17108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17109 | (eval $ac_link) 2>&5 | |
17110 | ac_status=$? | |
17111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17114 | (eval $ac_try) 2>&5 | |
17115 | ac_status=$? | |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17117 | (exit $ac_status); }; }; then | |
17118 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17119 | else | |
17120 | echo "$as_me: program exited with status $ac_status" >&5 | |
17121 | echo "$as_me: failed program was:" >&5 | |
17122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17123 | ||
17124 | ( exit $ac_status ) | |
17125 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17126 | See \`config.log' for more details." >&5 | |
17127 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17128 | See \`config.log' for more details." >&2;} | |
17129 | { (exit 1); exit 1; }; } | |
17130 | fi | |
32ddf007 | 17131 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17132 | fi |
17133 | fi | |
17134 | rm -f conftest.val | |
7b4a847f | 17135 | else |
a0b9e27f | 17136 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
17137 | fi |
17138 | fi | |
e6cc62c6 VS |
17139 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17140 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17141 | cat >>confdefs.h <<_ACEOF | |
17142 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17143 | _ACEOF | |
17144 | ||
17145 | ||
17146 | ;; | |
17147 | *-hp-hpux* ) | |
17148 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17149 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17150 | if test "${ac_cv_type_long_long+set}" = set; then | |
17151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17152 | else | |
17153 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17154 | /* confdefs.h. */ |
17155 | _ACEOF | |
17156 | cat confdefs.h >>conftest.$ac_ext | |
17157 | cat >>conftest.$ac_ext <<_ACEOF | |
17158 | /* end confdefs.h. */ | |
17159 | $ac_includes_default | |
17160 | int | |
17161 | main () | |
17162 | { | |
17163 | if ((long long *) 0) | |
17164 | return 0; | |
17165 | if (sizeof (long long)) | |
17166 | return 0; | |
17167 | ; | |
17168 | return 0; | |
17169 | } | |
17170 | _ACEOF | |
17171 | rm -f conftest.$ac_objext | |
17172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17173 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17174 | ac_status=$? |
32ddf007 VS |
17175 | grep -v '^ *+' conftest.er1 >conftest.err |
17176 | rm -f conftest.er1 | |
17177 | cat conftest.err >&5 | |
e6cc62c6 VS |
17178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17179 | (exit $ac_status); } && | |
32ddf007 VS |
17180 | { ac_try='test -z "$ac_c_werror_flag" |
17181 | || test ! -s conftest.err' | |
17182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17183 | (eval $ac_try) 2>&5 | |
17184 | ac_status=$? | |
17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17186 | (exit $ac_status); }; } && | |
17187 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17189 | (eval $ac_try) 2>&5 | |
17190 | ac_status=$? | |
17191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17192 | (exit $ac_status); }; }; then | |
17193 | ac_cv_type_long_long=yes | |
17194 | else | |
17195 | echo "$as_me: failed program was:" >&5 | |
17196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17197 | ||
17198 | ac_cv_type_long_long=no | |
17199 | fi | |
32ddf007 | 17200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17201 | fi |
17202 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17203 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17204 | ||
17205 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17206 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17207 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17209 | else | |
17210 | if test "$ac_cv_type_long_long" = yes; then | |
17211 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17212 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17213 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17214 | # This bug is HP SR number 8606223364. | |
17215 | if test "$cross_compiling" = yes; then | |
17216 | # Depending upon the size, compute the lo and hi bounds. | |
17217 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17218 | /* confdefs.h. */ |
17219 | _ACEOF | |
17220 | cat confdefs.h >>conftest.$ac_ext | |
17221 | cat >>conftest.$ac_ext <<_ACEOF | |
17222 | /* end confdefs.h. */ | |
17223 | $ac_includes_default | |
17224 | int | |
17225 | main () | |
17226 | { | |
17227 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17228 | test_array [0] = 0 | |
17229 | ||
17230 | ; | |
17231 | return 0; | |
17232 | } | |
17233 | _ACEOF | |
17234 | rm -f conftest.$ac_objext | |
17235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17236 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17237 | ac_status=$? |
32ddf007 VS |
17238 | grep -v '^ *+' conftest.er1 >conftest.err |
17239 | rm -f conftest.er1 | |
17240 | cat conftest.err >&5 | |
e6cc62c6 VS |
17241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17242 | (exit $ac_status); } && | |
32ddf007 VS |
17243 | { ac_try='test -z "$ac_c_werror_flag" |
17244 | || test ! -s conftest.err' | |
17245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17246 | (eval $ac_try) 2>&5 | |
17247 | ac_status=$? | |
17248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17249 | (exit $ac_status); }; } && | |
17250 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17252 | (eval $ac_try) 2>&5 | |
17253 | ac_status=$? | |
17254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17255 | (exit $ac_status); }; }; then | |
17256 | ac_lo=0 ac_mid=0 | |
17257 | while :; do | |
17258 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17259 | /* confdefs.h. */ |
17260 | _ACEOF | |
17261 | cat confdefs.h >>conftest.$ac_ext | |
17262 | cat >>conftest.$ac_ext <<_ACEOF | |
17263 | /* end confdefs.h. */ | |
17264 | $ac_includes_default | |
17265 | int | |
17266 | main () | |
17267 | { | |
17268 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17269 | test_array [0] = 0 | |
8284b0c5 | 17270 | |
e6cc62c6 VS |
17271 | ; |
17272 | return 0; | |
17273 | } | |
17274 | _ACEOF | |
17275 | rm -f conftest.$ac_objext | |
17276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17277 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17278 | ac_status=$? |
32ddf007 VS |
17279 | grep -v '^ *+' conftest.er1 >conftest.err |
17280 | rm -f conftest.er1 | |
17281 | cat conftest.err >&5 | |
e6cc62c6 VS |
17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17283 | (exit $ac_status); } && | |
32ddf007 VS |
17284 | { ac_try='test -z "$ac_c_werror_flag" |
17285 | || test ! -s conftest.err' | |
17286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17287 | (eval $ac_try) 2>&5 | |
17288 | ac_status=$? | |
17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17290 | (exit $ac_status); }; } && | |
17291 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17293 | (eval $ac_try) 2>&5 | |
17294 | ac_status=$? | |
17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17296 | (exit $ac_status); }; }; then | |
17297 | ac_hi=$ac_mid; break | |
17298 | else | |
17299 | echo "$as_me: failed program was:" >&5 | |
17300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17301 | ||
17302 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17303 | if test $ac_lo -le $ac_mid; then |
17304 | ac_lo= ac_hi= | |
17305 | break | |
17306 | fi | |
17307 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 17308 | fi |
32ddf007 | 17309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17310 | done |
17311 | else | |
17312 | echo "$as_me: failed program was:" >&5 | |
17313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17314 | ||
17315 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17316 | /* confdefs.h. */ |
17317 | _ACEOF | |
17318 | cat confdefs.h >>conftest.$ac_ext | |
17319 | cat >>conftest.$ac_ext <<_ACEOF | |
17320 | /* end confdefs.h. */ | |
17321 | $ac_includes_default | |
17322 | int | |
17323 | main () | |
17324 | { | |
17325 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17326 | test_array [0] = 0 | |
a0b9e27f | 17327 | |
e6cc62c6 VS |
17328 | ; |
17329 | return 0; | |
17330 | } | |
17331 | _ACEOF | |
17332 | rm -f conftest.$ac_objext | |
17333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17334 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17335 | ac_status=$? |
32ddf007 VS |
17336 | grep -v '^ *+' conftest.er1 >conftest.err |
17337 | rm -f conftest.er1 | |
17338 | cat conftest.err >&5 | |
e6cc62c6 VS |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17340 | (exit $ac_status); } && | |
32ddf007 VS |
17341 | { ac_try='test -z "$ac_c_werror_flag" |
17342 | || test ! -s conftest.err' | |
17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17344 | (eval $ac_try) 2>&5 | |
17345 | ac_status=$? | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); }; } && | |
17348 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17350 | (eval $ac_try) 2>&5 | |
17351 | ac_status=$? | |
17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17353 | (exit $ac_status); }; }; then | |
17354 | ac_hi=-1 ac_mid=-1 | |
17355 | while :; do | |
17356 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17357 | /* confdefs.h. */ |
17358 | _ACEOF | |
17359 | cat confdefs.h >>conftest.$ac_ext | |
17360 | cat >>conftest.$ac_ext <<_ACEOF | |
17361 | /* end confdefs.h. */ | |
17362 | $ac_includes_default | |
17363 | int | |
17364 | main () | |
17365 | { | |
17366 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17367 | test_array [0] = 0 | |
a0b9e27f | 17368 | |
e6cc62c6 VS |
17369 | ; |
17370 | return 0; | |
17371 | } | |
17372 | _ACEOF | |
17373 | rm -f conftest.$ac_objext | |
17374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17375 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17376 | ac_status=$? |
32ddf007 VS |
17377 | grep -v '^ *+' conftest.er1 >conftest.err |
17378 | rm -f conftest.er1 | |
17379 | cat conftest.err >&5 | |
e6cc62c6 VS |
17380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17381 | (exit $ac_status); } && | |
32ddf007 VS |
17382 | { ac_try='test -z "$ac_c_werror_flag" |
17383 | || test ! -s conftest.err' | |
17384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17385 | (eval $ac_try) 2>&5 | |
17386 | ac_status=$? | |
17387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17388 | (exit $ac_status); }; } && | |
17389 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17391 | (eval $ac_try) 2>&5 | |
17392 | ac_status=$? | |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17394 | (exit $ac_status); }; }; then | |
17395 | ac_lo=$ac_mid; break | |
17396 | else | |
17397 | echo "$as_me: failed program was:" >&5 | |
17398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17399 | ||
17400 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17401 | if test $ac_mid -le $ac_hi; then |
17402 | ac_lo= ac_hi= | |
17403 | break | |
17404 | fi | |
17405 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17406 | fi |
32ddf007 | 17407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17408 | done |
8284b0c5 | 17409 | else |
e6cc62c6 VS |
17410 | echo "$as_me: failed program was:" >&5 |
17411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17412 | ||
17413 | ac_lo= ac_hi= | |
17414 | fi | |
32ddf007 | 17415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17416 | fi |
32ddf007 | 17417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17418 | # Binary search between lo and hi bounds. |
17419 | while test "x$ac_lo" != "x$ac_hi"; do | |
17420 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17421 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17422 | /* confdefs.h. */ |
17423 | _ACEOF | |
17424 | cat confdefs.h >>conftest.$ac_ext | |
17425 | cat >>conftest.$ac_ext <<_ACEOF | |
17426 | /* end confdefs.h. */ | |
17427 | $ac_includes_default | |
17428 | int | |
17429 | main () | |
17430 | { | |
17431 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17432 | test_array [0] = 0 | |
17433 | ||
17434 | ; | |
17435 | return 0; | |
17436 | } | |
17437 | _ACEOF | |
17438 | rm -f conftest.$ac_objext | |
17439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17440 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17441 | ac_status=$? |
32ddf007 VS |
17442 | grep -v '^ *+' conftest.er1 >conftest.err |
17443 | rm -f conftest.er1 | |
17444 | cat conftest.err >&5 | |
e6cc62c6 VS |
17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17446 | (exit $ac_status); } && | |
32ddf007 VS |
17447 | { ac_try='test -z "$ac_c_werror_flag" |
17448 | || test ! -s conftest.err' | |
17449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17450 | (eval $ac_try) 2>&5 | |
17451 | ac_status=$? | |
17452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17453 | (exit $ac_status); }; } && | |
17454 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17456 | (eval $ac_try) 2>&5 | |
17457 | ac_status=$? | |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17459 | (exit $ac_status); }; }; then | |
17460 | ac_hi=$ac_mid | |
17461 | else | |
17462 | echo "$as_me: failed program was:" >&5 | |
17463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17464 | ||
17465 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17466 | fi | |
32ddf007 | 17467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17468 | done |
17469 | case $ac_lo in | |
17470 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17471 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17472 | See \`config.log' for more details." >&5 | |
17473 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17474 | See \`config.log' for more details." >&2;} | |
17475 | { (exit 1); exit 1; }; } ;; | |
17476 | esac | |
8284b0c5 | 17477 | else |
e6cc62c6 VS |
17478 | if test "$cross_compiling" = yes; then |
17479 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17480 | See \`config.log' for more details." >&5 | |
17481 | echo "$as_me: error: cannot run test program while cross compiling | |
17482 | See \`config.log' for more details." >&2;} | |
17483 | { (exit 1); exit 1; }; } | |
17484 | else | |
17485 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17486 | /* confdefs.h. */ |
17487 | _ACEOF | |
17488 | cat confdefs.h >>conftest.$ac_ext | |
17489 | cat >>conftest.$ac_ext <<_ACEOF | |
17490 | /* end confdefs.h. */ | |
17491 | $ac_includes_default | |
17492 | long longval () { return (long) (sizeof (long long)); } | |
17493 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 17494 | #include <stdio.h> |
e6cc62c6 VS |
17495 | #include <stdlib.h> |
17496 | int | |
17497 | main () | |
8284b0c5 | 17498 | { |
e6cc62c6 VS |
17499 | |
17500 | FILE *f = fopen ("conftest.val", "w"); | |
17501 | if (! f) | |
17502 | exit (1); | |
17503 | if (((long) (sizeof (long long))) < 0) | |
17504 | { | |
17505 | long i = longval (); | |
17506 | if (i != ((long) (sizeof (long long)))) | |
17507 | exit (1); | |
17508 | fprintf (f, "%ld\n", i); | |
17509 | } | |
17510 | else | |
17511 | { | |
17512 | unsigned long i = ulongval (); | |
17513 | if (i != ((long) (sizeof (long long)))) | |
17514 | exit (1); | |
17515 | fprintf (f, "%lu\n", i); | |
17516 | } | |
17517 | exit (ferror (f) || fclose (f) != 0); | |
17518 | ||
17519 | ; | |
17520 | return 0; | |
8284b0c5 | 17521 | } |
e6cc62c6 VS |
17522 | _ACEOF |
17523 | rm -f conftest$ac_exeext | |
17524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17525 | (eval $ac_link) 2>&5 | |
17526 | ac_status=$? | |
17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17530 | (eval $ac_try) 2>&5 | |
17531 | ac_status=$? | |
17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17533 | (exit $ac_status); }; }; then | |
17534 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17535 | else | |
17536 | echo "$as_me: program exited with status $ac_status" >&5 | |
17537 | echo "$as_me: failed program was:" >&5 | |
17538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17539 | ||
17540 | ( exit $ac_status ) | |
17541 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17542 | See \`config.log' for more details." >&5 | |
17543 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17544 | See \`config.log' for more details." >&2;} | |
17545 | { (exit 1); exit 1; }; } | |
17546 | fi | |
32ddf007 | 17547 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17548 | fi |
17549 | fi | |
17550 | rm -f conftest.val | |
5c6fa7d2 RR |
17551 | else |
17552 | ac_cv_sizeof_long_long=0 | |
52127426 | 17553 | fi |
4f57cf11 | 17554 | fi |
e6cc62c6 VS |
17555 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17556 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17557 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 17558 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17559 | _ACEOF |
4f57cf11 GD |
17560 | |
17561 | ||
17562 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17563 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17564 | fi | |
17565 | ;; | |
17566 | * ) | |
e6cc62c6 VS |
17567 | echo "$as_me:$LINENO: checking for long long" >&5 |
17568 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17569 | if test "${ac_cv_type_long_long+set}" = set; then | |
17570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17571 | else | |
17572 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17573 | /* confdefs.h. */ |
17574 | _ACEOF | |
17575 | cat confdefs.h >>conftest.$ac_ext | |
17576 | cat >>conftest.$ac_ext <<_ACEOF | |
17577 | /* end confdefs.h. */ | |
17578 | $ac_includes_default | |
17579 | int | |
17580 | main () | |
17581 | { | |
17582 | if ((long long *) 0) | |
17583 | return 0; | |
17584 | if (sizeof (long long)) | |
17585 | return 0; | |
17586 | ; | |
17587 | return 0; | |
17588 | } | |
17589 | _ACEOF | |
17590 | rm -f conftest.$ac_objext | |
17591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17592 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17593 | ac_status=$? |
32ddf007 VS |
17594 | grep -v '^ *+' conftest.er1 >conftest.err |
17595 | rm -f conftest.er1 | |
17596 | cat conftest.err >&5 | |
e6cc62c6 VS |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17598 | (exit $ac_status); } && | |
32ddf007 VS |
17599 | { ac_try='test -z "$ac_c_werror_flag" |
17600 | || test ! -s conftest.err' | |
17601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17602 | (eval $ac_try) 2>&5 | |
17603 | ac_status=$? | |
17604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17605 | (exit $ac_status); }; } && | |
17606 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17608 | (eval $ac_try) 2>&5 | |
17609 | ac_status=$? | |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); }; }; then | |
17612 | ac_cv_type_long_long=yes | |
17613 | else | |
17614 | echo "$as_me: failed program was:" >&5 | |
17615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17616 | ||
17617 | ac_cv_type_long_long=no | |
17618 | fi | |
32ddf007 | 17619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17620 | fi |
17621 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17622 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17623 | ||
17624 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17625 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17626 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17628 | else | |
17629 | if test "$ac_cv_type_long_long" = yes; then | |
17630 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17631 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17632 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17633 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 17634 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
17635 | # Depending upon the size, compute the lo and hi bounds. |
17636 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17637 | /* confdefs.h. */ |
17638 | _ACEOF | |
17639 | cat confdefs.h >>conftest.$ac_ext | |
17640 | cat >>conftest.$ac_ext <<_ACEOF | |
17641 | /* end confdefs.h. */ | |
17642 | $ac_includes_default | |
17643 | int | |
17644 | main () | |
17645 | { | |
17646 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17647 | test_array [0] = 0 | |
17648 | ||
17649 | ; | |
17650 | return 0; | |
17651 | } | |
17652 | _ACEOF | |
17653 | rm -f conftest.$ac_objext | |
17654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17655 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17656 | ac_status=$? |
32ddf007 VS |
17657 | grep -v '^ *+' conftest.er1 >conftest.err |
17658 | rm -f conftest.er1 | |
17659 | cat conftest.err >&5 | |
e6cc62c6 VS |
17660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17661 | (exit $ac_status); } && | |
32ddf007 VS |
17662 | { ac_try='test -z "$ac_c_werror_flag" |
17663 | || test ! -s conftest.err' | |
17664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17665 | (eval $ac_try) 2>&5 | |
17666 | ac_status=$? | |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17668 | (exit $ac_status); }; } && | |
17669 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17671 | (eval $ac_try) 2>&5 | |
17672 | ac_status=$? | |
17673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17674 | (exit $ac_status); }; }; then | |
17675 | ac_lo=0 ac_mid=0 | |
17676 | while :; do | |
17677 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17678 | /* confdefs.h. */ |
17679 | _ACEOF | |
17680 | cat confdefs.h >>conftest.$ac_ext | |
17681 | cat >>conftest.$ac_ext <<_ACEOF | |
17682 | /* end confdefs.h. */ | |
17683 | $ac_includes_default | |
17684 | int | |
17685 | main () | |
17686 | { | |
17687 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17688 | test_array [0] = 0 | |
17689 | ||
17690 | ; | |
17691 | return 0; | |
17692 | } | |
17693 | _ACEOF | |
17694 | rm -f conftest.$ac_objext | |
17695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17696 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17697 | ac_status=$? |
32ddf007 VS |
17698 | grep -v '^ *+' conftest.er1 >conftest.err |
17699 | rm -f conftest.er1 | |
17700 | cat conftest.err >&5 | |
e6cc62c6 VS |
17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17702 | (exit $ac_status); } && | |
32ddf007 VS |
17703 | { ac_try='test -z "$ac_c_werror_flag" |
17704 | || test ! -s conftest.err' | |
17705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17706 | (eval $ac_try) 2>&5 | |
17707 | ac_status=$? | |
17708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17709 | (exit $ac_status); }; } && | |
17710 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17712 | (eval $ac_try) 2>&5 | |
17713 | ac_status=$? | |
17714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17715 | (exit $ac_status); }; }; then | |
17716 | ac_hi=$ac_mid; break | |
17717 | else | |
17718 | echo "$as_me: failed program was:" >&5 | |
17719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17720 | ||
17721 | ac_lo=`expr $ac_mid + 1` | |
32ddf007 VS |
17722 | if test $ac_lo -le $ac_mid; then |
17723 | ac_lo= ac_hi= | |
17724 | break | |
17725 | fi | |
17726 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 17727 | fi |
32ddf007 | 17728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17729 | done |
17730 | else | |
17731 | echo "$as_me: failed program was:" >&5 | |
17732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17733 | ||
17734 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17735 | /* confdefs.h. */ |
17736 | _ACEOF | |
17737 | cat confdefs.h >>conftest.$ac_ext | |
17738 | cat >>conftest.$ac_ext <<_ACEOF | |
17739 | /* end confdefs.h. */ | |
17740 | $ac_includes_default | |
17741 | int | |
17742 | main () | |
17743 | { | |
17744 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17745 | test_array [0] = 0 | |
17746 | ||
17747 | ; | |
17748 | return 0; | |
17749 | } | |
17750 | _ACEOF | |
17751 | rm -f conftest.$ac_objext | |
17752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17753 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17754 | ac_status=$? |
32ddf007 VS |
17755 | grep -v '^ *+' conftest.er1 >conftest.err |
17756 | rm -f conftest.er1 | |
17757 | cat conftest.err >&5 | |
e6cc62c6 VS |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17759 | (exit $ac_status); } && | |
32ddf007 VS |
17760 | { ac_try='test -z "$ac_c_werror_flag" |
17761 | || test ! -s conftest.err' | |
17762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17763 | (eval $ac_try) 2>&5 | |
17764 | ac_status=$? | |
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17766 | (exit $ac_status); }; } && | |
17767 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17769 | (eval $ac_try) 2>&5 | |
17770 | ac_status=$? | |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17772 | (exit $ac_status); }; }; then | |
17773 | ac_hi=-1 ac_mid=-1 | |
17774 | while :; do | |
17775 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17776 | /* confdefs.h. */ |
17777 | _ACEOF | |
17778 | cat confdefs.h >>conftest.$ac_ext | |
17779 | cat >>conftest.$ac_ext <<_ACEOF | |
17780 | /* end confdefs.h. */ | |
17781 | $ac_includes_default | |
17782 | int | |
17783 | main () | |
17784 | { | |
17785 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17786 | test_array [0] = 0 | |
17787 | ||
17788 | ; | |
17789 | return 0; | |
17790 | } | |
17791 | _ACEOF | |
17792 | rm -f conftest.$ac_objext | |
17793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17794 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17795 | ac_status=$? |
32ddf007 VS |
17796 | grep -v '^ *+' conftest.er1 >conftest.err |
17797 | rm -f conftest.er1 | |
17798 | cat conftest.err >&5 | |
e6cc62c6 VS |
17799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17800 | (exit $ac_status); } && | |
32ddf007 VS |
17801 | { ac_try='test -z "$ac_c_werror_flag" |
17802 | || test ! -s conftest.err' | |
17803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17804 | (eval $ac_try) 2>&5 | |
17805 | ac_status=$? | |
17806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17807 | (exit $ac_status); }; } && | |
17808 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17810 | (eval $ac_try) 2>&5 | |
17811 | ac_status=$? | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 | (exit $ac_status); }; }; then | |
17814 | ac_lo=$ac_mid; break | |
17815 | else | |
17816 | echo "$as_me: failed program was:" >&5 | |
17817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17818 | ||
17819 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32ddf007 VS |
17820 | if test $ac_mid -le $ac_hi; then |
17821 | ac_lo= ac_hi= | |
17822 | break | |
17823 | fi | |
17824 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 17825 | fi |
32ddf007 | 17826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17827 | done |
4f57cf11 | 17828 | else |
e6cc62c6 VS |
17829 | echo "$as_me: failed program was:" >&5 |
17830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17831 | ||
17832 | ac_lo= ac_hi= | |
17833 | fi | |
32ddf007 | 17834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17835 | fi |
32ddf007 | 17836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17837 | # Binary search between lo and hi bounds. |
17838 | while test "x$ac_lo" != "x$ac_hi"; do | |
17839 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17840 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17841 | /* confdefs.h. */ |
17842 | _ACEOF | |
17843 | cat confdefs.h >>conftest.$ac_ext | |
17844 | cat >>conftest.$ac_ext <<_ACEOF | |
17845 | /* end confdefs.h. */ | |
17846 | $ac_includes_default | |
17847 | int | |
17848 | main () | |
17849 | { | |
17850 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17851 | test_array [0] = 0 | |
17852 | ||
17853 | ; | |
17854 | return 0; | |
17855 | } | |
17856 | _ACEOF | |
17857 | rm -f conftest.$ac_objext | |
17858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 17859 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 17860 | ac_status=$? |
32ddf007 VS |
17861 | grep -v '^ *+' conftest.er1 >conftest.err |
17862 | rm -f conftest.er1 | |
17863 | cat conftest.err >&5 | |
e6cc62c6 VS |
17864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17865 | (exit $ac_status); } && | |
32ddf007 VS |
17866 | { ac_try='test -z "$ac_c_werror_flag" |
17867 | || test ! -s conftest.err' | |
17868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17869 | (eval $ac_try) 2>&5 | |
17870 | ac_status=$? | |
17871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17872 | (exit $ac_status); }; } && | |
17873 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
17874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17875 | (eval $ac_try) 2>&5 | |
17876 | ac_status=$? | |
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17878 | (exit $ac_status); }; }; then | |
17879 | ac_hi=$ac_mid | |
17880 | else | |
17881 | echo "$as_me: failed program was:" >&5 | |
17882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17883 | ||
17884 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17885 | fi | |
32ddf007 | 17886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17887 | done |
17888 | case $ac_lo in | |
17889 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17890 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17891 | See \`config.log' for more details." >&5 | |
17892 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17893 | See \`config.log' for more details." >&2;} | |
17894 | { (exit 1); exit 1; }; } ;; | |
17895 | esac | |
17896 | else | |
17897 | if test "$cross_compiling" = yes; then | |
17898 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17899 | See \`config.log' for more details." >&5 | |
17900 | echo "$as_me: error: cannot run test program while cross compiling | |
17901 | See \`config.log' for more details." >&2;} | |
17902 | { (exit 1); exit 1; }; } | |
17903 | else | |
17904 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
17905 | /* confdefs.h. */ |
17906 | _ACEOF | |
17907 | cat confdefs.h >>conftest.$ac_ext | |
17908 | cat >>conftest.$ac_ext <<_ACEOF | |
17909 | /* end confdefs.h. */ | |
17910 | $ac_includes_default | |
17911 | long longval () { return (long) (sizeof (long long)); } | |
17912 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 17913 | #include <stdio.h> |
e6cc62c6 VS |
17914 | #include <stdlib.h> |
17915 | int | |
17916 | main () | |
4f57cf11 | 17917 | { |
e6cc62c6 VS |
17918 | |
17919 | FILE *f = fopen ("conftest.val", "w"); | |
17920 | if (! f) | |
17921 | exit (1); | |
17922 | if (((long) (sizeof (long long))) < 0) | |
17923 | { | |
17924 | long i = longval (); | |
17925 | if (i != ((long) (sizeof (long long)))) | |
17926 | exit (1); | |
17927 | fprintf (f, "%ld\n", i); | |
17928 | } | |
17929 | else | |
17930 | { | |
17931 | unsigned long i = ulongval (); | |
17932 | if (i != ((long) (sizeof (long long)))) | |
17933 | exit (1); | |
17934 | fprintf (f, "%lu\n", i); | |
17935 | } | |
17936 | exit (ferror (f) || fclose (f) != 0); | |
17937 | ||
17938 | ; | |
17939 | return 0; | |
4f57cf11 | 17940 | } |
e6cc62c6 VS |
17941 | _ACEOF |
17942 | rm -f conftest$ac_exeext | |
17943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17944 | (eval $ac_link) 2>&5 | |
17945 | ac_status=$? | |
17946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17949 | (eval $ac_try) 2>&5 | |
17950 | ac_status=$? | |
17951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17952 | (exit $ac_status); }; }; then | |
17953 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17954 | else | |
17955 | echo "$as_me: program exited with status $ac_status" >&5 | |
17956 | echo "$as_me: failed program was:" >&5 | |
17957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17958 | ||
17959 | ( exit $ac_status ) | |
17960 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17961 | See \`config.log' for more details." >&5 | |
17962 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17963 | See \`config.log' for more details." >&2;} | |
17964 | { (exit 1); exit 1; }; } | |
17965 | fi | |
32ddf007 | 17966 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17967 | fi |
17968 | fi | |
17969 | rm -f conftest.val | |
4f57cf11 | 17970 | else |
4f57cf11 GD |
17971 | ac_cv_sizeof_long_long=0 |
17972 | fi | |
7b4a847f | 17973 | fi |
e6cc62c6 VS |
17974 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
17975 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17976 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 17977 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 17978 | _ACEOF |
9e691f46 | 17979 | |
8284b0c5 | 17980 | |
21d1c967 GD |
17981 | esac |
17982 | ||
e6cc62c6 VS |
17983 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
17984 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17985 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17987 | else |
e6cc62c6 | 17988 | |
21d1c967 | 17989 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 17990 | |
2b5f62a0 VZ |
17991 | case "${host}" in |
17992 | *-pc-msdosdjgpp ) | |
17993 | wx_cv_sizeof_wchar_t=0 | |
17994 | ;; | |
17995 | * ) | |
17996 | wx_cv_sizeof_wchar_t=4 | |
17997 | ;; | |
17998 | esac | |
e6cc62c6 VS |
17999 | |
18000 | ||
6f72b082 | 18001 | else |
e6cc62c6 | 18002 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18003 | /* confdefs.h. */ |
18004 | _ACEOF | |
18005 | cat confdefs.h >>conftest.$ac_ext | |
18006 | cat >>conftest.$ac_ext <<_ACEOF | |
18007 | /* end confdefs.h. */ | |
21d1c967 | 18008 | |
2b5f62a0 VZ |
18009 | /* DJGPP only has fake wchar_t: */ |
18010 | #ifdef __DJGPP__ | |
18011 | # error "fake wchar_t" | |
18012 | #endif | |
21d1c967 GD |
18013 | #ifdef HAVE_WCHAR_H |
18014 | # ifdef __CYGWIN__ | |
18015 | # include <stddef.h> | |
18016 | # endif | |
18017 | # include <wchar.h> | |
18018 | #endif | |
18019 | #ifdef HAVE_STDLIB_H | |
18020 | # include <stdlib.h> | |
18021 | #endif | |
18022 | #include <stdio.h> | |
18023 | int main() | |
18024 | { | |
18025 | FILE *f=fopen("conftestval", "w"); | |
18026 | if (!f) exit(1); | |
18027 | fprintf(f, "%i", sizeof(wchar_t)); | |
18028 | exit(0); | |
18029 | } | |
e6cc62c6 VS |
18030 | |
18031 | _ACEOF | |
18032 | rm -f conftest$ac_exeext | |
18033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18034 | (eval $ac_link) 2>&5 | |
18035 | ac_status=$? | |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18039 | (eval $ac_try) 2>&5 | |
18040 | ac_status=$? | |
18041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18042 | (exit $ac_status); }; }; then | |
21d1c967 | 18043 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 18044 | else |
e6cc62c6 VS |
18045 | echo "$as_me: program exited with status $ac_status" >&5 |
18046 | echo "$as_me: failed program was:" >&5 | |
18047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18048 | ||
18049 | ( exit $ac_status ) | |
18050 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 18051 | fi |
32ddf007 | 18052 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 18053 | fi |
6f72b082 | 18054 | |
3f345b47 | 18055 | fi |
e6cc62c6 VS |
18056 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
18057 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 18058 | |
e6cc62c6 | 18059 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18060 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 18061 | _ACEOF |
90dd450c | 18062 | |
8284b0c5 | 18063 | |
21d1c967 GD |
18064 | # Check whether --enable-largefile or --disable-largefile was given. |
18065 | if test "${enable_largefile+set}" = set; then | |
18066 | enableval="$enable_largefile" | |
3f345b47 | 18067 | |
e6cc62c6 | 18068 | fi; |
21d1c967 GD |
18069 | if test "$enable_largefile" != no; then |
18070 | wx_largefile=no | |
e6cc62c6 VS |
18071 | |
18072 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18073 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18074 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18076 | else | |
18077 | ||
18078 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18079 | /* confdefs.h. */ |
18080 | _ACEOF | |
18081 | cat confdefs.h >>conftest.$ac_ext | |
18082 | cat >>conftest.$ac_ext <<_ACEOF | |
18083 | /* end confdefs.h. */ | |
21d1c967 GD |
18084 | #define _FILE_OFFSET_BITS 64 |
18085 | #include <sys/types.h> | |
e6cc62c6 VS |
18086 | int |
18087 | main () | |
18088 | { | |
21d1c967 GD |
18089 | typedef struct { |
18090 | unsigned int field: sizeof(off_t) == 8; | |
18091 | } wxlf; | |
18092 | ||
e6cc62c6 VS |
18093 | ; |
18094 | return 0; | |
18095 | } | |
18096 | _ACEOF | |
18097 | rm -f conftest.$ac_objext | |
18098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18099 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18100 | ac_status=$? |
32ddf007 VS |
18101 | grep -v '^ *+' conftest.er1 >conftest.err |
18102 | rm -f conftest.er1 | |
18103 | cat conftest.err >&5 | |
e6cc62c6 VS |
18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18105 | (exit $ac_status); } && | |
32ddf007 VS |
18106 | { ac_try='test -z "$ac_c_werror_flag" |
18107 | || test ! -s conftest.err' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; } && | |
18113 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18115 | (eval $ac_try) 2>&5 | |
18116 | ac_status=$? | |
18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18118 | (exit $ac_status); }; }; then | |
21d1c967 | 18119 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 18120 | else |
e6cc62c6 VS |
18121 | echo "$as_me: failed program was:" >&5 |
18122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18123 | ||
18124 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 18125 | fi |
32ddf007 | 18126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18127 | |
a0b9e27f | 18128 | |
e6cc62c6 VS |
18129 | fi |
18130 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18131 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
18132 | |
18133 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18134 | wx_largefile=yes | |
e6cc62c6 | 18135 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18136 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 18137 | _ACEOF |
21d1c967 GD |
18138 | |
18139 | fi | |
18140 | ||
18141 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
18142 | |
18143 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18144 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18145 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18147 | else | |
18148 | ||
18149 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18150 | /* confdefs.h. */ |
18151 | _ACEOF | |
18152 | cat confdefs.h >>conftest.$ac_ext | |
18153 | cat >>conftest.$ac_ext <<_ACEOF | |
18154 | /* end confdefs.h. */ | |
21d1c967 GD |
18155 | #define _LARGE_FILES 1 |
18156 | #include <sys/types.h> | |
e6cc62c6 VS |
18157 | int |
18158 | main () | |
18159 | { | |
21d1c967 GD |
18160 | typedef struct { |
18161 | unsigned int field: sizeof(off_t) == 8; | |
18162 | } wxlf; | |
18163 | ||
e6cc62c6 VS |
18164 | ; |
18165 | return 0; | |
18166 | } | |
18167 | _ACEOF | |
18168 | rm -f conftest.$ac_objext | |
18169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18170 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18171 | ac_status=$? |
32ddf007 VS |
18172 | grep -v '^ *+' conftest.er1 >conftest.err |
18173 | rm -f conftest.er1 | |
18174 | cat conftest.err >&5 | |
e6cc62c6 VS |
18175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18176 | (exit $ac_status); } && | |
32ddf007 VS |
18177 | { ac_try='test -z "$ac_c_werror_flag" |
18178 | || test ! -s conftest.err' | |
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18180 | (eval $ac_try) 2>&5 | |
18181 | ac_status=$? | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); }; } && | |
18184 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18186 | (eval $ac_try) 2>&5 | |
18187 | ac_status=$? | |
18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18189 | (exit $ac_status); }; }; then | |
21d1c967 | 18190 | ac_cv_sys_large_files=1 |
f6bcfd97 | 18191 | else |
e6cc62c6 VS |
18192 | echo "$as_me: failed program was:" >&5 |
18193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18194 | ||
18195 | ac_cv_sys_large_files=no | |
247f5006 | 18196 | fi |
32ddf007 | 18197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18198 | |
e6cc62c6 VS |
18199 | |
18200 | fi | |
18201 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18202 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 18203 | |
21d1c967 GD |
18204 | if test "$ac_cv_sys_large_files" != no; then |
18205 | wx_largefile=yes | |
e6cc62c6 | 18206 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 18207 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 18208 | _ACEOF |
90dd450c | 18209 | |
90dd450c VZ |
18210 | fi |
18211 | ||
90dd450c | 18212 | fi |
90dd450c | 18213 | |
e6cc62c6 VS |
18214 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
18215 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 18216 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 18217 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18218 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 18219 | _ACEOF |
90dd450c | 18220 | |
90dd450c | 18221 | fi |
e6cc62c6 VS |
18222 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
18223 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 18224 | fi |
90dd450c | 18225 | |
8284b0c5 | 18226 | |
f02444d0 | 18227 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
18228 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
18229 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 18230 | else |
e26c13cf | 18231 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 18232 | fi |
e26c13cf | 18233 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
18234 | fi |
18235 | ||
e6cc62c6 VS |
18236 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
18237 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18238 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 18240 | else |
21d1c967 GD |
18241 | ac_cv_c_bigendian=unknown |
18242 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 18243 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18244 | /* confdefs.h. */ |
18245 | _ACEOF | |
18246 | cat confdefs.h >>conftest.$ac_ext | |
18247 | cat >>conftest.$ac_ext <<_ACEOF | |
18248 | /* end confdefs.h. */ | |
21d1c967 GD |
18249 | #include <sys/types.h> |
18250 | #include <sys/param.h> | |
e6cc62c6 VS |
18251 | int |
18252 | main () | |
18253 | { | |
21d1c967 GD |
18254 | |
18255 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18256 | bogus endian macros | |
18257 | #endif | |
e6cc62c6 VS |
18258 | ; |
18259 | return 0; | |
18260 | } | |
18261 | _ACEOF | |
18262 | rm -f conftest.$ac_objext | |
18263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18264 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18265 | ac_status=$? |
32ddf007 VS |
18266 | grep -v '^ *+' conftest.er1 >conftest.err |
18267 | rm -f conftest.er1 | |
18268 | cat conftest.err >&5 | |
e6cc62c6 VS |
18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18270 | (exit $ac_status); } && | |
32ddf007 VS |
18271 | { ac_try='test -z "$ac_c_werror_flag" |
18272 | || test ! -s conftest.err' | |
18273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18274 | (eval $ac_try) 2>&5 | |
18275 | ac_status=$? | |
18276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18277 | (exit $ac_status); }; } && | |
18278 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18280 | (eval $ac_try) 2>&5 | |
18281 | ac_status=$? | |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18283 | (exit $ac_status); }; }; then | |
21d1c967 | 18284 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 18285 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18286 | /* confdefs.h. */ |
18287 | _ACEOF | |
18288 | cat confdefs.h >>conftest.$ac_ext | |
18289 | cat >>conftest.$ac_ext <<_ACEOF | |
18290 | /* end confdefs.h. */ | |
21d1c967 GD |
18291 | #include <sys/types.h> |
18292 | #include <sys/param.h> | |
e6cc62c6 VS |
18293 | int |
18294 | main () | |
18295 | { | |
21d1c967 GD |
18296 | |
18297 | #if BYTE_ORDER != BIG_ENDIAN | |
18298 | not big endian | |
18299 | #endif | |
e6cc62c6 VS |
18300 | ; |
18301 | return 0; | |
18302 | } | |
18303 | _ACEOF | |
18304 | rm -f conftest.$ac_objext | |
18305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18306 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18307 | ac_status=$? |
32ddf007 VS |
18308 | grep -v '^ *+' conftest.er1 >conftest.err |
18309 | rm -f conftest.er1 | |
18310 | cat conftest.err >&5 | |
e6cc62c6 VS |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18312 | (exit $ac_status); } && | |
32ddf007 VS |
18313 | { ac_try='test -z "$ac_c_werror_flag" |
18314 | || test ! -s conftest.err' | |
18315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18316 | (eval $ac_try) 2>&5 | |
18317 | ac_status=$? | |
18318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18319 | (exit $ac_status); }; } && | |
18320 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18322 | (eval $ac_try) 2>&5 | |
18323 | ac_status=$? | |
18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18325 | (exit $ac_status); }; }; then | |
21d1c967 | 18326 | ac_cv_c_bigendian=yes |
3f345b47 | 18327 | else |
e6cc62c6 VS |
18328 | echo "$as_me: failed program was:" >&5 |
18329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18330 | ||
18331 | ac_cv_c_bigendian=no | |
3f345b47 | 18332 | fi |
32ddf007 | 18333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 18334 | else |
e6cc62c6 VS |
18335 | echo "$as_me: failed program was:" >&5 |
18336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18337 | ||
3f345b47 | 18338 | fi |
32ddf007 | 18339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18340 | if test $ac_cv_c_bigendian = unknown; then |
18341 | if test "$cross_compiling" = yes; then | |
18342 | ac_cv_c_bigendian=unknown | |
10f2d63a | 18343 | else |
e6cc62c6 | 18344 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18345 | /* confdefs.h. */ |
18346 | _ACEOF | |
18347 | cat confdefs.h >>conftest.$ac_ext | |
18348 | cat >>conftest.$ac_ext <<_ACEOF | |
18349 | /* end confdefs.h. */ | |
21d1c967 GD |
18350 | main () { |
18351 | /* Are we little or big endian? From Harbison&Steele. */ | |
18352 | union | |
18353 | { | |
18354 | long l; | |
18355 | char c[sizeof (long)]; | |
18356 | } u; | |
18357 | u.l = 1; | |
18358 | exit (u.c[sizeof (long) - 1] == 1); | |
18359 | } | |
e6cc62c6 VS |
18360 | _ACEOF |
18361 | rm -f conftest$ac_exeext | |
18362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18363 | (eval $ac_link) 2>&5 | |
18364 | ac_status=$? | |
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18368 | (eval $ac_try) 2>&5 | |
18369 | ac_status=$? | |
18370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18371 | (exit $ac_status); }; }; then | |
21d1c967 | 18372 | ac_cv_c_bigendian=no |
3f345b47 | 18373 | else |
e6cc62c6 VS |
18374 | echo "$as_me: program exited with status $ac_status" >&5 |
18375 | echo "$as_me: failed program was:" >&5 | |
18376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18377 | ||
18378 | ( exit $ac_status ) | |
18379 | ac_cv_c_bigendian=yes | |
247f5006 | 18380 | fi |
32ddf007 | 18381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 18382 | fi |
3f345b47 | 18383 | fi |
8168de4c | 18384 | fi |
e6cc62c6 VS |
18385 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
18386 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 18387 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
18388 | { 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 |
18389 | 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 |
18390 | fi |
18391 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 18392 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 18393 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 18394 | _ACEOF |
247f5006 VZ |
18395 | |
18396 | fi | |
18397 | ||
18398 | ||
e6cc62c6 VS |
18399 | ac_ext=cc |
18400 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18401 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18402 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18403 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18404 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18405 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 18406 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
18407 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
18408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18409 | else | |
18410 | # Double quotes because CXXCPP needs to be expanded | |
18411 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18412 | do | |
18413 | ac_preproc_ok=false | |
18414 | for ac_cxx_preproc_warn_flag in '' yes | |
18415 | do | |
18416 | # Use a header file that comes with gcc, so configuring glibc | |
18417 | # with a fresh cross-compiler works. | |
18418 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18419 | # <limits.h> exists even on freestanding compilers. | |
18420 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18421 | # not just through cpp. "Syntax error" is here to catch this case. | |
18422 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18423 | /* confdefs.h. */ |
18424 | _ACEOF | |
18425 | cat confdefs.h >>conftest.$ac_ext | |
18426 | cat >>conftest.$ac_ext <<_ACEOF | |
18427 | /* end confdefs.h. */ | |
18428 | #ifdef __STDC__ | |
18429 | # include <limits.h> | |
18430 | #else | |
18431 | # include <assert.h> | |
18432 | #endif | |
32ddf007 | 18433 | Syntax error |
e6cc62c6 VS |
18434 | _ACEOF |
18435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18437 | ac_status=$? | |
18438 | grep -v '^ *+' conftest.er1 >conftest.err | |
18439 | rm -f conftest.er1 | |
18440 | cat conftest.err >&5 | |
18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18442 | (exit $ac_status); } >/dev/null; then | |
18443 | if test -s conftest.err; then | |
18444 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18445 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18446 | else |
18447 | ac_cpp_err= | |
18448 | fi | |
247f5006 | 18449 | else |
e6cc62c6 VS |
18450 | ac_cpp_err=yes |
18451 | fi | |
18452 | if test -z "$ac_cpp_err"; then | |
18453 | : | |
18454 | else | |
18455 | echo "$as_me: failed program was:" >&5 | |
18456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18457 | ||
18458 | # Broken: fails on valid input. | |
18459 | continue | |
18460 | fi | |
18461 | rm -f conftest.err conftest.$ac_ext | |
18462 | ||
18463 | # OK, works on sane cases. Now check whether non-existent headers | |
18464 | # can be detected and how. | |
18465 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18466 | /* confdefs.h. */ |
18467 | _ACEOF | |
18468 | cat confdefs.h >>conftest.$ac_ext | |
18469 | cat >>conftest.$ac_ext <<_ACEOF | |
18470 | /* end confdefs.h. */ | |
18471 | #include <ac_nonexistent.h> | |
18472 | _ACEOF | |
18473 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18474 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18475 | ac_status=$? | |
18476 | grep -v '^ *+' conftest.er1 >conftest.err | |
18477 | rm -f conftest.er1 | |
18478 | cat conftest.err >&5 | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); } >/dev/null; then | |
18481 | if test -s conftest.err; then | |
18482 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18483 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18484 | else |
18485 | ac_cpp_err= | |
18486 | fi | |
18487 | else | |
18488 | ac_cpp_err=yes | |
18489 | fi | |
18490 | if test -z "$ac_cpp_err"; then | |
18491 | # Broken: success on invalid input. | |
18492 | continue | |
18493 | else | |
18494 | echo "$as_me: failed program was:" >&5 | |
18495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18496 | ||
18497 | # Passes both tests. | |
18498 | ac_preproc_ok=: | |
18499 | break | |
18500 | fi | |
18501 | rm -f conftest.err conftest.$ac_ext | |
18502 | ||
18503 | done | |
18504 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18505 | rm -f conftest.err conftest.$ac_ext | |
18506 | if $ac_preproc_ok; then | |
18507 | break | |
18508 | fi | |
18509 | ||
18510 | done | |
18511 | ac_cv_prog_CXXCPP=$CXXCPP | |
18512 | ||
18513 | fi | |
18514 | CXXCPP=$ac_cv_prog_CXXCPP | |
18515 | else | |
18516 | ac_cv_prog_CXXCPP=$CXXCPP | |
18517 | fi | |
18518 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18519 | echo "${ECHO_T}$CXXCPP" >&6 | |
18520 | ac_preproc_ok=false | |
18521 | for ac_cxx_preproc_warn_flag in '' yes | |
18522 | do | |
18523 | # Use a header file that comes with gcc, so configuring glibc | |
18524 | # with a fresh cross-compiler works. | |
18525 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18526 | # <limits.h> exists even on freestanding compilers. | |
18527 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18528 | # not just through cpp. "Syntax error" is here to catch this case. | |
18529 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18530 | /* confdefs.h. */ |
18531 | _ACEOF | |
18532 | cat confdefs.h >>conftest.$ac_ext | |
18533 | cat >>conftest.$ac_ext <<_ACEOF | |
18534 | /* end confdefs.h. */ | |
18535 | #ifdef __STDC__ | |
18536 | # include <limits.h> | |
18537 | #else | |
18538 | # include <assert.h> | |
18539 | #endif | |
32ddf007 | 18540 | Syntax error |
e6cc62c6 VS |
18541 | _ACEOF |
18542 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18543 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18544 | ac_status=$? | |
18545 | grep -v '^ *+' conftest.er1 >conftest.err | |
18546 | rm -f conftest.er1 | |
18547 | cat conftest.err >&5 | |
18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18549 | (exit $ac_status); } >/dev/null; then | |
18550 | if test -s conftest.err; then | |
18551 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18552 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18553 | else |
18554 | ac_cpp_err= | |
18555 | fi | |
18556 | else | |
18557 | ac_cpp_err=yes | |
18558 | fi | |
18559 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 18560 | : |
698dcdb6 | 18561 | else |
e6cc62c6 VS |
18562 | echo "$as_me: failed program was:" >&5 |
18563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18564 | ||
18565 | # Broken: fails on valid input. | |
18566 | continue | |
18567 | fi | |
18568 | rm -f conftest.err conftest.$ac_ext | |
18569 | ||
18570 | # OK, works on sane cases. Now check whether non-existent headers | |
18571 | # can be detected and how. | |
18572 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18573 | /* confdefs.h. */ |
18574 | _ACEOF | |
18575 | cat confdefs.h >>conftest.$ac_ext | |
18576 | cat >>conftest.$ac_ext <<_ACEOF | |
18577 | /* end confdefs.h. */ | |
18578 | #include <ac_nonexistent.h> | |
18579 | _ACEOF | |
18580 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18581 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18582 | ac_status=$? | |
18583 | grep -v '^ *+' conftest.er1 >conftest.err | |
18584 | rm -f conftest.er1 | |
18585 | cat conftest.err >&5 | |
18586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18587 | (exit $ac_status); } >/dev/null; then | |
18588 | if test -s conftest.err; then | |
18589 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18590 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18591 | else |
18592 | ac_cpp_err= | |
18593 | fi | |
18594 | else | |
18595 | ac_cpp_err=yes | |
247f5006 | 18596 | fi |
e6cc62c6 VS |
18597 | if test -z "$ac_cpp_err"; then |
18598 | # Broken: success on invalid input. | |
18599 | continue | |
18600 | else | |
18601 | echo "$as_me: failed program was:" >&5 | |
18602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18603 | ||
18604 | # Passes both tests. | |
18605 | ac_preproc_ok=: | |
18606 | break | |
328a083c | 18607 | fi |
e6cc62c6 VS |
18608 | rm -f conftest.err conftest.$ac_ext |
18609 | ||
18610 | done | |
18611 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18612 | rm -f conftest.err conftest.$ac_ext | |
18613 | if $ac_preproc_ok; then | |
18614 | : | |
18615 | else | |
18616 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18617 | See \`config.log' for more details." >&5 | |
18618 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18619 | See \`config.log' for more details." >&2;} | |
18620 | { (exit 1); exit 1; }; } | |
90dd450c | 18621 | fi |
e6cc62c6 VS |
18622 | |
18623 | ac_ext=cc | |
18624 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18625 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18626 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18627 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18628 | ||
1e6feb95 | 18629 | |
1725144d | 18630 | |
21d1c967 | 18631 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 18632 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18633 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18634 | _ACEOF |
ab9b9eab | 18635 | |
21d1c967 | 18636 | else |
e6cc62c6 VS |
18637 | |
18638 | ||
18639 | ac_ext=cc | |
5c6fa7d2 | 18640 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18641 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18642 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18643 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18644 | ||
52127426 | 18645 | |
247f5006 | 18646 | |
e6cc62c6 | 18647 | for ac_header in iostream |
21d1c967 | 18648 | do |
e6cc62c6 VS |
18649 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
18650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18655 | fi | |
18656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18658 | else | |
18659 | # Is the header compilable? | |
18660 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18661 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18662 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18663 | /* confdefs.h. */ |
18664 | _ACEOF | |
18665 | cat confdefs.h >>conftest.$ac_ext | |
18666 | cat >>conftest.$ac_ext <<_ACEOF | |
18667 | /* end confdefs.h. */ | |
18668 | $ac_includes_default | |
18669 | #include <$ac_header> | |
18670 | _ACEOF | |
18671 | rm -f conftest.$ac_objext | |
18672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18673 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18674 | ac_status=$? |
32ddf007 VS |
18675 | grep -v '^ *+' conftest.er1 >conftest.err |
18676 | rm -f conftest.er1 | |
18677 | cat conftest.err >&5 | |
e6cc62c6 VS |
18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18679 | (exit $ac_status); } && | |
32ddf007 VS |
18680 | { ac_try='test -z "$ac_cxx_werror_flag" |
18681 | || test ! -s conftest.err' | |
18682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18683 | (eval $ac_try) 2>&5 | |
18684 | ac_status=$? | |
18685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18686 | (exit $ac_status); }; } && | |
18687 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18689 | (eval $ac_try) 2>&5 | |
18690 | ac_status=$? | |
18691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18692 | (exit $ac_status); }; }; then | |
18693 | ac_header_compiler=yes | |
18694 | else | |
18695 | echo "$as_me: failed program was:" >&5 | |
18696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18697 | ||
18698 | ac_header_compiler=no | |
18699 | fi | |
32ddf007 | 18700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18702 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18703 | ||
18704 | # Is the header present? | |
18705 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18706 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18707 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18708 | /* confdefs.h. */ |
18709 | _ACEOF | |
18710 | cat confdefs.h >>conftest.$ac_ext | |
18711 | cat >>conftest.$ac_ext <<_ACEOF | |
18712 | /* end confdefs.h. */ | |
18713 | #include <$ac_header> | |
18714 | _ACEOF | |
18715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18717 | ac_status=$? | |
18718 | grep -v '^ *+' conftest.er1 >conftest.err | |
18719 | rm -f conftest.er1 | |
18720 | cat conftest.err >&5 | |
18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18722 | (exit $ac_status); } >/dev/null; then | |
18723 | if test -s conftest.err; then | |
18724 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
32ddf007 | 18725 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
e6cc62c6 VS |
18726 | else |
18727 | ac_cpp_err= | |
18728 | fi | |
18729 | else | |
18730 | ac_cpp_err=yes | |
18731 | fi | |
18732 | if test -z "$ac_cpp_err"; then | |
18733 | ac_header_preproc=yes | |
18734 | else | |
18735 | echo "$as_me: failed program was:" >&5 | |
18736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18737 | ||
18738 | ac_header_preproc=no | |
18739 | fi | |
18740 | rm -f conftest.err conftest.$ac_ext | |
18741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18742 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18743 | ||
18744 | # So? What about this header? | |
32ddf007 VS |
18745 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18746 | yes:no: ) | |
e6cc62c6 VS |
18747 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18748 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
18749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18750 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18751 | ac_header_preproc=yes | |
e6cc62c6 | 18752 | ;; |
32ddf007 | 18753 | no:yes:* ) |
e6cc62c6 VS |
18754 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18755 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
18756 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18757 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18758 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18759 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18760 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18761 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
18762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18763 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
18764 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18765 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
18766 | ( |
18767 | cat <<\_ASBOX | |
32ddf007 VS |
18768 | ## ----------------------------------------- ## |
18769 | ## Report this to wx-dev@lists.wxwindows.org ## | |
18770 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
18771 | _ASBOX |
18772 | ) | | |
18773 | sed "s/^/$as_me: WARNING: /" >&2 | |
18774 | ;; | |
18775 | esac | |
18776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18780 | else | |
32ddf007 | 18781 | eval "$as_ac_Header=\$ac_header_preproc" |
ab9b9eab | 18782 | fi |
e6cc62c6 VS |
18783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
18784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18785 | ||
90dd450c | 18786 | fi |
e6cc62c6 VS |
18787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
18788 | cat >>confdefs.h <<_ACEOF | |
18789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18790 | _ACEOF | |
18791 | ||
90dd450c | 18792 | fi |
e6cc62c6 | 18793 | |
21d1c967 | 18794 | done |
10f2d63a | 18795 | |
8284b0c5 | 18796 | |
21d1c967 GD |
18797 | if test "$ac_cv_header_iostream" = "yes" ; then |
18798 | : | |
18799 | else | |
e6cc62c6 | 18800 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18801 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 18802 | _ACEOF |
788deba1 | 18803 | |
90dd450c | 18804 | fi |
ab9b9eab | 18805 | |
21d1c967 | 18806 | ac_ext=c |
21d1c967 | 18807 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 18811 | |
21d1c967 | 18812 | fi |
ab9b9eab | 18813 | |
52127426 | 18814 | |
8284b0c5 | 18815 | |
e6cc62c6 VS |
18816 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
18817 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18818 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18820 | else |
e6cc62c6 VS |
18821 | |
18822 | ||
18823 | ||
18824 | ac_ext=cc | |
5c6fa7d2 | 18825 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 18829 | |
8284b0c5 | 18830 | |
e6cc62c6 | 18831 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18832 | /* confdefs.h. */ |
18833 | _ACEOF | |
18834 | cat confdefs.h >>conftest.$ac_ext | |
18835 | cat >>conftest.$ac_ext <<_ACEOF | |
18836 | /* end confdefs.h. */ | |
21d1c967 | 18837 | |
e6cc62c6 VS |
18838 | |
18839 | int | |
18840 | main () | |
18841 | { | |
21d1c967 GD |
18842 | |
18843 | bool b = true; | |
18844 | ||
18845 | return 0; | |
e6cc62c6 VS |
18846 | |
18847 | ; | |
18848 | return 0; | |
18849 | } | |
18850 | _ACEOF | |
18851 | rm -f conftest.$ac_objext | |
18852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18853 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18854 | ac_status=$? |
32ddf007 VS |
18855 | grep -v '^ *+' conftest.er1 >conftest.err |
18856 | rm -f conftest.er1 | |
18857 | cat conftest.err >&5 | |
e6cc62c6 VS |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18859 | (exit $ac_status); } && | |
32ddf007 VS |
18860 | { ac_try='test -z "$ac_cxx_werror_flag" |
18861 | || test ! -s conftest.err' | |
18862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18863 | (eval $ac_try) 2>&5 | |
18864 | ac_status=$? | |
18865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18866 | (exit $ac_status); }; } && | |
18867 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18869 | (eval $ac_try) 2>&5 | |
18870 | ac_status=$? | |
18871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18872 | (exit $ac_status); }; }; then | |
18873 | ||
21d1c967 | 18874 | wx_cv_cpp_bool=yes |
e6cc62c6 | 18875 | |
698dcdb6 | 18876 | else |
e6cc62c6 VS |
18877 | echo "$as_me: failed program was:" >&5 |
18878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18879 | ||
18880 | ||
21d1c967 | 18881 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
18882 | |
18883 | ||
698dcdb6 | 18884 | fi |
32ddf007 | 18885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
18886 | |
18887 | ac_ext=c | |
21d1c967 | 18888 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
18889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 18892 | |
a0b9e27f | 18893 | |
e6cc62c6 VS |
18894 | fi |
18895 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18896 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
18897 | |
18898 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 18899 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18900 | #define HAVE_BOOL 1 |
e6cc62c6 | 18901 | _ACEOF |
ab9b9eab | 18902 | |
21d1c967 GD |
18903 | fi |
18904 | ||
52127426 | 18905 | |
8284b0c5 | 18906 | |
e6cc62c6 VS |
18907 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
18908 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18909 | if test "${wx_cv_explicit+set}" = set; then | |
18910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 18911 | else |
e6cc62c6 VS |
18912 | |
18913 | ||
18914 | ||
18915 | ac_ext=cc | |
5c6fa7d2 | 18916 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
18917 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18918 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18919 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 18920 | |
8284b0c5 | 18921 | |
e6cc62c6 | 18922 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
18923 | /* confdefs.h. */ |
18924 | _ACEOF | |
18925 | cat confdefs.h >>conftest.$ac_ext | |
18926 | cat >>conftest.$ac_ext <<_ACEOF | |
18927 | /* end confdefs.h. */ | |
986ecc86 VZ |
18928 | |
18929 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
18930 | |
18931 | int | |
18932 | main () | |
18933 | { | |
986ecc86 VZ |
18934 | |
18935 | return 0; | |
e6cc62c6 VS |
18936 | |
18937 | ; | |
18938 | return 0; | |
18939 | } | |
18940 | _ACEOF | |
18941 | rm -f conftest.$ac_objext | |
18942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18943 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18944 | ac_status=$? |
32ddf007 VS |
18945 | grep -v '^ *+' conftest.er1 >conftest.err |
18946 | rm -f conftest.er1 | |
18947 | cat conftest.err >&5 | |
e6cc62c6 VS |
18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18949 | (exit $ac_status); } && | |
32ddf007 VS |
18950 | { ac_try='test -z "$ac_cxx_werror_flag" |
18951 | || test ! -s conftest.err' | |
18952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18953 | (eval $ac_try) 2>&5 | |
18954 | ac_status=$? | |
18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18956 | (exit $ac_status); }; } && | |
18957 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
18958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18959 | (eval $ac_try) 2>&5 | |
18960 | ac_status=$? | |
18961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18962 | (exit $ac_status); }; }; then | |
18963 | ||
18964 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
18965 | /* confdefs.h. */ |
18966 | _ACEOF | |
18967 | cat confdefs.h >>conftest.$ac_ext | |
18968 | cat >>conftest.$ac_ext <<_ACEOF | |
18969 | /* end confdefs.h. */ | |
986ecc86 VZ |
18970 | |
18971 | class Foo { public: explicit Foo(int) {} }; | |
18972 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
18973 | |
18974 | int | |
18975 | main () | |
18976 | { | |
986ecc86 VZ |
18977 | |
18978 | TakeFoo(17); | |
18979 | return 0; | |
e6cc62c6 VS |
18980 | |
18981 | ; | |
18982 | return 0; | |
18983 | } | |
18984 | _ACEOF | |
18985 | rm -f conftest.$ac_objext | |
18986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 18987 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 18988 | ac_status=$? |
32ddf007 VS |
18989 | grep -v '^ *+' conftest.er1 >conftest.err |
18990 | rm -f conftest.er1 | |
18991 | cat conftest.err >&5 | |
e6cc62c6 VS |
18992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18993 | (exit $ac_status); } && | |
32ddf007 VS |
18994 | { ac_try='test -z "$ac_cxx_werror_flag" |
18995 | || test ! -s conftest.err' | |
18996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18997 | (eval $ac_try) 2>&5 | |
18998 | ac_status=$? | |
18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19000 | (exit $ac_status); }; } && | |
19001 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19003 | (eval $ac_try) 2>&5 | |
19004 | ac_status=$? | |
19005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19006 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
19007 | wx_cv_explicit=no |
19008 | else | |
e6cc62c6 VS |
19009 | echo "$as_me: failed program was:" >&5 |
19010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19011 | ||
19012 | wx_cv_explicit=yes | |
19013 | ||
986ecc86 | 19014 | fi |
32ddf007 | 19015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 19016 | |
986ecc86 | 19017 | else |
e6cc62c6 VS |
19018 | echo "$as_me: failed program was:" >&5 |
19019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19020 | ||
19021 | wx_cv_explicit=no | |
19022 | ||
986ecc86 | 19023 | fi |
32ddf007 | 19024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
19025 | |
19026 | ac_ext=c | |
986ecc86 | 19027 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
19028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 19031 | |
a0b9e27f | 19032 | |
e6cc62c6 VS |
19033 | fi |
19034 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19035 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
19036 | |
19037 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 19038 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 19039 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 19040 | _ACEOF |
986ecc86 VZ |
19041 | |
19042 | fi | |
19043 | ||
8284b0c5 | 19044 | |
e6cc62c6 VS |
19045 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
19046 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19047 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 19049 | else |
521196a2 | 19050 | |
521196a2 | 19051 | |
e6cc62c6 VS |
19052 | ac_ext=cc |
19053 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19057 | ||
19058 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19059 | /* confdefs.h. */ |
19060 | _ACEOF | |
19061 | cat confdefs.h >>conftest.$ac_ext | |
19062 | cat >>conftest.$ac_ext <<_ACEOF | |
19063 | /* end confdefs.h. */ | |
19064 | ||
19065 | int | |
19066 | main () | |
19067 | { | |
521196a2 | 19068 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
19069 | ; |
19070 | return 0; | |
19071 | } | |
19072 | _ACEOF | |
19073 | rm -f conftest.$ac_objext | |
19074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19075 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19076 | ac_status=$? |
32ddf007 VS |
19077 | grep -v '^ *+' conftest.er1 >conftest.err |
19078 | rm -f conftest.er1 | |
19079 | cat conftest.err >&5 | |
e6cc62c6 VS |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19081 | (exit $ac_status); } && | |
32ddf007 VS |
19082 | { ac_try='test -z "$ac_cxx_werror_flag" |
19083 | || test ! -s conftest.err' | |
19084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19085 | (eval $ac_try) 2>&5 | |
19086 | ac_status=$? | |
19087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19088 | (exit $ac_status); }; } && | |
19089 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19091 | (eval $ac_try) 2>&5 | |
19092 | ac_status=$? | |
19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19094 | (exit $ac_status); }; }; then | |
521196a2 MB |
19095 | ac_cv_cxx_const_cast=yes |
19096 | else | |
e6cc62c6 VS |
19097 | echo "$as_me: failed program was:" >&5 |
19098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19099 | ||
19100 | ac_cv_cxx_const_cast=no | |
521196a2 | 19101 | fi |
32ddf007 | 19102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
521196a2 | 19103 | ac_ext=c |
521196a2 | 19104 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
19105 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19106 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19107 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
19108 | |
19109 | ||
19110 | fi | |
e6cc62c6 VS |
19111 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
19112 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 19113 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
19114 | |
19115 | cat >>confdefs.h <<\_ACEOF | |
19116 | #define HAVE_CONST_CAST | |
19117 | _ACEOF | |
521196a2 MB |
19118 | |
19119 | fi | |
19120 | ||
ecfd48ca VZ |
19121 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19122 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19123 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19125 | else | |
19126 | ||
19127 | ||
19128 | ac_ext=cc | |
19129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19133 | ||
19134 | cat >conftest.$ac_ext <<_ACEOF | |
ecfd48ca VZ |
19135 | /* confdefs.h. */ |
19136 | _ACEOF | |
19137 | cat confdefs.h >>conftest.$ac_ext | |
19138 | cat >>conftest.$ac_ext <<_ACEOF | |
19139 | /* end confdefs.h. */ | |
19140 | #include <typeinfo> | |
19141 | class Base { public : Base () {} virtual void f () = 0; }; | |
19142 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19143 | int g (Derived&) { return 0; } | |
19144 | int | |
19145 | main () | |
19146 | { | |
19147 | ||
19148 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19149 | ; | |
19150 | return 0; | |
19151 | } | |
19152 | _ACEOF | |
19153 | rm -f conftest.$ac_objext | |
19154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19155 | (eval $ac_compile) 2>conftest.er1 |
ecfd48ca | 19156 | ac_status=$? |
32ddf007 VS |
19157 | grep -v '^ *+' conftest.er1 >conftest.err |
19158 | rm -f conftest.er1 | |
19159 | cat conftest.err >&5 | |
ecfd48ca VZ |
19160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19161 | (exit $ac_status); } && | |
32ddf007 VS |
19162 | { ac_try='test -z "$ac_cxx_werror_flag" |
19163 | || test ! -s conftest.err' | |
19164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19165 | (eval $ac_try) 2>&5 | |
19166 | ac_status=$? | |
19167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19168 | (exit $ac_status); }; } && | |
19169 | { ac_try='test -s conftest.$ac_objext' | |
ecfd48ca VZ |
19170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19171 | (eval $ac_try) 2>&5 | |
19172 | ac_status=$? | |
19173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19174 | (exit $ac_status); }; }; then | |
19175 | ac_cv_cxx_static_cast=yes | |
19176 | else | |
19177 | echo "$as_me: failed program was:" >&5 | |
19178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19179 | ||
19180 | ac_cv_cxx_static_cast=no | |
19181 | fi | |
32ddf007 | 19182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ecfd48ca VZ |
19183 | ac_ext=c |
19184 | ac_cpp='$CPP $CPPFLAGS' | |
19185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19188 | ||
19189 | ||
19190 | fi | |
19191 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19192 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19193 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19194 | ||
19195 | cat >>confdefs.h <<\_ACEOF | |
19196 | #define HAVE_STATIC_CAST | |
19197 | _ACEOF | |
19198 | ||
19199 | fi | |
19200 | ||
521196a2 | 19201 | |
e87b7833 MB |
19202 | if test "$wxUSE_STL" = "yes"; then |
19203 | ac_ext=cc | |
19204 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19205 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19206 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19207 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19208 | ||
19209 | ||
19210 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19211 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19212 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19213 | /* confdefs.h. */ |
19214 | _ACEOF | |
19215 | cat confdefs.h >>conftest.$ac_ext | |
19216 | cat >>conftest.$ac_ext <<_ACEOF | |
19217 | /* end confdefs.h. */ | |
19218 | #include <string> | |
19219 | #include <functional> | |
19220 | #include <algorithm> | |
19221 | #include <vector> | |
19222 | #include <list> | |
19223 | int | |
19224 | main () | |
19225 | { | |
19226 | std::vector<int> moo; | |
19227 | std::list<int> foo; | |
19228 | std::vector<int>::iterator it = | |
19229 | std::find_if(moo.begin(), moo.end(), | |
19230 | std::bind2nd(std::less<int>(), 3)); | |
19231 | ; | |
19232 | return 0; | |
19233 | } | |
19234 | _ACEOF | |
19235 | rm -f conftest.$ac_objext | |
19236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19237 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19238 | ac_status=$? |
32ddf007 VS |
19239 | grep -v '^ *+' conftest.er1 >conftest.err |
19240 | rm -f conftest.er1 | |
19241 | cat conftest.err >&5 | |
e87b7833 MB |
19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19243 | (exit $ac_status); } && | |
32ddf007 VS |
19244 | { ac_try='test -z "$ac_cxx_werror_flag" |
19245 | || test ! -s conftest.err' | |
19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19247 | (eval $ac_try) 2>&5 | |
19248 | ac_status=$? | |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19250 | (exit $ac_status); }; } && | |
19251 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19253 | (eval $ac_try) 2>&5 | |
19254 | ac_status=$? | |
19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19256 | (exit $ac_status); }; }; then | |
19257 | echo "$as_me:$LINENO: result: yes" >&5 | |
19258 | echo "${ECHO_T}yes" >&6 | |
19259 | else | |
19260 | echo "$as_me: failed program was:" >&5 | |
19261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19262 | ||
19263 | echo "$as_me:$LINENO: result: no" >&5 | |
19264 | echo "${ECHO_T}no" >&6 | |
19265 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19266 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19267 | { (exit 1); exit 1; }; } | |
19268 | fi | |
32ddf007 | 19269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19270 | |
19271 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19272 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19273 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19274 | /* confdefs.h. */ |
19275 | _ACEOF | |
19276 | cat confdefs.h >>conftest.$ac_ext | |
19277 | cat >>conftest.$ac_ext <<_ACEOF | |
19278 | /* end confdefs.h. */ | |
19279 | #include <string> | |
19280 | int | |
19281 | main () | |
19282 | { | |
19283 | std::wstring foo; | |
19284 | ; | |
19285 | return 0; | |
19286 | } | |
19287 | _ACEOF | |
19288 | rm -f conftest.$ac_objext | |
19289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19290 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19291 | ac_status=$? |
32ddf007 VS |
19292 | grep -v '^ *+' conftest.er1 >conftest.err |
19293 | rm -f conftest.er1 | |
19294 | cat conftest.err >&5 | |
e87b7833 MB |
19295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19296 | (exit $ac_status); } && | |
32ddf007 VS |
19297 | { ac_try='test -z "$ac_cxx_werror_flag" |
19298 | || test ! -s conftest.err' | |
19299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19300 | (eval $ac_try) 2>&5 | |
19301 | ac_status=$? | |
19302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19303 | (exit $ac_status); }; } && | |
19304 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19306 | (eval $ac_try) 2>&5 | |
19307 | ac_status=$? | |
19308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19309 | (exit $ac_status); }; }; then | |
19310 | echo "$as_me:$LINENO: result: yes" >&5 | |
19311 | echo "${ECHO_T}yes" >&6 | |
19312 | cat >>confdefs.h <<\_ACEOF | |
19313 | #define HAVE_STD_WSTRING 1 | |
19314 | _ACEOF | |
19315 | ||
19316 | else | |
19317 | echo "$as_me: failed program was:" >&5 | |
19318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19319 | ||
19320 | echo "$as_me:$LINENO: result: no" >&5 | |
19321 | echo "${ECHO_T}no" >&6 | |
19322 | fi | |
32ddf007 | 19323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19324 | |
19325 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19326 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19327 | cat >conftest.$ac_ext <<_ACEOF | |
e87b7833 MB |
19328 | /* confdefs.h. */ |
19329 | _ACEOF | |
19330 | cat confdefs.h >>conftest.$ac_ext | |
19331 | cat >>conftest.$ac_ext <<_ACEOF | |
19332 | /* end confdefs.h. */ | |
19333 | #include <string> | |
19334 | int | |
19335 | main () | |
19336 | { | |
19337 | std::string foo, bar; | |
19338 | foo.compare(bar); | |
19339 | foo.compare(1, 1, bar); | |
19340 | foo.compare(1, 1, bar, 1, 1); | |
19341 | foo.compare(""); | |
19342 | foo.compare(1, 1, ""); | |
19343 | foo.compare(1, 1, "", 2); | |
19344 | ; | |
19345 | return 0; | |
19346 | } | |
19347 | _ACEOF | |
19348 | rm -f conftest.$ac_objext | |
19349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19350 | (eval $ac_compile) 2>conftest.er1 |
e87b7833 | 19351 | ac_status=$? |
32ddf007 VS |
19352 | grep -v '^ *+' conftest.er1 >conftest.err |
19353 | rm -f conftest.er1 | |
19354 | cat conftest.err >&5 | |
e87b7833 MB |
19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19356 | (exit $ac_status); } && | |
32ddf007 VS |
19357 | { ac_try='test -z "$ac_cxx_werror_flag" |
19358 | || test ! -s conftest.err' | |
19359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19360 | (eval $ac_try) 2>&5 | |
19361 | ac_status=$? | |
19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19363 | (exit $ac_status); }; } && | |
19364 | { ac_try='test -s conftest.$ac_objext' | |
e87b7833 MB |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; }; then | |
19370 | echo "$as_me:$LINENO: result: yes" >&5 | |
19371 | echo "${ECHO_T}yes" >&6 | |
19372 | cat >>confdefs.h <<\_ACEOF | |
19373 | #define HAVE_STD_STRING_COMPARE 1 | |
19374 | _ACEOF | |
19375 | ||
19376 | else | |
19377 | echo "$as_me: failed program was:" >&5 | |
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19379 | ||
19380 | echo "$as_me:$LINENO: result: no" >&5 | |
19381 | echo "${ECHO_T}no" >&6 | |
19382 | fi | |
32ddf007 | 19383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
19384 | |
19385 | ac_ext=c | |
19386 | ac_cpp='$CPP $CPPFLAGS' | |
19387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19390 | ||
19391 | fi | |
19392 | ||
8284b0c5 | 19393 | |
21d1c967 GD |
19394 | SEARCH_INCLUDE="\ |
19395 | /usr/local/include \ | |
19396 | \ | |
21d1c967 | 19397 | /usr/Motif-2.1/include \ |
789c5f4a | 19398 | /usr/Motif-1.2/include \ |
21d1c967 GD |
19399 | /usr/include/Motif1.2 \ |
19400 | /opt/xpm/include/X11 \ | |
19401 | /opt/GBxpm/include/ \ | |
19402 | /opt/GBxpm/X11/include/ \ | |
19403 | \ | |
21d1c967 GD |
19404 | /usr/dt/include \ |
19405 | /usr/openwin/include \ | |
19406 | \ | |
19407 | /usr/include/Xm \ | |
19408 | \ | |
19409 | /usr/X11R6/include \ | |
19410 | /usr/X11R6.4/include \ | |
19411 | /usr/X11R5/include \ | |
19412 | /usr/X11R4/include \ | |
19413 | \ | |
19414 | /usr/include/X11R6 \ | |
19415 | /usr/include/X11R5 \ | |
19416 | /usr/include/X11R4 \ | |
19417 | \ | |
19418 | /usr/local/X11R6/include \ | |
19419 | /usr/local/X11R5/include \ | |
19420 | /usr/local/X11R4/include \ | |
19421 | \ | |
19422 | /usr/local/include/X11R6 \ | |
19423 | /usr/local/include/X11R5 \ | |
19424 | /usr/local/include/X11R4 \ | |
19425 | \ | |
19426 | /usr/X11/include \ | |
19427 | /usr/include/X11 \ | |
19428 | /usr/local/X11/include \ | |
19429 | /usr/local/include/X11 \ | |
19430 | \ | |
19431 | /usr/X386/include \ | |
19432 | /usr/x386/include \ | |
19433 | /usr/XFree86/include/X11 \ | |
19434 | \ | |
19435 | X:/XFree86/include \ | |
19436 | X:/XFree86/include/X11 \ | |
19437 | \ | |
19438 | /usr/include/gtk \ | |
19439 | /usr/local/include/gtk \ | |
19440 | /usr/include/glib \ | |
19441 | /usr/local/include/glib \ | |
19442 | \ | |
19443 | /usr/include/qt \ | |
19444 | /usr/local/include/qt \ | |
19445 | \ | |
0f87e84c RR |
19446 | /usr/local/arm/3.3.2/include \ |
19447 | \ | |
21d1c967 GD |
19448 | /usr/include/windows \ |
19449 | /usr/include/wine \ | |
19450 | /usr/local/include/wine \ | |
19451 | \ | |
19452 | /usr/unsupported/include \ | |
19453 | /usr/athena/include \ | |
19454 | /usr/local/x11r5/include \ | |
19455 | /usr/lpp/Xamples/include \ | |
19456 | \ | |
2b5f62a0 | 19457 | /usr/openwin/share/include" |
21d1c967 | 19458 | |
b62e750d | 19459 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" |
21d1c967 | 19460 | |
8284b0c5 | 19461 | |
e6cc62c6 | 19462 | cat >confcache <<\_ACEOF |
21d1c967 GD |
19463 | # This file is a shell script that caches the results of configure |
19464 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
19465 | # scripts and configure runs, see configure's option --config-cache. |
19466 | # It is not useful on other systems. If it contains results you don't | |
19467 | # want to keep, you may remove or edit it. | |
21d1c967 | 19468 | # |
e6cc62c6 VS |
19469 | # config.status only pays attention to the cache file if you give it |
19470 | # the --recheck option to rerun configure. | |
21d1c967 | 19471 | # |
e6cc62c6 VS |
19472 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19473 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
19474 | # following values. | |
19475 | ||
19476 | _ACEOF | |
19477 | ||
21d1c967 GD |
19478 | # The following way of writing the cache mishandles newlines in values, |
19479 | # but we know of no workaround that is simple, portable, and efficient. | |
19480 | # So, don't put newlines in cache variables' values. | |
19481 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
19482 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
19483 | { |
19484 | (set) 2>&1 | | |
19485 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
19486 | *ac_space=\ *) | |
19487 | # `set' does not quote correctly, so add quotes (double-quote | |
19488 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
19489 | sed -n \ | |
32ddf007 VS |
19490 | "s/'/'\\\\''/g; |
19491 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
19492 | ;; |
19493 | *) | |
19494 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19495 | sed -n \ | |
32ddf007 | 19496 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
19497 | ;; |
19498 | esac; | |
19499 | } | | |
19500 | sed ' | |
19501 | t clear | |
19502 | : clear | |
19503 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19504 | t end | |
19505 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19506 | : end' >>confcache | |
19507 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 19508 | if test -w $cache_file; then |
e6cc62c6 VS |
19509 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
19510 | cat confcache >$cache_file | |
21d1c967 GD |
19511 | else |
19512 | echo "not updating unwritable cache $cache_file" | |
19513 | fi | |
ab9b9eab | 19514 | fi |
21d1c967 | 19515 | rm -f confcache |
ab9b9eab | 19516 | |
fe0895cf | 19517 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
19518 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
19519 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
19520 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
19521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19522 | else | |
19523 | ||
19524 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19525 | /* confdefs.h. */ |
19526 | _ACEOF | |
19527 | cat confdefs.h >>conftest.$ac_ext | |
19528 | cat >>conftest.$ac_ext <<_ACEOF | |
19529 | /* end confdefs.h. */ | |
21d1c967 | 19530 | #include <features.h> |
e6cc62c6 VS |
19531 | int |
19532 | main () | |
19533 | { | |
ab9b9eab | 19534 | |
21d1c967 GD |
19535 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
19536 | #error not glibc2.1 | |
19537 | #endif | |
e6cc62c6 VS |
19538 | |
19539 | ; | |
19540 | return 0; | |
19541 | } | |
19542 | _ACEOF | |
19543 | rm -f conftest.$ac_objext | |
19544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19545 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19546 | ac_status=$? |
32ddf007 VS |
19547 | grep -v '^ *+' conftest.er1 >conftest.err |
19548 | rm -f conftest.er1 | |
19549 | cat conftest.err >&5 | |
e6cc62c6 VS |
19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19551 | (exit $ac_status); } && | |
32ddf007 VS |
19552 | { ac_try='test -z "$ac_c_werror_flag" |
19553 | || test ! -s conftest.err' | |
19554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19555 | (eval $ac_try) 2>&5 | |
19556 | ac_status=$? | |
19557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19558 | (exit $ac_status); }; } && | |
19559 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19561 | (eval $ac_try) 2>&5 | |
19562 | ac_status=$? | |
19563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19564 | (exit $ac_status); }; }; then | |
19565 | ||
21d1c967 | 19566 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 19567 | |
698dcdb6 | 19568 | else |
e6cc62c6 VS |
19569 | echo "$as_me: failed program was:" >&5 |
19570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19571 | ||
19572 | ||
21d1c967 | 19573 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
19574 | |
19575 | ||
247f5006 | 19576 | fi |
32ddf007 | 19577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19578 | |
e6cc62c6 VS |
19579 | fi |
19580 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
19581 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 19582 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 19583 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19584 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 19585 | _ACEOF |
1e487827 | 19586 | |
90dd450c | 19587 | fi |
ab9b9eab VZ |
19588 | fi |
19589 | ||
5c0a20c3 VZ |
19590 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
19591 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 19592 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 19593 | #define _GNU_SOURCE 1 |
e6cc62c6 | 19594 | _ACEOF |
5c0a20c3 VZ |
19595 | |
19596 | fi | |
19597 | fi | |
19598 | ||
8284b0c5 MB |
19599 | |
19600 | ||
21d1c967 | 19601 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 19602 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19603 | #define wxUSE_REGEX 1 |
e6cc62c6 | 19604 | _ACEOF |
698dcdb6 | 19605 | |
8284b0c5 | 19606 | |
30f2fa6c | 19607 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
4996f261 VS |
19608 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 |
19609 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
30f2fa6c VS |
19610 | wxUSE_REGEX=builtin |
19611 | fi | |
19612 | ||
21d1c967 | 19613 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
19614 | if test "${ac_cv_header_regex_h+set}" = set; then |
19615 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19616 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19617 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19619 | fi | |
19620 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
19621 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19622 | else | |
19623 | # Is the header compilable? | |
19624 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
19625 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
19626 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19627 | /* confdefs.h. */ |
19628 | _ACEOF | |
19629 | cat confdefs.h >>conftest.$ac_ext | |
19630 | cat >>conftest.$ac_ext <<_ACEOF | |
19631 | /* end confdefs.h. */ | |
19632 | $ac_includes_default | |
247f5006 | 19633 | #include <regex.h> |
e6cc62c6 VS |
19634 | _ACEOF |
19635 | rm -f conftest.$ac_objext | |
19636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19637 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19638 | ac_status=$? |
32ddf007 VS |
19639 | grep -v '^ *+' conftest.er1 >conftest.err |
19640 | rm -f conftest.er1 | |
19641 | cat conftest.err >&5 | |
e6cc62c6 VS |
19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19643 | (exit $ac_status); } && | |
32ddf007 VS |
19644 | { ac_try='test -z "$ac_c_werror_flag" |
19645 | || test ! -s conftest.err' | |
19646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19647 | (eval $ac_try) 2>&5 | |
19648 | ac_status=$? | |
19649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19650 | (exit $ac_status); }; } && | |
19651 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19653 | (eval $ac_try) 2>&5 | |
19654 | ac_status=$? | |
19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19656 | (exit $ac_status); }; }; then | |
19657 | ac_header_compiler=yes | |
19658 | else | |
19659 | echo "$as_me: failed program was:" >&5 | |
19660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19661 | ||
19662 | ac_header_compiler=no | |
19663 | fi | |
32ddf007 | 19664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19665 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19666 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19667 | ||
19668 | # Is the header present? | |
19669 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
19670 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
19671 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19672 | /* confdefs.h. */ |
19673 | _ACEOF | |
19674 | cat confdefs.h >>conftest.$ac_ext | |
19675 | cat >>conftest.$ac_ext <<_ACEOF | |
19676 | /* end confdefs.h. */ | |
19677 | #include <regex.h> | |
19678 | _ACEOF | |
19679 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19680 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19681 | ac_status=$? | |
19682 | grep -v '^ *+' conftest.er1 >conftest.err | |
19683 | rm -f conftest.er1 | |
19684 | cat conftest.err >&5 | |
19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19686 | (exit $ac_status); } >/dev/null; then | |
19687 | if test -s conftest.err; then | |
19688 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 19689 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
19690 | else |
19691 | ac_cpp_err= | |
19692 | fi | |
19693 | else | |
19694 | ac_cpp_err=yes | |
19695 | fi | |
19696 | if test -z "$ac_cpp_err"; then | |
19697 | ac_header_preproc=yes | |
19698 | else | |
19699 | echo "$as_me: failed program was:" >&5 | |
19700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19701 | ||
19702 | ac_header_preproc=no | |
19703 | fi | |
19704 | rm -f conftest.err conftest.$ac_ext | |
19705 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19706 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19707 | ||
19708 | # So? What about this header? | |
32ddf007 VS |
19709 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19710 | yes:no: ) | |
e6cc62c6 VS |
19711 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19712 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
19713 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
19714 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
19715 | ac_header_preproc=yes | |
e6cc62c6 | 19716 | ;; |
32ddf007 | 19717 | no:yes:* ) |
e6cc62c6 VS |
19718 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
19719 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
19720 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
19721 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
19722 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
19723 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
19724 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
19725 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
19726 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
19727 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
19728 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
19729 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
19730 | ( |
19731 | cat <<\_ASBOX | |
32ddf007 VS |
19732 | ## ----------------------------------------- ## |
19733 | ## Report this to wx-dev@lists.wxwindows.org ## | |
19734 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
19735 | _ASBOX |
19736 | ) | | |
19737 | sed "s/^/$as_me: WARNING: /" >&2 | |
19738 | ;; | |
19739 | esac | |
19740 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
19741 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
19742 | if test "${ac_cv_header_regex_h+set}" = set; then | |
19743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19744 | else | |
19745 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 19746 | fi |
e6cc62c6 VS |
19747 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
19748 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
19749 | ||
698dcdb6 | 19750 | fi |
e6cc62c6 VS |
19751 | if test $ac_cv_header_regex_h = yes; then |
19752 | ||
19753 | for ac_func in regcomp | |
21d1c967 | 19754 | do |
e6cc62c6 VS |
19755 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19756 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19757 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19758 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19760 | else | |
19761 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19762 | /* confdefs.h. */ |
19763 | _ACEOF | |
19764 | cat confdefs.h >>conftest.$ac_ext | |
19765 | cat >>conftest.$ac_ext <<_ACEOF | |
19766 | /* end confdefs.h. */ | |
32ddf007 VS |
19767 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19768 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19769 | #define $ac_func innocuous_$ac_func | |
19770 | ||
a0b9e27f | 19771 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
19772 | which can conflict with char $ac_func (); below. |
19773 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19774 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 19775 | |
e6cc62c6 VS |
19776 | #ifdef __STDC__ |
19777 | # include <limits.h> | |
19778 | #else | |
19779 | # include <assert.h> | |
19780 | #endif | |
32ddf007 VS |
19781 | |
19782 | #undef $ac_func | |
19783 | ||
21d1c967 | 19784 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19785 | #ifdef __cplusplus |
19786 | extern "C" | |
19787 | { | |
19788 | #endif | |
21d1c967 | 19789 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19790 | builtin and then its argument prototype would still apply. */ |
19791 | char $ac_func (); | |
21d1c967 GD |
19792 | /* The GNU C library defines this for functions which it implements |
19793 | to always fail with ENOSYS. Some functions are actually named | |
19794 | something starting with __ and the normal name is an alias. */ | |
19795 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19796 | choke me | |
19797 | #else | |
e6cc62c6 VS |
19798 | char (*f) () = $ac_func; |
19799 | #endif | |
19800 | #ifdef __cplusplus | |
19801 | } | |
21d1c967 | 19802 | #endif |
90dd450c | 19803 | |
e6cc62c6 VS |
19804 | int |
19805 | main () | |
19806 | { | |
19807 | return f != $ac_func; | |
19808 | ; | |
19809 | return 0; | |
19810 | } | |
19811 | _ACEOF | |
19812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 19814 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 19815 | ac_status=$? |
32ddf007 VS |
19816 | grep -v '^ *+' conftest.er1 >conftest.err |
19817 | rm -f conftest.er1 | |
19818 | cat conftest.err >&5 | |
e6cc62c6 VS |
19819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19820 | (exit $ac_status); } && | |
32ddf007 VS |
19821 | { ac_try='test -z "$ac_c_werror_flag" |
19822 | || test ! -s conftest.err' | |
19823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19824 | (eval $ac_try) 2>&5 | |
19825 | ac_status=$? | |
19826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19827 | (exit $ac_status); }; } && | |
19828 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
19829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19830 | (eval $ac_try) 2>&5 | |
19831 | ac_status=$? | |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19833 | (exit $ac_status); }; }; then | |
19834 | eval "$as_ac_var=yes" | |
19835 | else | |
19836 | echo "$as_me: failed program was:" >&5 | |
19837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19838 | ||
19839 | eval "$as_ac_var=no" | |
19840 | fi | |
32ddf007 VS |
19841 | rm -f conftest.err conftest.$ac_objext \ |
19842 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
19843 | fi |
19844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19845 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19846 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19847 | cat >>confdefs.h <<_ACEOF | |
19848 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19849 | _ACEOF | |
5c6fa7d2 | 19850 | |
698dcdb6 | 19851 | fi |
21d1c967 GD |
19852 | done |
19853 | ||
ab9b9eab VZ |
19854 | fi |
19855 | ||
8284b0c5 | 19856 | |
e6cc62c6 | 19857 | |
21d1c967 GD |
19858 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
19859 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
19860 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
19861 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
19862 | { (exit 1); exit 1; }; } | |
21d1c967 | 19863 | else |
e6cc62c6 VS |
19864 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
19865 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19866 | wxUSE_REGEX=builtin |
19867 | fi | |
19868 | else | |
19869 | wxUSE_REGEX=sys | |
4996f261 VS |
19870 | cat >>confdefs.h <<\_ACEOF |
19871 | #define WX_NO_REGEX_ADVANCED 1 | |
19872 | _ACEOF | |
19873 | ||
21d1c967 | 19874 | fi |
ab9b9eab | 19875 | fi |
21d1c967 | 19876 | fi |
90dd450c | 19877 | |
8284b0c5 | 19878 | |
21d1c967 GD |
19879 | ZLIB_LINK= |
19880 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 19881 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19882 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 19883 | _ACEOF |
21d1c967 | 19884 | |
8284b0c5 | 19885 | |
21d1c967 | 19886 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
19887 | if test "$USE_DARWIN" = 1; then |
19888 | system_zlib_h_ok="yes" | |
19889 | else | |
e6cc62c6 VS |
19890 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
19891 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
19892 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
19894 | else |
19895 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 19896 | unset ac_cv_header_zlib_h |
e6cc62c6 | 19897 | |
d643b80e | 19898 | else |
e6cc62c6 | 19899 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
19900 | /* confdefs.h. */ |
19901 | _ACEOF | |
19902 | cat confdefs.h >>conftest.$ac_ext | |
19903 | cat >>conftest.$ac_ext <<_ACEOF | |
19904 | /* end confdefs.h. */ | |
19905 | ||
ef33c576 | 19906 | #include <zlib.h> |
d775acfa | 19907 | #include <stdio.h> |
d643b80e | 19908 | |
d775acfa VZ |
19909 | int main() |
19910 | { | |
19911 | FILE *f=fopen("conftestval", "w"); | |
19912 | if (!f) exit(1); | |
19913 | fprintf(f, "%s", | |
19914 | ZLIB_VERSION[0] == '1' && | |
19915 | (ZLIB_VERSION[2] > '1' || | |
19916 | (ZLIB_VERSION[2] == '1' && | |
19917 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19918 | exit(0); | |
19919 | } | |
e6cc62c6 VS |
19920 | |
19921 | _ACEOF | |
19922 | rm -f conftest$ac_exeext | |
19923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19924 | (eval $ac_link) 2>&5 | |
19925 | ac_status=$? | |
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19929 | (eval $ac_try) 2>&5 | |
19930 | ac_status=$? | |
19931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19932 | (exit $ac_status); }; }; then | |
d643b80e VZ |
19933 | ac_cv_header_zlib_h=`cat conftestval` |
19934 | else | |
e6cc62c6 VS |
19935 | echo "$as_me: program exited with status $ac_status" >&5 |
19936 | echo "$as_me: failed program was:" >&5 | |
19937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19938 | ||
19939 | ( exit $ac_status ) | |
19940 | ac_cv_header_zlib_h=no | |
d643b80e | 19941 | fi |
32ddf007 | 19942 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
19943 | fi |
19944 | ||
d643b80e | 19945 | fi |
e6cc62c6 VS |
19946 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
19947 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19948 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19949 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19950 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19951 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19953 | fi | |
19954 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19955 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 19956 | else |
e6cc62c6 VS |
19957 | # Is the header compilable? |
19958 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19959 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19960 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
19961 | /* confdefs.h. */ |
19962 | _ACEOF | |
19963 | cat confdefs.h >>conftest.$ac_ext | |
19964 | cat >>conftest.$ac_ext <<_ACEOF | |
19965 | /* end confdefs.h. */ | |
19966 | $ac_includes_default | |
89e6bf6d | 19967 | #include <zlib.h> |
e6cc62c6 VS |
19968 | _ACEOF |
19969 | rm -f conftest.$ac_objext | |
19970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 19971 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 19972 | ac_status=$? |
32ddf007 VS |
19973 | grep -v '^ *+' conftest.er1 >conftest.err |
19974 | rm -f conftest.er1 | |
19975 | cat conftest.err >&5 | |
e6cc62c6 VS |
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19977 | (exit $ac_status); } && | |
32ddf007 VS |
19978 | { ac_try='test -z "$ac_c_werror_flag" |
19979 | || test ! -s conftest.err' | |
19980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19981 | (eval $ac_try) 2>&5 | |
19982 | ac_status=$? | |
19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19984 | (exit $ac_status); }; } && | |
19985 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
19986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19987 | (eval $ac_try) 2>&5 | |
19988 | ac_status=$? | |
19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19990 | (exit $ac_status); }; }; then | |
19991 | ac_header_compiler=yes | |
19992 | else | |
19993 | echo "$as_me: failed program was:" >&5 | |
19994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19995 | ||
19996 | ac_header_compiler=no | |
19997 | fi | |
32ddf007 | 19998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19999 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20000 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20001 | ||
20002 | # Is the header present? | |
20003 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20004 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20005 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20006 | /* confdefs.h. */ |
20007 | _ACEOF | |
20008 | cat confdefs.h >>conftest.$ac_ext | |
20009 | cat >>conftest.$ac_ext <<_ACEOF | |
20010 | /* end confdefs.h. */ | |
20011 | #include <zlib.h> | |
20012 | _ACEOF | |
20013 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20014 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20015 | ac_status=$? | |
20016 | grep -v '^ *+' conftest.er1 >conftest.err | |
20017 | rm -f conftest.er1 | |
20018 | cat conftest.err >&5 | |
20019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20020 | (exit $ac_status); } >/dev/null; then | |
20021 | if test -s conftest.err; then | |
20022 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20023 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20024 | else |
20025 | ac_cpp_err= | |
20026 | fi | |
20027 | else | |
20028 | ac_cpp_err=yes | |
20029 | fi | |
20030 | if test -z "$ac_cpp_err"; then | |
20031 | ac_header_preproc=yes | |
20032 | else | |
20033 | echo "$as_me: failed program was:" >&5 | |
20034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20035 | ||
20036 | ac_header_preproc=no | |
20037 | fi | |
20038 | rm -f conftest.err conftest.$ac_ext | |
20039 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20040 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20041 | ||
20042 | # So? What about this header? | |
32ddf007 VS |
20043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20044 | yes:no: ) | |
e6cc62c6 VS |
20045 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20046 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20047 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20048 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20049 | ac_header_preproc=yes | |
e6cc62c6 | 20050 | ;; |
32ddf007 | 20051 | no:yes:* ) |
e6cc62c6 VS |
20052 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20053 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20054 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20055 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20056 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20057 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20058 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20059 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20060 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20061 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20062 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20063 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20064 | ( |
20065 | cat <<\_ASBOX | |
32ddf007 VS |
20066 | ## ----------------------------------------- ## |
20067 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20068 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20069 | _ASBOX |
20070 | ) | | |
20071 | sed "s/^/$as_me: WARNING: /" >&2 | |
20072 | ;; | |
20073 | esac | |
20074 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20075 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20076 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 20078 | else |
e6cc62c6 VS |
20079 | ac_cv_header_zlib_h=$ac_header_preproc |
20080 | fi | |
20081 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20082 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20083 | ||
89e6bf6d VZ |
20084 | fi |
20085 | ||
d643b80e | 20086 | |
e6cc62c6 | 20087 | |
d775acfa VZ |
20088 | system_zlib_h_ok=$ac_cv_header_zlib_h |
20089 | fi | |
20090 | ||
20091 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
20092 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
20093 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20094 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20096 | else |
e6cc62c6 | 20097 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20098 | LIBS="-lz $LIBS" |
e6cc62c6 | 20099 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20100 | /* confdefs.h. */ |
20101 | _ACEOF | |
20102 | cat confdefs.h >>conftest.$ac_ext | |
20103 | cat >>conftest.$ac_ext <<_ACEOF | |
20104 | /* end confdefs.h. */ | |
20105 | ||
21d1c967 | 20106 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20107 | #ifdef __cplusplus |
20108 | extern "C" | |
20109 | #endif | |
21d1c967 | 20110 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20111 | builtin and then its argument prototype would still apply. */ |
20112 | char deflate (); | |
20113 | int | |
20114 | main () | |
20115 | { | |
20116 | deflate (); | |
20117 | ; | |
20118 | return 0; | |
20119 | } | |
20120 | _ACEOF | |
20121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20123 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20124 | ac_status=$? |
32ddf007 VS |
20125 | grep -v '^ *+' conftest.er1 >conftest.err |
20126 | rm -f conftest.er1 | |
20127 | cat conftest.err >&5 | |
e6cc62c6 VS |
20128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20129 | (exit $ac_status); } && | |
32ddf007 VS |
20130 | { ac_try='test -z "$ac_c_werror_flag" |
20131 | || test ! -s conftest.err' | |
20132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20133 | (eval $ac_try) 2>&5 | |
20134 | ac_status=$? | |
20135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 | (exit $ac_status); }; } && | |
20137 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20139 | (eval $ac_try) 2>&5 | |
20140 | ac_status=$? | |
20141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20142 | (exit $ac_status); }; }; then | |
20143 | ac_cv_lib_z_deflate=yes | |
20144 | else | |
20145 | echo "$as_me: failed program was:" >&5 | |
20146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20147 | ||
20148 | ac_cv_lib_z_deflate=no | |
20149 | fi | |
32ddf007 VS |
20150 | rm -f conftest.err conftest.$ac_objext \ |
20151 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20152 | LIBS=$ac_check_lib_save_LIBS |
20153 | fi | |
20154 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20155 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20156 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 20157 | ZLIB_LINK=" -lz" |
a0b9e27f | 20158 | fi |
698dcdb6 | 20159 | |
d643b80e | 20160 | fi |
247f5006 | 20161 | |
21d1c967 GD |
20162 | if test "x$ZLIB_LINK" = "x" ; then |
20163 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
20164 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
20165 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20166 | { (exit 1); exit 1; }; } | |
21d1c967 | 20167 | else |
e6cc62c6 VS |
20168 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
20169 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20170 | wxUSE_ZLIB=builtin |
20171 | fi | |
20172 | else | |
20173 | wxUSE_ZLIB=sys | |
20174 | fi | |
20175 | fi | |
ab9b9eab VZ |
20176 | fi |
20177 | ||
8284b0c5 | 20178 | |
21d1c967 GD |
20179 | PNG_LINK= |
20180 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 20181 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20182 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 20183 | _ACEOF |
90dd450c | 20184 | |
8284b0c5 | 20185 | |
21d1c967 | 20186 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
20187 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
20188 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20189 | wxUSE_LIBPNG=sys |
20190 | fi | |
90dd450c | 20191 | |
21d1c967 | 20192 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
20193 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
20194 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
20195 | wxUSE_LIBPNG=builtin |
20196 | fi | |
20197 | ||
20198 | if test "$wxUSE_MGL" != 1 ; then | |
20199 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
20200 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
20201 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20202 | if test "${ac_cv_header_png_h+set}" = set; then | |
20203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
20204 | else |
20205 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 20206 | unset ac_cv_header_png_h |
e6cc62c6 | 20207 | |
5d3f766d | 20208 | else |
e6cc62c6 | 20209 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20210 | /* confdefs.h. */ |
20211 | _ACEOF | |
20212 | cat confdefs.h >>conftest.$ac_ext | |
20213 | cat >>conftest.$ac_ext <<_ACEOF | |
20214 | /* end confdefs.h. */ | |
20215 | ||
ef33c576 | 20216 | #include <png.h> |
5d3f766d VZ |
20217 | #include <stdio.h> |
20218 | ||
20219 | int main() | |
20220 | { | |
20221 | FILE *f=fopen("conftestval", "w"); | |
20222 | if (!f) exit(1); | |
20223 | fprintf(f, "%s", | |
20224 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20225 | exit(0); | |
20226 | } | |
e6cc62c6 VS |
20227 | |
20228 | _ACEOF | |
20229 | rm -f conftest$ac_exeext | |
20230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20231 | (eval $ac_link) 2>&5 | |
20232 | ac_status=$? | |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20236 | (eval $ac_try) 2>&5 | |
20237 | ac_status=$? | |
20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20239 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
20240 | ac_cv_header_png_h=`cat conftestval` |
20241 | else | |
e6cc62c6 VS |
20242 | echo "$as_me: program exited with status $ac_status" >&5 |
20243 | echo "$as_me: failed program was:" >&5 | |
20244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20245 | ||
20246 | ( exit $ac_status ) | |
20247 | ac_cv_header_png_h=no | |
5d3f766d | 20248 | fi |
32ddf007 | 20249 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
20250 | fi |
20251 | ||
5d3f766d | 20252 | fi |
e6cc62c6 VS |
20253 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
20254 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20255 | if test "${ac_cv_header_png_h+set}" = set; then | |
20256 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20257 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20258 | if test "${ac_cv_header_png_h+set}" = set; then | |
20259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20260 | fi | |
20261 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20262 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 20263 | else |
e6cc62c6 VS |
20264 | # Is the header compilable? |
20265 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20266 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20267 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20268 | /* confdefs.h. */ |
20269 | _ACEOF | |
20270 | cat confdefs.h >>conftest.$ac_ext | |
20271 | cat >>conftest.$ac_ext <<_ACEOF | |
20272 | /* end confdefs.h. */ | |
20273 | $ac_includes_default | |
89e6bf6d | 20274 | #include <png.h> |
e6cc62c6 VS |
20275 | _ACEOF |
20276 | rm -f conftest.$ac_objext | |
20277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20278 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20279 | ac_status=$? |
32ddf007 VS |
20280 | grep -v '^ *+' conftest.er1 >conftest.err |
20281 | rm -f conftest.er1 | |
20282 | cat conftest.err >&5 | |
e6cc62c6 VS |
20283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20284 | (exit $ac_status); } && | |
32ddf007 VS |
20285 | { ac_try='test -z "$ac_c_werror_flag" |
20286 | || test ! -s conftest.err' | |
20287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20288 | (eval $ac_try) 2>&5 | |
20289 | ac_status=$? | |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 | (exit $ac_status); }; } && | |
20292 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20294 | (eval $ac_try) 2>&5 | |
20295 | ac_status=$? | |
20296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20297 | (exit $ac_status); }; }; then | |
20298 | ac_header_compiler=yes | |
20299 | else | |
20300 | echo "$as_me: failed program was:" >&5 | |
20301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20302 | ||
20303 | ac_header_compiler=no | |
20304 | fi | |
32ddf007 | 20305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20306 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20307 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20308 | ||
20309 | # Is the header present? | |
20310 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20311 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20312 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20313 | /* confdefs.h. */ |
20314 | _ACEOF | |
20315 | cat confdefs.h >>conftest.$ac_ext | |
20316 | cat >>conftest.$ac_ext <<_ACEOF | |
20317 | /* end confdefs.h. */ | |
20318 | #include <png.h> | |
20319 | _ACEOF | |
20320 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20322 | ac_status=$? | |
20323 | grep -v '^ *+' conftest.er1 >conftest.err | |
20324 | rm -f conftest.er1 | |
20325 | cat conftest.err >&5 | |
20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20327 | (exit $ac_status); } >/dev/null; then | |
20328 | if test -s conftest.err; then | |
20329 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20330 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20331 | else |
20332 | ac_cpp_err= | |
20333 | fi | |
20334 | else | |
20335 | ac_cpp_err=yes | |
20336 | fi | |
20337 | if test -z "$ac_cpp_err"; then | |
20338 | ac_header_preproc=yes | |
20339 | else | |
20340 | echo "$as_me: failed program was:" >&5 | |
20341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20342 | ||
20343 | ac_header_preproc=no | |
20344 | fi | |
20345 | rm -f conftest.err conftest.$ac_ext | |
20346 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20347 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20348 | ||
20349 | # So? What about this header? | |
32ddf007 VS |
20350 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20351 | yes:no: ) | |
e6cc62c6 VS |
20352 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20353 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20354 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20355 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20356 | ac_header_preproc=yes | |
e6cc62c6 | 20357 | ;; |
32ddf007 | 20358 | no:yes:* ) |
e6cc62c6 VS |
20359 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20360 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20361 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
20362 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
20363 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
20364 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
20365 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20366 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20367 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
20368 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20369 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
20370 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20371 | ( |
20372 | cat <<\_ASBOX | |
32ddf007 VS |
20373 | ## ----------------------------------------- ## |
20374 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20375 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20376 | _ASBOX |
20377 | ) | | |
20378 | sed "s/^/$as_me: WARNING: /" >&2 | |
20379 | ;; | |
20380 | esac | |
20381 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20382 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20383 | if test "${ac_cv_header_png_h+set}" = set; then | |
20384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 20385 | else |
e6cc62c6 VS |
20386 | ac_cv_header_png_h=$ac_header_preproc |
20387 | fi | |
20388 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20389 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20390 | ||
89e6bf6d VZ |
20391 | fi |
20392 | ||
5d3f766d | 20393 | |
e6cc62c6 | 20394 | |
5d3f766d | 20395 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
20396 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
20397 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
20398 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
20399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20400 | else |
e6cc62c6 | 20401 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20402 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 20403 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20404 | /* confdefs.h. */ |
20405 | _ACEOF | |
20406 | cat confdefs.h >>conftest.$ac_ext | |
20407 | cat >>conftest.$ac_ext <<_ACEOF | |
20408 | /* end confdefs.h. */ | |
20409 | ||
21d1c967 | 20410 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20411 | #ifdef __cplusplus |
20412 | extern "C" | |
20413 | #endif | |
21d1c967 | 20414 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20415 | builtin and then its argument prototype would still apply. */ |
20416 | char png_check_sig (); | |
20417 | int | |
20418 | main () | |
20419 | { | |
20420 | png_check_sig (); | |
20421 | ; | |
20422 | return 0; | |
20423 | } | |
20424 | _ACEOF | |
20425 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20427 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20428 | ac_status=$? |
32ddf007 VS |
20429 | grep -v '^ *+' conftest.er1 >conftest.err |
20430 | rm -f conftest.er1 | |
20431 | cat conftest.err >&5 | |
e6cc62c6 VS |
20432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20433 | (exit $ac_status); } && | |
32ddf007 VS |
20434 | { ac_try='test -z "$ac_c_werror_flag" |
20435 | || test ! -s conftest.err' | |
20436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20437 | (eval $ac_try) 2>&5 | |
20438 | ac_status=$? | |
20439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20440 | (exit $ac_status); }; } && | |
20441 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20443 | (eval $ac_try) 2>&5 | |
20444 | ac_status=$? | |
20445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20446 | (exit $ac_status); }; }; then | |
20447 | ac_cv_lib_png_png_check_sig=yes | |
20448 | else | |
20449 | echo "$as_me: failed program was:" >&5 | |
20450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20451 | ||
20452 | ac_cv_lib_png_png_check_sig=no | |
20453 | fi | |
32ddf007 VS |
20454 | rm -f conftest.err conftest.$ac_objext \ |
20455 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20456 | LIBS=$ac_check_lib_save_LIBS |
20457 | fi | |
20458 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
20459 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
20460 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 20461 | PNG_LINK=" -lpng" |
a0b9e27f | 20462 | fi |
90dd450c | 20463 | |
5d3f766d | 20464 | fi |
247f5006 | 20465 | |
21d1c967 GD |
20466 | if test "x$PNG_LINK" = "x" ; then |
20467 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
20468 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
20469 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
20470 | { (exit 1); exit 1; }; } | |
21d1c967 | 20471 | else |
e6cc62c6 VS |
20472 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
20473 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
20474 | wxUSE_LIBPNG=builtin |
20475 | fi | |
20476 | else | |
2b5f62a0 | 20477 | wxUSE_LIBPNG=sys |
21d1c967 GD |
20478 | fi |
20479 | fi | |
20480 | fi | |
90dd450c | 20481 | |
21d1c967 | 20482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
20483 | fi |
20484 | ||
8284b0c5 | 20485 | |
21d1c967 GD |
20486 | JPEG_LINK= |
20487 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 20488 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20489 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 20490 | _ACEOF |
90dd450c | 20491 | |
8284b0c5 | 20492 | |
21d1c967 | 20493 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
20494 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
20495 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
20496 | wxUSE_LIBJPEG=sys |
20497 | fi | |
90dd450c | 20498 | |
21d1c967 GD |
20499 | if test "$wxUSE_MGL" != 1 ; then |
20500 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
20501 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
20502 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
20503 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
20504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20505 | else | |
20506 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20507 | /* confdefs.h. */ |
20508 | _ACEOF | |
20509 | cat confdefs.h >>conftest.$ac_ext | |
20510 | cat >>conftest.$ac_ext <<_ACEOF | |
20511 | /* end confdefs.h. */ | |
90dd450c | 20512 | |
21d1c967 GD |
20513 | #undef HAVE_STDLIB_H |
20514 | #include <stdio.h> | |
20515 | #include <jpeglib.h> | |
90dd450c | 20516 | |
e6cc62c6 VS |
20517 | int |
20518 | main () | |
20519 | { | |
20520 | ||
20521 | ||
20522 | ; | |
20523 | return 0; | |
20524 | } | |
20525 | _ACEOF | |
20526 | rm -f conftest.$ac_objext | |
20527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20528 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20529 | ac_status=$? |
32ddf007 VS |
20530 | grep -v '^ *+' conftest.er1 >conftest.err |
20531 | rm -f conftest.er1 | |
20532 | cat conftest.err >&5 | |
e6cc62c6 VS |
20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20534 | (exit $ac_status); } && | |
32ddf007 VS |
20535 | { ac_try='test -z "$ac_c_werror_flag" |
20536 | || test ! -s conftest.err' | |
20537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20538 | (eval $ac_try) 2>&5 | |
20539 | ac_status=$? | |
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20541 | (exit $ac_status); }; } && | |
20542 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20544 | (eval $ac_try) 2>&5 | |
20545 | ac_status=$? | |
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20547 | (exit $ac_status); }; }; then | |
21d1c967 | 20548 | ac_cv_header_jpeglib_h=yes |
90dd450c | 20549 | else |
e6cc62c6 VS |
20550 | echo "$as_me: failed program was:" >&5 |
20551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20552 | ||
20553 | ac_cv_header_jpeglib_h=no | |
20554 | ||
90dd450c | 20555 | fi |
32ddf007 | 20556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 20557 | |
90dd450c VZ |
20558 | fi |
20559 | ||
e6cc62c6 VS |
20560 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
20561 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 20562 | |
21d1c967 | 20563 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
20564 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
20565 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
20566 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
20567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20568 | else |
e6cc62c6 | 20569 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20570 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 20571 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20572 | /* confdefs.h. */ |
20573 | _ACEOF | |
20574 | cat confdefs.h >>conftest.$ac_ext | |
20575 | cat >>conftest.$ac_ext <<_ACEOF | |
20576 | /* end confdefs.h. */ | |
20577 | ||
21d1c967 | 20578 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20579 | #ifdef __cplusplus |
20580 | extern "C" | |
20581 | #endif | |
21d1c967 | 20582 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20583 | builtin and then its argument prototype would still apply. */ |
20584 | char jpeg_read_header (); | |
20585 | int | |
20586 | main () | |
20587 | { | |
20588 | jpeg_read_header (); | |
20589 | ; | |
20590 | return 0; | |
20591 | } | |
20592 | _ACEOF | |
20593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20595 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20596 | ac_status=$? |
32ddf007 VS |
20597 | grep -v '^ *+' conftest.er1 >conftest.err |
20598 | rm -f conftest.er1 | |
20599 | cat conftest.err >&5 | |
e6cc62c6 VS |
20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20601 | (exit $ac_status); } && | |
32ddf007 VS |
20602 | { ac_try='test -z "$ac_c_werror_flag" |
20603 | || test ! -s conftest.err' | |
20604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20605 | (eval $ac_try) 2>&5 | |
20606 | ac_status=$? | |
20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20608 | (exit $ac_status); }; } && | |
20609 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20611 | (eval $ac_try) 2>&5 | |
20612 | ac_status=$? | |
20613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20614 | (exit $ac_status); }; }; then | |
20615 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
20616 | else | |
20617 | echo "$as_me: failed program was:" >&5 | |
20618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20619 | ||
20620 | ac_cv_lib_jpeg_jpeg_read_header=no | |
20621 | fi | |
32ddf007 VS |
20622 | rm -f conftest.err conftest.$ac_objext \ |
20623 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20624 | LIBS=$ac_check_lib_save_LIBS |
20625 | fi | |
20626 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
20627 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
20628 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 20629 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
20630 | fi |
20631 | ||
21d1c967 | 20632 | fi |
90dd450c | 20633 | |
21d1c967 GD |
20634 | if test "x$JPEG_LINK" = "x" ; then |
20635 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
20636 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
20637 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
20638 | { (exit 1); exit 1; }; } | |
21d1c967 | 20639 | else |
e6cc62c6 VS |
20640 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
20641 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
20642 | wxUSE_LIBJPEG=builtin |
20643 | fi | |
20644 | else | |
20645 | wxUSE_LIBJPEG=sys | |
20646 | fi | |
20647 | fi | |
20648 | fi | |
21d1c967 | 20649 | fi |
90dd450c | 20650 | |
8284b0c5 | 20651 | |
21d1c967 | 20652 | TIFF_LINK= |
2b5f62a0 | 20653 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 20654 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 20655 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20656 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 20657 | _ACEOF |
21d1c967 | 20658 | |
8284b0c5 | 20659 | |
21d1c967 | 20660 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
20661 | if test "$wxUSE_LIBJPEG" = "sys"; then |
20662 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
20663 | fi | |
20664 | if test "$wxUSE_ZLIB" = "sys"; then | |
20665 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
20666 | fi | |
e6cc62c6 VS |
20667 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
20668 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20669 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20670 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20672 | fi | |
20673 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
20674 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20675 | else | |
20676 | # Is the header compilable? | |
20677 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
20678 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
20679 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20680 | /* confdefs.h. */ |
20681 | _ACEOF | |
20682 | cat confdefs.h >>conftest.$ac_ext | |
20683 | cat >>conftest.$ac_ext <<_ACEOF | |
20684 | /* end confdefs.h. */ | |
20685 | $ac_includes_default | |
247f5006 | 20686 | #include <tiffio.h> |
e6cc62c6 VS |
20687 | _ACEOF |
20688 | rm -f conftest.$ac_objext | |
20689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20690 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 20691 | ac_status=$? |
32ddf007 VS |
20692 | grep -v '^ *+' conftest.er1 >conftest.err |
20693 | rm -f conftest.er1 | |
20694 | cat conftest.err >&5 | |
e6cc62c6 VS |
20695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20696 | (exit $ac_status); } && | |
32ddf007 VS |
20697 | { ac_try='test -z "$ac_c_werror_flag" |
20698 | || test ! -s conftest.err' | |
20699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20700 | (eval $ac_try) 2>&5 | |
20701 | ac_status=$? | |
20702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20703 | (exit $ac_status); }; } && | |
20704 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
20705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20706 | (eval $ac_try) 2>&5 | |
20707 | ac_status=$? | |
20708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20709 | (exit $ac_status); }; }; then | |
20710 | ac_header_compiler=yes | |
20711 | else | |
20712 | echo "$as_me: failed program was:" >&5 | |
20713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20714 | ||
20715 | ac_header_compiler=no | |
20716 | fi | |
32ddf007 | 20717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
20718 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20719 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20720 | ||
20721 | # Is the header present? | |
20722 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
20723 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
20724 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
20725 | /* confdefs.h. */ |
20726 | _ACEOF | |
20727 | cat confdefs.h >>conftest.$ac_ext | |
20728 | cat >>conftest.$ac_ext <<_ACEOF | |
20729 | /* end confdefs.h. */ | |
20730 | #include <tiffio.h> | |
20731 | _ACEOF | |
20732 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20733 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20734 | ac_status=$? | |
20735 | grep -v '^ *+' conftest.er1 >conftest.err | |
20736 | rm -f conftest.er1 | |
20737 | cat conftest.err >&5 | |
20738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20739 | (exit $ac_status); } >/dev/null; then | |
20740 | if test -s conftest.err; then | |
20741 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20742 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
20743 | else |
20744 | ac_cpp_err= | |
20745 | fi | |
20746 | else | |
20747 | ac_cpp_err=yes | |
20748 | fi | |
20749 | if test -z "$ac_cpp_err"; then | |
20750 | ac_header_preproc=yes | |
20751 | else | |
20752 | echo "$as_me: failed program was:" >&5 | |
20753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20754 | ||
20755 | ac_header_preproc=no | |
20756 | fi | |
20757 | rm -f conftest.err conftest.$ac_ext | |
20758 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20759 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20760 | ||
20761 | # So? What about this header? | |
32ddf007 VS |
20762 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20763 | yes:no: ) | |
e6cc62c6 VS |
20764 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20765 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
20766 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
20767 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
20768 | ac_header_preproc=yes | |
e6cc62c6 | 20769 | ;; |
32ddf007 | 20770 | no:yes:* ) |
e6cc62c6 VS |
20771 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
20772 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
20773 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
20774 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
20775 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
20776 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
20777 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20778 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
20779 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
20780 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
20781 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
20782 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
20783 | ( |
20784 | cat <<\_ASBOX | |
32ddf007 VS |
20785 | ## ----------------------------------------- ## |
20786 | ## Report this to wx-dev@lists.wxwindows.org ## | |
20787 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
20788 | _ASBOX |
20789 | ) | | |
20790 | sed "s/^/$as_me: WARNING: /" >&2 | |
20791 | ;; | |
20792 | esac | |
20793 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
20794 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
20795 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
20796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20797 | else | |
20798 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 20799 | fi |
e6cc62c6 VS |
20800 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
20801 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
20802 | ||
21d1c967 | 20803 | fi |
e6cc62c6 | 20804 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
20805 | |
20806 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
20807 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
20808 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 20810 | else |
e6cc62c6 | 20811 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 20812 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 20813 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
20814 | /* confdefs.h. */ |
20815 | _ACEOF | |
20816 | cat confdefs.h >>conftest.$ac_ext | |
20817 | cat >>conftest.$ac_ext <<_ACEOF | |
20818 | /* end confdefs.h. */ | |
20819 | ||
ab9b9eab | 20820 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20821 | #ifdef __cplusplus |
20822 | extern "C" | |
20823 | #endif | |
ab9b9eab | 20824 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20825 | builtin and then its argument prototype would still apply. */ |
20826 | char TIFFError (); | |
20827 | int | |
20828 | main () | |
20829 | { | |
20830 | TIFFError (); | |
20831 | ; | |
20832 | return 0; | |
20833 | } | |
20834 | _ACEOF | |
20835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 20837 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 20838 | ac_status=$? |
32ddf007 VS |
20839 | grep -v '^ *+' conftest.er1 >conftest.err |
20840 | rm -f conftest.er1 | |
20841 | cat conftest.err >&5 | |
e6cc62c6 VS |
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20843 | (exit $ac_status); } && | |
32ddf007 VS |
20844 | { ac_try='test -z "$ac_c_werror_flag" |
20845 | || test ! -s conftest.err' | |
20846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20847 | (eval $ac_try) 2>&5 | |
20848 | ac_status=$? | |
20849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20850 | (exit $ac_status); }; } && | |
20851 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
20852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20853 | (eval $ac_try) 2>&5 | |
20854 | ac_status=$? | |
20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20856 | (exit $ac_status); }; }; then | |
20857 | ac_cv_lib_tiff_TIFFError=yes | |
20858 | else | |
20859 | echo "$as_me: failed program was:" >&5 | |
20860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20861 | ||
20862 | ac_cv_lib_tiff_TIFFError=no | |
20863 | fi | |
32ddf007 VS |
20864 | rm -f conftest.err conftest.$ac_objext \ |
20865 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
20866 | LIBS=$ac_check_lib_save_LIBS |
20867 | fi | |
20868 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
20869 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
20870 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 20871 | TIFF_LINK=" -ltiff" |
a0b9e27f | 20872 | fi |
cd6d6d5b | 20873 | |
e6cc62c6 | 20874 | |
0e012a93 | 20875 | |
a0b9e27f | 20876 | fi |
8284b0c5 | 20877 | |
247f5006 | 20878 | |
e6cc62c6 | 20879 | |
21d1c967 GD |
20880 | if test "x$TIFF_LINK" = "x" ; then |
20881 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
20882 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
20883 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
20884 | { (exit 1); exit 1; }; } | |
90dd450c | 20885 | else |
e6cc62c6 VS |
20886 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
20887 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 20888 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 20889 | fi |
d8356fa3 | 20890 | else |
21d1c967 | 20891 | wxUSE_LIBTIFF=sys |
d8356fa3 | 20892 | fi |
21d1c967 | 20893 | fi |
21d1c967 | 20894 | fi |
10f2d63a | 20895 | |
8284b0c5 | 20896 | |
672abd7a | 20897 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 20898 | wxUSE_XML=yes |
672abd7a VS |
20899 | cat >>confdefs.h <<\_ACEOF |
20900 | #define wxUSE_EXPAT 1 | |
20901 | _ACEOF | |
20902 | ||
20903 | cat >>confdefs.h <<\_ACEOF | |
20904 | #define wxUSE_XML 1 | |
20905 | _ACEOF | |
20906 | ||
20907 | ||
20908 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
20909 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20910 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20911 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20912 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20914 | fi | |
20915 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20916 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20917 | else | |
20918 | # Is the header compilable? | |
20919 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
20920 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
20921 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20922 | /* confdefs.h. */ |
20923 | _ACEOF | |
20924 | cat confdefs.h >>conftest.$ac_ext | |
20925 | cat >>conftest.$ac_ext <<_ACEOF | |
20926 | /* end confdefs.h. */ | |
20927 | $ac_includes_default | |
20928 | #include <expat.h> | |
20929 | _ACEOF | |
20930 | rm -f conftest.$ac_objext | |
20931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 20932 | (eval $ac_compile) 2>conftest.er1 |
672abd7a | 20933 | ac_status=$? |
32ddf007 VS |
20934 | grep -v '^ *+' conftest.er1 >conftest.err |
20935 | rm -f conftest.er1 | |
20936 | cat conftest.err >&5 | |
672abd7a VS |
20937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20938 | (exit $ac_status); } && | |
32ddf007 VS |
20939 | { ac_try='test -z "$ac_c_werror_flag" |
20940 | || test ! -s conftest.err' | |
20941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20942 | (eval $ac_try) 2>&5 | |
20943 | ac_status=$? | |
20944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20945 | (exit $ac_status); }; } && | |
20946 | { ac_try='test -s conftest.$ac_objext' | |
672abd7a VS |
20947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20948 | (eval $ac_try) 2>&5 | |
20949 | ac_status=$? | |
20950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20951 | (exit $ac_status); }; }; then | |
20952 | ac_header_compiler=yes | |
20953 | else | |
20954 | echo "$as_me: failed program was:" >&5 | |
20955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20956 | ||
20957 | ac_header_compiler=no | |
20958 | fi | |
32ddf007 | 20959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
20960 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20961 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20962 | ||
20963 | # Is the header present? | |
20964 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
20965 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
20966 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
20967 | /* confdefs.h. */ |
20968 | _ACEOF | |
20969 | cat confdefs.h >>conftest.$ac_ext | |
20970 | cat >>conftest.$ac_ext <<_ACEOF | |
20971 | /* end confdefs.h. */ | |
20972 | #include <expat.h> | |
20973 | _ACEOF | |
20974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20976 | ac_status=$? | |
20977 | grep -v '^ *+' conftest.er1 >conftest.err | |
20978 | rm -f conftest.er1 | |
20979 | cat conftest.err >&5 | |
20980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20981 | (exit $ac_status); } >/dev/null; then | |
20982 | if test -s conftest.err; then | |
20983 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 20984 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
672abd7a VS |
20985 | else |
20986 | ac_cpp_err= | |
20987 | fi | |
20988 | else | |
20989 | ac_cpp_err=yes | |
20990 | fi | |
20991 | if test -z "$ac_cpp_err"; then | |
20992 | ac_header_preproc=yes | |
20993 | else | |
20994 | echo "$as_me: failed program was:" >&5 | |
20995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20996 | ||
20997 | ac_header_preproc=no | |
20998 | fi | |
20999 | rm -f conftest.err conftest.$ac_ext | |
21000 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21001 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21002 | ||
21003 | # So? What about this header? | |
32ddf007 VS |
21004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21005 | yes:no: ) | |
672abd7a VS |
21006 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21007 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21008 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21009 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21010 | ac_header_preproc=yes | |
672abd7a | 21011 | ;; |
32ddf007 | 21012 | no:yes:* ) |
672abd7a VS |
21013 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21014 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21015 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21016 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21017 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21018 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21019 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21020 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
672abd7a VS |
21021 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21022 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21023 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21024 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
672abd7a VS |
21025 | ( |
21026 | cat <<\_ASBOX | |
32ddf007 VS |
21027 | ## ----------------------------------------- ## |
21028 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21029 | ## ----------------------------------------- ## | |
672abd7a VS |
21030 | _ASBOX |
21031 | ) | | |
21032 | sed "s/^/$as_me: WARNING: /" >&2 | |
21033 | ;; | |
21034 | esac | |
21035 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21036 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21037 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21039 | else | |
21040 | ac_cv_header_expat_h=$ac_header_preproc | |
21041 | fi | |
21042 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21043 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21044 | ||
21045 | fi | |
5f0b6dff VS |
21046 | if test $ac_cv_header_expat_h = yes; then |
21047 | found_expat_h=1 | |
21048 | fi | |
21049 | ||
21050 | ||
21051 | if test "x$found_expat_h" = "x1"; then | |
21052 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21053 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21054 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21056 | else | |
21057 | ||
21058 | ||
672abd7a | 21059 | |
5f0b6dff VS |
21060 | ac_ext=cc |
21061 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21062 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21063 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21064 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21065 | ||
21066 | cat >conftest.$ac_ext <<_ACEOF | |
5f0b6dff VS |
21067 | /* confdefs.h. */ |
21068 | _ACEOF | |
21069 | cat confdefs.h >>conftest.$ac_ext | |
21070 | cat >>conftest.$ac_ext <<_ACEOF | |
21071 | /* end confdefs.h. */ | |
21072 | #include <expat.h> | |
21073 | int | |
21074 | main () | |
21075 | { | |
672abd7a | 21076 | |
5f0b6dff VS |
21077 | ; |
21078 | return 0; | |
21079 | } | |
21080 | _ACEOF | |
21081 | rm -f conftest.$ac_objext | |
21082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21083 | (eval $ac_compile) 2>conftest.er1 |
5f0b6dff | 21084 | ac_status=$? |
32ddf007 VS |
21085 | grep -v '^ *+' conftest.er1 >conftest.err |
21086 | rm -f conftest.er1 | |
21087 | cat conftest.err >&5 | |
5f0b6dff VS |
21088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21089 | (exit $ac_status); } && | |
32ddf007 VS |
21090 | { ac_try='test -z "$ac_cxx_werror_flag" |
21091 | || test ! -s conftest.err' | |
21092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21093 | (eval $ac_try) 2>&5 | |
21094 | ac_status=$? | |
21095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21096 | (exit $ac_status); }; } && | |
21097 | { ac_try='test -s conftest.$ac_objext' | |
5f0b6dff VS |
21098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21099 | (eval $ac_try) 2>&5 | |
21100 | ac_status=$? | |
21101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21102 | (exit $ac_status); }; }; then | |
21103 | wx_cv_expat_is_not_broken=yes | |
21104 | else | |
21105 | echo "$as_me: failed program was:" >&5 | |
21106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21107 | ||
21108 | wx_cv_expat_is_not_broken=no | |
21109 | ||
21110 | fi | |
32ddf007 | 21111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
21112 | ac_ext=c |
21113 | ac_cpp='$CPP $CPPFLAGS' | |
21114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21117 | ||
21118 | ||
21119 | ||
21120 | fi | |
21121 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21122 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21123 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21124 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
21125 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
21126 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21128 | else | |
21129 | ac_check_lib_save_LIBS=$LIBS | |
21130 | LIBS="-lexpat $LIBS" | |
21131 | cat >conftest.$ac_ext <<_ACEOF | |
672abd7a VS |
21132 | /* confdefs.h. */ |
21133 | _ACEOF | |
21134 | cat confdefs.h >>conftest.$ac_ext | |
21135 | cat >>conftest.$ac_ext <<_ACEOF | |
21136 | /* end confdefs.h. */ | |
21137 | ||
21138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21139 | #ifdef __cplusplus | |
21140 | extern "C" | |
21141 | #endif | |
21142 | /* We use char because int might match the return type of a gcc2 | |
21143 | builtin and then its argument prototype would still apply. */ | |
21144 | char XML_ParserCreate (); | |
21145 | int | |
21146 | main () | |
21147 | { | |
21148 | XML_ParserCreate (); | |
21149 | ; | |
21150 | return 0; | |
21151 | } | |
21152 | _ACEOF | |
21153 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21155 | (eval $ac_link) 2>conftest.er1 |
672abd7a | 21156 | ac_status=$? |
32ddf007 VS |
21157 | grep -v '^ *+' conftest.er1 >conftest.err |
21158 | rm -f conftest.er1 | |
21159 | cat conftest.err >&5 | |
672abd7a VS |
21160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21161 | (exit $ac_status); } && | |
32ddf007 VS |
21162 | { ac_try='test -z "$ac_c_werror_flag" |
21163 | || test ! -s conftest.err' | |
21164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21165 | (eval $ac_try) 2>&5 | |
21166 | ac_status=$? | |
21167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21168 | (exit $ac_status); }; } && | |
21169 | { ac_try='test -s conftest$ac_exeext' | |
672abd7a VS |
21170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21171 | (eval $ac_try) 2>&5 | |
21172 | ac_status=$? | |
21173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21174 | (exit $ac_status); }; }; then | |
21175 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21176 | else | |
21177 | echo "$as_me: failed program was:" >&5 | |
21178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21179 | ||
21180 | ac_cv_lib_expat_XML_ParserCreate=no | |
21181 | fi | |
32ddf007 VS |
21182 | rm -f conftest.err conftest.$ac_objext \ |
21183 | conftest$ac_exeext conftest.$ac_ext | |
672abd7a VS |
21184 | LIBS=$ac_check_lib_save_LIBS |
21185 | fi | |
21186 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21187 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21188 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21189 | EXPAT_LINK=" -lexpat" | |
21190 | fi | |
21191 | ||
5f0b6dff | 21192 | fi |
672abd7a VS |
21193 | fi |
21194 | if test "x$EXPAT_LINK" = "x" ; then | |
21195 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21196 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21197 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21198 | { (exit 1); exit 1; }; } | |
21199 | else | |
21200 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21201 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21202 | wxUSE_EXPAT=builtin | |
21203 | fi | |
21204 | else | |
21205 | wxUSE_EXPAT=sys | |
21206 | fi | |
21207 | fi | |
21208 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21209 | ||
21210 | ||
21211 | subdirs="$subdirs src/expat" | |
21212 | ||
21213 | fi | |
21214 | fi | |
21215 | ||
21216 | ||
21217 | ||
3527f29c VS |
21218 | if test "$wxUSE_LIBMSPACK" != "no"; then |
21219 | ||
21220 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21221 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21222 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21223 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21225 | fi | |
21226 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21227 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21228 | else | |
21229 | # Is the header compilable? | |
21230 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21231 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21232 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21233 | /* confdefs.h. */ |
21234 | _ACEOF | |
21235 | cat confdefs.h >>conftest.$ac_ext | |
21236 | cat >>conftest.$ac_ext <<_ACEOF | |
21237 | /* end confdefs.h. */ | |
21238 | $ac_includes_default | |
21239 | #include <mspack.h> | |
21240 | _ACEOF | |
21241 | rm -f conftest.$ac_objext | |
21242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21243 | (eval $ac_compile) 2>conftest.er1 |
3527f29c | 21244 | ac_status=$? |
32ddf007 VS |
21245 | grep -v '^ *+' conftest.er1 >conftest.err |
21246 | rm -f conftest.er1 | |
21247 | cat conftest.err >&5 | |
3527f29c VS |
21248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21249 | (exit $ac_status); } && | |
32ddf007 VS |
21250 | { ac_try='test -z "$ac_c_werror_flag" |
21251 | || test ! -s conftest.err' | |
21252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21253 | (eval $ac_try) 2>&5 | |
21254 | ac_status=$? | |
21255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21256 | (exit $ac_status); }; } && | |
21257 | { ac_try='test -s conftest.$ac_objext' | |
3527f29c VS |
21258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21259 | (eval $ac_try) 2>&5 | |
21260 | ac_status=$? | |
21261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21262 | (exit $ac_status); }; }; then | |
21263 | ac_header_compiler=yes | |
21264 | else | |
21265 | echo "$as_me: failed program was:" >&5 | |
21266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21267 | ||
21268 | ac_header_compiler=no | |
21269 | fi | |
32ddf007 | 21270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
21271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21272 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21273 | ||
21274 | # Is the header present? | |
21275 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21276 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21277 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21278 | /* confdefs.h. */ |
21279 | _ACEOF | |
21280 | cat confdefs.h >>conftest.$ac_ext | |
21281 | cat >>conftest.$ac_ext <<_ACEOF | |
21282 | /* end confdefs.h. */ | |
21283 | #include <mspack.h> | |
21284 | _ACEOF | |
21285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21287 | ac_status=$? | |
21288 | grep -v '^ *+' conftest.er1 >conftest.err | |
21289 | rm -f conftest.er1 | |
21290 | cat conftest.err >&5 | |
21291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21292 | (exit $ac_status); } >/dev/null; then | |
21293 | if test -s conftest.err; then | |
21294 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
3527f29c VS |
21296 | else |
21297 | ac_cpp_err= | |
21298 | fi | |
21299 | else | |
21300 | ac_cpp_err=yes | |
21301 | fi | |
21302 | if test -z "$ac_cpp_err"; then | |
21303 | ac_header_preproc=yes | |
21304 | else | |
21305 | echo "$as_me: failed program was:" >&5 | |
21306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21307 | ||
21308 | ac_header_preproc=no | |
21309 | fi | |
21310 | rm -f conftest.err conftest.$ac_ext | |
21311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21312 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21313 | ||
21314 | # So? What about this header? | |
32ddf007 VS |
21315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21316 | yes:no: ) | |
3527f29c VS |
21317 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21318 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21319 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21320 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21321 | ac_header_preproc=yes | |
3527f29c | 21322 | ;; |
32ddf007 | 21323 | no:yes:* ) |
3527f29c VS |
21324 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21325 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21326 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21327 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21328 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21329 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21330 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21331 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3527f29c VS |
21332 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21333 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21334 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21335 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
3527f29c VS |
21336 | ( |
21337 | cat <<\_ASBOX | |
32ddf007 VS |
21338 | ## ----------------------------------------- ## |
21339 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21340 | ## ----------------------------------------- ## | |
3527f29c VS |
21341 | _ASBOX |
21342 | ) | | |
21343 | sed "s/^/$as_me: WARNING: /" >&2 | |
21344 | ;; | |
21345 | esac | |
21346 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21347 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21348 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21350 | else | |
21351 | ac_cv_header_mspack_h=$ac_header_preproc | |
21352 | fi | |
21353 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21354 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21355 | ||
21356 | fi | |
21357 | if test $ac_cv_header_mspack_h = yes; then | |
21358 | found_mspack_h=1 | |
21359 | fi | |
21360 | ||
21361 | ||
21362 | if test "x$found_mspack_h" = "x1"; then | |
21363 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21364 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21365 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21367 | else | |
21368 | ac_check_lib_save_LIBS=$LIBS | |
21369 | LIBS="-lmspack $LIBS" | |
21370 | cat >conftest.$ac_ext <<_ACEOF | |
3527f29c VS |
21371 | /* confdefs.h. */ |
21372 | _ACEOF | |
21373 | cat confdefs.h >>conftest.$ac_ext | |
21374 | cat >>conftest.$ac_ext <<_ACEOF | |
21375 | /* end confdefs.h. */ | |
21376 | ||
21377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21378 | #ifdef __cplusplus | |
21379 | extern "C" | |
21380 | #endif | |
21381 | /* We use char because int might match the return type of a gcc2 | |
21382 | builtin and then its argument prototype would still apply. */ | |
21383 | char mspack_create_chm_decompressor (); | |
21384 | int | |
21385 | main () | |
21386 | { | |
21387 | mspack_create_chm_decompressor (); | |
21388 | ; | |
21389 | return 0; | |
21390 | } | |
21391 | _ACEOF | |
21392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 21394 | (eval $ac_link) 2>conftest.er1 |
3527f29c | 21395 | ac_status=$? |
32ddf007 VS |
21396 | grep -v '^ *+' conftest.er1 >conftest.err |
21397 | rm -f conftest.er1 | |
21398 | cat conftest.err >&5 | |
3527f29c VS |
21399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21400 | (exit $ac_status); } && | |
32ddf007 VS |
21401 | { ac_try='test -z "$ac_c_werror_flag" |
21402 | || test ! -s conftest.err' | |
21403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21404 | (eval $ac_try) 2>&5 | |
21405 | ac_status=$? | |
21406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21407 | (exit $ac_status); }; } && | |
21408 | { ac_try='test -s conftest$ac_exeext' | |
3527f29c VS |
21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21410 | (eval $ac_try) 2>&5 | |
21411 | ac_status=$? | |
21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21413 | (exit $ac_status); }; }; then | |
21414 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
21415 | else | |
21416 | echo "$as_me: failed program was:" >&5 | |
21417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21418 | ||
21419 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
21420 | fi | |
32ddf007 VS |
21421 | rm -f conftest.err conftest.$ac_objext \ |
21422 | conftest$ac_exeext conftest.$ac_ext | |
3527f29c VS |
21423 | LIBS=$ac_check_lib_save_LIBS |
21424 | fi | |
21425 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
21426 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
21427 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
21428 | MSPACK_LINK=" -lmspack" | |
21429 | fi | |
21430 | ||
21431 | fi | |
21432 | if test "x$MSPACK_LINK" = "x" ; then | |
21433 | wxUSE_LIBMSPACK=no | |
21434 | else | |
21435 | cat >>confdefs.h <<\_ACEOF | |
21436 | #define wxUSE_LIBMSPACK 1 | |
21437 | _ACEOF | |
21438 | ||
21439 | fi | |
21440 | fi | |
21441 | ||
21442 | ||
21443 | ||
21d1c967 | 21444 | AFMINSTALL= |
2b5f62a0 | 21445 | WIN32INSTALL= |
90dd450c | 21446 | |
21d1c967 GD |
21447 | TOOLKIT= |
21448 | TOOLKIT_INCLUDE= | |
21449 | WIDGET_SET= | |
21450 | ||
21451 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
21452 | |
21453 | for ac_header in w32api.h | |
21d1c967 | 21454 | do |
e6cc62c6 VS |
21455 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21461 | fi | |
21462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21463 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21464 | else | |
21465 | # Is the header compilable? | |
21466 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21468 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21469 | /* confdefs.h. */ |
21470 | _ACEOF | |
21471 | cat confdefs.h >>conftest.$ac_ext | |
21472 | cat >>conftest.$ac_ext <<_ACEOF | |
21473 | /* end confdefs.h. */ | |
21474 | $ac_includes_default | |
21475 | #include <$ac_header> | |
21476 | _ACEOF | |
21477 | rm -f conftest.$ac_objext | |
21478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21479 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21480 | ac_status=$? |
32ddf007 VS |
21481 | grep -v '^ *+' conftest.er1 >conftest.err |
21482 | rm -f conftest.er1 | |
21483 | cat conftest.err >&5 | |
e6cc62c6 VS |
21484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21485 | (exit $ac_status); } && | |
32ddf007 VS |
21486 | { ac_try='test -z "$ac_c_werror_flag" |
21487 | || test ! -s conftest.err' | |
21488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21489 | (eval $ac_try) 2>&5 | |
21490 | ac_status=$? | |
21491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21492 | (exit $ac_status); }; } && | |
21493 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21495 | (eval $ac_try) 2>&5 | |
21496 | ac_status=$? | |
21497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21498 | (exit $ac_status); }; }; then | |
21499 | ac_header_compiler=yes | |
21500 | else | |
21501 | echo "$as_me: failed program was:" >&5 | |
21502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21503 | ||
21504 | ac_header_compiler=no | |
21505 | fi | |
32ddf007 | 21506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21508 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21509 | ||
21510 | # Is the header present? | |
21511 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21512 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21513 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21514 | /* confdefs.h. */ |
21515 | _ACEOF | |
21516 | cat confdefs.h >>conftest.$ac_ext | |
21517 | cat >>conftest.$ac_ext <<_ACEOF | |
21518 | /* end confdefs.h. */ | |
21519 | #include <$ac_header> | |
21520 | _ACEOF | |
21521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21523 | ac_status=$? | |
21524 | grep -v '^ *+' conftest.er1 >conftest.err | |
21525 | rm -f conftest.er1 | |
21526 | cat conftest.err >&5 | |
21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21528 | (exit $ac_status); } >/dev/null; then | |
21529 | if test -s conftest.err; then | |
21530 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21532 | else |
21533 | ac_cpp_err= | |
21534 | fi | |
21535 | else | |
21536 | ac_cpp_err=yes | |
21537 | fi | |
21538 | if test -z "$ac_cpp_err"; then | |
21539 | ac_header_preproc=yes | |
21540 | else | |
21541 | echo "$as_me: failed program was:" >&5 | |
21542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21543 | ||
21544 | ac_header_preproc=no | |
21545 | fi | |
21546 | rm -f conftest.err conftest.$ac_ext | |
21547 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21548 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21549 | ||
21550 | # So? What about this header? | |
32ddf007 VS |
21551 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21552 | yes:no: ) | |
e6cc62c6 VS |
21553 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21554 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21555 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21556 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21557 | ac_header_preproc=yes | |
e6cc62c6 | 21558 | ;; |
32ddf007 | 21559 | no:yes:* ) |
e6cc62c6 VS |
21560 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21561 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21562 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21563 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21564 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21565 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21566 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21567 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21568 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21569 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21570 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21571 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21572 | ( |
21573 | cat <<\_ASBOX | |
32ddf007 VS |
21574 | ## ----------------------------------------- ## |
21575 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21576 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21577 | _ASBOX |
21578 | ) | | |
21579 | sed "s/^/$as_me: WARNING: /" >&2 | |
21580 | ;; | |
21581 | esac | |
21582 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21583 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21586 | else | |
32ddf007 | 21587 | eval "$as_ac_Header=\$ac_header_preproc" |
f79bd02d | 21588 | fi |
e6cc62c6 VS |
21589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
21590 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21591 | ||
21d1c967 | 21592 | fi |
e6cc62c6 VS |
21593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
21594 | cat >>confdefs.h <<_ACEOF | |
21595 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21596 | _ACEOF | |
21597 | ||
21d1c967 | 21598 | fi |
e6cc62c6 | 21599 | |
21d1c967 | 21600 | done |
f79bd02d | 21601 | |
e6cc62c6 VS |
21602 | if test "${ac_cv_header_windows_h+set}" = set; then |
21603 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21604 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21605 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21607 | fi | |
21608 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
21609 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21610 | else | |
21611 | # Is the header compilable? | |
21612 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
21613 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
21614 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21615 | /* confdefs.h. */ |
21616 | _ACEOF | |
21617 | cat confdefs.h >>conftest.$ac_ext | |
21618 | cat >>conftest.$ac_ext <<_ACEOF | |
21619 | /* end confdefs.h. */ | |
21620 | $ac_includes_default | |
247f5006 | 21621 | #include <windows.h> |
e6cc62c6 VS |
21622 | _ACEOF |
21623 | rm -f conftest.$ac_objext | |
21624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 21625 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 21626 | ac_status=$? |
32ddf007 VS |
21627 | grep -v '^ *+' conftest.er1 >conftest.err |
21628 | rm -f conftest.er1 | |
21629 | cat conftest.err >&5 | |
e6cc62c6 VS |
21630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21631 | (exit $ac_status); } && | |
32ddf007 VS |
21632 | { ac_try='test -z "$ac_c_werror_flag" |
21633 | || test ! -s conftest.err' | |
21634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21635 | (eval $ac_try) 2>&5 | |
21636 | ac_status=$? | |
21637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21638 | (exit $ac_status); }; } && | |
21639 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
21640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21641 | (eval $ac_try) 2>&5 | |
21642 | ac_status=$? | |
21643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21644 | (exit $ac_status); }; }; then | |
21645 | ac_header_compiler=yes | |
21646 | else | |
21647 | echo "$as_me: failed program was:" >&5 | |
21648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21649 | ||
21650 | ac_header_compiler=no | |
21651 | fi | |
32ddf007 | 21652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
21653 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21654 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21655 | ||
21656 | # Is the header present? | |
21657 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
21658 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
21659 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
21660 | /* confdefs.h. */ |
21661 | _ACEOF | |
21662 | cat confdefs.h >>conftest.$ac_ext | |
21663 | cat >>conftest.$ac_ext <<_ACEOF | |
21664 | /* end confdefs.h. */ | |
21665 | #include <windows.h> | |
21666 | _ACEOF | |
21667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21669 | ac_status=$? | |
21670 | grep -v '^ *+' conftest.er1 >conftest.err | |
21671 | rm -f conftest.er1 | |
21672 | cat conftest.err >&5 | |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21674 | (exit $ac_status); } >/dev/null; then | |
21675 | if test -s conftest.err; then | |
21676 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 21677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
21678 | else |
21679 | ac_cpp_err= | |
21680 | fi | |
21681 | else | |
21682 | ac_cpp_err=yes | |
21683 | fi | |
21684 | if test -z "$ac_cpp_err"; then | |
21685 | ac_header_preproc=yes | |
21686 | else | |
21687 | echo "$as_me: failed program was:" >&5 | |
21688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21689 | ||
21690 | ac_header_preproc=no | |
21691 | fi | |
21692 | rm -f conftest.err conftest.$ac_ext | |
21693 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21694 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21695 | ||
21696 | # So? What about this header? | |
32ddf007 VS |
21697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21698 | yes:no: ) | |
e6cc62c6 VS |
21699 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21700 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
21701 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
21702 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
21703 | ac_header_preproc=yes | |
e6cc62c6 | 21704 | ;; |
32ddf007 | 21705 | no:yes:* ) |
e6cc62c6 VS |
21706 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
21707 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
21708 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
21709 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
21710 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
21711 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
21712 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21713 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
21714 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
21715 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
21716 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
21717 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
21718 | ( |
21719 | cat <<\_ASBOX | |
32ddf007 VS |
21720 | ## ----------------------------------------- ## |
21721 | ## Report this to wx-dev@lists.wxwindows.org ## | |
21722 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
21723 | _ASBOX |
21724 | ) | | |
21725 | sed "s/^/$as_me: WARNING: /" >&2 | |
21726 | ;; | |
21727 | esac | |
21728 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
21729 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
21730 | if test "${ac_cv_header_windows_h+set}" = set; then | |
21731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21732 | else | |
21733 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 21734 | fi |
e6cc62c6 VS |
21735 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
21736 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21737 | ||
90dd450c | 21738 | fi |
e6cc62c6 | 21739 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 21740 | : |
90dd450c | 21741 | else |
21d1c967 | 21742 | |
e6cc62c6 VS |
21743 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
21744 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
21745 | { (exit 1); exit 1; }; } | |
21746 | ||
5c6fa7d2 | 21747 | fi |
7b4a847f | 21748 | |
5c6fa7d2 | 21749 | |
e6cc62c6 | 21750 | |
b3dfbbc9 | 21751 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 21752 | |
7bb2947d MB |
21753 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
21754 | LIBS="$LIBS -loleacc" | |
21755 | fi | |
21756 | ||
21d1c967 GD |
21757 | case "${host}" in |
21758 | *-*-cygwin* ) | |
b3dfbbc9 | 21759 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 21760 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 21761 | esac |
f79bd02d | 21762 | |
8647bec6 RG |
21763 | if test "$wxUSE_ODBC" = "sys" ; then |
21764 | wxUSE_ODBC = "yes" | |
21d1c967 | 21765 | fi |
8647bec6 RG |
21766 | if test "$wxUSE_ODBC" = "yes" ; then |
21767 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 21768 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 21769 | #define wxUSE_ODBC 1 |
e6cc62c6 | 21770 | _ACEOF |
f79bd02d | 21771 | |
8647bec6 | 21772 | fi |
e6cc62c6 | 21773 | |
21d1c967 GD |
21774 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
21775 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
21776 | |
21777 | WIN32INSTALL=win32install | |
f79bd02d | 21778 | fi |
f79bd02d | 21779 | |
21d1c967 GD |
21780 | if test "$wxUSE_GUI" = "yes"; then |
21781 | USE_GUI=1 | |
f79bd02d | 21782 | |
21d1c967 | 21783 | GUI_TK_LIBRARY= |
f79bd02d | 21784 | |
21d1c967 GD |
21785 | WXGTK12= |
21786 | WXGTK127= | |
21787 | WXGTK20= | |
0f87e84c | 21788 | WXGPE= |
f79bd02d | 21789 | |
21d1c967 GD |
21790 | if test "$wxUSE_MSW" = 1 ; then |
21791 | TOOLKIT=MSW | |
21792 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
21793 | |
21794 | case "${host}" in | |
21795 | *-*-mingw32* ) | |
21796 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
21797 | esac | |
f79bd02d JS |
21798 | fi |
21799 | ||
21d1c967 | 21800 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
21801 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
21802 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
21803 | |
21804 | gtk_version_cached=1 | |
e6cc62c6 VS |
21805 | if test "${wx_cv_lib_gtk+set}" = set; then |
21806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 21807 | else |
e6cc62c6 | 21808 | |
21d1c967 | 21809 | gtk_version_cached=0 |
e6cc62c6 VS |
21810 | echo "$as_me:$LINENO: result: " >&5 |
21811 | echo "${ECHO_T}" >&6 | |
f79bd02d | 21812 | |
21d1c967 GD |
21813 | GTK_MODULES= |
21814 | if test "$wxUSE_THREADS" = "yes"; then | |
21815 | GTK_MODULES=gthread | |
21816 | fi | |
f79bd02d | 21817 | |
2b5f62a0 | 21818 | wx_cv_lib_gtk= |
21d1c967 GD |
21819 | if test "x$wxUSE_GTK2" = "xyes"; then |
21820 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21821 | if test "${enable_gtktest+set}" = set; then | |
21822 | enableval="$enable_gtktest" | |
e6cc62c6 | 21823 | |
f79bd02d | 21824 | else |
21d1c967 | 21825 | enable_gtktest=yes |
e6cc62c6 | 21826 | fi; |
f79bd02d | 21827 | |
21d1c967 GD |
21828 | pkg_config_args=gtk+-2.0 |
21829 | for module in . $GTK_MODULES | |
21830 | do | |
21831 | case "$module" in | |
e6cc62c6 | 21832 | gthread) |
21d1c967 GD |
21833 | pkg_config_args="$pkg_config_args gthread-2.0" |
21834 | ;; | |
21835 | esac | |
21836 | done | |
21837 | ||
21838 | no_gtk="" | |
f79bd02d | 21839 | |
21d1c967 GD |
21840 | # Extract the first word of "pkg-config", so it can be a program name with args. |
21841 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21842 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21844 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21846 | else |
e6cc62c6 VS |
21847 | case $PKG_CONFIG in |
21848 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
21849 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21850 | ;; | |
21d1c967 | 21851 | *) |
e6cc62c6 VS |
21852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21853 | for as_dir in $PATH | |
21854 | do | |
21855 | IFS=$as_save_IFS | |
21856 | test -z "$as_dir" && as_dir=. | |
21857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21859 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21861 | break 2 | |
21862 | fi | |
21863 | done | |
21864 | done | |
21865 | ||
21d1c967 GD |
21866 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21867 | ;; | |
21868 | esac | |
f79bd02d | 21869 | fi |
e6cc62c6 VS |
21870 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21871 | ||
21d1c967 | 21872 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21873 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21874 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 21875 | else |
e6cc62c6 VS |
21876 | echo "$as_me:$LINENO: result: no" >&5 |
21877 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
21878 | fi |
21879 | ||
8284b0c5 | 21880 | |
21d1c967 GD |
21881 | if test x$PKG_CONFIG != xno ; then |
21882 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
21883 | : | |
21884 | else | |
21885 | echo *** pkg-config too old; version 0.7 or better required. | |
21886 | no_gtk=yes | |
21887 | PKG_CONFIG=no | |
21888 | fi | |
21889 | else | |
21890 | no_gtk=yes | |
21891 | fi | |
f79bd02d | 21892 | |
21d1c967 | 21893 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
21894 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
21895 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 21896 | |
21d1c967 GD |
21897 | if test x$PKG_CONFIG != xno ; then |
21898 | ## don't try to run the test against uninstalled libtool libs | |
21899 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
21900 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
21901 | enable_gtktest=no | |
21902 | fi | |
f79bd02d | 21903 | |
21d1c967 GD |
21904 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
21905 | : | |
21906 | else | |
21907 | no_gtk=yes | |
21908 | fi | |
21909 | fi | |
f79bd02d | 21910 | |
21d1c967 GD |
21911 | if test x"$no_gtk" = x ; then |
21912 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
21913 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
21914 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21916 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21918 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
21919 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21920 | if test "x$enable_gtktest" = "xyes" ; then | |
21921 | ac_save_CFLAGS="$CFLAGS" | |
21922 | ac_save_LIBS="$LIBS" | |
21923 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21924 | LIBS="$GTK_LIBS $LIBS" | |
21925 | rm -f conf.gtktest | |
21926 | if test "$cross_compiling" = yes; then | |
21927 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 21928 | else |
e6cc62c6 | 21929 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
21930 | /* confdefs.h. */ |
21931 | _ACEOF | |
21932 | cat confdefs.h >>conftest.$ac_ext | |
21933 | cat >>conftest.$ac_ext <<_ACEOF | |
21934 | /* end confdefs.h. */ | |
f79bd02d | 21935 | |
21d1c967 GD |
21936 | #include <gtk/gtk.h> |
21937 | #include <stdio.h> | |
21938 | #include <stdlib.h> | |
f79bd02d | 21939 | |
e6cc62c6 | 21940 | int |
21d1c967 GD |
21941 | main () |
21942 | { | |
21943 | int major, minor, micro; | |
21944 | char *tmp_version; | |
f79bd02d | 21945 | |
21d1c967 | 21946 | system ("touch conf.gtktest"); |
f79bd02d | 21947 | |
21d1c967 GD |
21948 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
21949 | tmp_version = g_strdup("$min_gtk_version"); | |
21950 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21951 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21952 | exit(1); | |
21953 | } | |
f79bd02d | 21954 | |
21d1c967 GD |
21955 | if ((gtk_major_version != $gtk_config_major_version) || |
21956 | (gtk_minor_version != $gtk_config_minor_version) || | |
21957 | (gtk_micro_version != $gtk_config_micro_version)) | |
21958 | { | |
e6cc62c6 | 21959 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
21960 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
21961 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21962 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
21963 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21964 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21965 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21966 | printf("*** required on your system.\n"); | |
21967 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
21968 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 21969 | } |
21d1c967 GD |
21970 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
21971 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21972 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21973 | { | |
21974 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21975 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21976 | printf("*** library (version %d.%d.%d)\n", | |
21977 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21978 | } | |
21979 | else | |
21980 | { | |
21981 | if ((gtk_major_version > major) || | |
21982 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21983 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21984 | { | |
21985 | return 0; | |
21986 | } | |
21987 | else | |
21988 | { | |
21989 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21990 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21991 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21992 | major, minor, micro); | |
21993 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21994 | printf("***\n"); | |
21995 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21996 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
21997 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21998 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
21999 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22000 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22001 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22002 | } | |
22003 | } | |
22004 | return 1; | |
22005 | } | |
f79bd02d | 22006 | |
e6cc62c6 VS |
22007 | _ACEOF |
22008 | rm -f conftest$ac_exeext | |
22009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22010 | (eval $ac_link) 2>&5 | |
22011 | ac_status=$? | |
22012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22013 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22015 | (eval $ac_try) 2>&5 | |
22016 | ac_status=$? | |
22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22018 | (exit $ac_status); }; }; then | |
21d1c967 | 22019 | : |
f79bd02d | 22020 | else |
e6cc62c6 VS |
22021 | echo "$as_me: program exited with status $ac_status" >&5 |
22022 | echo "$as_me: failed program was:" >&5 | |
22023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22024 | ||
22025 | ( exit $ac_status ) | |
22026 | no_gtk=yes | |
f79bd02d | 22027 | fi |
32ddf007 | 22028 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 22029 | fi |
21d1c967 GD |
22030 | CFLAGS="$ac_save_CFLAGS" |
22031 | LIBS="$ac_save_LIBS" | |
22032 | fi | |
22033 | fi | |
22034 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22035 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
22036 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22037 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 22038 | else |
e6cc62c6 VS |
22039 | echo "$as_me:$LINENO: result: no" >&5 |
22040 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22041 | if test "$PKG_CONFIG" = "no" ; then |
22042 | echo "*** A new enough version of pkg-config was not found." | |
22043 | echo "*** See http://pkgconfig.sourceforge.net" | |
22044 | else | |
22045 | if test -f conf.gtktest ; then | |
22046 | : | |
22047 | else | |
22048 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
22049 | ac_save_CFLAGS="$CFLAGS" |
22050 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
22051 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
22052 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22053 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22054 | /* confdefs.h. */ |
22055 | _ACEOF | |
22056 | cat confdefs.h >>conftest.$ac_ext | |
22057 | cat >>conftest.$ac_ext <<_ACEOF | |
22058 | /* end confdefs.h. */ | |
21d1c967 GD |
22059 | |
22060 | #include <gtk/gtk.h> | |
22061 | #include <stdio.h> | |
f79bd02d | 22062 | |
e6cc62c6 VS |
22063 | int |
22064 | main () | |
22065 | { | |
22066 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22067 | ; | |
22068 | return 0; | |
22069 | } | |
22070 | _ACEOF | |
22071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22073 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22074 | ac_status=$? |
32ddf007 VS |
22075 | grep -v '^ *+' conftest.er1 >conftest.err |
22076 | rm -f conftest.er1 | |
22077 | cat conftest.err >&5 | |
e6cc62c6 VS |
22078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22079 | (exit $ac_status); } && | |
32ddf007 VS |
22080 | { ac_try='test -z "$ac_c_werror_flag" |
22081 | || test ! -s conftest.err' | |
22082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22083 | (eval $ac_try) 2>&5 | |
22084 | ac_status=$? | |
22085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22086 | (exit $ac_status); }; } && | |
22087 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22089 | (eval $ac_try) 2>&5 | |
22090 | ac_status=$? | |
22091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22092 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22093 | echo "*** The test program compiled, but did not run. This usually means" |
22094 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22095 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22096 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22097 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22098 | echo "*** is required on your system" | |
22099 | echo "***" | |
22100 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 22101 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 22102 | else |
e6cc62c6 VS |
22103 | echo "$as_me: failed program was:" >&5 |
22104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22105 | ||
22106 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 22107 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 22108 | fi |
32ddf007 VS |
22109 | rm -f conftest.err conftest.$ac_objext \ |
22110 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22111 | CFLAGS="$ac_save_CFLAGS" |
22112 | LIBS="$ac_save_LIBS" | |
22113 | fi | |
22114 | fi | |
22115 | GTK_CFLAGS="" | |
22116 | GTK_LIBS="" | |
22117 | : | |
22118 | fi | |
e6cc62c6 VS |
22119 | |
22120 | ||
21d1c967 | 22121 | rm -f conf.gtktest |
f79bd02d | 22122 | |
2b5f62a0 | 22123 | else |
e6cc62c6 VS |
22124 | |
22125 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
22126 | if test "${with_gtk_prefix+set}" = set; then |
22127 | withval="$with_gtk_prefix" | |
22128 | gtk_config_prefix="$withval" | |
22129 | else | |
22130 | gtk_config_prefix="" | |
e6cc62c6 | 22131 | fi; |
f79bd02d | 22132 | |
21d1c967 GD |
22133 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
22134 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22135 | withval="$with_gtk_exec_prefix" | |
22136 | gtk_config_exec_prefix="$withval" | |
22137 | else | |
22138 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22139 | fi; |
21d1c967 GD |
22140 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22141 | if test "${enable_gtktest+set}" = set; then | |
22142 | enableval="$enable_gtktest" | |
e6cc62c6 | 22143 | |
21d1c967 GD |
22144 | else |
22145 | enable_gtktest=yes | |
e6cc62c6 | 22146 | fi; |
21d1c967 GD |
22147 | |
22148 | for module in . $GTK_MODULES | |
22149 | do | |
22150 | case "$module" in | |
e6cc62c6 | 22151 | gthread) |
21d1c967 GD |
22152 | gtk_config_args="$gtk_config_args gthread" |
22153 | ;; | |
22154 | esac | |
22155 | done | |
22156 | ||
22157 | if test x$gtk_config_exec_prefix != x ; then | |
22158 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22159 | if test x${GTK_CONFIG+set} != xset ; then | |
22160 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22161 | fi | |
22162 | fi | |
22163 | if test x$gtk_config_prefix != x ; then | |
22164 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22165 | if test x${GTK_CONFIG+set} != xset ; then | |
22166 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22167 | fi | |
22168 | fi | |
22169 | ||
22170 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22171 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22174 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22176 | else |
e6cc62c6 VS |
22177 | case $GTK_CONFIG in |
22178 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22179 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22180 | ;; | |
21d1c967 | 22181 | *) |
e6cc62c6 VS |
22182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22183 | for as_dir in $PATH | |
22184 | do | |
22185 | IFS=$as_save_IFS | |
22186 | test -z "$as_dir" && as_dir=. | |
22187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22189 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22191 | break 2 | |
22192 | fi | |
22193 | done | |
22194 | done | |
22195 | ||
21d1c967 GD |
22196 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22197 | ;; | |
22198 | esac | |
22199 | fi | |
e6cc62c6 VS |
22200 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22201 | ||
21d1c967 | 22202 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22203 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22204 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22205 | else |
e6cc62c6 VS |
22206 | echo "$as_me:$LINENO: result: no" >&5 |
22207 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22208 | fi |
22209 | ||
22210 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
22211 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22212 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22213 | no_gtk="" |
22214 | if test "$GTK_CONFIG" = "no" ; then | |
22215 | no_gtk=yes | |
22216 | else | |
22217 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22218 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22219 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22220 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22221 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22222 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22223 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22224 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22225 | if test "x$enable_gtktest" = "xyes" ; then | |
22226 | ac_save_CFLAGS="$CFLAGS" | |
22227 | ac_save_LIBS="$LIBS" | |
22228 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22229 | LIBS="$GTK_LIBS $LIBS" | |
22230 | rm -f conf.gtktest | |
22231 | if test "$cross_compiling" = yes; then | |
22232 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 22233 | else |
e6cc62c6 | 22234 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22235 | /* confdefs.h. */ |
22236 | _ACEOF | |
22237 | cat confdefs.h >>conftest.$ac_ext | |
22238 | cat >>conftest.$ac_ext <<_ACEOF | |
22239 | /* end confdefs.h. */ | |
f79bd02d | 22240 | |
21d1c967 GD |
22241 | #include <gtk/gtk.h> |
22242 | #include <stdio.h> | |
22243 | #include <stdlib.h> | |
f79bd02d | 22244 | |
e6cc62c6 | 22245 | int |
21d1c967 GD |
22246 | main () |
22247 | { | |
22248 | int major, minor, micro; | |
22249 | char *tmp_version; | |
22250 | ||
22251 | system ("touch conf.gtktest"); | |
22252 | ||
22253 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22254 | tmp_version = g_strdup("$min_gtk_version"); | |
22255 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22256 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22257 | exit(1); | |
22258 | } | |
90dd450c | 22259 | |
21d1c967 GD |
22260 | if ((gtk_major_version != $gtk_config_major_version) || |
22261 | (gtk_minor_version != $gtk_config_minor_version) || | |
22262 | (gtk_micro_version != $gtk_config_micro_version)) | |
22263 | { | |
e6cc62c6 | 22264 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22265 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22266 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22267 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22268 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22269 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22270 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22271 | printf("*** required on your system.\n"); | |
22272 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22273 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22274 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22275 | } |
21d1c967 GD |
22276 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22277 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22278 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22279 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22280 | { | |
22281 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22282 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22283 | printf("*** library (version %d.%d.%d)\n", | |
22284 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22285 | } | |
22286 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22287 | else | |
22288 | { | |
22289 | if ((gtk_major_version > major) || | |
22290 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22291 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22292 | { | |
22293 | return 0; | |
22294 | } | |
22295 | else | |
22296 | { | |
22297 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22298 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22299 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22300 | major, minor, micro); | |
22301 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22302 | printf("***\n"); | |
22303 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22304 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22305 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22306 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22307 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22308 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22309 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22310 | } | |
22311 | } | |
22312 | return 1; | |
22313 | } | |
22314 | ||
e6cc62c6 VS |
22315 | _ACEOF |
22316 | rm -f conftest$ac_exeext | |
22317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22318 | (eval $ac_link) 2>&5 | |
22319 | ac_status=$? | |
22320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22323 | (eval $ac_try) 2>&5 | |
22324 | ac_status=$? | |
22325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22326 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22327 | : |
22328 | else | |
e6cc62c6 VS |
22329 | echo "$as_me: program exited with status $ac_status" >&5 |
22330 | echo "$as_me: failed program was:" >&5 | |
22331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22332 | ||
22333 | ( exit $ac_status ) | |
22334 | no_gtk=yes | |
21d1c967 | 22335 | fi |
32ddf007 | 22336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22337 | fi |
21d1c967 GD |
22338 | CFLAGS="$ac_save_CFLAGS" |
22339 | LIBS="$ac_save_LIBS" | |
22340 | fi | |
22341 | fi | |
22342 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22343 | echo "$as_me:$LINENO: result: yes" >&5 |
22344 | echo "${ECHO_T}yes" >&6 | |
22345 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 22346 | else |
e6cc62c6 VS |
22347 | echo "$as_me:$LINENO: result: no" >&5 |
22348 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22349 | if test "$GTK_CONFIG" = "no" ; then |
22350 | echo "*** The gtk-config script installed by GTK could not be found" | |
22351 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22352 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22353 | echo "*** full path to gtk-config." | |
22354 | else | |
22355 | if test -f conf.gtktest ; then | |
22356 | : | |
22357 | else | |
22358 | echo "*** Could not run GTK test program, checking why..." | |
22359 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22360 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22361 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22362 | /* confdefs.h. */ |
22363 | _ACEOF | |
22364 | cat confdefs.h >>conftest.$ac_ext | |
22365 | cat >>conftest.$ac_ext <<_ACEOF | |
22366 | /* end confdefs.h. */ | |
21d1c967 GD |
22367 | |
22368 | #include <gtk/gtk.h> | |
22369 | #include <stdio.h> | |
22370 | ||
e6cc62c6 VS |
22371 | int |
22372 | main () | |
22373 | { | |
22374 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22375 | ; | |
22376 | return 0; | |
22377 | } | |
22378 | _ACEOF | |
22379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22381 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22382 | ac_status=$? |
32ddf007 VS |
22383 | grep -v '^ *+' conftest.er1 >conftest.err |
22384 | rm -f conftest.er1 | |
22385 | cat conftest.err >&5 | |
e6cc62c6 VS |
22386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22387 | (exit $ac_status); } && | |
32ddf007 VS |
22388 | { ac_try='test -z "$ac_c_werror_flag" |
22389 | || test ! -s conftest.err' | |
22390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22391 | (eval $ac_try) 2>&5 | |
22392 | ac_status=$? | |
22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22394 | (exit $ac_status); }; } && | |
22395 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22397 | (eval $ac_try) 2>&5 | |
22398 | ac_status=$? | |
22399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22400 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22401 | echo "*** The test program compiled, but did not run. This usually means" |
22402 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22403 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22404 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22405 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22406 | echo "*** is required on your system" | |
22407 | echo "***" | |
22408 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22409 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22410 | echo "***" | |
22411 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22412 | echo "*** came with the system with the command" | |
22413 | echo "***" | |
e6cc62c6 | 22414 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22415 | else |
e6cc62c6 VS |
22416 | echo "$as_me: failed program was:" >&5 |
22417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22418 | ||
22419 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22420 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22421 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22422 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22423 | fi |
32ddf007 VS |
22424 | rm -f conftest.err conftest.$ac_objext \ |
22425 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22426 | CFLAGS="$ac_save_CFLAGS" |
22427 | LIBS="$ac_save_LIBS" | |
22428 | fi | |
22429 | fi | |
22430 | GTK_CFLAGS="" | |
22431 | GTK_LIBS="" | |
22432 | : | |
22433 | fi | |
e6cc62c6 VS |
22434 | |
22435 | ||
21d1c967 GD |
22436 | rm -f conf.gtktest |
22437 | ||
21d1c967 | 22438 | |
2b5f62a0 | 22439 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
22440 | |
22441 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
22442 | if test "${with_gtk_prefix+set}" = set; then |
22443 | withval="$with_gtk_prefix" | |
22444 | gtk_config_prefix="$withval" | |
22445 | else | |
22446 | gtk_config_prefix="" | |
e6cc62c6 | 22447 | fi; |
f79bd02d | 22448 | |
21d1c967 GD |
22449 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
22450 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22451 | withval="$with_gtk_exec_prefix" | |
22452 | gtk_config_exec_prefix="$withval" | |
22453 | else | |
22454 | gtk_config_exec_prefix="" | |
e6cc62c6 | 22455 | fi; |
21d1c967 GD |
22456 | # Check whether --enable-gtktest or --disable-gtktest was given. |
22457 | if test "${enable_gtktest+set}" = set; then | |
22458 | enableval="$enable_gtktest" | |
e6cc62c6 | 22459 | |
90dd450c | 22460 | else |
21d1c967 | 22461 | enable_gtktest=yes |
e6cc62c6 | 22462 | fi; |
21d1c967 GD |
22463 | |
22464 | for module in . $GTK_MODULES | |
22465 | do | |
22466 | case "$module" in | |
e6cc62c6 | 22467 | gthread) |
21d1c967 GD |
22468 | gtk_config_args="$gtk_config_args gthread" |
22469 | ;; | |
22470 | esac | |
22471 | done | |
22472 | ||
22473 | if test x$gtk_config_exec_prefix != x ; then | |
22474 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22475 | if test x${GTK_CONFIG+set} != xset ; then | |
22476 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22477 | fi | |
22478 | fi | |
22479 | if test x$gtk_config_prefix != x ; then | |
22480 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22481 | if test x${GTK_CONFIG+set} != xset ; then | |
22482 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22483 | fi | |
22484 | fi | |
22485 | ||
22486 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22487 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
22488 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22490 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22492 | else |
e6cc62c6 VS |
22493 | case $GTK_CONFIG in |
22494 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
22495 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
22496 | ;; | |
21d1c967 | 22497 | *) |
e6cc62c6 VS |
22498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22499 | for as_dir in $PATH | |
22500 | do | |
22501 | IFS=$as_save_IFS | |
22502 | test -z "$as_dir" && as_dir=. | |
22503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22505 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22507 | break 2 | |
22508 | fi | |
22509 | done | |
22510 | done | |
22511 | ||
21d1c967 GD |
22512 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
22513 | ;; | |
22514 | esac | |
22515 | fi | |
e6cc62c6 VS |
22516 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
22517 | ||
21d1c967 | 22518 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
22519 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
22520 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 22521 | else |
e6cc62c6 VS |
22522 | echo "$as_me:$LINENO: result: no" >&5 |
22523 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22524 | fi |
22525 | ||
22526 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
22527 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
22528 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
22529 | no_gtk="" |
22530 | if test "$GTK_CONFIG" = "no" ; then | |
22531 | no_gtk=yes | |
22532 | else | |
22533 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22534 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22535 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22536 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22537 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22538 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22539 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22540 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22541 | if test "x$enable_gtktest" = "xyes" ; then | |
22542 | ac_save_CFLAGS="$CFLAGS" | |
22543 | ac_save_LIBS="$LIBS" | |
22544 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22545 | LIBS="$GTK_LIBS $LIBS" | |
22546 | rm -f conf.gtktest | |
22547 | if test "$cross_compiling" = yes; then | |
22548 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22549 | else | |
e6cc62c6 | 22550 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22551 | /* confdefs.h. */ |
22552 | _ACEOF | |
22553 | cat confdefs.h >>conftest.$ac_ext | |
22554 | cat >>conftest.$ac_ext <<_ACEOF | |
22555 | /* end confdefs.h. */ | |
21d1c967 GD |
22556 | |
22557 | #include <gtk/gtk.h> | |
22558 | #include <stdio.h> | |
22559 | #include <stdlib.h> | |
22560 | ||
e6cc62c6 | 22561 | int |
21d1c967 GD |
22562 | main () |
22563 | { | |
22564 | int major, minor, micro; | |
22565 | char *tmp_version; | |
22566 | ||
22567 | system ("touch conf.gtktest"); | |
22568 | ||
22569 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22570 | tmp_version = g_strdup("$min_gtk_version"); | |
22571 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22572 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22573 | exit(1); | |
22574 | } | |
22575 | ||
22576 | if ((gtk_major_version != $gtk_config_major_version) || | |
22577 | (gtk_minor_version != $gtk_config_minor_version) || | |
22578 | (gtk_micro_version != $gtk_config_micro_version)) | |
22579 | { | |
e6cc62c6 | 22580 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
22581 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
22582 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22583 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22584 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22585 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22586 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22587 | printf("*** required on your system.\n"); | |
22588 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22589 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22590 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 22591 | } |
21d1c967 GD |
22592 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
22593 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22594 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22595 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22596 | { | |
22597 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22598 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22599 | printf("*** library (version %d.%d.%d)\n", | |
22600 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22601 | } | |
22602 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22603 | else | |
22604 | { | |
22605 | if ((gtk_major_version > major) || | |
22606 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22607 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22608 | { | |
22609 | return 0; | |
22610 | } | |
22611 | else | |
22612 | { | |
22613 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22614 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22615 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22616 | major, minor, micro); | |
22617 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22618 | printf("***\n"); | |
22619 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22620 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22621 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22622 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22623 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22624 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22625 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22626 | } | |
22627 | } | |
22628 | return 1; | |
22629 | } | |
22630 | ||
e6cc62c6 VS |
22631 | _ACEOF |
22632 | rm -f conftest$ac_exeext | |
22633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22634 | (eval $ac_link) 2>&5 | |
22635 | ac_status=$? | |
22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22637 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22639 | (eval $ac_try) 2>&5 | |
22640 | ac_status=$? | |
22641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22642 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22643 | : |
22644 | else | |
e6cc62c6 VS |
22645 | echo "$as_me: program exited with status $ac_status" >&5 |
22646 | echo "$as_me: failed program was:" >&5 | |
22647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22648 | ||
22649 | ( exit $ac_status ) | |
22650 | no_gtk=yes | |
21d1c967 | 22651 | fi |
32ddf007 | 22652 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22653 | fi |
21d1c967 GD |
22654 | CFLAGS="$ac_save_CFLAGS" |
22655 | LIBS="$ac_save_LIBS" | |
22656 | fi | |
22657 | fi | |
22658 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
22659 | echo "$as_me:$LINENO: result: yes" >&5 |
22660 | echo "${ECHO_T}yes" >&6 | |
22661 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 22662 | else |
e6cc62c6 VS |
22663 | echo "$as_me:$LINENO: result: no" >&5 |
22664 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22665 | if test "$GTK_CONFIG" = "no" ; then |
22666 | echo "*** The gtk-config script installed by GTK could not be found" | |
22667 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22668 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22669 | echo "*** full path to gtk-config." | |
22670 | else | |
22671 | if test -f conf.gtktest ; then | |
22672 | : | |
22673 | else | |
22674 | echo "*** Could not run GTK test program, checking why..." | |
22675 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22676 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 22677 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
22678 | /* confdefs.h. */ |
22679 | _ACEOF | |
22680 | cat confdefs.h >>conftest.$ac_ext | |
22681 | cat >>conftest.$ac_ext <<_ACEOF | |
22682 | /* end confdefs.h. */ | |
21d1c967 GD |
22683 | |
22684 | #include <gtk/gtk.h> | |
22685 | #include <stdio.h> | |
f79bd02d | 22686 | |
e6cc62c6 VS |
22687 | int |
22688 | main () | |
22689 | { | |
22690 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22691 | ; | |
22692 | return 0; | |
22693 | } | |
22694 | _ACEOF | |
22695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22697 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22698 | ac_status=$? |
32ddf007 VS |
22699 | grep -v '^ *+' conftest.er1 >conftest.err |
22700 | rm -f conftest.er1 | |
22701 | cat conftest.err >&5 | |
e6cc62c6 VS |
22702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22703 | (exit $ac_status); } && | |
32ddf007 VS |
22704 | { ac_try='test -z "$ac_c_werror_flag" |
22705 | || test ! -s conftest.err' | |
22706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22707 | (eval $ac_try) 2>&5 | |
22708 | ac_status=$? | |
22709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22710 | (exit $ac_status); }; } && | |
22711 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22713 | (eval $ac_try) 2>&5 | |
22714 | ac_status=$? | |
22715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22716 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22717 | echo "*** The test program compiled, but did not run. This usually means" |
22718 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
22719 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
22720 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22721 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22722 | echo "*** is required on your system" | |
22723 | echo "***" | |
22724 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22725 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22726 | echo "***" | |
22727 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
22728 | echo "*** came with the system with the command" | |
22729 | echo "***" | |
e6cc62c6 | 22730 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 22731 | else |
e6cc62c6 VS |
22732 | echo "$as_me: failed program was:" >&5 |
22733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22734 | ||
22735 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
22736 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
22737 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 22738 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 22739 | fi |
32ddf007 VS |
22740 | rm -f conftest.err conftest.$ac_objext \ |
22741 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 GD |
22742 | CFLAGS="$ac_save_CFLAGS" |
22743 | LIBS="$ac_save_LIBS" | |
22744 | fi | |
22745 | fi | |
22746 | GTK_CFLAGS="" | |
22747 | GTK_LIBS="" | |
22748 | : | |
22749 | fi | |
e6cc62c6 VS |
22750 | |
22751 | ||
21d1c967 | 22752 | rm -f conf.gtktest |
f79bd02d | 22753 | |
2b5f62a0 | 22754 | fi |
21d1c967 GD |
22755 | fi |
22756 | ||
22757 | if test -z "$wx_cv_lib_gtk"; then | |
22758 | wx_cv_lib_gtk=none | |
22759 | else | |
22760 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
22761 | wx_cv_libs_gtk=$GTK_LIBS | |
22762 | fi | |
e6cc62c6 VS |
22763 | |
22764 | ||
5c6fa7d2 | 22765 | fi |
52127426 | 22766 | |
8284b0c5 | 22767 | |
21d1c967 | 22768 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
22769 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
22770 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
22771 | fi |
22772 | ||
22773 | case "$wx_cv_lib_gtk" in | |
22774 | 2.0) WXGTK20=1 | |
2b5f62a0 | 22775 | TOOLKIT_VERSION=2 |
21d1c967 GD |
22776 | ;; |
22777 | 1.2.7) WXGTK127=1 | |
22778 | WXGTK12=1 | |
22779 | ;; | |
22780 | 1.2.3) WXGTK12=1 | |
22781 | ;; | |
e6cc62c6 VS |
22782 | *) { { echo "$as_me:$LINENO: error: |
22783 | Please check that gtk-config is in path, the directory | |
22784 | where GTK+ libraries are installed (returned by | |
22785 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22786 | equivalent variable and GTK+ is version 1.2.3 or above. | |
22787 | " >&5 | |
22788 | echo "$as_me: error: | |
247f5006 VZ |
22789 | Please check that gtk-config is in path, the directory |
22790 | where GTK+ libraries are installed (returned by | |
22791 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
22792 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
22793 | " >&2;} |
22794 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22795 | ;; |
22796 | esac | |
22797 | ||
b13cd66e VZ |
22798 | if test "$WXGTK20" = 1; then |
22799 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 22800 | |
f09359cf VS |
22801 | succeeded=no |
22802 | ||
22803 | if test -z "$PKG_CONFIG"; then | |
22804 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22805 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22806 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22808 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 22810 | else |
e6cc62c6 VS |
22811 | case $PKG_CONFIG in |
22812 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
22813 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22814 | ;; | |
f09359cf | 22815 | *) |
e6cc62c6 VS |
22816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22817 | for as_dir in $PATH | |
22818 | do | |
22819 | IFS=$as_save_IFS | |
22820 | test -z "$as_dir" && as_dir=. | |
22821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22823 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22825 | break 2 | |
22826 | fi | |
22827 | done | |
22828 | done | |
22829 | ||
f09359cf VS |
22830 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22831 | ;; | |
22832 | esac | |
22833 | fi | |
e6cc62c6 VS |
22834 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22835 | ||
f09359cf | 22836 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22837 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22838 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 22839 | else |
e6cc62c6 VS |
22840 | echo "$as_me:$LINENO: result: no" >&5 |
22841 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
22842 | fi |
22843 | ||
22844 | fi | |
22845 | ||
22846 | if test "$PKG_CONFIG" = "no" ; then | |
22847 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22848 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22849 | echo "*** to the full path to pkg-config." | |
22850 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22851 | else | |
22852 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22853 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22854 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22855 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
22856 | |
22857 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22858 | echo "$as_me:$LINENO: result: yes" >&5 |
22859 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
22860 | succeeded=yes |
22861 | ||
e6cc62c6 VS |
22862 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22863 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 22864 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22865 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22866 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 22867 | |
e6cc62c6 VS |
22868 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22869 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 22870 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22871 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22872 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
22873 | else |
22874 | PANGOFT2_CFLAGS="" | |
22875 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22876 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
22877 | ## do set a variable so people can do so. |
22878 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22879 | |
f09359cf VS |
22880 | fi |
22881 | ||
e6cc62c6 VS |
22882 | |
22883 | ||
f09359cf VS |
22884 | else |
22885 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22886 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22887 | fi | |
22888 | fi | |
22889 | ||
22890 | if test $succeeded = yes; then | |
e6cc62c6 | 22891 | |
b13cd66e | 22892 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22893 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22894 | |
f09359cf | 22895 | else |
e6cc62c6 VS |
22896 | |
22897 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22898 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 22899 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22900 | |
22901 | ||
f09359cf VS |
22902 | fi |
22903 | ||
b13cd66e | 22904 | fi |
2b5f62a0 VZ |
22905 | else |
22906 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
22907 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
22908 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
22909 | wxUSE_UNICODE=no |
22910 | fi | |
22911 | fi | |
22912 | ||
22913 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
22914 | |
22915 | for ac_func in poll | |
2b5f62a0 | 22916 | do |
e6cc62c6 VS |
22917 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22918 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22919 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22920 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22922 | else | |
22923 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
22924 | /* confdefs.h. */ |
22925 | _ACEOF | |
22926 | cat confdefs.h >>conftest.$ac_ext | |
22927 | cat >>conftest.$ac_ext <<_ACEOF | |
22928 | /* end confdefs.h. */ | |
32ddf007 VS |
22929 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22930 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22931 | #define $ac_func innocuous_$ac_func | |
22932 | ||
2b5f62a0 | 22933 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22934 | which can conflict with char $ac_func (); below. |
22935 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22936 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 22937 | |
e6cc62c6 VS |
22938 | #ifdef __STDC__ |
22939 | # include <limits.h> | |
22940 | #else | |
22941 | # include <assert.h> | |
22942 | #endif | |
32ddf007 VS |
22943 | |
22944 | #undef $ac_func | |
22945 | ||
2b5f62a0 | 22946 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22947 | #ifdef __cplusplus |
22948 | extern "C" | |
22949 | { | |
22950 | #endif | |
2b5f62a0 | 22951 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22952 | builtin and then its argument prototype would still apply. */ |
22953 | char $ac_func (); | |
2b5f62a0 VZ |
22954 | /* The GNU C library defines this for functions which it implements |
22955 | to always fail with ENOSYS. Some functions are actually named | |
22956 | something starting with __ and the normal name is an alias. */ | |
22957 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22958 | choke me | |
22959 | #else | |
e6cc62c6 VS |
22960 | char (*f) () = $ac_func; |
22961 | #endif | |
22962 | #ifdef __cplusplus | |
22963 | } | |
2b5f62a0 VZ |
22964 | #endif |
22965 | ||
e6cc62c6 VS |
22966 | int |
22967 | main () | |
22968 | { | |
22969 | return f != $ac_func; | |
22970 | ; | |
22971 | return 0; | |
22972 | } | |
22973 | _ACEOF | |
22974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 22976 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 22977 | ac_status=$? |
32ddf007 VS |
22978 | grep -v '^ *+' conftest.er1 >conftest.err |
22979 | rm -f conftest.er1 | |
22980 | cat conftest.err >&5 | |
e6cc62c6 VS |
22981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22982 | (exit $ac_status); } && | |
32ddf007 VS |
22983 | { ac_try='test -z "$ac_c_werror_flag" |
22984 | || test ! -s conftest.err' | |
22985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22986 | (eval $ac_try) 2>&5 | |
22987 | ac_status=$? | |
22988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22989 | (exit $ac_status); }; } && | |
22990 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
22991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22992 | (eval $ac_try) 2>&5 | |
22993 | ac_status=$? | |
22994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22995 | (exit $ac_status); }; }; then | |
22996 | eval "$as_ac_var=yes" | |
22997 | else | |
22998 | echo "$as_me: failed program was:" >&5 | |
22999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23000 | ||
23001 | eval "$as_ac_var=no" | |
23002 | fi | |
32ddf007 VS |
23003 | rm -f conftest.err conftest.$ac_objext \ |
23004 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23005 | fi |
23006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23007 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23008 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23009 | cat >>confdefs.h <<_ACEOF | |
23010 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23011 | _ACEOF | |
2b5f62a0 | 23012 | |
2b5f62a0 VZ |
23013 | fi |
23014 | done | |
23015 | ||
f09359cf VS |
23016 | fi |
23017 | ||
21d1c967 | 23018 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 23019 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
23020 | |
23021 | AFMINSTALL=afminstall | |
23022 | TOOLKIT=GTK | |
23023 | GUIDIST=GTK_DIST | |
23024 | ||
e6cc62c6 VS |
23025 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
23026 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23027 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23029 | else |
e6cc62c6 | 23030 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23031 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 23032 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23033 | /* confdefs.h. */ |
23034 | _ACEOF | |
23035 | cat confdefs.h >>conftest.$ac_ext | |
23036 | cat >>conftest.$ac_ext <<_ACEOF | |
23037 | /* end confdefs.h. */ | |
23038 | ||
5c6fa7d2 | 23039 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23040 | #ifdef __cplusplus |
23041 | extern "C" | |
23042 | #endif | |
5c6fa7d2 | 23043 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23044 | builtin and then its argument prototype would still apply. */ |
23045 | char gdk_im_open (); | |
23046 | int | |
23047 | main () | |
23048 | { | |
23049 | gdk_im_open (); | |
23050 | ; | |
23051 | return 0; | |
23052 | } | |
23053 | _ACEOF | |
23054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23056 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23057 | ac_status=$? |
32ddf007 VS |
23058 | grep -v '^ *+' conftest.er1 >conftest.err |
23059 | rm -f conftest.er1 | |
23060 | cat conftest.err >&5 | |
e6cc62c6 VS |
23061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23062 | (exit $ac_status); } && | |
32ddf007 VS |
23063 | { ac_try='test -z "$ac_c_werror_flag" |
23064 | || test ! -s conftest.err' | |
23065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23066 | (eval $ac_try) 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' | |
e6cc62c6 VS |
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 | |
23076 | ac_cv_lib_gdk_gdk_im_open=yes | |
23077 | else | |
23078 | echo "$as_me: failed program was:" >&5 | |
23079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23080 | ||
23081 | ac_cv_lib_gdk_gdk_im_open=no | |
23082 | fi | |
32ddf007 VS |
23083 | rm -f conftest.err conftest.$ac_objext \ |
23084 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23085 | LIBS=$ac_check_lib_save_LIBS |
23086 | fi | |
23087 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23088 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23089 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23090 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23091 | #define HAVE_XIM 1 |
e6cc62c6 | 23092 | _ACEOF |
21d1c967 | 23093 | |
90dd450c | 23094 | fi |
1e6feb95 | 23095 | |
0f87e84c RR |
23096 | |
23097 | ||
23098 | if test "$wxUSE_GPE" = "yes"; then | |
23099 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23100 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23101 | ||
23102 | ac_find_libraries= | |
23103 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23104 | do | |
23105 | for ac_extension in a so sl dylib; do | |
23106 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23107 | ac_find_libraries=$ac_dir | |
23108 | break 2 | |
23109 | fi | |
23110 | done | |
23111 | done | |
23112 | ||
23113 | if test "$ac_find_libraries" != "" ; then | |
23114 | ||
23115 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23116 | result=$? | |
23117 | if test $result = 0; then | |
23118 | ac_path_to_link="" | |
23119 | else | |
23120 | ac_path_to_link=" -L$ac_find_libraries" | |
23121 | fi | |
23122 | ||
23123 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23124 | WXGPE=1 | |
23125 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23126 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23127 | else | |
23128 | echo "$as_me:$LINENO: result: not found" >&5 | |
23129 | echo "${ECHO_T}not found" >&6 | |
23130 | fi | |
23131 | ||
23132 | fi | |
21d1c967 | 23133 | fi |
1e6feb95 | 23134 | |
21d1c967 | 23135 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
23136 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
23137 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 23138 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
23139 | echo "$as_me:$LINENO: result: not found" >&5 |
23140 | echo "${ECHO_T}not found" >&6 | |
23141 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23142 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23143 | { (exit 1); exit 1; }; } | |
21d1c967 | 23144 | else |
e6cc62c6 VS |
23145 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
23146 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
23147 | fi |
23148 | ||
e6cc62c6 VS |
23149 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
23150 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 23151 | case "${host}" in |
21d1c967 | 23152 | *-*-linux* ) |
e46d2a18 VS |
23153 | if test "x$wxUSE_SHARED" = xyes ; then |
23154 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 23155 | else |
e46d2a18 | 23156 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 23157 | fi |
21d1c967 GD |
23158 | ;; |
23159 | *-pc-msdosdjgpp ) | |
63a76696 | 23160 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
23161 | ;; |
23162 | *) | |
e6cc62c6 VS |
23163 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
23164 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23165 | { (exit 1); exit 1; }; } | |
21d1c967 | 23166 | esac |
1e6feb95 | 23167 | |
21d1c967 | 23168 | mgl_lib_type="" |
63a76696 VS |
23169 | mgl_os="" |
23170 | ||
23171 | for mgl_os_i in $mgl_os_candidates ; do | |
23172 | if test "x$mgl_os" = x ; then | |
23173 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23174 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23175 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23176 | mgl_lib_type=debug | |
23177 | mgl_os=$mgl_os_i | |
23178 | fi | |
23179 | fi | |
23180 | if test "x$mgl_lib_type" = x ; then | |
23181 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23182 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23183 | mgl_lib_type=release | |
23184 | mgl_os=$mgl_os_i | |
23185 | fi | |
23186 | fi | |
21d1c967 | 23187 | fi |
63a76696 | 23188 | done |
2224580a | 23189 | |
63a76696 | 23190 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
23191 | echo "$as_me:$LINENO: result: not found" >&5 |
23192 | echo "${ECHO_T}not found" >&6 | |
23193 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23194 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23195 | { (exit 1); exit 1; }; } | |
63a76696 | 23196 | fi |
e6cc62c6 VS |
23197 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
23198 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 23199 | |
1d1b75ac VZ |
23200 | wxUSE_UNIVERSAL="yes" |
23201 | ||
21d1c967 GD |
23202 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
23203 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23204 | ||
90dd450c | 23205 | AFMINSTALL=afminstall |
21d1c967 GD |
23206 | TOOLKIT=MGL |
23207 | GUIDIST=MGL_DIST | |
23208 | fi | |
dad6c0ea | 23209 | |
21d1c967 | 23210 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
23211 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
23212 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 23213 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
23214 | echo "$as_me:$LINENO: result: not found" >&5 |
23215 | echo "${ECHO_T}not found" >&6 | |
23216 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23217 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23218 | { (exit 1); exit 1; }; } | |
21d1c967 | 23219 | else |
e6cc62c6 VS |
23220 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
23221 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 23222 | fi |
f6bcfd97 | 23223 | |
21d1c967 | 23224 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
23225 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
23226 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 23227 | else |
e6cc62c6 VS |
23228 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
23229 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23230 | { (exit 1); exit 1; }; } | |
90dd450c | 23231 | fi |
0b2effe9 | 23232 | |
21d1c967 GD |
23233 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
23234 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23235 | ||
1d1b75ac VZ |
23236 | wxUSE_UNIVERSAL="yes" |
23237 | ||
21d1c967 GD |
23238 | AFMINSTALL=afminstall |
23239 | TOOLKIT=MICROWIN | |
23240 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
23241 | |
23242 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 23243 | fi |
f6bcfd97 | 23244 | |
21d1c967 | 23245 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
23246 | echo "$as_me:$LINENO: checking for X" >&5 |
23247 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
23248 | ||
d8356fa3 | 23249 | |
21d1c967 GD |
23250 | # Check whether --with-x or --without-x was given. |
23251 | if test "${with_x+set}" = set; then | |
23252 | withval="$with_x" | |
2224580a | 23253 | |
e6cc62c6 | 23254 | fi; |
21d1c967 GD |
23255 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23256 | if test "x$with_x" = xno; then | |
23257 | # The user explicitly disabled X. | |
23258 | have_x=disabled | |
23259 | else | |
23260 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23261 | # Both variables are already set. | |
23262 | have_x=yes | |
23263 | else | |
e6cc62c6 VS |
23264 | if test "${ac_cv_have_x+set}" = set; then |
23265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
23266 | else |
23267 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
23268 | ac_x_includes=no ac_x_libraries=no |
23269 | rm -fr conftest.dir | |
23270 | if mkdir conftest.dir; then | |
23271 | cd conftest.dir | |
21d1c967 | 23272 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 23273 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
23274 | acfindx: |
23275 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 23276 | _ACEOF |
21d1c967 GD |
23277 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
23278 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23279 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23280 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23281 | for ac_extension in a so sl; do | |
23282 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
32ddf007 VS |
23283 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23284 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
23285 | fi |
23286 | done | |
23287 | # Screen out bogus values from the imake configuration. They are | |
23288 | # bogus both because they are the default anyway, and because | |
23289 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 23290 | case $ac_im_incroot in |
21d1c967 | 23291 | /usr/include) ;; |
e6cc62c6 | 23292 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 23293 | esac |
e6cc62c6 | 23294 | case $ac_im_usrlibdir in |
21d1c967 | 23295 | /usr/lib | /lib) ;; |
e6cc62c6 | 23296 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
23297 | esac |
23298 | fi | |
23299 | cd .. | |
e6cc62c6 | 23300 | rm -fr conftest.dir |
21d1c967 | 23301 | fi |
10f2d63a | 23302 | |
e6cc62c6 VS |
23303 | # Standard set of common directories for X headers. |
23304 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23305 | ac_x_header_dirs=' | |
23306 | /usr/X11/include | |
23307 | /usr/X11R6/include | |
23308 | /usr/X11R5/include | |
23309 | /usr/X11R4/include | |
23310 | ||
23311 | /usr/include/X11 | |
23312 | /usr/include/X11R6 | |
23313 | /usr/include/X11R5 | |
23314 | /usr/include/X11R4 | |
23315 | ||
23316 | /usr/local/X11/include | |
23317 | /usr/local/X11R6/include | |
23318 | /usr/local/X11R5/include | |
23319 | /usr/local/X11R4/include | |
23320 | ||
23321 | /usr/local/include/X11 | |
23322 | /usr/local/include/X11R6 | |
23323 | /usr/local/include/X11R5 | |
23324 | /usr/local/include/X11R4 | |
23325 | ||
23326 | /usr/X386/include | |
23327 | /usr/x386/include | |
23328 | /usr/XFree86/include/X11 | |
23329 | ||
23330 | /usr/include | |
23331 | /usr/local/include | |
23332 | /usr/unsupported/include | |
23333 | /usr/athena/include | |
23334 | /usr/local/x11r5/include | |
23335 | /usr/lpp/Xamples/include | |
23336 | ||
23337 | /usr/openwin/include | |
23338 | /usr/openwin/share/include' | |
23339 | ||
23340 | if test "$ac_x_includes" = no; then | |
23341 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 23342 | # First, try using that file with no special directory specified. |
e6cc62c6 | 23343 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23344 | /* confdefs.h. */ |
23345 | _ACEOF | |
23346 | cat confdefs.h >>conftest.$ac_ext | |
23347 | cat >>conftest.$ac_ext <<_ACEOF | |
23348 | /* end confdefs.h. */ | |
23349 | #include <X11/Intrinsic.h> | |
23350 | _ACEOF | |
23351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23353 | ac_status=$? | |
23354 | grep -v '^ *+' conftest.er1 >conftest.err | |
23355 | rm -f conftest.er1 | |
23356 | cat conftest.err >&5 | |
23357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23358 | (exit $ac_status); } >/dev/null; then | |
23359 | if test -s conftest.err; then | |
23360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 23361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
23362 | else |
23363 | ac_cpp_err= | |
23364 | fi | |
23365 | else | |
23366 | ac_cpp_err=yes | |
23367 | fi | |
23368 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
23369 | # We can compile using X headers with no special include directory. |
23370 | ac_x_includes= | |
90dd450c | 23371 | else |
e6cc62c6 VS |
23372 | echo "$as_me: failed program was:" >&5 |
23373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23374 | ||
23375 | for ac_dir in $ac_x_header_dirs; do | |
23376 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
23377 | ac_x_includes=$ac_dir | |
23378 | break | |
23379 | fi | |
23380 | done | |
3a922bb4 | 23381 | fi |
e6cc62c6 VS |
23382 | rm -f conftest.err conftest.$ac_ext |
23383 | fi # $ac_x_includes = no | |
10f2d63a | 23384 | |
e6cc62c6 | 23385 | if test "$ac_x_libraries" = no; then |
21d1c967 | 23386 | # Check for the libraries. |
21d1c967 GD |
23387 | # See if we find them without any special options. |
23388 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
23389 | ac_save_LIBS=$LIBS |
23390 | LIBS="-lXt $LIBS" | |
23391 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23392 | /* confdefs.h. */ |
23393 | _ACEOF | |
23394 | cat confdefs.h >>conftest.$ac_ext | |
23395 | cat >>conftest.$ac_ext <<_ACEOF | |
23396 | /* end confdefs.h. */ | |
23397 | #include <X11/Intrinsic.h> | |
23398 | int | |
23399 | main () | |
23400 | { | |
23401 | XtMalloc (0) | |
23402 | ; | |
23403 | return 0; | |
23404 | } | |
23405 | _ACEOF | |
23406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23408 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23409 | ac_status=$? |
32ddf007 VS |
23410 | grep -v '^ *+' conftest.er1 >conftest.err |
23411 | rm -f conftest.er1 | |
23412 | cat conftest.err >&5 | |
e6cc62c6 VS |
23413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23414 | (exit $ac_status); } && | |
32ddf007 VS |
23415 | { ac_try='test -z "$ac_c_werror_flag" |
23416 | || test ! -s conftest.err' | |
23417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23418 | (eval $ac_try) 2>&5 | |
23419 | ac_status=$? | |
23420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23421 | (exit $ac_status); }; } && | |
23422 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23424 | (eval $ac_try) 2>&5 | |
23425 | ac_status=$? | |
23426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23427 | (exit $ac_status); }; }; then | |
23428 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
23429 | # We can link X programs with no special library path. |
23430 | ac_x_libraries= | |
3a922bb4 | 23431 | else |
e6cc62c6 VS |
23432 | echo "$as_me: failed program was:" >&5 |
23433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23434 | ||
23435 | LIBS=$ac_save_LIBS | |
23436 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 23437 | do |
e6cc62c6 | 23438 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 23439 | for ac_extension in a so sl; do |
e6cc62c6 | 23440 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
23441 | ac_x_libraries=$ac_dir |
23442 | break 2 | |
23443 | fi | |
23444 | done | |
23445 | done | |
3a922bb4 | 23446 | fi |
32ddf007 VS |
23447 | rm -f conftest.err conftest.$ac_objext \ |
23448 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23449 | fi # $ac_x_libraries = no |
90dd450c | 23450 | |
e6cc62c6 | 23451 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
23452 | # Didn't find X anywhere. Cache the known absence of X. |
23453 | ac_cv_have_x="have_x=no" | |
23454 | else | |
23455 | # Record where we found X for the cache. | |
23456 | ac_cv_have_x="have_x=yes \ | |
32ddf007 | 23457 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 23458 | fi |
21d1c967 | 23459 | fi |
e6cc62c6 | 23460 | |
21d1c967 GD |
23461 | fi |
23462 | eval "$ac_cv_have_x" | |
23463 | fi # $with_x != no | |
90dd450c | 23464 | |
21d1c967 | 23465 | if test "$have_x" != yes; then |
e6cc62c6 VS |
23466 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23467 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
23468 | no_x=yes |
23469 | else | |
23470 | # If each of the values was on the command line, it overrides each guess. | |
23471 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23472 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23473 | # Update the cache value to reflect the command line values. | |
23474 | ac_cv_have_x="have_x=yes \ | |
23475 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
23476 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23477 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 23478 | fi |
90dd450c | 23479 | |
21d1c967 | 23480 | if test "$no_x" = yes; then |
90dd450c | 23481 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
23482 | |
23483 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 23484 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 23485 | _ACEOF |
90dd450c VZ |
23486 | |
23487 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23488 | else | |
23489 | if test -n "$x_includes"; then | |
23490 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 23491 | fi |
3a922bb4 | 23492 | |
90dd450c VZ |
23493 | # It would also be nice to do this for all -L options, not just this one. |
23494 | if test -n "$x_libraries"; then | |
23495 | X_LIBS="$X_LIBS -L$x_libraries" | |
23496 | # For Solaris; some versions of Sun CC require a space after -R and | |
23497 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23498 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 23499 | "SunOS 5"*) |
e6cc62c6 VS |
23500 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23501 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23502 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23503 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23504 | /* confdefs.h. */ |
23505 | _ACEOF | |
23506 | cat confdefs.h >>conftest.$ac_ext | |
23507 | cat >>conftest.$ac_ext <<_ACEOF | |
23508 | /* end confdefs.h. */ | |
23509 | ||
23510 | int | |
23511 | main () | |
23512 | { | |
90dd450c | 23513 | |
e6cc62c6 VS |
23514 | ; |
23515 | return 0; | |
23516 | } | |
23517 | _ACEOF | |
23518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23520 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23521 | ac_status=$? |
32ddf007 VS |
23522 | grep -v '^ *+' conftest.er1 >conftest.err |
23523 | rm -f conftest.er1 | |
23524 | cat conftest.err >&5 | |
e6cc62c6 VS |
23525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23526 | (exit $ac_status); } && | |
32ddf007 VS |
23527 | { ac_try='test -z "$ac_c_werror_flag" |
23528 | || test ! -s conftest.err' | |
23529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23530 | (eval $ac_try) 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' | |
e6cc62c6 VS |
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 | |
90dd450c | 23540 | ac_R_nospace=yes |
3a922bb4 | 23541 | else |
e6cc62c6 VS |
23542 | echo "$as_me: failed program was:" >&5 |
23543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23544 | ||
23545 | ac_R_nospace=no | |
3a922bb4 | 23546 | fi |
32ddf007 VS |
23547 | rm -f conftest.err conftest.$ac_objext \ |
23548 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23549 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23550 | echo "$as_me:$LINENO: result: no" >&5 |
23551 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
23552 | X_LIBS="$X_LIBS -R$x_libraries" |
23553 | else | |
23554 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 23555 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23556 | /* confdefs.h. */ |
23557 | _ACEOF | |
23558 | cat confdefs.h >>conftest.$ac_ext | |
23559 | cat >>conftest.$ac_ext <<_ACEOF | |
23560 | /* end confdefs.h. */ | |
23561 | ||
23562 | int | |
23563 | main () | |
23564 | { | |
6f754473 | 23565 | |
e6cc62c6 VS |
23566 | ; |
23567 | return 0; | |
23568 | } | |
23569 | _ACEOF | |
23570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23572 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23573 | ac_status=$? |
32ddf007 VS |
23574 | grep -v '^ *+' conftest.er1 >conftest.err |
23575 | rm -f conftest.er1 | |
23576 | cat conftest.err >&5 | |
e6cc62c6 VS |
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23578 | (exit $ac_status); } && | |
32ddf007 VS |
23579 | { ac_try='test -z "$ac_c_werror_flag" |
23580 | || test ! -s conftest.err' | |
23581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23582 | (eval $ac_try) 2>&5 | |
23583 | ac_status=$? | |
23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23585 | (exit $ac_status); }; } && | |
23586 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23588 | (eval $ac_try) 2>&5 | |
23589 | ac_status=$? | |
23590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23591 | (exit $ac_status); }; }; then | |
90dd450c VZ |
23592 | ac_R_space=yes |
23593 | else | |
e6cc62c6 VS |
23594 | echo "$as_me: failed program was:" >&5 |
23595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23596 | ||
23597 | ac_R_space=no | |
90dd450c | 23598 | fi |
32ddf007 VS |
23599 | rm -f conftest.err conftest.$ac_objext \ |
23600 | conftest$ac_exeext conftest.$ac_ext | |
90dd450c | 23601 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23602 | echo "$as_me:$LINENO: result: yes" >&5 |
23603 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
23604 | X_LIBS="$X_LIBS -R $x_libraries" |
23605 | else | |
e6cc62c6 VS |
23606 | echo "$as_me:$LINENO: result: neither works" >&5 |
23607 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
23608 | fi |
23609 | fi | |
e6cc62c6 | 23610 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
23611 | esac |
23612 | fi | |
23613 | ||
23614 | # Check for system-dependent libraries X programs must link with. | |
23615 | # Do this before checking for the system-independent R6 libraries | |
23616 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 23617 | |
90dd450c VZ |
23618 | if test "$ISC" = yes; then |
23619 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23620 | else | |
e6cc62c6 VS |
23621 | # Martyn Johnson says this is needed for Ultrix, if the X |
23622 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 23623 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23624 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23625 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23626 | /* confdefs.h. */ |
23627 | _ACEOF | |
23628 | cat confdefs.h >>conftest.$ac_ext | |
23629 | cat >>conftest.$ac_ext <<_ACEOF | |
23630 | /* end confdefs.h. */ | |
23631 | ||
247f5006 | 23632 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23633 | #ifdef __cplusplus |
23634 | extern "C" | |
23635 | #endif | |
247f5006 | 23636 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23637 | builtin and then its argument prototype would still apply. */ |
23638 | char XOpenDisplay (); | |
23639 | int | |
23640 | main () | |
23641 | { | |
23642 | XOpenDisplay (); | |
23643 | ; | |
23644 | return 0; | |
23645 | } | |
23646 | _ACEOF | |
23647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23649 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23650 | ac_status=$? |
32ddf007 VS |
23651 | grep -v '^ *+' conftest.er1 >conftest.err |
23652 | rm -f conftest.er1 | |
23653 | cat conftest.err >&5 | |
e6cc62c6 VS |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23655 | (exit $ac_status); } && | |
32ddf007 VS |
23656 | { ac_try='test -z "$ac_c_werror_flag" |
23657 | || test ! -s conftest.err' | |
23658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23659 | (eval $ac_try) 2>&5 | |
23660 | ac_status=$? | |
23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23662 | (exit $ac_status); }; } && | |
23663 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23665 | (eval $ac_try) 2>&5 | |
23666 | ac_status=$? | |
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23668 | (exit $ac_status); }; }; then | |
23669 | : | |
23670 | else | |
23671 | echo "$as_me: failed program was:" >&5 | |
23672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23673 | |
e6cc62c6 VS |
23674 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23675 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23676 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23678 | else |
e6cc62c6 VS |
23679 | ac_check_lib_save_LIBS=$LIBS |
23680 | LIBS="-ldnet $LIBS" | |
23681 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23682 | /* confdefs.h. */ |
23683 | _ACEOF | |
23684 | cat confdefs.h >>conftest.$ac_ext | |
23685 | cat >>conftest.$ac_ext <<_ACEOF | |
23686 | /* end confdefs.h. */ | |
a0b9e27f | 23687 | |
e6cc62c6 VS |
23688 | /* Override any gcc2 internal prototype to avoid an error. */ |
23689 | #ifdef __cplusplus | |
23690 | extern "C" | |
23691 | #endif | |
23692 | /* We use char because int might match the return type of a gcc2 | |
23693 | builtin and then its argument prototype would still apply. */ | |
23694 | char dnet_ntoa (); | |
23695 | int | |
23696 | main () | |
23697 | { | |
23698 | dnet_ntoa (); | |
23699 | ; | |
23700 | return 0; | |
23701 | } | |
23702 | _ACEOF | |
23703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23705 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23706 | ac_status=$? |
32ddf007 VS |
23707 | grep -v '^ *+' conftest.er1 >conftest.err |
23708 | rm -f conftest.er1 | |
23709 | cat conftest.err >&5 | |
e6cc62c6 VS |
23710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23711 | (exit $ac_status); } && | |
32ddf007 VS |
23712 | { ac_try='test -z "$ac_c_werror_flag" |
23713 | || test ! -s conftest.err' | |
23714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23715 | (eval $ac_try) 2>&5 | |
23716 | ac_status=$? | |
23717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23718 | (exit $ac_status); }; } && | |
23719 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23721 | (eval $ac_try) 2>&5 | |
23722 | ac_status=$? | |
23723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23724 | (exit $ac_status); }; }; then | |
23725 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23726 | else | |
23727 | echo "$as_me: failed program was:" >&5 | |
23728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23729 | ||
23730 | ac_cv_lib_dnet_dnet_ntoa=no | |
23731 | fi | |
32ddf007 VS |
23732 | rm -f conftest.err conftest.$ac_objext \ |
23733 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23734 | LIBS=$ac_check_lib_save_LIBS |
23735 | fi | |
23736 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23737 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23738 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 23739 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
23740 | fi |
23741 | ||
90dd450c | 23742 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23743 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23744 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23745 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23747 | else |
e6cc62c6 | 23748 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23749 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23750 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23751 | /* confdefs.h. */ |
23752 | _ACEOF | |
23753 | cat confdefs.h >>conftest.$ac_ext | |
23754 | cat >>conftest.$ac_ext <<_ACEOF | |
23755 | /* end confdefs.h. */ | |
23756 | ||
90dd450c | 23757 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23758 | #ifdef __cplusplus |
23759 | extern "C" | |
23760 | #endif | |
90dd450c | 23761 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23762 | builtin and then its argument prototype would still apply. */ |
23763 | char dnet_ntoa (); | |
23764 | int | |
23765 | main () | |
23766 | { | |
23767 | dnet_ntoa (); | |
23768 | ; | |
23769 | return 0; | |
23770 | } | |
23771 | _ACEOF | |
23772 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23774 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23775 | ac_status=$? |
32ddf007 VS |
23776 | grep -v '^ *+' conftest.er1 >conftest.err |
23777 | rm -f conftest.er1 | |
23778 | cat conftest.err >&5 | |
e6cc62c6 VS |
23779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23780 | (exit $ac_status); } && | |
32ddf007 VS |
23781 | { ac_try='test -z "$ac_c_werror_flag" |
23782 | || test ! -s conftest.err' | |
23783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23784 | (eval $ac_try) 2>&5 | |
23785 | ac_status=$? | |
23786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23787 | (exit $ac_status); }; } && | |
23788 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23790 | (eval $ac_try) 2>&5 | |
23791 | ac_status=$? | |
23792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23793 | (exit $ac_status); }; }; then | |
23794 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23795 | else | |
23796 | echo "$as_me: failed program was:" >&5 | |
23797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23798 | ||
23799 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23800 | fi | |
32ddf007 VS |
23801 | rm -f conftest.err conftest.$ac_objext \ |
23802 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23803 | LIBS=$ac_check_lib_save_LIBS |
23804 | fi | |
23805 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23806 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23807 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 23808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
23809 | fi |
23810 | ||
90dd450c | 23811 | fi |
e6cc62c6 | 23812 | fi |
32ddf007 VS |
23813 | rm -f conftest.err conftest.$ac_objext \ |
23814 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 23815 | LIBS="$ac_xsave_LIBS" |
978f1259 | 23816 | |
90dd450c VZ |
23817 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23818 | # to get the SysV transport functions. | |
e6cc62c6 | 23819 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
23820 | # needs -lnsl. |
23821 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23822 | # on Irix 5.2, according to T.E. Dickey. |
23823 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23824 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23825 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23826 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23827 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23829 | else | |
23830 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23831 | /* confdefs.h. */ |
23832 | _ACEOF | |
23833 | cat confdefs.h >>conftest.$ac_ext | |
23834 | cat >>conftest.$ac_ext <<_ACEOF | |
23835 | /* end confdefs.h. */ | |
32ddf007 VS |
23836 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
23837 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23838 | #define gethostbyname innocuous_gethostbyname | |
23839 | ||
90dd450c | 23840 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23841 | which can conflict with char gethostbyname (); below. |
23842 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23843 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 23844 | |
e6cc62c6 VS |
23845 | #ifdef __STDC__ |
23846 | # include <limits.h> | |
23847 | #else | |
23848 | # include <assert.h> | |
23849 | #endif | |
32ddf007 VS |
23850 | |
23851 | #undef gethostbyname | |
23852 | ||
90dd450c | 23853 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23854 | #ifdef __cplusplus |
23855 | extern "C" | |
23856 | { | |
23857 | #endif | |
90dd450c | 23858 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23859 | builtin and then its argument prototype would still apply. */ |
23860 | char gethostbyname (); | |
90dd450c VZ |
23861 | /* The GNU C library defines this for functions which it implements |
23862 | to always fail with ENOSYS. Some functions are actually named | |
23863 | something starting with __ and the normal name is an alias. */ | |
23864 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23865 | choke me | |
23866 | #else | |
e6cc62c6 VS |
23867 | char (*f) () = gethostbyname; |
23868 | #endif | |
23869 | #ifdef __cplusplus | |
23870 | } | |
90dd450c | 23871 | #endif |
978f1259 | 23872 | |
e6cc62c6 VS |
23873 | int |
23874 | main () | |
23875 | { | |
23876 | return f != gethostbyname; | |
23877 | ; | |
23878 | return 0; | |
23879 | } | |
23880 | _ACEOF | |
23881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23883 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23884 | ac_status=$? |
32ddf007 VS |
23885 | grep -v '^ *+' conftest.er1 >conftest.err |
23886 | rm -f conftest.er1 | |
23887 | cat conftest.err >&5 | |
e6cc62c6 VS |
23888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23889 | (exit $ac_status); } && | |
32ddf007 VS |
23890 | { ac_try='test -z "$ac_c_werror_flag" |
23891 | || test ! -s conftest.err' | |
23892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23893 | (eval $ac_try) 2>&5 | |
23894 | ac_status=$? | |
23895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23896 | (exit $ac_status); }; } && | |
23897 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23899 | (eval $ac_try) 2>&5 | |
23900 | ac_status=$? | |
23901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23902 | (exit $ac_status); }; }; then | |
23903 | ac_cv_func_gethostbyname=yes | |
23904 | else | |
23905 | echo "$as_me: failed program was:" >&5 | |
23906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23907 | ||
23908 | ac_cv_func_gethostbyname=no | |
23909 | fi | |
32ddf007 VS |
23910 | rm -f conftest.err conftest.$ac_objext \ |
23911 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23912 | fi |
23913 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23914 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 23915 | |
90dd450c | 23916 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23917 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23918 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23919 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 23921 | else |
e6cc62c6 | 23922 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 23923 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23924 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
23925 | /* confdefs.h. */ |
23926 | _ACEOF | |
23927 | cat confdefs.h >>conftest.$ac_ext | |
23928 | cat >>conftest.$ac_ext <<_ACEOF | |
23929 | /* end confdefs.h. */ | |
23930 | ||
90dd450c | 23931 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23932 | #ifdef __cplusplus |
23933 | extern "C" | |
23934 | #endif | |
90dd450c | 23935 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23936 | builtin and then its argument prototype would still apply. */ |
23937 | char gethostbyname (); | |
23938 | int | |
23939 | main () | |
23940 | { | |
23941 | gethostbyname (); | |
23942 | ; | |
23943 | return 0; | |
23944 | } | |
23945 | _ACEOF | |
23946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 23948 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 23949 | ac_status=$? |
32ddf007 VS |
23950 | grep -v '^ *+' conftest.er1 >conftest.err |
23951 | rm -f conftest.er1 | |
23952 | cat conftest.err >&5 | |
e6cc62c6 VS |
23953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23954 | (exit $ac_status); } && | |
32ddf007 VS |
23955 | { ac_try='test -z "$ac_c_werror_flag" |
23956 | || test ! -s conftest.err' | |
23957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23958 | (eval $ac_try) 2>&5 | |
23959 | ac_status=$? | |
23960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23961 | (exit $ac_status); }; } && | |
23962 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
23963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23964 | (eval $ac_try) 2>&5 | |
23965 | ac_status=$? | |
23966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23967 | (exit $ac_status); }; }; then | |
23968 | ac_cv_lib_nsl_gethostbyname=yes | |
23969 | else | |
23970 | echo "$as_me: failed program was:" >&5 | |
23971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23972 | ||
23973 | ac_cv_lib_nsl_gethostbyname=no | |
23974 | fi | |
32ddf007 VS |
23975 | rm -f conftest.err conftest.$ac_objext \ |
23976 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
23977 | LIBS=$ac_check_lib_save_LIBS |
23978 | fi | |
23979 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23980 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23981 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23982 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23983 | fi |
247f5006 | 23984 | |
e6cc62c6 | 23985 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 23986 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23987 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23988 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23990 | else |
e6cc62c6 VS |
23991 | ac_check_lib_save_LIBS=$LIBS |
23992 | LIBS="-lbsd $LIBS" | |
23993 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
23994 | /* confdefs.h. */ |
23995 | _ACEOF | |
23996 | cat confdefs.h >>conftest.$ac_ext | |
23997 | cat >>conftest.$ac_ext <<_ACEOF | |
23998 | /* end confdefs.h. */ | |
23999 | ||
24000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24001 | #ifdef __cplusplus | |
24002 | extern "C" | |
24003 | #endif | |
24004 | /* We use char because int might match the return type of a gcc2 | |
24005 | builtin and then its argument prototype would still apply. */ | |
24006 | char gethostbyname (); | |
24007 | int | |
24008 | main () | |
24009 | { | |
24010 | gethostbyname (); | |
24011 | ; | |
24012 | return 0; | |
24013 | } | |
24014 | _ACEOF | |
24015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24017 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24018 | ac_status=$? |
32ddf007 VS |
24019 | grep -v '^ *+' conftest.er1 >conftest.err |
24020 | rm -f conftest.er1 | |
24021 | cat conftest.err >&5 | |
e6cc62c6 VS |
24022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24023 | (exit $ac_status); } && | |
32ddf007 VS |
24024 | { ac_try='test -z "$ac_c_werror_flag" |
24025 | || test ! -s conftest.err' | |
24026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24027 | (eval $ac_try) 2>&5 | |
24028 | ac_status=$? | |
24029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24030 | (exit $ac_status); }; } && | |
24031 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24033 | (eval $ac_try) 2>&5 | |
24034 | ac_status=$? | |
24035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24036 | (exit $ac_status); }; }; then | |
24037 | ac_cv_lib_bsd_gethostbyname=yes | |
24038 | else | |
24039 | echo "$as_me: failed program was:" >&5 | |
24040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24041 | ||
24042 | ac_cv_lib_bsd_gethostbyname=no | |
24043 | fi | |
32ddf007 VS |
24044 | rm -f conftest.err conftest.$ac_objext \ |
24045 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24046 | LIBS=$ac_check_lib_save_LIBS |
24047 | fi | |
24048 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24049 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24050 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24051 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 24052 | fi |
b12915c1 | 24053 | |
e6cc62c6 | 24054 | fi |
90dd450c VZ |
24055 | fi |
24056 | ||
24057 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24058 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24059 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
24060 | # on later versions), says Simon Leinen: it contains gethostby* |
24061 | # variants that don't use the name server (or something). -lsocket | |
24062 | # must be given before -lnsl if both are needed. We assume that | |
24063 | # if connect needs -lnsl, so does gethostbyname. | |
24064 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24065 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24066 | if test "${ac_cv_func_connect+set}" = set; then | |
24067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24068 | else | |
24069 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24070 | /* confdefs.h. */ |
24071 | _ACEOF | |
24072 | cat confdefs.h >>conftest.$ac_ext | |
24073 | cat >>conftest.$ac_ext <<_ACEOF | |
24074 | /* end confdefs.h. */ | |
32ddf007 VS |
24075 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24077 | #define connect innocuous_connect | |
24078 | ||
90dd450c | 24079 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24080 | which can conflict with char connect (); below. |
24081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24082 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24083 | |
e6cc62c6 VS |
24084 | #ifdef __STDC__ |
24085 | # include <limits.h> | |
24086 | #else | |
24087 | # include <assert.h> | |
24088 | #endif | |
32ddf007 VS |
24089 | |
24090 | #undef connect | |
24091 | ||
90dd450c | 24092 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24093 | #ifdef __cplusplus |
24094 | extern "C" | |
24095 | { | |
24096 | #endif | |
90dd450c | 24097 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24098 | builtin and then its argument prototype would still apply. */ |
24099 | char connect (); | |
90dd450c VZ |
24100 | /* The GNU C library defines this for functions which it implements |
24101 | to always fail with ENOSYS. Some functions are actually named | |
24102 | something starting with __ and the normal name is an alias. */ | |
24103 | #if defined (__stub_connect) || defined (__stub___connect) | |
24104 | choke me | |
24105 | #else | |
e6cc62c6 VS |
24106 | char (*f) () = connect; |
24107 | #endif | |
24108 | #ifdef __cplusplus | |
24109 | } | |
90dd450c VZ |
24110 | #endif |
24111 | ||
e6cc62c6 VS |
24112 | int |
24113 | main () | |
24114 | { | |
24115 | return f != connect; | |
24116 | ; | |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24122 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24123 | ac_status=$? |
32ddf007 VS |
24124 | grep -v '^ *+' conftest.er1 >conftest.err |
24125 | rm -f conftest.er1 | |
24126 | cat conftest.err >&5 | |
e6cc62c6 VS |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24128 | (exit $ac_status); } && | |
32ddf007 VS |
24129 | { ac_try='test -z "$ac_c_werror_flag" |
24130 | || test ! -s conftest.err' | |
24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24132 | (eval $ac_try) 2>&5 | |
24133 | ac_status=$? | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; } && | |
24136 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24138 | (eval $ac_try) 2>&5 | |
24139 | ac_status=$? | |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24141 | (exit $ac_status); }; }; then | |
24142 | ac_cv_func_connect=yes | |
24143 | else | |
24144 | echo "$as_me: failed program was:" >&5 | |
24145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24146 | ||
24147 | ac_cv_func_connect=no | |
24148 | fi | |
32ddf007 VS |
24149 | rm -f conftest.err conftest.$ac_objext \ |
24150 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24151 | fi |
24152 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24153 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 24154 | |
90dd450c | 24155 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
24156 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
24157 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24158 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24160 | else |
e6cc62c6 | 24161 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24162 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24163 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24164 | /* confdefs.h. */ |
24165 | _ACEOF | |
24166 | cat confdefs.h >>conftest.$ac_ext | |
24167 | cat >>conftest.$ac_ext <<_ACEOF | |
24168 | /* end confdefs.h. */ | |
24169 | ||
90dd450c | 24170 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24171 | #ifdef __cplusplus |
24172 | extern "C" | |
24173 | #endif | |
90dd450c | 24174 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24175 | builtin and then its argument prototype would still apply. */ |
24176 | char connect (); | |
24177 | int | |
24178 | main () | |
24179 | { | |
24180 | connect (); | |
24181 | ; | |
24182 | return 0; | |
24183 | } | |
24184 | _ACEOF | |
24185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24187 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24188 | ac_status=$? |
32ddf007 VS |
24189 | grep -v '^ *+' conftest.er1 >conftest.err |
24190 | rm -f conftest.er1 | |
24191 | cat conftest.err >&5 | |
e6cc62c6 VS |
24192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24193 | (exit $ac_status); } && | |
32ddf007 VS |
24194 | { ac_try='test -z "$ac_c_werror_flag" |
24195 | || test ! -s conftest.err' | |
24196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24197 | (eval $ac_try) 2>&5 | |
24198 | ac_status=$? | |
24199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24200 | (exit $ac_status); }; } && | |
24201 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24203 | (eval $ac_try) 2>&5 | |
24204 | ac_status=$? | |
24205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24206 | (exit $ac_status); }; }; then | |
24207 | ac_cv_lib_socket_connect=yes | |
24208 | else | |
24209 | echo "$as_me: failed program was:" >&5 | |
24210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24211 | ||
24212 | ac_cv_lib_socket_connect=no | |
24213 | fi | |
32ddf007 VS |
24214 | rm -f conftest.err conftest.$ac_objext \ |
24215 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24216 | LIBS=$ac_check_lib_save_LIBS |
24217 | fi | |
24218 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24219 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24220 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 24221 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 24222 | fi |
77e13408 | 24223 | |
90dd450c | 24224 | fi |
25d0687a | 24225 | |
e6cc62c6 VS |
24226 | # Guillermo Gomez says -lposix is necessary on A/UX. |
24227 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24228 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24229 | if test "${ac_cv_func_remove+set}" = set; then | |
24230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24231 | else | |
24232 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24233 | /* confdefs.h. */ |
24234 | _ACEOF | |
24235 | cat confdefs.h >>conftest.$ac_ext | |
24236 | cat >>conftest.$ac_ext <<_ACEOF | |
24237 | /* end confdefs.h. */ | |
32ddf007 VS |
24238 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24239 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24240 | #define remove innocuous_remove | |
24241 | ||
90dd450c | 24242 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24243 | which can conflict with char remove (); below. |
24244 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24245 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24246 | |
e6cc62c6 VS |
24247 | #ifdef __STDC__ |
24248 | # include <limits.h> | |
24249 | #else | |
24250 | # include <assert.h> | |
24251 | #endif | |
32ddf007 VS |
24252 | |
24253 | #undef remove | |
24254 | ||
90dd450c | 24255 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24256 | #ifdef __cplusplus |
24257 | extern "C" | |
24258 | { | |
24259 | #endif | |
90dd450c | 24260 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24261 | builtin and then its argument prototype would still apply. */ |
24262 | char remove (); | |
90dd450c VZ |
24263 | /* The GNU C library defines this for functions which it implements |
24264 | to always fail with ENOSYS. Some functions are actually named | |
24265 | something starting with __ and the normal name is an alias. */ | |
24266 | #if defined (__stub_remove) || defined (__stub___remove) | |
24267 | choke me | |
24268 | #else | |
e6cc62c6 VS |
24269 | char (*f) () = remove; |
24270 | #endif | |
24271 | #ifdef __cplusplus | |
24272 | } | |
90dd450c | 24273 | #endif |
55e80573 | 24274 | |
e6cc62c6 VS |
24275 | int |
24276 | main () | |
24277 | { | |
24278 | return f != remove; | |
24279 | ; | |
24280 | return 0; | |
24281 | } | |
24282 | _ACEOF | |
24283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24285 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24286 | ac_status=$? |
32ddf007 VS |
24287 | grep -v '^ *+' conftest.er1 >conftest.err |
24288 | rm -f conftest.er1 | |
24289 | cat conftest.err >&5 | |
e6cc62c6 VS |
24290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24291 | (exit $ac_status); } && | |
32ddf007 VS |
24292 | { ac_try='test -z "$ac_c_werror_flag" |
24293 | || test ! -s conftest.err' | |
24294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24295 | (eval $ac_try) 2>&5 | |
24296 | ac_status=$? | |
24297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24298 | (exit $ac_status); }; } && | |
24299 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24301 | (eval $ac_try) 2>&5 | |
24302 | ac_status=$? | |
24303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24304 | (exit $ac_status); }; }; then | |
24305 | ac_cv_func_remove=yes | |
24306 | else | |
24307 | echo "$as_me: failed program was:" >&5 | |
24308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24309 | ||
24310 | ac_cv_func_remove=no | |
24311 | fi | |
32ddf007 VS |
24312 | rm -f conftest.err conftest.$ac_objext \ |
24313 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24314 | fi |
24315 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24316 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 24317 | |
90dd450c | 24318 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
24319 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
24320 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24321 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 24323 | else |
e6cc62c6 | 24324 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24325 | LIBS="-lposix $LIBS" |
e6cc62c6 | 24326 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24327 | /* confdefs.h. */ |
24328 | _ACEOF | |
24329 | cat confdefs.h >>conftest.$ac_ext | |
24330 | cat >>conftest.$ac_ext <<_ACEOF | |
24331 | /* end confdefs.h. */ | |
24332 | ||
90dd450c | 24333 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24334 | #ifdef __cplusplus |
24335 | extern "C" | |
24336 | #endif | |
90dd450c | 24337 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24338 | builtin and then its argument prototype would still apply. */ |
24339 | char remove (); | |
24340 | int | |
24341 | main () | |
24342 | { | |
24343 | remove (); | |
24344 | ; | |
24345 | return 0; | |
24346 | } | |
24347 | _ACEOF | |
24348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24350 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24351 | ac_status=$? |
32ddf007 VS |
24352 | grep -v '^ *+' conftest.er1 >conftest.err |
24353 | rm -f conftest.er1 | |
24354 | cat conftest.err >&5 | |
e6cc62c6 VS |
24355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24356 | (exit $ac_status); } && | |
32ddf007 VS |
24357 | { ac_try='test -z "$ac_c_werror_flag" |
24358 | || test ! -s conftest.err' | |
24359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24360 | (eval $ac_try) 2>&5 | |
24361 | ac_status=$? | |
24362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24363 | (exit $ac_status); }; } && | |
24364 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24366 | (eval $ac_try) 2>&5 | |
24367 | ac_status=$? | |
24368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24369 | (exit $ac_status); }; }; then | |
24370 | ac_cv_lib_posix_remove=yes | |
24371 | else | |
24372 | echo "$as_me: failed program was:" >&5 | |
24373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24374 | ||
24375 | ac_cv_lib_posix_remove=no | |
24376 | fi | |
32ddf007 VS |
24377 | rm -f conftest.err conftest.$ac_objext \ |
24378 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24379 | LIBS=$ac_check_lib_save_LIBS |
24380 | fi | |
24381 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24382 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24383 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 24384 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 24385 | fi |
f6bcfd97 | 24386 | |
6fa882bd RR |
24387 | fi |
24388 | ||
90dd450c | 24389 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
24390 | echo "$as_me:$LINENO: checking for shmat" >&5 |
24391 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24392 | if test "${ac_cv_func_shmat+set}" = set; then | |
24393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24394 | else | |
24395 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24396 | /* confdefs.h. */ |
24397 | _ACEOF | |
24398 | cat confdefs.h >>conftest.$ac_ext | |
24399 | cat >>conftest.$ac_ext <<_ACEOF | |
24400 | /* end confdefs.h. */ | |
32ddf007 VS |
24401 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
24402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24403 | #define shmat innocuous_shmat | |
24404 | ||
90dd450c | 24405 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
24406 | which can conflict with char shmat (); below. |
24407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24408 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 24409 | |
e6cc62c6 VS |
24410 | #ifdef __STDC__ |
24411 | # include <limits.h> | |
24412 | #else | |
24413 | # include <assert.h> | |
24414 | #endif | |
32ddf007 VS |
24415 | |
24416 | #undef shmat | |
24417 | ||
90dd450c | 24418 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24419 | #ifdef __cplusplus |
24420 | extern "C" | |
24421 | { | |
24422 | #endif | |
90dd450c | 24423 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24424 | builtin and then its argument prototype would still apply. */ |
24425 | char shmat (); | |
90dd450c VZ |
24426 | /* The GNU C library defines this for functions which it implements |
24427 | to always fail with ENOSYS. Some functions are actually named | |
24428 | something starting with __ and the normal name is an alias. */ | |
24429 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24430 | choke me | |
24431 | #else | |
e6cc62c6 VS |
24432 | char (*f) () = shmat; |
24433 | #endif | |
24434 | #ifdef __cplusplus | |
24435 | } | |
90dd450c | 24436 | #endif |
10f2d63a | 24437 | |
e6cc62c6 VS |
24438 | int |
24439 | main () | |
24440 | { | |
24441 | return f != shmat; | |
24442 | ; | |
24443 | return 0; | |
24444 | } | |
24445 | _ACEOF | |
24446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24448 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24449 | ac_status=$? |
32ddf007 VS |
24450 | grep -v '^ *+' conftest.er1 >conftest.err |
24451 | rm -f conftest.er1 | |
24452 | cat conftest.err >&5 | |
e6cc62c6 VS |
24453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24454 | (exit $ac_status); } && | |
32ddf007 VS |
24455 | { ac_try='test -z "$ac_c_werror_flag" |
24456 | || test ! -s conftest.err' | |
24457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24458 | (eval $ac_try) 2>&5 | |
24459 | ac_status=$? | |
24460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24461 | (exit $ac_status); }; } && | |
24462 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24464 | (eval $ac_try) 2>&5 | |
24465 | ac_status=$? | |
24466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24467 | (exit $ac_status); }; }; then | |
24468 | ac_cv_func_shmat=yes | |
24469 | else | |
24470 | echo "$as_me: failed program was:" >&5 | |
24471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24472 | ||
24473 | ac_cv_func_shmat=no | |
24474 | fi | |
32ddf007 VS |
24475 | rm -f conftest.err conftest.$ac_objext \ |
24476 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24477 | fi |
24478 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24479 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 24480 | |
90dd450c | 24481 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
24482 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
24483 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24484 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 24486 | else |
e6cc62c6 | 24487 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 24488 | LIBS="-lipc $LIBS" |
e6cc62c6 | 24489 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24490 | /* confdefs.h. */ |
24491 | _ACEOF | |
24492 | cat confdefs.h >>conftest.$ac_ext | |
24493 | cat >>conftest.$ac_ext <<_ACEOF | |
24494 | /* end confdefs.h. */ | |
24495 | ||
8284b0c5 | 24496 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24497 | #ifdef __cplusplus |
24498 | extern "C" | |
24499 | #endif | |
90dd450c | 24500 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24501 | builtin and then its argument prototype would still apply. */ |
24502 | char shmat (); | |
24503 | int | |
24504 | main () | |
24505 | { | |
24506 | shmat (); | |
24507 | ; | |
24508 | return 0; | |
24509 | } | |
24510 | _ACEOF | |
24511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24513 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24514 | ac_status=$? |
32ddf007 VS |
24515 | grep -v '^ *+' conftest.er1 >conftest.err |
24516 | rm -f conftest.er1 | |
24517 | cat conftest.err >&5 | |
e6cc62c6 VS |
24518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24519 | (exit $ac_status); } && | |
32ddf007 VS |
24520 | { ac_try='test -z "$ac_c_werror_flag" |
24521 | || test ! -s conftest.err' | |
24522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24523 | (eval $ac_try) 2>&5 | |
24524 | ac_status=$? | |
24525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24526 | (exit $ac_status); }; } && | |
24527 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24529 | (eval $ac_try) 2>&5 | |
24530 | ac_status=$? | |
24531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24532 | (exit $ac_status); }; }; then | |
24533 | ac_cv_lib_ipc_shmat=yes | |
24534 | else | |
24535 | echo "$as_me: failed program was:" >&5 | |
24536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24537 | ||
24538 | ac_cv_lib_ipc_shmat=no | |
24539 | fi | |
32ddf007 VS |
24540 | rm -f conftest.err conftest.$ac_objext \ |
24541 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24542 | LIBS=$ac_check_lib_save_LIBS |
24543 | fi | |
24544 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24545 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24546 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 24547 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
24548 | fi |
24549 | ||
d558c907 | 24550 | fi |
90dd450c | 24551 | fi |
3a922bb4 | 24552 | |
90dd450c | 24553 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 24554 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
24555 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
24556 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24557 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24558 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24559 | # These have to be linked with before -lX11, unlike the other | |
24560 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
24561 | # John Interrante, Karl Berry |
24562 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24563 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24564 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24566 | else | |
24567 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 24568 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 24569 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
24570 | /* confdefs.h. */ |
24571 | _ACEOF | |
24572 | cat confdefs.h >>conftest.$ac_ext | |
24573 | cat >>conftest.$ac_ext <<_ACEOF | |
24574 | /* end confdefs.h. */ | |
24575 | ||
90dd450c | 24576 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24577 | #ifdef __cplusplus |
24578 | extern "C" | |
24579 | #endif | |
90dd450c | 24580 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24581 | builtin and then its argument prototype would still apply. */ |
24582 | char IceConnectionNumber (); | |
24583 | int | |
24584 | main () | |
24585 | { | |
24586 | IceConnectionNumber (); | |
24587 | ; | |
24588 | return 0; | |
24589 | } | |
24590 | _ACEOF | |
24591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 24593 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 24594 | ac_status=$? |
32ddf007 VS |
24595 | grep -v '^ *+' conftest.er1 >conftest.err |
24596 | rm -f conftest.er1 | |
24597 | cat conftest.err >&5 | |
e6cc62c6 VS |
24598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24599 | (exit $ac_status); } && | |
32ddf007 VS |
24600 | { ac_try='test -z "$ac_c_werror_flag" |
24601 | || test ! -s conftest.err' | |
24602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24603 | (eval $ac_try) 2>&5 | |
24604 | ac_status=$? | |
24605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24606 | (exit $ac_status); }; } && | |
24607 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
24608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24609 | (eval $ac_try) 2>&5 | |
24610 | ac_status=$? | |
24611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24612 | (exit $ac_status); }; }; then | |
24613 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
24614 | else | |
24615 | echo "$as_me: failed program was:" >&5 | |
24616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24617 | ||
24618 | ac_cv_lib_ICE_IceConnectionNumber=no | |
24619 | fi | |
32ddf007 VS |
24620 | rm -f conftest.err conftest.$ac_objext \ |
24621 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
24622 | LIBS=$ac_check_lib_save_LIBS |
24623 | fi | |
24624 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
24625 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
24626 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 24627 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 24628 | fi |
10f2d63a | 24629 | |
e6cc62c6 | 24630 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
24631 | |
24632 | fi | |
24633 | ||
8284b0c5 | 24634 | |
90dd450c | 24635 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
24636 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
24637 | echo "$as_me: error: X11 not found" >&2;} | |
24638 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
24639 | fi |
24640 | ||
24641 | GUI_TK_LIBRARY="$X_LIBS" | |
24642 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
24643 | AFMINSTALL=afminstall | |
24644 | COMPILED_X_PROGRAM=0 | |
24645 | ||
21d1c967 | 24646 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
24647 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
24648 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 24649 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
24650 | echo "$as_me:$LINENO: result: not found" >&5 |
24651 | echo "${ECHO_T}not found" >&6 | |
24652 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
24653 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
24654 | { (exit 1); exit 1; }; } | |
90dd450c | 24655 | else |
e6cc62c6 VS |
24656 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
24657 | echo "${ECHO_T}$MICROWIN" >&6 | |
24658 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24659 | #define wxUSE_NANOX 1 |
e6cc62c6 | 24660 | _ACEOF |
21d1c967 | 24661 | |
90dd450c VZ |
24662 | fi |
24663 | fi | |
24664 | ||
2b5f62a0 | 24665 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 24666 | |
2b5f62a0 | 24667 | succeeded=no |
90dd450c | 24668 | |
2b5f62a0 VZ |
24669 | if test -z "$PKG_CONFIG"; then |
24670 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24671 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24674 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24676 | else |
e6cc62c6 VS |
24677 | case $PKG_CONFIG in |
24678 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24679 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24680 | ;; | |
2b5f62a0 | 24681 | *) |
e6cc62c6 VS |
24682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24683 | for as_dir in $PATH | |
24684 | do | |
24685 | IFS=$as_save_IFS | |
24686 | test -z "$as_dir" && as_dir=. | |
24687 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24688 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24689 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24690 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24691 | break 2 | |
24692 | fi | |
24693 | done | |
24694 | done | |
24695 | ||
2b5f62a0 VZ |
24696 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24697 | ;; | |
24698 | esac | |
24699 | fi | |
e6cc62c6 VS |
24700 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24701 | ||
2b5f62a0 | 24702 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24703 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24704 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24705 | else |
e6cc62c6 VS |
24706 | echo "$as_me:$LINENO: result: no" >&5 |
24707 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24708 | fi |
24709 | ||
24710 | fi | |
24711 | ||
24712 | if test "$PKG_CONFIG" = "no" ; then | |
24713 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24714 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24715 | echo "*** to the full path to pkg-config." | |
24716 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24717 | else | |
24718 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24719 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24720 | echo "$as_me:$LINENO: checking for pangox" >&5 |
24721 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24722 | |
24723 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
24724 | echo "$as_me:$LINENO: result: yes" >&5 |
24725 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24726 | succeeded=yes |
24727 | ||
e6cc62c6 VS |
24728 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
24729 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24730 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
24731 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
24732 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 24733 | |
e6cc62c6 VS |
24734 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
24735 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24736 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
24737 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
24738 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
24739 | else |
24740 | PANGOX_CFLAGS="" | |
24741 | PANGOX_LIBS="" | |
e6cc62c6 | 24742 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24743 | ## do set a variable so people can do so. |
24744 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 24745 | |
2b5f62a0 VZ |
24746 | fi |
24747 | ||
e6cc62c6 VS |
24748 | |
24749 | ||
2b5f62a0 VZ |
24750 | else |
24751 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24752 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24753 | fi | |
24754 | fi | |
24755 | ||
24756 | if test $succeeded = yes; then | |
e6cc62c6 | 24757 | |
2b5f62a0 | 24758 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 24759 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 24760 | |
2b5f62a0 | 24761 | else |
e6cc62c6 VS |
24762 | |
24763 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
24764 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
24765 | { (exit 1); exit 1; }; } | |
24766 | ||
24767 | ||
2b5f62a0 VZ |
24768 | fi |
24769 | ||
e6cc62c6 | 24770 | |
2b5f62a0 VZ |
24771 | succeeded=no |
24772 | ||
24773 | if test -z "$PKG_CONFIG"; then | |
24774 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24775 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24778 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24780 | else |
e6cc62c6 VS |
24781 | case $PKG_CONFIG in |
24782 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24783 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24784 | ;; | |
2b5f62a0 | 24785 | *) |
e6cc62c6 VS |
24786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24787 | for as_dir in $PATH | |
24788 | do | |
24789 | IFS=$as_save_IFS | |
24790 | test -z "$as_dir" && as_dir=. | |
24791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24793 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24795 | break 2 | |
24796 | fi | |
24797 | done | |
24798 | done | |
24799 | ||
2b5f62a0 VZ |
24800 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24801 | ;; | |
24802 | esac | |
24803 | fi | |
e6cc62c6 VS |
24804 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24805 | ||
2b5f62a0 | 24806 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24807 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24808 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24809 | else |
e6cc62c6 VS |
24810 | echo "$as_me:$LINENO: result: no" >&5 |
24811 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24812 | fi |
24813 | ||
24814 | fi | |
24815 | ||
24816 | if test "$PKG_CONFIG" = "no" ; then | |
24817 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24818 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24819 | echo "*** to the full path to pkg-config." | |
24820 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24821 | else | |
24822 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24823 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24824 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
24825 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24826 | |
24827 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
24828 | echo "$as_me:$LINENO: result: yes" >&5 |
24829 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24830 | succeeded=yes |
24831 | ||
e6cc62c6 VS |
24832 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
24833 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24834 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
24835 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
24836 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 24837 | |
e6cc62c6 VS |
24838 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
24839 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24840 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
24841 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
24842 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
24843 | else |
24844 | PANGOFT2_CFLAGS="" | |
24845 | PANGOFT2_LIBS="" | |
e6cc62c6 | 24846 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24847 | ## do set a variable so people can do so. |
24848 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 24849 | |
2b5f62a0 VZ |
24850 | fi |
24851 | ||
e6cc62c6 VS |
24852 | |
24853 | ||
2b5f62a0 VZ |
24854 | else |
24855 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24856 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24857 | fi | |
24858 | fi | |
24859 | ||
24860 | if test $succeeded = yes; then | |
e6cc62c6 | 24861 | |
2b5f62a0 | 24862 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 24863 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 24864 | |
2b5f62a0 | 24865 | else |
e6cc62c6 VS |
24866 | |
24867 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
24868 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 24869 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
24870 | |
24871 | ||
2b5f62a0 VZ |
24872 | fi |
24873 | ||
e6cc62c6 | 24874 | |
2b5f62a0 VZ |
24875 | succeeded=no |
24876 | ||
24877 | if test -z "$PKG_CONFIG"; then | |
24878 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24879 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
24880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24882 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
24883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24884 | else |
e6cc62c6 VS |
24885 | case $PKG_CONFIG in |
24886 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
24887 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
24888 | ;; | |
2b5f62a0 | 24889 | *) |
e6cc62c6 VS |
24890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24891 | for as_dir in $PATH | |
24892 | do | |
24893 | IFS=$as_save_IFS | |
24894 | test -z "$as_dir" && as_dir=. | |
24895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24897 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
24898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
24899 | break 2 | |
24900 | fi | |
24901 | done | |
24902 | done | |
24903 | ||
2b5f62a0 VZ |
24904 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
24905 | ;; | |
24906 | esac | |
24907 | fi | |
e6cc62c6 VS |
24908 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
24909 | ||
2b5f62a0 | 24910 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
24911 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
24912 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 24913 | else |
e6cc62c6 VS |
24914 | echo "$as_me:$LINENO: result: no" >&5 |
24915 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
24916 | fi |
24917 | ||
24918 | fi | |
24919 | ||
24920 | if test "$PKG_CONFIG" = "no" ; then | |
24921 | echo "*** The pkg-config script could not be found. Make sure it is" | |
24922 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
24923 | echo "*** to the full path to pkg-config." | |
24924 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
24925 | else | |
24926 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
24927 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
24928 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
24929 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
24930 | |
24931 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
24932 | echo "$as_me:$LINENO: result: yes" >&5 |
24933 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
24934 | succeeded=yes |
24935 | ||
e6cc62c6 VS |
24936 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
24937 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 24938 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
24939 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
24940 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 24941 | |
e6cc62c6 VS |
24942 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
24943 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 24944 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
24945 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
24946 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
24947 | else |
24948 | PANGOXFT_CFLAGS="" | |
24949 | PANGOXFT_LIBS="" | |
e6cc62c6 | 24950 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
24951 | ## do set a variable so people can do so. |
24952 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 24953 | |
2b5f62a0 VZ |
24954 | fi |
24955 | ||
e6cc62c6 VS |
24956 | |
24957 | ||
2b5f62a0 VZ |
24958 | else |
24959 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
24960 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
24961 | fi | |
24962 | fi | |
24963 | ||
24964 | if test $succeeded = yes; then | |
e6cc62c6 | 24965 | |
2b5f62a0 | 24966 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 24967 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 24968 | |
2b5f62a0 | 24969 | else |
e6cc62c6 VS |
24970 | |
24971 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
24972 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
24973 | ||
24974 | ||
2b5f62a0 VZ |
24975 | fi |
24976 | ||
24977 | fi | |
24978 | ||
24979 | wxUSE_UNIVERSAL="yes" | |
24980 | ||
24981 | if test "$wxUSE_NANOX" = "yes"; then | |
24982 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 24983 | 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 |
24984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
24985 | else | |
93a543aa | 24986 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
24987 | fi |
24988 | ||
24989 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
24990 | TOOLKIT=X11 | |
24991 | GUIDIST=X11_DIST | |
24992 | fi | |
24993 | ||
21d1c967 GD |
24994 | if test "$wxUSE_MOTIF" = 1; then |
24995 | if test "$no_x" = yes; then | |
24996 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
24997 | |
24998 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 24999 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 25000 | _ACEOF |
21d1c967 GD |
25001 | |
25002 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
25003 | else | |
25004 | if test -n "$x_includes"; then | |
25005 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
25006 | fi |
25007 | ||
21d1c967 GD |
25008 | # It would also be nice to do this for all -L options, not just this one. |
25009 | if test -n "$x_libraries"; then | |
25010 | X_LIBS="$X_LIBS -L$x_libraries" | |
25011 | # For Solaris; some versions of Sun CC require a space after -R and | |
25012 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 25013 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 25014 | "SunOS 5"*) |
e6cc62c6 VS |
25015 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
25016 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
25017 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
25018 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25019 | /* confdefs.h. */ |
25020 | _ACEOF | |
25021 | cat confdefs.h >>conftest.$ac_ext | |
25022 | cat >>conftest.$ac_ext <<_ACEOF | |
25023 | /* end confdefs.h. */ | |
25024 | ||
25025 | int | |
25026 | main () | |
25027 | { | |
21d1c967 | 25028 | |
e6cc62c6 VS |
25029 | ; |
25030 | return 0; | |
25031 | } | |
25032 | _ACEOF | |
25033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25035 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25036 | ac_status=$? |
32ddf007 VS |
25037 | grep -v '^ *+' conftest.er1 >conftest.err |
25038 | rm -f conftest.er1 | |
25039 | cat conftest.err >&5 | |
e6cc62c6 VS |
25040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25041 | (exit $ac_status); } && | |
32ddf007 VS |
25042 | { ac_try='test -z "$ac_c_werror_flag" |
25043 | || test ! -s conftest.err' | |
25044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25045 | (eval $ac_try) 2>&5 | |
25046 | ac_status=$? | |
25047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25048 | (exit $ac_status); }; } && | |
25049 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25051 | (eval $ac_try) 2>&5 | |
25052 | ac_status=$? | |
25053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25054 | (exit $ac_status); }; }; then | |
21d1c967 | 25055 | ac_R_nospace=yes |
698dcdb6 | 25056 | else |
e6cc62c6 VS |
25057 | echo "$as_me: failed program was:" >&5 |
25058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25059 | ||
25060 | ac_R_nospace=no | |
10f2d63a | 25061 | fi |
32ddf007 VS |
25062 | rm -f conftest.err conftest.$ac_objext \ |
25063 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 25064 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
25065 | echo "$as_me:$LINENO: result: no" >&5 |
25066 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25067 | X_LIBS="$X_LIBS -R$x_libraries" |
25068 | else | |
25069 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 25070 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25071 | /* confdefs.h. */ |
25072 | _ACEOF | |
25073 | cat confdefs.h >>conftest.$ac_ext | |
25074 | cat >>conftest.$ac_ext <<_ACEOF | |
25075 | /* end confdefs.h. */ | |
25076 | ||
25077 | int | |
25078 | main () | |
25079 | { | |
f0c87536 | 25080 | |
e6cc62c6 VS |
25081 | ; |
25082 | return 0; | |
25083 | } | |
25084 | _ACEOF | |
25085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25087 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25088 | ac_status=$? |
32ddf007 VS |
25089 | grep -v '^ *+' conftest.er1 >conftest.err |
25090 | rm -f conftest.er1 | |
25091 | cat conftest.err >&5 | |
e6cc62c6 VS |
25092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25093 | (exit $ac_status); } && | |
32ddf007 VS |
25094 | { ac_try='test -z "$ac_c_werror_flag" |
25095 | || test ! -s conftest.err' | |
25096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25097 | (eval $ac_try) 2>&5 | |
25098 | ac_status=$? | |
25099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25100 | (exit $ac_status); }; } && | |
25101 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25103 | (eval $ac_try) 2>&5 | |
25104 | ac_status=$? | |
25105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25106 | (exit $ac_status); }; }; then | |
21d1c967 GD |
25107 | ac_R_space=yes |
25108 | else | |
e6cc62c6 VS |
25109 | echo "$as_me: failed program was:" >&5 |
25110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25111 | ||
25112 | ac_R_space=no | |
21d1c967 | 25113 | fi |
32ddf007 VS |
25114 | rm -f conftest.err conftest.$ac_objext \ |
25115 | conftest$ac_exeext conftest.$ac_ext | |
21d1c967 | 25116 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
25117 | echo "$as_me:$LINENO: result: yes" >&5 |
25118 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
25119 | X_LIBS="$X_LIBS -R $x_libraries" |
25120 | else | |
e6cc62c6 VS |
25121 | echo "$as_me:$LINENO: result: neither works" >&5 |
25122 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
25123 | fi |
25124 | fi | |
e6cc62c6 | 25125 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
25126 | esac |
25127 | fi | |
90dd450c | 25128 | |
21d1c967 GD |
25129 | # Check for system-dependent libraries X programs must link with. |
25130 | # Do this before checking for the system-independent R6 libraries | |
25131 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
25132 | ||
25133 | if test "$ISC" = yes; then | |
25134 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
25135 | else | |
e6cc62c6 VS |
25136 | # Martyn Johnson says this is needed for Ultrix, if the X |
25137 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 25138 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
25139 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
25140 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25141 | /* confdefs.h. */ |
25142 | _ACEOF | |
25143 | cat confdefs.h >>conftest.$ac_ext | |
25144 | cat >>conftest.$ac_ext <<_ACEOF | |
25145 | /* end confdefs.h. */ | |
25146 | ||
247f5006 | 25147 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25148 | #ifdef __cplusplus |
25149 | extern "C" | |
25150 | #endif | |
247f5006 | 25151 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25152 | builtin and then its argument prototype would still apply. */ |
25153 | char XOpenDisplay (); | |
25154 | int | |
25155 | main () | |
25156 | { | |
25157 | XOpenDisplay (); | |
25158 | ; | |
25159 | return 0; | |
25160 | } | |
25161 | _ACEOF | |
25162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25164 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25165 | ac_status=$? |
32ddf007 VS |
25166 | grep -v '^ *+' conftest.er1 >conftest.err |
25167 | rm -f conftest.er1 | |
25168 | cat conftest.err >&5 | |
e6cc62c6 VS |
25169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25170 | (exit $ac_status); } && | |
32ddf007 VS |
25171 | { ac_try='test -z "$ac_c_werror_flag" |
25172 | || test ! -s conftest.err' | |
25173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25174 | (eval $ac_try) 2>&5 | |
25175 | ac_status=$? | |
25176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25177 | (exit $ac_status); }; } && | |
25178 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25180 | (eval $ac_try) 2>&5 | |
25181 | ac_status=$? | |
25182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25183 | (exit $ac_status); }; }; then | |
25184 | : | |
25185 | else | |
25186 | echo "$as_me: failed program was:" >&5 | |
25187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25188 | |
e6cc62c6 VS |
25189 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
25190 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
25191 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
25192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25193 | else |
e6cc62c6 VS |
25194 | ac_check_lib_save_LIBS=$LIBS |
25195 | LIBS="-ldnet $LIBS" | |
25196 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25197 | /* confdefs.h. */ |
25198 | _ACEOF | |
25199 | cat confdefs.h >>conftest.$ac_ext | |
25200 | cat >>conftest.$ac_ext <<_ACEOF | |
25201 | /* end confdefs.h. */ | |
a0b9e27f | 25202 | |
e6cc62c6 VS |
25203 | /* Override any gcc2 internal prototype to avoid an error. */ |
25204 | #ifdef __cplusplus | |
25205 | extern "C" | |
25206 | #endif | |
25207 | /* We use char because int might match the return type of a gcc2 | |
25208 | builtin and then its argument prototype would still apply. */ | |
25209 | char dnet_ntoa (); | |
25210 | int | |
25211 | main () | |
25212 | { | |
25213 | dnet_ntoa (); | |
25214 | ; | |
25215 | return 0; | |
25216 | } | |
25217 | _ACEOF | |
25218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25220 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25221 | ac_status=$? |
32ddf007 VS |
25222 | grep -v '^ *+' conftest.er1 >conftest.err |
25223 | rm -f conftest.er1 | |
25224 | cat conftest.err >&5 | |
e6cc62c6 VS |
25225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25226 | (exit $ac_status); } && | |
32ddf007 VS |
25227 | { ac_try='test -z "$ac_c_werror_flag" |
25228 | || test ! -s conftest.err' | |
25229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25230 | (eval $ac_try) 2>&5 | |
25231 | ac_status=$? | |
25232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25233 | (exit $ac_status); }; } && | |
25234 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25236 | (eval $ac_try) 2>&5 | |
25237 | ac_status=$? | |
25238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25239 | (exit $ac_status); }; }; then | |
25240 | ac_cv_lib_dnet_dnet_ntoa=yes | |
25241 | else | |
25242 | echo "$as_me: failed program was:" >&5 | |
25243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25244 | ||
25245 | ac_cv_lib_dnet_dnet_ntoa=no | |
25246 | fi | |
32ddf007 VS |
25247 | rm -f conftest.err conftest.$ac_objext \ |
25248 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25249 | LIBS=$ac_check_lib_save_LIBS |
25250 | fi | |
25251 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
25252 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
25253 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 25254 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 25255 | fi |
0fb0dd83 | 25256 | |
21d1c967 | 25257 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
25258 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
25259 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
25260 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
25261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25262 | else |
e6cc62c6 | 25263 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25264 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 25265 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25266 | /* confdefs.h. */ |
25267 | _ACEOF | |
25268 | cat confdefs.h >>conftest.$ac_ext | |
25269 | cat >>conftest.$ac_ext <<_ACEOF | |
25270 | /* end confdefs.h. */ | |
25271 | ||
21d1c967 | 25272 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25273 | #ifdef __cplusplus |
25274 | extern "C" | |
25275 | #endif | |
21d1c967 | 25276 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25277 | builtin and then its argument prototype would still apply. */ |
25278 | char dnet_ntoa (); | |
25279 | int | |
25280 | main () | |
25281 | { | |
25282 | dnet_ntoa (); | |
25283 | ; | |
25284 | return 0; | |
25285 | } | |
25286 | _ACEOF | |
25287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25289 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25290 | ac_status=$? |
32ddf007 VS |
25291 | grep -v '^ *+' conftest.er1 >conftest.err |
25292 | rm -f conftest.er1 | |
25293 | cat conftest.err >&5 | |
e6cc62c6 VS |
25294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25295 | (exit $ac_status); } && | |
32ddf007 VS |
25296 | { ac_try='test -z "$ac_c_werror_flag" |
25297 | || test ! -s conftest.err' | |
25298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25299 | (eval $ac_try) 2>&5 | |
25300 | ac_status=$? | |
25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25302 | (exit $ac_status); }; } && | |
25303 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25305 | (eval $ac_try) 2>&5 | |
25306 | ac_status=$? | |
25307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25308 | (exit $ac_status); }; }; then | |
25309 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
25310 | else | |
25311 | echo "$as_me: failed program was:" >&5 | |
25312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25313 | ||
25314 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
25315 | fi | |
32ddf007 VS |
25316 | rm -f conftest.err conftest.$ac_objext \ |
25317 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25318 | LIBS=$ac_check_lib_save_LIBS |
25319 | fi | |
25320 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
25321 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
25322 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 25323 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
25324 | fi |
25325 | ||
21d1c967 | 25326 | fi |
e6cc62c6 | 25327 | fi |
32ddf007 VS |
25328 | rm -f conftest.err conftest.$ac_objext \ |
25329 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 | 25330 | LIBS="$ac_xsave_LIBS" |
90dd450c | 25331 | |
21d1c967 GD |
25332 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
25333 | # to get the SysV transport functions. | |
e6cc62c6 | 25334 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
25335 | # needs -lnsl. |
25336 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
25337 | # on Irix 5.2, according to T.E. Dickey. |
25338 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25339 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
25340 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
25341 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
25342 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
25343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25344 | else | |
25345 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25346 | /* confdefs.h. */ |
25347 | _ACEOF | |
25348 | cat confdefs.h >>conftest.$ac_ext | |
25349 | cat >>conftest.$ac_ext <<_ACEOF | |
25350 | /* end confdefs.h. */ | |
32ddf007 VS |
25351 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
25352 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25353 | #define gethostbyname innocuous_gethostbyname | |
25354 | ||
21d1c967 | 25355 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25356 | which can conflict with char gethostbyname (); below. |
25357 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25358 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25359 | |
e6cc62c6 VS |
25360 | #ifdef __STDC__ |
25361 | # include <limits.h> | |
25362 | #else | |
25363 | # include <assert.h> | |
25364 | #endif | |
32ddf007 VS |
25365 | |
25366 | #undef gethostbyname | |
25367 | ||
21d1c967 | 25368 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25369 | #ifdef __cplusplus |
25370 | extern "C" | |
25371 | { | |
25372 | #endif | |
21d1c967 | 25373 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25374 | builtin and then its argument prototype would still apply. */ |
25375 | char gethostbyname (); | |
21d1c967 GD |
25376 | /* The GNU C library defines this for functions which it implements |
25377 | to always fail with ENOSYS. Some functions are actually named | |
25378 | something starting with __ and the normal name is an alias. */ | |
25379 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
25380 | choke me | |
25381 | #else | |
e6cc62c6 VS |
25382 | char (*f) () = gethostbyname; |
25383 | #endif | |
25384 | #ifdef __cplusplus | |
25385 | } | |
21d1c967 | 25386 | #endif |
90dd450c | 25387 | |
e6cc62c6 VS |
25388 | int |
25389 | main () | |
25390 | { | |
25391 | return f != gethostbyname; | |
25392 | ; | |
25393 | return 0; | |
25394 | } | |
25395 | _ACEOF | |
25396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25398 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25399 | ac_status=$? |
32ddf007 VS |
25400 | grep -v '^ *+' conftest.er1 >conftest.err |
25401 | rm -f conftest.er1 | |
25402 | cat conftest.err >&5 | |
e6cc62c6 VS |
25403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25404 | (exit $ac_status); } && | |
32ddf007 VS |
25405 | { ac_try='test -z "$ac_c_werror_flag" |
25406 | || test ! -s conftest.err' | |
25407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25408 | (eval $ac_try) 2>&5 | |
25409 | ac_status=$? | |
25410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25411 | (exit $ac_status); }; } && | |
25412 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25414 | (eval $ac_try) 2>&5 | |
25415 | ac_status=$? | |
25416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25417 | (exit $ac_status); }; }; then | |
25418 | ac_cv_func_gethostbyname=yes | |
25419 | else | |
25420 | echo "$as_me: failed program was:" >&5 | |
25421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25422 | ||
25423 | ac_cv_func_gethostbyname=no | |
25424 | fi | |
32ddf007 VS |
25425 | rm -f conftest.err conftest.$ac_objext \ |
25426 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25427 | fi |
25428 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
25429 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 25430 | |
21d1c967 | 25431 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
25432 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
25433 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
25434 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
25435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25436 | else |
e6cc62c6 | 25437 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25438 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 25439 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25440 | /* confdefs.h. */ |
25441 | _ACEOF | |
25442 | cat confdefs.h >>conftest.$ac_ext | |
25443 | cat >>conftest.$ac_ext <<_ACEOF | |
25444 | /* end confdefs.h. */ | |
25445 | ||
21d1c967 | 25446 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25447 | #ifdef __cplusplus |
25448 | extern "C" | |
25449 | #endif | |
21d1c967 | 25450 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25451 | builtin and then its argument prototype would still apply. */ |
25452 | char gethostbyname (); | |
25453 | int | |
25454 | main () | |
25455 | { | |
25456 | gethostbyname (); | |
25457 | ; | |
25458 | return 0; | |
25459 | } | |
25460 | _ACEOF | |
25461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25463 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25464 | ac_status=$? |
32ddf007 VS |
25465 | grep -v '^ *+' conftest.er1 >conftest.err |
25466 | rm -f conftest.er1 | |
25467 | cat conftest.err >&5 | |
e6cc62c6 VS |
25468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25469 | (exit $ac_status); } && | |
32ddf007 VS |
25470 | { ac_try='test -z "$ac_c_werror_flag" |
25471 | || test ! -s conftest.err' | |
25472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25473 | (eval $ac_try) 2>&5 | |
25474 | ac_status=$? | |
25475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25476 | (exit $ac_status); }; } && | |
25477 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25479 | (eval $ac_try) 2>&5 | |
25480 | ac_status=$? | |
25481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25482 | (exit $ac_status); }; }; then | |
25483 | ac_cv_lib_nsl_gethostbyname=yes | |
25484 | else | |
25485 | echo "$as_me: failed program was:" >&5 | |
25486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25487 | ||
25488 | ac_cv_lib_nsl_gethostbyname=no | |
25489 | fi | |
32ddf007 VS |
25490 | rm -f conftest.err conftest.$ac_objext \ |
25491 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25492 | LIBS=$ac_check_lib_save_LIBS |
25493 | fi | |
25494 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
25495 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
25496 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
25497 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 25498 | fi |
247f5006 | 25499 | |
e6cc62c6 | 25500 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
32ddf007 | 25501 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
25502 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
25503 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
25504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 25505 | else |
e6cc62c6 VS |
25506 | ac_check_lib_save_LIBS=$LIBS |
25507 | LIBS="-lbsd $LIBS" | |
25508 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25509 | /* confdefs.h. */ |
25510 | _ACEOF | |
25511 | cat confdefs.h >>conftest.$ac_ext | |
25512 | cat >>conftest.$ac_ext <<_ACEOF | |
25513 | /* end confdefs.h. */ | |
25514 | ||
25515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25516 | #ifdef __cplusplus | |
25517 | extern "C" | |
25518 | #endif | |
25519 | /* We use char because int might match the return type of a gcc2 | |
25520 | builtin and then its argument prototype would still apply. */ | |
25521 | char gethostbyname (); | |
25522 | int | |
25523 | main () | |
25524 | { | |
25525 | gethostbyname (); | |
25526 | ; | |
25527 | return 0; | |
25528 | } | |
25529 | _ACEOF | |
25530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25532 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25533 | ac_status=$? |
32ddf007 VS |
25534 | grep -v '^ *+' conftest.er1 >conftest.err |
25535 | rm -f conftest.er1 | |
25536 | cat conftest.err >&5 | |
e6cc62c6 VS |
25537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25538 | (exit $ac_status); } && | |
32ddf007 VS |
25539 | { ac_try='test -z "$ac_c_werror_flag" |
25540 | || test ! -s conftest.err' | |
25541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25542 | (eval $ac_try) 2>&5 | |
25543 | ac_status=$? | |
25544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25545 | (exit $ac_status); }; } && | |
25546 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25548 | (eval $ac_try) 2>&5 | |
25549 | ac_status=$? | |
25550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25551 | (exit $ac_status); }; }; then | |
25552 | ac_cv_lib_bsd_gethostbyname=yes | |
25553 | else | |
25554 | echo "$as_me: failed program was:" >&5 | |
25555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25556 | ||
25557 | ac_cv_lib_bsd_gethostbyname=no | |
25558 | fi | |
32ddf007 VS |
25559 | rm -f conftest.err conftest.$ac_objext \ |
25560 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25561 | LIBS=$ac_check_lib_save_LIBS |
25562 | fi | |
25563 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
25564 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
25565 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
25566 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 25567 | fi |
90dd450c | 25568 | |
e6cc62c6 | 25569 | fi |
90dd450c VZ |
25570 | fi |
25571 | ||
21d1c967 GD |
25572 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
25573 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25574 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
25575 | # on later versions), says Simon Leinen: it contains gethostby* |
25576 | # variants that don't use the name server (or something). -lsocket | |
25577 | # must be given before -lnsl if both are needed. We assume that | |
25578 | # if connect needs -lnsl, so does gethostbyname. | |
25579 | echo "$as_me:$LINENO: checking for connect" >&5 | |
25580 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
25581 | if test "${ac_cv_func_connect+set}" = set; then | |
25582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25583 | else | |
25584 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25585 | /* confdefs.h. */ |
25586 | _ACEOF | |
25587 | cat confdefs.h >>conftest.$ac_ext | |
25588 | cat >>conftest.$ac_ext <<_ACEOF | |
25589 | /* end confdefs.h. */ | |
32ddf007 VS |
25590 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
25591 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25592 | #define connect innocuous_connect | |
25593 | ||
21d1c967 | 25594 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25595 | which can conflict with char connect (); below. |
25596 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25597 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25598 | |
e6cc62c6 VS |
25599 | #ifdef __STDC__ |
25600 | # include <limits.h> | |
25601 | #else | |
25602 | # include <assert.h> | |
25603 | #endif | |
32ddf007 VS |
25604 | |
25605 | #undef connect | |
25606 | ||
21d1c967 | 25607 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25608 | #ifdef __cplusplus |
25609 | extern "C" | |
25610 | { | |
25611 | #endif | |
21d1c967 | 25612 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25613 | builtin and then its argument prototype would still apply. */ |
25614 | char connect (); | |
21d1c967 GD |
25615 | /* The GNU C library defines this for functions which it implements |
25616 | to always fail with ENOSYS. Some functions are actually named | |
25617 | something starting with __ and the normal name is an alias. */ | |
25618 | #if defined (__stub_connect) || defined (__stub___connect) | |
25619 | choke me | |
25620 | #else | |
e6cc62c6 VS |
25621 | char (*f) () = connect; |
25622 | #endif | |
25623 | #ifdef __cplusplus | |
25624 | } | |
21d1c967 | 25625 | #endif |
90dd450c | 25626 | |
e6cc62c6 VS |
25627 | int |
25628 | main () | |
25629 | { | |
25630 | return f != connect; | |
25631 | ; | |
25632 | return 0; | |
25633 | } | |
25634 | _ACEOF | |
25635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25637 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25638 | ac_status=$? |
32ddf007 VS |
25639 | grep -v '^ *+' conftest.er1 >conftest.err |
25640 | rm -f conftest.er1 | |
25641 | cat conftest.err >&5 | |
e6cc62c6 VS |
25642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25643 | (exit $ac_status); } && | |
32ddf007 VS |
25644 | { ac_try='test -z "$ac_c_werror_flag" |
25645 | || test ! -s conftest.err' | |
25646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25647 | (eval $ac_try) 2>&5 | |
25648 | ac_status=$? | |
25649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25650 | (exit $ac_status); }; } && | |
25651 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25653 | (eval $ac_try) 2>&5 | |
25654 | ac_status=$? | |
25655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25656 | (exit $ac_status); }; }; then | |
25657 | ac_cv_func_connect=yes | |
25658 | else | |
25659 | echo "$as_me: failed program was:" >&5 | |
25660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25661 | ||
25662 | ac_cv_func_connect=no | |
25663 | fi | |
32ddf007 VS |
25664 | rm -f conftest.err conftest.$ac_objext \ |
25665 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25666 | fi |
25667 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
25668 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 25669 | |
21d1c967 | 25670 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
25671 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
25672 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
25673 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
25674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 25675 | else |
e6cc62c6 | 25676 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25677 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 25678 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25679 | /* confdefs.h. */ |
25680 | _ACEOF | |
25681 | cat confdefs.h >>conftest.$ac_ext | |
25682 | cat >>conftest.$ac_ext <<_ACEOF | |
25683 | /* end confdefs.h. */ | |
25684 | ||
21d1c967 | 25685 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25686 | #ifdef __cplusplus |
25687 | extern "C" | |
25688 | #endif | |
21d1c967 | 25689 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25690 | builtin and then its argument prototype would still apply. */ |
25691 | char connect (); | |
25692 | int | |
25693 | main () | |
25694 | { | |
25695 | connect (); | |
25696 | ; | |
25697 | return 0; | |
25698 | } | |
25699 | _ACEOF | |
25700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25702 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25703 | ac_status=$? |
32ddf007 VS |
25704 | grep -v '^ *+' conftest.er1 >conftest.err |
25705 | rm -f conftest.er1 | |
25706 | cat conftest.err >&5 | |
e6cc62c6 VS |
25707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25708 | (exit $ac_status); } && | |
32ddf007 VS |
25709 | { ac_try='test -z "$ac_c_werror_flag" |
25710 | || test ! -s conftest.err' | |
25711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25712 | (eval $ac_try) 2>&5 | |
25713 | ac_status=$? | |
25714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25715 | (exit $ac_status); }; } && | |
25716 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25718 | (eval $ac_try) 2>&5 | |
25719 | ac_status=$? | |
25720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25721 | (exit $ac_status); }; }; then | |
25722 | ac_cv_lib_socket_connect=yes | |
25723 | else | |
25724 | echo "$as_me: failed program was:" >&5 | |
25725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25726 | ||
25727 | ac_cv_lib_socket_connect=no | |
25728 | fi | |
32ddf007 VS |
25729 | rm -f conftest.err conftest.$ac_objext \ |
25730 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25731 | LIBS=$ac_check_lib_save_LIBS |
25732 | fi | |
25733 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
25734 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
25735 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 25736 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 25737 | fi |
90dd450c | 25738 | |
21d1c967 | 25739 | fi |
90dd450c | 25740 | |
e6cc62c6 VS |
25741 | # Guillermo Gomez says -lposix is necessary on A/UX. |
25742 | echo "$as_me:$LINENO: checking for remove" >&5 | |
25743 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
25744 | if test "${ac_cv_func_remove+set}" = set; then | |
25745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25746 | else | |
25747 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25748 | /* confdefs.h. */ |
25749 | _ACEOF | |
25750 | cat confdefs.h >>conftest.$ac_ext | |
25751 | cat >>conftest.$ac_ext <<_ACEOF | |
25752 | /* end confdefs.h. */ | |
32ddf007 VS |
25753 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
25754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25755 | #define remove innocuous_remove | |
25756 | ||
21d1c967 | 25757 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25758 | which can conflict with char remove (); below. |
25759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25760 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25761 | |
e6cc62c6 VS |
25762 | #ifdef __STDC__ |
25763 | # include <limits.h> | |
25764 | #else | |
25765 | # include <assert.h> | |
25766 | #endif | |
32ddf007 VS |
25767 | |
25768 | #undef remove | |
25769 | ||
21d1c967 | 25770 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25771 | #ifdef __cplusplus |
25772 | extern "C" | |
25773 | { | |
25774 | #endif | |
21d1c967 | 25775 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25776 | builtin and then its argument prototype would still apply. */ |
25777 | char remove (); | |
21d1c967 GD |
25778 | /* The GNU C library defines this for functions which it implements |
25779 | to always fail with ENOSYS. Some functions are actually named | |
25780 | something starting with __ and the normal name is an alias. */ | |
25781 | #if defined (__stub_remove) || defined (__stub___remove) | |
25782 | choke me | |
25783 | #else | |
e6cc62c6 VS |
25784 | char (*f) () = remove; |
25785 | #endif | |
25786 | #ifdef __cplusplus | |
25787 | } | |
21d1c967 | 25788 | #endif |
90dd450c | 25789 | |
e6cc62c6 VS |
25790 | int |
25791 | main () | |
25792 | { | |
25793 | return f != remove; | |
25794 | ; | |
25795 | return 0; | |
25796 | } | |
25797 | _ACEOF | |
25798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25800 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25801 | ac_status=$? |
32ddf007 VS |
25802 | grep -v '^ *+' conftest.er1 >conftest.err |
25803 | rm -f conftest.er1 | |
25804 | cat conftest.err >&5 | |
e6cc62c6 VS |
25805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25806 | (exit $ac_status); } && | |
32ddf007 VS |
25807 | { ac_try='test -z "$ac_c_werror_flag" |
25808 | || test ! -s conftest.err' | |
25809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25810 | (eval $ac_try) 2>&5 | |
25811 | ac_status=$? | |
25812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25813 | (exit $ac_status); }; } && | |
25814 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25816 | (eval $ac_try) 2>&5 | |
25817 | ac_status=$? | |
25818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25819 | (exit $ac_status); }; }; then | |
25820 | ac_cv_func_remove=yes | |
25821 | else | |
25822 | echo "$as_me: failed program was:" >&5 | |
25823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25824 | ||
25825 | ac_cv_func_remove=no | |
25826 | fi | |
32ddf007 VS |
25827 | rm -f conftest.err conftest.$ac_objext \ |
25828 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25829 | fi |
25830 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25831 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 25832 | |
21d1c967 | 25833 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
25834 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
25835 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25836 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 25838 | else |
e6cc62c6 | 25839 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 25840 | LIBS="-lposix $LIBS" |
e6cc62c6 | 25841 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
25842 | /* confdefs.h. */ |
25843 | _ACEOF | |
25844 | cat confdefs.h >>conftest.$ac_ext | |
25845 | cat >>conftest.$ac_ext <<_ACEOF | |
25846 | /* end confdefs.h. */ | |
25847 | ||
21d1c967 | 25848 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25849 | #ifdef __cplusplus |
25850 | extern "C" | |
25851 | #endif | |
21d1c967 | 25852 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25853 | builtin and then its argument prototype would still apply. */ |
25854 | char remove (); | |
25855 | int | |
25856 | main () | |
25857 | { | |
25858 | remove (); | |
25859 | ; | |
25860 | return 0; | |
25861 | } | |
25862 | _ACEOF | |
25863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25865 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25866 | ac_status=$? |
32ddf007 VS |
25867 | grep -v '^ *+' conftest.er1 >conftest.err |
25868 | rm -f conftest.er1 | |
25869 | cat conftest.err >&5 | |
e6cc62c6 VS |
25870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25871 | (exit $ac_status); } && | |
32ddf007 VS |
25872 | { ac_try='test -z "$ac_c_werror_flag" |
25873 | || test ! -s conftest.err' | |
25874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25875 | (eval $ac_try) 2>&5 | |
25876 | ac_status=$? | |
25877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25878 | (exit $ac_status); }; } && | |
25879 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25881 | (eval $ac_try) 2>&5 | |
25882 | ac_status=$? | |
25883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25884 | (exit $ac_status); }; }; then | |
25885 | ac_cv_lib_posix_remove=yes | |
25886 | else | |
25887 | echo "$as_me: failed program was:" >&5 | |
25888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25889 | ||
25890 | ac_cv_lib_posix_remove=no | |
25891 | fi | |
32ddf007 VS |
25892 | rm -f conftest.err conftest.$ac_objext \ |
25893 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25894 | LIBS=$ac_check_lib_save_LIBS |
25895 | fi | |
25896 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25897 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25898 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 25899 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 25900 | fi |
19bc6aad | 25901 | |
90dd450c | 25902 | fi |
19bc6aad | 25903 | |
21d1c967 | 25904 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
25905 | echo "$as_me:$LINENO: checking for shmat" >&5 |
25906 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25907 | if test "${ac_cv_func_shmat+set}" = set; then | |
25908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25909 | else | |
25910 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
25911 | /* confdefs.h. */ |
25912 | _ACEOF | |
25913 | cat confdefs.h >>conftest.$ac_ext | |
25914 | cat >>conftest.$ac_ext <<_ACEOF | |
25915 | /* end confdefs.h. */ | |
32ddf007 VS |
25916 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25918 | #define shmat innocuous_shmat | |
25919 | ||
21d1c967 | 25920 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25921 | which can conflict with char shmat (); below. |
25922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25923 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 25924 | |
e6cc62c6 VS |
25925 | #ifdef __STDC__ |
25926 | # include <limits.h> | |
25927 | #else | |
25928 | # include <assert.h> | |
25929 | #endif | |
32ddf007 VS |
25930 | |
25931 | #undef shmat | |
25932 | ||
21d1c967 | 25933 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25934 | #ifdef __cplusplus |
25935 | extern "C" | |
25936 | { | |
25937 | #endif | |
21d1c967 | 25938 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25939 | builtin and then its argument prototype would still apply. */ |
25940 | char shmat (); | |
21d1c967 GD |
25941 | /* The GNU C library defines this for functions which it implements |
25942 | to always fail with ENOSYS. Some functions are actually named | |
25943 | something starting with __ and the normal name is an alias. */ | |
25944 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25945 | choke me | |
25946 | #else | |
e6cc62c6 VS |
25947 | char (*f) () = shmat; |
25948 | #endif | |
25949 | #ifdef __cplusplus | |
25950 | } | |
21d1c967 | 25951 | #endif |
90dd450c | 25952 | |
e6cc62c6 VS |
25953 | int |
25954 | main () | |
25955 | { | |
25956 | return f != shmat; | |
25957 | ; | |
25958 | return 0; | |
25959 | } | |
25960 | _ACEOF | |
25961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 25963 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 25964 | ac_status=$? |
32ddf007 VS |
25965 | grep -v '^ *+' conftest.er1 >conftest.err |
25966 | rm -f conftest.er1 | |
25967 | cat conftest.err >&5 | |
e6cc62c6 VS |
25968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25969 | (exit $ac_status); } && | |
32ddf007 VS |
25970 | { ac_try='test -z "$ac_c_werror_flag" |
25971 | || test ! -s conftest.err' | |
25972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25973 | (eval $ac_try) 2>&5 | |
25974 | ac_status=$? | |
25975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25976 | (exit $ac_status); }; } && | |
25977 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
25978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25979 | (eval $ac_try) 2>&5 | |
25980 | ac_status=$? | |
25981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25982 | (exit $ac_status); }; }; then | |
25983 | ac_cv_func_shmat=yes | |
25984 | else | |
25985 | echo "$as_me: failed program was:" >&5 | |
25986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25987 | ||
25988 | ac_cv_func_shmat=no | |
25989 | fi | |
32ddf007 VS |
25990 | rm -f conftest.err conftest.$ac_objext \ |
25991 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
25992 | fi |
25993 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25994 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 25995 | |
21d1c967 | 25996 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
25997 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
25998 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25999 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
26000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 26001 | else |
e6cc62c6 | 26002 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 26003 | LIBS="-lipc $LIBS" |
e6cc62c6 | 26004 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26005 | /* confdefs.h. */ |
26006 | _ACEOF | |
26007 | cat confdefs.h >>conftest.$ac_ext | |
26008 | cat >>conftest.$ac_ext <<_ACEOF | |
26009 | /* end confdefs.h. */ | |
26010 | ||
5c6fa7d2 | 26011 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26012 | #ifdef __cplusplus |
26013 | extern "C" | |
26014 | #endif | |
5c6fa7d2 | 26015 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26016 | builtin and then its argument prototype would still apply. */ |
26017 | char shmat (); | |
26018 | int | |
26019 | main () | |
26020 | { | |
26021 | shmat (); | |
26022 | ; | |
26023 | return 0; | |
26024 | } | |
26025 | _ACEOF | |
26026 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26028 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26029 | ac_status=$? |
32ddf007 VS |
26030 | grep -v '^ *+' conftest.er1 >conftest.err |
26031 | rm -f conftest.er1 | |
26032 | cat conftest.err >&5 | |
e6cc62c6 VS |
26033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26034 | (exit $ac_status); } && | |
32ddf007 VS |
26035 | { ac_try='test -z "$ac_c_werror_flag" |
26036 | || test ! -s conftest.err' | |
26037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26038 | (eval $ac_try) 2>&5 | |
26039 | ac_status=$? | |
26040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26041 | (exit $ac_status); }; } && | |
26042 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26044 | (eval $ac_try) 2>&5 | |
26045 | ac_status=$? | |
26046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26047 | (exit $ac_status); }; }; then | |
26048 | ac_cv_lib_ipc_shmat=yes | |
26049 | else | |
26050 | echo "$as_me: failed program was:" >&5 | |
26051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26052 | ||
26053 | ac_cv_lib_ipc_shmat=no | |
26054 | fi | |
32ddf007 VS |
26055 | rm -f conftest.err conftest.$ac_objext \ |
26056 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
26057 | LIBS=$ac_check_lib_save_LIBS |
26058 | fi | |
26059 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
26060 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
26061 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 26062 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 26063 | fi |
90dd450c | 26064 | |
90dd450c | 26065 | fi |
21d1c967 | 26066 | fi |
10f2d63a | 26067 | |
21d1c967 | 26068 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 26069 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
26070 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
26071 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
26072 | # check for ICE first), but we must link in the order -lSM -lICE or | |
26073 | # we get undefined symbols. So assume we have SM if we have ICE. | |
26074 | # These have to be linked with before -lX11, unlike the other | |
26075 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
26076 | # John Interrante, Karl Berry |
26077 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
26078 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
26079 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
26080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26081 | else | |
26082 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 26083 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 26084 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26085 | /* confdefs.h. */ |
26086 | _ACEOF | |
26087 | cat confdefs.h >>conftest.$ac_ext | |
26088 | cat >>conftest.$ac_ext <<_ACEOF | |
26089 | /* end confdefs.h. */ | |
26090 | ||
21d1c967 | 26091 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26092 | #ifdef __cplusplus |
26093 | extern "C" | |
26094 | #endif | |
21d1c967 | 26095 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26096 | builtin and then its argument prototype would still apply. */ |
26097 | char IceConnectionNumber (); | |
26098 | int | |
26099 | main () | |
26100 | { | |
26101 | IceConnectionNumber (); | |
26102 | ; | |
26103 | return 0; | |
26104 | } | |
26105 | _ACEOF | |
26106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26108 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26109 | ac_status=$? |
32ddf007 VS |
26110 | grep -v '^ *+' conftest.er1 >conftest.err |
26111 | rm -f conftest.er1 | |
26112 | cat conftest.err >&5 | |
e6cc62c6 VS |
26113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26114 | (exit $ac_status); } && | |
32ddf007 VS |
26115 | { ac_try='test -z "$ac_c_werror_flag" |
26116 | || test ! -s conftest.err' | |
26117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26118 | (eval $ac_try) 2>&5 | |
26119 | ac_status=$? | |
26120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26121 | (exit $ac_status); }; } && | |
26122 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26124 | (eval $ac_try) 2>&5 | |
26125 | ac_status=$? | |
26126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26127 | (exit $ac_status); }; }; then | |
26128 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
26129 | else | |
26130 | echo "$as_me: failed program was:" >&5 | |
26131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26132 | ||
26133 | ac_cv_lib_ICE_IceConnectionNumber=no | |
26134 | fi | |
32ddf007 VS |
26135 | rm -f conftest.err conftest.$ac_objext \ |
26136 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
26137 | LIBS=$ac_check_lib_save_LIBS |
26138 | fi | |
26139 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
26140 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
26141 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 26142 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 26143 | fi |
21d1c967 | 26144 | |
e6cc62c6 | 26145 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 26146 | |
10f2d63a VZ |
26147 | fi |
26148 | ||
8284b0c5 | 26149 | |
21d1c967 | 26150 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
26151 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
26152 | echo "$as_me: error: X11 not found" >&2;} | |
26153 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
26154 | fi |
26155 | ||
2b5f62a0 VZ |
26156 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
26157 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
26158 | AFMINSTALL=afminstall |
26159 | COMPILED_X_PROGRAM=0 | |
26160 | ||
e6cc62c6 VS |
26161 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
26162 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
26163 | ||
21d1c967 | 26164 | ac_find_includes= |
2b5f62a0 | 26165 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
26166 | do |
26167 | if test -f "$ac_dir/Xm/Xm.h"; then | |
26168 | ac_find_includes=$ac_dir | |
26169 | break | |
26170 | fi | |
26171 | done | |
26172 | ||
26173 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
26174 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
26175 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26176 | ||
2b5f62a0 | 26177 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
26178 | ac_path_to_include="" |
26179 | else | |
2b5f62a0 VZ |
26180 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
26181 | result=$? | |
26182 | if test $result = 0; then | |
26183 | ac_path_to_include="" | |
26184 | else | |
26185 | ac_path_to_include=" -I$ac_find_includes" | |
26186 | fi | |
dd0e4a90 VZ |
26187 | fi |
26188 | ||
26189 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 26190 | else |
e6cc62c6 | 26191 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26192 | /* confdefs.h. */ |
26193 | _ACEOF | |
26194 | cat confdefs.h >>conftest.$ac_ext | |
26195 | cat >>conftest.$ac_ext <<_ACEOF | |
26196 | /* end confdefs.h. */ | |
21d1c967 GD |
26197 | |
26198 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26199 | |
26200 | int | |
26201 | main () | |
26202 | { | |
21d1c967 GD |
26203 | |
26204 | int version; | |
26205 | version = xmUseVersion; | |
e6cc62c6 VS |
26206 | |
26207 | ; | |
26208 | return 0; | |
26209 | } | |
26210 | _ACEOF | |
26211 | rm -f conftest.$ac_objext | |
26212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26213 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26214 | ac_status=$? |
32ddf007 VS |
26215 | grep -v '^ *+' conftest.er1 >conftest.err |
26216 | rm -f conftest.er1 | |
26217 | cat conftest.err >&5 | |
e6cc62c6 VS |
26218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26219 | (exit $ac_status); } && | |
32ddf007 VS |
26220 | { ac_try='test -z "$ac_c_werror_flag" |
26221 | || test ! -s conftest.err' | |
26222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26223 | (eval $ac_try) 2>&5 | |
26224 | ac_status=$? | |
26225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26226 | (exit $ac_status); }; } && | |
26227 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26229 | (eval $ac_try) 2>&5 | |
26230 | ac_status=$? | |
26231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26232 | (exit $ac_status); }; }; then | |
26233 | ||
26234 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26235 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26236 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26237 | |
10f2d63a | 26238 | else |
e6cc62c6 VS |
26239 | echo "$as_me: failed program was:" >&5 |
26240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26241 | ||
26242 | ||
26243 | echo "$as_me:$LINENO: result: no" >&5 | |
26244 | echo "${ECHO_T}no" >&6 | |
26245 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
26246 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
26247 | { (exit 1); exit 1; }; } | |
26248 | ||
26249 | ||
10f2d63a | 26250 | fi |
32ddf007 | 26251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 26252 | fi |
10f2d63a | 26253 | |
21d1c967 | 26254 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
26255 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
26256 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
26257 | ||
21d1c967 | 26258 | ac_find_libraries= |
2b5f62a0 | 26259 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
26260 | do |
26261 | for ac_extension in a so sl dylib; do | |
26262 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
26263 | ac_find_libraries=$ac_dir | |
26264 | break 2 | |
26265 | fi | |
26266 | done | |
26267 | done | |
26268 | ||
26269 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
26270 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
26271 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26272 | ||
21d1c967 | 26273 | |
21d1c967 GD |
26274 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26275 | result=$? | |
26276 | if test $result = 0; then | |
26277 | ac_path_to_link="" | |
26278 | else | |
26279 | ac_path_to_link=" -L$ac_find_libraries" | |
26280 | fi | |
26281 | ||
21d1c967 | 26282 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 26283 | else |
dd0e4a90 VZ |
26284 | save_CFLAGS=$CFLAGS |
26285 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26286 | ||
e6cc62c6 | 26287 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26288 | /* confdefs.h. */ |
26289 | _ACEOF | |
26290 | cat confdefs.h >>conftest.$ac_ext | |
26291 | cat >>conftest.$ac_ext <<_ACEOF | |
26292 | /* end confdefs.h. */ | |
21d1c967 GD |
26293 | |
26294 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26295 | |
26296 | int | |
26297 | main () | |
26298 | { | |
21d1c967 GD |
26299 | |
26300 | int version; | |
26301 | version = xmUseVersion; | |
e6cc62c6 VS |
26302 | |
26303 | ; | |
26304 | return 0; | |
26305 | } | |
26306 | _ACEOF | |
26307 | rm -f conftest.$ac_objext | |
26308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26309 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26310 | ac_status=$? |
32ddf007 VS |
26311 | grep -v '^ *+' conftest.er1 >conftest.err |
26312 | rm -f conftest.er1 | |
26313 | cat conftest.err >&5 | |
e6cc62c6 VS |
26314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26315 | (exit $ac_status); } && | |
32ddf007 VS |
26316 | { ac_try='test -z "$ac_c_werror_flag" |
26317 | || test ! -s conftest.err' | |
26318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26319 | (eval $ac_try) 2>&5 | |
26320 | ac_status=$? | |
26321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26322 | (exit $ac_status); }; } && | |
26323 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26325 | (eval $ac_try) 2>&5 | |
26326 | ac_status=$? | |
26327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26328 | (exit $ac_status); }; }; then | |
26329 | ||
26330 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
26331 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 26332 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 26333 | |
d836ee96 | 26334 | else |
e6cc62c6 VS |
26335 | echo "$as_me: failed program was:" >&5 |
26336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26337 | ||
26338 | ||
26339 | echo "$as_me:$LINENO: result: no" >&5 | |
26340 | echo "${ECHO_T}no" >&6 | |
26341 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26342 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26343 | { (exit 1); exit 1; }; } | |
26344 | ||
26345 | ||
d836ee96 | 26346 | fi |
32ddf007 | 26347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
26348 | |
26349 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
26350 | fi |
26351 | fi | |
26352 | ||
e6cc62c6 VS |
26353 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
26354 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
26355 | libp_link="" |
26356 | libsm_ice_link="" | |
26357 | libs_found=0 | |
26358 | for libp in "" " -lXp"; do | |
26359 | if test "$libs_found" = "0"; then | |
7015ef3a | 26360 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 26361 | if test "$libs_found" = "0"; then |
6a30f1c8 | 26362 | save_LIBS="$LIBS" |
93a543aa | 26363 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
26364 | save_CFLAGS=$CFLAGS |
26365 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26366 | ||
e6cc62c6 | 26367 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26368 | /* confdefs.h. */ |
26369 | _ACEOF | |
26370 | cat confdefs.h >>conftest.$ac_ext | |
26371 | cat >>conftest.$ac_ext <<_ACEOF | |
26372 | /* end confdefs.h. */ | |
17234b26 | 26373 | |
6a30f1c8 MB |
26374 | #include <Xm/Xm.h> |
26375 | #include <Xm/List.h> | |
e6cc62c6 VS |
26376 | |
26377 | int | |
26378 | main () | |
26379 | { | |
6a30f1c8 MB |
26380 | |
26381 | XmString string = NULL; | |
26382 | Widget w = NULL; | |
26383 | int position = 0; | |
26384 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
26385 | |
26386 | ; | |
26387 | return 0; | |
26388 | } | |
26389 | _ACEOF | |
26390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26392 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 26393 | ac_status=$? |
32ddf007 VS |
26394 | grep -v '^ *+' conftest.er1 >conftest.err |
26395 | rm -f conftest.er1 | |
26396 | cat conftest.err >&5 | |
e6cc62c6 VS |
26397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26398 | (exit $ac_status); } && | |
32ddf007 VS |
26399 | { ac_try='test -z "$ac_c_werror_flag" |
26400 | || test ! -s conftest.err' | |
26401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26402 | (eval $ac_try) 2>&5 | |
26403 | ac_status=$? | |
26404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26405 | (exit $ac_status); }; } && | |
26406 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
26407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26408 | (eval $ac_try) 2>&5 | |
26409 | ac_status=$? | |
26410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26411 | (exit $ac_status); }; }; then | |
26412 | ||
6a30f1c8 MB |
26413 | libp_link="$libp" |
26414 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
26415 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
26416 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 26417 | libs_found=1 |
e6cc62c6 | 26418 | |
6a30f1c8 | 26419 | else |
e6cc62c6 VS |
26420 | echo "$as_me: failed program was:" >&5 |
26421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26422 | ||
26423 | ||
26424 | ||
6a30f1c8 | 26425 | fi |
32ddf007 VS |
26426 | rm -f conftest.err conftest.$ac_objext \ |
26427 | conftest$ac_exeext conftest.$ac_ext | |
dd0e4a90 | 26428 | |
6a30f1c8 | 26429 | LIBS="$save_LIBS" |
dd0e4a90 | 26430 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
26431 | fi |
26432 | done | |
26433 | fi | |
26434 | done | |
26435 | ||
26436 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
26437 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
26438 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26439 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26440 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26441 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
26442 | fi |
26443 | ||
da494b40 MB |
26444 | save_CFLAGS=$CFLAGS |
26445 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
26446 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
26447 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26448 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26449 | /* confdefs.h. */ |
26450 | _ACEOF | |
26451 | cat confdefs.h >>conftest.$ac_ext | |
26452 | cat >>conftest.$ac_ext <<_ACEOF | |
26453 | /* end confdefs.h. */ | |
da494b40 MB |
26454 | |
26455 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
26456 | |
26457 | int | |
26458 | main () | |
26459 | { | |
da494b40 MB |
26460 | |
26461 | #if XmVersion < 2000 | |
26462 | #error "Not Motif 2" | |
26463 | #endif | |
e6cc62c6 VS |
26464 | |
26465 | ; | |
26466 | return 0; | |
26467 | } | |
26468 | _ACEOF | |
26469 | rm -f conftest.$ac_objext | |
26470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26471 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26472 | ac_status=$? |
32ddf007 VS |
26473 | grep -v '^ *+' conftest.er1 >conftest.err |
26474 | rm -f conftest.er1 | |
26475 | cat conftest.err >&5 | |
e6cc62c6 VS |
26476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26477 | (exit $ac_status); } && | |
32ddf007 VS |
26478 | { ac_try='test -z "$ac_c_werror_flag" |
26479 | || test ! -s conftest.err' | |
26480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26481 | (eval $ac_try) 2>&5 | |
26482 | ac_status=$? | |
26483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26484 | (exit $ac_status); }; } && | |
26485 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
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 | ||
26492 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26493 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
26494 | _ACEOF |
26495 | ||
26496 | echo "$as_me:$LINENO: result: found" >&5 | |
26497 | echo "${ECHO_T}found" >&6 | |
da494b40 | 26498 | |
da494b40 | 26499 | else |
e6cc62c6 VS |
26500 | echo "$as_me: failed program was:" >&5 |
26501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26502 | ||
26503 | ||
26504 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 26505 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
26506 | _ACEOF |
26507 | ||
26508 | echo "$as_me:$LINENO: result: not found" >&5 | |
26509 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 26510 | |
da494b40 | 26511 | fi |
32ddf007 | 26512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
26513 | CFLAGS=$save_CFLAGS |
26514 | ||
93a543aa | 26515 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 26516 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
26517 | TOOLKIT=MOTIF |
26518 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
26519 | fi |
26520 | ||
89fe663f VZ |
26521 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
26522 | if test "$wxUSE_LIBXPM" = "sys"; then | |
26523 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26524 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26525 | ||
26526 | ac_find_libraries= | |
26527 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26528 | do | |
26529 | for ac_extension in a so sl dylib; do | |
26530 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26531 | ac_find_libraries=$ac_dir | |
26532 | break 2 | |
26533 | fi | |
26534 | done | |
26535 | done | |
26536 | ||
26537 | if test "$ac_find_libraries" != "" ; then | |
26538 | ||
26539 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26540 | result=$? | |
26541 | if test $result = 0; then | |
26542 | ac_path_to_link="" | |
26543 | else | |
26544 | ac_path_to_link=" -L$ac_find_libraries" | |
26545 | fi | |
26546 | ||
26547 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26548 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26549 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26550 | ||
26551 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26552 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26553 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26555 | else | |
26556 | ||
26557 | save_CFLAGS=$CFLAGS | |
26558 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26559 | ||
26560 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26561 | /* confdefs.h. */ |
26562 | _ACEOF | |
26563 | cat confdefs.h >>conftest.$ac_ext | |
26564 | cat >>conftest.$ac_ext <<_ACEOF | |
26565 | /* end confdefs.h. */ | |
26566 | ||
26567 | #include <X11/xpm.h> | |
26568 | ||
26569 | int | |
26570 | main () | |
26571 | { | |
26572 | ||
26573 | int version; | |
26574 | version = XpmLibraryVersion(); | |
26575 | ||
26576 | ; | |
26577 | return 0; | |
26578 | } | |
26579 | _ACEOF | |
26580 | rm -f conftest.$ac_objext | |
26581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26582 | (eval $ac_compile) 2>conftest.er1 |
89fe663f | 26583 | ac_status=$? |
32ddf007 VS |
26584 | grep -v '^ *+' conftest.er1 >conftest.err |
26585 | rm -f conftest.er1 | |
26586 | cat conftest.err >&5 | |
89fe663f VZ |
26587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26588 | (exit $ac_status); } && | |
32ddf007 VS |
26589 | { ac_try='test -z "$ac_c_werror_flag" |
26590 | || test ! -s conftest.err' | |
26591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26592 | (eval $ac_try) 2>&5 | |
26593 | ac_status=$? | |
26594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26595 | (exit $ac_status); }; } && | |
26596 | { ac_try='test -s conftest.$ac_objext' | |
89fe663f VZ |
26597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26598 | (eval $ac_try) 2>&5 | |
26599 | ac_status=$? | |
26600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26601 | (exit $ac_status); }; }; then | |
26602 | wx_cv_x11_xpm_h=yes | |
26603 | else | |
26604 | echo "$as_me: failed program was:" >&5 | |
26605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26606 | ||
26607 | wx_cv_x11_xpm_h=no | |
26608 | ||
26609 | fi | |
32ddf007 | 26610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26611 | |
26612 | CFLAGS=$save_CFLAGS | |
26613 | ||
26614 | ||
26615 | fi | |
26616 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26617 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26618 | ||
26619 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 26620 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
26621 | cat >>confdefs.h <<\_ACEOF |
26622 | #define wxHAVE_LIB_XPM 1 | |
26623 | _ACEOF | |
26624 | ||
26625 | else | |
26626 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26627 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26628 | fi | |
26629 | fi | |
26630 | ||
26631 | fi | |
f7f78039 | 26632 | |
89fe663f VZ |
26633 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
26634 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26635 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26637 | else | |
26638 | ac_check_lib_save_LIBS=$LIBS | |
26639 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26640 | cat >conftest.$ac_ext <<_ACEOF | |
89fe663f VZ |
26641 | /* confdefs.h. */ |
26642 | _ACEOF | |
26643 | cat confdefs.h >>conftest.$ac_ext | |
26644 | cat >>conftest.$ac_ext <<_ACEOF | |
26645 | /* end confdefs.h. */ | |
26646 | ||
26647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26648 | #ifdef __cplusplus | |
26649 | extern "C" | |
26650 | #endif | |
26651 | /* We use char because int might match the return type of a gcc2 | |
26652 | builtin and then its argument prototype would still apply. */ | |
26653 | char XShapeQueryExtension (); | |
26654 | int | |
26655 | main () | |
26656 | { | |
26657 | XShapeQueryExtension (); | |
26658 | ; | |
26659 | return 0; | |
26660 | } | |
26661 | _ACEOF | |
26662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 26664 | (eval $ac_link) 2>conftest.er1 |
89fe663f | 26665 | ac_status=$? |
32ddf007 VS |
26666 | grep -v '^ *+' conftest.er1 >conftest.err |
26667 | rm -f conftest.er1 | |
26668 | cat conftest.err >&5 | |
89fe663f VZ |
26669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26670 | (exit $ac_status); } && | |
32ddf007 VS |
26671 | { ac_try='test -z "$ac_c_werror_flag" |
26672 | || test ! -s conftest.err' | |
26673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26674 | (eval $ac_try) 2>&5 | |
26675 | ac_status=$? | |
26676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26677 | (exit $ac_status); }; } && | |
26678 | { ac_try='test -s conftest$ac_exeext' | |
89fe663f VZ |
26679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26680 | (eval $ac_try) 2>&5 | |
26681 | ac_status=$? | |
26682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26683 | (exit $ac_status); }; }; then | |
26684 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26685 | else | |
26686 | echo "$as_me: failed program was:" >&5 | |
26687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26688 | ||
26689 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26690 | fi | |
32ddf007 VS |
26691 | rm -f conftest.err conftest.$ac_objext \ |
26692 | conftest$ac_exeext conftest.$ac_ext | |
89fe663f VZ |
26693 | LIBS=$ac_check_lib_save_LIBS |
26694 | fi | |
26695 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26696 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26697 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26698 | ||
26699 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26700 | wxHAVE_XEXT_LIB=1 | |
26701 | ||
26702 | fi | |
26703 | ||
26704 | ||
26705 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26706 | save_CFLAGS="$CFLAGS" | |
26707 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26708 | ||
26709 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 26710 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 26711 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
26712 | /* confdefs.h. */ |
26713 | _ACEOF | |
26714 | cat confdefs.h >>conftest.$ac_ext | |
26715 | cat >>conftest.$ac_ext <<_ACEOF | |
26716 | /* end confdefs.h. */ | |
26717 | ||
89fe663f VZ |
26718 | #include <X11/Xlib.h> |
26719 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
26720 | |
26721 | int | |
26722 | main () | |
26723 | { | |
f7f78039 | 26724 | |
89fe663f VZ |
26725 | int dummy1, dummy2; |
26726 | XShapeQueryExtension((Display*)NULL, | |
26727 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
26728 | |
26729 | ; | |
26730 | return 0; | |
26731 | } | |
26732 | _ACEOF | |
26733 | rm -f conftest.$ac_objext | |
26734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26735 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26736 | ac_status=$? |
32ddf007 VS |
26737 | grep -v '^ *+' conftest.er1 >conftest.err |
26738 | rm -f conftest.er1 | |
26739 | cat conftest.err >&5 | |
e6cc62c6 VS |
26740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26741 | (exit $ac_status); } && | |
32ddf007 VS |
26742 | { ac_try='test -z "$ac_c_werror_flag" |
26743 | || test ! -s conftest.err' | |
26744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26745 | (eval $ac_try) 2>&5 | |
26746 | ac_status=$? | |
26747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26748 | (exit $ac_status); }; } && | |
26749 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26751 | (eval $ac_try) 2>&5 | |
26752 | ac_status=$? | |
26753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26754 | (exit $ac_status); }; }; then | |
26755 | ||
89fe663f | 26756 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 26757 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
26758 | _ACEOF |
26759 | ||
89fe663f | 26760 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 26761 | echo "${ECHO_T}found" >&6 |
f7f78039 | 26762 | |
f7f78039 | 26763 | else |
e6cc62c6 VS |
26764 | echo "$as_me: failed program was:" >&5 |
26765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26766 | ||
26767 | ||
89fe663f | 26768 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
26769 | echo "${ECHO_T}not found" >&6 |
26770 | ||
f7f78039 | 26771 | fi |
32ddf007 | 26772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
26773 | CFLAGS="$save_CFLAGS" |
26774 | ||
26775 | fi | |
21d1c967 GD |
26776 | fi |
26777 | ||
26778 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
26779 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
26780 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26781 | if test "$GCC" = yes; then | |
26782 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26783 | echo "${ECHO_T}gcc" >&6 | |
26784 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26785 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26786 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26787 | echo "${ECHO_T}xlc" >&6 | |
26788 | CPPFLAGS_PASCAL="-qmacpstr" | |
26789 | else | |
26790 | echo "$as_me:$LINENO: result: none" >&5 | |
26791 | echo "${ECHO_T}none" >&6 | |
26792 | fi | |
26793 | ||
26794 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 26795 | |
0c98a14e | 26796 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
26797 | TOOLKIT=MAC |
26798 | GUIDIST=MACX_DIST | |
cf615ebb | 26799 | WXBASEPORT="_carbon" |
21d1c967 GD |
26800 | fi |
26801 | ||
ac0c4cc3 DE |
26802 | if test "$wxUSE_COCOA" = 1; then |
26803 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
26804 | TOOLKIT=COCOA | |
26805 | GUIDIST=COCOA_DIST | |
26806 | fi | |
26807 | ||
21d1c967 GD |
26808 | if test "$wxUSE_PM" = 1; then |
26809 | TOOLKIT=PM | |
26810 | GUIDIST=GTK_DIST | |
26811 | fi | |
26812 | ||
26813 | if test "$TOOLKIT" = "PM" ; then | |
26814 | TOOLKIT_DIR="os2" | |
26815 | else | |
26816 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26817 | fi | |
26818 | ||
26819 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
26820 | ||
26821 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
26822 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
26823 | ||
26824 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
26825 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
26826 | ||
26827 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
26828 | if test "$wxUSE_X11" = 1; then | |
26829 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
26830 | else | |
26831 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26832 | fi | |
26833 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
26834 | WIDGET_SET=univ | |
26835 | else | |
26836 | ALL_OBJECTS="\$(GUIOBJS)" | |
26837 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26838 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26839 | fi | |
26840 | ||
26841 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
26842 | ||
26843 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
26844 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
26845 | fi | |
26846 | ||
26847 | if test "$wxUSE_HTML" = "yes"; then | |
26848 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
26849 | fi | |
26850 | ||
26851 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
26852 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
26853 | fi | |
26854 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
26855 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
26856 | fi | |
26857 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
26858 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
26859 | fi | |
26860 | ||
26861 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26862 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 26863 | else |
21d1c967 GD |
26864 | USE_GUI=0 |
26865 | ||
26866 | TOOLKIT_DIR="base" | |
26867 | ||
26868 | if test "$USE_WIN32" = 1 ; then | |
26869 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
26870 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
26871 | ||
26872 | TOOLKIT="MSW" | |
26873 | else | |
26874 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
26875 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
26876 | fi | |
26877 | ||
26878 | ALL_SOURCES="\$(ALL_SOURCES)" | |
26879 | ALL_HEADERS="\$(ALL_HEADERS)" | |
26880 | ||
26881 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
26882 | ||
26883 | GUIDIST="BASE_DIST" | |
26884 | DISTDIR="wxBase" | |
d836ee96 VZ |
26885 | fi |
26886 | ||
8284b0c5 | 26887 | |
8647bec6 RG |
26888 | |
26889 | ||
26890 | IODBC_C_SRC="" | |
26891 | ||
26892 | ||
26893 | if test "$TOOLKIT" != "MSW" ; then | |
26894 | ||
bb41dcbe | 26895 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 26896 | |
bb41dcbe | 26897 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
26898 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
26899 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26900 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26902 | fi | |
26903 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26904 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26905 | else | |
26906 | # Is the header compilable? | |
26907 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26908 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26909 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26910 | /* confdefs.h. */ |
26911 | _ACEOF | |
26912 | cat confdefs.h >>conftest.$ac_ext | |
26913 | cat >>conftest.$ac_ext <<_ACEOF | |
26914 | /* end confdefs.h. */ | |
26915 | $ac_includes_default | |
8647bec6 | 26916 | #include <sql.h> |
e6cc62c6 VS |
26917 | _ACEOF |
26918 | rm -f conftest.$ac_objext | |
26919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 26920 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 26921 | ac_status=$? |
32ddf007 VS |
26922 | grep -v '^ *+' conftest.er1 >conftest.err |
26923 | rm -f conftest.er1 | |
26924 | cat conftest.err >&5 | |
e6cc62c6 VS |
26925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26926 | (exit $ac_status); } && | |
32ddf007 VS |
26927 | { ac_try='test -z "$ac_c_werror_flag" |
26928 | || test ! -s conftest.err' | |
26929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26930 | (eval $ac_try) 2>&5 | |
26931 | ac_status=$? | |
26932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26933 | (exit $ac_status); }; } && | |
26934 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
26935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26936 | (eval $ac_try) 2>&5 | |
26937 | ac_status=$? | |
26938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26939 | (exit $ac_status); }; }; then | |
26940 | ac_header_compiler=yes | |
26941 | else | |
26942 | echo "$as_me: failed program was:" >&5 | |
26943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26944 | ||
26945 | ac_header_compiler=no | |
26946 | fi | |
32ddf007 | 26947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26950 | ||
26951 | # Is the header present? | |
26952 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26953 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26954 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
26955 | /* confdefs.h. */ |
26956 | _ACEOF | |
26957 | cat confdefs.h >>conftest.$ac_ext | |
26958 | cat >>conftest.$ac_ext <<_ACEOF | |
26959 | /* end confdefs.h. */ | |
26960 | #include <sql.h> | |
26961 | _ACEOF | |
26962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26964 | ac_status=$? | |
26965 | grep -v '^ *+' conftest.er1 >conftest.err | |
26966 | rm -f conftest.er1 | |
26967 | cat conftest.err >&5 | |
26968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26969 | (exit $ac_status); } >/dev/null; then | |
26970 | if test -s conftest.err; then | |
26971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 26972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
26973 | else |
26974 | ac_cpp_err= | |
26975 | fi | |
26976 | else | |
26977 | ac_cpp_err=yes | |
26978 | fi | |
26979 | if test -z "$ac_cpp_err"; then | |
26980 | ac_header_preproc=yes | |
26981 | else | |
26982 | echo "$as_me: failed program was:" >&5 | |
26983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26984 | ||
26985 | ac_header_preproc=no | |
26986 | fi | |
26987 | rm -f conftest.err conftest.$ac_ext | |
26988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26990 | ||
26991 | # So? What about this header? | |
32ddf007 VS |
26992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26993 | yes:no: ) | |
e6cc62c6 VS |
26994 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26995 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
26996 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26997 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26998 | ac_header_preproc=yes | |
e6cc62c6 | 26999 | ;; |
32ddf007 | 27000 | no:yes:* ) |
e6cc62c6 VS |
27001 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
27002 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
27003 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
27004 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
27005 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
27006 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
27007 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27008 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
27009 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
27010 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
27011 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
27012 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
27013 | ( |
27014 | cat <<\_ASBOX | |
32ddf007 VS |
27015 | ## ----------------------------------------- ## |
27016 | ## Report this to wx-dev@lists.wxwindows.org ## | |
27017 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
27018 | _ASBOX |
27019 | ) | | |
27020 | sed "s/^/$as_me: WARNING: /" >&2 | |
27021 | ;; | |
27022 | esac | |
27023 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
27024 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
27025 | if test "${ac_cv_header_sql_h+set}" = set; then | |
27026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 27027 | else |
e6cc62c6 VS |
27028 | ac_cv_header_sql_h=$ac_header_preproc |
27029 | fi | |
27030 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
27031 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
27032 | ||
bb41dcbe VS |
27033 | fi |
27034 | if test $ac_cv_header_sql_h = yes; then | |
27035 | found_sql_h=1 | |
8647bec6 RG |
27036 | fi |
27037 | ||
e6cc62c6 | 27038 | |
bb41dcbe | 27039 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
27040 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
27041 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
27042 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 27043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 27044 | else |
bb41dcbe | 27045 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 27046 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 27047 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27048 | /* confdefs.h. */ |
27049 | _ACEOF | |
27050 | cat confdefs.h >>conftest.$ac_ext | |
27051 | cat >>conftest.$ac_ext <<_ACEOF | |
27052 | /* end confdefs.h. */ | |
27053 | ||
8647bec6 | 27054 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27055 | #ifdef __cplusplus |
27056 | extern "C" | |
27057 | #endif | |
8647bec6 | 27058 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 27059 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 27060 | char SQLAllocEnv (); |
e6cc62c6 VS |
27061 | int |
27062 | main () | |
27063 | { | |
e46d2a18 | 27064 | SQLAllocEnv (); |
e6cc62c6 VS |
27065 | ; |
27066 | return 0; | |
27067 | } | |
27068 | _ACEOF | |
27069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27071 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27072 | ac_status=$? |
32ddf007 VS |
27073 | grep -v '^ *+' conftest.er1 >conftest.err |
27074 | rm -f conftest.er1 | |
27075 | cat conftest.err >&5 | |
e6cc62c6 VS |
27076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27077 | (exit $ac_status); } && | |
32ddf007 VS |
27078 | { ac_try='test -z "$ac_c_werror_flag" |
27079 | || test ! -s conftest.err' | |
27080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27081 | (eval $ac_try) 2>&5 | |
27082 | ac_status=$? | |
27083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27084 | (exit $ac_status); }; } && | |
27085 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27087 | (eval $ac_try) 2>&5 | |
27088 | ac_status=$? | |
27089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27090 | (exit $ac_status); }; }; then | |
e46d2a18 | 27091 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 27092 | else |
e6cc62c6 VS |
27093 | echo "$as_me: failed program was:" >&5 |
27094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27095 | ||
e46d2a18 | 27096 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 27097 | fi |
32ddf007 VS |
27098 | rm -f conftest.err conftest.$ac_objext \ |
27099 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
27100 | LIBS=$ac_check_lib_save_LIBS |
27101 | fi | |
e46d2a18 VS |
27102 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
27103 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
27104 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
27105 | ODBC_LINK=" -liodbc" |
27106 | else | |
27107 | ||
e46d2a18 VS |
27108 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
27109 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
27110 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
27111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
27112 | else | |
27113 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 27114 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 27115 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27116 | /* confdefs.h. */ |
27117 | _ACEOF | |
27118 | cat confdefs.h >>conftest.$ac_ext | |
27119 | cat >>conftest.$ac_ext <<_ACEOF | |
27120 | /* end confdefs.h. */ | |
27121 | ||
8647bec6 | 27122 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27123 | #ifdef __cplusplus |
27124 | extern "C" | |
27125 | #endif | |
8647bec6 | 27126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 27127 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 27128 | char SQLAllocEnv (); |
e6cc62c6 VS |
27129 | int |
27130 | main () | |
27131 | { | |
e46d2a18 | 27132 | SQLAllocEnv (); |
e6cc62c6 VS |
27133 | ; |
27134 | return 0; | |
27135 | } | |
27136 | _ACEOF | |
27137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27139 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27140 | ac_status=$? |
32ddf007 VS |
27141 | grep -v '^ *+' conftest.er1 >conftest.err |
27142 | rm -f conftest.er1 | |
27143 | cat conftest.err >&5 | |
e6cc62c6 VS |
27144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27145 | (exit $ac_status); } && | |
32ddf007 VS |
27146 | { ac_try='test -z "$ac_c_werror_flag" |
27147 | || test ! -s conftest.err' | |
27148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27149 | (eval $ac_try) 2>&5 | |
27150 | ac_status=$? | |
27151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27152 | (exit $ac_status); }; } && | |
27153 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27155 | (eval $ac_try) 2>&5 | |
27156 | ac_status=$? | |
27157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27158 | (exit $ac_status); }; }; then | |
e46d2a18 | 27159 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 27160 | else |
e6cc62c6 VS |
27161 | echo "$as_me: failed program was:" >&5 |
27162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27163 | ||
e46d2a18 | 27164 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 27165 | fi |
32ddf007 VS |
27166 | rm -f conftest.err conftest.$ac_objext \ |
27167 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe | 27168 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 27169 | fi |
e46d2a18 VS |
27170 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
27171 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
27172 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
27173 | ODBC_LINK=" -lunixodbc" |
27174 | else | |
27175 | ||
e46d2a18 VS |
27176 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
27177 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
27178 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
27179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
27180 | else | |
27181 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 27182 | LIBS="-lodbc $LIBS" |
bb41dcbe | 27183 | cat >conftest.$ac_ext <<_ACEOF |
bb41dcbe VS |
27184 | /* confdefs.h. */ |
27185 | _ACEOF | |
27186 | cat confdefs.h >>conftest.$ac_ext | |
27187 | cat >>conftest.$ac_ext <<_ACEOF | |
27188 | /* end confdefs.h. */ | |
e6cc62c6 | 27189 | |
bb41dcbe VS |
27190 | /* Override any gcc2 internal prototype to avoid an error. */ |
27191 | #ifdef __cplusplus | |
27192 | extern "C" | |
27193 | #endif | |
27194 | /* We use char because int might match the return type of a gcc2 | |
27195 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 27196 | char SQLAllocEnv (); |
bb41dcbe VS |
27197 | int |
27198 | main () | |
27199 | { | |
e46d2a18 | 27200 | SQLAllocEnv (); |
bb41dcbe VS |
27201 | ; |
27202 | return 0; | |
27203 | } | |
27204 | _ACEOF | |
27205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27207 | (eval $ac_link) 2>conftest.er1 |
bb41dcbe | 27208 | ac_status=$? |
32ddf007 VS |
27209 | grep -v '^ *+' conftest.er1 >conftest.err |
27210 | rm -f conftest.er1 | |
27211 | cat conftest.err >&5 | |
bb41dcbe VS |
27212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27213 | (exit $ac_status); } && | |
32ddf007 VS |
27214 | { ac_try='test -z "$ac_c_werror_flag" |
27215 | || test ! -s conftest.err' | |
27216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27217 | (eval $ac_try) 2>&5 | |
27218 | ac_status=$? | |
27219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27220 | (exit $ac_status); }; } && | |
27221 | { ac_try='test -s conftest$ac_exeext' | |
bb41dcbe VS |
27222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27223 | (eval $ac_try) 2>&5 | |
27224 | ac_status=$? | |
27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27226 | (exit $ac_status); }; }; then | |
e46d2a18 | 27227 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 27228 | else |
bb41dcbe VS |
27229 | echo "$as_me: failed program was:" >&5 |
27230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27231 | ||
e46d2a18 | 27232 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 27233 | fi |
32ddf007 VS |
27234 | rm -f conftest.err conftest.$ac_objext \ |
27235 | conftest$ac_exeext conftest.$ac_ext | |
bb41dcbe VS |
27236 | LIBS=$ac_check_lib_save_LIBS |
27237 | fi | |
e46d2a18 VS |
27238 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
27239 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
27240 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
27241 | ODBC_LINK=" -lodbc" |
27242 | fi | |
27243 | ||
27244 | ||
27245 | fi | |
e6cc62c6 | 27246 | |
e6cc62c6 | 27247 | |
8647bec6 | 27248 | fi |
e6cc62c6 | 27249 | |
fd3d7534 | 27250 | fi |
bb41dcbe VS |
27251 | if test "x$ODBC_LINK" = "x" ; then |
27252 | if test "$wxUSE_ODBC" = "sys" ; then | |
27253 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
27254 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
27255 | { (exit 1); exit 1; }; } | |
27256 | else | |
27257 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
27258 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
27259 | wxUSE_ODBC=builtin | |
27260 | fi | |
27261 | else | |
27262 | wxUSE_ODBC=sys | |
8647bec6 | 27263 | fi |
8647bec6 | 27264 | fi |
bb41dcbe VS |
27265 | if test "$wxUSE_ODBC" != "no" ; then |
27266 | cat >>confdefs.h <<\_ACEOF | |
27267 | #define wxUSE_ODBC 1 | |
27268 | _ACEOF | |
e6cc62c6 | 27269 | |
0bdb08e7 VS |
27270 | if test "$wxUSE_ODBC" = "builtin" ; then |
27271 | cat >>confdefs.h <<\_ACEOF | |
27272 | #define wxUSE_BUILTIN_IODBC 1 | |
27273 | _ACEOF | |
27274 | ||
27275 | fi | |
bb41dcbe VS |
27276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
27277 | ||
27278 | WXODBCFLAG="-D_IODBC_" | |
27279 | fi | |
6232543b | 27280 | fi |
21d1c967 GD |
27281 | |
27282 | if test "$wxUSE_REGEX" = "builtin" ; then | |
27283 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 27284 | fi |
21d1c967 GD |
27285 | if test "$wxUSE_ZLIB" = "builtin" ; then |
27286 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
27287 | fi |
27288 | ||
74500461 VS |
27289 | if test "$wxUSE_DISPLAY" = "yes"; then |
27290 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
27291 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
27292 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
27293 | ||
27294 | ac_find_libraries= | |
27295 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27296 | do | |
27297 | for ac_extension in a so sl dylib; do | |
27298 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
27299 | ac_find_libraries=$ac_dir | |
27300 | break 2 | |
27301 | fi | |
27302 | done | |
27303 | done | |
27304 | ||
27305 | if test "$ac_find_libraries" != "" ; then | |
27306 | ||
27307 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27308 | result=$? | |
27309 | if test $result = 0; then | |
27310 | ac_path_to_link="" | |
27311 | else | |
27312 | ac_path_to_link=" -L$ac_find_libraries" | |
27313 | fi | |
27314 | ||
27315 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27316 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27317 | fi | |
27318 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
27319 | echo "$as_me:$LINENO: result: yes" >&5 | |
27320 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
27321 | |
27322 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
27323 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
27324 | ||
27325 | ac_find_libraries= | |
27326 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27327 | do | |
27328 | for ac_extension in a so sl dylib; do | |
27329 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27330 | ac_find_libraries=$ac_dir | |
27331 | break 2 | |
27332 | fi | |
27333 | done | |
27334 | done | |
27335 | ||
27336 | if test "$ac_find_libraries" != "" ; then | |
27337 | echo "$as_me:$LINENO: result: yes" >&5 | |
27338 | echo "${ECHO_T}yes" >&6 | |
27339 | ||
27340 | for ac_header in X11/extensions/xf86vmode.h | |
27341 | do | |
27342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27347 | else | |
27348 | cat >conftest.$ac_ext <<_ACEOF | |
27349 | /* confdefs.h. */ | |
27350 | _ACEOF | |
27351 | cat confdefs.h >>conftest.$ac_ext | |
27352 | cat >>conftest.$ac_ext <<_ACEOF | |
27353 | /* end confdefs.h. */ | |
27354 | ||
27355 | #if HAVE_X11_XLIB_H | |
27356 | #include <X11/Xlib.h> | |
27357 | #endif | |
27358 | ||
27359 | ||
27360 | #include <$ac_header> | |
27361 | _ACEOF | |
27362 | rm -f conftest.$ac_objext | |
27363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27364 | (eval $ac_compile) 2>conftest.er1 |
505c8ccd | 27365 | ac_status=$? |
32ddf007 VS |
27366 | grep -v '^ *+' conftest.er1 >conftest.err |
27367 | rm -f conftest.er1 | |
27368 | cat conftest.err >&5 | |
505c8ccd VS |
27369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27370 | (exit $ac_status); } && | |
32ddf007 VS |
27371 | { ac_try='test -z "$ac_c_werror_flag" |
27372 | || test ! -s conftest.err' | |
27373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27374 | (eval $ac_try) 2>&5 | |
27375 | ac_status=$? | |
27376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27377 | (exit $ac_status); }; } && | |
27378 | { ac_try='test -s conftest.$ac_objext' | |
505c8ccd VS |
27379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27380 | (eval $ac_try) 2>&5 | |
27381 | ac_status=$? | |
27382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27383 | (exit $ac_status); }; }; then | |
27384 | eval "$as_ac_Header=yes" | |
27385 | else | |
27386 | echo "$as_me: failed program was:" >&5 | |
27387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27388 | ||
27389 | eval "$as_ac_Header=no" | |
27390 | fi | |
32ddf007 | 27391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
27392 | fi |
27393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27394 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27395 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27396 | cat >>confdefs.h <<_ACEOF | |
27397 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27398 | _ACEOF | |
27399 | ||
27400 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27401 | ||
27402 | fi | |
27403 | ||
27404 | done | |
27405 | ||
27406 | else | |
27407 | echo "$as_me:$LINENO: result: no" >&5 | |
27408 | echo "${ECHO_T}no" >&6 | |
27409 | fi | |
27410 | ||
74500461 VS |
27411 | else |
27412 | echo "$as_me:$LINENO: result: no" >&5 | |
27413 | echo "${ECHO_T}no" >&6 | |
27414 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
27415 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
27416 | wxUSE_DISPLAY="no" | |
27417 | fi | |
27418 | fi | |
27419 | fi | |
27420 | ||
8284b0c5 | 27421 | |
4d264332 | 27422 | USE_OPENGL=0 |
21d1c967 | 27423 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 27424 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
27425 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
27426 | elif test "$wxUSE_MSW" = 1; then | |
27427 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27428 | else | |
01aa5863 VS |
27429 | |
27430 | ||
27431 | ac_find_includes= | |
27432 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27433 | do | |
27434 | if test -f "$ac_dir/GL/gl.h"; then | |
27435 | ac_find_includes=$ac_dir | |
27436 | break | |
27437 | fi | |
27438 | done | |
27439 | ||
27440 | if test "$ac_find_includes" != "" ; then | |
27441 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27442 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
27443 | |
27444 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27445 | ac_path_to_include="" | |
27446 | else | |
27447 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27448 | result=$? | |
27449 | if test $result = 0; then | |
27450 | ac_path_to_include="" | |
27451 | else | |
27452 | ac_path_to_include=" -I$ac_find_includes" | |
27453 | fi | |
27454 | fi | |
27455 | ||
27456 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
27457 | fi |
27458 | ||
e6cc62c6 VS |
27459 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
27460 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27461 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27462 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27464 | fi | |
27465 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27466 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27467 | else | |
27468 | # Is the header compilable? | |
27469 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27470 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27471 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27472 | /* confdefs.h. */ |
27473 | _ACEOF | |
27474 | cat confdefs.h >>conftest.$ac_ext | |
27475 | cat >>conftest.$ac_ext <<_ACEOF | |
27476 | /* end confdefs.h. */ | |
27477 | $ac_includes_default | |
21d1c967 | 27478 | #include <GL/gl.h> |
e6cc62c6 VS |
27479 | _ACEOF |
27480 | rm -f conftest.$ac_objext | |
27481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 27482 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 27483 | ac_status=$? |
32ddf007 VS |
27484 | grep -v '^ *+' conftest.er1 >conftest.err |
27485 | rm -f conftest.er1 | |
27486 | cat conftest.err >&5 | |
e6cc62c6 VS |
27487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27488 | (exit $ac_status); } && | |
32ddf007 VS |
27489 | { ac_try='test -z "$ac_c_werror_flag" |
27490 | || test ! -s conftest.err' | |
27491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27492 | (eval $ac_try) 2>&5 | |
27493 | ac_status=$? | |
27494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27495 | (exit $ac_status); }; } && | |
27496 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
27497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27498 | (eval $ac_try) 2>&5 | |
27499 | ac_status=$? | |
27500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27501 | (exit $ac_status); }; }; then | |
27502 | ac_header_compiler=yes | |
27503 | else | |
27504 | echo "$as_me: failed program was:" >&5 | |
27505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27506 | ||
27507 | ac_header_compiler=no | |
27508 | fi | |
32ddf007 | 27509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27510 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27511 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27512 | ||
27513 | # Is the header present? | |
27514 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27515 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27516 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27517 | /* confdefs.h. */ |
27518 | _ACEOF | |
27519 | cat confdefs.h >>conftest.$ac_ext | |
27520 | cat >>conftest.$ac_ext <<_ACEOF | |
27521 | /* end confdefs.h. */ | |
27522 | #include <GL/gl.h> | |
27523 | _ACEOF | |
27524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27526 | ac_status=$? | |
27527 | grep -v '^ *+' conftest.er1 >conftest.err | |
27528 | rm -f conftest.er1 | |
27529 | cat conftest.err >&5 | |
27530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27531 | (exit $ac_status); } >/dev/null; then | |
27532 | if test -s conftest.err; then | |
27533 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 27534 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
27535 | else |
27536 | ac_cpp_err= | |
27537 | fi | |
27538 | else | |
27539 | ac_cpp_err=yes | |
27540 | fi | |
27541 | if test -z "$ac_cpp_err"; then | |
27542 | ac_header_preproc=yes | |
27543 | else | |
27544 | echo "$as_me: failed program was:" >&5 | |
27545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27546 | ||
27547 | ac_header_preproc=no | |
27548 | fi | |
27549 | rm -f conftest.err conftest.$ac_ext | |
27550 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27551 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27552 | ||
27553 | # So? What about this header? | |
32ddf007 VS |
27554 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27555 | yes:no: ) | |
e6cc62c6 VS |
27556 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27557 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
27558 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27559 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27560 | ac_header_preproc=yes | |
e6cc62c6 | 27561 | ;; |
32ddf007 | 27562 | no:yes:* ) |
e6cc62c6 VS |
27563 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27564 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
32ddf007 VS |
27565 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27566 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27567 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27568 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27569 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27570 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
27571 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27572 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
27573 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27574 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
27575 | ( |
27576 | cat <<\_ASBOX | |
32ddf007 VS |
27577 | ## ----------------------------------------- ## |
27578 | ## Report this to wx-dev@lists.wxwindows.org ## | |
27579 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
27580 | _ASBOX |
27581 | ) | | |
27582 | sed "s/^/$as_me: WARNING: /" >&2 | |
27583 | ;; | |
27584 | esac | |
27585 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27586 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27587 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27589 | else | |
27590 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 27591 | fi |
e6cc62c6 VS |
27592 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
27593 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27594 | ||
698dcdb6 | 27595 | fi |
e6cc62c6 VS |
27596 | if test $ac_cv_header_GL_gl_h = yes; then |
27597 | ||
89e3b3e4 VZ |
27598 | found_gl=0 |
27599 | ||
e6cc62c6 VS |
27600 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
27601 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27602 | ||
21d1c967 | 27603 | ac_find_libraries= |
2b5f62a0 | 27604 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27605 | do |
27606 | for ac_extension in a so sl dylib; do | |
27607 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27608 | ac_find_libraries=$ac_dir | |
27609 | break 2 | |
27610 | fi | |
27611 | done | |
27612 | done | |
27613 | ||
27614 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27615 | |
21d1c967 GD |
27616 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27617 | result=$? | |
27618 | if test $result = 0; then | |
27619 | ac_path_to_link="" | |
27620 | else | |
27621 | ac_path_to_link=" -L$ac_find_libraries" | |
27622 | fi | |
27623 | ||
89e3b3e4 VZ |
27624 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
27625 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 27626 | fi |
89e3b3e4 | 27627 | |
e6cc62c6 | 27628 | |
89e3b3e4 VZ |
27629 | ac_find_libraries= |
27630 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27631 | do | |
27632 | for ac_extension in a so sl dylib; do | |
27633 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27634 | ac_find_libraries=$ac_dir | |
27635 | break 2 | |
27636 | fi | |
27637 | done | |
27638 | done | |
27639 | ||
27640 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27641 | |
89e3b3e4 VZ |
27642 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27643 | result=$? | |
27644 | if test $result = 0; then | |
27645 | ac_path_to_link="" | |
27646 | else | |
27647 | ac_path_to_link=" -L$ac_find_libraries" | |
27648 | fi | |
27649 | ||
27650 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27651 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27652 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27653 | fi | |
27654 | ||
27655 | found_gl=1 | |
27656 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
27657 | echo "$as_me:$LINENO: result: yes" >&5 |
27658 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
27659 | fi |
27660 | fi | |
27661 | ||
bb41dcbe | 27662 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
27663 | echo "$as_me:$LINENO: result: no" >&5 |
27664 | echo "${ECHO_T}no" >&6 | |
27665 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27666 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27667 | ||
21d1c967 | 27668 | ac_find_libraries= |
2b5f62a0 | 27669 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
27670 | do |
27671 | for ac_extension in a so sl dylib; do | |
27672 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27673 | ac_find_libraries=$ac_dir | |
27674 | break 2 | |
27675 | fi | |
27676 | done | |
27677 | done | |
27678 | ||
27679 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 27680 | |
21d1c967 GD |
27681 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
27682 | result=$? | |
27683 | if test $result = 0; then | |
27684 | ac_path_to_link="" | |
27685 | else | |
27686 | ac_path_to_link=" -L$ac_find_libraries" | |
27687 | fi | |
27688 | ||
27689 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27690 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
27691 | echo "$as_me:$LINENO: result: yes" >&5 |
27692 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 27693 | else |
e6cc62c6 VS |
27694 | echo "$as_me:$LINENO: result: no" >&5 |
27695 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
27696 | fi |
27697 | fi | |
e6cc62c6 | 27698 | |
5c6fa7d2 | 27699 | fi |
52127426 | 27700 | |
8284b0c5 | 27701 | |
e6cc62c6 | 27702 | |
21d1c967 | 27703 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
27704 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
27705 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27706 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
27707 | fi |
27708 | fi | |
90dd450c | 27709 | |
21d1c967 | 27710 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 27711 | USE_OPENGL=1 |
e6cc62c6 | 27712 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27713 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 27714 | _ACEOF |
21d1c967 | 27715 | |
e6cc62c6 | 27716 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 27717 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 27718 | _ACEOF |
21d1c967 | 27719 | |
520755bb | 27720 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 27721 | fi |
10f2d63a | 27722 | fi |
21d1c967 GD |
27723 | |
27724 | if test -z "$TOOLKIT_VPATH" ; then | |
27725 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 27726 | fi |
21d1c967 GD |
27727 | |
27728 | if test -n "$TOOLKIT" ; then | |
27729 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27730 | fi | |
27731 | ||
fe0895cf | 27732 | UNICODE=0 |
21d1c967 GD |
27733 | lib_unicode_suffix= |
27734 | if test "$wxUSE_UNICODE" = "yes"; then | |
27735 | lib_unicode_suffix=u | |
fe0895cf | 27736 | UNICODE=1 |
90dd450c | 27737 | fi |
698dcdb6 | 27738 | |
21d1c967 | 27739 | lib_debug_suffix= |
6c67131a | 27740 | DEBUG_FLAG=0 |
21d1c967 GD |
27741 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
27742 | lib_debug_suffix=d | |
6c67131a VS |
27743 | DEBUG_FLAG=1 |
27744 | fi | |
27745 | ||
27746 | DEBUG_INFO=0 | |
27747 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27748 | DEBUG_INFO=1 | |
21d1c967 | 27749 | fi |
698dcdb6 | 27750 | |
1cbb95a2 | 27751 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
27752 | |
27753 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
27754 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
27755 | |
27756 | if test "$cross_compiling" = "yes"; then | |
27757 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
27758 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 27759 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
27760 | fi |
27761 | ||
27762 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
27763 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
27764 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
27765 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
27766 | |
27767 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27768 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
27769 | ||
27770 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
27771 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27772 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
27773 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27774 | ||
27775 | case "${host}" in | |
27776 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
27777 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
27778 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
27779 | ;; |
27780 | ||
27781 | *-*-darwin* ) | |
e6cc62c6 | 27782 | |
05159a27 GD |
27783 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
27784 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
27785 | ||
27786 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
27787 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
27788 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
27789 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
27790 | ||
09d3439c VZ |
27791 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
27792 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 27793 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
27794 | fi |
27795 | ;; | |
27796 | esac | |
27797 | ||
27798 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
27799 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
27800 | ||
27801 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
27802 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
27803 | ||
27804 | if test "$wxUSE_OPENGL" = "yes"; then | |
27805 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
27806 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
27807 | fi | |
27808 | ||
8284b0c5 MB |
27809 | |
27810 | ||
21d1c967 GD |
27811 | if test "$wxUSE_SHARED" = "yes"; then |
27812 | case "${host}" in | |
27813 | *-pc-os2_emx | *-pc-os2-emx | \ | |
27814 | *-pc-msdosdjgpp ) | |
27815 | wxUSE_SHARED=no | |
e6cc62c6 VS |
27816 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
27817 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
27818 | ;; |
27819 | esac | |
27820 | fi | |
27821 | ||
fe0895cf | 27822 | SHARED=0 |
2b5f62a0 | 27823 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 27824 | SHARED=1 |
2b5f62a0 | 27825 | |
e6cc62c6 | 27826 | |
2b5f62a0 VZ |
27827 | found_versioning=no |
27828 | ||
e6cc62c6 | 27829 | |
2b5f62a0 | 27830 | if test $found_versioning = no ; then |
e6cc62c6 VS |
27831 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
27832 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27833 | if test "${wx_cv_version_script+set}" = set; then | |
27834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 27835 | else |
e6cc62c6 | 27836 | |
2b5f62a0 VZ |
27837 | echo "VER_1 { *; };" >conftest.sym |
27838 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 27839 | |
2b5f62a0 VZ |
27840 | if { ac_try=' |
27841 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
27842 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
27843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27844 | (eval $ac_try) 2>&5 | |
27845 | ac_status=$? | |
27846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27847 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
27848 | if test -s conftest.stderr ; then |
27849 | wx_cv_version_script=no | |
27850 | else | |
27851 | wx_cv_version_script=yes | |
27852 | fi | |
27853 | else | |
27854 | wx_cv_version_script=no | |
27855 | fi | |
27856 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 27857 | |
e6cc62c6 VS |
27858 | fi |
27859 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27860 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 27861 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 27862 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
27863 | fi |
27864 | fi | |
21d1c967 | 27865 | |
21d1c967 | 27866 | |
21d1c967 | 27867 | case "${host}" in |
fe0895cf | 27868 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 27869 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 27870 | ;; |
21d1c967 GD |
27871 | |
27872 | *-*-solaris2* ) | |
27873 | if test "$GCC" = yes ; then | |
27874 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
27875 | |
27876 | saveLdflags="$LDFLAGS" | |
27877 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
27878 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
27879 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27880 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
27881 | /* confdefs.h. */ |
27882 | _ACEOF | |
27883 | cat confdefs.h >>conftest.$ac_ext | |
27884 | cat >>conftest.$ac_ext <<_ACEOF | |
27885 | /* end confdefs.h. */ | |
27886 | ||
27887 | int | |
27888 | main () | |
27889 | { | |
fe0895cf | 27890 | |
e6cc62c6 VS |
27891 | ; |
27892 | return 0; | |
27893 | } | |
27894 | _ACEOF | |
27895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27897 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27898 | ac_status=$? |
32ddf007 VS |
27899 | grep -v '^ *+' conftest.er1 >conftest.err |
27900 | rm -f conftest.er1 | |
27901 | cat conftest.err >&5 | |
e6cc62c6 VS |
27902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27903 | (exit $ac_status); } && | |
32ddf007 VS |
27904 | { ac_try='test -z "$ac_c_werror_flag" |
27905 | || test ! -s conftest.err' | |
27906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27907 | (eval $ac_try) 2>&5 | |
27908 | ac_status=$? | |
27909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27910 | (exit $ac_status); }; } && | |
27911 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27913 | (eval $ac_try) 2>&5 | |
27914 | ac_status=$? | |
27915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27916 | (exit $ac_status); }; }; then | |
27917 | ||
27918 | echo "$as_me:$LINENO: result: yes" >&5 | |
27919 | echo "${ECHO_T}yes" >&6 | |
27920 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27921 | ||
27922 | else | |
27923 | echo "$as_me: failed program was:" >&5 | |
27924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27925 | ||
27926 | ||
27927 | echo "$as_me:$LINENO: result: no" >&5 | |
27928 | echo "${ECHO_T}no" >&6 | |
27929 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27930 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 27931 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 27932 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
27933 | /* confdefs.h. */ |
27934 | _ACEOF | |
27935 | cat confdefs.h >>conftest.$ac_ext | |
27936 | cat >>conftest.$ac_ext <<_ACEOF | |
27937 | /* end confdefs.h. */ | |
27938 | ||
27939 | int | |
27940 | main () | |
27941 | { | |
27942 | ||
27943 | ; | |
27944 | return 0; | |
27945 | } | |
27946 | _ACEOF | |
27947 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 27949 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 27950 | ac_status=$? |
32ddf007 VS |
27951 | grep -v '^ *+' conftest.er1 >conftest.err |
27952 | rm -f conftest.er1 | |
27953 | cat conftest.err >&5 | |
e6cc62c6 VS |
27954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27955 | (exit $ac_status); } && | |
32ddf007 VS |
27956 | { ac_try='test -z "$ac_c_werror_flag" |
27957 | || test ! -s conftest.err' | |
27958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27959 | (eval $ac_try) 2>&5 | |
27960 | ac_status=$? | |
27961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27962 | (exit $ac_status); }; } && | |
27963 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
27964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27965 | (eval $ac_try) 2>&5 | |
27966 | ac_status=$? | |
27967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27968 | (exit $ac_status); }; }; then | |
27969 | ||
27970 | echo "$as_me:$LINENO: result: yes" >&5 | |
27971 | echo "${ECHO_T}yes" >&6 | |
27972 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27973 | else | |
27974 | echo "$as_me: failed program was:" >&5 | |
27975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 27976 | |
fe0895cf | 27977 | |
e6cc62c6 VS |
27978 | echo "$as_me:$LINENO: result: no" >&5 |
27979 | echo "${ECHO_T}no" >&6 | |
27980 | ||
fe0895cf | 27981 | fi |
32ddf007 VS |
27982 | rm -f conftest.err conftest.$ac_objext \ |
27983 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
27984 | |
27985 | fi | |
32ddf007 VS |
27986 | rm -f conftest.err conftest.$ac_objext \ |
27987 | conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 27988 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
27989 | else |
27990 | SHARED_LD="${CXX} -G -o" | |
27991 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 27992 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
27993 | fi |
27994 | ;; | |
0f1bc9c2 VS |
27995 | |
27996 | powerpc-*-darwin* ) | |
ef0add05 VS |
27997 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
27998 | cat <<EOF >change-install-names | |
27999 | #!/bin/sh | |
28000 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
28001 | inst_cmd="install_name_tool " | |
28002 | for i in \${libnames} ; do | |
28003 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
28004 | done | |
28005 | \${inst_cmd} \${3} | |
28006 | EOF | |
28007 | chmod +x change-install-names | |
0f1bc9c2 VS |
28008 | ;; |
28009 | ||
21d1c967 GD |
28010 | esac |
28011 | ||
28012 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
28013 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
28014 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
28015 | fi | |
28016 | ||
28017 | WX_TARGET_LIBRARY_TYPE="so" | |
28018 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 28019 | fi |
10f2d63a | 28020 | |
21d1c967 GD |
28021 | if test "$wxUSE_SHARED" = "no"; then |
28022 | ||
28023 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
28024 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
28025 | fi | |
28026 | ||
ac0c4cc3 | 28027 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
28028 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
28029 | fi | |
28030 | ||
28031 | if test "$wxUSE_OPENGL" = "yes"; then | |
28032 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
28033 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
28034 | else | |
28035 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
28036 | fi | |
28037 | ||
28038 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
28039 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
28040 | ||
28041 | WX_TARGET_LIBRARY_TYPE="a" | |
28042 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
28043 | |
28044 | STATIC_FLAG="yes" | |
28045 | else | |
28046 | STATIC_FLAG="no" | |
90dd450c | 28047 | fi |
1e487827 | 28048 | |
09d3439c | 28049 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 28050 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
28051 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
28052 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 28053 | |
21d1c967 GD |
28054 | # Extract the first word of "Rez", so it can be a program name with args. |
28055 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
28056 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
28057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28058 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
28059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 28060 | else |
21d1c967 GD |
28061 | if test -n "$RESCOMP"; then |
28062 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 28063 | else |
e6cc62c6 VS |
28064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
28065 | for as_dir in $PATH | |
28066 | do | |
28067 | IFS=$as_save_IFS | |
28068 | test -z "$as_dir" && as_dir=. | |
28069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28070 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28071 | ac_cv_prog_RESCOMP="Rez" | |
28072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28073 | break 2 | |
28074 | fi | |
28075 | done | |
28076 | done | |
28077 | ||
21d1c967 | 28078 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 28079 | fi |
b93d0d08 | 28080 | fi |
e6cc62c6 | 28081 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 28082 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
28083 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
28084 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 28085 | else |
e6cc62c6 VS |
28086 | echo "$as_me:$LINENO: result: no" >&5 |
28087 | echo "${ECHO_T}no" >&6 | |
90dd450c | 28088 | fi |
b93d0d08 | 28089 | |
21d1c967 GD |
28090 | # Extract the first word of "DeRez", so it can be a program name with args. |
28091 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
28092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
28093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28094 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
28095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 28096 | else |
21d1c967 GD |
28097 | if test -n "$DEREZ"; then |
28098 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 28099 | else |
e6cc62c6 VS |
28100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
28101 | for as_dir in $PATH | |
28102 | do | |
28103 | IFS=$as_save_IFS | |
28104 | test -z "$as_dir" && as_dir=. | |
28105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28106 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28107 | ac_cv_prog_DEREZ="DeRez" | |
28108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28109 | break 2 | |
28110 | fi | |
28111 | done | |
28112 | done | |
28113 | ||
21d1c967 | 28114 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 28115 | fi |
90dd450c | 28116 | fi |
e6cc62c6 | 28117 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 28118 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
28119 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
28120 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 28121 | else |
e6cc62c6 VS |
28122 | echo "$as_me:$LINENO: result: no" >&5 |
28123 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 28124 | fi |
698dcdb6 | 28125 | |
36825681 GD |
28126 | # Extract the first word of "SetFile", so it can be a program name with args. |
28127 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
28128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
28129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28130 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
28131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
28132 | else |
28133 | if test -n "$SETFILE"; then | |
28134 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
28135 | else | |
e6cc62c6 VS |
28136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
28137 | for as_dir in $PATH | |
28138 | do | |
28139 | IFS=$as_save_IFS | |
28140 | test -z "$as_dir" && as_dir=. | |
28141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28143 | ac_cv_prog_SETFILE="SetFile" | |
28144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28145 | break 2 | |
28146 | fi | |
28147 | done | |
28148 | done | |
28149 | ||
36825681 GD |
28150 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
28151 | fi | |
28152 | fi | |
e6cc62c6 | 28153 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 28154 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
28155 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
28156 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 28157 | else |
e6cc62c6 VS |
28158 | echo "$as_me:$LINENO: result: no" >&5 |
28159 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
28160 | fi |
28161 | ||
e6cc62c6 | 28162 | |
09d3439c | 28163 | MACSETFILE="\$(SETFILE)" |
64440d77 | 28164 | |
09d3439c VZ |
28165 | if test "$wxUSE_MAC" = 1; then |
28166 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 28167 | |
09d3439c VZ |
28168 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
28169 | else | |
28170 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
28171 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
28172 | fi | |
64440d77 | 28173 | else |
09d3439c VZ |
28174 | MACSETFILE="@#" |
28175 | MACRESWXCONFIG="#" | |
64440d77 | 28176 | |
09d3439c | 28177 | if test "$wxUSE_PM" = 1; then |
36825681 | 28178 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
28179 | else |
28180 | MACRESCOMP="@#" | |
90dd450c | 28181 | fi |
4f14bcd8 | 28182 | fi |
10f2d63a | 28183 | |
8284b0c5 | 28184 | |
f93ca9fd | 28185 | |
e6cc62c6 VS |
28186 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
28187 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
28188 | if test "${ac_cv_type_mode_t+set}" = set; then | |
28189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 28190 | else |
e6cc62c6 | 28191 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28192 | /* confdefs.h. */ |
28193 | _ACEOF | |
28194 | cat confdefs.h >>conftest.$ac_ext | |
28195 | cat >>conftest.$ac_ext <<_ACEOF | |
28196 | /* end confdefs.h. */ | |
28197 | $ac_includes_default | |
28198 | int | |
28199 | main () | |
28200 | { | |
28201 | if ((mode_t *) 0) | |
28202 | return 0; | |
28203 | if (sizeof (mode_t)) | |
28204 | return 0; | |
28205 | ; | |
28206 | return 0; | |
28207 | } | |
28208 | _ACEOF | |
28209 | rm -f conftest.$ac_objext | |
28210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28211 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28212 | ac_status=$? |
32ddf007 VS |
28213 | grep -v '^ *+' conftest.er1 >conftest.err |
28214 | rm -f conftest.er1 | |
28215 | cat conftest.err >&5 | |
e6cc62c6 VS |
28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28217 | (exit $ac_status); } && | |
32ddf007 VS |
28218 | { ac_try='test -z "$ac_c_werror_flag" |
28219 | || test ! -s conftest.err' | |
28220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28221 | (eval $ac_try) 2>&5 | |
28222 | ac_status=$? | |
28223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28224 | (exit $ac_status); }; } && | |
28225 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28227 | (eval $ac_try) 2>&5 | |
28228 | ac_status=$? | |
28229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28230 | (exit $ac_status); }; }; then | |
28231 | ac_cv_type_mode_t=yes | |
a0b9e27f | 28232 | else |
e6cc62c6 VS |
28233 | echo "$as_me: failed program was:" >&5 |
28234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28235 | |
e6cc62c6 | 28236 | ac_cv_type_mode_t=no |
a0b9e27f | 28237 | fi |
32ddf007 | 28238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
52127426 | 28239 | fi |
e6cc62c6 VS |
28240 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
28241 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
28242 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
28243 | : |
28244 | else | |
a0b9e27f | 28245 | |
e6cc62c6 VS |
28246 | cat >>confdefs.h <<_ACEOF |
28247 | #define mode_t int | |
28248 | _ACEOF | |
8284b0c5 MB |
28249 | |
28250 | fi | |
28251 | ||
e6cc62c6 VS |
28252 | echo "$as_me:$LINENO: checking for off_t" >&5 |
28253 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28254 | if test "${ac_cv_type_off_t+set}" = set; then | |
28255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28256 | else |
e6cc62c6 | 28257 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28258 | /* confdefs.h. */ |
28259 | _ACEOF | |
28260 | cat confdefs.h >>conftest.$ac_ext | |
28261 | cat >>conftest.$ac_ext <<_ACEOF | |
28262 | /* end confdefs.h. */ | |
28263 | $ac_includes_default | |
28264 | int | |
28265 | main () | |
28266 | { | |
28267 | if ((off_t *) 0) | |
28268 | return 0; | |
28269 | if (sizeof (off_t)) | |
28270 | return 0; | |
28271 | ; | |
28272 | return 0; | |
28273 | } | |
28274 | _ACEOF | |
28275 | rm -f conftest.$ac_objext | |
28276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28277 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28278 | ac_status=$? |
32ddf007 VS |
28279 | grep -v '^ *+' conftest.er1 >conftest.err |
28280 | rm -f conftest.er1 | |
28281 | cat conftest.err >&5 | |
e6cc62c6 VS |
28282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28283 | (exit $ac_status); } && | |
32ddf007 VS |
28284 | { ac_try='test -z "$ac_c_werror_flag" |
28285 | || test ! -s conftest.err' | |
28286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28287 | (eval $ac_try) 2>&5 | |
28288 | ac_status=$? | |
28289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28290 | (exit $ac_status); }; } && | |
28291 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28293 | (eval $ac_try) 2>&5 | |
28294 | ac_status=$? | |
28295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28296 | (exit $ac_status); }; }; then | |
28297 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 28298 | else |
e6cc62c6 VS |
28299 | echo "$as_me: failed program was:" >&5 |
28300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 28301 | |
e6cc62c6 | 28302 | ac_cv_type_off_t=no |
8284b0c5 | 28303 | fi |
32ddf007 | 28304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 28305 | fi |
e6cc62c6 VS |
28306 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
28307 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28308 | if test $ac_cv_type_off_t = yes; then | |
28309 | : | |
247f5006 VZ |
28310 | else |
28311 | ||
e6cc62c6 | 28312 | cat >>confdefs.h <<_ACEOF |
90dd450c | 28313 | #define off_t long |
e6cc62c6 | 28314 | _ACEOF |
10f2d63a | 28315 | |
90dd450c | 28316 | fi |
10f2d63a | 28317 | |
e6cc62c6 VS |
28318 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
28319 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28320 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 28322 | else |
e6cc62c6 | 28323 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28324 | /* confdefs.h. */ |
28325 | _ACEOF | |
28326 | cat confdefs.h >>conftest.$ac_ext | |
28327 | cat >>conftest.$ac_ext <<_ACEOF | |
28328 | /* end confdefs.h. */ | |
28329 | $ac_includes_default | |
28330 | int | |
28331 | main () | |
28332 | { | |
28333 | if ((pid_t *) 0) | |
28334 | return 0; | |
28335 | if (sizeof (pid_t)) | |
28336 | return 0; | |
28337 | ; | |
28338 | return 0; | |
28339 | } | |
28340 | _ACEOF | |
28341 | rm -f conftest.$ac_objext | |
28342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28343 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28344 | ac_status=$? |
32ddf007 VS |
28345 | grep -v '^ *+' conftest.er1 >conftest.err |
28346 | rm -f conftest.er1 | |
28347 | cat conftest.err >&5 | |
e6cc62c6 VS |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28349 | (exit $ac_status); } && | |
32ddf007 VS |
28350 | { ac_try='test -z "$ac_c_werror_flag" |
28351 | || test ! -s conftest.err' | |
28352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28353 | (eval $ac_try) 2>&5 | |
28354 | ac_status=$? | |
28355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28356 | (exit $ac_status); }; } && | |
28357 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28359 | (eval $ac_try) 2>&5 | |
28360 | ac_status=$? | |
28361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28362 | (exit $ac_status); }; }; then | |
90dd450c | 28363 | ac_cv_type_pid_t=yes |
698dcdb6 | 28364 | else |
e6cc62c6 VS |
28365 | echo "$as_me: failed program was:" >&5 |
28366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28367 | |
e6cc62c6 VS |
28368 | ac_cv_type_pid_t=no |
28369 | fi | |
32ddf007 | 28370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28371 | fi |
e6cc62c6 VS |
28372 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
28373 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28374 | if test $ac_cv_type_pid_t = yes; then | |
28375 | : | |
28376 | else | |
28377 | ||
28378 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28379 | #define pid_t int |
e6cc62c6 | 28380 | _ACEOF |
10f2d63a | 28381 | |
7b4a847f RR |
28382 | fi |
28383 | ||
e6cc62c6 VS |
28384 | echo "$as_me:$LINENO: checking for size_t" >&5 |
28385 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28386 | if test "${ac_cv_type_size_t+set}" = set; then | |
28387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 28388 | else |
e6cc62c6 | 28389 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28390 | /* confdefs.h. */ |
28391 | _ACEOF | |
28392 | cat confdefs.h >>conftest.$ac_ext | |
28393 | cat >>conftest.$ac_ext <<_ACEOF | |
28394 | /* end confdefs.h. */ | |
28395 | $ac_includes_default | |
28396 | int | |
28397 | main () | |
28398 | { | |
28399 | if ((size_t *) 0) | |
28400 | return 0; | |
28401 | if (sizeof (size_t)) | |
28402 | return 0; | |
28403 | ; | |
28404 | return 0; | |
28405 | } | |
28406 | _ACEOF | |
28407 | rm -f conftest.$ac_objext | |
28408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28409 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28410 | ac_status=$? |
32ddf007 VS |
28411 | grep -v '^ *+' conftest.er1 >conftest.err |
28412 | rm -f conftest.er1 | |
28413 | cat conftest.err >&5 | |
e6cc62c6 VS |
28414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28415 | (exit $ac_status); } && | |
32ddf007 VS |
28416 | { ac_try='test -z "$ac_c_werror_flag" |
28417 | || test ! -s conftest.err' | |
28418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28419 | (eval $ac_try) 2>&5 | |
28420 | ac_status=$? | |
28421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28422 | (exit $ac_status); }; } && | |
28423 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28425 | (eval $ac_try) 2>&5 | |
28426 | ac_status=$? | |
28427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28428 | (exit $ac_status); }; }; then | |
90dd450c | 28429 | ac_cv_type_size_t=yes |
18dbb1f6 | 28430 | else |
e6cc62c6 VS |
28431 | echo "$as_me: failed program was:" >&5 |
28432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 28433 | |
e6cc62c6 | 28434 | ac_cv_type_size_t=no |
a0b9e27f | 28435 | fi |
32ddf007 | 28436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
28437 | fi |
28438 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28439 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28440 | if test $ac_cv_type_size_t = yes; then | |
28441 | : | |
28442 | else | |
28443 | ||
28444 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 28445 | #define size_t unsigned |
e6cc62c6 | 28446 | _ACEOF |
90dd450c VZ |
28447 | |
28448 | fi | |
28449 | ||
e6cc62c6 VS |
28450 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
28451 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28452 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 28454 | else |
e6cc62c6 | 28455 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28456 | /* confdefs.h. */ |
28457 | _ACEOF | |
28458 | cat confdefs.h >>conftest.$ac_ext | |
28459 | cat >>conftest.$ac_ext <<_ACEOF | |
28460 | /* end confdefs.h. */ | |
90dd450c | 28461 | #include <sys/types.h> |
e6cc62c6 VS |
28462 | |
28463 | _ACEOF | |
90dd450c | 28464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 28465 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 28466 | ac_cv_type_uid_t=yes |
b3e8d00a | 28467 | else |
90dd450c | 28468 | ac_cv_type_uid_t=no |
b3e8d00a | 28469 | fi |
90dd450c | 28470 | rm -f conftest* |
b3e8d00a | 28471 | |
4f14bcd8 | 28472 | fi |
e6cc62c6 VS |
28473 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
28474 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 28475 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
28476 | |
28477 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28478 | #define uid_t int |
e6cc62c6 | 28479 | _ACEOF |
247f5006 | 28480 | |
e6cc62c6 VS |
28481 | |
28482 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 28483 | #define gid_t int |
e6cc62c6 | 28484 | _ACEOF |
4f14bcd8 | 28485 | |
b3e8d00a | 28486 | fi |
b3e8d00a | 28487 | |
8284b0c5 MB |
28488 | |
28489 | ||
e6cc62c6 VS |
28490 | |
28491 | ac_ext=cc | |
4f14bcd8 | 28492 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28493 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28494 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28495 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28496 | ||
28497 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28498 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28499 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28501 | else | |
28502 | ||
28503 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28504 | /* confdefs.h. */ |
28505 | _ACEOF | |
28506 | cat confdefs.h >>conftest.$ac_ext | |
28507 | cat >>conftest.$ac_ext <<_ACEOF | |
28508 | /* end confdefs.h. */ | |
90dd450c | 28509 | #include <stddef.h> |
e6cc62c6 VS |
28510 | int |
28511 | main () | |
28512 | { | |
90dd450c VZ |
28513 | |
28514 | return 0; } | |
28515 | ||
28516 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28517 | ||
28518 | int bar() { | |
e6cc62c6 VS |
28519 | |
28520 | ; | |
28521 | return 0; | |
28522 | } | |
28523 | _ACEOF | |
28524 | rm -f conftest.$ac_objext | |
28525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28526 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28527 | ac_status=$? |
32ddf007 VS |
28528 | grep -v '^ *+' conftest.er1 >conftest.err |
28529 | rm -f conftest.er1 | |
28530 | cat conftest.err >&5 | |
e6cc62c6 VS |
28531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28532 | (exit $ac_status); } && | |
32ddf007 VS |
28533 | { ac_try='test -z "$ac_cxx_werror_flag" |
28534 | || test ! -s conftest.err' | |
28535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28536 | (eval $ac_try) 2>&5 | |
28537 | ac_status=$? | |
28538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28539 | (exit $ac_status); }; } && | |
28540 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28542 | (eval $ac_try) 2>&5 | |
28543 | ac_status=$? | |
28544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28545 | (exit $ac_status); }; }; then | |
90dd450c | 28546 | wx_cv_size_t_is_uint=no |
698dcdb6 | 28547 | else |
e6cc62c6 VS |
28548 | echo "$as_me: failed program was:" >&5 |
28549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28550 | ||
28551 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 28552 | |
247f5006 | 28553 | fi |
32ddf007 | 28554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 28555 | |
a0b9e27f | 28556 | |
e6cc62c6 VS |
28557 | fi |
28558 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28559 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 28560 | |
90dd450c | 28561 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 28562 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28563 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 28564 | _ACEOF |
698dcdb6 | 28565 | |
90dd450c | 28566 | else |
e6cc62c6 VS |
28567 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
28568 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28569 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28571 | else |
e6cc62c6 | 28572 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28573 | /* confdefs.h. */ |
28574 | _ACEOF | |
28575 | cat confdefs.h >>conftest.$ac_ext | |
28576 | cat >>conftest.$ac_ext <<_ACEOF | |
28577 | /* end confdefs.h. */ | |
90dd450c | 28578 | #include <stddef.h> |
e6cc62c6 VS |
28579 | int |
28580 | main () | |
28581 | { | |
90dd450c VZ |
28582 | |
28583 | return 0; } | |
28584 | ||
28585 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28586 | ||
28587 | int bar() { | |
e6cc62c6 VS |
28588 | |
28589 | ; | |
28590 | return 0; | |
28591 | } | |
28592 | _ACEOF | |
28593 | rm -f conftest.$ac_objext | |
28594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28595 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28596 | ac_status=$? |
32ddf007 VS |
28597 | grep -v '^ *+' conftest.er1 >conftest.err |
28598 | rm -f conftest.er1 | |
28599 | cat conftest.err >&5 | |
e6cc62c6 VS |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28601 | (exit $ac_status); } && | |
32ddf007 VS |
28602 | { ac_try='test -z "$ac_cxx_werror_flag" |
28603 | || test ! -s conftest.err' | |
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); }; } && | |
28609 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28611 | (eval $ac_try) 2>&5 | |
28612 | ac_status=$? | |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28614 | (exit $ac_status); }; }; then | |
90dd450c | 28615 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 28616 | else |
e6cc62c6 VS |
28617 | echo "$as_me: failed program was:" >&5 |
28618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28619 | ||
28620 | wx_cv_size_t_is_ulong=yes | |
28621 | ||
247f5006 | 28622 | fi |
32ddf007 | 28623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28624 | |
e6cc62c6 VS |
28625 | fi |
28626 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28627 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 28628 | |
90dd450c | 28629 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 28630 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28631 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 28632 | _ACEOF |
4f14bcd8 GD |
28633 | |
28634 | fi | |
90dd450c | 28635 | fi |
1e487827 | 28636 | |
90dd450c | 28637 | ac_ext=c |
4f14bcd8 | 28638 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 28642 | |
5c6fa7d2 | 28643 | |
8284b0c5 | 28644 | |
e6cc62c6 VS |
28645 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
28646 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28647 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 28649 | else |
e6cc62c6 VS |
28650 | |
28651 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28652 | /* confdefs.h. */ |
28653 | _ACEOF | |
28654 | cat confdefs.h >>conftest.$ac_ext | |
28655 | cat >>conftest.$ac_ext <<_ACEOF | |
28656 | /* end confdefs.h. */ | |
90dd450c | 28657 | #include <pwd.h> |
e6cc62c6 VS |
28658 | int |
28659 | main () | |
28660 | { | |
f6bcfd97 | 28661 | |
90dd450c VZ |
28662 | char *p; |
28663 | struct passwd *pw; | |
28664 | p = pw->pw_gecos; | |
e6cc62c6 VS |
28665 | |
28666 | ; | |
28667 | return 0; | |
28668 | } | |
28669 | _ACEOF | |
28670 | rm -f conftest.$ac_objext | |
28671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 28672 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 28673 | ac_status=$? |
32ddf007 VS |
28674 | grep -v '^ *+' conftest.er1 >conftest.err |
28675 | rm -f conftest.er1 | |
28676 | cat conftest.err >&5 | |
e6cc62c6 VS |
28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28678 | (exit $ac_status); } && | |
32ddf007 VS |
28679 | { ac_try='test -z "$ac_c_werror_flag" |
28680 | || test ! -s conftest.err' | |
28681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28682 | (eval $ac_try) 2>&5 | |
28683 | ac_status=$? | |
28684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28685 | (exit $ac_status); }; } && | |
28686 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
28687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28688 | (eval $ac_try) 2>&5 | |
28689 | ac_status=$? | |
28690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28691 | (exit $ac_status); }; }; then | |
28692 | ||
90dd450c | 28693 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 28694 | |
10f2d63a | 28695 | else |
e6cc62c6 VS |
28696 | echo "$as_me: failed program was:" >&5 |
28697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28698 | ||
28699 | ||
90dd450c | 28700 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 28701 | |
247f5006 VZ |
28702 | |
28703 | fi | |
32ddf007 | 28704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 28705 | |
e6cc62c6 VS |
28706 | |
28707 | fi | |
28708 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28709 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 28710 | |
90dd450c | 28711 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 28712 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 28713 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 28714 | _ACEOF |
c521c494 | 28715 | |
90dd450c | 28716 | fi |
4f14bcd8 | 28717 | |
8284b0c5 | 28718 | |
d29b553b | 28719 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 28720 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28721 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 28722 | _ACEOF |
d74f4b5a | 28723 | |
8284b0c5 | 28724 | |
d74f4b5a VZ |
28725 | WCSLEN_FOUND=0 |
28726 | WCHAR_LINK= | |
e6cc62c6 VS |
28727 | |
28728 | for ac_func in wcslen | |
7a30264c | 28729 | do |
e6cc62c6 VS |
28730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28731 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28733 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28735 | else | |
28736 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28737 | /* confdefs.h. */ |
28738 | _ACEOF | |
28739 | cat confdefs.h >>conftest.$ac_ext | |
28740 | cat >>conftest.$ac_ext <<_ACEOF | |
28741 | /* end confdefs.h. */ | |
32ddf007 VS |
28742 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28743 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28744 | #define $ac_func innocuous_$ac_func | |
28745 | ||
7a30264c | 28746 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28747 | which can conflict with char $ac_func (); below. |
28748 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28749 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 28750 | |
e6cc62c6 VS |
28751 | #ifdef __STDC__ |
28752 | # include <limits.h> | |
28753 | #else | |
28754 | # include <assert.h> | |
28755 | #endif | |
32ddf007 VS |
28756 | |
28757 | #undef $ac_func | |
28758 | ||
4f14bcd8 | 28759 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28760 | #ifdef __cplusplus |
28761 | extern "C" | |
28762 | { | |
28763 | #endif | |
4f14bcd8 | 28764 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28765 | builtin and then its argument prototype would still apply. */ |
28766 | char $ac_func (); | |
7a30264c VZ |
28767 | /* The GNU C library defines this for functions which it implements |
28768 | to always fail with ENOSYS. Some functions are actually named | |
28769 | something starting with __ and the normal name is an alias. */ | |
28770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28771 | choke me | |
28772 | #else | |
e6cc62c6 VS |
28773 | char (*f) () = $ac_func; |
28774 | #endif | |
28775 | #ifdef __cplusplus | |
28776 | } | |
7a30264c VZ |
28777 | #endif |
28778 | ||
e6cc62c6 VS |
28779 | int |
28780 | main () | |
28781 | { | |
28782 | return f != $ac_func; | |
28783 | ; | |
28784 | return 0; | |
28785 | } | |
28786 | _ACEOF | |
28787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28789 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28790 | ac_status=$? |
32ddf007 VS |
28791 | grep -v '^ *+' conftest.er1 >conftest.err |
28792 | rm -f conftest.er1 | |
28793 | cat conftest.err >&5 | |
e6cc62c6 VS |
28794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28795 | (exit $ac_status); } && | |
32ddf007 VS |
28796 | { ac_try='test -z "$ac_c_werror_flag" |
28797 | || test ! -s conftest.err' | |
28798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28799 | (eval $ac_try) 2>&5 | |
28800 | ac_status=$? | |
28801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28802 | (exit $ac_status); }; } && | |
28803 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28805 | (eval $ac_try) 2>&5 | |
28806 | ac_status=$? | |
28807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28808 | (exit $ac_status); }; }; then | |
28809 | eval "$as_ac_var=yes" | |
28810 | else | |
28811 | echo "$as_me: failed program was:" >&5 | |
28812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28813 | ||
28814 | eval "$as_ac_var=no" | |
28815 | fi | |
32ddf007 VS |
28816 | rm -f conftest.err conftest.$ac_objext \ |
28817 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28818 | fi |
28819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28822 | cat >>confdefs.h <<_ACEOF | |
28823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28824 | _ACEOF | |
d74f4b5a | 28825 | WCSLEN_FOUND=1 |
7a30264c VZ |
28826 | fi |
28827 | done | |
9d8deca0 | 28828 | |
8284b0c5 | 28829 | |
d74f4b5a | 28830 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 28831 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
28832 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
28833 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28834 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28836 | else |
e6cc62c6 | 28837 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28838 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 28839 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28840 | /* confdefs.h. */ |
28841 | _ACEOF | |
28842 | cat confdefs.h >>conftest.$ac_ext | |
28843 | cat >>conftest.$ac_ext <<_ACEOF | |
28844 | /* end confdefs.h. */ | |
28845 | ||
4f14bcd8 | 28846 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28847 | #ifdef __cplusplus |
28848 | extern "C" | |
28849 | #endif | |
4f14bcd8 | 28850 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28851 | builtin and then its argument prototype would still apply. */ |
28852 | char wcslen (); | |
28853 | int | |
28854 | main () | |
28855 | { | |
28856 | wcslen (); | |
28857 | ; | |
28858 | return 0; | |
28859 | } | |
28860 | _ACEOF | |
28861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28863 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28864 | ac_status=$? |
32ddf007 VS |
28865 | grep -v '^ *+' conftest.er1 >conftest.err |
28866 | rm -f conftest.er1 | |
28867 | cat conftest.err >&5 | |
e6cc62c6 VS |
28868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28869 | (exit $ac_status); } && | |
32ddf007 VS |
28870 | { ac_try='test -z "$ac_c_werror_flag" |
28871 | || test ! -s conftest.err' | |
28872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28873 | (eval $ac_try) 2>&5 | |
28874 | ac_status=$? | |
28875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28876 | (exit $ac_status); }; } && | |
28877 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28879 | (eval $ac_try) 2>&5 | |
28880 | ac_status=$? | |
28881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28882 | (exit $ac_status); }; }; then | |
28883 | ac_cv_lib_msvcrt_wcslen=yes | |
28884 | else | |
28885 | echo "$as_me: failed program was:" >&5 | |
28886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28887 | ||
28888 | ac_cv_lib_msvcrt_wcslen=no | |
28889 | fi | |
32ddf007 VS |
28890 | rm -f conftest.err conftest.$ac_objext \ |
28891 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28892 | LIBS=$ac_check_lib_save_LIBS |
28893 | fi | |
28894 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28895 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28896 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 28897 | WCHAR_OK=1 |
d29b553b | 28898 | fi |
698dcdb6 | 28899 | |
7a30264c | 28900 | else |
e6cc62c6 VS |
28901 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
28902 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28903 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 28905 | else |
e6cc62c6 | 28906 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 28907 | LIBS="-lw $LIBS" |
e6cc62c6 | 28908 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
28909 | /* confdefs.h. */ |
28910 | _ACEOF | |
28911 | cat confdefs.h >>conftest.$ac_ext | |
28912 | cat >>conftest.$ac_ext <<_ACEOF | |
28913 | /* end confdefs.h. */ | |
28914 | ||
4f14bcd8 | 28915 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28916 | #ifdef __cplusplus |
28917 | extern "C" | |
28918 | #endif | |
4f14bcd8 | 28919 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28920 | builtin and then its argument prototype would still apply. */ |
28921 | char wcslen (); | |
28922 | int | |
28923 | main () | |
28924 | { | |
28925 | wcslen (); | |
28926 | ; | |
28927 | return 0; | |
28928 | } | |
28929 | _ACEOF | |
28930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 28932 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 28933 | ac_status=$? |
32ddf007 VS |
28934 | grep -v '^ *+' conftest.er1 >conftest.err |
28935 | rm -f conftest.er1 | |
28936 | cat conftest.err >&5 | |
e6cc62c6 VS |
28937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28938 | (exit $ac_status); } && | |
32ddf007 VS |
28939 | { ac_try='test -z "$ac_c_werror_flag" |
28940 | || test ! -s conftest.err' | |
28941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28942 | (eval $ac_try) 2>&5 | |
28943 | ac_status=$? | |
28944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28945 | (exit $ac_status); }; } && | |
28946 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
28947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28948 | (eval $ac_try) 2>&5 | |
28949 | ac_status=$? | |
28950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28951 | (exit $ac_status); }; }; then | |
28952 | ac_cv_lib_w_wcslen=yes | |
28953 | else | |
28954 | echo "$as_me: failed program was:" >&5 | |
28955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28956 | ||
28957 | ac_cv_lib_w_wcslen=no | |
28958 | fi | |
32ddf007 VS |
28959 | rm -f conftest.err conftest.$ac_objext \ |
28960 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
28961 | LIBS=$ac_check_lib_save_LIBS |
28962 | fi | |
28963 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28964 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28965 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 28966 | |
7a30264c | 28967 | WCHAR_LINK=" -lw" |
d74f4b5a | 28968 | WCSLEN_FOUND=1 |
e6cc62c6 | 28969 | |
4f14bcd8 | 28970 | fi |
10f2d63a | 28971 | |
7a30264c | 28972 | fi |
d29b553b | 28973 | fi |
95c8801c | 28974 | |
d74f4b5a | 28975 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 28976 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 28977 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 28978 | _ACEOF |
10f2d63a | 28979 | |
d74f4b5a | 28980 | fi |
52127426 | 28981 | |
e6cc62c6 VS |
28982 | |
28983 | for ac_func in wcsrtombs | |
eb4efbdc | 28984 | do |
e6cc62c6 VS |
28985 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28986 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28987 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28988 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28990 | else | |
28991 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
28992 | /* confdefs.h. */ |
28993 | _ACEOF | |
28994 | cat confdefs.h >>conftest.$ac_ext | |
28995 | cat >>conftest.$ac_ext <<_ACEOF | |
28996 | /* end confdefs.h. */ | |
32ddf007 VS |
28997 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28999 | #define $ac_func innocuous_$ac_func | |
29000 | ||
eb4efbdc | 29001 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29002 | which can conflict with char $ac_func (); below. |
29003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29004 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29005 | |
e6cc62c6 VS |
29006 | #ifdef __STDC__ |
29007 | # include <limits.h> | |
29008 | #else | |
29009 | # include <assert.h> | |
29010 | #endif | |
32ddf007 VS |
29011 | |
29012 | #undef $ac_func | |
29013 | ||
eb4efbdc | 29014 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29015 | #ifdef __cplusplus |
29016 | extern "C" | |
29017 | { | |
29018 | #endif | |
4f14bcd8 | 29019 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29020 | builtin and then its argument prototype would still apply. */ |
29021 | char $ac_func (); | |
10f2d63a VZ |
29022 | /* The GNU C library defines this for functions which it implements |
29023 | to always fail with ENOSYS. Some functions are actually named | |
29024 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 29025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
29026 | choke me |
29027 | #else | |
e6cc62c6 VS |
29028 | char (*f) () = $ac_func; |
29029 | #endif | |
29030 | #ifdef __cplusplus | |
29031 | } | |
10f2d63a VZ |
29032 | #endif |
29033 | ||
e6cc62c6 VS |
29034 | int |
29035 | main () | |
29036 | { | |
29037 | return f != $ac_func; | |
29038 | ; | |
29039 | return 0; | |
29040 | } | |
29041 | _ACEOF | |
29042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29044 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29045 | ac_status=$? |
32ddf007 VS |
29046 | grep -v '^ *+' conftest.er1 >conftest.err |
29047 | rm -f conftest.er1 | |
29048 | cat conftest.err >&5 | |
e6cc62c6 VS |
29049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29050 | (exit $ac_status); } && | |
32ddf007 VS |
29051 | { ac_try='test -z "$ac_c_werror_flag" |
29052 | || test ! -s conftest.err' | |
29053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29054 | (eval $ac_try) 2>&5 | |
29055 | ac_status=$? | |
29056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29057 | (exit $ac_status); }; } && | |
29058 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29060 | (eval $ac_try) 2>&5 | |
29061 | ac_status=$? | |
29062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29063 | (exit $ac_status); }; }; then | |
29064 | eval "$as_ac_var=yes" | |
29065 | else | |
29066 | echo "$as_me: failed program was:" >&5 | |
29067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29068 | ||
29069 | eval "$as_ac_var=no" | |
29070 | fi | |
32ddf007 VS |
29071 | rm -f conftest.err conftest.$ac_objext \ |
29072 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29073 | fi |
29074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29075 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29076 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29077 | cat >>confdefs.h <<_ACEOF | |
29078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29079 | _ACEOF | |
270a909e | 29080 | |
4f14bcd8 | 29081 | fi |
247f5006 | 29082 | done |
1e487827 | 29083 | |
af15babd | 29084 | else |
e6cc62c6 VS |
29085 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
29086 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 29087 | fi |
52127426 | 29088 | |
8284b0c5 | 29089 | |
e6cc62c6 VS |
29090 | |
29091 | ac_ext=cc | |
247f5006 | 29092 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29093 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29094 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29095 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29096 | ||
af15babd | 29097 | |
247f5006 VZ |
29098 | |
29099 | for ac_func in vsnprintf | |
29100 | do | |
e6cc62c6 VS |
29101 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29102 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29103 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29104 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29106 | else | |
29107 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29108 | /* confdefs.h. */ |
29109 | _ACEOF | |
29110 | cat confdefs.h >>conftest.$ac_ext | |
29111 | cat >>conftest.$ac_ext <<_ACEOF | |
29112 | /* end confdefs.h. */ | |
32ddf007 VS |
29113 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29114 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29115 | #define $ac_func innocuous_$ac_func | |
29116 | ||
247f5006 | 29117 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29118 | which can conflict with char $ac_func (); below. |
29119 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29120 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29121 | |
e6cc62c6 VS |
29122 | #ifdef __STDC__ |
29123 | # include <limits.h> | |
29124 | #else | |
29125 | # include <assert.h> | |
29126 | #endif | |
32ddf007 VS |
29127 | |
29128 | #undef $ac_func | |
29129 | ||
247f5006 VZ |
29130 | /* Override any gcc2 internal prototype to avoid an error. */ |
29131 | #ifdef __cplusplus | |
29132 | extern "C" | |
e6cc62c6 | 29133 | { |
247f5006 VZ |
29134 | #endif |
29135 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
29136 | builtin and then its argument prototype would still apply. */ |
29137 | char $ac_func (); | |
247f5006 VZ |
29138 | /* The GNU C library defines this for functions which it implements |
29139 | to always fail with ENOSYS. Some functions are actually named | |
29140 | something starting with __ and the normal name is an alias. */ | |
29141 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29142 | choke me | |
29143 | #else | |
e6cc62c6 VS |
29144 | char (*f) () = $ac_func; |
29145 | #endif | |
29146 | #ifdef __cplusplus | |
29147 | } | |
247f5006 | 29148 | #endif |
af15babd | 29149 | |
e6cc62c6 VS |
29150 | int |
29151 | main () | |
29152 | { | |
29153 | return f != $ac_func; | |
29154 | ; | |
29155 | return 0; | |
29156 | } | |
29157 | _ACEOF | |
29158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29160 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29161 | ac_status=$? |
32ddf007 VS |
29162 | grep -v '^ *+' conftest.er1 >conftest.err |
29163 | rm -f conftest.er1 | |
29164 | cat conftest.err >&5 | |
e6cc62c6 VS |
29165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29166 | (exit $ac_status); } && | |
32ddf007 VS |
29167 | { ac_try='test -z "$ac_cxx_werror_flag" |
29168 | || test ! -s conftest.err' | |
29169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29170 | (eval $ac_try) 2>&5 | |
29171 | ac_status=$? | |
29172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29173 | (exit $ac_status); }; } && | |
29174 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29176 | (eval $ac_try) 2>&5 | |
29177 | ac_status=$? | |
29178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29179 | (exit $ac_status); }; }; then | |
29180 | eval "$as_ac_var=yes" | |
29181 | else | |
29182 | echo "$as_me: failed program was:" >&5 | |
29183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29184 | ||
29185 | eval "$as_ac_var=no" | |
29186 | fi | |
32ddf007 VS |
29187 | rm -f conftest.err conftest.$ac_objext \ |
29188 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29189 | fi |
29190 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29191 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29192 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29193 | cat >>confdefs.h <<_ACEOF | |
29194 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29195 | _ACEOF | |
52127426 | 29196 | |
5c6fa7d2 | 29197 | fi |
247f5006 | 29198 | done |
8284b0c5 | 29199 | |
4f14bcd8 | 29200 | |
8d90d2f2 | 29201 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
29202 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
29203 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
29204 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
29205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 29206 | else |
e6cc62c6 VS |
29207 | |
29208 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29209 | /* confdefs.h. */ |
29210 | _ACEOF | |
29211 | cat confdefs.h >>conftest.$ac_ext | |
29212 | cat >>conftest.$ac_ext <<_ACEOF | |
29213 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
29214 | |
29215 | #include <stdio.h> | |
29216 | #include <stdarg.h> | |
e6cc62c6 VS |
29217 | |
29218 | int | |
29219 | main () | |
29220 | { | |
8d90d2f2 VZ |
29221 | |
29222 | char *buf; | |
29223 | va_list ap; | |
29224 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
29225 | |
29226 | ; | |
29227 | return 0; | |
29228 | } | |
29229 | _ACEOF | |
29230 | rm -f conftest.$ac_objext | |
29231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29232 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29233 | ac_status=$? |
32ddf007 VS |
29234 | grep -v '^ *+' conftest.er1 >conftest.err |
29235 | rm -f conftest.er1 | |
29236 | cat conftest.err >&5 | |
e6cc62c6 VS |
29237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29238 | (exit $ac_status); } && | |
32ddf007 VS |
29239 | { ac_try='test -z "$ac_cxx_werror_flag" |
29240 | || test ! -s conftest.err' | |
29241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29242 | (eval $ac_try) 2>&5 | |
29243 | ac_status=$? | |
29244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29245 | (exit $ac_status); }; } && | |
29246 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29248 | (eval $ac_try) 2>&5 | |
29249 | ac_status=$? | |
29250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29251 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
29252 | wx_cv_func_vsnprintf_decl=yes |
29253 | else | |
e6cc62c6 VS |
29254 | echo "$as_me: failed program was:" >&5 |
29255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29256 | ||
29257 | wx_cv_func_vsnprintf_decl=no | |
29258 | ||
8d90d2f2 | 29259 | fi |
32ddf007 | 29260 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 29261 | |
8d90d2f2 | 29262 | |
e6cc62c6 VS |
29263 | fi |
29264 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29265 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
29266 | |
29267 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 29268 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 29269 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 29270 | _ACEOF |
8d90d2f2 VZ |
29271 | |
29272 | fi | |
29273 | fi | |
29274 | ||
247f5006 | 29275 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
29276 | |
29277 | ||
29278 | ||
29279 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 29280 | do |
e6cc62c6 VS |
29281 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29282 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29283 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29284 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29286 | else | |
29287 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29288 | /* confdefs.h. */ |
29289 | _ACEOF | |
29290 | cat confdefs.h >>conftest.$ac_ext | |
29291 | cat >>conftest.$ac_ext <<_ACEOF | |
29292 | /* end confdefs.h. */ | |
32ddf007 VS |
29293 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29294 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29295 | #define $ac_func innocuous_$ac_func | |
29296 | ||
d74f4b5a | 29297 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29298 | which can conflict with char $ac_func (); below. |
29299 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29300 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29301 | |
e6cc62c6 VS |
29302 | #ifdef __STDC__ |
29303 | # include <limits.h> | |
29304 | #else | |
29305 | # include <assert.h> | |
29306 | #endif | |
32ddf007 VS |
29307 | |
29308 | #undef $ac_func | |
29309 | ||
d74f4b5a | 29310 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
29311 | #ifdef __cplusplus |
29312 | extern "C" | |
e6cc62c6 | 29313 | { |
247f5006 | 29314 | #endif |
d74f4b5a | 29315 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29316 | builtin and then its argument prototype would still apply. */ |
29317 | char $ac_func (); | |
d74f4b5a VZ |
29318 | /* The GNU C library defines this for functions which it implements |
29319 | to always fail with ENOSYS. Some functions are actually named | |
29320 | something starting with __ and the normal name is an alias. */ | |
29321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29322 | choke me | |
29323 | #else | |
e6cc62c6 VS |
29324 | char (*f) () = $ac_func; |
29325 | #endif | |
29326 | #ifdef __cplusplus | |
29327 | } | |
d74f4b5a VZ |
29328 | #endif |
29329 | ||
e6cc62c6 VS |
29330 | int |
29331 | main () | |
29332 | { | |
29333 | return f != $ac_func; | |
29334 | ; | |
29335 | return 0; | |
29336 | } | |
29337 | _ACEOF | |
29338 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29340 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29341 | ac_status=$? |
32ddf007 VS |
29342 | grep -v '^ *+' conftest.er1 >conftest.err |
29343 | rm -f conftest.er1 | |
29344 | cat conftest.err >&5 | |
e6cc62c6 VS |
29345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29346 | (exit $ac_status); } && | |
32ddf007 VS |
29347 | { ac_try='test -z "$ac_cxx_werror_flag" |
29348 | || test ! -s conftest.err' | |
29349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29350 | (eval $ac_try) 2>&5 | |
29351 | ac_status=$? | |
29352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29353 | (exit $ac_status); }; } && | |
29354 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29356 | (eval $ac_try) 2>&5 | |
29357 | ac_status=$? | |
29358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29359 | (exit $ac_status); }; }; then | |
29360 | eval "$as_ac_var=yes" | |
29361 | else | |
29362 | echo "$as_me: failed program was:" >&5 | |
29363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29364 | ||
29365 | eval "$as_ac_var=no" | |
29366 | fi | |
32ddf007 VS |
29367 | rm -f conftest.err conftest.$ac_objext \ |
29368 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29369 | fi |
29370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29371 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29372 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29373 | cat >>confdefs.h <<_ACEOF | |
29374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29375 | _ACEOF | |
d74f4b5a | 29376 | |
d74f4b5a VZ |
29377 | fi |
29378 | done | |
29379 | ||
8d90d2f2 | 29380 | |
e6cc62c6 VS |
29381 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
29382 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29383 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29384 | /* confdefs.h. */ |
29385 | _ACEOF | |
29386 | cat confdefs.h >>conftest.$ac_ext | |
29387 | cat >>conftest.$ac_ext <<_ACEOF | |
29388 | /* end confdefs.h. */ | |
79668cae | 29389 | #include <wchar.h> |
e6cc62c6 VS |
29390 | int |
29391 | main () | |
29392 | { | |
79668cae | 29393 | &_vsnwprintf; |
e6cc62c6 VS |
29394 | ; |
29395 | return 0; | |
29396 | } | |
29397 | _ACEOF | |
29398 | rm -f conftest.$ac_objext | |
29399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29400 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29401 | ac_status=$? |
32ddf007 VS |
29402 | grep -v '^ *+' conftest.er1 >conftest.err |
29403 | rm -f conftest.er1 | |
29404 | cat conftest.err >&5 | |
e6cc62c6 VS |
29405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29406 | (exit $ac_status); } && | |
32ddf007 VS |
29407 | { ac_try='test -z "$ac_cxx_werror_flag" |
29408 | || test ! -s conftest.err' | |
29409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29410 | (eval $ac_try) 2>&5 | |
29411 | ac_status=$? | |
29412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29413 | (exit $ac_status); }; } && | |
29414 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29416 | (eval $ac_try) 2>&5 | |
29417 | ac_status=$? | |
29418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29419 | (exit $ac_status); }; }; then | |
29420 | echo "$as_me:$LINENO: result: yes" >&5 | |
29421 | echo "${ECHO_T}yes" >&6 | |
29422 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 29423 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 29424 | _ACEOF |
79668cae MB |
29425 | |
29426 | else | |
e6cc62c6 VS |
29427 | echo "$as_me: failed program was:" >&5 |
29428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29429 | ||
29430 | echo "$as_me:$LINENO: result: no" >&5 | |
29431 | echo "${ECHO_T}no" >&6 | |
79668cae | 29432 | fi |
32ddf007 | 29433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
29434 | fi |
29435 | ||
247f5006 VZ |
29436 | ac_ext=c |
29437 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
29438 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29439 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29440 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
29441 | |
29442 | ||
29443 | ||
29444 | ||
4f14bcd8 | 29445 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 29446 | |
8284b0c5 MB |
29447 | |
29448 | ||
e6cc62c6 VS |
29449 | |
29450 | ac_ext=cc | |
4f14bcd8 | 29451 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 29455 | |
52127426 | 29456 | |
e6cc62c6 VS |
29457 | |
29458 | ||
29459 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
29460 | if test "${with_libiconv_prefix+set}" = set; then |
29461 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 29462 | |
b040e242 VS |
29463 | for dir in `echo "$withval" | tr : ' '`; do |
29464 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29465 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29466 | done | |
b040e242 | 29467 | |
e6cc62c6 | 29468 | fi; |
b040e242 | 29469 | |
e6cc62c6 VS |
29470 | echo "$as_me:$LINENO: checking for iconv" >&5 |
29471 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29472 | if test "${am_cv_func_iconv+set}" = set; then | |
29473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 29474 | else |
e6cc62c6 | 29475 | |
b040e242 VS |
29476 | am_cv_func_iconv="no, consider installing GNU libiconv" |
29477 | am_cv_lib_iconv=no | |
e6cc62c6 | 29478 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29479 | /* confdefs.h. */ |
29480 | _ACEOF | |
29481 | cat confdefs.h >>conftest.$ac_ext | |
29482 | cat >>conftest.$ac_ext <<_ACEOF | |
29483 | /* end confdefs.h. */ | |
b040e242 | 29484 | #include <stdlib.h> |
4f14bcd8 | 29485 | #include <iconv.h> |
e6cc62c6 VS |
29486 | int |
29487 | main () | |
29488 | { | |
b040e242 VS |
29489 | iconv_t cd = iconv_open("",""); |
29490 | iconv(cd,NULL,NULL,NULL,NULL); | |
29491 | iconv_close(cd); | |
e6cc62c6 VS |
29492 | ; |
29493 | return 0; | |
29494 | } | |
29495 | _ACEOF | |
29496 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29498 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29499 | ac_status=$? |
32ddf007 VS |
29500 | grep -v '^ *+' conftest.er1 >conftest.err |
29501 | rm -f conftest.er1 | |
29502 | cat conftest.err >&5 | |
e6cc62c6 VS |
29503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29504 | (exit $ac_status); } && | |
32ddf007 VS |
29505 | { ac_try='test -z "$ac_cxx_werror_flag" |
29506 | || test ! -s conftest.err' | |
29507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29508 | (eval $ac_try) 2>&5 | |
29509 | ac_status=$? | |
29510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29511 | (exit $ac_status); }; } && | |
29512 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29514 | (eval $ac_try) 2>&5 | |
29515 | ac_status=$? | |
29516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29517 | (exit $ac_status); }; }; then | |
b040e242 | 29518 | am_cv_func_iconv=yes |
af15babd | 29519 | else |
e6cc62c6 VS |
29520 | echo "$as_me: failed program was:" >&5 |
29521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29522 | ||
b040e242 | 29523 | fi |
32ddf007 VS |
29524 | rm -f conftest.err conftest.$ac_objext \ |
29525 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29526 | if test "$am_cv_func_iconv" != yes; then |
29527 | am_save_LIBS="$LIBS" | |
29528 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 29529 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29530 | /* confdefs.h. */ |
29531 | _ACEOF | |
29532 | cat confdefs.h >>conftest.$ac_ext | |
29533 | cat >>conftest.$ac_ext <<_ACEOF | |
29534 | /* end confdefs.h. */ | |
b040e242 VS |
29535 | #include <stdlib.h> |
29536 | #include <iconv.h> | |
e6cc62c6 VS |
29537 | int |
29538 | main () | |
29539 | { | |
b040e242 VS |
29540 | iconv_t cd = iconv_open("",""); |
29541 | iconv(cd,NULL,NULL,NULL,NULL); | |
29542 | iconv_close(cd); | |
e6cc62c6 VS |
29543 | ; |
29544 | return 0; | |
29545 | } | |
29546 | _ACEOF | |
29547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29549 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29550 | ac_status=$? |
32ddf007 VS |
29551 | grep -v '^ *+' conftest.er1 >conftest.err |
29552 | rm -f conftest.er1 | |
29553 | cat conftest.err >&5 | |
e6cc62c6 VS |
29554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29555 | (exit $ac_status); } && | |
32ddf007 VS |
29556 | { ac_try='test -z "$ac_cxx_werror_flag" |
29557 | || test ! -s conftest.err' | |
29558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29559 | (eval $ac_try) 2>&5 | |
29560 | ac_status=$? | |
29561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29562 | (exit $ac_status); }; } && | |
29563 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29565 | (eval $ac_try) 2>&5 | |
29566 | ac_status=$? | |
29567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29568 | (exit $ac_status); }; }; then | |
b040e242 VS |
29569 | am_cv_lib_iconv=yes |
29570 | am_cv_func_iconv=yes | |
29571 | else | |
e6cc62c6 VS |
29572 | echo "$as_me: failed program was:" >&5 |
29573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29574 | ||
af15babd | 29575 | fi |
32ddf007 VS |
29576 | rm -f conftest.err conftest.$ac_objext \ |
29577 | conftest$ac_exeext conftest.$ac_ext | |
b040e242 VS |
29578 | LIBS="$am_save_LIBS" |
29579 | fi | |
247f5006 | 29580 | |
e6cc62c6 VS |
29581 | fi |
29582 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29583 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 29584 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
29585 | |
29586 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 29587 | #define HAVE_ICONV 1 |
e6cc62c6 | 29588 | _ACEOF |
b040e242 | 29589 | |
e6cc62c6 VS |
29590 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
29591 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29592 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 29594 | else |
e6cc62c6 | 29595 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29596 | /* confdefs.h. */ |
29597 | _ACEOF | |
29598 | cat confdefs.h >>conftest.$ac_ext | |
29599 | cat >>conftest.$ac_ext <<_ACEOF | |
29600 | /* end confdefs.h. */ | |
b040e242 VS |
29601 | |
29602 | #include <stdlib.h> | |
29603 | #include <iconv.h> | |
29604 | extern | |
29605 | #ifdef __cplusplus | |
29606 | "C" | |
29607 | #endif | |
29608 | #if defined(__STDC__) || defined(__cplusplus) | |
29609 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29610 | #else | |
29611 | size_t iconv(); | |
29612 | #endif | |
af15babd | 29613 | |
e6cc62c6 VS |
29614 | int |
29615 | main () | |
29616 | { | |
29617 | ||
29618 | ; | |
29619 | return 0; | |
29620 | } | |
29621 | _ACEOF | |
29622 | rm -f conftest.$ac_objext | |
29623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29624 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29625 | ac_status=$? |
32ddf007 VS |
29626 | grep -v '^ *+' conftest.er1 >conftest.err |
29627 | rm -f conftest.er1 | |
29628 | cat conftest.err >&5 | |
e6cc62c6 VS |
29629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29630 | (exit $ac_status); } && | |
32ddf007 VS |
29631 | { ac_try='test -z "$ac_cxx_werror_flag" |
29632 | || test ! -s conftest.err' | |
29633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29634 | (eval $ac_try) 2>&5 | |
29635 | ac_status=$? | |
29636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29637 | (exit $ac_status); }; } && | |
29638 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29640 | (eval $ac_try) 2>&5 | |
29641 | ac_status=$? | |
29642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29643 | (exit $ac_status); }; }; then | |
b7043674 | 29644 | wx_cv_func_iconv_const="no" |
b040e242 | 29645 | else |
e6cc62c6 VS |
29646 | echo "$as_me: failed program was:" >&5 |
29647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29648 | ||
29649 | wx_cv_func_iconv_const="yes" | |
29650 | ||
247f5006 | 29651 | fi |
32ddf007 | 29652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29653 | |
e6cc62c6 VS |
29654 | fi |
29655 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29656 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
29657 | |
29658 | iconv_const= | |
1c405bb5 | 29659 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
29660 | iconv_const="const" |
29661 | fi | |
29662 | ||
e6cc62c6 VS |
29663 | |
29664 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 29665 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 29666 | _ACEOF |
b040e242 VS |
29667 | |
29668 | fi | |
29669 | LIBICONV= | |
29670 | if test "$am_cv_lib_iconv" = yes; then | |
29671 | LIBICONV="-liconv" | |
29672 | fi | |
e6cc62c6 | 29673 | |
b040e242 VS |
29674 | |
29675 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 29676 | ac_ext=c |
4f14bcd8 | 29677 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 29681 | |
5c6fa7d2 | 29682 | |
8284b0c5 | 29683 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
29684 | |
29685 | for ac_func in sigaction | |
af15babd | 29686 | do |
e6cc62c6 VS |
29687 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29688 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29689 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29690 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29692 | else | |
29693 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29694 | /* confdefs.h. */ |
29695 | _ACEOF | |
29696 | cat confdefs.h >>conftest.$ac_ext | |
29697 | cat >>conftest.$ac_ext <<_ACEOF | |
29698 | /* end confdefs.h. */ | |
32ddf007 VS |
29699 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29700 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29701 | #define $ac_func innocuous_$ac_func | |
29702 | ||
af15babd | 29703 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29704 | which can conflict with char $ac_func (); below. |
29705 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29706 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29707 | |
e6cc62c6 VS |
29708 | #ifdef __STDC__ |
29709 | # include <limits.h> | |
29710 | #else | |
29711 | # include <assert.h> | |
29712 | #endif | |
32ddf007 VS |
29713 | |
29714 | #undef $ac_func | |
29715 | ||
af15babd | 29716 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29717 | #ifdef __cplusplus |
29718 | extern "C" | |
29719 | { | |
29720 | #endif | |
af15babd | 29721 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29722 | builtin and then its argument prototype would still apply. */ |
29723 | char $ac_func (); | |
af15babd VZ |
29724 | /* The GNU C library defines this for functions which it implements |
29725 | to always fail with ENOSYS. Some functions are actually named | |
29726 | something starting with __ and the normal name is an alias. */ | |
29727 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29728 | choke me | |
29729 | #else | |
e6cc62c6 VS |
29730 | char (*f) () = $ac_func; |
29731 | #endif | |
29732 | #ifdef __cplusplus | |
29733 | } | |
af15babd VZ |
29734 | #endif |
29735 | ||
e6cc62c6 VS |
29736 | int |
29737 | main () | |
29738 | { | |
29739 | return f != $ac_func; | |
29740 | ; | |
29741 | return 0; | |
29742 | } | |
29743 | _ACEOF | |
29744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29746 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29747 | ac_status=$? |
32ddf007 VS |
29748 | grep -v '^ *+' conftest.er1 >conftest.err |
29749 | rm -f conftest.er1 | |
29750 | cat conftest.err >&5 | |
e6cc62c6 VS |
29751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29752 | (exit $ac_status); } && | |
32ddf007 VS |
29753 | { ac_try='test -z "$ac_c_werror_flag" |
29754 | || test ! -s conftest.err' | |
29755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29756 | (eval $ac_try) 2>&5 | |
29757 | ac_status=$? | |
29758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29759 | (exit $ac_status); }; } && | |
29760 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29762 | (eval $ac_try) 2>&5 | |
29763 | ac_status=$? | |
29764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29765 | (exit $ac_status); }; }; then | |
29766 | eval "$as_ac_var=yes" | |
29767 | else | |
29768 | echo "$as_me: failed program was:" >&5 | |
29769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29770 | ||
29771 | eval "$as_ac_var=no" | |
29772 | fi | |
32ddf007 VS |
29773 | rm -f conftest.err conftest.$ac_objext \ |
29774 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29775 | fi |
29776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29777 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29778 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29779 | cat >>confdefs.h <<_ACEOF | |
29780 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29781 | _ACEOF | |
7b4a847f | 29782 | |
4f14bcd8 GD |
29783 | fi |
29784 | done | |
29785 | ||
8284b0c5 | 29786 | |
4f14bcd8 | 29787 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
29788 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
29789 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
29790 | wxUSE_ON_FATAL_EXCEPTION=no |
29791 | fi | |
29792 | ||
29793 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
29794 | |
29795 | ||
29796 | ac_ext=cc | |
5c6fa7d2 | 29797 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
29798 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29799 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29800 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 29801 | |
5c6fa7d2 | 29802 | |
e6cc62c6 VS |
29803 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
29804 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29805 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29807 | else |
e6cc62c6 VS |
29808 | |
29809 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29810 | /* confdefs.h. */ |
29811 | _ACEOF | |
29812 | cat confdefs.h >>conftest.$ac_ext | |
29813 | cat >>conftest.$ac_ext <<_ACEOF | |
29814 | /* end confdefs.h. */ | |
4f14bcd8 | 29815 | #include <signal.h> |
e6cc62c6 VS |
29816 | int |
29817 | main () | |
29818 | { | |
4f14bcd8 GD |
29819 | |
29820 | extern void testSigHandler(int); | |
29821 | ||
29822 | struct sigaction sa; | |
29823 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
29824 | |
29825 | ; | |
29826 | return 0; | |
29827 | } | |
29828 | _ACEOF | |
29829 | rm -f conftest.$ac_objext | |
29830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 29831 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 29832 | ac_status=$? |
32ddf007 VS |
29833 | grep -v '^ *+' conftest.er1 >conftest.err |
29834 | rm -f conftest.er1 | |
29835 | cat conftest.err >&5 | |
e6cc62c6 VS |
29836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29837 | (exit $ac_status); } && | |
32ddf007 VS |
29838 | { ac_try='test -z "$ac_cxx_werror_flag" |
29839 | || test ! -s conftest.err' | |
29840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29841 | (eval $ac_try) 2>&5 | |
29842 | ac_status=$? | |
29843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29844 | (exit $ac_status); }; } && | |
29845 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
29846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29847 | (eval $ac_try) 2>&5 | |
29848 | ac_status=$? | |
29849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29850 | (exit $ac_status); }; }; then | |
29851 | ||
4f14bcd8 | 29852 | wx_cv_type_sa_handler=int |
e6cc62c6 | 29853 | |
af15babd | 29854 | else |
e6cc62c6 VS |
29855 | echo "$as_me: failed program was:" >&5 |
29856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29857 | ||
29858 | ||
4f14bcd8 | 29859 | wx_cv_type_sa_handler=void |
e6cc62c6 | 29860 | |
247f5006 | 29861 | fi |
32ddf007 | 29862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29863 | |
e6cc62c6 VS |
29864 | fi |
29865 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29866 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
29867 | |
29868 | ac_ext=c | |
4f14bcd8 | 29869 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
29870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
29871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 29873 | |
8284b0c5 | 29874 | |
e6cc62c6 | 29875 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29876 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 29877 | _ACEOF |
af15babd | 29878 | |
4f14bcd8 GD |
29879 | fi |
29880 | fi | |
af15babd | 29881 | |
e6cc62c6 VS |
29882 | |
29883 | ||
a1d22ad7 | 29884 | for ac_func in mkstemp mktemp |
af15babd | 29885 | do |
e6cc62c6 VS |
29886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29891 | else | |
29892 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
29893 | /* confdefs.h. */ |
29894 | _ACEOF | |
29895 | cat confdefs.h >>conftest.$ac_ext | |
29896 | cat >>conftest.$ac_ext <<_ACEOF | |
29897 | /* end confdefs.h. */ | |
32ddf007 VS |
29898 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29899 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29900 | #define $ac_func innocuous_$ac_func | |
29901 | ||
af15babd | 29902 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29903 | which can conflict with char $ac_func (); below. |
29904 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29905 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 29906 | |
e6cc62c6 VS |
29907 | #ifdef __STDC__ |
29908 | # include <limits.h> | |
29909 | #else | |
29910 | # include <assert.h> | |
29911 | #endif | |
32ddf007 VS |
29912 | |
29913 | #undef $ac_func | |
29914 | ||
af15babd | 29915 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29916 | #ifdef __cplusplus |
29917 | extern "C" | |
29918 | { | |
29919 | #endif | |
af15babd | 29920 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29921 | builtin and then its argument prototype would still apply. */ |
29922 | char $ac_func (); | |
af15babd VZ |
29923 | /* The GNU C library defines this for functions which it implements |
29924 | to always fail with ENOSYS. Some functions are actually named | |
29925 | something starting with __ and the normal name is an alias. */ | |
29926 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29927 | choke me | |
29928 | #else | |
e6cc62c6 VS |
29929 | char (*f) () = $ac_func; |
29930 | #endif | |
29931 | #ifdef __cplusplus | |
29932 | } | |
af15babd VZ |
29933 | #endif |
29934 | ||
e6cc62c6 VS |
29935 | int |
29936 | main () | |
29937 | { | |
29938 | return f != $ac_func; | |
29939 | ; | |
29940 | return 0; | |
29941 | } | |
29942 | _ACEOF | |
29943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 29945 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 29946 | ac_status=$? |
32ddf007 VS |
29947 | grep -v '^ *+' conftest.er1 >conftest.err |
29948 | rm -f conftest.er1 | |
29949 | cat conftest.err >&5 | |
e6cc62c6 VS |
29950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29951 | (exit $ac_status); } && | |
32ddf007 VS |
29952 | { ac_try='test -z "$ac_c_werror_flag" |
29953 | || test ! -s conftest.err' | |
29954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29955 | (eval $ac_try) 2>&5 | |
29956 | ac_status=$? | |
29957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29958 | (exit $ac_status); }; } && | |
29959 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
29960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29961 | (eval $ac_try) 2>&5 | |
29962 | ac_status=$? | |
29963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29964 | (exit $ac_status); }; }; then | |
29965 | eval "$as_ac_var=yes" | |
29966 | else | |
29967 | echo "$as_me: failed program was:" >&5 | |
29968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29969 | ||
29970 | eval "$as_ac_var=no" | |
29971 | fi | |
32ddf007 VS |
29972 | rm -f conftest.err conftest.$ac_objext \ |
29973 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
29974 | fi |
29975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29976 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29977 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29978 | cat >>confdefs.h <<_ACEOF | |
29979 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29980 | _ACEOF | |
ade35f11 | 29981 | break |
ade35f11 VZ |
29982 | fi |
29983 | done | |
29984 | ||
8284b0c5 | 29985 | |
e6cc62c6 VS |
29986 | echo "$as_me:$LINENO: checking for statfs" >&5 |
29987 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29988 | if test "${wx_cv_func_statfs+set}" = set; then | |
29989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29990 | else |
e6cc62c6 | 29991 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
29992 | /* confdefs.h. */ |
29993 | _ACEOF | |
29994 | cat confdefs.h >>conftest.$ac_ext | |
29995 | cat >>conftest.$ac_ext <<_ACEOF | |
29996 | /* end confdefs.h. */ | |
4f14bcd8 GD |
29997 | |
29998 | #if defined(__BSD__) | |
29999 | #include <sys/param.h> | |
30000 | #include <sys/mount.h> | |
30001 | #else | |
30002 | #include <sys/vfs.h> | |
30003 | #endif | |
e6cc62c6 VS |
30004 | |
30005 | int | |
30006 | main () | |
30007 | { | |
4f14bcd8 GD |
30008 | |
30009 | long l; | |
30010 | struct statfs fs; | |
30011 | statfs("/", &fs); | |
30012 | l = fs.f_bsize; | |
30013 | l += fs.f_blocks; | |
30014 | l += fs.f_bavail; | |
e6cc62c6 VS |
30015 | |
30016 | ; | |
30017 | return 0; | |
30018 | } | |
30019 | _ACEOF | |
30020 | rm -f conftest.$ac_objext | |
30021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30022 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30023 | ac_status=$? |
32ddf007 VS |
30024 | grep -v '^ *+' conftest.er1 >conftest.err |
30025 | rm -f conftest.er1 | |
30026 | cat conftest.err >&5 | |
e6cc62c6 VS |
30027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30028 | (exit $ac_status); } && | |
32ddf007 VS |
30029 | { ac_try='test -z "$ac_c_werror_flag" |
30030 | || test ! -s conftest.err' | |
30031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30032 | (eval $ac_try) 2>&5 | |
30033 | ac_status=$? | |
30034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30035 | (exit $ac_status); }; } && | |
30036 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30038 | (eval $ac_try) 2>&5 | |
30039 | ac_status=$? | |
30040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30041 | (exit $ac_status); }; }; then | |
30042 | ||
4f14bcd8 | 30043 | wx_cv_func_statfs=yes |
e6cc62c6 | 30044 | |
4f14bcd8 | 30045 | else |
e6cc62c6 VS |
30046 | echo "$as_me: failed program was:" >&5 |
30047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30048 | ||
30049 | ||
4f14bcd8 | 30050 | wx_cv_func_statfs=no |
e6cc62c6 | 30051 | |
8284b0c5 | 30052 | |
247f5006 | 30053 | fi |
32ddf007 | 30054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30055 | |
e6cc62c6 VS |
30056 | fi |
30057 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
30058 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
30059 | |
30060 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 30061 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 30062 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30063 | #define HAVE_STATFS 1 |
e6cc62c6 | 30064 | _ACEOF |
4f14bcd8 GD |
30065 | |
30066 | else | |
e6cc62c6 VS |
30067 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
30068 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
30069 | if test "${wx_cv_func_statvfs+set}" = set; then | |
30070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 30071 | else |
e6cc62c6 | 30072 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30073 | /* confdefs.h. */ |
30074 | _ACEOF | |
30075 | cat confdefs.h >>conftest.$ac_ext | |
30076 | cat >>conftest.$ac_ext <<_ACEOF | |
30077 | /* end confdefs.h. */ | |
af15babd | 30078 | |
54ab82b3 VZ |
30079 | #include <stddef.h> |
30080 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
30081 | |
30082 | int | |
30083 | main () | |
30084 | { | |
af15babd | 30085 | |
54ab82b3 | 30086 | statvfs("/", NULL); |
e6cc62c6 VS |
30087 | |
30088 | ; | |
30089 | return 0; | |
30090 | } | |
30091 | _ACEOF | |
30092 | rm -f conftest.$ac_objext | |
30093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30094 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30095 | ac_status=$? |
32ddf007 VS |
30096 | grep -v '^ *+' conftest.er1 >conftest.err |
30097 | rm -f conftest.er1 | |
30098 | cat conftest.err >&5 | |
e6cc62c6 VS |
30099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30100 | (exit $ac_status); } && | |
32ddf007 VS |
30101 | { ac_try='test -z "$ac_c_werror_flag" |
30102 | || test ! -s conftest.err' | |
30103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30104 | (eval $ac_try) 2>&5 | |
30105 | ac_status=$? | |
30106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30107 | (exit $ac_status); }; } && | |
30108 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30110 | (eval $ac_try) 2>&5 | |
30111 | ac_status=$? | |
30112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30113 | (exit $ac_status); }; }; then | |
54ab82b3 | 30114 | wx_cv_func_statvfs=yes |
af15babd | 30115 | else |
e6cc62c6 VS |
30116 | echo "$as_me: failed program was:" >&5 |
30117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30118 | ||
30119 | wx_cv_func_statvfs=no | |
30120 | ||
247f5006 | 30121 | fi |
32ddf007 | 30122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30123 | |
e6cc62c6 VS |
30124 | fi |
30125 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
30126 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 30127 | |
4f14bcd8 | 30128 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
30129 | |
30130 | ||
30131 | ac_ext=cc | |
54ab82b3 | 30132 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
30136 | |
30137 | ||
e6cc62c6 VS |
30138 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
30139 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
30140 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
30141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 30142 | else |
e6cc62c6 | 30143 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30144 | /* confdefs.h. */ |
30145 | _ACEOF | |
30146 | cat confdefs.h >>conftest.$ac_ext | |
30147 | cat >>conftest.$ac_ext <<_ACEOF | |
30148 | /* end confdefs.h. */ | |
54ab82b3 VZ |
30149 | |
30150 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
30151 | |
30152 | int | |
30153 | main () | |
30154 | { | |
54ab82b3 VZ |
30155 | |
30156 | long l; | |
30157 | statvfs_t fs; | |
30158 | statvfs("/", &fs); | |
30159 | l = fs.f_bsize; | |
30160 | l += fs.f_blocks; | |
30161 | l += fs.f_bavail; | |
e6cc62c6 VS |
30162 | |
30163 | ; | |
30164 | return 0; | |
30165 | } | |
30166 | _ACEOF | |
30167 | rm -f conftest.$ac_objext | |
30168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30169 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30170 | ac_status=$? |
32ddf007 VS |
30171 | grep -v '^ *+' conftest.er1 >conftest.err |
30172 | rm -f conftest.er1 | |
30173 | cat conftest.err >&5 | |
e6cc62c6 VS |
30174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30175 | (exit $ac_status); } && | |
32ddf007 VS |
30176 | { ac_try='test -z "$ac_cxx_werror_flag" |
30177 | || test ! -s conftest.err' | |
30178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30179 | (eval $ac_try) 2>&5 | |
30180 | ac_status=$? | |
30181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30182 | (exit $ac_status); }; } && | |
30183 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30185 | (eval $ac_try) 2>&5 | |
30186 | ac_status=$? | |
30187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30188 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
30189 | wx_cv_type_statvfs_t=statvfs_t |
30190 | else | |
e6cc62c6 VS |
30191 | echo "$as_me: failed program was:" >&5 |
30192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30193 | ||
30194 | ||
30195 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30196 | /* confdefs.h. */ |
30197 | _ACEOF | |
30198 | cat confdefs.h >>conftest.$ac_ext | |
30199 | cat >>conftest.$ac_ext <<_ACEOF | |
30200 | /* end confdefs.h. */ | |
54ab82b3 VZ |
30201 | |
30202 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
30203 | |
30204 | int | |
30205 | main () | |
30206 | { | |
54ab82b3 VZ |
30207 | |
30208 | long l; | |
65d8ef1e | 30209 | struct statvfs fs; |
54ab82b3 VZ |
30210 | statvfs("/", &fs); |
30211 | l = fs.f_bsize; | |
30212 | l += fs.f_blocks; | |
30213 | l += fs.f_bavail; | |
e6cc62c6 VS |
30214 | |
30215 | ; | |
30216 | return 0; | |
30217 | } | |
30218 | _ACEOF | |
30219 | rm -f conftest.$ac_objext | |
30220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 30221 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 30222 | ac_status=$? |
32ddf007 VS |
30223 | grep -v '^ *+' conftest.er1 >conftest.err |
30224 | rm -f conftest.er1 | |
30225 | cat conftest.err >&5 | |
e6cc62c6 VS |
30226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30227 | (exit $ac_status); } && | |
32ddf007 VS |
30228 | { ac_try='test -z "$ac_cxx_werror_flag" |
30229 | || test ! -s conftest.err' | |
30230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30231 | (eval $ac_try) 2>&5 | |
30232 | ac_status=$? | |
30233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30234 | (exit $ac_status); }; } && | |
30235 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
30236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30237 | (eval $ac_try) 2>&5 | |
30238 | ac_status=$? | |
30239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30240 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
30241 | wx_cv_type_statvfs_t="struct statvfs" |
30242 | else | |
e6cc62c6 VS |
30243 | echo "$as_me: failed program was:" >&5 |
30244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30245 | ||
30246 | wx_cv_type_statvfs_t="unknown" | |
30247 | ||
54ab82b3 | 30248 | fi |
32ddf007 | 30249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30250 | |
30251 | ||
54ab82b3 | 30252 | fi |
32ddf007 | 30253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 30254 | |
e6cc62c6 VS |
30255 | fi |
30256 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
30257 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
30258 | |
30259 | ac_ext=c | |
54ab82b3 | 30260 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
30264 | |
30265 | ||
30266 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 30267 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30268 | #define HAVE_STATVFS 1 |
e6cc62c6 | 30269 | _ACEOF |
af15babd | 30270 | |
54ab82b3 | 30271 | fi |
4f14bcd8 | 30272 | else |
54ab82b3 | 30273 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
30274 | fi |
30275 | fi | |
af15babd | 30276 | |
54ab82b3 | 30277 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 30278 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 30279 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 30280 | _ACEOF |
54ab82b3 VZ |
30281 | |
30282 | else | |
e6cc62c6 VS |
30283 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
30284 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
30285 | fi |
30286 | ||
4f14bcd8 | 30287 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
30288 | |
30289 | ||
30290 | for ac_func in fcntl flock | |
af15babd | 30291 | do |
e6cc62c6 VS |
30292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30293 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30295 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30297 | else | |
30298 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30299 | /* confdefs.h. */ |
30300 | _ACEOF | |
30301 | cat confdefs.h >>conftest.$ac_ext | |
30302 | cat >>conftest.$ac_ext <<_ACEOF | |
30303 | /* end confdefs.h. */ | |
32ddf007 VS |
30304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30306 | #define $ac_func innocuous_$ac_func | |
30307 | ||
af15babd | 30308 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30309 | which can conflict with char $ac_func (); below. |
30310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30311 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30312 | |
e6cc62c6 VS |
30313 | #ifdef __STDC__ |
30314 | # include <limits.h> | |
30315 | #else | |
30316 | # include <assert.h> | |
30317 | #endif | |
32ddf007 VS |
30318 | |
30319 | #undef $ac_func | |
30320 | ||
af15babd | 30321 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30322 | #ifdef __cplusplus |
30323 | extern "C" | |
30324 | { | |
30325 | #endif | |
af15babd | 30326 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30327 | builtin and then its argument prototype would still apply. */ |
30328 | char $ac_func (); | |
af15babd VZ |
30329 | /* The GNU C library defines this for functions which it implements |
30330 | to always fail with ENOSYS. Some functions are actually named | |
30331 | something starting with __ and the normal name is an alias. */ | |
30332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30333 | choke me | |
30334 | #else | |
e6cc62c6 VS |
30335 | char (*f) () = $ac_func; |
30336 | #endif | |
30337 | #ifdef __cplusplus | |
30338 | } | |
af15babd VZ |
30339 | #endif |
30340 | ||
e6cc62c6 VS |
30341 | int |
30342 | main () | |
30343 | { | |
30344 | return f != $ac_func; | |
30345 | ; | |
30346 | return 0; | |
30347 | } | |
30348 | _ACEOF | |
30349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30351 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30352 | ac_status=$? |
32ddf007 VS |
30353 | grep -v '^ *+' conftest.er1 >conftest.err |
30354 | rm -f conftest.er1 | |
30355 | cat conftest.err >&5 | |
e6cc62c6 VS |
30356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30357 | (exit $ac_status); } && | |
32ddf007 VS |
30358 | { ac_try='test -z "$ac_c_werror_flag" |
30359 | || test ! -s conftest.err' | |
30360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30361 | (eval $ac_try) 2>&5 | |
30362 | ac_status=$? | |
30363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30364 | (exit $ac_status); }; } && | |
30365 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30367 | (eval $ac_try) 2>&5 | |
30368 | ac_status=$? | |
30369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30370 | (exit $ac_status); }; }; then | |
30371 | eval "$as_ac_var=yes" | |
30372 | else | |
30373 | echo "$as_me: failed program was:" >&5 | |
30374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30375 | ||
30376 | eval "$as_ac_var=no" | |
30377 | fi | |
32ddf007 VS |
30378 | rm -f conftest.err conftest.$ac_objext \ |
30379 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30380 | fi |
30381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30382 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30383 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30384 | cat >>confdefs.h <<_ACEOF | |
30385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30386 | _ACEOF | |
4f14bcd8 | 30387 | break |
af15babd VZ |
30388 | fi |
30389 | done | |
30390 | ||
8284b0c5 | 30391 | |
4f14bcd8 | 30392 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
30393 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
30394 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
30395 | wxUSE_SNGLINST_CHECKER=no |
30396 | fi | |
30397 | fi | |
af15babd | 30398 | |
e6cc62c6 | 30399 | |
4f14bcd8 | 30400 | for ac_func in timegm |
af15babd | 30401 | do |
e6cc62c6 VS |
30402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30407 | else | |
30408 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30409 | /* confdefs.h. */ |
30410 | _ACEOF | |
30411 | cat confdefs.h >>conftest.$ac_ext | |
30412 | cat >>conftest.$ac_ext <<_ACEOF | |
30413 | /* end confdefs.h. */ | |
32ddf007 VS |
30414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30416 | #define $ac_func innocuous_$ac_func | |
30417 | ||
af15babd | 30418 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30419 | which can conflict with char $ac_func (); below. |
30420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30421 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30422 | |
e6cc62c6 VS |
30423 | #ifdef __STDC__ |
30424 | # include <limits.h> | |
30425 | #else | |
30426 | # include <assert.h> | |
30427 | #endif | |
32ddf007 VS |
30428 | |
30429 | #undef $ac_func | |
30430 | ||
af15babd | 30431 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30432 | #ifdef __cplusplus |
30433 | extern "C" | |
30434 | { | |
30435 | #endif | |
af15babd | 30436 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30437 | builtin and then its argument prototype would still apply. */ |
30438 | char $ac_func (); | |
af15babd VZ |
30439 | /* The GNU C library defines this for functions which it implements |
30440 | to always fail with ENOSYS. Some functions are actually named | |
30441 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
30442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
30443 | choke me | |
30444 | #else | |
e6cc62c6 VS |
30445 | char (*f) () = $ac_func; |
30446 | #endif | |
30447 | #ifdef __cplusplus | |
30448 | } | |
247f5006 VZ |
30449 | #endif |
30450 | ||
e6cc62c6 VS |
30451 | int |
30452 | main () | |
30453 | { | |
30454 | return f != $ac_func; | |
30455 | ; | |
30456 | return 0; | |
30457 | } | |
30458 | _ACEOF | |
30459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30461 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30462 | ac_status=$? |
32ddf007 VS |
30463 | grep -v '^ *+' conftest.er1 >conftest.err |
30464 | rm -f conftest.er1 | |
30465 | cat conftest.err >&5 | |
e6cc62c6 VS |
30466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30467 | (exit $ac_status); } && | |
32ddf007 VS |
30468 | { ac_try='test -z "$ac_c_werror_flag" |
30469 | || test ! -s conftest.err' | |
30470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30471 | (eval $ac_try) 2>&5 | |
30472 | ac_status=$? | |
30473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30474 | (exit $ac_status); }; } && | |
30475 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30477 | (eval $ac_try) 2>&5 | |
30478 | ac_status=$? | |
30479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30480 | (exit $ac_status); }; }; then | |
30481 | eval "$as_ac_var=yes" | |
30482 | else | |
30483 | echo "$as_me: failed program was:" >&5 | |
30484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30485 | ||
30486 | eval "$as_ac_var=no" | |
30487 | fi | |
32ddf007 VS |
30488 | rm -f conftest.err conftest.$ac_objext \ |
30489 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30490 | fi |
30491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30494 | cat >>confdefs.h <<_ACEOF | |
30495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30496 | _ACEOF | |
703e0a69 | 30497 | |
af15babd VZ |
30498 | fi |
30499 | done | |
30500 | ||
8284b0c5 | 30501 | |
e6cc62c6 VS |
30502 | |
30503 | ||
4f14bcd8 | 30504 | for ac_func in putenv setenv |
10f2d63a | 30505 | do |
e6cc62c6 VS |
30506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30509 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30511 | else | |
30512 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30513 | /* confdefs.h. */ |
30514 | _ACEOF | |
30515 | cat confdefs.h >>conftest.$ac_ext | |
30516 | cat >>conftest.$ac_ext <<_ACEOF | |
30517 | /* end confdefs.h. */ | |
32ddf007 VS |
30518 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30519 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30520 | #define $ac_func innocuous_$ac_func | |
30521 | ||
af15babd | 30522 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30523 | which can conflict with char $ac_func (); below. |
30524 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30525 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30526 | |
e6cc62c6 VS |
30527 | #ifdef __STDC__ |
30528 | # include <limits.h> | |
30529 | #else | |
30530 | # include <assert.h> | |
30531 | #endif | |
32ddf007 VS |
30532 | |
30533 | #undef $ac_func | |
30534 | ||
af15babd | 30535 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30536 | #ifdef __cplusplus |
30537 | extern "C" | |
30538 | { | |
30539 | #endif | |
af15babd | 30540 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30541 | builtin and then its argument prototype would still apply. */ |
30542 | char $ac_func (); | |
af15babd VZ |
30543 | /* The GNU C library defines this for functions which it implements |
30544 | to always fail with ENOSYS. Some functions are actually named | |
30545 | something starting with __ and the normal name is an alias. */ | |
30546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30547 | choke me | |
30548 | #else | |
e6cc62c6 VS |
30549 | char (*f) () = $ac_func; |
30550 | #endif | |
30551 | #ifdef __cplusplus | |
30552 | } | |
af15babd VZ |
30553 | #endif |
30554 | ||
e6cc62c6 VS |
30555 | int |
30556 | main () | |
30557 | { | |
30558 | return f != $ac_func; | |
30559 | ; | |
30560 | return 0; | |
30561 | } | |
30562 | _ACEOF | |
30563 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30565 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30566 | ac_status=$? |
32ddf007 VS |
30567 | grep -v '^ *+' conftest.er1 >conftest.err |
30568 | rm -f conftest.er1 | |
30569 | cat conftest.err >&5 | |
e6cc62c6 VS |
30570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30571 | (exit $ac_status); } && | |
32ddf007 VS |
30572 | { ac_try='test -z "$ac_c_werror_flag" |
30573 | || test ! -s conftest.err' | |
30574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30575 | (eval $ac_try) 2>&5 | |
30576 | ac_status=$? | |
30577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30578 | (exit $ac_status); }; } && | |
30579 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30581 | (eval $ac_try) 2>&5 | |
30582 | ac_status=$? | |
30583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30584 | (exit $ac_status); }; }; then | |
30585 | eval "$as_ac_var=yes" | |
30586 | else | |
30587 | echo "$as_me: failed program was:" >&5 | |
30588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30589 | ||
30590 | eval "$as_ac_var=no" | |
30591 | fi | |
32ddf007 VS |
30592 | rm -f conftest.err conftest.$ac_objext \ |
30593 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30594 | fi |
30595 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30596 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30597 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30598 | cat >>confdefs.h <<_ACEOF | |
30599 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30600 | _ACEOF | |
4f14bcd8 | 30601 | break |
af15babd | 30602 | fi |
af15babd VZ |
30603 | done |
30604 | ||
8284b0c5 | 30605 | |
4f14bcd8 GD |
30606 | HAVE_SOME_SLEEP_FUNC=0 |
30607 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 30608 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30609 | #define HAVE_SLEEP 1 |
e6cc62c6 | 30610 | _ACEOF |
af15babd | 30611 | |
4f14bcd8 | 30612 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30613 | fi |
30614 | ||
4f14bcd8 | 30615 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 30616 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30617 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30618 | _ACEOF |
10f2d63a | 30619 | |
4f14bcd8 | 30620 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
30621 | fi |
30622 | ||
4f14bcd8 GD |
30623 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
30624 | POSIX4_LINK= | |
e6cc62c6 VS |
30625 | |
30626 | for ac_func in nanosleep | |
4f14bcd8 | 30627 | do |
e6cc62c6 VS |
30628 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30629 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30630 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30631 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30633 | else | |
30634 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30635 | /* confdefs.h. */ |
30636 | _ACEOF | |
30637 | cat confdefs.h >>conftest.$ac_ext | |
30638 | cat >>conftest.$ac_ext <<_ACEOF | |
30639 | /* end confdefs.h. */ | |
32ddf007 VS |
30640 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30642 | #define $ac_func innocuous_$ac_func | |
30643 | ||
4f14bcd8 | 30644 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30645 | which can conflict with char $ac_func (); below. |
30646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30647 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30648 | |
e6cc62c6 VS |
30649 | #ifdef __STDC__ |
30650 | # include <limits.h> | |
30651 | #else | |
30652 | # include <assert.h> | |
30653 | #endif | |
32ddf007 VS |
30654 | |
30655 | #undef $ac_func | |
30656 | ||
10f2d63a | 30657 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30658 | #ifdef __cplusplus |
30659 | extern "C" | |
30660 | { | |
30661 | #endif | |
10f2d63a | 30662 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30663 | builtin and then its argument prototype would still apply. */ |
30664 | char $ac_func (); | |
4f14bcd8 GD |
30665 | /* The GNU C library defines this for functions which it implements |
30666 | to always fail with ENOSYS. Some functions are actually named | |
30667 | something starting with __ and the normal name is an alias. */ | |
30668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30669 | choke me | |
30670 | #else | |
e6cc62c6 VS |
30671 | char (*f) () = $ac_func; |
30672 | #endif | |
30673 | #ifdef __cplusplus | |
30674 | } | |
4f14bcd8 GD |
30675 | #endif |
30676 | ||
e6cc62c6 VS |
30677 | int |
30678 | main () | |
30679 | { | |
30680 | return f != $ac_func; | |
30681 | ; | |
30682 | return 0; | |
30683 | } | |
30684 | _ACEOF | |
30685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30687 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30688 | ac_status=$? |
32ddf007 VS |
30689 | grep -v '^ *+' conftest.er1 >conftest.err |
30690 | rm -f conftest.er1 | |
30691 | cat conftest.err >&5 | |
e6cc62c6 VS |
30692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30693 | (exit $ac_status); } && | |
32ddf007 VS |
30694 | { ac_try='test -z "$ac_c_werror_flag" |
30695 | || test ! -s conftest.err' | |
30696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30697 | (eval $ac_try) 2>&5 | |
30698 | ac_status=$? | |
30699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30700 | (exit $ac_status); }; } && | |
30701 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30703 | (eval $ac_try) 2>&5 | |
30704 | ac_status=$? | |
30705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30706 | (exit $ac_status); }; }; then | |
30707 | eval "$as_ac_var=yes" | |
30708 | else | |
30709 | echo "$as_me: failed program was:" >&5 | |
30710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30711 | ||
30712 | eval "$as_ac_var=no" | |
30713 | fi | |
32ddf007 VS |
30714 | rm -f conftest.err conftest.$ac_objext \ |
30715 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30716 | fi |
30717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30718 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30719 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30720 | cat >>confdefs.h <<_ACEOF | |
30721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30722 | _ACEOF | |
30723 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30724 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30725 | _ACEOF |
4f14bcd8 | 30726 | |
10f2d63a | 30727 | else |
e6cc62c6 VS |
30728 | |
30729 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30730 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30731 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 30733 | else |
e6cc62c6 | 30734 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 30735 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 30736 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
30737 | /* confdefs.h. */ |
30738 | _ACEOF | |
30739 | cat confdefs.h >>conftest.$ac_ext | |
30740 | cat >>conftest.$ac_ext <<_ACEOF | |
30741 | /* end confdefs.h. */ | |
30742 | ||
10f2d63a | 30743 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30744 | #ifdef __cplusplus |
30745 | extern "C" | |
30746 | #endif | |
10f2d63a | 30747 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30748 | builtin and then its argument prototype would still apply. */ |
30749 | char nanosleep (); | |
30750 | int | |
30751 | main () | |
30752 | { | |
30753 | nanosleep (); | |
30754 | ; | |
30755 | return 0; | |
30756 | } | |
30757 | _ACEOF | |
30758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30760 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30761 | ac_status=$? |
32ddf007 VS |
30762 | grep -v '^ *+' conftest.er1 >conftest.err |
30763 | rm -f conftest.er1 | |
30764 | cat conftest.err >&5 | |
e6cc62c6 VS |
30765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30766 | (exit $ac_status); } && | |
32ddf007 VS |
30767 | { ac_try='test -z "$ac_c_werror_flag" |
30768 | || test ! -s conftest.err' | |
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); }; } && | |
30774 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30776 | (eval $ac_try) 2>&5 | |
30777 | ac_status=$? | |
30778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30779 | (exit $ac_status); }; }; then | |
30780 | ac_cv_lib_posix4_nanosleep=yes | |
30781 | else | |
30782 | echo "$as_me: failed program was:" >&5 | |
30783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30784 | ||
30785 | ac_cv_lib_posix4_nanosleep=no | |
30786 | fi | |
32ddf007 VS |
30787 | rm -f conftest.err conftest.$ac_objext \ |
30788 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30789 | LIBS=$ac_check_lib_save_LIBS |
30790 | fi | |
30791 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30792 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30793 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30794 | ||
30795 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30796 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 30797 | _ACEOF |
4f14bcd8 | 30798 | |
3d63bc3a | 30799 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 30800 | |
10f2d63a | 30801 | else |
10f2d63a | 30802 | |
e6cc62c6 VS |
30803 | |
30804 | for ac_func in usleep | |
4f14bcd8 | 30805 | do |
e6cc62c6 VS |
30806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30807 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30809 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30811 | else | |
30812 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30813 | /* confdefs.h. */ |
30814 | _ACEOF | |
30815 | cat confdefs.h >>conftest.$ac_ext | |
30816 | cat >>conftest.$ac_ext <<_ACEOF | |
30817 | /* end confdefs.h. */ | |
32ddf007 VS |
30818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30820 | #define $ac_func innocuous_$ac_func | |
30821 | ||
4f14bcd8 | 30822 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30823 | which can conflict with char $ac_func (); below. |
30824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30825 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30826 | |
e6cc62c6 VS |
30827 | #ifdef __STDC__ |
30828 | # include <limits.h> | |
30829 | #else | |
30830 | # include <assert.h> | |
30831 | #endif | |
32ddf007 VS |
30832 | |
30833 | #undef $ac_func | |
30834 | ||
4f14bcd8 | 30835 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30836 | #ifdef __cplusplus |
30837 | extern "C" | |
30838 | { | |
30839 | #endif | |
4f14bcd8 | 30840 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30841 | builtin and then its argument prototype would still apply. */ |
30842 | char $ac_func (); | |
4f14bcd8 GD |
30843 | /* The GNU C library defines this for functions which it implements |
30844 | to always fail with ENOSYS. Some functions are actually named | |
30845 | something starting with __ and the normal name is an alias. */ | |
30846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30847 | choke me | |
30848 | #else | |
e6cc62c6 VS |
30849 | char (*f) () = $ac_func; |
30850 | #endif | |
30851 | #ifdef __cplusplus | |
30852 | } | |
4f14bcd8 GD |
30853 | #endif |
30854 | ||
e6cc62c6 VS |
30855 | int |
30856 | main () | |
30857 | { | |
30858 | return f != $ac_func; | |
30859 | ; | |
30860 | return 0; | |
30861 | } | |
30862 | _ACEOF | |
30863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30865 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30866 | ac_status=$? |
32ddf007 VS |
30867 | grep -v '^ *+' conftest.er1 >conftest.err |
30868 | rm -f conftest.er1 | |
30869 | cat conftest.err >&5 | |
e6cc62c6 VS |
30870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30871 | (exit $ac_status); } && | |
32ddf007 VS |
30872 | { ac_try='test -z "$ac_c_werror_flag" |
30873 | || test ! -s conftest.err' | |
30874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30875 | (eval $ac_try) 2>&5 | |
30876 | ac_status=$? | |
30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30878 | (exit $ac_status); }; } && | |
30879 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
30880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30881 | (eval $ac_try) 2>&5 | |
30882 | ac_status=$? | |
30883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30884 | (exit $ac_status); }; }; then | |
30885 | eval "$as_ac_var=yes" | |
30886 | else | |
30887 | echo "$as_me: failed program was:" >&5 | |
30888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30889 | ||
30890 | eval "$as_ac_var=no" | |
30891 | fi | |
32ddf007 VS |
30892 | rm -f conftest.err conftest.$ac_objext \ |
30893 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
30894 | fi |
30895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30897 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30898 | cat >>confdefs.h <<_ACEOF | |
30899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30900 | _ACEOF | |
30901 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30902 | #define HAVE_USLEEP 1 |
e6cc62c6 | 30903 | _ACEOF |
4f14bcd8 | 30904 | |
698dcdb6 | 30905 | else |
e6cc62c6 VS |
30906 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
30907 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30908 | ||
10f2d63a | 30909 | fi |
4f14bcd8 | 30910 | done |
10f2d63a | 30911 | |
e6cc62c6 VS |
30912 | |
30913 | ||
6232543b | 30914 | fi |
10f2d63a | 30915 | |
e6cc62c6 VS |
30916 | |
30917 | ||
1e487827 | 30918 | fi |
4f14bcd8 | 30919 | done |
703e0a69 | 30920 | |
10f2d63a VZ |
30921 | fi |
30922 | ||
e6cc62c6 VS |
30923 | |
30924 | ||
4f14bcd8 | 30925 | for ac_func in uname gethostname |
70846f0a | 30926 | do |
e6cc62c6 VS |
30927 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30928 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30929 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30930 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30932 | else | |
30933 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
30934 | /* confdefs.h. */ |
30935 | _ACEOF | |
30936 | cat confdefs.h >>conftest.$ac_ext | |
30937 | cat >>conftest.$ac_ext <<_ACEOF | |
30938 | /* end confdefs.h. */ | |
32ddf007 VS |
30939 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30940 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30941 | #define $ac_func innocuous_$ac_func | |
30942 | ||
70846f0a | 30943 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30944 | which can conflict with char $ac_func (); below. |
30945 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30946 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 30947 | |
e6cc62c6 VS |
30948 | #ifdef __STDC__ |
30949 | # include <limits.h> | |
30950 | #else | |
30951 | # include <assert.h> | |
30952 | #endif | |
32ddf007 VS |
30953 | |
30954 | #undef $ac_func | |
30955 | ||
70846f0a | 30956 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30957 | #ifdef __cplusplus |
30958 | extern "C" | |
30959 | { | |
30960 | #endif | |
70846f0a | 30961 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30962 | builtin and then its argument prototype would still apply. */ |
30963 | char $ac_func (); | |
70846f0a VZ |
30964 | /* The GNU C library defines this for functions which it implements |
30965 | to always fail with ENOSYS. Some functions are actually named | |
30966 | something starting with __ and the normal name is an alias. */ | |
30967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30968 | choke me | |
30969 | #else | |
e6cc62c6 VS |
30970 | char (*f) () = $ac_func; |
30971 | #endif | |
30972 | #ifdef __cplusplus | |
30973 | } | |
70846f0a VZ |
30974 | #endif |
30975 | ||
e6cc62c6 VS |
30976 | int |
30977 | main () | |
30978 | { | |
30979 | return f != $ac_func; | |
30980 | ; | |
30981 | return 0; | |
30982 | } | |
30983 | _ACEOF | |
30984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 30986 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 30987 | ac_status=$? |
32ddf007 VS |
30988 | grep -v '^ *+' conftest.er1 >conftest.err |
30989 | rm -f conftest.er1 | |
30990 | cat conftest.err >&5 | |
e6cc62c6 VS |
30991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30992 | (exit $ac_status); } && | |
32ddf007 VS |
30993 | { ac_try='test -z "$ac_c_werror_flag" |
30994 | || test ! -s conftest.err' | |
30995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30996 | (eval $ac_try) 2>&5 | |
30997 | ac_status=$? | |
30998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30999 | (exit $ac_status); }; } && | |
31000 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31002 | (eval $ac_try) 2>&5 | |
31003 | ac_status=$? | |
31004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31005 | (exit $ac_status); }; }; then | |
31006 | eval "$as_ac_var=yes" | |
31007 | else | |
31008 | echo "$as_me: failed program was:" >&5 | |
31009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31010 | ||
31011 | eval "$as_ac_var=no" | |
31012 | fi | |
32ddf007 VS |
31013 | rm -f conftest.err conftest.$ac_objext \ |
31014 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31015 | fi |
31016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31017 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31018 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31019 | cat >>confdefs.h <<_ACEOF | |
31020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31021 | _ACEOF | |
4f14bcd8 | 31022 | break |
70846f0a VZ |
31023 | fi |
31024 | done | |
31025 | ||
8284b0c5 MB |
31026 | |
31027 | ||
e6cc62c6 VS |
31028 | |
31029 | ac_ext=cc | |
4f14bcd8 | 31030 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
31031 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31032 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31033 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31034 | ||
8284b0c5 | 31035 | |
4f14bcd8 GD |
31036 | |
31037 | for ac_func in strtok_r | |
10f2d63a | 31038 | do |
e6cc62c6 VS |
31039 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31040 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31041 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31042 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31044 | else | |
31045 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31046 | /* confdefs.h. */ |
31047 | _ACEOF | |
31048 | cat confdefs.h >>conftest.$ac_ext | |
31049 | cat >>conftest.$ac_ext <<_ACEOF | |
31050 | /* end confdefs.h. */ | |
32ddf007 VS |
31051 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31052 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31053 | #define $ac_func innocuous_$ac_func | |
31054 | ||
4f14bcd8 | 31055 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31056 | which can conflict with char $ac_func (); below. |
31057 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31058 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31059 | |
e6cc62c6 VS |
31060 | #ifdef __STDC__ |
31061 | # include <limits.h> | |
31062 | #else | |
31063 | # include <assert.h> | |
31064 | #endif | |
32ddf007 VS |
31065 | |
31066 | #undef $ac_func | |
31067 | ||
4f14bcd8 GD |
31068 | /* Override any gcc2 internal prototype to avoid an error. */ |
31069 | #ifdef __cplusplus | |
31070 | extern "C" | |
e6cc62c6 | 31071 | { |
4f14bcd8 GD |
31072 | #endif |
31073 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
31074 | builtin and then its argument prototype would still apply. */ |
31075 | char $ac_func (); | |
4f14bcd8 GD |
31076 | /* The GNU C library defines this for functions which it implements |
31077 | to always fail with ENOSYS. Some functions are actually named | |
31078 | something starting with __ and the normal name is an alias. */ | |
31079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31080 | choke me | |
31081 | #else | |
e6cc62c6 VS |
31082 | char (*f) () = $ac_func; |
31083 | #endif | |
31084 | #ifdef __cplusplus | |
31085 | } | |
4f14bcd8 GD |
31086 | #endif |
31087 | ||
e6cc62c6 VS |
31088 | int |
31089 | main () | |
31090 | { | |
31091 | return f != $ac_func; | |
31092 | ; | |
31093 | return 0; | |
31094 | } | |
31095 | _ACEOF | |
31096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31098 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31099 | ac_status=$? |
32ddf007 VS |
31100 | grep -v '^ *+' conftest.er1 >conftest.err |
31101 | rm -f conftest.er1 | |
31102 | cat conftest.err >&5 | |
e6cc62c6 VS |
31103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31104 | (exit $ac_status); } && | |
32ddf007 VS |
31105 | { ac_try='test -z "$ac_cxx_werror_flag" |
31106 | || test ! -s conftest.err' | |
31107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31108 | (eval $ac_try) 2>&5 | |
31109 | ac_status=$? | |
31110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31111 | (exit $ac_status); }; } && | |
31112 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31114 | (eval $ac_try) 2>&5 | |
31115 | ac_status=$? | |
31116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31117 | (exit $ac_status); }; }; then | |
31118 | eval "$as_ac_var=yes" | |
31119 | else | |
31120 | echo "$as_me: failed program was:" >&5 | |
31121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31122 | ||
31123 | eval "$as_ac_var=no" | |
31124 | fi | |
32ddf007 VS |
31125 | rm -f conftest.err conftest.$ac_objext \ |
31126 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31127 | fi |
31128 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31129 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31130 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31131 | cat >>confdefs.h <<_ACEOF | |
31132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31133 | _ACEOF | |
4f14bcd8 | 31134 | |
10f2d63a VZ |
31135 | fi |
31136 | done | |
31137 | ||
8284b0c5 | 31138 | |
4f14bcd8 | 31139 | ac_ext=c |
4f14bcd8 | 31140 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
31141 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31142 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31143 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 31144 | |
5c6fa7d2 | 31145 | |
8284b0c5 | 31146 | INET_LINK= |
e6cc62c6 | 31147 | |
4f14bcd8 GD |
31148 | for ac_func in inet_addr |
31149 | do | |
e6cc62c6 VS |
31150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31155 | else | |
31156 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31157 | /* confdefs.h. */ |
31158 | _ACEOF | |
31159 | cat confdefs.h >>conftest.$ac_ext | |
31160 | cat >>conftest.$ac_ext <<_ACEOF | |
31161 | /* end confdefs.h. */ | |
32ddf007 VS |
31162 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31164 | #define $ac_func innocuous_$ac_func | |
31165 | ||
4f14bcd8 | 31166 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31167 | which can conflict with char $ac_func (); below. |
31168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31169 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31170 | |
e6cc62c6 VS |
31171 | #ifdef __STDC__ |
31172 | # include <limits.h> | |
31173 | #else | |
31174 | # include <assert.h> | |
31175 | #endif | |
32ddf007 VS |
31176 | |
31177 | #undef $ac_func | |
31178 | ||
10f2d63a | 31179 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31180 | #ifdef __cplusplus |
31181 | extern "C" | |
31182 | { | |
31183 | #endif | |
10f2d63a | 31184 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31185 | builtin and then its argument prototype would still apply. */ |
31186 | char $ac_func (); | |
4f14bcd8 GD |
31187 | /* The GNU C library defines this for functions which it implements |
31188 | to always fail with ENOSYS. Some functions are actually named | |
31189 | something starting with __ and the normal name is an alias. */ | |
31190 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31191 | choke me | |
31192 | #else | |
e6cc62c6 VS |
31193 | char (*f) () = $ac_func; |
31194 | #endif | |
31195 | #ifdef __cplusplus | |
31196 | } | |
4f14bcd8 GD |
31197 | #endif |
31198 | ||
e6cc62c6 VS |
31199 | int |
31200 | main () | |
31201 | { | |
31202 | return f != $ac_func; | |
31203 | ; | |
31204 | return 0; | |
31205 | } | |
31206 | _ACEOF | |
31207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31209 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31210 | ac_status=$? |
32ddf007 VS |
31211 | grep -v '^ *+' conftest.er1 >conftest.err |
31212 | rm -f conftest.er1 | |
31213 | cat conftest.err >&5 | |
e6cc62c6 VS |
31214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31215 | (exit $ac_status); } && | |
32ddf007 VS |
31216 | { ac_try='test -z "$ac_c_werror_flag" |
31217 | || test ! -s conftest.err' | |
31218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31219 | (eval $ac_try) 2>&5 | |
31220 | ac_status=$? | |
31221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31222 | (exit $ac_status); }; } && | |
31223 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31225 | (eval $ac_try) 2>&5 | |
31226 | ac_status=$? | |
31227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31228 | (exit $ac_status); }; }; then | |
31229 | eval "$as_ac_var=yes" | |
31230 | else | |
31231 | echo "$as_me: failed program was:" >&5 | |
31232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31233 | ||
31234 | eval "$as_ac_var=no" | |
31235 | fi | |
32ddf007 VS |
31236 | rm -f conftest.err conftest.$ac_objext \ |
31237 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31238 | fi |
31239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31240 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31241 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31242 | cat >>confdefs.h <<_ACEOF | |
31243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31244 | _ACEOF | |
31245 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 31246 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 31247 | _ACEOF |
10f2d63a VZ |
31248 | |
31249 | else | |
e6cc62c6 VS |
31250 | |
31251 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
31252 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
31253 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
31254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31255 | else |
e6cc62c6 | 31256 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31257 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 31258 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31259 | /* confdefs.h. */ |
31260 | _ACEOF | |
31261 | cat confdefs.h >>conftest.$ac_ext | |
31262 | cat >>conftest.$ac_ext <<_ACEOF | |
31263 | /* end confdefs.h. */ | |
31264 | ||
10f2d63a | 31265 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31266 | #ifdef __cplusplus |
31267 | extern "C" | |
31268 | #endif | |
10f2d63a | 31269 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31270 | builtin and then its argument prototype would still apply. */ |
31271 | char inet_addr (); | |
31272 | int | |
31273 | main () | |
31274 | { | |
31275 | inet_addr (); | |
31276 | ; | |
31277 | return 0; | |
31278 | } | |
31279 | _ACEOF | |
31280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31282 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31283 | ac_status=$? |
32ddf007 VS |
31284 | grep -v '^ *+' conftest.er1 >conftest.err |
31285 | rm -f conftest.er1 | |
31286 | cat conftest.err >&5 | |
e6cc62c6 VS |
31287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31288 | (exit $ac_status); } && | |
32ddf007 VS |
31289 | { ac_try='test -z "$ac_c_werror_flag" |
31290 | || test ! -s conftest.err' | |
31291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31292 | (eval $ac_try) 2>&5 | |
31293 | ac_status=$? | |
31294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31295 | (exit $ac_status); }; } && | |
31296 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31298 | (eval $ac_try) 2>&5 | |
31299 | ac_status=$? | |
31300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31301 | (exit $ac_status); }; }; then | |
31302 | ac_cv_lib_nsl_inet_addr=yes | |
31303 | else | |
31304 | echo "$as_me: failed program was:" >&5 | |
31305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31306 | ||
31307 | ac_cv_lib_nsl_inet_addr=no | |
31308 | fi | |
32ddf007 VS |
31309 | rm -f conftest.err conftest.$ac_objext \ |
31310 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31311 | LIBS=$ac_check_lib_save_LIBS |
31312 | fi | |
31313 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31314 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31315 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 31316 | INET_LINK="nsl" |
10f2d63a | 31317 | else |
0e012a93 VZ |
31318 | |
31319 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
31320 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
31321 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31323 | else |
e6cc62c6 | 31324 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 31325 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 31326 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31327 | /* confdefs.h. */ |
31328 | _ACEOF | |
31329 | cat confdefs.h >>conftest.$ac_ext | |
31330 | cat >>conftest.$ac_ext <<_ACEOF | |
31331 | /* end confdefs.h. */ | |
31332 | ||
5c6fa7d2 | 31333 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31334 | #ifdef __cplusplus |
31335 | extern "C" | |
31336 | #endif | |
5c6fa7d2 | 31337 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31338 | builtin and then its argument prototype would still apply. */ |
31339 | char inet_addr (); | |
31340 | int | |
31341 | main () | |
31342 | { | |
31343 | inet_addr (); | |
31344 | ; | |
31345 | return 0; | |
31346 | } | |
31347 | _ACEOF | |
31348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31350 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31351 | ac_status=$? |
32ddf007 VS |
31352 | grep -v '^ *+' conftest.er1 >conftest.err |
31353 | rm -f conftest.er1 | |
31354 | cat conftest.err >&5 | |
e6cc62c6 VS |
31355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31356 | (exit $ac_status); } && | |
32ddf007 VS |
31357 | { ac_try='test -z "$ac_c_werror_flag" |
31358 | || test ! -s conftest.err' | |
31359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31360 | (eval $ac_try) 2>&5 | |
31361 | ac_status=$? | |
31362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31363 | (exit $ac_status); }; } && | |
31364 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31366 | (eval $ac_try) 2>&5 | |
31367 | ac_status=$? | |
31368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31369 | (exit $ac_status); }; }; then | |
31370 | ac_cv_lib_resolv_inet_addr=yes | |
31371 | else | |
31372 | echo "$as_me: failed program was:" >&5 | |
31373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31374 | ||
31375 | ac_cv_lib_resolv_inet_addr=no | |
31376 | fi | |
32ddf007 VS |
31377 | rm -f conftest.err conftest.$ac_objext \ |
31378 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31379 | LIBS=$ac_check_lib_save_LIBS |
31380 | fi | |
31381 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31382 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31383 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 31384 | INET_LINK="resolv" |
698dcdb6 | 31385 | else |
0e012a93 VZ |
31386 | |
31387 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
31388 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
31389 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 31391 | else |
e6cc62c6 | 31392 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 31393 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 31394 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31395 | /* confdefs.h. */ |
31396 | _ACEOF | |
31397 | cat confdefs.h >>conftest.$ac_ext | |
31398 | cat >>conftest.$ac_ext <<_ACEOF | |
31399 | /* end confdefs.h. */ | |
31400 | ||
3c011993 | 31401 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31402 | #ifdef __cplusplus |
31403 | extern "C" | |
31404 | #endif | |
3c011993 | 31405 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31406 | builtin and then its argument prototype would still apply. */ |
31407 | char inet_addr (); | |
31408 | int | |
31409 | main () | |
31410 | { | |
31411 | inet_addr (); | |
31412 | ; | |
31413 | return 0; | |
31414 | } | |
31415 | _ACEOF | |
31416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31418 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31419 | ac_status=$? |
32ddf007 VS |
31420 | grep -v '^ *+' conftest.er1 >conftest.err |
31421 | rm -f conftest.er1 | |
31422 | cat conftest.err >&5 | |
e6cc62c6 VS |
31423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31424 | (exit $ac_status); } && | |
32ddf007 VS |
31425 | { ac_try='test -z "$ac_c_werror_flag" |
31426 | || test ! -s conftest.err' | |
31427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31428 | (eval $ac_try) 2>&5 | |
31429 | ac_status=$? | |
31430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31431 | (exit $ac_status); }; } && | |
31432 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31434 | (eval $ac_try) 2>&5 | |
31435 | ac_status=$? | |
31436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31437 | (exit $ac_status); }; }; then | |
31438 | ac_cv_lib_socket_inet_addr=yes | |
31439 | else | |
31440 | echo "$as_me: failed program was:" >&5 | |
31441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31442 | ||
31443 | ac_cv_lib_socket_inet_addr=no | |
31444 | fi | |
32ddf007 VS |
31445 | rm -f conftest.err conftest.$ac_objext \ |
31446 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31447 | LIBS=$ac_check_lib_save_LIBS |
31448 | fi | |
31449 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31450 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31451 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31452 | INET_LINK="socket" | |
4f14bcd8 | 31453 | |
8284b0c5 | 31454 | fi |
e6cc62c6 | 31455 | |
698dcdb6 | 31456 | |
0e012a93 | 31457 | |
7b4a847f | 31458 | fi |
e6cc62c6 VS |
31459 | |
31460 | ||
0e012a93 | 31461 | |
a0b9e27f | 31462 | fi |
579d8138 | 31463 | |
e6cc62c6 VS |
31464 | |
31465 | ||
5c6fa7d2 | 31466 | fi |
e6cc62c6 VS |
31467 | done |
31468 | ||
31469 | ||
31470 | ||
31471 | for ac_func in inet_aton | |
31472 | do | |
31473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31474 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31476 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31478 | else | |
31479 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31480 | /* confdefs.h. */ |
31481 | _ACEOF | |
31482 | cat confdefs.h >>conftest.$ac_ext | |
31483 | cat >>conftest.$ac_ext <<_ACEOF | |
31484 | /* end confdefs.h. */ | |
32ddf007 VS |
31485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31487 | #define $ac_func innocuous_$ac_func | |
31488 | ||
e6cc62c6 VS |
31489 | /* System header to define __stub macros and hopefully few prototypes, |
31490 | which can conflict with char $ac_func (); below. | |
31491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31492 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 31493 | |
e6cc62c6 VS |
31494 | #ifdef __STDC__ |
31495 | # include <limits.h> | |
31496 | #else | |
31497 | # include <assert.h> | |
31498 | #endif | |
32ddf007 VS |
31499 | |
31500 | #undef $ac_func | |
31501 | ||
e6cc62c6 VS |
31502 | /* Override any gcc2 internal prototype to avoid an error. */ |
31503 | #ifdef __cplusplus | |
31504 | extern "C" | |
31505 | { | |
31506 | #endif | |
31507 | /* We use char because int might match the return type of a gcc2 | |
31508 | builtin and then its argument prototype would still apply. */ | |
31509 | char $ac_func (); | |
31510 | /* The GNU C library defines this for functions which it implements | |
31511 | to always fail with ENOSYS. Some functions are actually named | |
31512 | something starting with __ and the normal name is an alias. */ | |
31513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31514 | choke me | |
31515 | #else | |
31516 | char (*f) () = $ac_func; | |
31517 | #endif | |
31518 | #ifdef __cplusplus | |
31519 | } | |
31520 | #endif | |
31521 | ||
31522 | int | |
31523 | main () | |
31524 | { | |
31525 | return f != $ac_func; | |
31526 | ; | |
31527 | return 0; | |
31528 | } | |
31529 | _ACEOF | |
31530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31532 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31533 | ac_status=$? |
32ddf007 VS |
31534 | grep -v '^ *+' conftest.er1 >conftest.err |
31535 | rm -f conftest.er1 | |
31536 | cat conftest.err >&5 | |
e6cc62c6 VS |
31537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31538 | (exit $ac_status); } && | |
32ddf007 VS |
31539 | { ac_try='test -z "$ac_c_werror_flag" |
31540 | || test ! -s conftest.err' | |
31541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31542 | (eval $ac_try) 2>&5 | |
31543 | ac_status=$? | |
31544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31545 | (exit $ac_status); }; } && | |
31546 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31548 | (eval $ac_try) 2>&5 | |
31549 | ac_status=$? | |
31550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31551 | (exit $ac_status); }; }; then | |
31552 | eval "$as_ac_var=yes" | |
31553 | else | |
31554 | echo "$as_me: failed program was:" >&5 | |
31555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31556 | ||
31557 | eval "$as_ac_var=no" | |
31558 | fi | |
32ddf007 VS |
31559 | rm -f conftest.err conftest.$ac_objext \ |
31560 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31561 | fi |
31562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31563 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31564 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31565 | cat >>confdefs.h <<_ACEOF | |
31566 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31567 | _ACEOF | |
31568 | cat >>confdefs.h <<\_ACEOF | |
31569 | #define HAVE_INET_ATON 1 | |
31570 | _ACEOF | |
31571 | ||
31572 | else | |
31573 | ||
31574 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31575 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31576 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31577 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31579 | else | |
31580 | ac_check_lib_save_LIBS=$LIBS | |
31581 | LIBS="-l$INET_LINK $LIBS" | |
31582 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
31583 | /* confdefs.h. */ |
31584 | _ACEOF | |
31585 | cat confdefs.h >>conftest.$ac_ext | |
31586 | cat >>conftest.$ac_ext <<_ACEOF | |
31587 | /* end confdefs.h. */ | |
31588 | ||
31589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31590 | #ifdef __cplusplus | |
31591 | extern "C" | |
31592 | #endif | |
31593 | /* We use char because int might match the return type of a gcc2 | |
31594 | builtin and then its argument prototype would still apply. */ | |
31595 | char inet_aton (); | |
31596 | int | |
31597 | main () | |
31598 | { | |
31599 | inet_aton (); | |
31600 | ; | |
31601 | return 0; | |
31602 | } | |
31603 | _ACEOF | |
31604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31606 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 31607 | ac_status=$? |
32ddf007 VS |
31608 | grep -v '^ *+' conftest.er1 >conftest.err |
31609 | rm -f conftest.er1 | |
31610 | cat conftest.err >&5 | |
e6cc62c6 VS |
31611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31612 | (exit $ac_status); } && | |
32ddf007 VS |
31613 | { ac_try='test -z "$ac_c_werror_flag" |
31614 | || test ! -s conftest.err' | |
31615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31616 | (eval $ac_try) 2>&5 | |
31617 | ac_status=$? | |
31618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31619 | (exit $ac_status); }; } && | |
31620 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
31621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31622 | (eval $ac_try) 2>&5 | |
31623 | ac_status=$? | |
31624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31625 | (exit $ac_status); }; }; then | |
31626 | eval "$as_ac_Lib=yes" | |
31627 | else | |
31628 | echo "$as_me: failed program was:" >&5 | |
31629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31630 | ||
31631 | eval "$as_ac_Lib=no" | |
31632 | fi | |
32ddf007 VS |
31633 | rm -f conftest.err conftest.$ac_objext \ |
31634 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
31635 | LIBS=$ac_check_lib_save_LIBS |
31636 | fi | |
31637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31638 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31639 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31640 | cat >>confdefs.h <<\_ACEOF | |
31641 | #define HAVE_INET_ATON 1 | |
31642 | _ACEOF | |
52127426 | 31643 | |
a0b9e27f | 31644 | fi |
247f5006 | 31645 | |
8284b0c5 | 31646 | |
698dcdb6 | 31647 | fi |
4f14bcd8 GD |
31648 | done |
31649 | ||
8284b0c5 | 31650 | |
e6cc62c6 VS |
31651 | if test "x$INET_LINK" != "x"; then |
31652 | cat >>confdefs.h <<\_ACEOF | |
31653 | #define HAVE_INET_ADDR 1 | |
31654 | _ACEOF | |
31655 | ||
31656 | INET_LINK=" -l$INET_LINK" | |
31657 | fi | |
31658 | ||
31659 | fi | |
a0b9e27f | 31660 | |
a0b9e27f | 31661 | |
4f14bcd8 | 31662 | |
edd891e2 VS |
31663 | EXTRALIBS_ESD= |
31664 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31665 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31666 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31668 | else | |
31669 | ac_check_lib_save_LIBS=$LIBS | |
31670 | LIBS="-lesd $LIBS" | |
31671 | cat >conftest.$ac_ext <<_ACEOF | |
edd891e2 VS |
31672 | /* confdefs.h. */ |
31673 | _ACEOF | |
31674 | cat confdefs.h >>conftest.$ac_ext | |
31675 | cat >>conftest.$ac_ext <<_ACEOF | |
31676 | /* end confdefs.h. */ | |
31677 | ||
31678 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31679 | #ifdef __cplusplus | |
31680 | extern "C" | |
31681 | #endif | |
31682 | /* We use char because int might match the return type of a gcc2 | |
31683 | builtin and then its argument prototype would still apply. */ | |
31684 | char esd_close (); | |
31685 | int | |
31686 | main () | |
31687 | { | |
31688 | esd_close (); | |
31689 | ; | |
31690 | return 0; | |
31691 | } | |
31692 | _ACEOF | |
31693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 31695 | (eval $ac_link) 2>conftest.er1 |
edd891e2 | 31696 | ac_status=$? |
32ddf007 VS |
31697 | grep -v '^ *+' conftest.er1 >conftest.err |
31698 | rm -f conftest.er1 | |
31699 | cat conftest.err >&5 | |
edd891e2 VS |
31700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31701 | (exit $ac_status); } && | |
32ddf007 VS |
31702 | { ac_try='test -z "$ac_c_werror_flag" |
31703 | || test ! -s conftest.err' | |
31704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31705 | (eval $ac_try) 2>&5 | |
31706 | ac_status=$? | |
31707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31708 | (exit $ac_status); }; } && | |
31709 | { ac_try='test -s conftest$ac_exeext' | |
edd891e2 VS |
31710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31711 | (eval $ac_try) 2>&5 | |
31712 | ac_status=$? | |
31713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31714 | (exit $ac_status); }; }; then | |
31715 | ac_cv_lib_esd_esd_close=yes | |
31716 | else | |
31717 | echo "$as_me: failed program was:" >&5 | |
31718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31719 | ||
31720 | ac_cv_lib_esd_esd_close=no | |
31721 | fi | |
32ddf007 VS |
31722 | rm -f conftest.err conftest.$ac_objext \ |
31723 | conftest$ac_exeext conftest.$ac_ext | |
edd891e2 VS |
31724 | LIBS=$ac_check_lib_save_LIBS |
31725 | fi | |
31726 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31727 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31728 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31729 | ||
31730 | ||
31731 | for ac_header in esd.h | |
31732 | do | |
31733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31739 | fi | |
edd891e2 VS |
31740 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31741 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
31742 | else |
31743 | # Is the header compilable? | |
edd891e2 VS |
31744 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
31745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 31746 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31747 | /* confdefs.h. */ |
31748 | _ACEOF | |
31749 | cat confdefs.h >>conftest.$ac_ext | |
31750 | cat >>conftest.$ac_ext <<_ACEOF | |
31751 | /* end confdefs.h. */ | |
31752 | $ac_includes_default | |
edd891e2 | 31753 | #include <$ac_header> |
e6cc62c6 VS |
31754 | _ACEOF |
31755 | rm -f conftest.$ac_objext | |
31756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31757 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 31758 | ac_status=$? |
32ddf007 VS |
31759 | grep -v '^ *+' conftest.er1 >conftest.err |
31760 | rm -f conftest.er1 | |
31761 | cat conftest.err >&5 | |
e6cc62c6 VS |
31762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31763 | (exit $ac_status); } && | |
32ddf007 VS |
31764 | { ac_try='test -z "$ac_c_werror_flag" |
31765 | || test ! -s conftest.err' | |
31766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31767 | (eval $ac_try) 2>&5 | |
31768 | ac_status=$? | |
31769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31770 | (exit $ac_status); }; } && | |
31771 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
31772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31773 | (eval $ac_try) 2>&5 | |
31774 | ac_status=$? | |
31775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31776 | (exit $ac_status); }; }; then | |
31777 | ac_header_compiler=yes | |
31778 | else | |
31779 | echo "$as_me: failed program was:" >&5 | |
31780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31781 | ||
31782 | ac_header_compiler=no | |
31783 | fi | |
32ddf007 | 31784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31785 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31786 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31787 | ||
31788 | # Is the header present? | |
edd891e2 VS |
31789 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
31790 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 31791 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
31792 | /* confdefs.h. */ |
31793 | _ACEOF | |
31794 | cat confdefs.h >>conftest.$ac_ext | |
31795 | cat >>conftest.$ac_ext <<_ACEOF | |
31796 | /* end confdefs.h. */ | |
edd891e2 | 31797 | #include <$ac_header> |
e6cc62c6 VS |
31798 | _ACEOF |
31799 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31800 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31801 | ac_status=$? | |
31802 | grep -v '^ *+' conftest.er1 >conftest.err | |
31803 | rm -f conftest.er1 | |
31804 | cat conftest.err >&5 | |
31805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31806 | (exit $ac_status); } >/dev/null; then | |
31807 | if test -s conftest.err; then | |
31808 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 31809 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
31810 | else |
31811 | ac_cpp_err= | |
31812 | fi | |
a0b9e27f | 31813 | else |
e6cc62c6 VS |
31814 | ac_cpp_err=yes |
31815 | fi | |
31816 | if test -z "$ac_cpp_err"; then | |
31817 | ac_header_preproc=yes | |
31818 | else | |
31819 | echo "$as_me: failed program was:" >&5 | |
31820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31821 | ||
31822 | ac_header_preproc=no | |
31823 | fi | |
31824 | rm -f conftest.err conftest.$ac_ext | |
31825 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31826 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31827 | ||
31828 | # So? What about this header? | |
32ddf007 VS |
31829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31830 | yes:no: ) | |
edd891e2 VS |
31831 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31832 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
31833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31834 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31835 | ac_header_preproc=yes | |
e6cc62c6 | 31836 | ;; |
32ddf007 | 31837 | no:yes:* ) |
edd891e2 VS |
31838 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31839 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
31840 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31841 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31842 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31843 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31844 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31845 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
edd891e2 VS |
31846 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31847 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
31848 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31849 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
31850 | ( |
31851 | cat <<\_ASBOX | |
32ddf007 VS |
31852 | ## ----------------------------------------- ## |
31853 | ## Report this to wx-dev@lists.wxwindows.org ## | |
31854 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
31855 | _ASBOX |
31856 | ) | | |
31857 | sed "s/^/$as_me: WARNING: /" >&2 | |
31858 | ;; | |
31859 | esac | |
edd891e2 VS |
31860 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
31861 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31862 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
31863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
31864 | else | |
32ddf007 | 31865 | eval "$as_ac_Header=\$ac_header_preproc" |
a0b9e27f | 31866 | fi |
edd891e2 VS |
31867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31868 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 31869 | |
e6cc62c6 | 31870 | fi |
edd891e2 VS |
31871 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31872 | cat >>confdefs.h <<_ACEOF | |
31873 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 31874 | _ACEOF |
e6cc62c6 | 31875 | |
edd891e2 | 31876 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 31877 | |
a0b9e27f | 31878 | fi |
247f5006 | 31879 | |
edd891e2 | 31880 | done |
8284b0c5 | 31881 | |
4f14bcd8 | 31882 | |
6232543b | 31883 | fi |
10f2d63a | 31884 | |
703e0a69 | 31885 | |
8284b0c5 | 31886 | |
d19d1899 MB |
31887 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
31888 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31889 | cat >conftest.$ac_ext <<_ACEOF | |
d19d1899 MB |
31890 | /* confdefs.h. */ |
31891 | _ACEOF | |
31892 | cat confdefs.h >>conftest.$ac_ext | |
31893 | cat >>conftest.$ac_ext <<_ACEOF | |
31894 | /* end confdefs.h. */ | |
31895 | #ifdef __linux__ | |
31896 | #include <linux/cdrom.h> | |
31897 | #else | |
31898 | /* For Solaris */ | |
31899 | #include <sys/cdio.h> | |
31900 | #endif | |
31901 | ||
31902 | int | |
31903 | main () | |
31904 | { | |
31905 | struct cdrom_tocentry entry, old_entry; | |
31906 | ; | |
31907 | return 0; | |
31908 | } | |
31909 | _ACEOF | |
31910 | rm -f conftest.$ac_objext | |
31911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 31912 | (eval $ac_compile) 2>conftest.er1 |
d19d1899 | 31913 | ac_status=$? |
32ddf007 VS |
31914 | grep -v '^ *+' conftest.er1 >conftest.err |
31915 | rm -f conftest.er1 | |
31916 | cat conftest.err >&5 | |
d19d1899 MB |
31917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31918 | (exit $ac_status); } && | |
32ddf007 VS |
31919 | { ac_try='test -z "$ac_c_werror_flag" |
31920 | || test ! -s conftest.err' | |
31921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31922 | (eval $ac_try) 2>&5 | |
31923 | ac_status=$? | |
31924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31925 | (exit $ac_status); }; } && | |
31926 | { ac_try='test -s conftest.$ac_objext' | |
d19d1899 MB |
31927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31928 | (eval $ac_try) 2>&5 | |
31929 | ac_status=$? | |
31930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31931 | (exit $ac_status); }; }; then | |
31932 | echo "$as_me:$LINENO: result: yes" >&5 | |
31933 | echo "${ECHO_T}yes" >&6 | |
31934 | cat >>confdefs.h <<\_ACEOF | |
31935 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31936 | _ACEOF | |
31937 | ||
31938 | else | |
31939 | echo "$as_me: failed program was:" >&5 | |
31940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31941 | ||
31942 | echo "$as_me:$LINENO: result: no" >&5 | |
31943 | echo "${ECHO_T}no" >&6 | |
31944 | fi | |
32ddf007 | 31945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31946 | |
31947 | ||
31948 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
31949 | # This file is a shell script that caches the results of configure |
31950 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
31951 | # scripts and configure runs, see configure's option --config-cache. |
31952 | # It is not useful on other systems. If it contains results you don't | |
31953 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 31954 | # |
e6cc62c6 VS |
31955 | # config.status only pays attention to the cache file if you give it |
31956 | # the --recheck option to rerun configure. | |
4f14bcd8 | 31957 | # |
e6cc62c6 VS |
31958 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
31959 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31960 | # following values. | |
31961 | ||
31962 | _ACEOF | |
31963 | ||
4f14bcd8 GD |
31964 | # The following way of writing the cache mishandles newlines in values, |
31965 | # but we know of no workaround that is simple, portable, and efficient. | |
31966 | # So, don't put newlines in cache variables' values. | |
31967 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31968 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
31969 | { |
31970 | (set) 2>&1 | | |
31971 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31972 | *ac_space=\ *) | |
31973 | # `set' does not quote correctly, so add quotes (double-quote | |
31974 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31975 | sed -n \ | |
32ddf007 VS |
31976 | "s/'/'\\\\''/g; |
31977 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
31978 | ;; |
31979 | *) | |
31980 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31981 | sed -n \ | |
32ddf007 | 31982 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
31983 | ;; |
31984 | esac; | |
31985 | } | | |
31986 | sed ' | |
31987 | t clear | |
31988 | : clear | |
31989 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31990 | t end | |
31991 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31992 | : end' >>confcache | |
31993 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 31994 | if test -w $cache_file; then |
e6cc62c6 VS |
31995 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
31996 | cat confcache >$cache_file | |
f6bcfd97 | 31997 | else |
4f14bcd8 | 31998 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 31999 | fi |
4f14bcd8 GD |
32000 | fi |
32001 | rm -f confcache | |
f6bcfd97 | 32002 | |
8284b0c5 | 32003 | |
009fead0 | 32004 | CPP_MT_FLAG= |
73d617c9 | 32005 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 32006 | |
e6cc62c6 | 32007 | |
7274f1c7 | 32008 | THREADS_LINK= |
009fead0 | 32009 | THREADS_CFLAGS= |
7274f1c7 RL |
32010 | |
32011 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 32012 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
32013 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
32014 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
32015 | wxUSE_THREADS="no" |
32016 | fi | |
4f14bcd8 | 32017 | fi |
4f14bcd8 | 32018 | |
7274f1c7 | 32019 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
32020 | |
32021 | ||
009fead0 VZ |
32022 | THREAD_OPTS="-pthread" |
32023 | case "${host}" in | |
32024 | *-*-solaris2* | *-*-sunos4* ) | |
32025 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 32026 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
32027 | else |
32028 | THREAD_OPTS="-mt $THREAD_OPTS" | |
32029 | fi | |
32030 | ;; | |
32031 | *-*-freebsd*) | |
32032 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
32033 | ;; | |
17234b26 MB |
32034 | *-*-darwin* | *-*-cygwin* ) |
32035 | THREAD_OPTS="" | |
4101db81 | 32036 | ;; |
8f4a9a10 | 32037 | *-*-aix*) |
009fead0 VZ |
32038 | THREAD_OPTS="pthreads" |
32039 | ;; | |
4f5a7f74 VZ |
32040 | *-hp-hpux* ) |
32041 | if test "x$GCC" != "xyes"; then | |
32042 | THREAD_OPTS="" | |
32043 | fi | |
89e3b3e4 VZ |
32044 | ;; |
32045 | ||
32046 | *-*-irix* ) | |
32047 | if test "x$GCC" = "xyes"; then | |
32048 | THREAD_OPTS="" | |
32049 | fi | |
32050 | ;; | |
32051 | ||
32052 | *-*-*UnixWare*) | |
32053 | if test "x$GCC" != "xyes"; then | |
32054 | THREAD_OPTS="-Ethread" | |
32055 | fi | |
32056 | ;; | |
009fead0 | 32057 | esac |
4f14bcd8 | 32058 | |
02a1dfba | 32059 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 32060 | |
009fead0 VZ |
32061 | THREADS_OK=no |
32062 | for flag in $THREAD_OPTS; do | |
32063 | case $flag in | |
32064 | none) | |
e6cc62c6 VS |
32065 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
32066 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 32067 | ;; |
698dcdb6 | 32068 | |
009fead0 | 32069 | -*) |
e6cc62c6 VS |
32070 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
32071 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
32072 | THREADS_CFLAGS="$flag" |
32073 | ;; | |
698dcdb6 | 32074 | |
009fead0 | 32075 | *) |
e6cc62c6 VS |
32076 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
32077 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
32078 | THREADS_LINK="-l$flag" |
32079 | ;; | |
32080 | esac | |
10f2d63a | 32081 | |
009fead0 VZ |
32082 | save_LIBS="$LIBS" |
32083 | save_CFLAGS="$CFLAGS" | |
32084 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 32085 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 32086 | |
e6cc62c6 | 32087 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32088 | /* confdefs.h. */ |
32089 | _ACEOF | |
32090 | cat confdefs.h >>conftest.$ac_ext | |
32091 | cat >>conftest.$ac_ext <<_ACEOF | |
32092 | /* end confdefs.h. */ | |
009fead0 | 32093 | #include <pthread.h> |
e6cc62c6 VS |
32094 | int |
32095 | main () | |
32096 | { | |
009fead0 | 32097 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
32098 | ; |
32099 | return 0; | |
32100 | } | |
32101 | _ACEOF | |
32102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32104 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32105 | ac_status=$? |
32ddf007 VS |
32106 | grep -v '^ *+' conftest.er1 >conftest.err |
32107 | rm -f conftest.er1 | |
32108 | cat conftest.err >&5 | |
e6cc62c6 VS |
32109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32110 | (exit $ac_status); } && | |
32ddf007 VS |
32111 | { ac_try='test -z "$ac_c_werror_flag" |
32112 | || test ! -s conftest.err' | |
32113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32114 | (eval $ac_try) 2>&5 | |
32115 | ac_status=$? | |
32116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32117 | (exit $ac_status); }; } && | |
32118 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32120 | (eval $ac_try) 2>&5 | |
32121 | ac_status=$? | |
32122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32123 | (exit $ac_status); }; }; then | |
009fead0 | 32124 | THREADS_OK=yes |
10f2d63a | 32125 | else |
e6cc62c6 VS |
32126 | echo "$as_me: failed program was:" >&5 |
32127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32128 | ||
6232543b | 32129 | fi |
32ddf007 VS |
32130 | rm -f conftest.err conftest.$ac_objext \ |
32131 | conftest$ac_exeext conftest.$ac_ext | |
698dcdb6 | 32132 | |
009fead0 VZ |
32133 | LIBS="$save_LIBS" |
32134 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 32135 | |
e6cc62c6 VS |
32136 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
32137 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
32138 | if test "x$THREADS_OK" = "xyes"; then |
32139 | break; | |
32140 | fi | |
d9b9876f | 32141 | |
009fead0 VZ |
32142 | THREADS_LINK="" |
32143 | THREADS_CFLAGS="" | |
32144 | done | |
4f14bcd8 | 32145 | |
009fead0 VZ |
32146 | if test "x$THREADS_OK" != "xyes"; then |
32147 | wxUSE_THREADS=no | |
e6cc62c6 VS |
32148 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
32149 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 32150 | else |
db82f09e VZ |
32151 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
32152 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 32153 | |
e6cc62c6 VS |
32154 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
32155 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
32156 | flag=no |
32157 | case "${host}" in | |
2b5f62a0 VZ |
32158 | *-aix*) |
32159 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
32160 | flag="-D_THREAD_SAFE" | |
32161 | ;; | |
32162 | *-freebsd*) | |
009fead0 VZ |
32163 | flag="-D_THREAD_SAFE" |
32164 | ;; | |
06313569 GD |
32165 | *-hp-hpux* ) |
32166 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
32167 | if test "x$GCC" != "xyes"; then |
32168 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
32169 | fi | |
06313569 | 32170 | ;; |
009fead0 VZ |
32171 | *solaris* | alpha*-osf*) |
32172 | flag="-D_REENTRANT" | |
32173 | ;; | |
32174 | esac | |
e6cc62c6 VS |
32175 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
32176 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 32177 | if test "x$flag" != xno; then |
04727afd | 32178 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
32179 | fi |
32180 | ||
009fead0 | 32181 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 32182 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
32183 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
32184 | fi | |
32185 | fi | |
4f14bcd8 | 32186 | fi |
4f14bcd8 | 32187 | |
7274f1c7 | 32188 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
32189 | |
32190 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 32191 | do |
e6cc62c6 VS |
32192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32193 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32195 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32197 | else | |
32198 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32199 | /* confdefs.h. */ |
32200 | _ACEOF | |
32201 | cat confdefs.h >>conftest.$ac_ext | |
32202 | cat >>conftest.$ac_ext <<_ACEOF | |
32203 | /* end confdefs.h. */ | |
32ddf007 VS |
32204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32206 | #define $ac_func innocuous_$ac_func | |
32207 | ||
4f14bcd8 | 32208 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32209 | which can conflict with char $ac_func (); below. |
32210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32211 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32212 | |
e6cc62c6 VS |
32213 | #ifdef __STDC__ |
32214 | # include <limits.h> | |
32215 | #else | |
32216 | # include <assert.h> | |
32217 | #endif | |
32ddf007 VS |
32218 | |
32219 | #undef $ac_func | |
32220 | ||
4f14bcd8 | 32221 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32222 | #ifdef __cplusplus |
32223 | extern "C" | |
32224 | { | |
32225 | #endif | |
4f14bcd8 | 32226 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32227 | builtin and then its argument prototype would still apply. */ |
32228 | char $ac_func (); | |
4f14bcd8 GD |
32229 | /* The GNU C library defines this for functions which it implements |
32230 | to always fail with ENOSYS. Some functions are actually named | |
32231 | something starting with __ and the normal name is an alias. */ | |
32232 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32233 | choke me | |
32234 | #else | |
e6cc62c6 VS |
32235 | char (*f) () = $ac_func; |
32236 | #endif | |
32237 | #ifdef __cplusplus | |
32238 | } | |
4f14bcd8 GD |
32239 | #endif |
32240 | ||
e6cc62c6 VS |
32241 | int |
32242 | main () | |
32243 | { | |
32244 | return f != $ac_func; | |
32245 | ; | |
32246 | return 0; | |
32247 | } | |
32248 | _ACEOF | |
32249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32251 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32252 | ac_status=$? |
32ddf007 VS |
32253 | grep -v '^ *+' conftest.er1 >conftest.err |
32254 | rm -f conftest.er1 | |
32255 | cat conftest.err >&5 | |
e6cc62c6 VS |
32256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32257 | (exit $ac_status); } && | |
32ddf007 VS |
32258 | { ac_try='test -z "$ac_c_werror_flag" |
32259 | || test ! -s conftest.err' | |
32260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32261 | (eval $ac_try) 2>&5 | |
32262 | ac_status=$? | |
32263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32264 | (exit $ac_status); }; } && | |
32265 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32267 | (eval $ac_try) 2>&5 | |
32268 | ac_status=$? | |
32269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32270 | (exit $ac_status); }; }; then | |
32271 | eval "$as_ac_var=yes" | |
32272 | else | |
32273 | echo "$as_me: failed program was:" >&5 | |
32274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32275 | ||
32276 | eval "$as_ac_var=no" | |
32277 | fi | |
32ddf007 VS |
32278 | rm -f conftest.err conftest.$ac_objext \ |
32279 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32280 | fi |
32281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32282 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32283 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32284 | cat >>confdefs.h <<_ACEOF | |
32285 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32286 | _ACEOF | |
698dcdb6 | 32287 | |
10f2d63a | 32288 | fi |
4f14bcd8 | 32289 | done |
10f2d63a | 32290 | |
8284b0c5 | 32291 | |
e6cc62c6 VS |
32292 | |
32293 | for ac_header in sched.h | |
4f14bcd8 | 32294 | do |
e6cc62c6 VS |
32295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
32296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32301 | fi | |
32302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32304 | else | |
32305 | # Is the header compilable? | |
32306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32308 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32309 | /* confdefs.h. */ |
32310 | _ACEOF | |
32311 | cat confdefs.h >>conftest.$ac_ext | |
32312 | cat >>conftest.$ac_ext <<_ACEOF | |
32313 | /* end confdefs.h. */ | |
32314 | $ac_includes_default | |
32315 | #include <$ac_header> | |
32316 | _ACEOF | |
32317 | rm -f conftest.$ac_objext | |
32318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 32319 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 32320 | ac_status=$? |
32ddf007 VS |
32321 | grep -v '^ *+' conftest.er1 >conftest.err |
32322 | rm -f conftest.er1 | |
32323 | cat conftest.err >&5 | |
e6cc62c6 VS |
32324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32325 | (exit $ac_status); } && | |
32ddf007 VS |
32326 | { ac_try='test -z "$ac_c_werror_flag" |
32327 | || test ! -s conftest.err' | |
32328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32329 | (eval $ac_try) 2>&5 | |
32330 | ac_status=$? | |
32331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32332 | (exit $ac_status); }; } && | |
32333 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
32334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32335 | (eval $ac_try) 2>&5 | |
32336 | ac_status=$? | |
32337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32338 | (exit $ac_status); }; }; then | |
32339 | ac_header_compiler=yes | |
32340 | else | |
32341 | echo "$as_me: failed program was:" >&5 | |
32342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32343 | ||
32344 | ac_header_compiler=no | |
32345 | fi | |
32ddf007 | 32346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
32347 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32348 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32349 | ||
32350 | # Is the header present? | |
32351 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32352 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32353 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32354 | /* confdefs.h. */ |
32355 | _ACEOF | |
32356 | cat confdefs.h >>conftest.$ac_ext | |
32357 | cat >>conftest.$ac_ext <<_ACEOF | |
32358 | /* end confdefs.h. */ | |
32359 | #include <$ac_header> | |
32360 | _ACEOF | |
32361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32363 | ac_status=$? | |
32364 | grep -v '^ *+' conftest.er1 >conftest.err | |
32365 | rm -f conftest.er1 | |
32366 | cat conftest.err >&5 | |
32367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32368 | (exit $ac_status); } >/dev/null; then | |
32369 | if test -s conftest.err; then | |
32370 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 32371 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
32372 | else |
32373 | ac_cpp_err= | |
32374 | fi | |
32375 | else | |
32376 | ac_cpp_err=yes | |
32377 | fi | |
32378 | if test -z "$ac_cpp_err"; then | |
32379 | ac_header_preproc=yes | |
32380 | else | |
32381 | echo "$as_me: failed program was:" >&5 | |
32382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32383 | ||
32384 | ac_header_preproc=no | |
32385 | fi | |
32386 | rm -f conftest.err conftest.$ac_ext | |
32387 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32388 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32389 | ||
32390 | # So? What about this header? | |
32ddf007 VS |
32391 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32392 | yes:no: ) | |
e6cc62c6 VS |
32393 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32394 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
32395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32396 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32397 | ac_header_preproc=yes | |
e6cc62c6 | 32398 | ;; |
32ddf007 | 32399 | no:yes:* ) |
e6cc62c6 VS |
32400 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32401 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
32402 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32403 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32404 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32405 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32406 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32407 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
32408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32409 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
32410 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32411 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
32412 | ( |
32413 | cat <<\_ASBOX | |
32ddf007 VS |
32414 | ## ----------------------------------------- ## |
32415 | ## Report this to wx-dev@lists.wxwindows.org ## | |
32416 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
32417 | _ASBOX |
32418 | ) | | |
32419 | sed "s/^/$as_me: WARNING: /" >&2 | |
32420 | ;; | |
32421 | esac | |
32422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32426 | else | |
32ddf007 | 32427 | eval "$as_ac_Header=\$ac_header_preproc" |
13111b2a | 32428 | fi |
e6cc62c6 VS |
32429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
32430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32431 | ||
10f2d63a | 32432 | fi |
e6cc62c6 VS |
32433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32434 | cat >>confdefs.h <<_ACEOF | |
32435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32436 | _ACEOF | |
32437 | ||
f6bcfd97 | 32438 | fi |
e6cc62c6 | 32439 | |
4f14bcd8 | 32440 | done |
f6bcfd97 | 32441 | |
009fead0 | 32442 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
32443 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
32444 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32445 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32447 | else | |
32448 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32449 | /* confdefs.h. */ |
32450 | _ACEOF | |
32451 | cat confdefs.h >>conftest.$ac_ext | |
32452 | cat >>conftest.$ac_ext <<_ACEOF | |
32453 | /* end confdefs.h. */ | |
32ddf007 VS |
32454 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32456 | #define sched_yield innocuous_sched_yield | |
32457 | ||
009fead0 | 32458 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32459 | which can conflict with char sched_yield (); below. |
32460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32461 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32462 | |
e6cc62c6 VS |
32463 | #ifdef __STDC__ |
32464 | # include <limits.h> | |
32465 | #else | |
32466 | # include <assert.h> | |
32467 | #endif | |
32ddf007 VS |
32468 | |
32469 | #undef sched_yield | |
32470 | ||
4f14bcd8 | 32471 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32472 | #ifdef __cplusplus |
32473 | extern "C" | |
32474 | { | |
32475 | #endif | |
4f14bcd8 | 32476 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32477 | builtin and then its argument prototype would still apply. */ |
32478 | char sched_yield (); | |
009fead0 VZ |
32479 | /* The GNU C library defines this for functions which it implements |
32480 | to always fail with ENOSYS. Some functions are actually named | |
32481 | something starting with __ and the normal name is an alias. */ | |
32482 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32483 | choke me | |
32484 | #else | |
e6cc62c6 VS |
32485 | char (*f) () = sched_yield; |
32486 | #endif | |
32487 | #ifdef __cplusplus | |
32488 | } | |
009fead0 VZ |
32489 | #endif |
32490 | ||
e6cc62c6 VS |
32491 | int |
32492 | main () | |
32493 | { | |
32494 | return f != sched_yield; | |
32495 | ; | |
32496 | return 0; | |
32497 | } | |
32498 | _ACEOF | |
32499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32501 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32502 | ac_status=$? |
32ddf007 VS |
32503 | grep -v '^ *+' conftest.er1 >conftest.err |
32504 | rm -f conftest.er1 | |
32505 | cat conftest.err >&5 | |
e6cc62c6 VS |
32506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32507 | (exit $ac_status); } && | |
32ddf007 VS |
32508 | { ac_try='test -z "$ac_c_werror_flag" |
32509 | || test ! -s conftest.err' | |
32510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32511 | (eval $ac_try) 2>&5 | |
32512 | ac_status=$? | |
32513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32514 | (exit $ac_status); }; } && | |
32515 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32517 | (eval $ac_try) 2>&5 | |
32518 | ac_status=$? | |
32519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32520 | (exit $ac_status); }; }; then | |
32521 | ac_cv_func_sched_yield=yes | |
32522 | else | |
32523 | echo "$as_me: failed program was:" >&5 | |
32524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32525 | ||
32526 | ac_cv_func_sched_yield=no | |
32527 | fi | |
32ddf007 VS |
32528 | rm -f conftest.err conftest.$ac_objext \ |
32529 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32530 | fi |
32531 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32532 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32533 | if test $ac_cv_func_sched_yield = yes; then | |
32534 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32535 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32536 | _ACEOF |
10f2d63a | 32537 | |
4f14bcd8 | 32538 | else |
009fead0 | 32539 | |
e6cc62c6 VS |
32540 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
32541 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32542 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 32544 | else |
e6cc62c6 | 32545 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32546 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32547 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32548 | /* confdefs.h. */ |
32549 | _ACEOF | |
32550 | cat confdefs.h >>conftest.$ac_ext | |
32551 | cat >>conftest.$ac_ext <<_ACEOF | |
32552 | /* end confdefs.h. */ | |
32553 | ||
4f14bcd8 | 32554 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32555 | #ifdef __cplusplus |
32556 | extern "C" | |
32557 | #endif | |
4f14bcd8 | 32558 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32559 | builtin and then its argument prototype would still apply. */ |
32560 | char sched_yield (); | |
32561 | int | |
32562 | main () | |
32563 | { | |
32564 | sched_yield (); | |
32565 | ; | |
32566 | return 0; | |
32567 | } | |
32568 | _ACEOF | |
32569 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32571 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32572 | ac_status=$? |
32ddf007 VS |
32573 | grep -v '^ *+' conftest.er1 >conftest.err |
32574 | rm -f conftest.er1 | |
32575 | cat conftest.err >&5 | |
e6cc62c6 VS |
32576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32577 | (exit $ac_status); } && | |
32ddf007 VS |
32578 | { ac_try='test -z "$ac_c_werror_flag" |
32579 | || test ! -s conftest.err' | |
32580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32581 | (eval $ac_try) 2>&5 | |
32582 | ac_status=$? | |
32583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32584 | (exit $ac_status); }; } && | |
32585 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32587 | (eval $ac_try) 2>&5 | |
32588 | ac_status=$? | |
32589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32590 | (exit $ac_status); }; }; then | |
32591 | ac_cv_lib_posix4_sched_yield=yes | |
32592 | else | |
32593 | echo "$as_me: failed program was:" >&5 | |
32594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32595 | ||
32596 | ac_cv_lib_posix4_sched_yield=no | |
32597 | fi | |
32ddf007 VS |
32598 | rm -f conftest.err conftest.$ac_objext \ |
32599 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32600 | LIBS=$ac_check_lib_save_LIBS |
32601 | fi | |
32602 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32603 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32604 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32605 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 32606 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 32607 | _ACEOF |
3d63bc3a | 32608 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 32609 | else |
e6cc62c6 VS |
32610 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
32611 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32612 | ||
54276ccf VZ |
32613 | fi |
32614 | ||
e6cc62c6 VS |
32615 | |
32616 | ||
4f14bcd8 | 32617 | fi |
698dcdb6 | 32618 | |
009fead0 | 32619 | fi |
10f2d63a | 32620 | |
7274f1c7 | 32621 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
32622 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
32623 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32624 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32626 | else | |
32627 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32628 | /* confdefs.h. */ |
32629 | _ACEOF | |
32630 | cat confdefs.h >>conftest.$ac_ext | |
32631 | cat >>conftest.$ac_ext <<_ACEOF | |
32632 | /* end confdefs.h. */ | |
32ddf007 VS |
32633 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32635 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32636 | ||
009fead0 | 32637 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32638 | which can conflict with char pthread_attr_getschedpolicy (); below. |
32639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32640 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32641 | |
e6cc62c6 VS |
32642 | #ifdef __STDC__ |
32643 | # include <limits.h> | |
32644 | #else | |
32645 | # include <assert.h> | |
32646 | #endif | |
32ddf007 VS |
32647 | |
32648 | #undef pthread_attr_getschedpolicy | |
32649 | ||
4f14bcd8 | 32650 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32651 | #ifdef __cplusplus |
32652 | extern "C" | |
32653 | { | |
32654 | #endif | |
4f14bcd8 | 32655 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32656 | builtin and then its argument prototype would still apply. */ |
32657 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
32658 | /* The GNU C library defines this for functions which it implements |
32659 | to always fail with ENOSYS. Some functions are actually named | |
32660 | something starting with __ and the normal name is an alias. */ | |
32661 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32662 | choke me | |
32663 | #else | |
e6cc62c6 VS |
32664 | char (*f) () = pthread_attr_getschedpolicy; |
32665 | #endif | |
32666 | #ifdef __cplusplus | |
32667 | } | |
009fead0 VZ |
32668 | #endif |
32669 | ||
e6cc62c6 VS |
32670 | int |
32671 | main () | |
32672 | { | |
32673 | return f != pthread_attr_getschedpolicy; | |
32674 | ; | |
32675 | return 0; | |
32676 | } | |
32677 | _ACEOF | |
32678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32680 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32681 | ac_status=$? |
32ddf007 VS |
32682 | grep -v '^ *+' conftest.er1 >conftest.err |
32683 | rm -f conftest.er1 | |
32684 | cat conftest.err >&5 | |
e6cc62c6 VS |
32685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32686 | (exit $ac_status); } && | |
32ddf007 VS |
32687 | { ac_try='test -z "$ac_c_werror_flag" |
32688 | || test ! -s conftest.err' | |
32689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32690 | (eval $ac_try) 2>&5 | |
32691 | ac_status=$? | |
32692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32693 | (exit $ac_status); }; } && | |
32694 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32696 | (eval $ac_try) 2>&5 | |
32697 | ac_status=$? | |
32698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32699 | (exit $ac_status); }; }; then | |
32700 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32701 | else | |
32702 | echo "$as_me: failed program was:" >&5 | |
32703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32704 | ||
32705 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32706 | fi | |
32ddf007 VS |
32707 | rm -f conftest.err conftest.$ac_objext \ |
32708 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32709 | fi |
32710 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32711 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32712 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32713 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32714 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32715 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32717 | else | |
32718 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32719 | /* confdefs.h. */ |
32720 | _ACEOF | |
32721 | cat confdefs.h >>conftest.$ac_ext | |
32722 | cat >>conftest.$ac_ext <<_ACEOF | |
32723 | /* end confdefs.h. */ | |
32ddf007 VS |
32724 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32726 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32727 | ||
a0b9e27f | 32728 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32729 | which can conflict with char pthread_attr_setschedparam (); below. |
32730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32731 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32732 | |
e6cc62c6 VS |
32733 | #ifdef __STDC__ |
32734 | # include <limits.h> | |
32735 | #else | |
32736 | # include <assert.h> | |
32737 | #endif | |
32ddf007 VS |
32738 | |
32739 | #undef pthread_attr_setschedparam | |
32740 | ||
422107f9 | 32741 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32742 | #ifdef __cplusplus |
32743 | extern "C" | |
32744 | { | |
32745 | #endif | |
422107f9 | 32746 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32747 | builtin and then its argument prototype would still apply. */ |
32748 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
32749 | /* The GNU C library defines this for functions which it implements |
32750 | to always fail with ENOSYS. Some functions are actually named | |
32751 | something starting with __ and the normal name is an alias. */ | |
32752 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32753 | choke me | |
32754 | #else | |
e6cc62c6 VS |
32755 | char (*f) () = pthread_attr_setschedparam; |
32756 | #endif | |
32757 | #ifdef __cplusplus | |
32758 | } | |
009fead0 VZ |
32759 | #endif |
32760 | ||
e6cc62c6 VS |
32761 | int |
32762 | main () | |
32763 | { | |
32764 | return f != pthread_attr_setschedparam; | |
32765 | ; | |
32766 | return 0; | |
32767 | } | |
32768 | _ACEOF | |
32769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32771 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32772 | ac_status=$? |
32ddf007 VS |
32773 | grep -v '^ *+' conftest.er1 >conftest.err |
32774 | rm -f conftest.er1 | |
32775 | cat conftest.err >&5 | |
e6cc62c6 VS |
32776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32777 | (exit $ac_status); } && | |
32ddf007 VS |
32778 | { ac_try='test -z "$ac_c_werror_flag" |
32779 | || test ! -s conftest.err' | |
32780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32781 | (eval $ac_try) 2>&5 | |
32782 | ac_status=$? | |
32783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32784 | (exit $ac_status); }; } && | |
32785 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32787 | (eval $ac_try) 2>&5 | |
32788 | ac_status=$? | |
32789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32790 | (exit $ac_status); }; }; then | |
32791 | ac_cv_func_pthread_attr_setschedparam=yes | |
32792 | else | |
32793 | echo "$as_me: failed program was:" >&5 | |
32794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32795 | ||
32796 | ac_cv_func_pthread_attr_setschedparam=no | |
32797 | fi | |
32ddf007 VS |
32798 | rm -f conftest.err conftest.$ac_objext \ |
32799 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32800 | fi |
32801 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32802 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32803 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32804 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32805 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32806 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32808 | else | |
32809 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32810 | /* confdefs.h. */ |
32811 | _ACEOF | |
32812 | cat confdefs.h >>conftest.$ac_ext | |
32813 | cat >>conftest.$ac_ext <<_ACEOF | |
32814 | /* end confdefs.h. */ | |
32ddf007 VS |
32815 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32817 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32818 | ||
ef33c576 | 32819 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32820 | which can conflict with char sched_get_priority_max (); below. |
32821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32822 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 32823 | |
e6cc62c6 VS |
32824 | #ifdef __STDC__ |
32825 | # include <limits.h> | |
32826 | #else | |
32827 | # include <assert.h> | |
32828 | #endif | |
32ddf007 VS |
32829 | |
32830 | #undef sched_get_priority_max | |
32831 | ||
4f14bcd8 | 32832 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32833 | #ifdef __cplusplus |
32834 | extern "C" | |
32835 | { | |
32836 | #endif | |
4f14bcd8 | 32837 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32838 | builtin and then its argument prototype would still apply. */ |
32839 | char sched_get_priority_max (); | |
009fead0 VZ |
32840 | /* The GNU C library defines this for functions which it implements |
32841 | to always fail with ENOSYS. Some functions are actually named | |
32842 | something starting with __ and the normal name is an alias. */ | |
32843 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32844 | choke me | |
32845 | #else | |
e6cc62c6 VS |
32846 | char (*f) () = sched_get_priority_max; |
32847 | #endif | |
32848 | #ifdef __cplusplus | |
32849 | } | |
009fead0 VZ |
32850 | #endif |
32851 | ||
e6cc62c6 VS |
32852 | int |
32853 | main () | |
32854 | { | |
32855 | return f != sched_get_priority_max; | |
32856 | ; | |
32857 | return 0; | |
32858 | } | |
32859 | _ACEOF | |
32860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32862 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32863 | ac_status=$? |
32ddf007 VS |
32864 | grep -v '^ *+' conftest.er1 >conftest.err |
32865 | rm -f conftest.er1 | |
32866 | cat conftest.err >&5 | |
e6cc62c6 VS |
32867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32868 | (exit $ac_status); } && | |
32ddf007 VS |
32869 | { ac_try='test -z "$ac_c_werror_flag" |
32870 | || test ! -s conftest.err' | |
32871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32872 | (eval $ac_try) 2>&5 | |
32873 | ac_status=$? | |
32874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32875 | (exit $ac_status); }; } && | |
32876 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32878 | (eval $ac_try) 2>&5 | |
32879 | ac_status=$? | |
32880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32881 | (exit $ac_status); }; }; then | |
32882 | ac_cv_func_sched_get_priority_max=yes | |
32883 | else | |
32884 | echo "$as_me: failed program was:" >&5 | |
32885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32886 | ||
32887 | ac_cv_func_sched_get_priority_max=no | |
32888 | fi | |
32ddf007 VS |
32889 | rm -f conftest.err conftest.$ac_objext \ |
32890 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32891 | fi |
32892 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32893 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32894 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
32895 | HAVE_PRIOR_FUNCS=1 |
32896 | else | |
e6cc62c6 VS |
32897 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
32898 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32899 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 32901 | else |
e6cc62c6 | 32902 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 32903 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 32904 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
32905 | /* confdefs.h. */ |
32906 | _ACEOF | |
32907 | cat confdefs.h >>conftest.$ac_ext | |
32908 | cat >>conftest.$ac_ext <<_ACEOF | |
32909 | /* end confdefs.h. */ | |
32910 | ||
422107f9 | 32911 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32912 | #ifdef __cplusplus |
32913 | extern "C" | |
32914 | #endif | |
422107f9 | 32915 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32916 | builtin and then its argument prototype would still apply. */ |
32917 | char sched_get_priority_max (); | |
32918 | int | |
32919 | main () | |
32920 | { | |
32921 | sched_get_priority_max (); | |
32922 | ; | |
32923 | return 0; | |
32924 | } | |
32925 | _ACEOF | |
32926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 32928 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 32929 | ac_status=$? |
32ddf007 VS |
32930 | grep -v '^ *+' conftest.er1 >conftest.err |
32931 | rm -f conftest.er1 | |
32932 | cat conftest.err >&5 | |
e6cc62c6 VS |
32933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32934 | (exit $ac_status); } && | |
32ddf007 VS |
32935 | { ac_try='test -z "$ac_c_werror_flag" |
32936 | || test ! -s conftest.err' | |
32937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32938 | (eval $ac_try) 2>&5 | |
32939 | ac_status=$? | |
32940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32941 | (exit $ac_status); }; } && | |
32942 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
32943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32944 | (eval $ac_try) 2>&5 | |
32945 | ac_status=$? | |
32946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32947 | (exit $ac_status); }; }; then | |
32948 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32949 | else | |
32950 | echo "$as_me: failed program was:" >&5 | |
32951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32952 | ||
32953 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32954 | fi | |
32ddf007 VS |
32955 | rm -f conftest.err conftest.$ac_objext \ |
32956 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
32957 | LIBS=$ac_check_lib_save_LIBS |
32958 | fi | |
32959 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32960 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32961 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 32962 | |
7274f1c7 RL |
32963 | HAVE_PRIOR_FUNCS=1 |
32964 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 32965 | |
4f14bcd8 | 32966 | fi |
463abc64 | 32967 | |
e6cc62c6 | 32968 | |
328a083c | 32969 | fi |
463abc64 | 32970 | |
e6cc62c6 | 32971 | |
7b4a847f | 32972 | fi |
579d8138 | 32973 | |
e6cc62c6 | 32974 | |
5c6fa7d2 | 32975 | fi |
52127426 | 32976 | |
8284b0c5 | 32977 | |
7274f1c7 | 32978 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 32979 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 32980 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 32981 | _ACEOF |
463abc64 | 32982 | |
7274f1c7 | 32983 | else |
e6cc62c6 VS |
32984 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
32985 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 32986 | fi |
463abc64 | 32987 | |
e6cc62c6 VS |
32988 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
32989 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32990 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32992 | else | |
32993 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
32994 | /* confdefs.h. */ |
32995 | _ACEOF | |
32996 | cat confdefs.h >>conftest.$ac_ext | |
32997 | cat >>conftest.$ac_ext <<_ACEOF | |
32998 | /* end confdefs.h. */ | |
32ddf007 VS |
32999 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
33000 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33001 | #define pthread_cancel innocuous_pthread_cancel | |
33002 | ||
009fead0 | 33003 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33004 | which can conflict with char pthread_cancel (); below. |
33005 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33006 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33007 | |
e6cc62c6 VS |
33008 | #ifdef __STDC__ |
33009 | # include <limits.h> | |
33010 | #else | |
33011 | # include <assert.h> | |
33012 | #endif | |
32ddf007 VS |
33013 | |
33014 | #undef pthread_cancel | |
33015 | ||
422107f9 | 33016 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33017 | #ifdef __cplusplus |
33018 | extern "C" | |
33019 | { | |
33020 | #endif | |
422107f9 | 33021 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33022 | builtin and then its argument prototype would still apply. */ |
33023 | char pthread_cancel (); | |
009fead0 VZ |
33024 | /* The GNU C library defines this for functions which it implements |
33025 | to always fail with ENOSYS. Some functions are actually named | |
33026 | something starting with __ and the normal name is an alias. */ | |
33027 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
33028 | choke me | |
33029 | #else | |
e6cc62c6 VS |
33030 | char (*f) () = pthread_cancel; |
33031 | #endif | |
33032 | #ifdef __cplusplus | |
33033 | } | |
009fead0 VZ |
33034 | #endif |
33035 | ||
e6cc62c6 VS |
33036 | int |
33037 | main () | |
33038 | { | |
33039 | return f != pthread_cancel; | |
33040 | ; | |
33041 | return 0; | |
33042 | } | |
33043 | _ACEOF | |
33044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33046 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33047 | ac_status=$? |
32ddf007 VS |
33048 | grep -v '^ *+' conftest.er1 >conftest.err |
33049 | rm -f conftest.er1 | |
33050 | cat conftest.err >&5 | |
e6cc62c6 VS |
33051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33052 | (exit $ac_status); } && | |
32ddf007 VS |
33053 | { ac_try='test -z "$ac_c_werror_flag" |
33054 | || test ! -s conftest.err' | |
33055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33056 | (eval $ac_try) 2>&5 | |
33057 | ac_status=$? | |
33058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33059 | (exit $ac_status); }; } && | |
33060 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33062 | (eval $ac_try) 2>&5 | |
33063 | ac_status=$? | |
33064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33065 | (exit $ac_status); }; }; then | |
33066 | ac_cv_func_pthread_cancel=yes | |
33067 | else | |
33068 | echo "$as_me: failed program was:" >&5 | |
33069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33070 | ||
33071 | ac_cv_func_pthread_cancel=no | |
33072 | fi | |
32ddf007 VS |
33073 | rm -f conftest.err conftest.$ac_objext \ |
33074 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33075 | fi |
33076 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
33077 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
33078 | if test $ac_cv_func_pthread_cancel = yes; then | |
33079 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 33080 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 33081 | _ACEOF |
4f14bcd8 | 33082 | |
698dcdb6 | 33083 | else |
e6cc62c6 VS |
33084 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
33085 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
33086 | fi |
33087 | ||
5c6fa7d2 | 33088 | |
4f14bcd8 | 33089 | |
e6cc62c6 VS |
33090 | |
33091 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
33092 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
33093 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
33094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 33095 | else |
e6cc62c6 VS |
33096 | |
33097 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33098 | /* confdefs.h. */ |
33099 | _ACEOF | |
33100 | cat confdefs.h >>conftest.$ac_ext | |
33101 | cat >>conftest.$ac_ext <<_ACEOF | |
33102 | /* end confdefs.h. */ | |
4f14bcd8 | 33103 | #include <pthread.h> |
e6cc62c6 VS |
33104 | int |
33105 | main () | |
33106 | { | |
4f14bcd8 | 33107 | |
7274f1c7 RL |
33108 | pthread_mutexattr_t attr; |
33109 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
33110 | |
33111 | ; | |
33112 | return 0; | |
33113 | } | |
33114 | _ACEOF | |
33115 | rm -f conftest.$ac_objext | |
33116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33117 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33118 | ac_status=$? |
32ddf007 VS |
33119 | grep -v '^ *+' conftest.er1 >conftest.err |
33120 | rm -f conftest.er1 | |
33121 | cat conftest.err >&5 | |
e6cc62c6 VS |
33122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33123 | (exit $ac_status); } && | |
32ddf007 VS |
33124 | { ac_try='test -z "$ac_c_werror_flag" |
33125 | || test ! -s conftest.err' | |
33126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33127 | (eval $ac_try) 2>&5 | |
33128 | ac_status=$? | |
33129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33130 | (exit $ac_status); }; } && | |
33131 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33133 | (eval $ac_try) 2>&5 | |
33134 | ac_status=$? | |
33135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33136 | (exit $ac_status); }; }; then | |
33137 | ||
7274f1c7 | 33138 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 33139 | |
3fed1840 | 33140 | else |
e6cc62c6 VS |
33141 | echo "$as_me: failed program was:" >&5 |
33142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33143 | ||
33144 | ||
7274f1c7 | 33145 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
33146 | |
33147 | ||
247f5006 | 33148 | fi |
32ddf007 | 33149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33150 | |
e6cc62c6 VS |
33151 | fi |
33152 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
33153 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 33154 | |
7274f1c7 | 33155 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 33156 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33157 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 33158 | _ACEOF |
4f14bcd8 | 33159 | |
7274f1c7 | 33160 | else |
e6cc62c6 VS |
33161 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
33162 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
33163 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
33164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33165 | else | |
33166 | ||
33167 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33168 | /* confdefs.h. */ |
33169 | _ACEOF | |
33170 | cat confdefs.h >>conftest.$ac_ext | |
33171 | cat >>conftest.$ac_ext <<_ACEOF | |
33172 | /* end confdefs.h. */ | |
4f14bcd8 | 33173 | #include <pthread.h> |
e6cc62c6 VS |
33174 | int |
33175 | main () | |
33176 | { | |
4f14bcd8 | 33177 | |
7274f1c7 | 33178 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
33179 | |
33180 | ; | |
33181 | return 0; | |
33182 | } | |
33183 | _ACEOF | |
33184 | rm -f conftest.$ac_objext | |
33185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33186 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33187 | ac_status=$? |
32ddf007 VS |
33188 | grep -v '^ *+' conftest.er1 >conftest.err |
33189 | rm -f conftest.er1 | |
33190 | cat conftest.err >&5 | |
e6cc62c6 VS |
33191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33192 | (exit $ac_status); } && | |
32ddf007 VS |
33193 | { ac_try='test -z "$ac_c_werror_flag" |
33194 | || test ! -s conftest.err' | |
33195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33196 | (eval $ac_try) 2>&5 | |
33197 | ac_status=$? | |
33198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33199 | (exit $ac_status); }; } && | |
33200 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33202 | (eval $ac_try) 2>&5 | |
33203 | ac_status=$? | |
33204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33205 | (exit $ac_status); }; }; then | |
33206 | ||
7274f1c7 | 33207 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 33208 | |
698dcdb6 | 33209 | else |
e6cc62c6 VS |
33210 | echo "$as_me: failed program was:" >&5 |
33211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33212 | ||
33213 | ||
7274f1c7 | 33214 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
33215 | |
33216 | ||
247f5006 | 33217 | fi |
32ddf007 | 33218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 33219 | |
e6cc62c6 VS |
33220 | fi |
33221 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
33222 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 33223 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 33224 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33225 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 33226 | _ACEOF |
3fed1840 | 33227 | |
7274f1c7 | 33228 | else |
e6cc62c6 VS |
33229 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
33230 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
33231 | fi |
33232 | fi | |
7274f1c7 | 33233 | fi |
3fed1840 | 33234 | |
a0b9e27f MB |
33235 | else |
33236 | if test "$wxUSE_THREADS" = "yes" ; then | |
33237 | case "${host}" in | |
33238 | *-*-mingw32* ) | |
e6cc62c6 VS |
33239 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
33240 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
33241 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
33242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 33243 | else |
e6cc62c6 | 33244 | |
ca8e52b3 VZ |
33245 | CFLAGS_OLD="$CFLAGS" |
33246 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 33247 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
33248 | /* confdefs.h. */ |
33249 | _ACEOF | |
33250 | cat confdefs.h >>conftest.$ac_ext | |
33251 | cat >>conftest.$ac_ext <<_ACEOF | |
33252 | /* end confdefs.h. */ | |
33253 | ||
33254 | int | |
33255 | main () | |
33256 | { | |
ca8e52b3 | 33257 | |
e6cc62c6 VS |
33258 | ; |
33259 | return 0; | |
33260 | } | |
33261 | _ACEOF | |
33262 | rm -f conftest.$ac_objext | |
33263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 33264 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 33265 | ac_status=$? |
32ddf007 VS |
33266 | grep -v '^ *+' conftest.er1 >conftest.err |
33267 | rm -f conftest.er1 | |
33268 | cat conftest.err >&5 | |
e6cc62c6 VS |
33269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33270 | (exit $ac_status); } && | |
32ddf007 VS |
33271 | { ac_try='test -z "$ac_c_werror_flag" |
33272 | || test ! -s conftest.err' | |
33273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33274 | (eval $ac_try) 2>&5 | |
33275 | ac_status=$? | |
33276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33277 | (exit $ac_status); }; } && | |
33278 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
33279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33280 | (eval $ac_try) 2>&5 | |
33281 | ac_status=$? | |
33282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33283 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
33284 | wx_cv_cflags_mthread=yes |
33285 | else | |
e6cc62c6 VS |
33286 | echo "$as_me: failed program was:" >&5 |
33287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33288 | ||
33289 | wx_cv_cflags_mthread=no | |
33290 | ||
ca8e52b3 | 33291 | fi |
32ddf007 | 33292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 33293 | |
ca8e52b3 | 33294 | |
e6cc62c6 VS |
33295 | fi |
33296 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33297 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
33298 | |
33299 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33300 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33301 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33302 | LDFLAGS="$LDFLAGS -mthreads" | |
33303 | else | |
33304 | CFLAGS="$CFLAGS_OLD" | |
33305 | fi | |
a0b9e27f | 33306 | ;; |
73d617c9 MB |
33307 | *-pc-os2*emx ) |
33308 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33309 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33310 | LDFLAGS="$LDFLAGS -Zmt" | |
33311 | ;; | |
a0b9e27f MB |
33312 | esac |
33313 | fi | |
4f14bcd8 GD |
33314 | fi |
33315 | ||
33316 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 33317 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33318 | #define wxUSE_THREADS 1 |
e6cc62c6 | 33319 | _ACEOF |
7b6058cd | 33320 | |
8284b0c5 | 33321 | |
4f14bcd8 | 33322 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 33323 | else |
4f14bcd8 | 33324 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
33325 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
33326 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
33327 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
33328 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
33329 | echo "$as_me:$LINENO: result: yes" >&5 |
33330 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 33331 | else |
e6cc62c6 VS |
33332 | echo "$as_me:$LINENO: result: no" >&5 |
33333 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
33334 | fi |
33335 | fi | |
33336 | fi | |
33337 | ||
33338 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 33339 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33340 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 33341 | _ACEOF |
4f14bcd8 GD |
33342 | |
33343 | WXGTK12=1 | |
10f2d63a | 33344 | fi |
4f14bcd8 GD |
33345 | |
33346 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 33347 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33348 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 33349 | _ACEOF |
4f14bcd8 | 33350 | |
10f2d63a | 33351 | fi |
698dcdb6 | 33352 | |
4f14bcd8 | 33353 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 33354 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 33355 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 33356 | _ACEOF |
4f14bcd8 | 33357 | |
698dcdb6 | 33358 | fi |
10f2d63a | 33359 | |
0f87e84c RR |
33360 | if test "$WXGPE" = 1 ; then |
33361 | cat >>confdefs.h <<_ACEOF | |
33362 | #define __WXGPE__ $WXGPE | |
33363 | _ACEOF | |
33364 | ||
33365 | fi | |
33366 | ||
4f14bcd8 GD |
33367 | WXDEBUG= |
33368 | ||
33369 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33370 | WXDEBUG="-g" | |
33371 | wxUSE_OPTIMISE=no | |
698dcdb6 | 33372 | fi |
4f14bcd8 GD |
33373 | |
33374 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33375 | wxUSE_DEBUG_INFO=yes | |
33376 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
33377 | fi |
33378 | ||
4f14bcd8 | 33379 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 33380 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33381 | #define WXDEBUG 1 |
e6cc62c6 | 33382 | _ACEOF |
4f14bcd8 GD |
33383 | |
33384 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 33385 | else |
4f14bcd8 GD |
33386 | if test "$wxUSE_GTK" = 1 ; then |
33387 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33388 | fi | |
33389 | fi | |
33390 | ||
33391 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 33392 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33393 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 33394 | _ACEOF |
4f14bcd8 | 33395 | |
e6cc62c6 | 33396 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33397 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 33398 | _ACEOF |
4f14bcd8 | 33399 | |
e6cc62c6 | 33400 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33401 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 33402 | _ACEOF |
4f14bcd8 GD |
33403 | |
33404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33405 | fi | |
33406 | ||
33407 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 33408 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
33409 | fi |
33410 | ||
33411 | PROFILE= | |
33412 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 33413 | PROFILE=" -pg" |
10f2d63a VZ |
33414 | fi |
33415 | ||
009fead0 VZ |
33416 | CODE_GEN_FLAGS= |
33417 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 33418 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
33419 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
33420 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 33421 | fi |
4f14bcd8 GD |
33422 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
33423 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33424 | fi | |
33425 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33426 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33427 | fi | |
1d1b75ac | 33428 | |
2b5f62a0 | 33429 | case "${host}" in |
1d1b75ac VZ |
33430 | powerpc*-*-aix* ) |
33431 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33432 | ;; | |
2b5f62a0 VZ |
33433 | *-hppa* ) |
33434 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33435 | ;; | |
1d1b75ac | 33436 | esac |
4f14bcd8 GD |
33437 | fi |
33438 | ||
af7b5345 | 33439 | OPTIMISE= |
4f14bcd8 | 33440 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
33441 | if test "$GCC" = yes ; then |
33442 | OPTIMISE="-O0" | |
33443 | fi | |
4f14bcd8 GD |
33444 | else |
33445 | if test "$GCC" = yes ; then | |
33446 | OPTIMISE="-O2" | |
af7b5345 VZ |
33447 | |
33448 | case "${host}" in | |
4f14bcd8 GD |
33449 | i586-*-*|i686-*-* ) |
33450 | OPTIMISE="${OPTIMISE} " | |
33451 | ;; | |
33452 | esac | |
33453 | else | |
33454 | OPTIMISE="-O" | |
33455 | fi | |
33456 | fi | |
33457 | ||
8d90d2f2 | 33458 | |
65d8ef1e | 33459 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 33460 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 33461 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 33462 | _ACEOF |
4f14bcd8 | 33463 | |
8d90d2f2 VZ |
33464 | |
33465 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
33466 | fi |
33467 | ||
65d8ef1e | 33468 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 33469 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 33470 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 33471 | _ACEOF |
65d8ef1e VS |
33472 | |
33473 | fi | |
33474 | ||
8284b0c5 | 33475 | |
10f2d63a | 33476 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 33477 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33478 | #define wxUSE_GUI 1 |
e6cc62c6 | 33479 | _ACEOF |
10f2d63a | 33480 | |
8284b0c5 | 33481 | |
10f2d63a | 33482 | else |
e6cc62c6 | 33483 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33484 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 33485 | _ACEOF |
10f2d63a VZ |
33486 | |
33487 | fi | |
33488 | ||
8284b0c5 | 33489 | |
10f2d63a | 33490 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 33491 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33492 | #define wxUSE_UNIX 1 |
e6cc62c6 | 33493 | _ACEOF |
10f2d63a VZ |
33494 | |
33495 | fi | |
33496 | ||
8284b0c5 | 33497 | |
f93ca9fd | 33498 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
5c6fa7d2 | 33499 | |
f93ca9fd VS |
33500 | HAVE_DL_FUNCS=0 |
33501 | HAVE_SHL_FUNCS=0 | |
33502 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33503 | if test "$USE_DARWIN" = 1; then | |
33504 | HAVE_DL_FUNCS=1 | |
33505 | else | |
e6cc62c6 | 33506 | |
f93ca9fd | 33507 | for ac_func in dlopen |
83307f33 | 33508 | do |
e6cc62c6 VS |
33509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33510 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33512 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33514 | else | |
33515 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33516 | /* confdefs.h. */ |
33517 | _ACEOF | |
33518 | cat confdefs.h >>conftest.$ac_ext | |
33519 | cat >>conftest.$ac_ext <<_ACEOF | |
33520 | /* end confdefs.h. */ | |
32ddf007 VS |
33521 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33523 | #define $ac_func innocuous_$ac_func | |
33524 | ||
83307f33 | 33525 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33526 | which can conflict with char $ac_func (); below. |
33527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33528 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33529 | |
e6cc62c6 VS |
33530 | #ifdef __STDC__ |
33531 | # include <limits.h> | |
33532 | #else | |
33533 | # include <assert.h> | |
33534 | #endif | |
32ddf007 VS |
33535 | |
33536 | #undef $ac_func | |
33537 | ||
83307f33 | 33538 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33539 | #ifdef __cplusplus |
33540 | extern "C" | |
33541 | { | |
33542 | #endif | |
83307f33 | 33543 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33544 | builtin and then its argument prototype would still apply. */ |
33545 | char $ac_func (); | |
83307f33 VZ |
33546 | /* The GNU C library defines this for functions which it implements |
33547 | to always fail with ENOSYS. Some functions are actually named | |
33548 | something starting with __ and the normal name is an alias. */ | |
33549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33550 | choke me | |
33551 | #else | |
e6cc62c6 VS |
33552 | char (*f) () = $ac_func; |
33553 | #endif | |
33554 | #ifdef __cplusplus | |
33555 | } | |
83307f33 VZ |
33556 | #endif |
33557 | ||
e6cc62c6 VS |
33558 | int |
33559 | main () | |
33560 | { | |
33561 | return f != $ac_func; | |
33562 | ; | |
33563 | return 0; | |
33564 | } | |
33565 | _ACEOF | |
33566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33568 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33569 | ac_status=$? |
32ddf007 VS |
33570 | grep -v '^ *+' conftest.er1 >conftest.err |
33571 | rm -f conftest.er1 | |
33572 | cat conftest.err >&5 | |
e6cc62c6 VS |
33573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33574 | (exit $ac_status); } && | |
32ddf007 VS |
33575 | { ac_try='test -z "$ac_c_werror_flag" |
33576 | || test ! -s conftest.err' | |
33577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33578 | (eval $ac_try) 2>&5 | |
33579 | ac_status=$? | |
33580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33581 | (exit $ac_status); }; } && | |
33582 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33584 | (eval $ac_try) 2>&5 | |
33585 | ac_status=$? | |
33586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33587 | (exit $ac_status); }; }; then | |
33588 | eval "$as_ac_var=yes" | |
33589 | else | |
33590 | echo "$as_me: failed program was:" >&5 | |
33591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33592 | ||
33593 | eval "$as_ac_var=no" | |
33594 | fi | |
32ddf007 VS |
33595 | rm -f conftest.err conftest.$ac_objext \ |
33596 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33597 | fi |
33598 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33599 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33600 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33601 | cat >>confdefs.h <<_ACEOF | |
33602 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33603 | _ACEOF | |
83307f33 | 33604 | |
f93ca9fd VS |
33605 | cat >>confdefs.h <<\_ACEOF |
33606 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33607 | _ACEOF |
e6cc62c6 | 33608 | |
f93ca9fd | 33609 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 33610 | |
360d6699 | 33611 | else |
e6cc62c6 | 33612 | |
f93ca9fd VS |
33613 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
33614 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33615 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357c8e8 | 33617 | else |
f93ca9fd VS |
33618 | ac_check_lib_save_LIBS=$LIBS |
33619 | LIBS="-ldl $LIBS" | |
33620 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33621 | /* confdefs.h. */ |
33622 | _ACEOF | |
33623 | cat confdefs.h >>conftest.$ac_ext | |
33624 | cat >>conftest.$ac_ext <<_ACEOF | |
33625 | /* end confdefs.h. */ | |
5357c8e8 | 33626 | |
f93ca9fd VS |
33627 | /* Override any gcc2 internal prototype to avoid an error. */ |
33628 | #ifdef __cplusplus | |
33629 | extern "C" | |
33630 | #endif | |
33631 | /* We use char because int might match the return type of a gcc2 | |
33632 | builtin and then its argument prototype would still apply. */ | |
33633 | char dlopen (); | |
e6cc62c6 VS |
33634 | int |
33635 | main () | |
33636 | { | |
f93ca9fd | 33637 | dlopen (); |
e6cc62c6 VS |
33638 | ; |
33639 | return 0; | |
33640 | } | |
33641 | _ACEOF | |
f93ca9fd VS |
33642 | rm -f conftest.$ac_objext conftest$ac_exeext |
33643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33644 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33645 | ac_status=$? |
32ddf007 VS |
33646 | grep -v '^ *+' conftest.er1 >conftest.err |
33647 | rm -f conftest.er1 | |
33648 | cat conftest.err >&5 | |
e6cc62c6 VS |
33649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33650 | (exit $ac_status); } && | |
32ddf007 VS |
33651 | { ac_try='test -z "$ac_c_werror_flag" |
33652 | || test ! -s conftest.err' | |
33653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33654 | (eval $ac_try) 2>&5 | |
33655 | ac_status=$? | |
33656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33657 | (exit $ac_status); }; } && | |
33658 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33660 | (eval $ac_try) 2>&5 | |
33661 | ac_status=$? | |
33662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33663 | (exit $ac_status); }; }; then | |
f93ca9fd | 33664 | ac_cv_lib_dl_dlopen=yes |
360d6699 | 33665 | else |
e6cc62c6 VS |
33666 | echo "$as_me: failed program was:" >&5 |
33667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33668 | ||
f93ca9fd | 33669 | ac_cv_lib_dl_dlopen=no |
247f5006 | 33670 | fi |
32ddf007 VS |
33671 | rm -f conftest.err conftest.$ac_objext \ |
33672 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 33673 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 33674 | fi |
f93ca9fd VS |
33675 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
33676 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33677 | if test $ac_cv_lib_dl_dlopen = yes; then | |
698dcdb6 | 33678 | |
f93ca9fd VS |
33679 | cat >>confdefs.h <<\_ACEOF |
33680 | #define HAVE_DLOPEN 1 | |
e6cc62c6 | 33681 | _ACEOF |
360d6699 | 33682 | |
f93ca9fd VS |
33683 | HAVE_DL_FUNCS=1 |
33684 | DL_LINK=" -ldl$DL_LINK" | |
698dcdb6 | 33685 | |
f93ca9fd | 33686 | else |
e6cc62c6 | 33687 | |
f93ca9fd VS |
33688 | |
33689 | for ac_func in shl_load | |
afc31813 | 33690 | do |
e6cc62c6 VS |
33691 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33692 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33693 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33694 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33696 | else | |
33697 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33698 | /* confdefs.h. */ |
33699 | _ACEOF | |
33700 | cat confdefs.h >>conftest.$ac_ext | |
33701 | cat >>conftest.$ac_ext <<_ACEOF | |
33702 | /* end confdefs.h. */ | |
32ddf007 VS |
33703 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33704 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33705 | #define $ac_func innocuous_$ac_func | |
33706 | ||
afc31813 | 33707 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33708 | which can conflict with char $ac_func (); below. |
33709 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33710 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33711 | |
e6cc62c6 VS |
33712 | #ifdef __STDC__ |
33713 | # include <limits.h> | |
33714 | #else | |
33715 | # include <assert.h> | |
33716 | #endif | |
32ddf007 VS |
33717 | |
33718 | #undef $ac_func | |
33719 | ||
afc31813 | 33720 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33721 | #ifdef __cplusplus |
33722 | extern "C" | |
33723 | { | |
33724 | #endif | |
afc31813 | 33725 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33726 | builtin and then its argument prototype would still apply. */ |
33727 | char $ac_func (); | |
afc31813 VZ |
33728 | /* The GNU C library defines this for functions which it implements |
33729 | to always fail with ENOSYS. Some functions are actually named | |
33730 | something starting with __ and the normal name is an alias. */ | |
33731 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33732 | choke me | |
33733 | #else | |
e6cc62c6 VS |
33734 | char (*f) () = $ac_func; |
33735 | #endif | |
33736 | #ifdef __cplusplus | |
33737 | } | |
afc31813 VZ |
33738 | #endif |
33739 | ||
e6cc62c6 VS |
33740 | int |
33741 | main () | |
33742 | { | |
33743 | return f != $ac_func; | |
33744 | ; | |
33745 | return 0; | |
33746 | } | |
33747 | _ACEOF | |
33748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33750 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33751 | ac_status=$? |
32ddf007 VS |
33752 | grep -v '^ *+' conftest.er1 >conftest.err |
33753 | rm -f conftest.er1 | |
33754 | cat conftest.err >&5 | |
e6cc62c6 VS |
33755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33756 | (exit $ac_status); } && | |
32ddf007 VS |
33757 | { ac_try='test -z "$ac_c_werror_flag" |
33758 | || test ! -s conftest.err' | |
33759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33760 | (eval $ac_try) 2>&5 | |
33761 | ac_status=$? | |
33762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33763 | (exit $ac_status); }; } && | |
33764 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33766 | (eval $ac_try) 2>&5 | |
33767 | ac_status=$? | |
33768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33769 | (exit $ac_status); }; }; then | |
33770 | eval "$as_ac_var=yes" | |
33771 | else | |
33772 | echo "$as_me: failed program was:" >&5 | |
33773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33774 | ||
33775 | eval "$as_ac_var=no" | |
33776 | fi | |
32ddf007 VS |
33777 | rm -f conftest.err conftest.$ac_objext \ |
33778 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33779 | fi |
33780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33781 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33782 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33783 | cat >>confdefs.h <<_ACEOF | |
33784 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33785 | _ACEOF | |
afc31813 | 33786 | |
f93ca9fd VS |
33787 | cat >>confdefs.h <<\_ACEOF |
33788 | #define HAVE_SHL_LOAD 1 | |
33789 | _ACEOF | |
afc31813 | 33790 | |
f93ca9fd | 33791 | HAVE_SHL_FUNCS=1 |
5c6fa7d2 | 33792 | |
a0b9e27f | 33793 | else |
e6cc62c6 | 33794 | |
f93ca9fd VS |
33795 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 |
33796 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33797 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33799 | else | |
33800 | ac_check_lib_save_LIBS=$LIBS | |
33801 | LIBS="-lshl_load $LIBS" | |
33802 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33803 | /* confdefs.h. */ |
33804 | _ACEOF | |
33805 | cat confdefs.h >>conftest.$ac_ext | |
33806 | cat >>conftest.$ac_ext <<_ACEOF | |
33807 | /* end confdefs.h. */ | |
0470b1e6 | 33808 | |
f93ca9fd VS |
33809 | /* Override any gcc2 internal prototype to avoid an error. */ |
33810 | #ifdef __cplusplus | |
33811 | extern "C" | |
33812 | #endif | |
33813 | /* We use char because int might match the return type of a gcc2 | |
33814 | builtin and then its argument prototype would still apply. */ | |
33815 | char dld (); | |
e6cc62c6 VS |
33816 | int |
33817 | main () | |
33818 | { | |
f93ca9fd | 33819 | dld (); |
e6cc62c6 VS |
33820 | ; |
33821 | return 0; | |
33822 | } | |
33823 | _ACEOF | |
f93ca9fd VS |
33824 | rm -f conftest.$ac_objext conftest$ac_exeext |
33825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33826 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33827 | ac_status=$? |
32ddf007 VS |
33828 | grep -v '^ *+' conftest.er1 >conftest.err |
33829 | rm -f conftest.er1 | |
33830 | cat conftest.err >&5 | |
e6cc62c6 VS |
33831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33832 | (exit $ac_status); } && | |
32ddf007 VS |
33833 | { ac_try='test -z "$ac_c_werror_flag" |
33834 | || test ! -s conftest.err' | |
33835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33836 | (eval $ac_try) 2>&5 | |
33837 | ac_status=$? | |
33838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33839 | (exit $ac_status); }; } && | |
33840 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33842 | (eval $ac_try) 2>&5 | |
33843 | ac_status=$? | |
33844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33845 | (exit $ac_status); }; }; then | |
f93ca9fd | 33846 | ac_cv_lib_shl_load_dld=yes |
0470b1e6 | 33847 | else |
e6cc62c6 VS |
33848 | echo "$as_me: failed program was:" >&5 |
33849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33850 | ||
f93ca9fd VS |
33851 | ac_cv_lib_shl_load_dld=no |
33852 | fi | |
32ddf007 VS |
33853 | rm -f conftest.err conftest.$ac_objext \ |
33854 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
33855 | LIBS=$ac_check_lib_save_LIBS |
33856 | fi | |
33857 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33858 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33859 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33860 | ||
33861 | HAVE_SHL_FUNCS=1 | |
33862 | DL_LINK=" -ldld$DL_LINK" | |
e6cc62c6 | 33863 | |
247f5006 | 33864 | fi |
f93ca9fd | 33865 | |
a0b9e27f | 33866 | |
e6cc62c6 | 33867 | fi |
f93ca9fd | 33868 | done |
6232543b | 33869 | |
0470b1e6 | 33870 | |
f93ca9fd VS |
33871 | fi |
33872 | ||
3fcdd07b | 33873 | |
f93ca9fd VS |
33874 | fi |
33875 | done | |
e6cc62c6 VS |
33876 | |
33877 | ||
f93ca9fd VS |
33878 | if test "$HAVE_DL_FUNCS" = 1; then |
33879 | ||
33880 | for ac_func in dlerror | |
3fcdd07b | 33881 | do |
e6cc62c6 VS |
33882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33887 | else | |
33888 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33889 | /* confdefs.h. */ |
33890 | _ACEOF | |
33891 | cat confdefs.h >>conftest.$ac_ext | |
33892 | cat >>conftest.$ac_ext <<_ACEOF | |
33893 | /* end confdefs.h. */ | |
32ddf007 VS |
33894 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33896 | #define $ac_func innocuous_$ac_func | |
33897 | ||
3fcdd07b | 33898 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33899 | which can conflict with char $ac_func (); below. |
33900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33901 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 33902 | |
e6cc62c6 VS |
33903 | #ifdef __STDC__ |
33904 | # include <limits.h> | |
33905 | #else | |
33906 | # include <assert.h> | |
33907 | #endif | |
32ddf007 VS |
33908 | |
33909 | #undef $ac_func | |
33910 | ||
3fcdd07b | 33911 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33912 | #ifdef __cplusplus |
33913 | extern "C" | |
33914 | { | |
33915 | #endif | |
3fcdd07b | 33916 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33917 | builtin and then its argument prototype would still apply. */ |
33918 | char $ac_func (); | |
3fcdd07b VZ |
33919 | /* The GNU C library defines this for functions which it implements |
33920 | to always fail with ENOSYS. Some functions are actually named | |
33921 | something starting with __ and the normal name is an alias. */ | |
33922 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33923 | choke me | |
33924 | #else | |
e6cc62c6 VS |
33925 | char (*f) () = $ac_func; |
33926 | #endif | |
33927 | #ifdef __cplusplus | |
33928 | } | |
3fcdd07b VZ |
33929 | #endif |
33930 | ||
e6cc62c6 VS |
33931 | int |
33932 | main () | |
33933 | { | |
33934 | return f != $ac_func; | |
33935 | ; | |
33936 | return 0; | |
33937 | } | |
33938 | _ACEOF | |
33939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 33941 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 33942 | ac_status=$? |
32ddf007 VS |
33943 | grep -v '^ *+' conftest.er1 >conftest.err |
33944 | rm -f conftest.er1 | |
33945 | cat conftest.err >&5 | |
e6cc62c6 VS |
33946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33947 | (exit $ac_status); } && | |
32ddf007 VS |
33948 | { ac_try='test -z "$ac_c_werror_flag" |
33949 | || test ! -s conftest.err' | |
33950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33951 | (eval $ac_try) 2>&5 | |
33952 | ac_status=$? | |
33953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33954 | (exit $ac_status); }; } && | |
33955 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
33956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33957 | (eval $ac_try) 2>&5 | |
33958 | ac_status=$? | |
33959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33960 | (exit $ac_status); }; }; then | |
33961 | eval "$as_ac_var=yes" | |
33962 | else | |
33963 | echo "$as_me: failed program was:" >&5 | |
33964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33965 | ||
33966 | eval "$as_ac_var=no" | |
33967 | fi | |
32ddf007 VS |
33968 | rm -f conftest.err conftest.$ac_objext \ |
33969 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
33970 | fi |
33971 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33972 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33973 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33974 | cat >>confdefs.h <<_ACEOF | |
33975 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33976 | _ACEOF | |
f93ca9fd VS |
33977 | cat >>confdefs.h <<\_ACEOF |
33978 | #define HAVE_DLERROR 1 | |
33979 | _ACEOF | |
3fcdd07b | 33980 | |
f93ca9fd | 33981 | else |
698dcdb6 | 33982 | |
f93ca9fd VS |
33983 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
33984 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33985 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
e6cc62c6 VS |
33986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
33987 | else | |
f93ca9fd VS |
33988 | ac_check_lib_save_LIBS=$LIBS |
33989 | LIBS="-ldl $LIBS" | |
33990 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
33991 | /* confdefs.h. */ |
33992 | _ACEOF | |
33993 | cat confdefs.h >>conftest.$ac_ext | |
33994 | cat >>conftest.$ac_ext <<_ACEOF | |
33995 | /* end confdefs.h. */ | |
afc31813 | 33996 | |
f93ca9fd VS |
33997 | /* Override any gcc2 internal prototype to avoid an error. */ |
33998 | #ifdef __cplusplus | |
33999 | extern "C" | |
34000 | #endif | |
34001 | /* We use char because int might match the return type of a gcc2 | |
34002 | builtin and then its argument prototype would still apply. */ | |
34003 | char dlerror (); | |
e6cc62c6 VS |
34004 | int |
34005 | main () | |
34006 | { | |
f93ca9fd | 34007 | dlerror (); |
e6cc62c6 VS |
34008 | ; |
34009 | return 0; | |
34010 | } | |
34011 | _ACEOF | |
f93ca9fd VS |
34012 | rm -f conftest.$ac_objext conftest$ac_exeext |
34013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34014 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34015 | ac_status=$? |
32ddf007 VS |
34016 | grep -v '^ *+' conftest.er1 >conftest.err |
34017 | rm -f conftest.er1 | |
34018 | cat conftest.err >&5 | |
e6cc62c6 VS |
34019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34020 | (exit $ac_status); } && | |
32ddf007 VS |
34021 | { ac_try='test -z "$ac_c_werror_flag" |
34022 | || test ! -s conftest.err' | |
34023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34024 | (eval $ac_try) 2>&5 | |
34025 | ac_status=$? | |
34026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34027 | (exit $ac_status); }; } && | |
34028 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34030 | (eval $ac_try) 2>&5 | |
34031 | ac_status=$? | |
34032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34033 | (exit $ac_status); }; }; then | |
f93ca9fd | 34034 | ac_cv_lib_dl_dlerror=yes |
10f2d63a | 34035 | else |
e6cc62c6 VS |
34036 | echo "$as_me: failed program was:" >&5 |
34037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34038 | ||
f93ca9fd VS |
34039 | ac_cv_lib_dl_dlerror=no |
34040 | fi | |
32ddf007 VS |
34041 | rm -f conftest.err conftest.$ac_objext \ |
34042 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34043 | LIBS=$ac_check_lib_save_LIBS |
34044 | fi | |
34045 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
34046 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
34047 | if test $ac_cv_lib_dl_dlerror = yes; then | |
34048 | cat >>confdefs.h <<\_ACEOF | |
34049 | #define HAVE_DLERROR 1 | |
34050 | _ACEOF | |
34051 | ||
34052 | fi | |
34053 | ||
34054 | ||
34055 | ||
34056 | fi | |
34057 | done | |
34058 | ||
34059 | fi | |
34060 | fi | |
34061 | ||
34062 | if test "$HAVE_DL_FUNCS" = 0; then | |
34063 | if test "$HAVE_SHL_FUNCS" = 0; then | |
34064 | if test "$USE_UNIX" = 1; then | |
34065 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
34066 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
34067 | wxUSE_DYNAMIC_LOADER=no | |
34068 | wxUSE_DYNLIB_CLASS=no | |
34069 | else | |
34070 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
34071 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
34072 | fi | |
34073 | fi | |
34074 | fi | |
34075 | fi | |
34076 | fi | |
34077 | ||
34078 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
34079 | cat >>confdefs.h <<\_ACEOF | |
34080 | #define wxUSE_DYNAMIC_LOADER 1 | |
34081 | _ACEOF | |
34082 | ||
34083 | fi | |
34084 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
34085 | cat >>confdefs.h <<\_ACEOF | |
34086 | #define wxUSE_DYNLIB_CLASS 1 | |
34087 | _ACEOF | |
34088 | ||
34089 | fi | |
34090 | ||
34091 | ||
34092 | ||
34093 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34094 | if test "$wxUSE_SHARED" = "no" ; then | |
34095 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
34096 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
34097 | wxUSE_PLUGINS=no | |
34098 | fi | |
34099 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
34100 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
34101 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
34102 | wxUSE_PLUGINS=no | |
34103 | fi | |
34104 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
34105 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
34106 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
34107 | wxUSE_PLUGINS=no | |
34108 | fi | |
34109 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
34110 | cat >>confdefs.h <<\_ACEOF | |
34111 | #define wxUSE_PLUGINS 1 | |
34112 | _ACEOF | |
34113 | ||
34114 | fi | |
34115 | fi | |
34116 | ||
34117 | ||
34118 | if test "$wxUSE_STL" = "yes"; then | |
34119 | cat >>confdefs.h <<\_ACEOF | |
34120 | #define wxUSE_STL 1 | |
34121 | _ACEOF | |
34122 | ||
34123 | fi | |
34124 | ||
34125 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
34126 | cat >>confdefs.h <<\_ACEOF | |
34127 | #define wxUSE_APPLE_IEEE 1 | |
34128 | _ACEOF | |
34129 | ||
34130 | fi | |
34131 | ||
34132 | if test "$wxUSE_TIMER" = "yes"; then | |
34133 | cat >>confdefs.h <<\_ACEOF | |
34134 | #define wxUSE_TIMER 1 | |
34135 | _ACEOF | |
34136 | ||
34137 | fi | |
34138 | ||
34139 | WITH_PLUGIN_SDL=0 | |
002ed9af | 34140 | if test "$wxUSE_SOUND" = "yes"; then |
f93ca9fd VS |
34141 | if test "$USE_UNIX" = "1" ; then |
34142 | ||
34143 | for ac_header in sys/soundcard.h | |
34144 | do | |
34145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
34146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34151 | fi | |
34152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34154 | else | |
34155 | # Is the header compilable? | |
34156 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
34157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 34158 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34159 | /* confdefs.h. */ |
34160 | _ACEOF | |
34161 | cat confdefs.h >>conftest.$ac_ext | |
34162 | cat >>conftest.$ac_ext <<_ACEOF | |
34163 | /* end confdefs.h. */ | |
f93ca9fd VS |
34164 | $ac_includes_default |
34165 | #include <$ac_header> | |
e6cc62c6 VS |
34166 | _ACEOF |
34167 | rm -f conftest.$ac_objext | |
34168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34169 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34170 | ac_status=$? |
32ddf007 VS |
34171 | grep -v '^ *+' conftest.er1 >conftest.err |
34172 | rm -f conftest.er1 | |
34173 | cat conftest.err >&5 | |
e6cc62c6 VS |
34174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34175 | (exit $ac_status); } && | |
32ddf007 VS |
34176 | { ac_try='test -z "$ac_c_werror_flag" |
34177 | || test ! -s conftest.err' | |
34178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34179 | (eval $ac_try) 2>&5 | |
34180 | ac_status=$? | |
34181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34182 | (exit $ac_status); }; } && | |
34183 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34185 | (eval $ac_try) 2>&5 | |
34186 | ac_status=$? | |
34187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34188 | (exit $ac_status); }; }; then | |
f93ca9fd | 34189 | ac_header_compiler=yes |
10f2d63a | 34190 | else |
e6cc62c6 VS |
34191 | echo "$as_me: failed program was:" >&5 |
34192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34193 | ||
f93ca9fd | 34194 | ac_header_compiler=no |
10f2d63a | 34195 | fi |
32ddf007 | 34196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
34197 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
34198 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
b089607b | 34199 | |
f93ca9fd VS |
34200 | # Is the header present? |
34201 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
34202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
34203 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34204 | /* confdefs.h. */ |
34205 | _ACEOF | |
34206 | cat confdefs.h >>conftest.$ac_ext | |
34207 | cat >>conftest.$ac_ext <<_ACEOF | |
34208 | /* end confdefs.h. */ | |
f93ca9fd | 34209 | #include <$ac_header> |
e6cc62c6 | 34210 | _ACEOF |
f93ca9fd VS |
34211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
34212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
e6cc62c6 | 34213 | ac_status=$? |
f95e4495 VS |
34214 | grep -v '^ *+' conftest.er1 >conftest.err |
34215 | rm -f conftest.er1 | |
34216 | cat conftest.err >&5 | |
e6cc62c6 | 34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd VS |
34218 | (exit $ac_status); } >/dev/null; then |
34219 | if test -s conftest.err; then | |
34220 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 34221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
34222 | else |
34223 | ac_cpp_err= | |
34224 | fi | |
34225 | else | |
34226 | ac_cpp_err=yes | |
34227 | fi | |
34228 | if test -z "$ac_cpp_err"; then | |
34229 | ac_header_preproc=yes | |
34230 | else | |
34231 | echo "$as_me: failed program was:" >&5 | |
34232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34233 | ||
34234 | ac_header_preproc=no | |
34235 | fi | |
34236 | rm -f conftest.err conftest.$ac_ext | |
34237 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34238 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34239 | ||
34240 | # So? What about this header? | |
32ddf007 VS |
34241 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
34242 | yes:no: ) | |
f93ca9fd VS |
34243 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34244 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
34245 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
34246 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
34247 | ac_header_preproc=yes | |
f93ca9fd | 34248 | ;; |
32ddf007 | 34249 | no:yes:* ) |
f93ca9fd VS |
34250 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34251 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
34252 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34253 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
34254 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
34255 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
34256 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
34257 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
34258 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34259 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
34260 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
34261 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
34262 | ( |
34263 | cat <<\_ASBOX | |
32ddf007 VS |
34264 | ## ----------------------------------------- ## |
34265 | ## Report this to wx-dev@lists.wxwindows.org ## | |
34266 | ## ----------------------------------------- ## | |
f93ca9fd VS |
34267 | _ASBOX |
34268 | ) | | |
34269 | sed "s/^/$as_me: WARNING: /" >&2 | |
34270 | ;; | |
34271 | esac | |
34272 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34273 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34276 | else | |
32ddf007 | 34277 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
34278 | fi |
34279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34281 | ||
34282 | fi | |
34283 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34284 | cat >>confdefs.h <<_ACEOF | |
34285 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34286 | _ACEOF | |
34287 | ||
34288 | fi | |
34289 | ||
34290 | done | |
34291 | ||
34292 | ||
34293 | if test "$wxUSE_LIBSDL" != "no"; then | |
34294 | ||
34295 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34296 | if test "${with_sdl_prefix+set}" = set; then | |
34297 | withval="$with_sdl_prefix" | |
34298 | sdl_prefix="$withval" | |
34299 | else | |
34300 | sdl_prefix="" | |
34301 | fi; | |
34302 | ||
34303 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34304 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34305 | withval="$with_sdl_exec_prefix" | |
34306 | sdl_exec_prefix="$withval" | |
34307 | else | |
34308 | sdl_exec_prefix="" | |
34309 | fi; | |
34310 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34311 | if test "${enable_sdltest+set}" = set; then | |
34312 | enableval="$enable_sdltest" | |
34313 | ||
34314 | else | |
34315 | enable_sdltest=yes | |
34316 | fi; | |
34317 | ||
34318 | if test x$sdl_exec_prefix != x ; then | |
34319 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34320 | if test x${SDL_CONFIG+set} != xset ; then | |
34321 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34322 | fi | |
34323 | fi | |
34324 | if test x$sdl_prefix != x ; then | |
34325 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34326 | if test x${SDL_CONFIG+set} != xset ; then | |
34327 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34328 | fi | |
34329 | fi | |
34330 | ||
34331 | ||
34332 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34333 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34334 | set dummy sdl-config; ac_word=$2 | |
34335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34337 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34339 | else | |
34340 | case $SDL_CONFIG in | |
34341 | [\\/]* | ?:[\\/]*) | |
34342 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34343 | ;; | |
34344 | *) | |
34345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34346 | for as_dir in $PATH | |
34347 | do | |
34348 | IFS=$as_save_IFS | |
34349 | test -z "$as_dir" && as_dir=. | |
34350 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34351 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34352 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34353 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34354 | break 2 | |
34355 | fi | |
34356 | done | |
34357 | done | |
34358 | ||
34359 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34360 | ;; | |
34361 | esac | |
34362 | fi | |
34363 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34364 | ||
34365 | if test -n "$SDL_CONFIG"; then | |
34366 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34367 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34368 | else | |
34369 | echo "$as_me:$LINENO: result: no" >&5 | |
34370 | echo "${ECHO_T}no" >&6 | |
34371 | fi | |
34372 | ||
34373 | min_sdl_version=1.2.0 | |
34374 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34375 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34376 | no_sdl="" | |
34377 | if test "$SDL_CONFIG" = "no" ; then | |
34378 | no_sdl=yes | |
34379 | else | |
34380 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34381 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34382 | ||
34383 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34384 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34385 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34386 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34387 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34388 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34389 | if test "x$enable_sdltest" = "xyes" ; then | |
34390 | ac_save_CFLAGS="$CFLAGS" | |
34391 | ac_save_LIBS="$LIBS" | |
34392 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34393 | LIBS="$LIBS $SDL_LIBS" | |
34394 | rm -f conf.sdltest | |
34395 | if test "$cross_compiling" = yes; then | |
34396 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34397 | else | |
34398 | cat >conftest.$ac_ext <<_ACEOF | |
34399 | /* confdefs.h. */ | |
34400 | _ACEOF | |
34401 | cat confdefs.h >>conftest.$ac_ext | |
34402 | cat >>conftest.$ac_ext <<_ACEOF | |
34403 | /* end confdefs.h. */ | |
34404 | ||
34405 | #include <stdio.h> | |
34406 | #include <stdlib.h> | |
34407 | #include <string.h> | |
34408 | #include "SDL.h" | |
34409 | ||
34410 | char* | |
34411 | my_strdup (char *str) | |
34412 | { | |
34413 | char *new_str; | |
34414 | ||
34415 | if (str) | |
34416 | { | |
34417 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34418 | strcpy (new_str, str); | |
34419 | } | |
34420 | else | |
34421 | new_str = NULL; | |
34422 | ||
34423 | return new_str; | |
34424 | } | |
34425 | ||
34426 | int main (int argc, char *argv[]) | |
34427 | { | |
34428 | int major, minor, micro; | |
34429 | char *tmp_version; | |
34430 | ||
34431 | /* This hangs on some systems (?) | |
34432 | system ("touch conf.sdltest"); | |
34433 | */ | |
34434 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34435 | ||
34436 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34437 | tmp_version = my_strdup("$min_sdl_version"); | |
34438 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34439 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34440 | exit(1); | |
34441 | } | |
34442 | ||
34443 | if (($sdl_major_version > major) || | |
34444 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34445 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34446 | { | |
34447 | return 0; | |
34448 | } | |
34449 | else | |
34450 | { | |
34451 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34452 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34453 | printf("*** best to upgrade to the required version.\n"); | |
34454 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34455 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34456 | printf("*** config.cache before re-running configure\n"); | |
34457 | return 1; | |
34458 | } | |
34459 | } | |
34460 | ||
34461 | ||
34462 | _ACEOF | |
34463 | rm -f conftest$ac_exeext | |
34464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34465 | (eval $ac_link) 2>&5 | |
f95e4495 VS |
34466 | ac_status=$? |
34467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f93ca9fd | 34468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
e6cc62c6 VS |
34469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34470 | (eval $ac_try) 2>&5 | |
34471 | ac_status=$? | |
34472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34473 | (exit $ac_status); }; }; then | |
f93ca9fd | 34474 | : |
e6cc62c6 | 34475 | else |
f93ca9fd VS |
34476 | echo "$as_me: program exited with status $ac_status" >&5 |
34477 | echo "$as_me: failed program was:" >&5 | |
e6cc62c6 VS |
34478 | sed 's/^/| /' conftest.$ac_ext >&5 |
34479 | ||
f93ca9fd VS |
34480 | ( exit $ac_status ) |
34481 | no_sdl=yes | |
e6cc62c6 | 34482 | fi |
32ddf007 | 34483 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 34484 | fi |
f93ca9fd VS |
34485 | CFLAGS="$ac_save_CFLAGS" |
34486 | LIBS="$ac_save_LIBS" | |
34487 | fi | |
34488 | fi | |
34489 | if test "x$no_sdl" = x ; then | |
34490 | echo "$as_me:$LINENO: result: yes" >&5 | |
34491 | echo "${ECHO_T}yes" >&6 | |
0e012a93 | 34492 | |
f93ca9fd VS |
34493 | EXTRALIBS_SDL="$SDL_LIBS" |
34494 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34495 | cat >>confdefs.h <<\_ACEOF | |
34496 | #define wxUSE_LIBSDL 1 | |
34497 | _ACEOF | |
34498 | ||
34499 | ||
34500 | else | |
34501 | echo "$as_me:$LINENO: result: no" >&5 | |
34502 | echo "${ECHO_T}no" >&6 | |
34503 | if test "$SDL_CONFIG" = "no" ; then | |
34504 | echo "*** The sdl-config script installed by SDL could not be found" | |
34505 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34506 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34507 | echo "*** full path to sdl-config." | |
34508 | else | |
34509 | if test -f conf.sdltest ; then | |
34510 | : | |
34511 | else | |
34512 | echo "*** Could not run SDL test program, checking why..." | |
34513 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34514 | LIBS="$LIBS $SDL_LIBS" | |
34515 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34516 | /* confdefs.h. */ |
34517 | _ACEOF | |
34518 | cat confdefs.h >>conftest.$ac_ext | |
34519 | cat >>conftest.$ac_ext <<_ACEOF | |
34520 | /* end confdefs.h. */ | |
34521 | ||
f93ca9fd VS |
34522 | #include <stdio.h> |
34523 | #include "SDL.h" | |
34524 | ||
34525 | int main(int argc, char *argv[]) | |
34526 | { return 0; } | |
34527 | #undef main | |
34528 | #define main K_and_R_C_main | |
34529 | ||
e6cc62c6 VS |
34530 | int |
34531 | main () | |
34532 | { | |
f93ca9fd | 34533 | return 0; |
e6cc62c6 VS |
34534 | ; |
34535 | return 0; | |
34536 | } | |
34537 | _ACEOF | |
34538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34540 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34541 | ac_status=$? |
32ddf007 VS |
34542 | grep -v '^ *+' conftest.er1 >conftest.err |
34543 | rm -f conftest.er1 | |
34544 | cat conftest.err >&5 | |
e6cc62c6 VS |
34545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34546 | (exit $ac_status); } && | |
32ddf007 VS |
34547 | { ac_try='test -z "$ac_c_werror_flag" |
34548 | || test ! -s conftest.err' | |
34549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34550 | (eval $ac_try) 2>&5 | |
34551 | ac_status=$? | |
34552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34553 | (exit $ac_status); }; } && | |
34554 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34556 | (eval $ac_try) 2>&5 | |
34557 | ac_status=$? | |
34558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34559 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
34560 | echo "*** The test program compiled, but did not run. This usually means" |
34561 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34562 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34563 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34564 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34565 | echo "*** is required on your system" | |
34566 | echo "***" | |
34567 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34568 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
e6cc62c6 VS |
34569 | else |
34570 | echo "$as_me: failed program was:" >&5 | |
34571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34572 | ||
f93ca9fd VS |
34573 | echo "*** The test program failed to compile or link. See the file config.log for the" |
34574 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34575 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34576 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
e6cc62c6 | 34577 | fi |
32ddf007 VS |
34578 | rm -f conftest.err conftest.$ac_objext \ |
34579 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34580 | CFLAGS="$ac_save_CFLAGS" |
34581 | LIBS="$ac_save_LIBS" | |
34582 | fi | |
34583 | fi | |
34584 | SDL_CFLAGS="" | |
34585 | SDL_LIBS="" | |
34586 | wxUSE_LIBSDL="no" | |
34587 | fi | |
34588 | ||
34589 | ||
34590 | rm -f conf.sdltest | |
34591 | ||
34592 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34593 | WITH_PLUGIN_SDL=1 | |
34594 | fi | |
34595 | fi | |
34596 | fi | |
34597 | ||
34598 | cat >>confdefs.h <<\_ACEOF | |
002ed9af | 34599 | #define wxUSE_SOUND 1 |
f93ca9fd VS |
34600 | _ACEOF |
34601 | ||
34602 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
e6cc62c6 | 34603 | fi |
afc31813 | 34604 | |
f93ca9fd VS |
34605 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34606 | cat >>confdefs.h <<\_ACEOF | |
34607 | #define wxUSE_CMDLINE_PARSER 1 | |
34608 | _ACEOF | |
34609 | ||
34610 | fi | |
e6cc62c6 | 34611 | |
f93ca9fd VS |
34612 | if test "$wxUSE_STOPWATCH" = "yes"; then |
34613 | cat >>confdefs.h <<\_ACEOF | |
34614 | #define wxUSE_STOPWATCH 1 | |
34615 | _ACEOF | |
e6cc62c6 | 34616 | |
6232543b | 34617 | fi |
b089607b | 34618 | |
f93ca9fd VS |
34619 | if test "$wxUSE_DATETIME" = "yes"; then |
34620 | cat >>confdefs.h <<\_ACEOF | |
34621 | #define wxUSE_DATETIME 1 | |
34622 | _ACEOF | |
e6cc62c6 | 34623 | |
f93ca9fd VS |
34624 | fi |
34625 | ||
34626 | if test "$wxUSE_FILE" = "yes"; then | |
34627 | cat >>confdefs.h <<\_ACEOF | |
34628 | #define wxUSE_FILE 1 | |
34629 | _ACEOF | |
0e012a93 | 34630 | |
1e487827 | 34631 | fi |
afc31813 | 34632 | |
f93ca9fd VS |
34633 | if test "$wxUSE_FFILE" = "yes"; then |
34634 | cat >>confdefs.h <<\_ACEOF | |
34635 | #define wxUSE_FFILE 1 | |
34636 | _ACEOF | |
34637 | ||
34638 | fi | |
34639 | ||
34640 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34641 | cat >>confdefs.h <<\_ACEOF | |
34642 | #define wxUSE_FILESYSTEM 1 | |
34643 | _ACEOF | |
34644 | ||
34645 | fi | |
34646 | ||
34647 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34648 | cat >>confdefs.h <<\_ACEOF | |
34649 | #define wxUSE_FS_ZIP 1 | |
34650 | _ACEOF | |
34651 | ||
34652 | fi | |
34653 | ||
34654 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34655 | cat >>confdefs.h <<\_ACEOF | |
34656 | #define wxUSE_ZIPSTREAM 1 | |
34657 | _ACEOF | |
34658 | ||
34659 | fi | |
34660 | ||
34661 | if test "$wxUSE_GZSTREAM" = "yes"; then | |
34662 | cat >>confdefs.h <<\_ACEOF | |
34663 | #define wxUSE_GZSTREAM 1 | |
34664 | _ACEOF | |
34665 | ||
34666 | fi | |
34667 | ||
34668 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34669 | cat >>confdefs.h <<\_ACEOF | |
34670 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34671 | _ACEOF | |
34672 | ||
34673 | fi | |
34674 | ||
34675 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34676 | cat >>confdefs.h <<\_ACEOF | |
34677 | #define wxUSE_SNGLINST_CHECKER 1 | |
34678 | _ACEOF | |
34679 | ||
34680 | fi | |
34681 | ||
34682 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34683 | cat >>confdefs.h <<\_ACEOF | |
34684 | #define wxUSE_BUSYINFO 1 | |
34685 | _ACEOF | |
34686 | ||
34687 | fi | |
34688 | ||
34689 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34690 | cat >>confdefs.h <<\_ACEOF | |
34691 | #define wxUSE_STD_IOSTREAM 1 | |
34692 | _ACEOF | |
34693 | ||
34694 | fi | |
34695 | ||
34696 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34697 | cat >>confdefs.h <<\_ACEOF | |
34698 | #define wxUSE_TEXTBUFFER 1 | |
34699 | _ACEOF | |
34700 | ||
34701 | fi | |
34702 | ||
34703 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34704 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34705 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34706 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34707 | else | |
34708 | cat >>confdefs.h <<\_ACEOF | |
34709 | #define wxUSE_TEXTFILE 1 | |
34710 | _ACEOF | |
34711 | ||
34712 | fi | |
34713 | fi | |
34714 | ||
34715 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34716 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34717 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34718 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34719 | else | |
34720 | cat >>confdefs.h <<\_ACEOF | |
34721 | #define wxUSE_CONFIG 1 | |
34722 | _ACEOF | |
34723 | ||
34724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34725 | fi | |
34726 | fi | |
34727 | ||
34728 | if test "$wxUSE_INTL" = "yes" ; then | |
34729 | if test "$wxUSE_FILE" != "yes"; then | |
34730 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34731 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34732 | else | |
34733 | cat >>confdefs.h <<\_ACEOF | |
34734 | #define wxUSE_INTL 1 | |
34735 | _ACEOF | |
34736 | ||
34737 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34738 | GUIDIST="$GUIDIST INTL_DIST" | |
34739 | fi | |
34740 | fi | |
34741 | ||
34742 | if test "$wxUSE_LOG" = "yes"; then | |
34743 | cat >>confdefs.h <<\_ACEOF | |
34744 | #define wxUSE_LOG 1 | |
34745 | _ACEOF | |
34746 | ||
34747 | ||
34748 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34749 | cat >>confdefs.h <<\_ACEOF | |
34750 | #define wxUSE_LOGGUI 1 | |
34751 | _ACEOF | |
34752 | ||
34753 | fi | |
34754 | ||
34755 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34756 | cat >>confdefs.h <<\_ACEOF | |
34757 | #define wxUSE_LOGWINDOW 1 | |
34758 | _ACEOF | |
34759 | ||
34760 | fi | |
34761 | ||
34762 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34763 | cat >>confdefs.h <<\_ACEOF | |
34764 | #define wxUSE_LOG_DIALOG 1 | |
34765 | _ACEOF | |
34766 | ||
3a922bb4 | 34767 | fi |
0feee163 | 34768 | fi |
51a9faba | 34769 | |
f93ca9fd VS |
34770 | if test "$wxUSE_LONGLONG" = "yes"; then |
34771 | cat >>confdefs.h <<\_ACEOF | |
34772 | #define wxUSE_LONGLONG 1 | |
34773 | _ACEOF | |
e6cc62c6 | 34774 | |
f93ca9fd VS |
34775 | fi |
34776 | ||
34777 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34778 | cat >>confdefs.h <<\_ACEOF | |
34779 | #define wxUSE_GEOMETRY 1 | |
e6cc62c6 | 34780 | _ACEOF |
51a9faba | 34781 | |
f93ca9fd | 34782 | fi |
e6cc62c6 | 34783 | |
f93ca9fd VS |
34784 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
34785 | cat >>confdefs.h <<\_ACEOF | |
34786 | #define wxUSE_DIALUP_MANAGER 1 | |
34787 | _ACEOF | |
51a9faba | 34788 | |
f93ca9fd VS |
34789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
34790 | fi | |
e6cc62c6 | 34791 | |
f93ca9fd VS |
34792 | if test "$wxUSE_STREAMS" = "yes" ; then |
34793 | cat >>confdefs.h <<\_ACEOF | |
34794 | #define wxUSE_STREAMS 1 | |
e6cc62c6 | 34795 | _ACEOF |
e6cc62c6 | 34796 | |
f93ca9fd | 34797 | fi |
e6cc62c6 | 34798 | |
9711d31e | 34799 | |
f93ca9fd VS |
34800 | if test "$wxUSE_DATETIME" = "yes"; then |
34801 | ||
34802 | for ac_func in strptime | |
34803 | do | |
34804 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34805 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34806 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34807 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34809 | else | |
34810 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34811 | /* confdefs.h. */ |
34812 | _ACEOF | |
34813 | cat confdefs.h >>conftest.$ac_ext | |
34814 | cat >>conftest.$ac_ext <<_ACEOF | |
34815 | /* end confdefs.h. */ | |
32ddf007 VS |
34816 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34817 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34818 | #define $ac_func innocuous_$ac_func | |
34819 | ||
f93ca9fd VS |
34820 | /* System header to define __stub macros and hopefully few prototypes, |
34821 | which can conflict with char $ac_func (); below. | |
34822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34823 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 34824 | |
f93ca9fd VS |
34825 | #ifdef __STDC__ |
34826 | # include <limits.h> | |
34827 | #else | |
34828 | # include <assert.h> | |
34829 | #endif | |
32ddf007 VS |
34830 | |
34831 | #undef $ac_func | |
34832 | ||
f93ca9fd VS |
34833 | /* Override any gcc2 internal prototype to avoid an error. */ |
34834 | #ifdef __cplusplus | |
34835 | extern "C" | |
34836 | { | |
34837 | #endif | |
34838 | /* We use char because int might match the return type of a gcc2 | |
34839 | builtin and then its argument prototype would still apply. */ | |
34840 | char $ac_func (); | |
34841 | /* The GNU C library defines this for functions which it implements | |
34842 | to always fail with ENOSYS. Some functions are actually named | |
34843 | something starting with __ and the normal name is an alias. */ | |
34844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34845 | choke me | |
34846 | #else | |
34847 | char (*f) () = $ac_func; | |
34848 | #endif | |
34849 | #ifdef __cplusplus | |
34850 | } | |
34851 | #endif | |
e6cc62c6 VS |
34852 | |
34853 | int | |
34854 | main () | |
34855 | { | |
f93ca9fd | 34856 | return f != $ac_func; |
e6cc62c6 VS |
34857 | ; |
34858 | return 0; | |
34859 | } | |
34860 | _ACEOF | |
f93ca9fd VS |
34861 | rm -f conftest.$ac_objext conftest$ac_exeext |
34862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 34863 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 34864 | ac_status=$? |
32ddf007 VS |
34865 | grep -v '^ *+' conftest.er1 >conftest.err |
34866 | rm -f conftest.er1 | |
34867 | cat conftest.err >&5 | |
e6cc62c6 VS |
34868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34869 | (exit $ac_status); } && | |
32ddf007 VS |
34870 | { ac_try='test -z "$ac_c_werror_flag" |
34871 | || test ! -s conftest.err' | |
34872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34873 | (eval $ac_try) 2>&5 | |
34874 | ac_status=$? | |
34875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34876 | (exit $ac_status); }; } && | |
34877 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
34878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34879 | (eval $ac_try) 2>&5 | |
34880 | ac_status=$? | |
34881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34882 | (exit $ac_status); }; }; then | |
f93ca9fd | 34883 | eval "$as_ac_var=yes" |
afc31813 | 34884 | else |
e6cc62c6 VS |
34885 | echo "$as_me: failed program was:" >&5 |
34886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34887 | ||
f93ca9fd VS |
34888 | eval "$as_ac_var=no" |
34889 | fi | |
32ddf007 VS |
34890 | rm -f conftest.err conftest.$ac_objext \ |
34891 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
34892 | fi |
34893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34896 | cat >>confdefs.h <<_ACEOF | |
34897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34898 | _ACEOF | |
34899 | ||
34900 | fi | |
34901 | done | |
34902 | ||
34903 | ||
34904 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34905 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34906 | if test "${wx_cv_var_timezone+set}" = set; then | |
34907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34908 | else | |
34909 | ||
34910 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
34911 | /* confdefs.h. */ |
34912 | _ACEOF | |
34913 | cat confdefs.h >>conftest.$ac_ext | |
34914 | cat >>conftest.$ac_ext <<_ACEOF | |
34915 | /* end confdefs.h. */ | |
51a9faba | 34916 | |
f93ca9fd | 34917 | #include <time.h> |
e6cc62c6 VS |
34918 | |
34919 | int | |
34920 | main () | |
34921 | { | |
51a9faba | 34922 | |
f93ca9fd VS |
34923 | int tz; |
34924 | tz = timezone; | |
e6cc62c6 VS |
34925 | |
34926 | ; | |
34927 | return 0; | |
34928 | } | |
34929 | _ACEOF | |
34930 | rm -f conftest.$ac_objext | |
34931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34932 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34933 | ac_status=$? |
32ddf007 VS |
34934 | grep -v '^ *+' conftest.er1 >conftest.err |
34935 | rm -f conftest.er1 | |
34936 | cat conftest.err >&5 | |
e6cc62c6 VS |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34938 | (exit $ac_status); } && | |
32ddf007 VS |
34939 | { ac_try='test -z "$ac_c_werror_flag" |
34940 | || test ! -s conftest.err' | |
34941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34942 | (eval $ac_try) 2>&5 | |
34943 | ac_status=$? | |
34944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34945 | (exit $ac_status); }; } && | |
34946 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
34947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34948 | (eval $ac_try) 2>&5 | |
34949 | ac_status=$? | |
34950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34951 | (exit $ac_status); }; }; then | |
8284b0c5 | 34952 | |
f93ca9fd | 34953 | wx_cv_var_timezone=timezone |
dc3d889d | 34954 | |
f93ca9fd VS |
34955 | else |
34956 | echo "$as_me: failed program was:" >&5 | |
34957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
156b2523 | 34958 | |
e6cc62c6 | 34959 | |
f93ca9fd | 34960 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
34961 | /* confdefs.h. */ |
34962 | _ACEOF | |
34963 | cat confdefs.h >>conftest.$ac_ext | |
34964 | cat >>conftest.$ac_ext <<_ACEOF | |
34965 | /* end confdefs.h. */ | |
f93ca9fd VS |
34966 | |
34967 | #include <time.h> | |
34968 | ||
34969 | int | |
34970 | main () | |
34971 | { | |
34972 | ||
34973 | int tz; | |
34974 | tz = _timezone; | |
34975 | ||
34976 | ; | |
34977 | return 0; | |
34978 | } | |
e6cc62c6 VS |
34979 | _ACEOF |
34980 | rm -f conftest.$ac_objext | |
34981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 34982 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 34983 | ac_status=$? |
32ddf007 VS |
34984 | grep -v '^ *+' conftest.er1 >conftest.err |
34985 | rm -f conftest.er1 | |
34986 | cat conftest.err >&5 | |
e6cc62c6 VS |
34987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34988 | (exit $ac_status); } && | |
32ddf007 VS |
34989 | { ac_try='test -z "$ac_c_werror_flag" |
34990 | || test ! -s conftest.err' | |
34991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34992 | (eval $ac_try) 2>&5 | |
34993 | ac_status=$? | |
34994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34995 | (exit $ac_status); }; } && | |
34996 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
34997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34998 | (eval $ac_try) 2>&5 | |
34999 | ac_status=$? | |
35000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35001 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
35002 | |
35003 | wx_cv_var_timezone=_timezone | |
35004 | ||
e6cc62c6 VS |
35005 | else |
35006 | echo "$as_me: failed program was:" >&5 | |
35007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35008 | ||
e6cc62c6 | 35009 | |
f93ca9fd | 35010 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35011 | /* confdefs.h. */ |
35012 | _ACEOF | |
35013 | cat confdefs.h >>conftest.$ac_ext | |
35014 | cat >>conftest.$ac_ext <<_ACEOF | |
35015 | /* end confdefs.h. */ | |
f93ca9fd VS |
35016 | |
35017 | #include <time.h> | |
35018 | ||
35019 | int | |
35020 | main () | |
35021 | { | |
35022 | ||
35023 | int tz; | |
35024 | tz = __timezone; | |
35025 | ||
35026 | ; | |
35027 | return 0; | |
35028 | } | |
e6cc62c6 | 35029 | _ACEOF |
f93ca9fd VS |
35030 | rm -f conftest.$ac_objext |
35031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35032 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35033 | ac_status=$? |
32ddf007 VS |
35034 | grep -v '^ *+' conftest.er1 >conftest.err |
35035 | rm -f conftest.er1 | |
35036 | cat conftest.err >&5 | |
e6cc62c6 | 35037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f93ca9fd | 35038 | (exit $ac_status); } && |
32ddf007 VS |
35039 | { ac_try='test -z "$ac_c_werror_flag" |
35040 | || test ! -s conftest.err' | |
35041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35042 | (eval $ac_try) 2>&5 | |
35043 | ac_status=$? | |
35044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35045 | (exit $ac_status); }; } && | |
35046 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35048 | (eval $ac_try) 2>&5 | |
35049 | ac_status=$? | |
35050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35051 | (exit $ac_status); }; }; then | |
35052 | ||
35053 | wx_cv_var_timezone=__timezone | |
35054 | ||
e6cc62c6 VS |
35055 | else |
35056 | echo "$as_me: failed program was:" >&5 | |
35057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35058 | ||
e6cc62c6 | 35059 | |
f93ca9fd VS |
35060 | if test "$USE_DOS" = 0 ; then |
35061 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
35062 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
35063 | fi | |
35064 | ||
e6cc62c6 | 35065 | |
10f2d63a | 35066 | fi |
32ddf007 | 35067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 35068 | |
e6cc62c6 | 35069 | |
247f5006 | 35070 | fi |
32ddf007 | 35071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 35072 | |
10f2d63a | 35073 | |
f93ca9fd | 35074 | fi |
32ddf007 | 35075 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b089607b | 35076 | |
10f2d63a | 35077 | |
dc3d889d | 35078 | fi |
f93ca9fd VS |
35079 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 |
35080 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
dc3d889d | 35081 | |
f93ca9fd VS |
35082 | if test "x$wx_cv_var_timezone" != x ; then |
35083 | cat >>confdefs.h <<_ACEOF | |
35084 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35085 | _ACEOF | |
8284b0c5 | 35086 | |
f93ca9fd | 35087 | fi |
b089607b | 35088 | |
e6cc62c6 | 35089 | |
f93ca9fd | 35090 | for ac_func in localtime |
10f2d63a | 35091 | do |
e6cc62c6 VS |
35092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35093 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35095 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35097 | else | |
35098 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35099 | /* confdefs.h. */ |
35100 | _ACEOF | |
35101 | cat confdefs.h >>conftest.$ac_ext | |
35102 | cat >>conftest.$ac_ext <<_ACEOF | |
35103 | /* end confdefs.h. */ | |
32ddf007 VS |
35104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35106 | #define $ac_func innocuous_$ac_func | |
35107 | ||
10f2d63a | 35108 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
35109 | which can conflict with char $ac_func (); below. |
35110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35111 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35112 | |
e6cc62c6 VS |
35113 | #ifdef __STDC__ |
35114 | # include <limits.h> | |
35115 | #else | |
35116 | # include <assert.h> | |
35117 | #endif | |
32ddf007 VS |
35118 | |
35119 | #undef $ac_func | |
35120 | ||
10f2d63a | 35121 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35122 | #ifdef __cplusplus |
35123 | extern "C" | |
35124 | { | |
35125 | #endif | |
10f2d63a | 35126 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
35127 | builtin and then its argument prototype would still apply. */ |
35128 | char $ac_func (); | |
10f2d63a VZ |
35129 | /* The GNU C library defines this for functions which it implements |
35130 | to always fail with ENOSYS. Some functions are actually named | |
35131 | something starting with __ and the normal name is an alias. */ | |
35132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35133 | choke me | |
35134 | #else | |
e6cc62c6 VS |
35135 | char (*f) () = $ac_func; |
35136 | #endif | |
35137 | #ifdef __cplusplus | |
35138 | } | |
10f2d63a VZ |
35139 | #endif |
35140 | ||
e6cc62c6 VS |
35141 | int |
35142 | main () | |
35143 | { | |
35144 | return f != $ac_func; | |
35145 | ; | |
35146 | return 0; | |
35147 | } | |
35148 | _ACEOF | |
35149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35151 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35152 | ac_status=$? |
32ddf007 VS |
35153 | grep -v '^ *+' conftest.er1 >conftest.err |
35154 | rm -f conftest.er1 | |
35155 | cat conftest.err >&5 | |
e6cc62c6 VS |
35156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35157 | (exit $ac_status); } && | |
32ddf007 VS |
35158 | { ac_try='test -z "$ac_c_werror_flag" |
35159 | || test ! -s conftest.err' | |
35160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35161 | (eval $ac_try) 2>&5 | |
35162 | ac_status=$? | |
35163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35164 | (exit $ac_status); }; } && | |
35165 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35167 | (eval $ac_try) 2>&5 | |
35168 | ac_status=$? | |
35169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35170 | (exit $ac_status); }; }; then | |
35171 | eval "$as_ac_var=yes" | |
35172 | else | |
35173 | echo "$as_me: failed program was:" >&5 | |
35174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35175 | ||
35176 | eval "$as_ac_var=no" | |
35177 | fi | |
32ddf007 VS |
35178 | rm -f conftest.err conftest.$ac_objext \ |
35179 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35180 | fi |
35181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35184 | cat >>confdefs.h <<_ACEOF | |
35185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35186 | _ACEOF | |
35187 | ||
f93ca9fd VS |
35188 | fi |
35189 | done | |
e6cc62c6 | 35190 | |
e6cc62c6 | 35191 | |
f93ca9fd VS |
35192 | if test "$ac_cv_func_localtime" = "yes"; then |
35193 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
35194 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
35195 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
e6cc62c6 | 35196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10f2d63a | 35197 | else |
f93ca9fd VS |
35198 | |
35199 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35200 | /* confdefs.h. */ |
35201 | _ACEOF | |
35202 | cat confdefs.h >>conftest.$ac_ext | |
35203 | cat >>conftest.$ac_ext <<_ACEOF | |
35204 | /* end confdefs.h. */ | |
35205 | ||
f93ca9fd VS |
35206 | #include <time.h> |
35207 | ||
e6cc62c6 VS |
35208 | int |
35209 | main () | |
35210 | { | |
f93ca9fd VS |
35211 | |
35212 | struct tm tm; | |
35213 | tm.tm_gmtoff++; | |
35214 | ||
e6cc62c6 VS |
35215 | ; |
35216 | return 0; | |
35217 | } | |
35218 | _ACEOF | |
f93ca9fd VS |
35219 | rm -f conftest.$ac_objext |
35220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35221 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35222 | ac_status=$? |
32ddf007 VS |
35223 | grep -v '^ *+' conftest.er1 >conftest.err |
35224 | rm -f conftest.er1 | |
35225 | cat conftest.err >&5 | |
e6cc62c6 VS |
35226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35227 | (exit $ac_status); } && | |
32ddf007 VS |
35228 | { ac_try='test -z "$ac_c_werror_flag" |
35229 | || test ! -s conftest.err' | |
35230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35231 | (eval $ac_try) 2>&5 | |
35232 | ac_status=$? | |
35233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35234 | (exit $ac_status); }; } && | |
35235 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35237 | (eval $ac_try) 2>&5 | |
35238 | ac_status=$? | |
35239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35240 | (exit $ac_status); }; }; then | |
f93ca9fd VS |
35241 | |
35242 | wx_cv_struct_tm_has_gmtoff=yes | |
35243 | ||
e6cc62c6 VS |
35244 | else |
35245 | echo "$as_me: failed program was:" >&5 | |
35246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35247 | ||
f93ca9fd VS |
35248 | wx_cv_struct_tm_has_gmtoff=no |
35249 | ||
e6cc62c6 | 35250 | fi |
32ddf007 | 35251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd | 35252 | |
e6cc62c6 | 35253 | fi |
f93ca9fd VS |
35254 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
35255 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35256 | fi | |
e6cc62c6 | 35257 | |
f93ca9fd VS |
35258 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then |
35259 | cat >>confdefs.h <<\_ACEOF | |
35260 | #define WX_GMTOFF_IN_TM 1 | |
e6cc62c6 | 35261 | _ACEOF |
10f2d63a | 35262 | |
f93ca9fd | 35263 | fi |
e6cc62c6 | 35264 | |
10f2d63a | 35265 | |
e6cc62c6 | 35266 | |
f93ca9fd | 35267 | for ac_func in gettimeofday ftime |
10f2d63a | 35268 | do |
e6cc62c6 VS |
35269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
35270 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35272 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35274 | else | |
35275 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35276 | /* confdefs.h. */ |
35277 | _ACEOF | |
35278 | cat confdefs.h >>conftest.$ac_ext | |
35279 | cat >>conftest.$ac_ext <<_ACEOF | |
35280 | /* end confdefs.h. */ | |
32ddf007 VS |
35281 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35283 | #define $ac_func innocuous_$ac_func | |
35284 | ||
10f2d63a | 35285 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
35286 | which can conflict with char $ac_func (); below. |
35287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35288 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35289 | |
e6cc62c6 VS |
35290 | #ifdef __STDC__ |
35291 | # include <limits.h> | |
35292 | #else | |
35293 | # include <assert.h> | |
35294 | #endif | |
32ddf007 VS |
35295 | |
35296 | #undef $ac_func | |
35297 | ||
10f2d63a | 35298 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35299 | #ifdef __cplusplus |
35300 | extern "C" | |
35301 | { | |
35302 | #endif | |
10f2d63a | 35303 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
35304 | builtin and then its argument prototype would still apply. */ |
35305 | char $ac_func (); | |
10f2d63a VZ |
35306 | /* The GNU C library defines this for functions which it implements |
35307 | to always fail with ENOSYS. Some functions are actually named | |
35308 | something starting with __ and the normal name is an alias. */ | |
35309 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35310 | choke me | |
35311 | #else | |
e6cc62c6 VS |
35312 | char (*f) () = $ac_func; |
35313 | #endif | |
35314 | #ifdef __cplusplus | |
35315 | } | |
10f2d63a VZ |
35316 | #endif |
35317 | ||
e6cc62c6 VS |
35318 | int |
35319 | main () | |
35320 | { | |
35321 | return f != $ac_func; | |
35322 | ; | |
35323 | return 0; | |
35324 | } | |
35325 | _ACEOF | |
35326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35328 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35329 | ac_status=$? |
32ddf007 VS |
35330 | grep -v '^ *+' conftest.er1 >conftest.err |
35331 | rm -f conftest.er1 | |
35332 | cat conftest.err >&5 | |
e6cc62c6 VS |
35333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35334 | (exit $ac_status); } && | |
32ddf007 VS |
35335 | { ac_try='test -z "$ac_c_werror_flag" |
35336 | || test ! -s conftest.err' | |
35337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35338 | (eval $ac_try) 2>&5 | |
35339 | ac_status=$? | |
35340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35341 | (exit $ac_status); }; } && | |
35342 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35344 | (eval $ac_try) 2>&5 | |
35345 | ac_status=$? | |
35346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35347 | (exit $ac_status); }; }; then | |
35348 | eval "$as_ac_var=yes" | |
35349 | else | |
35350 | echo "$as_me: failed program was:" >&5 | |
35351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35352 | ||
35353 | eval "$as_ac_var=no" | |
35354 | fi | |
32ddf007 VS |
35355 | rm -f conftest.err conftest.$ac_objext \ |
35356 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
35357 | fi |
35358 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35359 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35360 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35361 | cat >>confdefs.h <<_ACEOF | |
35362 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35363 | _ACEOF | |
f93ca9fd VS |
35364 | break |
35365 | fi | |
35366 | done | |
e6cc62c6 | 35367 | |
f93ca9fd VS |
35368 | |
35369 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35370 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35371 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35372 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35374 | else | |
35375 | ||
35376 | ||
35377 | ||
35378 | ac_ext=cc | |
35379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35380 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35381 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35382 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35383 | ||
35384 | ||
35385 | cat >conftest.$ac_ext <<_ACEOF | |
35386 | /* confdefs.h. */ | |
e6cc62c6 | 35387 | _ACEOF |
f93ca9fd VS |
35388 | cat confdefs.h >>conftest.$ac_ext |
35389 | cat >>conftest.$ac_ext <<_ACEOF | |
35390 | /* end confdefs.h. */ | |
10f2d63a | 35391 | |
f93ca9fd VS |
35392 | #include <sys/time.h> |
35393 | #include <unistd.h> | |
e6cc62c6 | 35394 | |
f93ca9fd VS |
35395 | int |
35396 | main () | |
35397 | { | |
e6cc62c6 | 35398 | |
f93ca9fd VS |
35399 | struct timeval tv; |
35400 | gettimeofday(&tv, NULL); | |
35401 | ||
35402 | ; | |
35403 | return 0; | |
35404 | } | |
35405 | _ACEOF | |
35406 | rm -f conftest.$ac_objext | |
35407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35408 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35409 | ac_status=$? |
32ddf007 VS |
35410 | grep -v '^ *+' conftest.er1 >conftest.err |
35411 | rm -f conftest.er1 | |
35412 | cat conftest.err >&5 | |
f93ca9fd VS |
35413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35414 | (exit $ac_status); } && | |
32ddf007 VS |
35415 | { ac_try='test -z "$ac_cxx_werror_flag" |
35416 | || test ! -s conftest.err' | |
35417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35418 | (eval $ac_try) 2>&5 | |
35419 | ac_status=$? | |
35420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35421 | (exit $ac_status); }; } && | |
35422 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35424 | (eval $ac_try) 2>&5 | |
35425 | ac_status=$? | |
35426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35427 | (exit $ac_status); }; }; then | |
35428 | wx_cv_func_gettimeofday_has_2_args=yes | |
f6bcfd97 | 35429 | else |
f93ca9fd VS |
35430 | echo "$as_me: failed program was:" >&5 |
35431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35432 | ||
e6cc62c6 | 35433 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35434 | /* confdefs.h. */ |
35435 | _ACEOF | |
35436 | cat confdefs.h >>conftest.$ac_ext | |
35437 | cat >>conftest.$ac_ext <<_ACEOF | |
35438 | /* end confdefs.h. */ | |
35439 | ||
f93ca9fd VS |
35440 | #include <sys/time.h> |
35441 | #include <unistd.h> | |
35442 | ||
e6cc62c6 VS |
35443 | int |
35444 | main () | |
35445 | { | |
f93ca9fd VS |
35446 | |
35447 | struct timeval tv; | |
35448 | gettimeofday(&tv); | |
35449 | ||
e6cc62c6 VS |
35450 | ; |
35451 | return 0; | |
35452 | } | |
35453 | _ACEOF | |
f93ca9fd VS |
35454 | rm -f conftest.$ac_objext |
35455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35456 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35457 | ac_status=$? |
32ddf007 VS |
35458 | grep -v '^ *+' conftest.er1 >conftest.err |
35459 | rm -f conftest.er1 | |
35460 | cat conftest.err >&5 | |
e6cc62c6 VS |
35461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35462 | (exit $ac_status); } && | |
32ddf007 VS |
35463 | { ac_try='test -z "$ac_cxx_werror_flag" |
35464 | || test ! -s conftest.err' | |
35465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35466 | (eval $ac_try) 2>&5 | |
35467 | ac_status=$? | |
35468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35469 | (exit $ac_status); }; } && | |
35470 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35472 | (eval $ac_try) 2>&5 | |
35473 | ac_status=$? | |
35474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35475 | (exit $ac_status); }; }; then | |
f93ca9fd | 35476 | wx_cv_func_gettimeofday_has_2_args=no |
e6cc62c6 VS |
35477 | else |
35478 | echo "$as_me: failed program was:" >&5 | |
35479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35480 | ||
f6bcfd97 | 35481 | |
f93ca9fd VS |
35482 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
35483 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35484 | wx_cv_func_gettimeofday_has_2_args=unknown | |
e6cc62c6 | 35485 | |
f6bcfd97 | 35486 | |
f93ca9fd | 35487 | fi |
32ddf007 | 35488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 35489 | |
10f2d63a | 35490 | fi |
32ddf007 | 35491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
35492 | ac_ext=c |
35493 | ac_cpp='$CPP $CPPFLAGS' | |
35494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 35497 | |
e6cc62c6 | 35498 | |
10f2d63a | 35499 | fi |
f93ca9fd VS |
35500 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
35501 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35502 | ||
35503 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35504 | cat >>confdefs.h <<\_ACEOF | |
35505 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35506 | _ACEOF | |
10f2d63a | 35507 | |
f93ca9fd VS |
35508 | fi |
35509 | fi | |
e6cc62c6 | 35510 | |
f93ca9fd | 35511 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
10f2d63a | 35512 | fi |
10f2d63a | 35513 | |
5c6fa7d2 | 35514 | |
f93ca9fd VS |
35515 | if test "$wxUSE_SOCKETS" = "yes"; then |
35516 | if test "$wxUSE_MGL" = "1"; then | |
35517 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35518 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35519 | wxUSE_SOCKETS="no" | |
35520 | fi | |
35521 | fi | |
e6cc62c6 | 35522 | |
f93ca9fd VS |
35523 | if test "$wxUSE_SOCKETS" = "yes"; then |
35524 | if test "$TOOLKIT" != "MSW"; then | |
35525 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35526 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35527 | if test "${ac_cv_func_socket+set}" = set; then | |
e6cc62c6 VS |
35528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
35529 | else | |
35530 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
35531 | /* confdefs.h. */ |
35532 | _ACEOF | |
35533 | cat confdefs.h >>conftest.$ac_ext | |
35534 | cat >>conftest.$ac_ext <<_ACEOF | |
35535 | /* end confdefs.h. */ | |
32ddf007 VS |
35536 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35537 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35538 | #define socket innocuous_socket | |
35539 | ||
f6bcfd97 | 35540 | /* System header to define __stub macros and hopefully few prototypes, |
f93ca9fd | 35541 | which can conflict with char socket (); below. |
e6cc62c6 VS |
35542 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
35543 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 35544 | |
e6cc62c6 VS |
35545 | #ifdef __STDC__ |
35546 | # include <limits.h> | |
35547 | #else | |
35548 | # include <assert.h> | |
35549 | #endif | |
32ddf007 VS |
35550 | |
35551 | #undef socket | |
35552 | ||
f6bcfd97 | 35553 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
35554 | #ifdef __cplusplus |
35555 | extern "C" | |
35556 | { | |
35557 | #endif | |
f6bcfd97 | 35558 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 35559 | builtin and then its argument prototype would still apply. */ |
f93ca9fd | 35560 | char socket (); |
f6bcfd97 BP |
35561 | /* The GNU C library defines this for functions which it implements |
35562 | to always fail with ENOSYS. Some functions are actually named | |
35563 | something starting with __ and the normal name is an alias. */ | |
f93ca9fd | 35564 | #if defined (__stub_socket) || defined (__stub___socket) |
f6bcfd97 BP |
35565 | choke me |
35566 | #else | |
f93ca9fd | 35567 | char (*f) () = socket; |
e6cc62c6 VS |
35568 | #endif |
35569 | #ifdef __cplusplus | |
35570 | } | |
f6bcfd97 BP |
35571 | #endif |
35572 | ||
e6cc62c6 VS |
35573 | int |
35574 | main () | |
35575 | { | |
f93ca9fd VS |
35576 | return f != socket; |
35577 | ; | |
35578 | return 0; | |
35579 | } | |
35580 | _ACEOF | |
35581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35583 | (eval $ac_link) 2>conftest.er1 |
f93ca9fd | 35584 | ac_status=$? |
32ddf007 VS |
35585 | grep -v '^ *+' conftest.er1 >conftest.err |
35586 | rm -f conftest.er1 | |
35587 | cat conftest.err >&5 | |
f93ca9fd VS |
35588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35589 | (exit $ac_status); } && | |
32ddf007 VS |
35590 | { ac_try='test -z "$ac_c_werror_flag" |
35591 | || test ! -s conftest.err' | |
35592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35593 | (eval $ac_try) 2>&5 | |
35594 | ac_status=$? | |
35595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35596 | (exit $ac_status); }; } && | |
35597 | { ac_try='test -s conftest$ac_exeext' | |
f93ca9fd VS |
35598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35599 | (eval $ac_try) 2>&5 | |
35600 | ac_status=$? | |
35601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35602 | (exit $ac_status); }; }; then | |
35603 | ac_cv_func_socket=yes | |
35604 | else | |
35605 | echo "$as_me: failed program was:" >&5 | |
35606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35607 | ||
35608 | ac_cv_func_socket=no | |
35609 | fi | |
32ddf007 VS |
35610 | rm -f conftest.err conftest.$ac_objext \ |
35611 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd VS |
35612 | fi |
35613 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35614 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35615 | if test $ac_cv_func_socket = yes; then | |
35616 | : | |
35617 | else | |
35618 | ||
35619 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35620 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35621 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35623 | else | |
35624 | ac_check_lib_save_LIBS=$LIBS | |
35625 | LIBS="-lsocket $LIBS" | |
35626 | cat >conftest.$ac_ext <<_ACEOF | |
35627 | /* confdefs.h. */ | |
35628 | _ACEOF | |
35629 | cat confdefs.h >>conftest.$ac_ext | |
35630 | cat >>conftest.$ac_ext <<_ACEOF | |
35631 | /* end confdefs.h. */ | |
35632 | ||
35633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35634 | #ifdef __cplusplus | |
35635 | extern "C" | |
35636 | #endif | |
35637 | /* We use char because int might match the return type of a gcc2 | |
35638 | builtin and then its argument prototype would still apply. */ | |
35639 | char socket (); | |
35640 | int | |
35641 | main () | |
35642 | { | |
35643 | socket (); | |
e6cc62c6 VS |
35644 | ; |
35645 | return 0; | |
35646 | } | |
35647 | _ACEOF | |
35648 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 35650 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 35651 | ac_status=$? |
32ddf007 VS |
35652 | grep -v '^ *+' conftest.er1 >conftest.err |
35653 | rm -f conftest.er1 | |
35654 | cat conftest.err >&5 | |
e6cc62c6 VS |
35655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35656 | (exit $ac_status); } && | |
32ddf007 VS |
35657 | { ac_try='test -z "$ac_c_werror_flag" |
35658 | || test ! -s conftest.err' | |
35659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35660 | (eval $ac_try) 2>&5 | |
35661 | ac_status=$? | |
35662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35663 | (exit $ac_status); }; } && | |
35664 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
35665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35666 | (eval $ac_try) 2>&5 | |
35667 | ac_status=$? | |
35668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35669 | (exit $ac_status); }; }; then | |
f93ca9fd | 35670 | ac_cv_lib_socket_socket=yes |
e6cc62c6 VS |
35671 | else |
35672 | echo "$as_me: failed program was:" >&5 | |
35673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35674 | ||
f93ca9fd | 35675 | ac_cv_lib_socket_socket=no |
e6cc62c6 | 35676 | fi |
32ddf007 VS |
35677 | rm -f conftest.err conftest.$ac_objext \ |
35678 | conftest$ac_exeext conftest.$ac_ext | |
f93ca9fd | 35679 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 35680 | fi |
f93ca9fd VS |
35681 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
35682 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35683 | if test $ac_cv_lib_socket_socket = yes; then | |
35684 | if test "$INET_LINK" != " -lsocket"; then | |
35685 | INET_LINK="$INET_LINK -lsocket" | |
35686 | fi | |
35687 | else | |
35688 | ||
35689 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35690 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35691 | wxUSE_SOCKETS=no | |
35692 | ||
35693 | ||
35694 | fi | |
35695 | ||
35696 | ||
35697 | ||
35698 | fi | |
35699 | ||
35700 | fi | |
35701 | fi | |
35702 | ||
35703 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35704 | if test "$TOOLKIT" != "MSW"; then | |
35705 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
35706 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
35707 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35709 | else | |
35710 | ||
35711 | cat >conftest.$ac_ext <<_ACEOF | |
35712 | /* confdefs.h. */ | |
e6cc62c6 | 35713 | _ACEOF |
f93ca9fd VS |
35714 | cat confdefs.h >>conftest.$ac_ext |
35715 | cat >>conftest.$ac_ext <<_ACEOF | |
35716 | /* end confdefs.h. */ | |
35717 | ||
35718 | #include <sys/types.h> | |
35719 | #include <sys/socket.h> | |
f6bcfd97 | 35720 | |
f93ca9fd VS |
35721 | int |
35722 | main () | |
35723 | { | |
35724 | ||
35725 | socklen_t len; | |
35726 | getsockname(0, 0, &len); | |
35727 | ||
35728 | ; | |
35729 | return 0; | |
35730 | } | |
35731 | _ACEOF | |
35732 | rm -f conftest.$ac_objext | |
35733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35734 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35735 | ac_status=$? |
32ddf007 VS |
35736 | grep -v '^ *+' conftest.er1 >conftest.err |
35737 | rm -f conftest.er1 | |
35738 | cat conftest.err >&5 | |
f93ca9fd VS |
35739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35740 | (exit $ac_status); } && | |
32ddf007 VS |
35741 | { ac_try='test -z "$ac_c_werror_flag" |
35742 | || test ! -s conftest.err' | |
35743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35744 | (eval $ac_try) 2>&5 | |
35745 | ac_status=$? | |
35746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35747 | (exit $ac_status); }; } && | |
35748 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35750 | (eval $ac_try) 2>&5 | |
35751 | ac_status=$? | |
35752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35753 | (exit $ac_status); }; }; then | |
35754 | wx_cv_type_getsockname3=socklen_t | |
f6bcfd97 | 35755 | else |
f93ca9fd VS |
35756 | echo "$as_me: failed program was:" >&5 |
35757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e012a93 | 35758 | |
f93ca9fd VS |
35759 | |
35760 | CFLAGS_OLD="$CFLAGS" | |
35761 | if test "$GCC" = yes ; then | |
35762 | CFLAGS="$CFLAGS -Werror" | |
35763 | fi | |
35764 | ||
35765 | cat >conftest.$ac_ext <<_ACEOF | |
35766 | /* confdefs.h. */ | |
35767 | _ACEOF | |
35768 | cat confdefs.h >>conftest.$ac_ext | |
35769 | cat >>conftest.$ac_ext <<_ACEOF | |
35770 | /* end confdefs.h. */ | |
35771 | ||
35772 | #include <sys/types.h> | |
35773 | #include <sys/socket.h> | |
35774 | ||
35775 | int | |
35776 | main () | |
35777 | { | |
35778 | ||
35779 | size_t len; | |
35780 | getsockname(0, 0, &len); | |
35781 | ||
35782 | ; | |
35783 | return 0; | |
35784 | } | |
35785 | _ACEOF | |
35786 | rm -f conftest.$ac_objext | |
35787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35788 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 35789 | ac_status=$? |
32ddf007 VS |
35790 | grep -v '^ *+' conftest.er1 >conftest.err |
35791 | rm -f conftest.er1 | |
35792 | cat conftest.err >&5 | |
f93ca9fd VS |
35793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35794 | (exit $ac_status); } && | |
32ddf007 VS |
35795 | { ac_try='test -z "$ac_c_werror_flag" |
35796 | || test ! -s conftest.err' | |
35797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35798 | (eval $ac_try) 2>&5 | |
35799 | ac_status=$? | |
35800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35801 | (exit $ac_status); }; } && | |
35802 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
35803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35804 | (eval $ac_try) 2>&5 | |
35805 | ac_status=$? | |
35806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35807 | (exit $ac_status); }; }; then | |
35808 | wx_cv_type_getsockname3=size_t | |
f6bcfd97 | 35809 | else |
f93ca9fd VS |
35810 | echo "$as_me: failed program was:" >&5 |
35811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35812 | ||
e6cc62c6 | 35813 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
35814 | /* confdefs.h. */ |
35815 | _ACEOF | |
35816 | cat confdefs.h >>conftest.$ac_ext | |
35817 | cat >>conftest.$ac_ext <<_ACEOF | |
35818 | /* end confdefs.h. */ | |
35819 | ||
f93ca9fd VS |
35820 | #include <sys/types.h> |
35821 | #include <sys/socket.h> | |
35822 | ||
e6cc62c6 VS |
35823 | int |
35824 | main () | |
35825 | { | |
f93ca9fd VS |
35826 | |
35827 | int len; | |
35828 | getsockname(0, 0, &len); | |
35829 | ||
e6cc62c6 VS |
35830 | ; |
35831 | return 0; | |
35832 | } | |
35833 | _ACEOF | |
f93ca9fd VS |
35834 | rm -f conftest.$ac_objext |
35835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35836 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 35837 | ac_status=$? |
32ddf007 VS |
35838 | grep -v '^ *+' conftest.er1 >conftest.err |
35839 | rm -f conftest.er1 | |
35840 | cat conftest.err >&5 | |
e6cc62c6 VS |
35841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35842 | (exit $ac_status); } && | |
32ddf007 VS |
35843 | { ac_try='test -z "$ac_c_werror_flag" |
35844 | || test ! -s conftest.err' | |
35845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35846 | (eval $ac_try) 2>&5 | |
35847 | ac_status=$? | |
35848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35849 | (exit $ac_status); }; } && | |
35850 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
35851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35852 | (eval $ac_try) 2>&5 | |
35853 | ac_status=$? | |
35854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35855 | (exit $ac_status); }; }; then | |
f93ca9fd | 35856 | wx_cv_type_getsockname3=int |
e6cc62c6 VS |
35857 | else |
35858 | echo "$as_me: failed program was:" >&5 | |
35859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35860 | ||
f93ca9fd VS |
35861 | wx_cv_type_getsockname3=unknown |
35862 | ||
e6cc62c6 | 35863 | fi |
32ddf007 | 35864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35865 | |
f6bcfd97 | 35866 | fi |
32ddf007 | 35867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35868 | |
f93ca9fd | 35869 | CFLAGS="$CFLAGS_OLD" |
0e012a93 VZ |
35870 | |
35871 | ||
f6bcfd97 | 35872 | fi |
32ddf007 | 35873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f6bcfd97 | 35874 | |
f93ca9fd VS |
35875 | fi |
35876 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35877 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35878 | ||
35879 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35880 | wxUSE_SOCKETS=no | |
35881 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35882 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35883 | else | |
35884 | cat >>confdefs.h <<_ACEOF | |
35885 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35886 | _ACEOF | |
f6bcfd97 | 35887 | |
10f2d63a VZ |
35888 | fi |
35889 | fi | |
35890 | fi | |
35891 | ||
f93ca9fd | 35892 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 35893 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35894 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 35895 | _ACEOF |
0b9ab0bd | 35896 | |
f93ca9fd | 35897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
1948bb32 | 35898 | fi |
f93ca9fd VS |
35899 | |
35900 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35901 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35902 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35903 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35904 | wxUSE_PROTOCOL=no | |
35905 | fi | |
35906 | fi | |
35907 | ||
35908 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 35909 | cat >>confdefs.h <<\_ACEOF |
f93ca9fd | 35910 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 35911 | _ACEOF |
10f2d63a | 35912 | |
f93ca9fd VS |
35913 | |
35914 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35915 | cat >>confdefs.h <<\_ACEOF | |
35916 | #define wxUSE_PROTOCOL_HTTP 1 | |
35917 | _ACEOF | |
35918 | ||
35919 | fi | |
35920 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35921 | cat >>confdefs.h <<\_ACEOF | |
35922 | #define wxUSE_PROTOCOL_FTP 1 | |
35923 | _ACEOF | |
35924 | ||
35925 | fi | |
35926 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35927 | cat >>confdefs.h <<\_ACEOF | |
35928 | #define wxUSE_PROTOCOL_FILE 1 | |
35929 | _ACEOF | |
35930 | ||
35931 | fi | |
35932 | else | |
35933 | if test "$wxUSE_FS_INET" = "yes"; then | |
35934 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35935 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35936 | wxUSE_FS_INET="no" | |
35937 | fi | |
10f2d63a VZ |
35938 | fi |
35939 | ||
f93ca9fd VS |
35940 | if test "$wxUSE_URL" = "yes"; then |
35941 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35942 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35943 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35944 | wxUSE_URL=no | |
35945 | fi | |
35946 | if test "$wxUSE_URL" = "yes"; then | |
35947 | cat >>confdefs.h <<\_ACEOF | |
35948 | #define wxUSE_URL 1 | |
35949 | _ACEOF | |
35950 | ||
35951 | fi | |
35952 | fi | |
35953 | ||
35954 | if test "$wxUSE_FS_INET" = "yes"; then | |
35955 | cat >>confdefs.h <<\_ACEOF | |
35956 | #define wxUSE_FS_INET 1 | |
35957 | _ACEOF | |
35958 | ||
35959 | fi | |
35960 | ||
35961 | ||
35962 | if test "$wxUSE_GUI" = "yes"; then | |
35963 | ||
35964 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35965 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35966 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35967 | wxUSE_JOYSTICK=no | |
35968 | fi | |
35969 | ||
35970 | if test "$TOOLKIT" != "MSW"; then | |
35971 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35972 | ||
35973 | for ac_header in linux/joystick.h | |
35974 | do | |
35975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35981 | fi | |
35982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35984 | else | |
35985 | # Is the header compilable? | |
35986 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35987 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35988 | cat >conftest.$ac_ext <<_ACEOF | |
35989 | /* confdefs.h. */ | |
35990 | _ACEOF | |
35991 | cat confdefs.h >>conftest.$ac_ext | |
35992 | cat >>conftest.$ac_ext <<_ACEOF | |
35993 | /* end confdefs.h. */ | |
35994 | $ac_includes_default | |
35995 | #include <$ac_header> | |
35996 | _ACEOF | |
35997 | rm -f conftest.$ac_objext | |
35998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 35999 | (eval $ac_compile) 2>conftest.er1 |
f93ca9fd | 36000 | ac_status=$? |
32ddf007 VS |
36001 | grep -v '^ *+' conftest.er1 >conftest.err |
36002 | rm -f conftest.er1 | |
36003 | cat conftest.err >&5 | |
f93ca9fd VS |
36004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36005 | (exit $ac_status); } && | |
32ddf007 VS |
36006 | { ac_try='test -z "$ac_c_werror_flag" |
36007 | || test ! -s conftest.err' | |
36008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36009 | (eval $ac_try) 2>&5 | |
36010 | ac_status=$? | |
36011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36012 | (exit $ac_status); }; } && | |
36013 | { ac_try='test -s conftest.$ac_objext' | |
f93ca9fd VS |
36014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36015 | (eval $ac_try) 2>&5 | |
36016 | ac_status=$? | |
36017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36018 | (exit $ac_status); }; }; then | |
36019 | ac_header_compiler=yes | |
36020 | else | |
36021 | echo "$as_me: failed program was:" >&5 | |
36022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36023 | ||
36024 | ac_header_compiler=no | |
36025 | fi | |
32ddf007 | 36026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f93ca9fd VS |
36027 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36028 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36029 | ||
36030 | # Is the header present? | |
36031 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36032 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36033 | cat >conftest.$ac_ext <<_ACEOF | |
36034 | /* confdefs.h. */ | |
36035 | _ACEOF | |
36036 | cat confdefs.h >>conftest.$ac_ext | |
36037 | cat >>conftest.$ac_ext <<_ACEOF | |
36038 | /* end confdefs.h. */ | |
36039 | #include <$ac_header> | |
36040 | _ACEOF | |
36041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36043 | ac_status=$? | |
36044 | grep -v '^ *+' conftest.er1 >conftest.err | |
36045 | rm -f conftest.er1 | |
36046 | cat conftest.err >&5 | |
36047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36048 | (exit $ac_status); } >/dev/null; then | |
36049 | if test -s conftest.err; then | |
36050 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 36051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f93ca9fd VS |
36052 | else |
36053 | ac_cpp_err= | |
36054 | fi | |
36055 | else | |
36056 | ac_cpp_err=yes | |
36057 | fi | |
36058 | if test -z "$ac_cpp_err"; then | |
36059 | ac_header_preproc=yes | |
36060 | else | |
36061 | echo "$as_me: failed program was:" >&5 | |
36062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36063 | ||
36064 | ac_header_preproc=no | |
36065 | fi | |
36066 | rm -f conftest.err conftest.$ac_ext | |
36067 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36068 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36069 | ||
36070 | # So? What about this header? | |
32ddf007 VS |
36071 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36072 | yes:no: ) | |
f93ca9fd VS |
36073 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36074 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
36075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36076 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36077 | ac_header_preproc=yes | |
f93ca9fd | 36078 | ;; |
32ddf007 | 36079 | no:yes:* ) |
f93ca9fd VS |
36080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
36082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36084 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36085 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36086 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36087 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f93ca9fd VS |
36088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36089 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
36090 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36091 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
f93ca9fd VS |
36092 | ( |
36093 | cat <<\_ASBOX | |
32ddf007 VS |
36094 | ## ----------------------------------------- ## |
36095 | ## Report this to wx-dev@lists.wxwindows.org ## | |
36096 | ## ----------------------------------------- ## | |
f93ca9fd VS |
36097 | _ASBOX |
36098 | ) | | |
36099 | sed "s/^/$as_me: WARNING: /" >&2 | |
36100 | ;; | |
36101 | esac | |
36102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36106 | else | |
32ddf007 | 36107 | eval "$as_ac_Header=\$ac_header_preproc" |
f93ca9fd VS |
36108 | fi |
36109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36111 | ||
36112 | fi | |
36113 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36114 | cat >>confdefs.h <<_ACEOF | |
36115 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36116 | _ACEOF | |
36117 | ||
36118 | fi | |
36119 | ||
36120 | done | |
36121 | ||
36122 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
36123 | wxUSE_JOYSTICK=no | |
36124 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
36125 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
36126 | fi | |
36127 | fi | |
36128 | fi | |
36129 | ||
36130 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
36131 | cat >>confdefs.h <<\_ACEOF | |
36132 | #define wxUSE_JOYSTICK 1 | |
36133 | _ACEOF | |
36134 | ||
36135 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
36136 | fi | |
36137 | fi | |
36138 | ||
36139 | ||
36140 | ||
8284b0c5 | 36141 | |
1e6feb95 | 36142 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 36143 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36144 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 36145 | _ACEOF |
1e6feb95 VZ |
36146 | |
36147 | fi | |
36148 | ||
10f2d63a | 36149 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 36150 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36151 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 36152 | _ACEOF |
10f2d63a | 36153 | |
8284b0c5 | 36154 | |
eb854003 | 36155 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
36156 | wxUSE_UNICODE_MSLU=no |
36157 | fi | |
a72a4bfa | 36158 | |
eb854003 | 36159 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
36160 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
36161 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
36162 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
36163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 36164 | else |
e6cc62c6 | 36165 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 36166 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 36167 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
36168 | /* confdefs.h. */ |
36169 | _ACEOF | |
36170 | cat confdefs.h >>conftest.$ac_ext | |
36171 | cat >>conftest.$ac_ext <<_ACEOF | |
36172 | /* end confdefs.h. */ | |
a72a4bfa | 36173 | |
8284b0c5 | 36174 | |
e6cc62c6 VS |
36175 | int |
36176 | main () | |
36177 | { | |
36178 | main (); | |
36179 | ; | |
36180 | return 0; | |
36181 | } | |
36182 | _ACEOF | |
36183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 36185 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 36186 | ac_status=$? |
32ddf007 VS |
36187 | grep -v '^ *+' conftest.er1 >conftest.err |
36188 | rm -f conftest.er1 | |
36189 | cat conftest.err >&5 | |
e6cc62c6 VS |
36190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36191 | (exit $ac_status); } && | |
32ddf007 VS |
36192 | { ac_try='test -z "$ac_c_werror_flag" |
36193 | || test ! -s conftest.err' | |
36194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36195 | (eval $ac_try) 2>&5 | |
36196 | ac_status=$? | |
36197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36198 | (exit $ac_status); }; } && | |
36199 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
36200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36201 | (eval $ac_try) 2>&5 | |
36202 | ac_status=$? | |
36203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36204 | (exit $ac_status); }; }; then | |
36205 | ac_cv_lib_unicows_main=yes | |
36206 | else | |
36207 | echo "$as_me: failed program was:" >&5 | |
36208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36209 | ||
36210 | ac_cv_lib_unicows_main=no | |
36211 | fi | |
32ddf007 VS |
36212 | rm -f conftest.err conftest.$ac_objext \ |
36213 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
36214 | LIBS=$ac_check_lib_save_LIBS |
36215 | fi | |
36216 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36217 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36218 | if test $ac_cv_lib_unicows_main = yes; then | |
36219 | ||
36220 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 36221 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
36222 | _ACEOF |
36223 | ||
a72a4bfa | 36224 | |
a72a4bfa | 36225 | else |
a72a4bfa | 36226 | |
e6cc62c6 VS |
36227 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
36228 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36229 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36230 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 36231 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 36232 | |
a72a4bfa VS |
36233 | fi |
36234 | ||
36235 | fi | |
10f2d63a VZ |
36236 | fi |
36237 | ||
10f2d63a | 36238 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 36239 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36240 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 36241 | _ACEOF |
10f2d63a VZ |
36242 | |
36243 | fi | |
36244 | ||
8284b0c5 | 36245 | |
10f2d63a | 36246 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 36247 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36248 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 36249 | _ACEOF |
10f2d63a VZ |
36250 | |
36251 | fi | |
36252 | ||
e6cc62c6 | 36253 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36254 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 36255 | _ACEOF |
10f2d63a | 36256 | |
8284b0c5 | 36257 | |
e6cc62c6 | 36258 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36259 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 36260 | _ACEOF |
10f2d63a | 36261 | |
8284b0c5 MB |
36262 | |
36263 | ||
10f2d63a | 36264 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 36265 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36266 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 36267 | _ACEOF |
10f2d63a VZ |
36268 | |
36269 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36270 | fi | |
36271 | ||
3879ecda | 36272 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 36273 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36274 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 36275 | _ACEOF |
10f2d63a | 36276 | |
1772d20c | 36277 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
36278 | fi |
36279 | ||
36280 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 36281 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36282 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 36283 | _ACEOF |
10f2d63a VZ |
36284 | |
36285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36286 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36287 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36288 | fi | |
36289 | fi | |
36290 | ||
36291 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 36292 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36293 | #define wxUSE_HELP 1 |
e6cc62c6 | 36294 | _ACEOF |
10f2d63a VZ |
36295 | |
36296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 36297 | |
77e13408 | 36298 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 36299 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 36300 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 36301 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 36302 | _ACEOF |
29fd3c0c | 36303 | |
3e44f09d | 36304 | fi |
3379ed37 | 36305 | fi |
031d8228 VS |
36306 | |
36307 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36308 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 36309 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 36310 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 36311 | _ACEOF |
031d8228 VS |
36312 | |
36313 | else | |
e6cc62c6 VS |
36314 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
36315 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
36316 | wxUSE_WXHTML_HELP=no |
36317 | fi | |
36318 | fi | |
10f2d63a VZ |
36319 | fi |
36320 | ||
36321 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36322 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
36323 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
36324 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 36325 | else |
e6cc62c6 | 36326 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36327 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 36328 | _ACEOF |
10f2d63a VZ |
36329 | |
36330 | fi | |
36331 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36332 | fi | |
36333 | ||
e6cc62c6 VS |
36334 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
36335 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36336 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36337 | { (exit 1); exit 1; }; } | |
36338 | fi | |
36339 | ||
36340 | ||
f95e4495 | 36341 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
e6cc62c6 VS |
36342 | -o "$wxUSE_CLIPBOARD" = "yes" \ |
36343 | -o "$wxUSE_OLE" = "yes" \ | |
36344 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36345 | ||
36346 | for ac_header in ole2.h | |
36347 | do | |
36348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36354 | fi | |
36355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36356 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36357 | else | |
36358 | # Is the header compilable? | |
36359 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36361 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36362 | /* confdefs.h. */ |
36363 | _ACEOF | |
36364 | cat confdefs.h >>conftest.$ac_ext | |
36365 | cat >>conftest.$ac_ext <<_ACEOF | |
36366 | /* end confdefs.h. */ | |
36367 | $ac_includes_default | |
36368 | #include <$ac_header> | |
36369 | _ACEOF | |
36370 | rm -f conftest.$ac_objext | |
36371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36372 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36373 | ac_status=$? |
32ddf007 VS |
36374 | grep -v '^ *+' conftest.er1 >conftest.err |
36375 | rm -f conftest.er1 | |
36376 | cat conftest.err >&5 | |
e6cc62c6 VS |
36377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36378 | (exit $ac_status); } && | |
32ddf007 VS |
36379 | { ac_try='test -z "$ac_c_werror_flag" |
36380 | || test ! -s conftest.err' | |
36381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36382 | (eval $ac_try) 2>&5 | |
36383 | ac_status=$? | |
36384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36385 | (exit $ac_status); }; } && | |
36386 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
36387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36388 | (eval $ac_try) 2>&5 | |
36389 | ac_status=$? | |
36390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36391 | (exit $ac_status); }; }; then | |
36392 | ac_header_compiler=yes | |
36393 | else | |
36394 | echo "$as_me: failed program was:" >&5 | |
36395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36396 | ||
36397 | ac_header_compiler=no | |
36398 | fi | |
32ddf007 | 36399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
36400 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36401 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36402 | ||
36403 | # Is the header present? | |
36404 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36405 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36406 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36407 | /* confdefs.h. */ |
36408 | _ACEOF | |
36409 | cat confdefs.h >>conftest.$ac_ext | |
36410 | cat >>conftest.$ac_ext <<_ACEOF | |
36411 | /* end confdefs.h. */ | |
36412 | #include <$ac_header> | |
36413 | _ACEOF | |
36414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36416 | ac_status=$? | |
36417 | grep -v '^ *+' conftest.er1 >conftest.err | |
36418 | rm -f conftest.er1 | |
36419 | cat conftest.err >&5 | |
36420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36421 | (exit $ac_status); } >/dev/null; then | |
36422 | if test -s conftest.err; then | |
36423 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32ddf007 | 36424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
e6cc62c6 VS |
36425 | else |
36426 | ac_cpp_err= | |
36427 | fi | |
36428 | else | |
36429 | ac_cpp_err=yes | |
36430 | fi | |
36431 | if test -z "$ac_cpp_err"; then | |
36432 | ac_header_preproc=yes | |
36433 | else | |
36434 | echo "$as_me: failed program was:" >&5 | |
36435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36436 | ||
36437 | ac_header_preproc=no | |
36438 | fi | |
36439 | rm -f conftest.err conftest.$ac_ext | |
36440 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36441 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36442 | ||
36443 | # So? What about this header? | |
32ddf007 VS |
36444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36445 | yes:no: ) | |
e6cc62c6 VS |
36446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32ddf007 VS |
36448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36449 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36450 | ac_header_preproc=yes | |
e6cc62c6 | 36451 | ;; |
32ddf007 | 36452 | no:yes:* ) |
e6cc62c6 VS |
36453 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36454 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32ddf007 VS |
36455 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36456 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36457 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36458 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36459 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36460 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
e6cc62c6 VS |
36461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36462 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32ddf007 VS |
36463 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36464 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
e6cc62c6 VS |
36465 | ( |
36466 | cat <<\_ASBOX | |
32ddf007 VS |
36467 | ## ----------------------------------------- ## |
36468 | ## Report this to wx-dev@lists.wxwindows.org ## | |
36469 | ## ----------------------------------------- ## | |
e6cc62c6 VS |
36470 | _ASBOX |
36471 | ) | | |
36472 | sed "s/^/$as_me: WARNING: /" >&2 | |
36473 | ;; | |
36474 | esac | |
36475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36479 | else | |
32ddf007 | 36480 | eval "$as_ac_Header=\$ac_header_preproc" |
e6cc62c6 VS |
36481 | fi |
36482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36484 | ||
10f2d63a | 36485 | fi |
e6cc62c6 VS |
36486 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
36487 | cat >>confdefs.h <<_ACEOF | |
36488 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36489 | _ACEOF | |
10f2d63a | 36490 | |
10f2d63a | 36491 | fi |
e6cc62c6 | 36492 | |
10f2d63a VZ |
36493 | done |
36494 | ||
8284b0c5 | 36495 | |
2b9bdf71 VZ |
36496 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
36497 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
36498 | |
36499 | ||
e6cc62c6 VS |
36500 | ac_ext=cc |
36501 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36502 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36503 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36504 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36505 | ||
36506 | ||
36507 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36508 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36509 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
36510 | /* confdefs.h. */ |
36511 | _ACEOF | |
36512 | cat confdefs.h >>conftest.$ac_ext | |
36513 | cat >>conftest.$ac_ext <<_ACEOF | |
36514 | /* end confdefs.h. */ | |
8284b0c5 MB |
36515 | #include <windows.h> |
36516 | #include <ole2.h> | |
e6cc62c6 VS |
36517 | int |
36518 | main () | |
36519 | { | |
8284b0c5 | 36520 | |
e6cc62c6 VS |
36521 | ; |
36522 | return 0; | |
36523 | } | |
36524 | _ACEOF | |
36525 | rm -f conftest.$ac_objext | |
36526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 36527 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 36528 | ac_status=$? |
32ddf007 VS |
36529 | grep -v '^ *+' conftest.er1 >conftest.err |
36530 | rm -f conftest.er1 | |
36531 | cat conftest.err >&5 | |
e6cc62c6 VS |
36532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36533 | (exit $ac_status); } && | |
32ddf007 VS |
36534 | { ac_try='test -z "$ac_cxx_werror_flag" |
36535 | || test ! -s conftest.err' | |
36536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36537 | (eval $ac_try) 2>&5 | |
36538 | ac_status=$? | |
36539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36540 | (exit $ac_status); }; } && | |
36541 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
36542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36543 | (eval $ac_try) 2>&5 | |
36544 | ac_status=$? | |
36545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36546 | (exit $ac_status); }; }; then | |
36547 | echo "$as_me:$LINENO: result: no" >&5 | |
36548 | echo "${ECHO_T}no" >&6 | |
36549 | else | |
36550 | echo "$as_me: failed program was:" >&5 | |
36551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36552 | ||
36553 | echo "$as_me:$LINENO: result: yes" >&5 | |
36554 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
36555 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
36556 | fi | |
32ddf007 | 36557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 36558 | ac_ext=c |
8284b0c5 | 36559 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
36560 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
36561 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36562 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 36563 | |
2b9bdf71 | 36564 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 36565 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
f95e4495 VS |
36566 | if test "$wxUSE_OLE" = "yes" ; then |
36567 | cat >>confdefs.h <<\_ACEOF | |
4f11a343 | 36568 | #define wxUSE_OLE 1 |
e6cc62c6 | 36569 | _ACEOF |
4f11a343 | 36570 | |
f95e4495 | 36571 | fi |
2b9bdf71 VZ |
36572 | fi |
36573 | ||
f95e4495 VS |
36574 | if test "$wxUSE_DATAOBJ" = "yes" ; then |
36575 | cat >>confdefs.h <<\_ACEOF | |
2b9bdf71 | 36576 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36577 | _ACEOF |
2b9bdf71 | 36578 | |
f95e4495 | 36579 | fi |
2b9bdf71 | 36580 | else |
e6cc62c6 VS |
36581 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
36582 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
36583 | |
36584 | wxUSE_CLIPBOARD=no | |
36585 | wxUSE_DRAG_AND_DROP=no | |
36586 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
36587 | wxUSE_OLE=no |
36588 | fi | |
36589 | ||
36590 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 36591 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36592 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 36593 | _ACEOF |
3bce6687 JS |
36594 | |
36595 | ||
e6cc62c6 | 36596 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 36597 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 36598 | _ACEOF |
3bce6687 JS |
36599 | |
36600 | fi | |
36601 | fi | |
36602 | ||
2b9bdf71 VZ |
36603 | if test "$wxUSE_IPC" = "yes"; then |
36604 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
36605 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
36606 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
36607 | fi |
36608 | ||
e6cc62c6 | 36609 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36610 | #define wxUSE_IPC 1 |
e6cc62c6 | 36611 | _ACEOF |
2b9bdf71 VZ |
36612 | |
36613 | fi | |
36614 | ||
36615 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 36616 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36617 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
36618 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36619 | wxUSE_CLIPBOARD=no |
36620 | fi | |
36621 | ||
36622 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 36623 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 36624 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 36625 | _ACEOF |
2b9bdf71 | 36626 | |
8284b0c5 | 36627 | |
e6cc62c6 | 36628 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 36629 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 36630 | _ACEOF |
673f4220 | 36631 | |
6c657b52 | 36632 | fi |
2b9bdf71 VZ |
36633 | fi |
36634 | ||
36635 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36636 | if test "$wxUSE_GTK" = 1; then | |
36637 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
36638 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
36639 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
36640 | wxUSE_DRAG_AND_DROP=no |
36641 | fi | |
36642 | fi | |
36643 | ||
2b9bdf71 | 36644 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
36645 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
36646 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
36647 | wxUSE_DRAG_AND_DROP=no |
36648 | fi | |
36649 | ||
f79bd02d | 36650 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
36651 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
36652 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
36653 | wxUSE_DRAG_AND_DROP=no |
36654 | fi | |
36655 | ||
6c657b52 | 36656 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
36657 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
36658 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
36659 | wxUSE_DRAG_AND_DROP=no |
36660 | fi | |
36661 | ||
10f2d63a | 36662 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 36663 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36664 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 36665 | _ACEOF |
10f2d63a VZ |
36666 | |
36667 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36668 | fi | |
36669 | ||
36670 | fi | |
36671 | ||
36672 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 36673 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36674 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 36675 | _ACEOF |
10f2d63a VZ |
36676 | |
36677 | fi | |
36678 | ||
8284b0c5 | 36679 | |
1e6feb95 VZ |
36680 | USES_CONTROLS=0 |
36681 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36682 | USES_CONTROLS=1 | |
36683 | fi | |
36684 | ||
10f2d63a | 36685 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 36686 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36687 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 36688 | _ACEOF |
10f2d63a | 36689 | |
1e6feb95 VZ |
36690 | USES_CONTROLS=1 |
36691 | fi | |
36692 | ||
36693 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 36694 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36695 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 36696 | _ACEOF |
1e6feb95 VZ |
36697 | |
36698 | USES_CONTROLS=1 | |
36699 | fi | |
36700 | ||
36701 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 36702 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36703 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 36704 | _ACEOF |
1e6feb95 VZ |
36705 | |
36706 | USES_CONTROLS=1 | |
36707 | fi | |
36708 | ||
36709 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 36710 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36711 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 36712 | _ACEOF |
1e6feb95 VZ |
36713 | |
36714 | USES_CONTROLS=1 | |
36715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
36716 | fi |
36717 | ||
36718 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 36719 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36720 | #define wxUSE_CARET 1 |
e6cc62c6 | 36721 | _ACEOF |
10f2d63a | 36722 | |
1e6feb95 | 36723 | USES_CONTROLS=1 |
10f2d63a VZ |
36724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
36725 | fi | |
36726 | ||
36727 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 36728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36729 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 36730 | _ACEOF |
10f2d63a | 36731 | |
1e6feb95 | 36732 | USES_CONTROLS=1 |
10f2d63a VZ |
36733 | fi |
36734 | ||
36735 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 36736 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36737 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 36738 | _ACEOF |
10f2d63a | 36739 | |
1e6feb95 | 36740 | USES_CONTROLS=1 |
10f2d63a VZ |
36741 | fi |
36742 | ||
36743 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 36744 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36745 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 36746 | _ACEOF |
10f2d63a | 36747 | |
1e6feb95 | 36748 | USES_CONTROLS=1 |
10f2d63a VZ |
36749 | fi |
36750 | ||
36751 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 36752 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36753 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 36754 | _ACEOF |
10f2d63a | 36755 | |
1e6feb95 | 36756 | USES_CONTROLS=1 |
10f2d63a VZ |
36757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
36758 | fi | |
36759 | ||
da494b40 | 36760 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 36761 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 36762 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 36763 | _ACEOF |
da494b40 MB |
36764 | |
36765 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36766 | fi | |
36767 | ||
10f2d63a | 36768 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 36769 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36770 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 36771 | _ACEOF |
10f2d63a | 36772 | |
1e6feb95 | 36773 | USES_CONTROLS=1 |
10f2d63a VZ |
36774 | fi |
36775 | ||
d6a55c4b | 36776 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 36777 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 36778 | #define wxUSE_GRID 1 |
e6cc62c6 | 36779 | _ACEOF |
10f2d63a | 36780 | |
1e6feb95 | 36781 | USES_CONTROLS=1 |
d6a55c4b | 36782 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
36783 | fi |
36784 | ||
36785 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36786 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36787 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 36788 | _ACEOF |
10f2d63a VZ |
36789 | |
36790 | fi | |
36791 | ||
0e012a93 VZ |
36792 | if test "$wxUSE_LISTBOOK" = "yes"; then |
36793 | cat >>confdefs.h <<\_ACEOF | |
36794 | #define wxUSE_LISTBOOK 1 | |
36795 | _ACEOF | |
36796 | ||
36797 | USES_CONTROLS=1 | |
36798 | fi | |
36799 | ||
10f2d63a | 36800 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 36801 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36802 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 36803 | _ACEOF |
10f2d63a | 36804 | |
1e6feb95 | 36805 | USES_CONTROLS=1 |
10f2d63a VZ |
36806 | fi |
36807 | ||
36808 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36809 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 36810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36811 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 36812 | _ACEOF |
10f2d63a | 36813 | |
1e6feb95 | 36814 | USES_CONTROLS=1 |
10f2d63a VZ |
36815 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
36816 | else | |
e6cc62c6 VS |
36817 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
36818 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
36819 | fi |
36820 | fi | |
36821 | ||
36822 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 36823 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36824 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 36825 | _ACEOF |
10f2d63a | 36826 | |
1e6feb95 | 36827 | USES_CONTROLS=1 |
10f2d63a VZ |
36828 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
36829 | fi | |
36830 | ||
24176f2c | 36831 | |
10f2d63a | 36832 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 36833 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36834 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 36835 | _ACEOF |
10f2d63a | 36836 | |
1e6feb95 | 36837 | USES_CONTROLS=1 |
10f2d63a VZ |
36838 | fi |
36839 | ||
36840 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 36841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36842 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 36843 | _ACEOF |
10f2d63a | 36844 | |
1e6feb95 | 36845 | USES_CONTROLS=1 |
10f2d63a VZ |
36846 | fi |
36847 | ||
36848 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 36849 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36850 | #define wxUSE_SASH 1 |
e6cc62c6 | 36851 | _ACEOF |
10f2d63a VZ |
36852 | |
36853 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36854 | fi | |
36855 | ||
36856 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 36857 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36858 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 36859 | _ACEOF |
10f2d63a | 36860 | |
1e6feb95 | 36861 | USES_CONTROLS=1 |
741a9306 | 36862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
36863 | fi |
36864 | ||
36865 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 36866 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36867 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 36868 | _ACEOF |
10f2d63a | 36869 | |
1e6feb95 | 36870 | USES_CONTROLS=1 |
10f2d63a VZ |
36871 | fi |
36872 | ||
36873 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 36874 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36875 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 36876 | _ACEOF |
10f2d63a | 36877 | |
1e6feb95 | 36878 | USES_CONTROLS=1 |
10f2d63a VZ |
36879 | fi |
36880 | ||
56cfaa52 | 36881 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 36882 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 36883 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 36884 | _ACEOF |
56cfaa52 | 36885 | |
1e6feb95 | 36886 | USES_CONTROLS=1 |
56cfaa52 RR |
36887 | fi |
36888 | ||
10f2d63a | 36889 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 36890 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36891 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 36892 | _ACEOF |
10f2d63a VZ |
36893 | |
36894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36895 | fi | |
36896 | ||
36897 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 36898 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36899 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 36900 | _ACEOF |
10f2d63a | 36901 | |
1e6feb95 | 36902 | USES_CONTROLS=1 |
10f2d63a VZ |
36903 | fi |
36904 | ||
36905 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 36906 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36907 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 36908 | _ACEOF |
10f2d63a | 36909 | |
1e6feb95 VZ |
36910 | USES_CONTROLS=1 |
36911 | fi | |
36912 | ||
36913 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 36914 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36915 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 36916 | _ACEOF |
1e6feb95 VZ |
36917 | |
36918 | USES_CONTROLS=1 | |
10f2d63a VZ |
36919 | fi |
36920 | ||
36921 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 36922 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36923 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 36924 | _ACEOF |
10f2d63a | 36925 | |
89e6bf6d | 36926 | USES_CONTROLS=1 |
10f2d63a VZ |
36927 | fi |
36928 | ||
36929 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 36930 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36931 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 36932 | _ACEOF |
10f2d63a | 36933 | |
1e6feb95 | 36934 | USES_CONTROLS=1 |
698dcdb6 | 36935 | |
2286341c | 36936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
36937 | fi |
36938 | ||
36939 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 36940 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36941 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 36942 | _ACEOF |
10f2d63a VZ |
36943 | |
36944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36945 | fi | |
36946 | ||
1e6feb95 | 36947 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 36948 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 36949 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 36950 | _ACEOF |
1e6feb95 VZ |
36951 | |
36952 | USES_CONTROLS=1 | |
36953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36954 | fi | |
36955 | ||
1db8dc4a | 36956 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
0f87e84c | 36957 | if test "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
36958 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
36959 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
36960 | wxUSE_TOGGLEBTN=no |
36961 | fi | |
36962 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
36963 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
36964 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
36965 | wxUSE_TOGGLEBTN=no |
36966 | fi | |
36967 | ||
36968 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 36969 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 36970 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 36971 | _ACEOF |
1db8dc4a | 36972 | |
1e6feb95 | 36973 | USES_CONTROLS=1 |
a45d7ab7 | 36974 | fi |
1db8dc4a VZ |
36975 | fi |
36976 | ||
360d6699 | 36977 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 36978 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36979 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 36980 | _ACEOF |
360d6699 VZ |
36981 | |
36982 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 36983 | USES_CONTROLS=1 |
360d6699 VZ |
36984 | fi |
36985 | ||
10f2d63a | 36986 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 36987 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 36988 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 36989 | _ACEOF |
10f2d63a | 36990 | |
1e6feb95 | 36991 | USES_CONTROLS=1 |
698dcdb6 | 36992 | |
360d6699 VZ |
36993 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
36994 | wxUSE_TOOLBAR_NATIVE="yes" | |
36995 | fi | |
36996 | ||
1e6feb95 | 36997 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 36998 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 36999 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 37000 | _ACEOF |
360d6699 | 37001 | |
1e6feb95 VZ |
37002 | USES_CONTROLS=1 |
37003 | fi | |
37004 | ||
37005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
37006 | fi |
37007 | ||
10f2d63a VZ |
37008 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
37009 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
37010 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
37011 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 37012 | else |
89e6bf6d | 37013 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
37014 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
37015 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 37016 | else |
e6cc62c6 | 37017 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 37018 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 37019 | _ACEOF |
10f2d63a VZ |
37020 | |
37021 | fi | |
37022 | fi | |
37023 | fi | |
37024 | ||
37025 | if test "$wxUSE_TREECTRL" = "yes"; then | |
37026 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 37027 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 37028 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 37029 | _ACEOF |
10f2d63a | 37030 | |
1e6feb95 | 37031 | USES_CONTROLS=1 |
10f2d63a VZ |
37032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
37033 | else | |
e6cc62c6 VS |
37034 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
37035 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
37036 | fi |
37037 | fi | |
37038 | ||
9f41d601 | 37039 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 37040 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
37041 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
37042 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 37043 | else |
833a51f6 MB |
37044 | if test "$wxUSE_PM" = 1; then |
37045 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 37046 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
37047 | else |
37048 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 37049 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 37050 | _ACEOF |
9f41d601 | 37051 | |
8284b0c5 | 37052 | |
833a51f6 | 37053 | USES_CONTROLS=1 |
485cf710 | 37054 | fi |
6abe4b65 | 37055 | fi |
9f41d601 RR |
37056 | fi |
37057 | ||
dd964dcc | 37058 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 37059 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
37060 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
37061 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 37062 | else |
e6cc62c6 | 37063 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 37064 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 37065 | _ACEOF |
dd964dcc | 37066 | |
3c011993 | 37067 | fi |
dd964dcc VZ |
37068 | fi |
37069 | ||
1e6feb95 | 37070 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 37071 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37072 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 37073 | _ACEOF |
10f2d63a | 37074 | |
10f2d63a VZ |
37075 | fi |
37076 | ||
8284b0c5 | 37077 | |
e46d2a18 VS |
37078 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
37079 | cat >>confdefs.h <<\_ACEOF | |
37080 | #define wxUSE_ACCESSIBILITY 1 | |
37081 | _ACEOF | |
37082 | ||
37083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
37084 | fi | |
1e6feb95 | 37085 | |
24fd6d87 | 37086 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 37087 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 37088 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 37089 | _ACEOF |
24fd6d87 VZ |
37090 | |
37091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
37092 | fi | |
37093 | ||
e46d2a18 | 37094 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 37095 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 37096 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 37097 | _ACEOF |
7bb2947d | 37098 | |
e46d2a18 VS |
37099 | fi |
37100 | ||
37101 | USE_HTML=0 | |
37102 | if test "$wxUSE_HTML" = "yes"; then | |
37103 | cat >>confdefs.h <<\_ACEOF | |
37104 | #define wxUSE_HTML 1 | |
37105 | _ACEOF | |
37106 | ||
37107 | USE_HTML=1 | |
37108 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
37109 | fi |
37110 | ||
1e6feb95 | 37111 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 37112 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37113 | #define wxUSE_MENUS 1 |
e6cc62c6 | 37114 | _ACEOF |
10f2d63a | 37115 | |
1e6feb95 | 37116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
37117 | fi |
37118 | ||
1e6feb95 | 37119 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 37120 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37121 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 37122 | _ACEOF |
10f2d63a | 37123 | |
10f2d63a VZ |
37124 | fi |
37125 | ||
1e6feb95 | 37126 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 37127 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37128 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 37129 | _ACEOF |
10f2d63a | 37130 | |
10f2d63a VZ |
37131 | fi |
37132 | ||
37133 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 37134 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 37135 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 37136 | _ACEOF |
10f2d63a VZ |
37137 | |
37138 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37139 | fi | |
37140 | ||
e46d2a18 | 37141 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 37142 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 37143 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 37144 | _ACEOF |
10f2d63a | 37145 | |
e46d2a18 VS |
37146 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
37147 | "$TOOLKIT" = "MOTIF"; then | |
37148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
37149 | fi | |
10f2d63a VZ |
37150 | fi |
37151 | ||
e46d2a18 | 37152 | |
10f2d63a | 37153 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 37154 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 37155 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 37156 | _ACEOF |
703e0a69 | 37157 | |
698dcdb6 VZ |
37158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
37159 | fi | |
37160 | ||
edae8572 | 37161 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 37162 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 37163 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 37164 | _ACEOF |
edae8572 VZ |
37165 | |
37166 | fi | |
37167 | ||
e46d2a18 VS |
37168 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
37169 | LIBS=" -lunicows $LIBS" | |
37170 | fi | |
37171 | ||
37172 | ||
698dcdb6 | 37173 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 37174 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 37175 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 37176 | _ACEOF |
698dcdb6 | 37177 | |
698dcdb6 | 37178 | |
e46d2a18 VS |
37179 | if test "$wxUSE_GIF" = "yes" ; then |
37180 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 37181 | #define wxUSE_GIF 1 |
e6cc62c6 | 37182 | _ACEOF |
698dcdb6 | 37183 | |
e46d2a18 | 37184 | fi |
698dcdb6 | 37185 | |
e46d2a18 VS |
37186 | if test "$wxUSE_PCX" = "yes" ; then |
37187 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 37188 | #define wxUSE_PCX 1 |
e6cc62c6 | 37189 | _ACEOF |
698dcdb6 | 37190 | |
e46d2a18 | 37191 | fi |
698dcdb6 | 37192 | |
e46d2a18 VS |
37193 | if test "$wxUSE_IFF" = "yes" ; then |
37194 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 37195 | #define wxUSE_IFF 1 |
e6cc62c6 | 37196 | _ACEOF |
4b6b4dfc | 37197 | |
e46d2a18 | 37198 | fi |
4b6b4dfc | 37199 | |
e46d2a18 VS |
37200 | if test "$wxUSE_PNM" = "yes" ; then |
37201 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 37202 | #define wxUSE_PNM 1 |
e6cc62c6 | 37203 | _ACEOF |
698dcdb6 | 37204 | |
e46d2a18 | 37205 | fi |
698dcdb6 | 37206 | |
e46d2a18 VS |
37207 | if test "$wxUSE_XPM" = "yes" ; then |
37208 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 37209 | #define wxUSE_XPM 1 |
e6cc62c6 | 37210 | _ACEOF |
698dcdb6 | 37211 | |
e46d2a18 | 37212 | fi |
698dcdb6 | 37213 | |
e46d2a18 VS |
37214 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
37215 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 37216 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 37217 | _ACEOF |
658974ae | 37218 | |
e46d2a18 | 37219 | fi |
a72a4bfa VS |
37220 | fi |
37221 | ||
8284b0c5 | 37222 | |
1e6feb95 | 37223 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 37224 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37225 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 37226 | _ACEOF |
1e6feb95 VZ |
37227 | |
37228 | fi | |
37229 | ||
37230 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 37231 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37232 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 37233 | _ACEOF |
1e6feb95 VZ |
37234 | |
37235 | fi | |
37236 | ||
37237 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 37238 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37239 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 37240 | _ACEOF |
1e6feb95 VZ |
37241 | |
37242 | fi | |
37243 | ||
8db37e06 | 37244 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 37245 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 37246 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 37247 | _ACEOF |
8db37e06 VZ |
37248 | |
37249 | fi | |
37250 | ||
1e6feb95 | 37251 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 37252 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37253 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 37254 | _ACEOF |
1e6feb95 VZ |
37255 | |
37256 | fi | |
37257 | ||
37258 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 37259 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
37260 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
37261 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 37262 | else |
e6cc62c6 | 37263 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37264 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 37265 | _ACEOF |
1e6feb95 | 37266 | |
1e6feb95 VZ |
37267 | fi |
37268 | fi | |
37269 | ||
37270 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 37271 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37272 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 37273 | _ACEOF |
1e6feb95 VZ |
37274 | |
37275 | fi | |
37276 | ||
37277 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 37278 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37279 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 37280 | _ACEOF |
1e6feb95 VZ |
37281 | |
37282 | fi | |
37283 | ||
37284 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37285 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37286 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
37287 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 37288 | else |
e6cc62c6 | 37289 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37290 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 37291 | _ACEOF |
1e6feb95 VZ |
37292 | |
37293 | fi | |
37294 | fi | |
37295 | ||
cbca9943 | 37296 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 37297 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 37298 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 37299 | _ACEOF |
cbca9943 VZ |
37300 | |
37301 | fi | |
37302 | ||
1e6feb95 VZ |
37303 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
37304 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
37305 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
37306 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 37307 | else |
e6cc62c6 | 37308 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 37309 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 37310 | _ACEOF |
1e6feb95 | 37311 | |
7b4a847f RR |
37312 | fi |
37313 | fi | |
579d8138 | 37314 | |
8284b0c5 | 37315 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 37316 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37317 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 37318 | _ACEOF |
8284b0c5 MB |
37319 | |
37320 | fi | |
37321 | ||
37322 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 37323 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 37324 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 37325 | _ACEOF |
8284b0c5 MB |
37326 | |
37327 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37328 | fi | |
37329 | ||
37330 | ||
37331 | if test "$cross_compiling" = "yes"; then | |
37332 | OSINFO="\"$host\"" | |
37333 | else | |
37334 | OSINFO=`uname -s -r -m` | |
37335 | OSINFO="\"$OSINFO\"" | |
37336 | fi | |
37337 | ||
e6cc62c6 | 37338 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37339 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 37340 | _ACEOF |
8284b0c5 MB |
37341 | |
37342 | ||
37343 | ||
37344 | if test "x$prefix" != "xNONE"; then | |
37345 | wxPREFIX=$prefix | |
37346 | else | |
37347 | wxPREFIX=$ac_default_prefix | |
37348 | fi | |
37349 | ||
e6cc62c6 | 37350 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 37351 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 37352 | _ACEOF |
8284b0c5 MB |
37353 | |
37354 | ||
e6cc62c6 | 37355 | top_builddir_wxconfig=`pwd` |
52c71b80 | 37356 | |
8284b0c5 MB |
37357 | |
37358 | ||
edd891e2 VS |
37359 | CORE_BASE_LIBS="net base" |
37360 | CORE_GUI_LIBS="adv core" | |
37361 | ||
37362 | if test "$wxUSE_XML" = "yes" ; then | |
37363 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37364 | fi | |
45293562 VS |
37365 | if test "$wxUSE_ODBC" != "no" ; then |
37366 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37367 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
37368 | fi |
37369 | if test "$wxUSE_HTML" = "yes" ; then | |
37370 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37371 | fi | |
37372 | ||
57e7d4ac VS |
37373 | if test "$wxUSE_GUI" != "yes"; then |
37374 | CORE_GUI_LIBS="" | |
37375 | fi | |
37376 | ||
edd891e2 VS |
37377 | |
37378 | ||
37379 | ||
37380 | ||
37381 | ||
37382 | ||
8284b0c5 MB |
37383 | |
37384 | if test "$wxUSE_MAC" = 1 ; then | |
37385 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
37386 | fi | |
ac0c4cc3 DE |
37387 | if test "$wxUSE_COCOA" = 1 ; then |
37388 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37389 | fi | |
8284b0c5 MB |
37390 | |
37391 | ||
2b5f62a0 VZ |
37392 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
37393 | ||
37394 | have_cos=0 | |
37395 | have_floor=0 | |
e6cc62c6 | 37396 | |
2b5f62a0 VZ |
37397 | for ac_func in cos |
37398 | do | |
e6cc62c6 VS |
37399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37402 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37404 | else | |
37405 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37406 | /* confdefs.h. */ |
37407 | _ACEOF | |
37408 | cat confdefs.h >>conftest.$ac_ext | |
37409 | cat >>conftest.$ac_ext <<_ACEOF | |
37410 | /* end confdefs.h. */ | |
32ddf007 VS |
37411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37413 | #define $ac_func innocuous_$ac_func | |
37414 | ||
2b5f62a0 | 37415 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37416 | which can conflict with char $ac_func (); below. |
37417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37418 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37419 | |
e6cc62c6 VS |
37420 | #ifdef __STDC__ |
37421 | # include <limits.h> | |
37422 | #else | |
37423 | # include <assert.h> | |
37424 | #endif | |
32ddf007 VS |
37425 | |
37426 | #undef $ac_func | |
37427 | ||
2b5f62a0 | 37428 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37429 | #ifdef __cplusplus |
37430 | extern "C" | |
37431 | { | |
37432 | #endif | |
2b5f62a0 | 37433 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37434 | builtin and then its argument prototype would still apply. */ |
37435 | char $ac_func (); | |
2b5f62a0 VZ |
37436 | /* The GNU C library defines this for functions which it implements |
37437 | to always fail with ENOSYS. Some functions are actually named | |
37438 | something starting with __ and the normal name is an alias. */ | |
37439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37440 | choke me | |
37441 | #else | |
e6cc62c6 VS |
37442 | char (*f) () = $ac_func; |
37443 | #endif | |
37444 | #ifdef __cplusplus | |
37445 | } | |
2b5f62a0 VZ |
37446 | #endif |
37447 | ||
e6cc62c6 VS |
37448 | int |
37449 | main () | |
37450 | { | |
37451 | return f != $ac_func; | |
37452 | ; | |
37453 | return 0; | |
37454 | } | |
37455 | _ACEOF | |
37456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37458 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37459 | ac_status=$? |
32ddf007 VS |
37460 | grep -v '^ *+' conftest.er1 >conftest.err |
37461 | rm -f conftest.er1 | |
37462 | cat conftest.err >&5 | |
e6cc62c6 VS |
37463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37464 | (exit $ac_status); } && | |
32ddf007 VS |
37465 | { ac_try='test -z "$ac_c_werror_flag" |
37466 | || test ! -s conftest.err' | |
37467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37468 | (eval $ac_try) 2>&5 | |
37469 | ac_status=$? | |
37470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37471 | (exit $ac_status); }; } && | |
37472 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37474 | (eval $ac_try) 2>&5 | |
37475 | ac_status=$? | |
37476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37477 | (exit $ac_status); }; }; then | |
37478 | eval "$as_ac_var=yes" | |
37479 | else | |
37480 | echo "$as_me: failed program was:" >&5 | |
37481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37482 | ||
37483 | eval "$as_ac_var=no" | |
37484 | fi | |
32ddf007 VS |
37485 | rm -f conftest.err conftest.$ac_objext \ |
37486 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37487 | fi |
37488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37490 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37491 | cat >>confdefs.h <<_ACEOF | |
37492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37493 | _ACEOF | |
2b5f62a0 | 37494 | have_cos=1 |
2b5f62a0 VZ |
37495 | fi |
37496 | done | |
37497 | ||
e6cc62c6 | 37498 | |
2b5f62a0 VZ |
37499 | for ac_func in floor |
37500 | do | |
e6cc62c6 VS |
37501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37502 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37504 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37506 | else | |
37507 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37508 | /* confdefs.h. */ |
37509 | _ACEOF | |
37510 | cat confdefs.h >>conftest.$ac_ext | |
37511 | cat >>conftest.$ac_ext <<_ACEOF | |
37512 | /* end confdefs.h. */ | |
32ddf007 VS |
37513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37515 | #define $ac_func innocuous_$ac_func | |
37516 | ||
2b5f62a0 | 37517 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37518 | which can conflict with char $ac_func (); below. |
37519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37520 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37521 | |
e6cc62c6 VS |
37522 | #ifdef __STDC__ |
37523 | # include <limits.h> | |
37524 | #else | |
37525 | # include <assert.h> | |
37526 | #endif | |
32ddf007 VS |
37527 | |
37528 | #undef $ac_func | |
37529 | ||
2b5f62a0 | 37530 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37531 | #ifdef __cplusplus |
37532 | extern "C" | |
37533 | { | |
37534 | #endif | |
2b5f62a0 | 37535 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37536 | builtin and then its argument prototype would still apply. */ |
37537 | char $ac_func (); | |
2b5f62a0 VZ |
37538 | /* The GNU C library defines this for functions which it implements |
37539 | to always fail with ENOSYS. Some functions are actually named | |
37540 | something starting with __ and the normal name is an alias. */ | |
37541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37542 | choke me | |
37543 | #else | |
e6cc62c6 VS |
37544 | char (*f) () = $ac_func; |
37545 | #endif | |
37546 | #ifdef __cplusplus | |
37547 | } | |
2b5f62a0 VZ |
37548 | #endif |
37549 | ||
e6cc62c6 VS |
37550 | int |
37551 | main () | |
37552 | { | |
37553 | return f != $ac_func; | |
37554 | ; | |
37555 | return 0; | |
37556 | } | |
37557 | _ACEOF | |
37558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37560 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37561 | ac_status=$? |
32ddf007 VS |
37562 | grep -v '^ *+' conftest.er1 >conftest.err |
37563 | rm -f conftest.er1 | |
37564 | cat conftest.err >&5 | |
e6cc62c6 VS |
37565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37566 | (exit $ac_status); } && | |
32ddf007 VS |
37567 | { ac_try='test -z "$ac_c_werror_flag" |
37568 | || test ! -s conftest.err' | |
37569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37570 | (eval $ac_try) 2>&5 | |
37571 | ac_status=$? | |
37572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37573 | (exit $ac_status); }; } && | |
37574 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37576 | (eval $ac_try) 2>&5 | |
37577 | ac_status=$? | |
37578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37579 | (exit $ac_status); }; }; then | |
37580 | eval "$as_ac_var=yes" | |
37581 | else | |
37582 | echo "$as_me: failed program was:" >&5 | |
37583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37584 | ||
37585 | eval "$as_ac_var=no" | |
37586 | fi | |
32ddf007 VS |
37587 | rm -f conftest.err conftest.$ac_objext \ |
37588 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37589 | fi |
37590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37591 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37592 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37593 | cat >>confdefs.h <<_ACEOF | |
37594 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37595 | _ACEOF | |
2b5f62a0 | 37596 | have_floor=1 |
2b5f62a0 VZ |
37597 | fi |
37598 | done | |
37599 | ||
e6cc62c6 VS |
37600 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
37601 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37602 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
37603 | echo "$as_me:$LINENO: result: yes" >&5 |
37604 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37605 | else |
e6cc62c6 VS |
37606 | echo "$as_me:$LINENO: result: no" >&5 |
37607 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37608 | LIBS="$LIBS -lm" |
37609 | # use different functions to avoid configure caching | |
37610 | have_sin=0 | |
37611 | have_ceil=0 | |
e6cc62c6 VS |
37612 | |
37613 | for ac_func in sin | |
2b5f62a0 | 37614 | do |
e6cc62c6 VS |
37615 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37616 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37617 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37618 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37620 | else | |
37621 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37622 | /* confdefs.h. */ |
37623 | _ACEOF | |
37624 | cat confdefs.h >>conftest.$ac_ext | |
37625 | cat >>conftest.$ac_ext <<_ACEOF | |
37626 | /* end confdefs.h. */ | |
32ddf007 VS |
37627 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37628 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37629 | #define $ac_func innocuous_$ac_func | |
37630 | ||
2b5f62a0 | 37631 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37632 | which can conflict with char $ac_func (); below. |
37633 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37634 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37635 | |
e6cc62c6 VS |
37636 | #ifdef __STDC__ |
37637 | # include <limits.h> | |
37638 | #else | |
37639 | # include <assert.h> | |
37640 | #endif | |
32ddf007 VS |
37641 | |
37642 | #undef $ac_func | |
37643 | ||
2b5f62a0 | 37644 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37645 | #ifdef __cplusplus |
37646 | extern "C" | |
37647 | { | |
37648 | #endif | |
2b5f62a0 | 37649 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37650 | builtin and then its argument prototype would still apply. */ |
37651 | char $ac_func (); | |
2b5f62a0 VZ |
37652 | /* The GNU C library defines this for functions which it implements |
37653 | to always fail with ENOSYS. Some functions are actually named | |
37654 | something starting with __ and the normal name is an alias. */ | |
37655 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37656 | choke me | |
37657 | #else | |
e6cc62c6 VS |
37658 | char (*f) () = $ac_func; |
37659 | #endif | |
37660 | #ifdef __cplusplus | |
37661 | } | |
2b5f62a0 VZ |
37662 | #endif |
37663 | ||
e6cc62c6 VS |
37664 | int |
37665 | main () | |
37666 | { | |
37667 | return f != $ac_func; | |
37668 | ; | |
37669 | return 0; | |
37670 | } | |
37671 | _ACEOF | |
37672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37674 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37675 | ac_status=$? |
32ddf007 VS |
37676 | grep -v '^ *+' conftest.er1 >conftest.err |
37677 | rm -f conftest.er1 | |
37678 | cat conftest.err >&5 | |
e6cc62c6 VS |
37679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37680 | (exit $ac_status); } && | |
32ddf007 VS |
37681 | { ac_try='test -z "$ac_c_werror_flag" |
37682 | || test ! -s conftest.err' | |
37683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37684 | (eval $ac_try) 2>&5 | |
37685 | ac_status=$? | |
37686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37687 | (exit $ac_status); }; } && | |
37688 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37690 | (eval $ac_try) 2>&5 | |
37691 | ac_status=$? | |
37692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37693 | (exit $ac_status); }; }; then | |
37694 | eval "$as_ac_var=yes" | |
37695 | else | |
37696 | echo "$as_me: failed program was:" >&5 | |
37697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37698 | ||
37699 | eval "$as_ac_var=no" | |
37700 | fi | |
32ddf007 VS |
37701 | rm -f conftest.err conftest.$ac_objext \ |
37702 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37703 | fi |
37704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37705 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37706 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37707 | cat >>confdefs.h <<_ACEOF | |
37708 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37709 | _ACEOF | |
2b5f62a0 | 37710 | have_sin=1 |
2b5f62a0 VZ |
37711 | fi |
37712 | done | |
37713 | ||
e6cc62c6 VS |
37714 | |
37715 | for ac_func in ceil | |
2b5f62a0 | 37716 | do |
e6cc62c6 VS |
37717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
37718 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37720 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37722 | else | |
37723 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
37724 | /* confdefs.h. */ |
37725 | _ACEOF | |
37726 | cat confdefs.h >>conftest.$ac_ext | |
37727 | cat >>conftest.$ac_ext <<_ACEOF | |
37728 | /* end confdefs.h. */ | |
32ddf007 VS |
37729 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37731 | #define $ac_func innocuous_$ac_func | |
37732 | ||
2b5f62a0 | 37733 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
37734 | which can conflict with char $ac_func (); below. |
37735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37736 | <limits.h> exists even on freestanding compilers. */ | |
32ddf007 | 37737 | |
e6cc62c6 VS |
37738 | #ifdef __STDC__ |
37739 | # include <limits.h> | |
37740 | #else | |
37741 | # include <assert.h> | |
37742 | #endif | |
32ddf007 VS |
37743 | |
37744 | #undef $ac_func | |
37745 | ||
2b5f62a0 | 37746 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
37747 | #ifdef __cplusplus |
37748 | extern "C" | |
37749 | { | |
37750 | #endif | |
2b5f62a0 | 37751 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
37752 | builtin and then its argument prototype would still apply. */ |
37753 | char $ac_func (); | |
2b5f62a0 VZ |
37754 | /* The GNU C library defines this for functions which it implements |
37755 | to always fail with ENOSYS. Some functions are actually named | |
37756 | something starting with __ and the normal name is an alias. */ | |
37757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37758 | choke me | |
37759 | #else | |
e6cc62c6 VS |
37760 | char (*f) () = $ac_func; |
37761 | #endif | |
37762 | #ifdef __cplusplus | |
37763 | } | |
2b5f62a0 VZ |
37764 | #endif |
37765 | ||
e6cc62c6 VS |
37766 | int |
37767 | main () | |
37768 | { | |
37769 | return f != $ac_func; | |
37770 | ; | |
37771 | return 0; | |
37772 | } | |
37773 | _ACEOF | |
37774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32ddf007 | 37776 | (eval $ac_link) 2>conftest.er1 |
e6cc62c6 | 37777 | ac_status=$? |
32ddf007 VS |
37778 | grep -v '^ *+' conftest.er1 >conftest.err |
37779 | rm -f conftest.er1 | |
37780 | cat conftest.err >&5 | |
e6cc62c6 VS |
37781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37782 | (exit $ac_status); } && | |
32ddf007 VS |
37783 | { ac_try='test -z "$ac_c_werror_flag" |
37784 | || test ! -s conftest.err' | |
37785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37786 | (eval $ac_try) 2>&5 | |
37787 | ac_status=$? | |
37788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37789 | (exit $ac_status); }; } && | |
37790 | { ac_try='test -s conftest$ac_exeext' | |
e6cc62c6 VS |
37791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37792 | (eval $ac_try) 2>&5 | |
37793 | ac_status=$? | |
37794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37795 | (exit $ac_status); }; }; then | |
37796 | eval "$as_ac_var=yes" | |
37797 | else | |
37798 | echo "$as_me: failed program was:" >&5 | |
37799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37800 | ||
37801 | eval "$as_ac_var=no" | |
37802 | fi | |
32ddf007 VS |
37803 | rm -f conftest.err conftest.$ac_objext \ |
37804 | conftest$ac_exeext conftest.$ac_ext | |
e6cc62c6 VS |
37805 | fi |
37806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37807 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37808 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37809 | cat >>confdefs.h <<_ACEOF | |
37810 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37811 | _ACEOF | |
2b5f62a0 | 37812 | have_ceil=1 |
2b5f62a0 VZ |
37813 | fi |
37814 | done | |
37815 | ||
e6cc62c6 VS |
37816 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
37817 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 37818 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
37819 | echo "$as_me:$LINENO: result: yes" >&5 |
37820 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 37821 | else |
e6cc62c6 VS |
37822 | echo "$as_me:$LINENO: result: no" >&5 |
37823 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
37824 | # not sure we should warn the user, crash, etc. |
37825 | fi | |
37826 | fi | |
8284b0c5 MB |
37827 | |
37828 | if test "$wxUSE_GUI" = "yes"; then | |
37829 | ||
e6cc62c6 | 37830 | |
8284b0c5 MB |
37831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
37832 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 37833 | minimal propsize rotate shaped widgets render" |
b625909c VS |
37834 | |
37835 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37836 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37837 | fi | |
8284b0c5 MB |
37838 | else |
37839 | SAMPLES_SUBDIRS="console" | |
37840 | fi | |
37841 | ||
37842 | ||
e6cc62c6 | 37843 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 37844 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 37845 | |
fddeb06b VS |
37846 | if test "$GXX" = yes ; then |
37847 | CXXWARNINGS="-Wall" | |
37848 | fi | |
37849 | ||
37850 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37851 | ||
95318f7d | 37852 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
37853 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
37854 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
37855 | |
37856 | ||
fddeb06b | 37857 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 37858 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 37859 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 37860 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 37861 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
37862 | if test "$wxUSE_GUI" = "yes"; then |
37863 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
37864 | fi | |
34b08d2c VS |
37865 | if test "$wxUSE_OPENGL" = "yes"; then |
37866 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37867 | fi | |
fddeb06b VS |
37868 | |
37869 | LDFLAGS="$LDFLAGS $PROFILE" | |
37870 | ||
8284b0c5 MB |
37871 | if test "$wxUSE_GTK" = 1; then |
37872 | WXCONFIG_INCLUDE= | |
37873 | else | |
37874 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37875 | fi | |
37876 | ||
67c13b6c VS |
37877 | WXCONFIG_EXTRALIBS="$LIBS" |
37878 | ||
37879 | if test "$wxUSE_REGEX" = "builtin" ; then | |
4996f261 | 37880 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" |
67c13b6c VS |
37881 | fi |
37882 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37883 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37884 | fi | |
37885 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37886 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37887 | fi | |
37888 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37889 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37890 | fi | |
37891 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37892 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37893 | fi | |
37894 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37895 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37896 | fi | |
37897 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37898 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37899 | fi | |
bb41dcbe VS |
37900 | if test "$wxUSE_ODBC" = "builtin" ; then |
37901 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37902 | fi | |
67c13b6c VS |
37903 | |
37904 | for i in $wxconfig_3rdparty ; do | |
37905 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
37906 | done | |
37907 | ||
37908 | ||
fe0895cf VS |
37909 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
37910 | WXUNIV=1 | |
37911 | else | |
37912 | WXUNIV=0 | |
8284b0c5 MB |
37913 | fi |
37914 | ||
8284b0c5 MB |
37915 | |
37916 | ||
37917 | ||
37918 | ||
37919 | ||
37920 | ||
37921 | ||
672abd7a | 37922 | |
9747f85d VS |
37923 | if test $wxUSE_MONOLITHIC = "yes" ; then |
37924 | MONOLITHIC=1 | |
37925 | else | |
37926 | MONOLITHIC=0 | |
37927 | fi | |
8284b0c5 | 37928 | |
f93ca9fd VS |
37929 | if test $wxUSE_PLUGINS = "yes" ; then |
37930 | USE_PLUGINS=1 | |
37931 | else | |
37932 | USE_PLUGINS=0 | |
37933 | fi | |
37934 | ||
bb41dcbe VS |
37935 | if test $wxUSE_ODBC != "no" ; then |
37936 | USE_ODBC=1 | |
37937 | else | |
37938 | USE_ODBC=0 | |
37939 | fi | |
37940 | ||
029b47ad VS |
37941 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
37942 | OFFICIAL_BUILD=1 | |
37943 | else | |
37944 | OFFICIAL_BUILD=0 | |
37945 | fi | |
37946 | ||
8ee2dd05 VS |
37947 | |
37948 | ||
37949 | ||
8284b0c5 MB |
37950 | |
37951 | ||
37952 | ||
37953 | ||
37954 | ||
37955 | ||
c74dc163 | 37956 | |
34b08d2c | 37957 | |
672abd7a | 37958 | |
cf615ebb | 37959 | |
6c67131a VS |
37960 | |
37961 | ||
bb41dcbe | 37962 | |
f93ca9fd VS |
37963 | |
37964 | ||
37965 | ||
3527f29c | 37966 | |
89fe663f | 37967 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
37968 | |
37969 | ||
37970 | ||
37971 | ||
37972 | ||
ea66c762 | 37973 | |
0f1bc9c2 | 37974 | |
f95e4495 VS |
37975 | if test "x$BAKEFILE_HOST" = "x"; then |
37976 | BAKEFILE_HOST="${host}" | |
37977 | fi | |
37978 | ||
fe0895cf | 37979 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
37980 | |
37981 | if test -n "$ac_tool_prefix"; then | |
37982 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37983 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37986 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 37988 | else |
fe0895cf VS |
37989 | if test -n "$RANLIB"; then |
37990 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 37991 | else |
e6cc62c6 VS |
37992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
37993 | for as_dir in $PATH | |
37994 | do | |
37995 | IFS=$as_save_IFS | |
37996 | test -z "$as_dir" && as_dir=. | |
37997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37998 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37999 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
38000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38001 | break 2 | |
38002 | fi | |
38003 | done | |
38004 | done | |
38005 | ||
10f2d63a | 38006 | fi |
10f2d63a | 38007 | fi |
e6cc62c6 | 38008 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 38009 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
38010 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
38011 | echo "${ECHO_T}$RANLIB" >&6 | |
38012 | else | |
38013 | echo "$as_me:$LINENO: result: no" >&5 | |
38014 | echo "${ECHO_T}no" >&6 | |
38015 | fi | |
38016 | ||
38017 | fi | |
38018 | if test -z "$ac_cv_prog_RANLIB"; then | |
38019 | ac_ct_RANLIB=$RANLIB | |
38020 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38021 | set dummy ranlib; ac_word=$2 | |
38022 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38024 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
38025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38026 | else | |
38027 | if test -n "$ac_ct_RANLIB"; then | |
38028 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38029 | else | |
38030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38031 | for as_dir in $PATH | |
38032 | do | |
38033 | IFS=$as_save_IFS | |
38034 | test -z "$as_dir" && as_dir=. | |
38035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38036 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38037 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
38038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38039 | break 2 | |
38040 | fi | |
38041 | done | |
38042 | done | |
38043 | ||
38044 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
38045 | fi | |
38046 | fi | |
38047 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38048 | if test -n "$ac_ct_RANLIB"; then | |
38049 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
38050 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 38051 | else |
e6cc62c6 VS |
38052 | echo "$as_me:$LINENO: result: no" >&5 |
38053 | echo "${ECHO_T}no" >&6 | |
38054 | fi | |
38055 | ||
38056 | RANLIB=$ac_ct_RANLIB | |
38057 | else | |
38058 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 38059 | fi |
665bbe97 | 38060 | |
fe0895cf VS |
38061 | # Find a good install program. We prefer a C program (faster), |
38062 | # so one script is as good as another. But avoid the broken or | |
38063 | # incompatible versions: | |
38064 | # SysV /etc/install, /usr/sbin/install | |
38065 | # SunOS /usr/etc/install | |
38066 | # IRIX /sbin/install | |
38067 | # AIX /bin/install | |
e6cc62c6 | 38068 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
38069 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
38070 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38071 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
32ddf007 | 38072 | # OS/2's system install, which has a completely different semantic |
fe0895cf | 38073 | # ./install, which can be erroneously created by make from ./install.sh. |
e6cc62c6 VS |
38074 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
38075 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 38076 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
38077 | if test "${ac_cv_path_install+set}" = set; then |
38078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38079 | else | |
38080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38081 | for as_dir in $PATH | |
38082 | do | |
38083 | IFS=$as_save_IFS | |
38084 | test -z "$as_dir" && as_dir=. | |
38085 | # Account for people who put trailing slashes in PATH elements. | |
38086 | case $as_dir/ in | |
38087 | ./ | .// | /cC/* | \ | |
38088 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
32ddf007 | 38089 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e6cc62c6 VS |
38090 | /usr/ucb/* ) ;; |
38091 | *) | |
38092 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38093 | # Don't use installbsd from OSF since it installs stuff as root | |
38094 | # by default. | |
38095 | for ac_prog in ginstall scoinst install; do | |
38096 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32ddf007 VS |
38097 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38098 | if test $ac_prog = install && | |
38099 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38100 | # AIX install. It has an incompatible calling convention. | |
38101 | : | |
38102 | elif test $ac_prog = install && | |
38103 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38104 | # program-specific install script used by HP pwplus--don't use. | |
38105 | : | |
38106 | else | |
38107 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38108 | break 3 | |
38109 | fi | |
38110 | fi | |
fe0895cf | 38111 | done |
e6cc62c6 VS |
38112 | done |
38113 | ;; | |
38114 | esac | |
38115 | done | |
38116 | ||
fe0895cf VS |
38117 | |
38118 | fi | |
38119 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 38120 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
38121 | else |
38122 | # As a last resort, use the slow shell script. We don't cache a | |
38123 | # path for INSTALL within a source directory, because that will | |
38124 | # break other packages using the cache if that directory is | |
38125 | # removed, or if the path is relative. | |
e6cc62c6 | 38126 | INSTALL=$ac_install_sh |
fe0895cf VS |
38127 | fi |
38128 | fi | |
e6cc62c6 VS |
38129 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
38130 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
38131 | |
38132 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38133 | # It thinks the first close brace ends the variable substitution. | |
38134 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38135 | ||
e6cc62c6 | 38136 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
38137 | |
38138 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38139 | ||
e6cc62c6 VS |
38140 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
38141 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38142 | LN_S=$as_ln_s | |
38143 | if test "$LN_S" = "ln -s"; then | |
38144 | echo "$as_me:$LINENO: result: yes" >&5 | |
38145 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 38146 | else |
e6cc62c6 VS |
38147 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
38148 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
38149 | fi |
38150 | ||
38151 | ||
e6cc62c6 VS |
38152 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
38153 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 38154 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
38155 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 38157 | else |
e6cc62c6 | 38158 | cat >conftest.make <<\_ACEOF |
fe0895cf | 38159 | all: |
e6cc62c6 VS |
38160 | @echo 'ac_maketemp="$(MAKE)"' |
38161 | _ACEOF | |
fe0895cf | 38162 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 38163 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
38164 | if test -n "$ac_maketemp"; then |
38165 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38166 | else | |
38167 | eval ac_cv_prog_make_${ac_make}_set=no | |
38168 | fi | |
e6cc62c6 | 38169 | rm -f conftest.make |
fe0895cf VS |
38170 | fi |
38171 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
38172 | echo "$as_me:$LINENO: result: yes" >&5 |
38173 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
38174 | SET_MAKE= |
38175 | else | |
e6cc62c6 VS |
38176 | echo "$as_me:$LINENO: result: no" >&5 |
38177 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38178 | SET_MAKE="MAKE=${MAKE-make}" |
38179 | fi | |
38180 | ||
e6cc62c6 VS |
38181 | |
38182 | ||
874d12cf VS |
38183 | if test -n "$ac_tool_prefix"; then |
38184 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38185 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
38186 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38187 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38188 | if test "${ac_cv_prog_AR+set}" = set; then | |
38189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38190 | else |
38191 | if test -n "$AR"; then | |
38192 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38193 | else | |
e6cc62c6 VS |
38194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38195 | for as_dir in $PATH | |
38196 | do | |
38197 | IFS=$as_save_IFS | |
38198 | test -z "$as_dir" && as_dir=. | |
38199 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 38201 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
38202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
38203 | break 2 | |
38204 | fi | |
38205 | done | |
38206 | done | |
38207 | ||
fe0895cf VS |
38208 | fi |
38209 | fi | |
e6cc62c6 | 38210 | AR=$ac_cv_prog_AR |
fe0895cf | 38211 | if test -n "$AR"; then |
e6cc62c6 VS |
38212 | echo "$as_me:$LINENO: result: $AR" >&5 |
38213 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 38214 | else |
e6cc62c6 VS |
38215 | echo "$as_me:$LINENO: result: no" >&5 |
38216 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38217 | fi |
38218 | ||
874d12cf VS |
38219 | fi |
38220 | if test -z "$ac_cv_prog_AR"; then | |
38221 | ac_ct_AR=$AR | |
38222 | # Extract the first word of "ar", so it can be a program name with args. | |
38223 | set dummy ar; ac_word=$2 | |
38224 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38225 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38226 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38228 | else | |
38229 | if test -n "$ac_ct_AR"; then | |
38230 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38231 | else | |
38232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38233 | for as_dir in $PATH | |
38234 | do | |
38235 | IFS=$as_save_IFS | |
38236 | test -z "$as_dir" && as_dir=. | |
38237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38238 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38239 | ac_cv_prog_ac_ct_AR="ar" | |
38240 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38241 | break 2 | |
38242 | fi | |
38243 | done | |
38244 | done | |
38245 | ||
38246 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38247 | fi | |
38248 | fi | |
38249 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38250 | if test -n "$ac_ct_AR"; then | |
38251 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38252 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38253 | else | |
38254 | echo "$as_me:$LINENO: result: no" >&5 | |
38255 | echo "${ECHO_T}no" >&6 | |
38256 | fi | |
38257 | ||
38258 | AR=$ac_ct_AR | |
38259 | else | |
38260 | AR="$ac_cv_prog_AR" | |
38261 | fi | |
38262 | ||
38263 | if test -n "$ac_tool_prefix"; then | |
38264 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38265 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
38266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38268 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38270 | else |
38271 | if test -n "$STRIP"; then | |
38272 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38273 | else | |
e6cc62c6 VS |
38274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38275 | for as_dir in $PATH | |
38276 | do | |
38277 | IFS=$as_save_IFS | |
38278 | test -z "$as_dir" && as_dir=. | |
38279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 38281 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
38282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
38283 | break 2 | |
38284 | fi | |
38285 | done | |
38286 | done | |
38287 | ||
fe0895cf VS |
38288 | fi |
38289 | fi | |
e6cc62c6 | 38290 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 38291 | if test -n "$STRIP"; then |
e6cc62c6 VS |
38292 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
38293 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 38294 | else |
e6cc62c6 VS |
38295 | echo "$as_me:$LINENO: result: no" >&5 |
38296 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38297 | fi |
38298 | ||
874d12cf VS |
38299 | fi |
38300 | if test -z "$ac_cv_prog_STRIP"; then | |
38301 | ac_ct_STRIP=$STRIP | |
38302 | # Extract the first word of "strip", so it can be a program name with args. | |
38303 | set dummy strip; ac_word=$2 | |
38304 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38305 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38306 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38308 | else | |
38309 | if test -n "$ac_ct_STRIP"; then | |
38310 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38311 | else | |
38312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38313 | for as_dir in $PATH | |
38314 | do | |
38315 | IFS=$as_save_IFS | |
38316 | test -z "$as_dir" && as_dir=. | |
38317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38318 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38319 | ac_cv_prog_ac_ct_STRIP="strip" | |
38320 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38321 | break 2 | |
38322 | fi | |
38323 | done | |
38324 | done | |
38325 | ||
38326 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38327 | fi | |
38328 | fi | |
38329 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38330 | if test -n "$ac_ct_STRIP"; then | |
38331 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38332 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38333 | else | |
38334 | echo "$as_me:$LINENO: result: no" >&5 | |
38335 | echo "${ECHO_T}no" >&6 | |
38336 | fi | |
38337 | ||
38338 | STRIP=$ac_ct_STRIP | |
38339 | else | |
38340 | STRIP="$ac_cv_prog_STRIP" | |
38341 | fi | |
38342 | ||
38343 | if test -n "$ac_tool_prefix"; then | |
38344 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38345 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38348 | if test "${ac_cv_prog_NM+set}" = set; then | |
38349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38350 | else | |
38351 | if test -n "$NM"; then | |
38352 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38353 | else | |
38354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38355 | for as_dir in $PATH | |
38356 | do | |
38357 | IFS=$as_save_IFS | |
38358 | test -z "$as_dir" && as_dir=. | |
38359 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38361 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38363 | break 2 | |
38364 | fi | |
38365 | done | |
38366 | done | |
38367 | ||
38368 | fi | |
38369 | fi | |
38370 | NM=$ac_cv_prog_NM | |
38371 | if test -n "$NM"; then | |
38372 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38373 | echo "${ECHO_T}$NM" >&6 | |
38374 | else | |
38375 | echo "$as_me:$LINENO: result: no" >&5 | |
38376 | echo "${ECHO_T}no" >&6 | |
38377 | fi | |
38378 | ||
38379 | fi | |
38380 | if test -z "$ac_cv_prog_NM"; then | |
38381 | ac_ct_NM=$NM | |
38382 | # Extract the first word of "nm", so it can be a program name with args. | |
38383 | set dummy nm; ac_word=$2 | |
38384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38386 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38388 | else | |
38389 | if test -n "$ac_ct_NM"; then | |
38390 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38391 | else | |
38392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38393 | for as_dir in $PATH | |
38394 | do | |
38395 | IFS=$as_save_IFS | |
38396 | test -z "$as_dir" && as_dir=. | |
38397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38399 | ac_cv_prog_ac_ct_NM="nm" | |
38400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38401 | break 2 | |
38402 | fi | |
38403 | done | |
38404 | done | |
38405 | ||
38406 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38407 | fi | |
38408 | fi | |
38409 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38410 | if test -n "$ac_ct_NM"; then | |
38411 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38412 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38413 | else | |
38414 | echo "$as_me:$LINENO: result: no" >&5 | |
38415 | echo "${ECHO_T}no" >&6 | |
38416 | fi | |
38417 | ||
38418 | NM=$ac_ct_NM | |
38419 | else | |
38420 | NM="$ac_cv_prog_NM" | |
38421 | fi | |
38422 | ||
fe0895cf | 38423 | |
f95e4495 | 38424 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
38425 | *-hp-hpux* ) |
38426 | INSTALL_DIR="mkdir" | |
38427 | ;; | |
38428 | *) INSTALL_DIR="$INSTALL -d" | |
38429 | ;; | |
38430 | esac | |
e6cc62c6 | 38431 | |
fe0895cf | 38432 | |
6b9d41a5 | 38433 | LDFLAGS_GUI= |
f95e4495 | 38434 | case ${BAKEFILE_HOST} in |
6b9d41a5 VS |
38435 | *-*-cygwin* | *-*-mingw32* ) |
38436 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
38437 | esac | |
38438 | ||
38439 | ||
fe0895cf | 38440 | fi |
e6cc62c6 VS |
38441 | |
38442 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38443 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 38444 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 38445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 38446 | else |
e6cc62c6 | 38447 | |
fe0895cf VS |
38448 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
38449 | egrep -s GNU > /dev/null); then | |
38450 | bakefile_cv_prog_makeisgnu="yes" | |
38451 | else | |
38452 | bakefile_cv_prog_makeisgnu="no" | |
38453 | fi | |
fe0895cf | 38454 | |
e6cc62c6 | 38455 | fi |
49b0a3aa VS |
38456 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
38457 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
38458 | |
38459 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38460 | IF_GNU_MAKE="" | |
38461 | else | |
38462 | IF_GNU_MAKE="#" | |
38463 | fi | |
fe0895cf | 38464 | |
e6cc62c6 VS |
38465 | |
38466 | ||
fe0895cf VS |
38467 | PLATFORM_UNIX=0 |
38468 | PLATFORM_WIN32=0 | |
38469 | PLATFORM_MSDOS=0 | |
38470 | PLATFORM_MAC=0 | |
38471 | PLATFORM_MACOSX=0 | |
96c1699d | 38472 | PLATFORM_OS2=0 |
e6cc62c6 | 38473 | |
f95e4495 VS |
38474 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then |
38475 | case "${BAKEFILE_HOST}" in | |
38476 | *-*-cygwin* | *-*-mingw32* ) | |
38477 | PLATFORM_WIN32=1 | |
38478 | ;; | |
38479 | *-pc-msdosdjgpp ) | |
38480 | PLATFORM_MSDOS=1 | |
38481 | ;; | |
38482 | *-pc-os2_emx | *-pc-os2-emx ) | |
38483 | PLATFORM_OS2=1 | |
38484 | ;; | |
38485 | powerpc-*-darwin* ) | |
38486 | PLATFORM_MAC=1 | |
38487 | PLATFORM_MACOSX=1 | |
38488 | ;; | |
38489 | * ) | |
38490 | PLATFORM_UNIX=1 | |
38491 | ;; | |
38492 | esac | |
38493 | else | |
38494 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38495 | win32 ) | |
38496 | PLATFORM_WIN32=1 | |
38497 | ;; | |
38498 | msdos ) | |
38499 | PLATFORM_MSDOS=1 | |
38500 | ;; | |
38501 | os2 ) | |
38502 | PLATFORM_OS2=1 | |
38503 | ;; | |
38504 | darwin ) | |
38505 | PLATFORM_MAC=1 | |
38506 | PLATFORM_MACOSX=1 | |
38507 | ;; | |
38508 | unix ) | |
38509 | PLATFORM_UNIX=1 | |
38510 | ;; | |
38511 | * ) | |
38512 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38513 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38514 | { (exit 1); exit 1; }; } | |
38515 | ;; | |
38516 | esac | |
38517 | fi | |
fe0895cf | 38518 | |
fe0895cf | 38519 | |
e6cc62c6 VS |
38520 | |
38521 | ||
38522 | ||
38523 | ||
38524 | ||
38525 | ||
96c1699d | 38526 | |
fe0895cf | 38527 | SO_SUFFIX="so" |
131f235d | 38528 | SO_SUFFIX_MODULE="so" |
fe0895cf | 38529 | EXEEXT="" |
4b1f6360 | 38530 | LIBPREFIX=lib |
fe0895cf | 38531 | DLLPREFIX=lib |
131f235d | 38532 | DLLPREFIX_MODULE= |
e6cc62c6 | 38533 | |
f95e4495 | 38534 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38535 | *-hp-hpux* ) |
38536 | SO_SUFFIX="sl" | |
131f235d | 38537 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
38538 | ;; |
38539 | *-*-aix* ) | |
38540 | SO_SUFFIX="a" | |
131f235d | 38541 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
38542 | ;; |
38543 | *-*-cygwin* | *-*-mingw32* ) | |
38544 | SO_SUFFIX="dll" | |
131f235d | 38545 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
38546 | EXEEXT=".exe" |
38547 | DLLPREFIX="" | |
38548 | ;; | |
4b1f6360 VS |
38549 | *-pc-msdosdjgpp ) |
38550 | EXEEXT=".exe" | |
38551 | DLLPREFIX="" | |
38552 | ;; | |
38553 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
38554 | EXEEXT=".exe" |
38555 | DLLPREFIX="" | |
4b1f6360 | 38556 | LIBPREFIX="" |
fe0895cf VS |
38557 | ;; |
38558 | powerpc-*-darwin* ) | |
38559 | SO_SUFFIX="dylib" | |
131f235d | 38560 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
38561 | ;; |
38562 | esac | |
38563 | ||
fe0895cf | 38564 | |
e6cc62c6 VS |
38565 | |
38566 | ||
38567 | ||
38568 | ||
131f235d VS |
38569 | |
38570 | ||
4b1f6360 | 38571 | |
fe0895cf VS |
38572 | SHARED_LD_CC="\$(CC) -shared -o" |
38573 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38574 | ||
38575 | if test "x$GCC" = "xyes"; then | |
38576 | PIC_FLAG="-fPIC" | |
38577 | fi | |
38578 | ||
f95e4495 | 38579 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38580 | *-hp-hpux* ) |
38581 | if test "x$GCC" = "xyes"; then | |
38582 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38583 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38584 | else | |
38585 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38586 | ||
38587 | SHARED_LD_CC="${CC} -b -o" | |
38588 | SHARED_LD_CXX="${CXX} -b -o" | |
38589 | PIC_FLAG="+Z" | |
38590 | fi | |
38591 | ;; | |
38592 | ||
38593 | *-*-linux* ) | |
38594 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
38595 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
38596 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38597 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 38599 | else |
fe0895cf | 38600 | |
e6cc62c6 | 38601 | cat >conftest.$ac_ext <<_ACEOF |
e6cc62c6 VS |
38602 | /* confdefs.h. */ |
38603 | _ACEOF | |
38604 | cat confdefs.h >>conftest.$ac_ext | |
38605 | cat >>conftest.$ac_ext <<_ACEOF | |
38606 | /* end confdefs.h. */ | |
38607 | ||
38608 | int | |
38609 | main () | |
38610 | { | |
fe0895cf VS |
38611 | |
38612 | #ifndef __INTEL_COMPILER | |
38613 | #error Not icc | |
38614 | #endif | |
e6cc62c6 VS |
38615 | |
38616 | ; | |
38617 | return 0; | |
38618 | } | |
38619 | _ACEOF | |
38620 | rm -f conftest.$ac_objext | |
38621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38622 | (eval $ac_compile) 2>conftest.er1 |
e6cc62c6 | 38623 | ac_status=$? |
32ddf007 VS |
38624 | grep -v '^ *+' conftest.er1 >conftest.err |
38625 | rm -f conftest.er1 | |
38626 | cat conftest.err >&5 | |
e6cc62c6 VS |
38627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38628 | (exit $ac_status); } && | |
32ddf007 VS |
38629 | { ac_try='test -z "$ac_c_werror_flag" |
38630 | || test ! -s conftest.err' | |
38631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38632 | (eval $ac_try) 2>&5 | |
38633 | ac_status=$? | |
38634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38635 | (exit $ac_status); }; } && | |
38636 | { ac_try='test -s conftest.$ac_objext' | |
e6cc62c6 VS |
38637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38638 | (eval $ac_try) 2>&5 | |
38639 | ac_status=$? | |
38640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38641 | (exit $ac_status); }; }; then | |
fe0895cf VS |
38642 | bakefile_cv_prog_icc=yes |
38643 | else | |
e6cc62c6 VS |
38644 | echo "$as_me: failed program was:" >&5 |
38645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38646 | ||
38647 | bakefile_cv_prog_icc=no | |
38648 | ||
fe0895cf | 38649 | fi |
32ddf007 | 38650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 38651 | |
e6cc62c6 VS |
38652 | fi |
38653 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38654 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
38655 | if test "$bakefile_cv_prog_icc" = "yes"; then |
38656 | PIC_FLAG="-KPIC" | |
38657 | fi | |
38658 | fi | |
38659 | ;; | |
38660 | ||
38661 | *-*-solaris2* ) | |
38662 | if test "x$GCC" != xyes ; then | |
38663 | SHARED_LD_CC="${CC} -G -o" | |
38664 | SHARED_LD_CXX="${CXX} -G -o" | |
38665 | PIC_FLAG="-KPIC" | |
38666 | fi | |
38667 | ;; | |
38668 | ||
38669 | *-*-darwin* ) | |
38670 | CFLAGS="$CFLAGS -fno-common" | |
38671 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
38672 | |
38673 | ||
2a879853 | 38674 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
38675 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
38676 | if test "${wx_cv_gcc31+set}" = set; then | |
38677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38678 | else | |
38679 | ||
2a879853 | 38680 | cat >conftest.$ac_ext <<_ACEOF |
43948499 RD |
38681 | /* confdefs.h. */ |
38682 | _ACEOF | |
38683 | cat confdefs.h >>conftest.$ac_ext | |
38684 | cat >>conftest.$ac_ext <<_ACEOF | |
38685 | /* end confdefs.h. */ | |
38686 | ||
38687 | int | |
38688 | main () | |
38689 | { | |
38690 | ||
2a879853 VS |
38691 | #if (__GNUC__ < 3) || \ |
38692 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38693 | #error old gcc | |
38694 | #endif | |
43948499 RD |
38695 | |
38696 | ; | |
38697 | return 0; | |
38698 | } | |
38699 | _ACEOF | |
38700 | rm -f conftest.$ac_objext | |
38701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 38702 | (eval $ac_compile) 2>conftest.er1 |
43948499 | 38703 | ac_status=$? |
32ddf007 VS |
38704 | grep -v '^ *+' conftest.er1 >conftest.err |
38705 | rm -f conftest.er1 | |
38706 | cat conftest.err >&5 | |
43948499 RD |
38707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38708 | (exit $ac_status); } && | |
32ddf007 VS |
38709 | { ac_try='test -z "$ac_c_werror_flag" |
38710 | || test ! -s conftest.err' | |
38711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38712 | (eval $ac_try) 2>&5 | |
38713 | ac_status=$? | |
38714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38715 | (exit $ac_status); }; } && | |
38716 | { ac_try='test -s conftest.$ac_objext' | |
43948499 RD |
38717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38718 | (eval $ac_try) 2>&5 | |
38719 | ac_status=$? | |
38720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38721 | (exit $ac_status); }; }; then | |
38722 | ||
2a879853 | 38723 | wx_cv_gcc31=yes |
43948499 RD |
38724 | |
38725 | else | |
38726 | echo "$as_me: failed program was:" >&5 | |
38727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38728 | ||
38729 | ||
2a879853 | 38730 | wx_cv_gcc31=no |
43948499 RD |
38731 | |
38732 | ||
38733 | fi | |
32ddf007 | 38734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
38735 | |
38736 | fi | |
38737 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38738 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 38739 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 38740 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
38741 | #!/bin/sh |
38742 | #----------------------------------------------------------------------------- | |
38743 | #-- Name: distrib/mac/shared-ld-sh | |
38744 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38745 | #-- Author: Gilles Depeyrot | |
38746 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38747 | #-- Licence: any use permitted | |
38748 | #----------------------------------------------------------------------------- | |
38749 | ||
38750 | verbose=0 | |
38751 | args="" | |
38752 | objects="" | |
131f235d | 38753 | linking_flag="-dynamiclib" |
fe0895cf VS |
38754 | |
38755 | while test \${#} -gt 0; do | |
38756 | case \${1} in | |
38757 | ||
38758 | -v) | |
38759 | verbose=1 | |
38760 | ;; | |
38761 | ||
38762 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38763 | # collect these options and values | |
38764 | args="\${args} \${1} \${2}" | |
38765 | shift | |
38766 | ;; | |
38767 | ||
74500461 | 38768 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
38769 | # collect these options |
38770 | args="\${args} \${1}" | |
38771 | ;; | |
38772 | ||
131f235d VS |
38773 | -dynamiclib|-bundle) |
38774 | linking_flag="\${1}" | |
fe0895cf VS |
38775 | ;; |
38776 | ||
38777 | -*) | |
38778 | echo "shared-ld: unhandled option '\${1}'" | |
38779 | exit 1 | |
38780 | ;; | |
38781 | ||
4d264332 | 38782 | *.o | *.a | *.dylib) |
fe0895cf VS |
38783 | # collect object files |
38784 | objects="\${objects} \${1}" | |
38785 | ;; | |
38786 | ||
38787 | *) | |
38788 | echo "shared-ld: unhandled argument '\${1}'" | |
38789 | exit 1 | |
38790 | ;; | |
38791 | ||
38792 | esac | |
38793 | shift | |
38794 | done | |
38795 | ||
38796 | # | |
38797 | # Link one module containing all the others | |
38798 | # | |
38799 | if test \${verbose} = 1; then | |
38800 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
38801 | fi | |
38802 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
38803 | status=\$? | |
38804 | if test \${status} != 0; then | |
38805 | exit \${status} | |
38806 | fi | |
38807 | ||
38808 | # | |
38809 | # Link the shared library from the single module created | |
38810 | # | |
38811 | if test \${verbose} = 1; then | |
2a879853 | 38812 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 38813 | fi |
131f235d | 38814 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
38815 | status=\$? |
38816 | if test \${status} != 0; then | |
38817 | exit \${status} | |
38818 | fi | |
38819 | ||
38820 | # | |
38821 | # Remove intermediate module | |
38822 | # | |
38823 | rm -f master.\$\$.o | |
38824 | ||
38825 | exit 0 | |
38826 | EOF | |
43948499 | 38827 | chmod +x shared-ld-sh |
fe0895cf | 38828 | |
7f523214 VS |
38829 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
38830 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
38831 | SHARED_LD_CXX="$SHARED_LD_CC" |
38832 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38833 | else | |
7f523214 VS |
38834 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
38835 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38836 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38837 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
38838 | fi |
38839 | ||
fe0895cf | 38840 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 38841 | ;; |
fe0895cf VS |
38842 | |
38843 | *-*-aix* ) | |
38844 | if test "x$GCC" != "xyes"; then | |
38845 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38846 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
38847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
38848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38849 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
38851 | else |
38852 | if test -n "$AIX_CXX_LD"; then | |
38853 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38854 | else | |
e6cc62c6 VS |
38855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
38856 | for as_dir in $PATH | |
38857 | do | |
38858 | IFS=$as_save_IFS | |
38859 | test -z "$as_dir" && as_dir=. | |
38860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38862 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38864 | break 2 | |
38865 | fi | |
38866 | done | |
38867 | done | |
38868 | ||
fe0895cf VS |
38869 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
38870 | fi | |
38871 | fi | |
e6cc62c6 | 38872 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 38873 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
38874 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
38875 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 38876 | else |
e6cc62c6 VS |
38877 | echo "$as_me:$LINENO: result: no" >&5 |
38878 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
38879 | fi |
38880 | ||
38881 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38882 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38883 | fi | |
38884 | ;; | |
38885 | ||
38886 | *-*-beos* ) | |
38887 | SHARED_LD_CC="${LD} -shared -o" | |
38888 | SHARED_LD_CXX="${LD} -shared -o" | |
38889 | ;; | |
38890 | ||
38891 | *-*-irix* ) | |
38892 | if test "x$GCC" != "xyes"; then | |
38893 | PIC_FLAG="-KPIC" | |
38894 | fi | |
38895 | ;; | |
e6cc62c6 | 38896 | |
fe0895cf VS |
38897 | *-*-cygwin* | *-*-mingw32* ) |
38898 | PIC_FLAG="" | |
38899 | ;; | |
e6cc62c6 | 38900 | |
fe0895cf VS |
38901 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
38902 | *-*-sunos4* | \ | |
38903 | *-*-osf* | \ | |
38904 | *-*-dgux5* | \ | |
4b1f6360 | 38905 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
38906 | *-*-sysv5* ) |
38907 | ;; | |
38908 | ||
38909 | *) | |
f95e4495 VS |
38910 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 |
38911 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
e6cc62c6 | 38912 | { (exit 1); exit 1; }; } |
fe0895cf VS |
38913 | esac |
38914 | ||
131f235d VS |
38915 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
38916 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
38917 | fi | |
38918 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 38919 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
38920 | fi |
38921 | ||
38922 | ||
38923 | ||
fe0895cf | 38924 | |
e6cc62c6 VS |
38925 | |
38926 | ||
38927 | ||
38928 | ||
fe0895cf VS |
38929 | USE_SOVERSION=0 |
38930 | USE_SOVERLINUX=0 | |
38931 | USE_SOVERSOLARIS=0 | |
38932 | USE_SOSYMLINKS=0 | |
38933 | USE_MACVERSION=0 | |
38934 | SONAME_FLAG= | |
38935 | ||
f95e4495 | 38936 | case "${BAKEFILE_HOST}" in |
fe0895cf VS |
38937 | *-*-linux* ) |
38938 | SONAME_FLAG="-Wl,-soname," | |
38939 | USE_SOVERSION=1 | |
38940 | USE_SOVERLINUX=1 | |
38941 | USE_SOSYMLINKS=1 | |
38942 | ;; | |
38943 | ||
38944 | *-*-solaris2* ) | |
38945 | SONAME_FLAG="-h " | |
38946 | USE_SOVERSION=1 | |
38947 | USE_SOVERSOLARIS=1 | |
38948 | USE_SOSYMLINKS=1 | |
38949 | ;; | |
38950 | ||
38951 | *-*-darwin* ) | |
38952 | USE_MACVERSION=1 | |
38953 | USE_SOVERSION=1 | |
38954 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 38955 | ;; |
fe0895cf VS |
38956 | esac |
38957 | ||
fe0895cf | 38958 | |
e6cc62c6 VS |
38959 | |
38960 | ||
38961 | ||
38962 | ||
38963 | ||
38964 | ||
38965 | ||
49b0a3aa VS |
38966 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
38967 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
38968 | DEPS_TRACKING=0 | |
38969 | ||
fe0895cf | 38970 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
38971 | DEPSMODE=gcc |
38972 | DEPS_TRACKING=1 | |
f95e4495 | 38973 | case "${BAKEFILE_HOST}" in |
3e5c3c83 VS |
38974 | powerpc-*-darwin* ) |
38975 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
38976 | ;; | |
38977 | * ) | |
38978 | DEPSFLAG_GCC="-MMD" | |
38979 | ;; | |
38980 | esac | |
49b0a3aa VS |
38981 | echo "$as_me:$LINENO: result: gcc" >&5 |
38982 | echo "${ECHO_T}gcc" >&6 | |
38983 | else | |
38984 | echo "$as_me:$LINENO: result: none" >&5 | |
38985 | echo "${ECHO_T}none" >&6 | |
38986 | fi | |
38987 | ||
38988 | if test $DEPS_TRACKING = 1 ; then | |
38989 | cat <<EOF >bk-deps | |
38990 | #!/bin/sh | |
38991 | ||
45842500 VS |
38992 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
38993 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
38994 | # |
38995 | # Permission is given to use this file in any way. | |
38996 | ||
38997 | DEPSMODE=$DEPSMODE | |
38998 | DEPSDIR=.deps | |
3e5c3c83 | 38999 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
39000 | |
39001 | mkdir -p \$DEPSDIR | |
39002 | ||
39003 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 39004 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
39005 | status=\${?} |
39006 | if test \${status} != 0 ; then | |
39007 | exit \${status} | |
39008 | fi | |
39009 | # move created file to the location we want it in: | |
39010 | while test \${#} -gt 0; do | |
39011 | case "\${1}" in | |
39012 | -o ) | |
39013 | shift | |
39014 | objfile=\${1} | |
39015 | ;; | |
39016 | -* ) | |
39017 | ;; | |
39018 | * ) | |
39019 | srcfile=\${1} | |
39020 | ;; | |
39021 | esac | |
39022 | shift | |
39023 | done | |
39024 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
39025 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
39026 | if test -f \$depfile ; then |
39027 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
39028 | rm -f \$depfile | |
39029 | else | |
39030 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
39031 | if test -f \$depfile ; then | |
9d0be83a | 39032 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
39033 | rm -f \$depfile |
39034 | fi | |
39035 | fi | |
49b0a3aa VS |
39036 | exit 0 |
39037 | else | |
39038 | \${*} | |
39039 | exit \${?} | |
39040 | fi | |
39041 | EOF | |
39042 | chmod +x bk-deps | |
fe0895cf | 39043 | fi |
fe0895cf | 39044 | |
e6cc62c6 VS |
39045 | |
39046 | ||
39047 | ||
fe0895cf VS |
39048 | RESCOMP= |
39049 | SETFILE= | |
39050 | ||
f95e4495 | 39051 | case ${BAKEFILE_HOST} in |
fe0895cf VS |
39052 | *-*-cygwin* | *-*-mingw32* ) |
39053 | if test "$build" != "$host" ; then | |
39054 | RESCOMP=$host_alias-windres | |
39055 | else | |
39056 | # Extract the first word of "windres", so it can be a program name with args. | |
39057 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
39058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
39059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39060 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
39062 | else |
39063 | if test -n "$RESCOMP"; then | |
39064 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39065 | else | |
e6cc62c6 VS |
39066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
39067 | for as_dir in $PATH | |
39068 | do | |
39069 | IFS=$as_save_IFS | |
39070 | test -z "$as_dir" && as_dir=. | |
39071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39073 | ac_cv_prog_RESCOMP="windres" | |
39074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39075 | break 2 | |
39076 | fi | |
39077 | done | |
39078 | done | |
39079 | ||
fe0895cf VS |
39080 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
39081 | fi | |
39082 | fi | |
e6cc62c6 | 39083 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 39084 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
39085 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
39086 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 39087 | else |
e6cc62c6 VS |
39088 | echo "$as_me:$LINENO: result: no" >&5 |
39089 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
39090 | fi |
39091 | ||
39092 | fi | |
39093 | ;; | |
e6cc62c6 | 39094 | |
fe0895cf VS |
39095 | *-*-darwin* ) |
39096 | # Extract the first word of "Rez", so it can be a program name with args. | |
39097 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
39098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
39099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39100 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
39102 | else |
39103 | if test -n "$RESCOMP"; then | |
39104 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39105 | else | |
e6cc62c6 VS |
39106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
39107 | for as_dir in $PATH | |
39108 | do | |
39109 | IFS=$as_save_IFS | |
39110 | test -z "$as_dir" && as_dir=. | |
39111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39113 | ac_cv_prog_RESCOMP="Rez" | |
39114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39115 | break 2 | |
39116 | fi | |
39117 | done | |
39118 | done | |
39119 | ||
fe0895cf VS |
39120 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
39121 | fi | |
39122 | fi | |
e6cc62c6 | 39123 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 39124 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
39125 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
39126 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 39127 | else |
e6cc62c6 VS |
39128 | echo "$as_me:$LINENO: result: no" >&5 |
39129 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
39130 | fi |
39131 | ||
39132 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39133 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
39134 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
39135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39136 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
39138 | else |
39139 | if test -n "$SETFILE"; then | |
39140 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39141 | else | |
e6cc62c6 VS |
39142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
39143 | for as_dir in $PATH | |
39144 | do | |
39145 | IFS=$as_save_IFS | |
39146 | test -z "$as_dir" && as_dir=. | |
39147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39148 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39149 | ac_cv_prog_SETFILE="SetFile" | |
39150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39151 | break 2 | |
39152 | fi | |
39153 | done | |
39154 | done | |
39155 | ||
fe0895cf VS |
39156 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
39157 | fi | |
39158 | fi | |
e6cc62c6 | 39159 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 39160 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
39161 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
39162 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 39163 | else |
e6cc62c6 VS |
39164 | echo "$as_me:$LINENO: result: no" >&5 |
39165 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
39166 | fi |
39167 | ||
39168 | ;; | |
39169 | esac | |
39170 | ||
fe0895cf VS |
39171 | |
39172 | ||
e6cc62c6 VS |
39173 | |
39174 | ||
39175 | ||
39176 | ||
45842500 | 39177 | |
ecfd48ca VZ |
39178 | |
39179 | ||
45842500 VS |
39180 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39181 | if test "${enable_precomp_headers+set}" = set; then | |
39182 | enableval="$enable_precomp_headers" | |
39183 | bk_use_pch="$enableval" | |
39184 | fi; | |
39185 | ||
39186 | GCC_PCH=0 | |
39187 | ||
39188 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39189 | if test "x$GCC" = "xyes"; then | |
39190 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39191 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39192 | cat >conftest.$ac_ext <<_ACEOF | |
45842500 VS |
39193 | /* confdefs.h. */ |
39194 | _ACEOF | |
39195 | cat confdefs.h >>conftest.$ac_ext | |
39196 | cat >>conftest.$ac_ext <<_ACEOF | |
39197 | /* end confdefs.h. */ | |
39198 | ||
39199 | int | |
39200 | main () | |
39201 | { | |
39202 | ||
8bcf2d20 VS |
39203 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
39204 | #error "no pch support" | |
39205 | #endif | |
39206 | #if (__GNUC__ < 3) | |
39207 | #error "no pch support" | |
39208 | #endif | |
39209 | #if (__GNUC__ == 3) && \ | |
39210 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39211 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39212 | #error "no pch support" | |
45842500 VS |
39213 | #endif |
39214 | ||
39215 | ; | |
39216 | return 0; | |
39217 | } | |
39218 | _ACEOF | |
39219 | rm -f conftest.$ac_objext | |
39220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32ddf007 | 39221 | (eval $ac_compile) 2>conftest.er1 |
45842500 | 39222 | ac_status=$? |
32ddf007 VS |
39223 | grep -v '^ *+' conftest.er1 >conftest.err |
39224 | rm -f conftest.er1 | |
39225 | cat conftest.err >&5 | |
45842500 VS |
39226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39227 | (exit $ac_status); } && | |
32ddf007 VS |
39228 | { ac_try='test -z "$ac_c_werror_flag" |
39229 | || test ! -s conftest.err' | |
39230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39231 | (eval $ac_try) 2>&5 | |
39232 | ac_status=$? | |
39233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39234 | (exit $ac_status); }; } && | |
39235 | { ac_try='test -s conftest.$ac_objext' | |
45842500 VS |
39236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39237 | (eval $ac_try) 2>&5 | |
39238 | ac_status=$? | |
39239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39240 | (exit $ac_status); }; }; then | |
39241 | ||
39242 | echo "$as_me:$LINENO: result: yes" >&5 | |
39243 | echo "${ECHO_T}yes" >&6 | |
39244 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
39245 | GCC_PCH=1 | |
39246 | ||
39247 | else | |
39248 | echo "$as_me: failed program was:" >&5 | |
39249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39250 | ||
39251 | ||
39252 | echo "$as_me:$LINENO: result: no" >&5 | |
39253 | echo "${ECHO_T}no" >&6 | |
39254 | ||
39255 | fi | |
32ddf007 | 39256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
39257 | if test $GCC_PCH = 1 ; then |
39258 | cat <<EOF >bk-make-pch | |
39259 | #!/bin/sh | |
39260 | ||
39261 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39262 | # script. It is used to generated precompiled headers. | |
39263 | # | |
39264 | # Permission is given to use this file in any way. | |
39265 | ||
39266 | outfile="\${1}" | |
39267 | header="\${2}" | |
39268 | shift | |
39269 | shift | |
39270 | ||
39271 | compiler= | |
39272 | headerfile= | |
39273 | while test \${#} -gt 0; do | |
39274 | case "\${1}" in | |
39275 | -I* ) | |
39276 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39277 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39278 | headerfile="\${incdir}/\${header}" | |
39279 | fi | |
39280 | ;; | |
39281 | esac | |
39282 | compiler="\${compiler} \${1}" | |
39283 | shift | |
39284 | done | |
39285 | ||
39286 | if test "x\${headerfile}" = "x" ; then | |
39287 | echo "error: can't find header \${header} in include paths" >2 | |
39288 | else | |
39289 | if test -f \${outfile} ; then | |
39290 | rm -f \${outfile} | |
39291 | else | |
39292 | mkdir -p \`dirname \${outfile}\` | |
39293 | fi | |
39294 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39295 | mkdir -p .deps | |
39296 | # can do this because gcc is >= 3.4: | |
39297 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39298 | exit \${?} | |
39299 | fi | |
39300 | EOF | |
39301 | chmod +x bk-make-pch | |
39302 | fi | |
39303 | fi | |
39304 | fi | |
39305 | ||
39306 | ||
39307 | ||
39308 | ||
39309 | ||
d78c94f2 | 39310 | COND_BUILD_DEBUG="#" |
6f628073 | 39311 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 39312 | COND_BUILD_DEBUG="" |
6f628073 VS |
39313 | fi |
39314 | ||
6c67131a VS |
39315 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
39316 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39317 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39318 | fi | |
39319 | ||
39320 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39321 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39322 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39323 | fi | |
39324 | ||
f93ca9fd VS |
39325 | COND_BUILD_DEBUG_UNICODE_0="#" |
39326 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39327 | COND_BUILD_DEBUG_UNICODE_0="" | |
39328 | fi | |
39329 | ||
39330 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39331 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39332 | COND_BUILD_DEBUG_UNICODE_1="" | |
39333 | fi | |
39334 | ||
d78c94f2 | 39335 | COND_BUILD_RELEASE="#" |
6f628073 | 39336 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 39337 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
39338 | fi |
39339 | ||
6c67131a VS |
39340 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
39341 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39342 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39343 | fi | |
39344 | ||
f93ca9fd VS |
39345 | COND_BUILD_RELEASE_UNICODE_0="#" |
39346 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39347 | COND_BUILD_RELEASE_UNICODE_0="" | |
39348 | fi | |
39349 | ||
39350 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39351 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39352 | COND_BUILD_RELEASE_UNICODE_1="" | |
39353 | fi | |
39354 | ||
6c67131a VS |
39355 | COND_DEBUG_FLAG_1="#" |
39356 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39357 | COND_DEBUG_FLAG_1="" | |
39358 | fi | |
39359 | ||
39360 | COND_DEBUG_INFO_0="#" | |
39361 | if test "x$DEBUG_INFO" = "x0" ; then | |
39362 | COND_DEBUG_INFO_0="" | |
39363 | fi | |
39364 | ||
39365 | COND_DEBUG_INFO_1="#" | |
39366 | if test "x$DEBUG_INFO" = "x1" ; then | |
39367 | COND_DEBUG_INFO_1="" | |
39368 | fi | |
39369 | ||
f95cd8fa VS |
39370 | COND_DEPS_TRACKING_0="#" |
39371 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39372 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
39373 | fi |
39374 | ||
8ee2dd05 VS |
39375 | COND_DEPS_TRACKING_1="#" |
39376 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39377 | COND_DEPS_TRACKING_1="" | |
39378 | fi | |
39379 | ||
45842500 VS |
39380 | COND_GCC_PCH_1="#" |
39381 | if test "x$GCC_PCH" = "x1" ; then | |
39382 | COND_GCC_PCH_1="" | |
39383 | fi | |
39384 | ||
6f628073 VS |
39385 | COND_MONOLITHIC_0="#" |
39386 | if test "x$MONOLITHIC" = "x0" ; then | |
39387 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
39388 | fi |
39389 | ||
6f628073 VS |
39390 | COND_MONOLITHIC_0_SHARED_0="#" |
39391 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39392 | COND_MONOLITHIC_0_SHARED_0="" | |
39393 | fi | |
39394 | ||
39395 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39396 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39397 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 39398 | fi |
e6cc62c6 | 39399 | |
8772a1a7 VS |
39400 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
39401 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39402 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39403 | fi | |
39404 | ||
250700e4 RD |
39405 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
39406 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39407 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39408 | fi | |
39409 | ||
eb69fda5 VS |
39410 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
39411 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39412 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39413 | fi | |
39414 | ||
8ee2dd05 VS |
39415 | COND_MONOLITHIC_0_SHARED_1="#" |
39416 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39417 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 39418 | fi |
e6cc62c6 | 39419 | |
6f628073 VS |
39420 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
39421 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39422 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39423 | fi | |
39424 | ||
8772a1a7 VS |
39425 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
39426 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39427 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39428 | fi | |
39429 | ||
250700e4 RD |
39430 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
39431 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39432 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39433 | fi | |
39434 | ||
eb69fda5 VS |
39435 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
39436 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39437 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39438 | fi | |
39439 | ||
f95e4495 VS |
39440 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
39441 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39442 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39443 | fi | |
39444 | ||
3af038c0 VS |
39445 | COND_MONOLITHIC_1="#" |
39446 | if test "x$MONOLITHIC" = "x1" ; then | |
39447 | COND_MONOLITHIC_1="" | |
39448 | fi | |
39449 | ||
6f628073 VS |
39450 | COND_MONOLITHIC_1_SHARED_0="#" |
39451 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39452 | COND_MONOLITHIC_1_SHARED_0="" | |
39453 | fi | |
39454 | ||
39455 | COND_MONOLITHIC_1_SHARED_1="#" | |
39456 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39457 | COND_MONOLITHIC_1_SHARED_1="" | |
39458 | fi | |
39459 | ||
3af038c0 VS |
39460 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
39461 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39462 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39463 | fi | |
39464 | ||
39465 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39466 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39467 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39468 | fi | |
39469 | ||
6f628073 VS |
39470 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
39471 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39472 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39473 | fi | |
39474 | ||
3af038c0 VS |
39475 | COND_PLATFORM_MACOSX_1="#" |
39476 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39477 | COND_PLATFORM_MACOSX_1="" | |
39478 | fi | |
39479 | ||
250700e4 RD |
39480 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
39481 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39482 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39483 | fi | |
39484 | ||
39485 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39486 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39487 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39488 | fi | |
39489 | ||
39490 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39491 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39492 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39493 | fi | |
39494 | ||
3527f29c VS |
39495 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39496 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39497 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39498 | fi | |
39499 | ||
8ee2dd05 VS |
39500 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
39501 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39502 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39503 | fi | |
39504 | ||
45842500 VS |
39505 | COND_PLATFORM_MAC_1="#" |
39506 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39507 | COND_PLATFORM_MAC_1="" | |
39508 | fi | |
39509 | ||
3d8c1de0 VS |
39510 | COND_PLATFORM_OS2_1="#" |
39511 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39512 | COND_PLATFORM_OS2_1="" | |
39513 | fi | |
39514 | ||
8772a1a7 VS |
39515 | COND_PLATFORM_UNIX_0="#" |
39516 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
39517 | COND_PLATFORM_UNIX_0="" | |
39518 | fi | |
39519 | ||
3af038c0 VS |
39520 | COND_PLATFORM_UNIX_1="#" |
39521 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
39522 | COND_PLATFORM_UNIX_1="" | |
39523 | fi | |
39524 | ||
3527f29c VS |
39525 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
39526 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39527 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
39528 | fi | |
39529 | ||
f93ca9fd VS |
39530 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" |
39531 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
39532 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
39533 | fi | |
39534 | ||
3af038c0 VS |
39535 | COND_PLATFORM_WIN32_0="#" |
39536 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
39537 | COND_PLATFORM_WIN32_0="" | |
39538 | fi | |
39539 | ||
39540 | COND_PLATFORM_WIN32_1="#" | |
39541 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
39542 | COND_PLATFORM_WIN32_1="" | |
39543 | fi | |
39544 | ||
45842500 VS |
39545 | COND_SHARED_0="#" |
39546 | if test "x$SHARED" = "x0" ; then | |
39547 | COND_SHARED_0="" | |
39548 | fi | |
39549 | ||
250700e4 RD |
39550 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
39551 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39552 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
39553 | fi | |
39554 | ||
52a5a009 VS |
39555 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39556 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39557 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39558 | fi | |
39559 | ||
39560 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39561 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39562 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39563 | fi | |
39564 | ||
39565 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39566 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39567 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39568 | fi | |
39569 | ||
39570 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
39571 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39572 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
39573 | fi | |
39574 | ||
39575 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
39576 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39577 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
39578 | fi | |
39579 | ||
39580 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
39581 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39582 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
39583 | fi | |
39584 | ||
39585 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
39586 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39587 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
39588 | fi | |
39589 | ||
45842500 VS |
39590 | COND_SHARED_1="#" |
39591 | if test "x$SHARED" = "x1" ; then | |
39592 | COND_SHARED_1="" | |
39593 | fi | |
39594 | ||
250700e4 RD |
39595 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
39596 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
39597 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
39598 | fi | |
39599 | ||
6f628073 VS |
39600 | COND_TOOLKIT_COCOA="#" |
39601 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
39602 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
39603 | fi |
39604 | ||
6f628073 VS |
39605 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
39606 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39607 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39608 | fi |
39609 | ||
6f628073 VS |
39610 | COND_TOOLKIT_GTK="#" |
39611 | if test "x$TOOLKIT" = "xGTK" ; then | |
39612 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
39613 | fi |
39614 | ||
6f628073 VS |
39615 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
39616 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
39617 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
39618 | fi |
39619 | ||
6f628073 VS |
39620 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
39621 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39622 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39623 | fi |
39624 | ||
3af038c0 VS |
39625 | COND_TOOLKIT_MAC="#" |
39626 | if test "x$TOOLKIT" = "xMAC" ; then | |
39627 | COND_TOOLKIT_MAC="" | |
39628 | fi | |
39629 | ||
8772a1a7 VS |
39630 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
39631 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
39632 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
39633 | fi | |
39634 | ||
6f628073 VS |
39635 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
39636 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39637 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39638 | fi |
39639 | ||
6f628073 VS |
39640 | COND_TOOLKIT_MGL="#" |
39641 | if test "x$TOOLKIT" = "xMGL" ; then | |
39642 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
39643 | fi |
39644 | ||
6f628073 VS |
39645 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
39646 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
39647 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
39648 | fi |
39649 | ||
6f628073 VS |
39650 | COND_TOOLKIT_MOTIF="#" |
39651 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
39652 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
39653 | fi |
39654 | ||
6f628073 VS |
39655 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
39656 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
39657 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 39658 | fi |
e6cc62c6 | 39659 | |
6f628073 VS |
39660 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
39661 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39662 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
39663 | fi |
39664 | ||
6f628073 VS |
39665 | COND_TOOLKIT_MSW="#" |
39666 | if test "x$TOOLKIT" = "xMSW" ; then | |
39667 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
39668 | fi |
39669 | ||
6f628073 VS |
39670 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
39671 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
39672 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 39673 | fi |
e6cc62c6 | 39674 | |
6f628073 VS |
39675 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
39676 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39677 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39678 | fi |
e6cc62c6 | 39679 | |
96c1699d VS |
39680 | COND_TOOLKIT_PM="#" |
39681 | if test "x$TOOLKIT" = "xPM" ; then | |
39682 | COND_TOOLKIT_PM="" | |
39683 | fi | |
39684 | ||
39685 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
39686 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
39687 | COND_TOOLKIT_PM_USE_GUI_1="" | |
39688 | fi | |
39689 | ||
39690 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
39691 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
39692 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
39693 | fi | |
39694 | ||
6f628073 VS |
39695 | COND_TOOLKIT_X11="#" |
39696 | if test "x$TOOLKIT" = "xX11" ; then | |
39697 | COND_TOOLKIT_X11="" | |
9747f85d VS |
39698 | fi |
39699 | ||
6f628073 VS |
39700 | COND_TOOLKIT_X11_USE_GUI_1="#" |
39701 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
39702 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
39703 | fi |
39704 | ||
3af038c0 VS |
39705 | COND_UNICODE_1="#" |
39706 | if test "x$UNICODE" = "x1" ; then | |
39707 | COND_UNICODE_1="" | |
39708 | fi | |
39709 | ||
7015ef3a VZ |
39710 | COND_USE_EXCEPTIONS_0="#" |
39711 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
39712 | COND_USE_EXCEPTIONS_0="" | |
39713 | fi | |
39714 | ||
39715 | COND_USE_EXCEPTIONS_1="#" | |
39716 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
39717 | COND_USE_EXCEPTIONS_1="" | |
39718 | fi | |
39719 | ||
3af038c0 VS |
39720 | COND_USE_GUI_0="#" |
39721 | if test "x$USE_GUI" = "x0" ; then | |
39722 | COND_USE_GUI_0="" | |
39723 | fi | |
39724 | ||
39725 | COND_USE_GUI_1="#" | |
39726 | if test "x$USE_GUI" = "x1" ; then | |
39727 | COND_USE_GUI_1="" | |
39728 | fi | |
39729 | ||
e6cc62c6 | 39730 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
39731 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
39732 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 39733 | fi |
e6cc62c6 VS |
39734 | |
39735 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
39736 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
39737 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
39738 | fi |
39739 | ||
66a96744 VS |
39740 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
39741 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39742 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
39743 | fi | |
39744 | ||
39745 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
39746 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39747 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
39748 | fi | |
39749 | ||
39750 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
39751 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39752 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
39753 | fi | |
39754 | ||
57e7d4ac VS |
39755 | COND_USE_ODBC_1="#" |
39756 | if test "x$USE_ODBC" = "x1" ; then | |
39757 | COND_USE_ODBC_1="" | |
39758 | fi | |
39759 | ||
f93ca9fd VS |
39760 | COND_USE_PLUGINS_0="#" |
39761 | if test "x$USE_PLUGINS" = "x0" ; then | |
39762 | COND_USE_PLUGINS_0="" | |
39763 | fi | |
39764 | ||
6f628073 VS |
39765 | COND_USE_SOSYMLINKS_1="#" |
39766 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
39767 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
39768 | fi |
39769 | ||
6f628073 VS |
39770 | COND_USE_SOVERLINUX_1="#" |
39771 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
39772 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
39773 | fi |
39774 | ||
6f628073 VS |
39775 | COND_USE_SOVERSION_0="#" |
39776 | if test "x$USE_SOVERSION" = "x0" ; then | |
39777 | COND_USE_SOVERSION_0="" | |
fddeb06b | 39778 | fi |
fe0895cf | 39779 | |
6f628073 VS |
39780 | COND_USE_SOVERSOLARIS_1="#" |
39781 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
39782 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 39783 | fi |
fe0895cf | 39784 | |
f93ca9fd VS |
39785 | COND_WITH_PLUGIN_SDL_1="#" |
39786 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
39787 | COND_WITH_PLUGIN_SDL_1="" | |
39788 | fi | |
39789 | ||
39790 | COND_WITH_SDL_1="#" | |
39791 | if test "x$WITH_SDL" = "x1" ; then | |
39792 | COND_WITH_SDL_1="" | |
39793 | fi | |
39794 | ||
3af038c0 VS |
39795 | COND_WXUNIV_1="#" |
39796 | if test "x$WXUNIV" = "x1" ; then | |
39797 | COND_WXUNIV_1="" | |
39798 | fi | |
39799 | ||
66a96744 VS |
39800 | COND_WXUSE_EXPAT_BUILTIN="#" |
39801 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
39802 | COND_WXUSE_EXPAT_BUILTIN="" | |
39803 | fi | |
39804 | ||
02980527 VS |
39805 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
39806 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
39807 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
39808 | fi | |
39809 | ||
39810 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
39811 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
39812 | COND_WXUSE_LIBPNG_BUILTIN="" | |
39813 | fi | |
39814 | ||
39815 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
39816 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
39817 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
39818 | fi | |
39819 | ||
39820 | COND_WXUSE_ODBC_BUILTIN="#" | |
39821 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
39822 | COND_WXUSE_ODBC_BUILTIN="" | |
39823 | fi | |
39824 | ||
39825 | COND_WXUSE_REGEX_BUILTIN="#" | |
39826 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
39827 | COND_WXUSE_REGEX_BUILTIN="" | |
39828 | fi | |
39829 | ||
39830 | COND_WXUSE_ZLIB_BUILTIN="#" | |
39831 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
39832 | COND_WXUSE_ZLIB_BUILTIN="" | |
39833 | fi | |
39834 | ||
1772d20c | 39835 | |
fe0895cf | 39836 | |
fe0895cf | 39837 | |
fe0895cf | 39838 | |
45842500 | 39839 | if test $GCC_PCH = 1 ; then |
130711ba | 39840 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
39841 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
39842 | else | |
39843 | case "${host}" in | |
39844 | powerpc-*-darwin* ) | |
130711ba VS |
39845 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
39846 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 39847 | ;; |
45842500 VS |
39848 | esac |
39849 | fi | |
fe0895cf VS |
39850 | |
39851 | ||
fddeb06b | 39852 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
39853 | |
39854 | ||
39855 | ||
39856 | ||
39857 | ||
39858 | ||
39859 | ||
39860 | ||
39861 | ||
39862 | ||
39863 | ||
39864 | ||
39865 | ||
39866 | ||
39867 | ||
39868 | ||
39869 | ||
39870 | ||
39871 | ||
39872 | ||
39873 | ||
39874 | ||
39875 | ||
39876 | ||
39877 | ||
39878 | ||
39879 | ||
39880 | ||
39881 | ||
39882 | ||
39883 | ||
39884 | ||
39885 | ||
39886 | ||
39887 | ||
39888 | ||
39889 | ||
39890 | ||
39891 | ||
39892 | ||
39893 | ||
39894 | ||
39895 | ||
39896 | ||
39897 | ||
39898 | ||
39899 | ||
39900 | ||
39901 | ||
39902 | ||
39903 | ||
39904 | ||
39905 | ||
39906 | ||
39907 | ||
39908 | ||
39909 | ||
39910 | ||
39911 | ||
39912 | ||
39913 | ||
39914 | ||
39915 | ||
39916 | ||
39917 | ||
39918 | ||
39919 | ||
39920 | ||
39921 | ||
39922 | ||
39923 | ||
39924 | ||
39925 | ||
39926 | ||
39927 | ||
39928 | ||
39929 | ||
39930 | ||
39931 | ||
39932 | ||
39933 | ||
39934 | ||
39935 | ||
39936 | ||
39937 | ||
39938 | ||
39939 | ||
39940 | ||
39941 | ||
39942 | ||
39943 | ||
39944 | ||
39945 | ||
39946 | ||
fe0895cf | 39947 | |
f0290fca VS |
39948 | |
39949 | ||
243f8ae5 | 39950 | |
e6cc62c6 VS |
39951 | |
39952 | ||
39953 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
39954 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
32ddf007 | 39955 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
e6cc62c6 VS |
39956 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
39957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39958 | else | |
39959 | cat >conftest.make <<\_ACEOF | |
39960 | all: | |
39961 | @echo 'ac_maketemp="$(MAKE)"' | |
39962 | _ACEOF | |
39963 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
39964 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
39965 | if test -n "$ac_maketemp"; then | |
39966 | eval ac_cv_prog_make_${ac_make}_set=yes | |
39967 | else | |
39968 | eval ac_cv_prog_make_${ac_make}_set=no | |
39969 | fi | |
39970 | rm -f conftest.make | |
39971 | fi | |
39972 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
39973 | echo "$as_me:$LINENO: result: yes" >&5 | |
39974 | echo "${ECHO_T}yes" >&6 | |
39975 | SET_MAKE= | |
39976 | else | |
39977 | echo "$as_me:$LINENO: result: no" >&5 | |
39978 | echo "${ECHO_T}no" >&6 | |
39979 | SET_MAKE="MAKE=${MAKE-make}" | |
39980 | fi | |
39981 | ||
39982 | ||
39983 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
39984 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
39985 | fi | |
39986 | ||
39987 | ac_config_headers="$ac_config_headers setup.h" | |
39988 | ||
39989 | ||
81345eef | 39990 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
39991 | |
39992 | ||
39993 | ac_config_commands="$ac_config_commands default" | |
39994 | ||
39995 | ||
9de9b8f0 | 39996 | |
6c3e36af VZ |
39997 | if test "$wxUSE_GUI" = "yes"; then |
39998 | SUBDIRS="samples demos utils contrib" | |
39999 | else SUBDIRS="samples utils" | |
40000 | fi | |
e6cc62c6 | 40001 | |
166263e6 | 40002 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 40003 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 40004 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 40005 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
40006 | makefiles="samples/Makefile.in $makefiles" |
40007 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
40008 | if test -d $srcdir/samples/$sample; then |
40009 | makefiles="samples/$sample/Makefile.in $makefiles" | |
40010 | fi | |
40011 | done | |
40012 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
40013 | fi | |
6c3e36af | 40014 | else if test ${subdir} = "samples"; then |
8772a1a7 | 40015 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 40016 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
40017 | utils/HelpGen/src/Makefile.in \ |
40018 | utils/tex2rtf/Makefile.in \ | |
40019 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
40020 | fi |
40021 | fi | |
40022 | ||
9747f85d VS |
40023 | for mkin in $makefiles ; do |
40024 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
40025 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 40026 | |
9747f85d VS |
40027 | done |
40028 | fi | |
40029 | done | |
e6cc62c6 | 40030 | |
9de9b8f0 | 40031 | |
e6cc62c6 VS |
40032 | cat >confcache <<\_ACEOF |
40033 | # This file is a shell script that caches the results of configure | |
40034 | # tests run on this system so they can be shared between configure | |
40035 | # scripts and configure runs, see configure's option --config-cache. | |
40036 | # It is not useful on other systems. If it contains results you don't | |
40037 | # want to keep, you may remove or edit it. | |
40038 | # | |
40039 | # config.status only pays attention to the cache file if you give it | |
40040 | # the --recheck option to rerun configure. | |
40041 | # | |
40042 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
40043 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
40044 | # following values. | |
40045 | ||
40046 | _ACEOF | |
40047 | ||
40048 | # The following way of writing the cache mishandles newlines in values, | |
40049 | # but we know of no workaround that is simple, portable, and efficient. | |
40050 | # So, don't put newlines in cache variables' values. | |
40051 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
40052 | # and sets the high bit in the cache file unless we assign to the vars. | |
40053 | { | |
40054 | (set) 2>&1 | | |
40055 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
40056 | *ac_space=\ *) | |
40057 | # `set' does not quote correctly, so add quotes (double-quote | |
40058 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
40059 | sed -n \ | |
32ddf007 VS |
40060 | "s/'/'\\\\''/g; |
40061 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
40062 | ;; |
40063 | *) | |
40064 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
40065 | sed -n \ | |
32ddf007 | 40066 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
40067 | ;; |
40068 | esac; | |
40069 | } | | |
40070 | sed ' | |
40071 | t clear | |
40072 | : clear | |
40073 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
40074 | t end | |
40075 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
40076 | : end' >>confcache | |
40077 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
40078 | if test -w $cache_file; then | |
40079 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
40080 | cat confcache >$cache_file | |
40081 | else | |
40082 | echo "not updating unwritable cache $cache_file" | |
40083 | fi | |
40084 | fi | |
40085 | rm -f confcache | |
40086 | ||
40087 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
40088 | # Let make expand exec_prefix. | |
40089 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
40090 | ||
40091 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
40092 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
40093 | # trailing colons and then remove the whole line if VPATH becomes empty | |
40094 | # (actually we leave an empty line to preserve line numbers). | |
40095 | if test "x$srcdir" = x.; then | |
32ddf007 | 40096 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
40097 | s/:*\$(srcdir):*/:/; |
40098 | s/:*\${srcdir}:*/:/; | |
40099 | s/:*@srcdir@:*/:/; | |
32ddf007 | 40100 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 40101 | s/:*$//; |
32ddf007 | 40102 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
40103 | }' |
40104 | fi | |
40105 | ||
40106 | DEFS=-DHAVE_CONFIG_H | |
40107 | ||
40108 | ac_libobjs= | |
40109 | ac_ltlibobjs= | |
40110 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
40111 | # 1. Remove the extension, and $U if already installed. | |
40112 | ac_i=`echo "$ac_i" | | |
32ddf007 | 40113 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
40114 | # 2. Add them. |
40115 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
40116 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
40117 | done | |
40118 | LIBOBJS=$ac_libobjs | |
40119 | ||
40120 | LTLIBOBJS=$ac_ltlibobjs | |
40121 | ||
40122 | ||
40123 | ||
40124 | : ${CONFIG_STATUS=./config.status} | |
40125 | ac_clean_files_save=$ac_clean_files | |
40126 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
40127 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
40128 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
40129 | cat >$CONFIG_STATUS <<_ACEOF | |
40130 | #! $SHELL | |
40131 | # Generated by $as_me. | |
40132 | # Run this file to recreate the current configuration. | |
40133 | # Compiler output produced by configure, useful for debugging | |
40134 | # configure, is in config.log if it exists. | |
40135 | ||
40136 | debug=false | |
40137 | ac_cs_recheck=false | |
40138 | ac_cs_silent=false | |
40139 | SHELL=\${CONFIG_SHELL-$SHELL} | |
40140 | _ACEOF | |
40141 | ||
40142 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40143 | ## --------------------- ## | |
40144 | ## M4sh Initialization. ## | |
40145 | ## --------------------- ## | |
40146 | ||
40147 | # Be Bourne compatible | |
40148 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
40149 | emulate sh | |
40150 | NULLCMD=: | |
40151 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
40152 | # is contrary to our usage. Disable this feature. | |
40153 | alias -g '${1+"$@"}'='"$@"' | |
40154 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
40155 | set -o posix | |
40156 | fi | |
32ddf007 | 40157 | DUALCASE=1; export DUALCASE # for MKS sh |
e6cc62c6 VS |
40158 | |
40159 | # Support unset when possible. | |
32ddf007 | 40160 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
e6cc62c6 VS |
40161 | as_unset=unset |
40162 | else | |
40163 | as_unset=false | |
40164 | fi | |
40165 | ||
40166 | ||
40167 | # Work around bugs in pre-3.0 UWIN ksh. | |
40168 | $as_unset ENV MAIL MAILPATH | |
40169 | PS1='$ ' | |
40170 | PS2='> ' | |
40171 | PS4='+ ' | |
40172 | ||
40173 | # NLS nuisances. | |
40174 | for as_var in \ | |
40175 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
40176 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
40177 | LC_TELEPHONE LC_TIME | |
40178 | do | |
32ddf007 | 40179 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
40180 | eval $as_var=C; export $as_var |
40181 | else | |
40182 | $as_unset $as_var | |
40183 | fi | |
40184 | done | |
40185 | ||
40186 | # Required to use basename. | |
40187 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
40188 | as_expr=expr | |
40189 | else | |
40190 | as_expr=false | |
40191 | fi | |
40192 | ||
40193 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
40194 | as_basename=basename | |
40195 | else | |
40196 | as_basename=false | |
40197 | fi | |
40198 | ||
40199 | ||
40200 | # Name of the executable. | |
40201 | as_me=`$as_basename "$0" || | |
40202 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
40203 | X"$0" : 'X\(//\)$' \| \ | |
40204 | X"$0" : 'X\(/\)$' \| \ | |
40205 | . : '\(.\)' 2>/dev/null || | |
40206 | echo X/"$0" | | |
40207 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
40208 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
40209 | /^X\/\(\/\).*/{ s//\1/; q; } | |
40210 | s/.*/./; q'` | |
40211 | ||
40212 | ||
40213 | # PATH needs CR, and LINENO needs CR and PATH. | |
40214 | # Avoid depending upon Character Ranges. | |
40215 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
40216 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
40217 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40218 | as_cr_digits='0123456789' | |
40219 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
40220 | ||
40221 | # The user is always right. | |
40222 | if test "${PATH_SEPARATOR+set}" != set; then | |
40223 | echo "#! /bin/sh" >conf$$.sh | |
40224 | echo "exit 0" >>conf$$.sh | |
40225 | chmod +x conf$$.sh | |
40226 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
40227 | PATH_SEPARATOR=';' | |
40228 | else | |
40229 | PATH_SEPARATOR=: | |
40230 | fi | |
40231 | rm -f conf$$.sh | |
40232 | fi | |
40233 | ||
40234 | ||
40235 | as_lineno_1=$LINENO | |
40236 | as_lineno_2=$LINENO | |
40237 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
40238 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
40239 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
40240 | # Find who we are. Look in the path if we contain no path at all | |
40241 | # relative or not. | |
40242 | case $0 in | |
40243 | *[\\/]* ) as_myself=$0 ;; | |
40244 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40245 | for as_dir in $PATH | |
40246 | do | |
40247 | IFS=$as_save_IFS | |
40248 | test -z "$as_dir" && as_dir=. | |
40249 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
40250 | done | |
40251 | ||
40252 | ;; | |
40253 | esac | |
40254 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
40255 | # in which case we are not to be found in the path. | |
40256 | if test "x$as_myself" = x; then | |
40257 | as_myself=$0 | |
40258 | fi | |
40259 | if test ! -f "$as_myself"; then | |
40260 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
40261 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
40262 | { (exit 1); exit 1; }; } | |
40263 | fi | |
40264 | case $CONFIG_SHELL in | |
40265 | '') | |
40266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40267 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
40268 | do | |
40269 | IFS=$as_save_IFS | |
40270 | test -z "$as_dir" && as_dir=. | |
40271 | for as_base in sh bash ksh sh5; do | |
40272 | case $as_dir in | |
40273 | /*) | |
40274 | if ("$as_dir/$as_base" -c ' | |
40275 | as_lineno_1=$LINENO | |
40276 | as_lineno_2=$LINENO | |
40277 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
40278 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
40279 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
40280 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
40281 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
40282 | CONFIG_SHELL=$as_dir/$as_base | |
40283 | export CONFIG_SHELL | |
40284 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
40285 | fi;; | |
40286 | esac | |
40287 | done | |
40288 | done | |
40289 | ;; | |
40290 | esac | |
40291 | ||
40292 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
40293 | # uniformly replaced by the line number. The first 'sed' inserts a | |
40294 | # line-number line before each line; the second 'sed' does the real | |
40295 | # work. The second script uses 'N' to pair each line-number line | |
40296 | # with the numbered line, and appends trailing '-' during | |
40297 | # substitution so that $LINENO is not a special case at line end. | |
40298 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
40299 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
40300 | sed '=' <$as_myself | | |
40301 | sed ' | |
40302 | N | |
40303 | s,$,-, | |
40304 | : loop | |
40305 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
40306 | t loop | |
40307 | s,-$,, | |
40308 | s,^['$as_cr_digits']*\n,, | |
40309 | ' >$as_me.lineno && | |
40310 | chmod +x $as_me.lineno || | |
40311 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
40312 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
40313 | { (exit 1); exit 1; }; } | |
40314 | ||
40315 | # Don't try to exec as it changes $[0], causing all sort of problems | |
40316 | # (the dirname of $[0] is not the place where we might find the | |
40317 | # original and so on. Autoconf is especially sensible to this). | |
40318 | . ./$as_me.lineno | |
40319 | # Exit status is that of the last command. | |
40320 | exit | |
40321 | } | |
40322 | ||
40323 | ||
40324 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
40325 | *c*,-n*) ECHO_N= ECHO_C=' | |
40326 | ' ECHO_T=' ' ;; | |
40327 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
40328 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
40329 | esac | |
40330 | ||
40331 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
40332 | as_expr=expr | |
40333 | else | |
40334 | as_expr=false | |
40335 | fi | |
40336 | ||
40337 | rm -f conf$$ conf$$.exe conf$$.file | |
40338 | echo >conf$$.file | |
40339 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
40340 | # We could just check for DJGPP; but this test a) works b) is more generic | |
40341 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
40342 | if test -f conf$$.exe; then | |
40343 | # Don't use ln at all; we don't have any links | |
40344 | as_ln_s='cp -p' | |
40345 | else | |
40346 | as_ln_s='ln -s' | |
40347 | fi | |
40348 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
40349 | as_ln_s=ln | |
40350 | else | |
40351 | as_ln_s='cp -p' | |
40352 | fi | |
40353 | rm -f conf$$ conf$$.exe conf$$.file | |
40354 | ||
40355 | if mkdir -p . 2>/dev/null; then | |
40356 | as_mkdir_p=: | |
40357 | else | |
32ddf007 | 40358 | test -d ./-p && rmdir ./-p |
e6cc62c6 VS |
40359 | as_mkdir_p=false |
40360 | fi | |
40361 | ||
40362 | as_executable_p="test -f" | |
40363 | ||
40364 | # Sed expression to map a string onto a valid CPP name. | |
32ddf007 | 40365 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40366 | |
40367 | # Sed expression to map a string onto a valid variable name. | |
32ddf007 | 40368 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
e6cc62c6 VS |
40369 | |
40370 | ||
40371 | # IFS | |
40372 | # We need space, tab and new line, in precisely that order. | |
40373 | as_nl=' | |
40374 | ' | |
40375 | IFS=" $as_nl" | |
40376 | ||
40377 | # CDPATH. | |
40378 | $as_unset CDPATH | |
40379 | ||
40380 | exec 6>&1 | |
40381 | ||
40382 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
40383 | # report actual input values of CONFIG_FILES etc. instead of their | |
40384 | # values after options handling. Logging --version etc. is OK. | |
40385 | exec 5>>config.log | |
40386 | { | |
40387 | echo | |
40388 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
40389 | ## Running $as_me. ## | |
40390 | _ASBOX | |
40391 | } >&5 | |
40392 | cat >&5 <<_CSEOF | |
40393 | ||
e46d2a18 | 40394 | This file was extended by wxWindows $as_me 2.5.1, which was |
32ddf007 | 40395 | generated by GNU Autoconf 2.59. Invocation command line was |
e6cc62c6 VS |
40396 | |
40397 | CONFIG_FILES = $CONFIG_FILES | |
40398 | CONFIG_HEADERS = $CONFIG_HEADERS | |
40399 | CONFIG_LINKS = $CONFIG_LINKS | |
40400 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
40401 | $ $0 $@ | |
40402 | ||
40403 | _CSEOF | |
40404 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
40405 | echo >&5 | |
40406 | _ACEOF | |
40407 | ||
40408 | # Files that config.status was made for. | |
40409 | if test -n "$ac_config_files"; then | |
40410 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
40411 | fi | |
40412 | ||
40413 | if test -n "$ac_config_headers"; then | |
40414 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
40415 | fi | |
40416 | ||
40417 | if test -n "$ac_config_links"; then | |
40418 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
40419 | fi | |
40420 | ||
40421 | if test -n "$ac_config_commands"; then | |
40422 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
40423 | fi | |
40424 | ||
40425 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40426 | ||
40427 | ac_cs_usage="\ | |
40428 | \`$as_me' instantiates files from templates according to the | |
40429 | current configuration. | |
40430 | ||
40431 | Usage: $0 [OPTIONS] [FILE]... | |
40432 | ||
40433 | -h, --help print this help, then exit | |
40434 | -V, --version print version number, then exit | |
40435 | -q, --quiet do not print progress messages | |
40436 | -d, --debug don't remove temporary files | |
40437 | --recheck update $as_me by reconfiguring in the same conditions | |
40438 | --file=FILE[:TEMPLATE] | |
32ddf007 | 40439 | instantiate the configuration file FILE |
e6cc62c6 | 40440 | --header=FILE[:TEMPLATE] |
32ddf007 | 40441 | instantiate the configuration header FILE |
e6cc62c6 VS |
40442 | |
40443 | Configuration files: | |
40444 | $config_files | |
40445 | ||
40446 | Configuration headers: | |
40447 | $config_headers | |
40448 | ||
40449 | Configuration commands: | |
40450 | $config_commands | |
40451 | ||
40452 | Report bugs to <bug-autoconf@gnu.org>." | |
40453 | _ACEOF | |
40454 | ||
40455 | cat >>$CONFIG_STATUS <<_ACEOF | |
40456 | ac_cs_version="\\ | |
e46d2a18 | 40457 | wxWindows config.status 2.5.1 |
32ddf007 | 40458 | configured by $0, generated by GNU Autoconf 2.59, |
e6cc62c6 VS |
40459 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
40460 | ||
32ddf007 | 40461 | Copyright (C) 2003 Free Software Foundation, Inc. |
e6cc62c6 VS |
40462 | This config.status script is free software; the Free Software Foundation |
40463 | gives unlimited permission to copy, distribute and modify it." | |
40464 | srcdir=$srcdir | |
40465 | INSTALL="$INSTALL" | |
40466 | _ACEOF | |
40467 | ||
40468 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40469 | # If no file are specified by the user, then we need to provide default | |
40470 | # value. By we need to know if files were specified by the user. | |
40471 | ac_need_defaults=: | |
40472 | while test $# != 0 | |
40473 | do | |
40474 | case $1 in | |
40475 | --*=*) | |
40476 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
40477 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
40478 | ac_shift=: | |
40479 | ;; | |
40480 | -*) | |
40481 | ac_option=$1 | |
40482 | ac_optarg=$2 | |
40483 | ac_shift=shift | |
40484 | ;; | |
40485 | *) # This is not an option, so the user has probably given explicit | |
40486 | # arguments. | |
40487 | ac_option=$1 | |
40488 | ac_need_defaults=false;; | |
40489 | esac | |
40490 | ||
40491 | case $ac_option in | |
40492 | # Handling of the options. | |
40493 | _ACEOF | |
40494 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40495 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
40496 | ac_cs_recheck=: ;; | |
40497 | --version | --vers* | -V ) | |
40498 | echo "$ac_cs_version"; exit 0 ;; | |
40499 | --he | --h) | |
40500 | # Conflict between --help and --header | |
40501 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
40502 | Try \`$0 --help' for more information." >&5 | |
40503 | echo "$as_me: error: ambiguous option: $1 | |
40504 | Try \`$0 --help' for more information." >&2;} | |
40505 | { (exit 1); exit 1; }; };; | |
40506 | --help | --hel | -h ) | |
40507 | echo "$ac_cs_usage"; exit 0 ;; | |
40508 | --debug | --d* | -d ) | |
40509 | debug=: ;; | |
40510 | --file | --fil | --fi | --f ) | |
40511 | $ac_shift | |
40512 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
40513 | ac_need_defaults=false;; | |
40514 | --header | --heade | --head | --hea ) | |
40515 | $ac_shift | |
40516 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
40517 | ac_need_defaults=false;; | |
40518 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
40519 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
40520 | ac_cs_silent=: ;; | |
40521 | ||
40522 | # This is an error. | |
40523 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
40524 | Try \`$0 --help' for more information." >&5 | |
40525 | echo "$as_me: error: unrecognized option: $1 | |
40526 | Try \`$0 --help' for more information." >&2;} | |
40527 | { (exit 1); exit 1; }; } ;; | |
40528 | ||
40529 | *) ac_config_targets="$ac_config_targets $1" ;; | |
40530 | ||
40531 | esac | |
40532 | shift | |
40533 | done | |
40534 | ||
40535 | ac_configure_extra_args= | |
40536 | ||
40537 | if $ac_cs_silent; then | |
40538 | exec 6>/dev/null | |
40539 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
40540 | fi |
40541 | ||
e6cc62c6 VS |
40542 | _ACEOF |
40543 | cat >>$CONFIG_STATUS <<_ACEOF | |
40544 | if \$ac_cs_recheck; then | |
40545 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
40546 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
40547 | fi |
40548 | ||
e6cc62c6 | 40549 | _ACEOF |
fe0895cf | 40550 | |
e6cc62c6 | 40551 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 40552 | # |
e6cc62c6 | 40553 | # INIT-COMMANDS section. |
10f2d63a | 40554 | # |
10f2d63a | 40555 | |
a0b9e27f | 40556 | |
e6cc62c6 VS |
40557 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
40558 | LN_S="${LN_S}" | |
10f2d63a | 40559 | |
10f2d63a | 40560 | |
10f2d63a | 40561 | |
e6cc62c6 | 40562 | _ACEOF |
8284b0c5 | 40563 | |
52127426 | 40564 | |
247f5006 | 40565 | |
e6cc62c6 VS |
40566 | cat >>$CONFIG_STATUS <<\_ACEOF |
40567 | for ac_config_target in $ac_config_targets | |
247f5006 | 40568 | do |
e6cc62c6 VS |
40569 | case "$ac_config_target" in |
40570 | # Handling of arguments. | |
81345eef VZ |
40571 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
40572 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
40573 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 40574 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
40575 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
40576 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
40577 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
40578 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
40579 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
40580 | esac |
40581 | done | |
40582 | ||
e6cc62c6 VS |
40583 | # If the user did not use the arguments to specify the items to instantiate, |
40584 | # then the envvar interface is used. Set only those that are not. | |
40585 | # We use the long form for the default assignment because of an extremely | |
40586 | # bizarre bug on SunOS 4.1.3. | |
40587 | if $ac_need_defaults; then | |
40588 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
40589 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
40590 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
40591 | fi | |
40592 | ||
40593 | # Have a temporary directory for convenience. Make it in the build tree | |
40594 | # simply because there is no reason to put it here, and in addition, | |
40595 | # creating and moving files from /tmp can sometimes cause problems. | |
40596 | # Create a temporary directory, and hook for its removal unless debugging. | |
40597 | $debug || | |
40598 | { | |
40599 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
40600 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
40601 | } | |
247f5006 | 40602 | |
e6cc62c6 | 40603 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 40604 | |
e6cc62c6 VS |
40605 | { |
40606 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
40607 | test -n "$tmp" && test -d "$tmp" | |
40608 | } || | |
40609 | { | |
40610 | tmp=./confstat$$-$RANDOM | |
40611 | (umask 077 && mkdir $tmp) | |
40612 | } || | |
40613 | { | |
40614 | echo "$me: cannot create a temporary directory in ." >&2 | |
40615 | { (exit 1); exit 1; } | |
40616 | } | |
40617 | ||
40618 | _ACEOF | |
40619 | ||
40620 | cat >>$CONFIG_STATUS <<_ACEOF | |
40621 | ||
40622 | # | |
40623 | # CONFIG_FILES section. | |
40624 | # | |
247f5006 | 40625 | |
e6cc62c6 VS |
40626 | # No need to generate the scripts if there are no CONFIG_FILES. |
40627 | # This happens for instance when ./config.status config.h | |
40628 | if test -n "\$CONFIG_FILES"; then | |
40629 | # Protect against being on the right side of a sed subst in config.status. | |
40630 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
40631 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
40632 | s,@SHELL@,$SHELL,;t t | |
40633 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
40634 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
40635 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
40636 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
40637 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
40638 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
40639 | s,@exec_prefix@,$exec_prefix,;t t | |
40640 | s,@prefix@,$prefix,;t t | |
40641 | s,@program_transform_name@,$program_transform_name,;t t | |
40642 | s,@bindir@,$bindir,;t t | |
40643 | s,@sbindir@,$sbindir,;t t | |
40644 | s,@libexecdir@,$libexecdir,;t t | |
40645 | s,@datadir@,$datadir,;t t | |
40646 | s,@sysconfdir@,$sysconfdir,;t t | |
40647 | s,@sharedstatedir@,$sharedstatedir,;t t | |
40648 | s,@localstatedir@,$localstatedir,;t t | |
40649 | s,@libdir@,$libdir,;t t | |
40650 | s,@includedir@,$includedir,;t t | |
40651 | s,@oldincludedir@,$oldincludedir,;t t | |
40652 | s,@infodir@,$infodir,;t t | |
40653 | s,@mandir@,$mandir,;t t | |
40654 | s,@build_alias@,$build_alias,;t t | |
40655 | s,@host_alias@,$host_alias,;t t | |
40656 | s,@target_alias@,$target_alias,;t t | |
40657 | s,@DEFS@,$DEFS,;t t | |
40658 | s,@ECHO_C@,$ECHO_C,;t t | |
40659 | s,@ECHO_N@,$ECHO_N,;t t | |
40660 | s,@ECHO_T@,$ECHO_T,;t t | |
40661 | s,@LIBS@,$LIBS,;t t | |
40662 | s,@build@,$build,;t t | |
40663 | s,@build_cpu@,$build_cpu,;t t | |
40664 | s,@build_vendor@,$build_vendor,;t t | |
40665 | s,@build_os@,$build_os,;t t | |
40666 | s,@host@,$host,;t t | |
40667 | s,@host_cpu@,$host_cpu,;t t | |
40668 | s,@host_vendor@,$host_vendor,;t t | |
40669 | s,@host_os@,$host_os,;t t | |
40670 | s,@target@,$target,;t t | |
40671 | s,@target_cpu@,$target_cpu,;t t | |
40672 | s,@target_vendor@,$target_vendor,;t t | |
40673 | s,@target_os@,$target_os,;t t | |
40674 | s,@CC@,$CC,;t t | |
40675 | s,@CFLAGS@,$CFLAGS,;t t | |
40676 | s,@LDFLAGS@,$LDFLAGS,;t t | |
40677 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
40678 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
40679 | s,@EXEEXT@,$EXEEXT,;t t | |
40680 | s,@OBJEXT@,$OBJEXT,;t t | |
40681 | s,@CPP@,$CPP,;t t | |
40682 | s,@EGREP@,$EGREP,;t t | |
40683 | s,@CXX@,$CXX,;t t | |
40684 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
40685 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
40686 | s,@RANLIB@,$RANLIB,;t t | |
40687 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
40688 | s,@AR@,$AR,;t t | |
40689 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
40690 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
40691 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
40692 | s,@STRIP@,$STRIP,;t t | |
40693 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
40694 | s,@LN_S@,$LN_S,;t t |
40695 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 40696 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
40697 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
40698 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
40699 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
40700 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
40701 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
40702 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
40703 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
40704 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
40705 | s,@X_LIBS@,$X_LIBS,;t t | |
40706 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
40707 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
40708 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
40709 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
40710 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
40711 | s,@RESCOMP@,$RESCOMP,;t t |
40712 | s,@DEREZ@,$DEREZ,;t t | |
40713 | s,@SETFILE@,$SETFILE,;t t | |
40714 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 | 40715 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
f93ca9fd VS |
40716 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
40717 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
40718 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
edd891e2 VS |
40719 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
40720 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
40721 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
40722 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 40723 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
40724 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
40725 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
40726 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
40727 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
40728 | s,@VENDOR@,$VENDOR,;t t |
40729 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
40730 | s,@WXUNIV@,$WXUNIV,;t t |
40731 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
f93ca9fd | 40732 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t |
e6cc62c6 | 40733 | s,@EXTRALIBS@,$EXTRALIBS,;t t |
672abd7a | 40734 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 40735 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 40736 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 40737 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 40738 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
f93ca9fd VS |
40739 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t |
40740 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
e6cc62c6 VS |
40741 | s,@UNICODE@,$UNICODE,;t t |
40742 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
40743 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
40744 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
40745 | s,@SHARED@,$SHARED,;t t |
40746 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
40747 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
40748 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 40749 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 40750 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
40751 | s,@SET_MAKE@,$SET_MAKE,;t t |
40752 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
40753 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
40754 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
40755 | s,@NM@,$NM,;t t | |
40756 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 40757 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 40758 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
40759 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
40760 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
40761 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
40762 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
40763 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 40764 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 40765 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 40766 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 40767 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 40768 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 40769 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 40770 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
40771 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
40772 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
40773 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
40774 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
40775 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
40776 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
40777 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
40778 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
40779 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
40780 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
40781 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 40782 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 40783 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 40784 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
40785 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
40786 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
f93ca9fd VS |
40787 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t |
40788 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
d78c94f2 | 40789 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a | 40790 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
f93ca9fd VS |
40791 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t |
40792 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
6c67131a VS |
40793 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t |
40794 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
40795 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 40796 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 40797 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 40798 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 40799 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
40800 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
40801 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 40802 | 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 | 40803 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 40804 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 40805 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 40806 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 40807 | 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 | 40808 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 40809 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
f95e4495 | 40810 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
3af038c0 | 40811 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
40812 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
40813 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
40814 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
40815 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 40816 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 40817 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
40818 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
40819 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
40820 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 40821 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 40822 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 40823 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 40824 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 40825 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 40826 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 40827 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
f93ca9fd | 40828 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t |
3af038c0 VS |
40829 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
40830 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 40831 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 40832 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
40833 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40834 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40835 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
40836 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
40837 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
40838 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
40839 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 40840 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 40841 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
40842 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
40843 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
40844 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
40845 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 40846 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 40847 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 40848 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
40849 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
40850 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
40851 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
40852 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
40853 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
40854 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 40855 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
40856 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
40857 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
40858 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
40859 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
40860 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
40861 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
40862 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 40863 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
40864 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
40865 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
40866 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
40867 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
40868 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
40869 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
40870 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
40871 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
40872 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 40873 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
f93ca9fd | 40874 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
6f628073 VS |
40875 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
40876 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
40877 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
40878 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
f93ca9fd VS |
40879 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
40880 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
3af038c0 | 40881 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 40882 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
40883 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
40884 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
40885 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
40886 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
40887 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
40888 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
40889 | s,@PATH_IFS@,$PATH_IFS,;t t |
40890 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
40891 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
40892 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
40893 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
40894 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
40895 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
40896 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
40897 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
40898 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
40899 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
40900 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
40901 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
40902 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
40903 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
40904 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
40905 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
40906 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
40907 | s,@WX_ALL@,$WX_ALL,;t t | |
40908 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
40909 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
40910 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
40911 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
40912 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
40913 | s,@USE_GUI@,$USE_GUI,;t t | |
40914 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
40915 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
40916 | s,@TOOLKIT@,$TOOLKIT,;t t | |
40917 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
40918 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
40919 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
40920 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
40921 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
40922 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
40923 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 40924 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
40925 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
40926 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
40927 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
40928 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
40929 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
40930 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 40931 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 40932 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
40933 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
40934 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
40935 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
40936 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
40937 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
40938 | s,@GUIDIST@,$GUIDIST,;t t | |
40939 | s,@PORT_FILES@,$PORT_FILES,;t t | |
40940 | s,@DISTDIR@,$DISTDIR,;t t | |
40941 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
40942 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
40943 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
40944 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
40945 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
40946 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
40947 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
40948 | s,@RESFLAGS@,$RESFLAGS,;t t | |
40949 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
40950 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
40951 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
40952 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
40953 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
40954 | s,@MACSETFILE@,$MACSETFILE,;t t | |
40955 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
40956 | s,@GCC@,$GCC,;t t | |
243f8ae5 | 40957 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t |
e6cc62c6 VS |
40958 | s,@DLLTOOL@,$DLLTOOL,;t t |
40959 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
40960 | s,@LD@,$LD,;t t |
40961 | s,@MAKEINFO@,$MAKEINFO,;t t | |
40962 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
40963 | s,@LIBOBJS@,$LIBOBJS,;t t |
40964 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
40965 | CEOF |
40966 | ||
e6cc62c6 VS |
40967 | _ACEOF |
40968 | ||
40969 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40970 | # Split the substitutions into bite-sized pieces for seds with | |
40971 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
40972 | ac_max_sed_lines=48 | |
40973 | ac_sed_frag=1 # Number of current file. | |
40974 | ac_beg=1 # First line for current file. | |
40975 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
40976 | ac_more_lines=: | |
40977 | ac_sed_cmds= | |
40978 | while $ac_more_lines; do | |
40979 | if test $ac_beg -gt 1; then | |
40980 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 40981 | else |
e6cc62c6 VS |
40982 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
40983 | fi | |
40984 | if test ! -s $tmp/subs.frag; then | |
40985 | ac_more_lines=false | |
40986 | else | |
40987 | # The purpose of the label and of the branching condition is to | |
40988 | # speed up the sed processing (if there are no `@' at all, there | |
40989 | # is no need to browse any of the substitutions). | |
40990 | # These are the two extra sed commands mentioned above. | |
40991 | (echo ':t | |
40992 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
40993 | if test -z "$ac_sed_cmds"; then | |
32ddf007 | 40994 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 40995 | else |
32ddf007 | 40996 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
40997 | fi |
40998 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
40999 | ac_beg=$ac_end | |
41000 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 41001 | fi |
e6cc62c6 VS |
41002 | done |
41003 | if test -z "$ac_sed_cmds"; then | |
41004 | ac_sed_cmds=cat | |
10f2d63a | 41005 | fi |
e6cc62c6 | 41006 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 41007 | |
e6cc62c6 VS |
41008 | _ACEOF |
41009 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41010 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 41011 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
41012 | case $ac_file in |
41013 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
41014 | cat >$tmp/stdin |
41015 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41016 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 41017 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 41018 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 41019 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 41020 | esac |
247f5006 | 41021 | |
e6cc62c6 VS |
41022 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
41023 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
41024 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41025 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
41026 | X"$ac_file" : 'X\(//\)$' \| \ | |
41027 | X"$ac_file" : 'X\(/\)' \| \ | |
41028 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41029 | echo X"$ac_file" | |
41030 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41031 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41032 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41033 | /^X\(\/\).*/{ s//\1/; q; } | |
41034 | s/.*/./; q'` | |
41035 | { if $as_mkdir_p; then | |
41036 | mkdir -p "$ac_dir" | |
a0b9e27f | 41037 | else |
e6cc62c6 VS |
41038 | as_dir="$ac_dir" |
41039 | as_dirs= | |
41040 | while test ! -d "$as_dir"; do | |
41041 | as_dirs="$as_dir $as_dirs" | |
41042 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41043 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41044 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41045 | X"$as_dir" : 'X\(//\)$' \| \ | |
41046 | X"$as_dir" : 'X\(/\)' \| \ | |
41047 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41048 | echo X"$as_dir" | |
41049 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41050 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41051 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41052 | /^X\(\/\).*/{ s//\1/; q; } | |
41053 | s/.*/./; q'` | |
41054 | done | |
41055 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41056 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41057 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41058 | { (exit 1); exit 1; }; }; } | |
41059 | ||
41060 | ac_builddir=. | |
41061 | ||
41062 | if test "$ac_dir" != .; then | |
41063 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41064 | # A "../" for each directory in $ac_dir_suffix. | |
41065 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41066 | else | |
41067 | ac_dir_suffix= ac_top_builddir= | |
41068 | fi | |
247f5006 | 41069 | |
e6cc62c6 VS |
41070 | case $srcdir in |
41071 | .) # No --srcdir option. We are building in place. | |
41072 | ac_srcdir=. | |
41073 | if test -z "$ac_top_builddir"; then | |
41074 | ac_top_srcdir=. | |
41075 | else | |
41076 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41077 | fi ;; | |
41078 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41079 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41080 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 41081 | *) # Relative path. |
e6cc62c6 VS |
41082 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
41083 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41084 | esac | |
32ddf007 VS |
41085 | |
41086 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41087 | # the directories may not exist. | |
41088 | case `pwd` in | |
41089 | .) ac_abs_builddir="$ac_dir";; | |
41090 | *) | |
41091 | case "$ac_dir" in | |
41092 | .) ac_abs_builddir=`pwd`;; | |
41093 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41094 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41095 | esac;; | |
41096 | esac | |
41097 | case $ac_abs_builddir in | |
41098 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41099 | *) | |
41100 | case ${ac_top_builddir}. in | |
41101 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41102 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41103 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41104 | esac;; | |
41105 | esac | |
41106 | case $ac_abs_builddir in | |
41107 | .) ac_abs_srcdir=$ac_srcdir;; | |
41108 | *) | |
41109 | case $ac_srcdir in | |
41110 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41111 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41112 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41113 | esac;; | |
41114 | esac | |
41115 | case $ac_abs_builddir in | |
41116 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41117 | *) | |
41118 | case $ac_top_srcdir in | |
41119 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41120 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41121 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41122 | esac;; | |
41123 | esac | |
10f2d63a | 41124 | |
247f5006 | 41125 | |
e6cc62c6 VS |
41126 | case $INSTALL in |
41127 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
41128 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 41129 | esac |
247f5006 | 41130 | |
e6cc62c6 VS |
41131 | if test x"$ac_file" != x-; then |
41132 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
41133 | echo "$as_me: creating $ac_file" >&6;} | |
41134 | rm -f "$ac_file" | |
41135 | fi | |
41136 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
41137 | # use $as_me), people would be surprised to read: | |
41138 | # /* config.h. Generated by config.status. */ | |
41139 | if test x"$ac_file" = x-; then | |
41140 | configure_input= | |
41141 | else | |
41142 | configure_input="$ac_file. " | |
41143 | fi | |
41144 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
32ddf007 | 41145 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
41146 | |
41147 | # First look for the input files in the build tree, otherwise in the | |
41148 | # src tree. | |
41149 | ac_file_inputs=`IFS=: | |
41150 | for f in $ac_file_in; do | |
41151 | case $f in | |
41152 | -) echo $tmp/stdin ;; | |
41153 | [\\/$]*) | |
32ddf007 VS |
41154 | # Absolute (can't be DOS-style, as IFS=:) |
41155 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41156 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41157 | { (exit 1); exit 1; }; } | |
32ddf007 | 41158 | echo "$f";; |
e6cc62c6 | 41159 | *) # Relative |
32ddf007 VS |
41160 | if test -f "$f"; then |
41161 | # Build tree | |
41162 | echo "$f" | |
41163 | elif test -f "$srcdir/$f"; then | |
41164 | # Source tree | |
41165 | echo "$srcdir/$f" | |
41166 | else | |
41167 | # /dev/null tree | |
41168 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41169 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41170 | { (exit 1); exit 1; }; } | |
32ddf007 | 41171 | fi;; |
e6cc62c6 VS |
41172 | esac |
41173 | done` || { (exit 1); exit 1; } | |
41174 | _ACEOF | |
41175 | cat >>$CONFIG_STATUS <<_ACEOF | |
41176 | sed "$ac_vpsub | |
41177 | $extrasub | |
41178 | _ACEOF | |
41179 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41180 | :t | |
41181 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
41182 | s,@configure_input@,$configure_input,;t t | |
41183 | s,@srcdir@,$ac_srcdir,;t t | |
41184 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
41185 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
41186 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
41187 | s,@builddir@,$ac_builddir,;t t | |
41188 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
41189 | s,@top_builddir@,$ac_top_builddir,;t t | |
41190 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
41191 | s,@INSTALL@,$ac_INSTALL,;t t | |
41192 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
41193 | rm -f $tmp/stdin | |
41194 | if test x"$ac_file" != x-; then | |
41195 | mv $tmp/out $ac_file | |
41196 | else | |
41197 | cat $tmp/out | |
41198 | rm -f $tmp/out | |
41199 | fi | |
41200 | ||
41201 | done | |
41202 | _ACEOF | |
41203 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41204 | ||
41205 | # | |
41206 | # CONFIG_HEADER section. | |
41207 | # | |
10f2d63a VZ |
41208 | |
41209 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
41210 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
41211 | # | |
41212 | # ac_d sets the value in "#define NAME VALUE" lines. | |
32ddf007 VS |
41213 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
41214 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
41215 | ac_dC=' ' |
41216 | ac_dD=',;t' | |
41217 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
32ddf007 | 41218 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 41219 | ac_uB='$,\1#\2define\3' |
10f2d63a | 41220 | ac_uC=' ' |
e6cc62c6 VS |
41221 | ac_uD=',;t' |
41222 | ||
41223 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 41224 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
41225 | case $ac_file in |
41226 | - | *:- | *:-:* ) # input from stdin | |
32ddf007 VS |
41227 | cat >$tmp/stdin |
41228 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41229 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 41230 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
32ddf007 | 41231 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 41232 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
41233 | esac |
41234 | ||
e6cc62c6 VS |
41235 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
41236 | echo "$as_me: creating $ac_file" >&6;} | |
41237 | ||
41238 | # First look for the input files in the build tree, otherwise in the | |
41239 | # src tree. | |
41240 | ac_file_inputs=`IFS=: | |
41241 | for f in $ac_file_in; do | |
41242 | case $f in | |
41243 | -) echo $tmp/stdin ;; | |
41244 | [\\/$]*) | |
32ddf007 VS |
41245 | # Absolute (can't be DOS-style, as IFS=:) |
41246 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41247 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41248 | { (exit 1); exit 1; }; } | |
32ddf007 VS |
41249 | # Do quote $f, to prevent DOS paths from being IFS'd. |
41250 | echo "$f";; | |
e6cc62c6 | 41251 | *) # Relative |
32ddf007 VS |
41252 | if test -f "$f"; then |
41253 | # Build tree | |
41254 | echo "$f" | |
41255 | elif test -f "$srcdir/$f"; then | |
41256 | # Source tree | |
41257 | echo "$srcdir/$f" | |
41258 | else | |
41259 | # /dev/null tree | |
41260 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
41261 | echo "$as_me: error: cannot find input file: $f" >&2;} |
41262 | { (exit 1); exit 1; }; } | |
32ddf007 | 41263 | fi;; |
e6cc62c6 VS |
41264 | esac |
41265 | done` || { (exit 1); exit 1; } | |
41266 | # Remove the trailing spaces. | |
32ddf007 | 41267 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
41268 | |
41269 | _ACEOF | |
41270 | ||
41271 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
41272 | # `conftest.undefs', that substitutes the proper values into | |
41273 | # config.h.in to produce config.h. The first handles `#define' | |
41274 | # templates, and the second `#undef' templates. | |
41275 | # And first: Protect against being on the right side of a sed subst in | |
41276 | # config.status. Protect against being in an unquoted here document | |
41277 | # in config.status. | |
41278 | rm -f conftest.defines conftest.undefs | |
41279 | # Using a here document instead of a string reduces the quoting nightmare. | |
41280 | # Putting comments in sed scripts is not portable. | |
41281 | # | |
41282 | # `end' is used to avoid that the second main sed command (meant for | |
41283 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
41284 | # See the Autoconf documentation for `clear'. | |
41285 | cat >confdef2sed.sed <<\_ACEOF | |
41286 | s/[\\&,]/\\&/g | |
41287 | s,[\\$`],\\&,g | |
41288 | t clear | |
41289 | : clear | |
32ddf007 | 41290 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 41291 | t end |
32ddf007 | 41292 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
41293 | : end |
41294 | _ACEOF | |
41295 | # If some macros were called several times there might be several times | |
41296 | # the same #defines, which is useless. Nevertheless, we may not want to | |
41297 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
41298 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
41299 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
41300 | rm -f confdef2sed.sed | |
10f2d63a VZ |
41301 | |
41302 | # This sed command replaces #undef with comments. This is necessary, for | |
41303 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
41304 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 41305 | cat >>conftest.undefs <<\_ACEOF |
32ddf007 | 41306 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
41307 | _ACEOF |
41308 | ||
41309 | # Break up conftest.defines because some shells have a limit on the size | |
41310 | # of here documents, and old seds have small limits too (100 cmds). | |
41311 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
32ddf007 | 41312 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
41313 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
41314 | echo ' :' >>$CONFIG_STATUS | |
41315 | rm -f conftest.tail | |
41316 | while grep . conftest.defines >/dev/null | |
41317 | do | |
41318 | # Write a limited-size here document to $tmp/defines.sed. | |
41319 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
41320 | # Speed up: don't consider the non `#define' lines. | |
32ddf007 | 41321 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41322 | # Work around the forget-to-reset-the-flag bug. |
41323 | echo 't clr' >>$CONFIG_STATUS | |
41324 | echo ': clr' >>$CONFIG_STATUS | |
41325 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
41326 | echo 'CEOF | |
41327 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
41328 | rm -f $tmp/in | |
41329 | mv $tmp/out $tmp/in | |
41330 | ' >>$CONFIG_STATUS | |
41331 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
41332 | rm -f conftest.defines | |
41333 | mv conftest.tail conftest.defines | |
41334 | done | |
41335 | rm -f conftest.defines | |
41336 | echo ' fi # grep' >>$CONFIG_STATUS | |
41337 | echo >>$CONFIG_STATUS | |
10f2d63a | 41338 | |
e6cc62c6 VS |
41339 | # Break up conftest.undefs because some shells have a limit on the size |
41340 | # of here documents, and old seds have small limits too (100 cmds). | |
41341 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 41342 | rm -f conftest.tail |
e6cc62c6 | 41343 | while grep . conftest.undefs >/dev/null |
10f2d63a | 41344 | do |
e6cc62c6 VS |
41345 | # Write a limited-size here document to $tmp/undefs.sed. |
41346 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
41347 | # Speed up: don't consider the non `#undef' | |
32ddf007 | 41348 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
41349 | # Work around the forget-to-reset-the-flag bug. |
41350 | echo 't clr' >>$CONFIG_STATUS | |
41351 | echo ': clr' >>$CONFIG_STATUS | |
41352 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 41353 | echo 'CEOF |
e6cc62c6 VS |
41354 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
41355 | rm -f $tmp/in | |
41356 | mv $tmp/out $tmp/in | |
41357 | ' >>$CONFIG_STATUS | |
41358 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
41359 | rm -f conftest.undefs | |
41360 | mv conftest.tail conftest.undefs | |
10f2d63a | 41361 | done |
e6cc62c6 VS |
41362 | rm -f conftest.undefs |
41363 | ||
41364 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41365 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
41366 | # use $as_me), people would be surprised to read: | |
41367 | # /* config.h. Generated by config.status. */ | |
41368 | if test x"$ac_file" = x-; then | |
41369 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 41370 | else |
e6cc62c6 | 41371 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 41372 | fi |
e6cc62c6 VS |
41373 | cat $tmp/in >>$tmp/config.h |
41374 | rm -f $tmp/in | |
41375 | if test x"$ac_file" != x-; then | |
41376 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
41377 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
41378 | echo "$as_me: $ac_file is unchanged" >&6;} | |
41379 | else | |
41380 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
41381 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41382 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
41383 | X"$ac_file" : 'X\(//\)$' \| \ | |
41384 | X"$ac_file" : 'X\(/\)' \| \ | |
41385 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41386 | echo X"$ac_file" | |
41387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41388 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41389 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41390 | /^X\(\/\).*/{ s//\1/; q; } | |
41391 | s/.*/./; q'` | |
41392 | { if $as_mkdir_p; then | |
41393 | mkdir -p "$ac_dir" | |
41394 | else | |
41395 | as_dir="$ac_dir" | |
41396 | as_dirs= | |
41397 | while test ! -d "$as_dir"; do | |
41398 | as_dirs="$as_dir $as_dirs" | |
41399 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41401 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41402 | X"$as_dir" : 'X\(//\)$' \| \ | |
41403 | X"$as_dir" : 'X\(/\)' \| \ | |
41404 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41405 | echo X"$as_dir" | |
41406 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41407 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41408 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41409 | /^X\(\/\).*/{ s//\1/; q; } | |
41410 | s/.*/./; q'` | |
41411 | done | |
41412 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41413 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41414 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41415 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 41416 | |
e6cc62c6 VS |
41417 | rm -f $ac_file |
41418 | mv $tmp/config.h $ac_file | |
41419 | fi | |
41420 | else | |
41421 | cat $tmp/config.h | |
41422 | rm -f $tmp/config.h | |
41423 | fi | |
41424 | done | |
41425 | _ACEOF | |
41426 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 41427 | |
e6cc62c6 VS |
41428 | # |
41429 | # CONFIG_COMMANDS section. | |
41430 | # | |
41431 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
41432 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
41433 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
41434 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
41435 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41436 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
41437 | X"$ac_dest" : 'X\(//\)$' \| \ | |
41438 | X"$ac_dest" : 'X\(/\)' \| \ | |
41439 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
41440 | echo X"$ac_dest" | |
41441 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41442 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41443 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41444 | /^X\(\/\).*/{ s//\1/; q; } | |
41445 | s/.*/./; q'` | |
32ddf007 VS |
41446 | { if $as_mkdir_p; then |
41447 | mkdir -p "$ac_dir" | |
41448 | else | |
41449 | as_dir="$ac_dir" | |
41450 | as_dirs= | |
41451 | while test ! -d "$as_dir"; do | |
41452 | as_dirs="$as_dir $as_dirs" | |
41453 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41454 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
41455 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
41456 | X"$as_dir" : 'X\(//\)$' \| \ | |
41457 | X"$as_dir" : 'X\(/\)' \| \ | |
41458 | . : '\(.\)' 2>/dev/null || | |
41459 | echo X"$as_dir" | | |
41460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41461 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41462 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41463 | /^X\(\/\).*/{ s//\1/; q; } | |
41464 | s/.*/./; q'` | |
41465 | done | |
41466 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41467 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41468 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41469 | { (exit 1); exit 1; }; }; } | |
41470 | ||
e6cc62c6 VS |
41471 | ac_builddir=. |
41472 | ||
41473 | if test "$ac_dir" != .; then | |
41474 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41475 | # A "../" for each directory in $ac_dir_suffix. | |
41476 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41477 | else | |
41478 | ac_dir_suffix= ac_top_builddir= | |
41479 | fi | |
41480 | ||
41481 | case $srcdir in | |
41482 | .) # No --srcdir option. We are building in place. | |
41483 | ac_srcdir=. | |
41484 | if test -z "$ac_top_builddir"; then | |
41485 | ac_top_srcdir=. | |
41486 | else | |
41487 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41488 | fi ;; | |
41489 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41490 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41491 | ac_top_srcdir=$srcdir ;; | |
41492 | *) # Relative path. | |
41493 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41494 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41495 | esac | |
32ddf007 VS |
41496 | |
41497 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41498 | # the directories may not exist. | |
41499 | case `pwd` in | |
41500 | .) ac_abs_builddir="$ac_dir";; | |
41501 | *) | |
41502 | case "$ac_dir" in | |
41503 | .) ac_abs_builddir=`pwd`;; | |
41504 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41505 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41506 | esac;; | |
41507 | esac | |
41508 | case $ac_abs_builddir in | |
41509 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41510 | *) | |
41511 | case ${ac_top_builddir}. in | |
41512 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41513 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41514 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41515 | esac;; | |
41516 | esac | |
41517 | case $ac_abs_builddir in | |
41518 | .) ac_abs_srcdir=$ac_srcdir;; | |
41519 | *) | |
41520 | case $ac_srcdir in | |
41521 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41522 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41523 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41524 | esac;; | |
41525 | esac | |
41526 | case $ac_abs_builddir in | |
41527 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41528 | *) | |
41529 | case $ac_top_srcdir in | |
41530 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41531 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41532 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41533 | esac;; | |
41534 | esac | |
e6cc62c6 VS |
41535 | |
41536 | ||
41537 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
41538 | echo "$as_me: executing $ac_dest commands" >&6;} | |
41539 | case $ac_dest in | |
41540 | default ) | |
652d930d | 41541 | if test ! -h wx-config; then |
991a5759 | 41542 | chmod +x wx-config |
3a922bb4 RL |
41543 | mv wx-config wx${TOOLCHAIN_NAME}-config |
41544 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 41545 | fi |
665bbe97 | 41546 | |
00cf1208 RR |
41547 | if test ! -d lib; then |
41548 | mkdir lib | |
41549 | fi | |
41550 | if test ! -d lib/wx; then | |
41551 | mkdir lib/wx | |
41552 | fi | |
41553 | if test ! -d lib/wx/include; then | |
41554 | mkdir lib/wx/include | |
41555 | fi | |
3a922bb4 RL |
41556 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
41557 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 41558 | fi |
3a922bb4 RL |
41559 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
41560 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
41561 | fi |
41562 | if test -f setup.h; then | |
3a922bb4 | 41563 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 41564 | fi |
e6cc62c6 VS |
41565 | ;; |
41566 | esac | |
41567 | done | |
41568 | _ACEOF | |
2224580a | 41569 | |
e6cc62c6 | 41570 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 41571 | |
e6cc62c6 VS |
41572 | { (exit 0); exit 0; } |
41573 | _ACEOF | |
41574 | chmod +x $CONFIG_STATUS | |
41575 | ac_clean_files=$ac_clean_files_save | |
41576 | ||
41577 | ||
41578 | # configure is writing to config.log, and then calls config.status. | |
41579 | # config.status does its own redirection, appending to config.log. | |
41580 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
41581 | # by configure, so config.status won't be able to write to it; its | |
41582 | # output is simply discarded. So we exec the FD to /dev/null, | |
41583 | # effectively closing config.log, so it can be properly (re)opened and | |
41584 | # appended to by config.status. When coming back to configure, we | |
41585 | # need to make the FD available again. | |
41586 | if test "$no_create" != yes; then | |
41587 | ac_cs_success=: | |
41588 | ac_config_status_args= | |
41589 | test "$silent" = yes && | |
41590 | ac_config_status_args="$ac_config_status_args --quiet" | |
41591 | exec 5>/dev/null | |
41592 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
41593 | exec 5>>config.log | |
41594 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
41595 | # would make configure fail if this is the last instruction. | |
41596 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
41597 | fi |
41598 | ||
672abd7a VS |
41599 | # |
41600 | # CONFIG_SUBDIRS section. | |
41601 | # | |
41602 | if test "$no_recursion" != yes; then | |
41603 | ||
41604 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
41605 | ac_sub_configure_args= | |
41606 | ac_prev= | |
41607 | for ac_arg in $ac_configure_args; do | |
41608 | if test -n "$ac_prev"; then | |
41609 | ac_prev= | |
41610 | continue | |
41611 | fi | |
41612 | case $ac_arg in | |
41613 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
41614 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
41615 | ac_prev=cache_file ;; | |
41616 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
41617 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
41618 | | --c=*) | |
41619 | ;; | |
41620 | --config-cache | -C) | |
41621 | ;; | |
41622 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
41623 | ac_prev=srcdir ;; | |
41624 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
41625 | ;; | |
41626 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
41627 | ac_prev=prefix ;; | |
41628 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
41629 | ;; | |
41630 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
41631 | esac | |
41632 | done | |
41633 | ||
41634 | # Always prepend --prefix to ensure using the same prefix | |
41635 | # in subdir configurations. | |
41636 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
41637 | ||
41638 | ac_popdir=`pwd` | |
41639 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
41640 | ||
41641 | # Do not complain, so a configure script can configure whichever | |
41642 | # parts of a large source tree are present. | |
41643 | test -d $srcdir/$ac_dir || continue | |
41644 | ||
41645 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
41646 | echo "$as_me: configuring in $ac_dir" >&6;} | |
41647 | { if $as_mkdir_p; then | |
41648 | mkdir -p "$ac_dir" | |
41649 | else | |
41650 | as_dir="$ac_dir" | |
41651 | as_dirs= | |
41652 | while test ! -d "$as_dir"; do | |
41653 | as_dirs="$as_dir $as_dirs" | |
41654 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
41655 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
32ddf007 VS |
41656 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
41657 | X"$as_dir" : 'X\(//\)$' \| \ | |
41658 | X"$as_dir" : 'X\(/\)' \| \ | |
41659 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
41660 | echo X"$as_dir" | |
41661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
41662 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
41663 | /^X\(\/\/\)$/{ s//\1/; q; } | |
41664 | /^X\(\/\).*/{ s//\1/; q; } | |
41665 | s/.*/./; q'` | |
41666 | done | |
41667 | test ! -n "$as_dirs" || mkdir $as_dirs | |
41668 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
41669 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
41670 | { (exit 1); exit 1; }; }; } | |
41671 | ||
41672 | ac_builddir=. | |
41673 | ||
41674 | if test "$ac_dir" != .; then | |
41675 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
41676 | # A "../" for each directory in $ac_dir_suffix. | |
41677 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
41678 | else | |
41679 | ac_dir_suffix= ac_top_builddir= | |
41680 | fi | |
41681 | ||
41682 | case $srcdir in | |
41683 | .) # No --srcdir option. We are building in place. | |
41684 | ac_srcdir=. | |
41685 | if test -z "$ac_top_builddir"; then | |
41686 | ac_top_srcdir=. | |
41687 | else | |
41688 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
41689 | fi ;; | |
41690 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
41691 | ac_srcdir=$srcdir$ac_dir_suffix; | |
41692 | ac_top_srcdir=$srcdir ;; | |
41693 | *) # Relative path. | |
41694 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
41695 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
41696 | esac | |
32ddf007 VS |
41697 | |
41698 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
41699 | # the directories may not exist. | |
41700 | case `pwd` in | |
41701 | .) ac_abs_builddir="$ac_dir";; | |
41702 | *) | |
41703 | case "$ac_dir" in | |
41704 | .) ac_abs_builddir=`pwd`;; | |
41705 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
41706 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
41707 | esac;; | |
41708 | esac | |
41709 | case $ac_abs_builddir in | |
41710 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41711 | *) | |
41712 | case ${ac_top_builddir}. in | |
41713 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
41714 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
41715 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
41716 | esac;; | |
41717 | esac | |
41718 | case $ac_abs_builddir in | |
41719 | .) ac_abs_srcdir=$ac_srcdir;; | |
41720 | *) | |
41721 | case $ac_srcdir in | |
41722 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
41723 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
41724 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
41725 | esac;; | |
41726 | esac | |
41727 | case $ac_abs_builddir in | |
41728 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41729 | *) | |
41730 | case $ac_top_srcdir in | |
41731 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
41732 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
41733 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
41734 | esac;; | |
41735 | esac | |
672abd7a VS |
41736 | |
41737 | ||
41738 | cd $ac_dir | |
41739 | ||
41740 | # Check for guested configure; otherwise get Cygnus style configure. | |
41741 | if test -f $ac_srcdir/configure.gnu; then | |
41742 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
41743 | elif test -f $ac_srcdir/configure; then | |
41744 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
41745 | elif test -f $ac_srcdir/configure.in; then | |
41746 | ac_sub_configure=$ac_configure | |
41747 | else | |
41748 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
41749 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
41750 | ac_sub_configure= | |
41751 | fi | |
41752 | ||
41753 | # The recursion is here. | |
41754 | if test -n "$ac_sub_configure"; then | |
41755 | # Make the cache file name correct relative to the subdirectory. | |
41756 | case $cache_file in | |
41757 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
41758 | *) # Relative path. | |
32ddf007 | 41759 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
41760 | esac |
41761 | ||
41762 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
41763 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
41764 | # The eval makes quoting arguments work. | |
41765 | eval $ac_sub_configure $ac_sub_configure_args \ | |
32ddf007 VS |
41766 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
41767 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
41768 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
41769 | { (exit 1); exit 1; }; } | |
41770 | fi | |
41771 | ||
41772 | cd $ac_popdir | |
41773 | done | |
41774 | fi | |
41775 | ||
8284b0c5 | 41776 | |
2b5f62a0 VZ |
41777 | echo |
41778 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
41779 | echo "" | |
89fe663f | 41780 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 41781 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
41782 | |
41783 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
41784 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
41785 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
41786 | ||
0c98a14e | 41787 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
41788 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
41789 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 41790 | |
2b5f62a0 VZ |
41791 | echo " Which libraries should wxWindows use?" |
41792 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
41793 | echo " png ${wxUSE_LIBPNG-none}" | |
41794 | echo " regex ${wxUSE_REGEX}" | |
41795 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
41796 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
41797 | echo " xpm ${wxUSE_LIBXPM-none}" | |
41798 | fi | |
2b5f62a0 | 41799 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 41800 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 41801 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 41802 | echo " libmspack ${wxUSE_LIBMSPACK}" |
f93ca9fd | 41803 | echo " sdl ${wxUSE_LIBSDL}" |
2b5f62a0 VZ |
41804 | |
41805 | echo "" | |
41806 |