]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
7714864e | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
ac1cb8d3 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
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 | ## --------------------- ## | |
14 | ||
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 | |
ac1cb8d3 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
ac1cb8d3 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
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 | |
ac1cb8d3 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
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 | |
60 | ||
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 | |
66 | ||
67 | ||
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'` | |
79 | ||
80 | ||
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 | |
88 | ||
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 | |
101 | ||
102 | ||
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 | |
119 | ||
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 | |
158 | ||
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 | } | |
188 | ||
189 | ||
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 | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
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 | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
ac1cb8d3 | 224 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
225 | as_mkdir_p=false |
226 | fi | |
227 | ||
228 | as_executable_p="test -f" | |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
244 | $as_unset CDPATH | |
245 | ||
246 | ||
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` | |
251 | ||
252 | exec 6>&1 | |
253 | ||
254 | # | |
255 | # Initializations. | |
256 | # | |
257 | ac_default_prefix=/usr/local | |
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. | |
77ffb593 JS |
271 | PACKAGE_NAME='wxWidgets' |
272 | PACKAGE_TARNAME='wxwidgets' | |
7714864e RL |
273 | PACKAGE_VERSION='2.5.3' |
274 | PACKAGE_STRING='wxWidgets 2.5.3' | |
77ffb593 | 275 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
a848cd7e SC |
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 | ||
315 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
a13a7f89 | 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 WX_FLAVOUR WX_LIB_FLAVOUR 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 TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS 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 DLLIMP_SUFFIX LIBPREFIX LIBEXT 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_0_USE_XRC_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_SHARED_1_USE_XRC_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_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_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_USE_XRC_1 COND_WITH_PLUGIN_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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
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= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
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. | |
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 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
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 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
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=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
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" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
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"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
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=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
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 ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
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=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
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=*) | |
468 | libexecdir=$ac_optarg ;; | |
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=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
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 \ | |
489 | | --no-cr | --no-c | -n) | |
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=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
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=*) | |
515 | program_prefix=$ac_optarg ;; | |
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=*) | |
522 | program_suffix=$ac_optarg ;; | |
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=*) | |
539 | program_transform_name=$ac_optarg ;; | |
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=*) | |
549 | sbindir=$ac_optarg ;; | |
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=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
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=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
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; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
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" ;; | |
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=*) | |
621 | x_includes=$ac_optarg ;; | |
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=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
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 | ||
645 | *) | |
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} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
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; }; } | |
660 | fi | |
661 | ||
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 | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
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; }; };; | |
682 | esac | |
683 | done | |
684 | ||
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 | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
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. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
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'` | |
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 | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
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 | |
789 | ||
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 | |
7714864e | 797 | \`configure' configures wxWidgets 2.5.3 to adapt to many kinds of systems. |
a848cd7e SC |
798 | |
799 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
800 | ||
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. | |
803 | ||
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 | |
ac1cb8d3 | 822 | [$ac_default_prefix] |
a848cd7e | 823 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ac1cb8d3 | 824 | [PREFIX] |
a848cd7e SC |
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 | |
7714864e | 863 | short | recursive ) echo "Configuration of wxWidgets 2.5.3:";; |
a848cd7e SC |
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 | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
9f45f08e | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
77ffb593 JS |
892 | --enable-compat22 enable wxWidgets 2.2 compatibility |
893 | --disable-compat24 disable wxWidgets 2.4 compatibility | |
a848cd7e SC |
894 | --enable-rpath=DIR output the rpath flag from wx-config |
895 | --enable-intl use internationalization system | |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
907 | --enable-cmdline use wxCmdLineParser class | |
908 | --enable-datetime use wxDateTime class | |
909 | --enable-dialupman use dialup network classes | |
910 | --enable-dynlib use wxLibrary class for DLL loading | |
911 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
912 | --enable-exceptions build exception-safe library | |
913 | --enable-ffile use wxFFile class | |
914 | --enable-file use wxFile class | |
915 | --enable-filesystem use virtual file systems classes | |
916 | --enable-fontmap use font encodings conversion classes | |
917 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
918 | --enable-fs_zip use virtual ZIP filesystems | |
919 | --enable-geometry use geometry class | |
920 | --enable-log use logging system | |
921 | --enable-longlong use wxLongLong class | |
922 | --enable-mimetype use wxMimeTypesManager | |
923 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
924 | --enable-snglinst use wxSingleInstanceChecker class | |
925 | --enable-streams use wxStream etc classes | |
926 | --enable-std_iostreams use standard C++ stream classes | |
927 | --enable-stopwatch use wxStopWatch class | |
928 | --enable-sysoptions use wxSystemOptions | |
929 | --enable-textbuf use wxTextBuffer class | |
930 | --enable-textfile use wxTextFile class | |
931 | --enable-timer use wxTimer class | |
932 | --enable-unicode compile wxString with Unicode support | |
933 | --enable-sound use wxSound class | |
77ffb593 | 934 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
a848cd7e | 935 | --enable-zipstream use wxZipInputStream |
a848cd7e SC |
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 | |
9a8f0513 | 947 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
948 | --enable-constraints use layout-constraints system |
949 | --enable-printarch use printing architecture | |
950 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 951 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
952 | --enable-loggui use standard GUI logger |
953 | --enable-logwin use wxLogWindow | |
954 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 955 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
956 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
957 | --enable-prologio not available; see contrib | |
958 | --enable-resources not available; see contrib | |
959 | --enable-clipboard use wxClipboard class | |
960 | --enable-dnd use Drag'n'Drop classes | |
961 | --enable-metafile use win32 metafiles | |
962 | --enable-controls use all usual controls | |
963 | --enable-accel use accelerators | |
964 | --enable-button use wxButton class | |
965 | --enable-bmpbutton use wxBitmapButton class | |
966 | --enable-calendar use wxCalendarCtrl class | |
967 | --enable-caret use wxCaret class | |
968 | --enable-checkbox use wxCheckBox class | |
969 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
970 | --enable-choice use wxChoice class | |
92bbdbcd | 971 | --enable-choicebook use wxChoicebook class |
a848cd7e SC |
972 | --enable-combobox use wxComboBox class |
973 | --enable-display use wxDisplay class | |
974 | --enable-gauge use wxGauge class | |
975 | --enable-grid use wxGrid class | |
976 | --enable-imaglist use wxImageList class | |
977 | --enable-listbook use wxListbook class | |
978 | --enable-listbox use wxListBox class | |
979 | --enable-listctrl use wxListCtrl class | |
980 | --enable-notebook use wxNotebook class | |
981 | --enable-radiobox use wxRadioBox class | |
982 | --enable-radiobtn use wxRadioButton class | |
983 | --enable-sash use wxSashWindow class | |
984 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
985 | --enable-slider use wxSlider class | |
986 | --enable-spinbtn use wxSpinButton class | |
987 | --enable-spinctrl use wxSpinCtrl class | |
988 | --enable-splitter use wxSplitterWindow class | |
989 | --enable-statbmp use wxStaticBitmap class | |
990 | --enable-statbox use wxStaticBox class | |
991 | --enable-statline use wxStaticLine class | |
992 | --enable-stattext use wxStaticText class | |
993 | --enable-statusbar use wxStatusBar class | |
994 | --enable-tabdialog use wxTabControl class | |
995 | --enable-textctrl use wxTextCtrl class | |
996 | --enable-togglebtn use wxToggleButton class | |
997 | --enable-toolbar use wxToolBar class | |
998 | --enable-tbarnative use native wxToolBar class | |
999 | --enable-tbarsmpl use wxToolBarSimple class | |
1000 | --enable-treectrl use wxTreeCtrl class | |
1001 | --enable-tipwindow use wxTipWindow class | |
1002 | --enable-popupwin use wxPopUpWindow class | |
1003 | --enable-commondlg use all common dialogs | |
1004 | --enable-choicedlg use wxChoiceDialog | |
1005 | --enable-coldlg use wxColourDialog | |
1006 | --enable-filedlg use wxFileDialog | |
1007 | --enable-finddlg use wxFindReplaceDialog | |
1008 | --enable-fontdlg use wxFontDialog | |
1009 | --enable-dirdlg use wxDirDialog | |
1010 | --enable-msgdlg use wxMessageDialog | |
1011 | --enable-numberdlg use wxNumberEntryDialog | |
1012 | --enable-splash use wxSplashScreen | |
1013 | --enable-textdlg use wxTextDialog | |
1014 | --enable-tipdlg use startup tips | |
1015 | --enable-progressdlg use wxProgressDialog | |
1016 | --enable-wizarddlg use wxWizard | |
1017 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1018 | --enable-miniframe use wxMiniFrame class | |
1019 | --enable-tooltips use wxToolTip class | |
1020 | --enable-splines use spline drawing code | |
1021 | --enable-validators use wxValidator and derived classes | |
1022 | --enable-busyinfo use wxBusyInfo | |
1023 | --enable-joystick use wxJoystick (Linux only) | |
1024 | --enable-metafiles use wxMetaFile (Windows only) | |
1025 | --enable-dragimage use wxDragImage | |
1026 | --enable-accessibility enable accessibility support | |
1027 | --enable-palette use wxPalette class | |
1028 | --enable-image use wxImage class | |
1029 | --enable-gif use gif images (GIF file format) | |
1030 | --enable-pcx use pcx images (PCX file format) | |
1031 | --enable-iff use iff images (IFF file format) | |
1032 | --enable-pnm use pnm images (PNM file format) | |
1033 | --enable-xpm use xpm images (XPM file format) | |
1034 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1035 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1036 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1037 | --disable-largefile omit support for large files | |
1038 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1039 | --disable-gtktest Do not try to compile and run a test GTK program | |
1040 | --disable-sdltest Do not try to compile and run a test SDL program | |
1041 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1042 | --disable-precomp-headers |
1043 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1044 | |
1045 | Optional Packages: | |
1046 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1047 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1048 | --with-gtk use GTK+ | |
1049 | --with-motif use Motif/Lesstif | |
1050 | --with-mac use Mac OS X | |
1051 | --with-cocoa use Cocoa | |
1052 | --with-wine use Wine | |
1053 | --with-msw use MS-Windows | |
1054 | --with-pm use OS/2 Presentation Manager | |
1055 | --with-mgl use SciTech MGL | |
1056 | --with-microwin use MicroWindows | |
1057 | --with-x11 use X11 | |
1058 | --with-libpng use libpng (PNG image format) | |
1059 | --with-libjpeg use libjpeg (JPEG file format) | |
1060 | --with-libtiff use libtiff (TIFF file format) | |
1061 | --with-libxpm use libxpm (XPM file format) | |
1062 | --with-libmspack use libmspack (CHM help files loading) | |
1063 | --with-sdl use SDL for audio on Unix | |
1064 | --with-opengl use OpenGL (or Mesa) | |
1065 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1066 | --with-regex enable support for wxRegEx class | |
1067 | --with-zlib use zlib for LZW compression | |
1068 | --with-odbc use the IODBC and wxODBC classes | |
1069 | --with-expat enable XML support using expat parser | |
ceec2216 | 1070 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1071 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1072 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1073 | --with-x use the X Window System | |
1074 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1075 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1076 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1077 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1078 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1079 | ||
1080 | Some influential environment variables: | |
dcc1b6ad VS |
1081 | CC C compiler command |
1082 | CFLAGS C compiler flags | |
1083 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1084 | nonstandard directory <lib dir> | |
1085 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1086 | headers in a nonstandard directory <include dir> | |
1087 | CPP C preprocessor | |
1088 | CXX C++ compiler command | |
1089 | CXXFLAGS C++ compiler flags | |
1090 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1091 | |
1092 | Use these variables to override the choices made by `configure' or to help | |
1093 | it to find libraries and programs with nonstandard names/locations. | |
1094 | ||
77ffb593 | 1095 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1096 | _ACEOF |
1097 | fi | |
1098 | ||
1099 | if test "$ac_init_help" = "recursive"; then | |
1100 | # If there are subdirs, report their specific --help. | |
1101 | ac_popdir=`pwd` | |
1102 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1103 | test -d $ac_dir || continue | |
1104 | ac_builddir=. | |
1105 | ||
1106 | if test "$ac_dir" != .; then | |
1107 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1108 | # A "../" for each directory in $ac_dir_suffix. | |
1109 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1110 | else | |
1111 | ac_dir_suffix= ac_top_builddir= | |
1112 | fi | |
1113 | ||
1114 | case $srcdir in | |
1115 | .) # No --srcdir option. We are building in place. | |
1116 | ac_srcdir=. | |
1117 | if test -z "$ac_top_builddir"; then | |
1118 | ac_top_srcdir=. | |
1119 | else | |
1120 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1121 | fi ;; | |
1122 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1123 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1124 | ac_top_srcdir=$srcdir ;; | |
1125 | *) # Relative path. | |
1126 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1127 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1128 | esac | |
ac1cb8d3 VS |
1129 | |
1130 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1131 | # the directories may not exist. | |
1132 | case `pwd` in | |
1133 | .) ac_abs_builddir="$ac_dir";; | |
1134 | *) | |
1135 | case "$ac_dir" in | |
1136 | .) ac_abs_builddir=`pwd`;; | |
1137 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1138 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1139 | esac;; | |
1140 | esac | |
1141 | case $ac_abs_builddir in | |
1142 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1143 | *) | |
1144 | case ${ac_top_builddir}. in | |
1145 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1146 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1147 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1148 | esac;; | |
1149 | esac | |
1150 | case $ac_abs_builddir in | |
1151 | .) ac_abs_srcdir=$ac_srcdir;; | |
1152 | *) | |
1153 | case $ac_srcdir in | |
1154 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1155 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1156 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1157 | esac;; | |
1158 | esac | |
1159 | case $ac_abs_builddir in | |
1160 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1161 | *) | |
1162 | case $ac_top_srcdir in | |
1163 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1164 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1165 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1166 | esac;; | |
1167 | esac | |
a848cd7e SC |
1168 | |
1169 | cd $ac_dir | |
1170 | # Check for guested configure; otherwise get Cygnus style configure. | |
1171 | if test -f $ac_srcdir/configure.gnu; then | |
1172 | echo | |
1173 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1174 | elif test -f $ac_srcdir/configure; then | |
1175 | echo | |
1176 | $SHELL $ac_srcdir/configure --help=recursive | |
1177 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1178 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1179 | echo |
1180 | $ac_configure --help | |
1181 | else | |
1182 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1183 | fi | |
7714864e | 1184 | cd "$ac_popdir" |
a848cd7e SC |
1185 | done |
1186 | fi | |
1187 | ||
1188 | test -n "$ac_init_help" && exit 0 | |
1189 | if $ac_init_version; then | |
1190 | cat <<\_ACEOF | |
7714864e | 1191 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1192 | generated by GNU Autoconf 2.59 |
a848cd7e | 1193 | |
ac1cb8d3 | 1194 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1195 | This configure script is free software; the Free Software Foundation |
1196 | gives unlimited permission to copy, distribute and modify it. | |
1197 | _ACEOF | |
1198 | exit 0 | |
1199 | fi | |
1200 | exec 5>config.log | |
1201 | cat >&5 <<_ACEOF | |
1202 | This file contains any messages produced by compilers while | |
1203 | running configure, to aid debugging if configure makes a mistake. | |
1204 | ||
7714864e | 1205 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1206 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1207 | |
1208 | $ $0 $@ | |
1209 | ||
1210 | _ACEOF | |
1211 | { | |
1212 | cat <<_ASUNAME | |
1213 | ## --------- ## | |
1214 | ## Platform. ## | |
1215 | ## --------- ## | |
1216 | ||
1217 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1218 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1219 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1220 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1221 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1222 | ||
1223 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1224 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1225 | ||
1226 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1227 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1228 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1229 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1230 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1231 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1232 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1233 | ||
1234 | _ASUNAME | |
1235 | ||
1236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1237 | for as_dir in $PATH | |
1238 | do | |
1239 | IFS=$as_save_IFS | |
1240 | test -z "$as_dir" && as_dir=. | |
1241 | echo "PATH: $as_dir" | |
1242 | done | |
1243 | ||
1244 | } >&5 | |
1245 | ||
1246 | cat >&5 <<_ACEOF | |
1247 | ||
1248 | ||
1249 | ## ----------- ## | |
1250 | ## Core tests. ## | |
1251 | ## ----------- ## | |
1252 | ||
1253 | _ACEOF | |
1254 | ||
1255 | ||
1256 | # Keep a trace of the command line. | |
1257 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1258 | # Strip out --silent because we don't want to record it for future runs. | |
1259 | # Also quote any args containing shell meta-characters. | |
1260 | # Make two passes to allow for proper duplicate-argument suppression. | |
1261 | ac_configure_args= | |
1262 | ac_configure_args0= | |
1263 | ac_configure_args1= | |
1264 | ac_sep= | |
1265 | ac_must_keep_next=false | |
1266 | for ac_pass in 1 2 | |
1267 | do | |
1268 | for ac_arg | |
1269 | do | |
1270 | case $ac_arg in | |
1271 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1273 | | -silent | --silent | --silen | --sile | --sil) | |
1274 | continue ;; | |
1275 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1276 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1277 | esac | |
1278 | case $ac_pass in | |
1279 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1280 | 2) | |
1281 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1282 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1283 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1284 | else |
ac1cb8d3 VS |
1285 | case $ac_arg in |
1286 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1287 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1288 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1289 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1290 | case "$ac_configure_args0 " in | |
1291 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1292 | esac | |
1293 | ;; | |
1294 | -* ) ac_must_keep_next=true ;; | |
1295 | esac | |
a848cd7e SC |
1296 | fi |
1297 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1298 | # Get rid of the leading space. | |
1299 | ac_sep=" " | |
1300 | ;; | |
1301 | esac | |
1302 | done | |
1303 | done | |
1304 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1305 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1306 | ||
1307 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1308 | # config.log. We remove comments because anyway the quotes in there | |
1309 | # would cause problems or look ugly. | |
1310 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1311 | # such as our DU 5.0 friend, will then `close' the trap. | |
1312 | trap 'exit_status=$? | |
1313 | # Save into config.log some information that might help in debugging. | |
1314 | { | |
1315 | echo | |
1316 | ||
1317 | cat <<\_ASBOX | |
1318 | ## ---------------- ## | |
1319 | ## Cache variables. ## | |
1320 | ## ---------------- ## | |
1321 | _ASBOX | |
1322 | echo | |
1323 | # The following way of writing the cache mishandles newlines in values, | |
1324 | { | |
1325 | (set) 2>&1 | | |
1326 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1327 | *ac_space=\ *) | |
1328 | sed -n \ | |
ac1cb8d3 VS |
1329 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1331 | ;; |
1332 | *) | |
1333 | sed -n \ | |
ac1cb8d3 | 1334 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1335 | ;; |
1336 | esac; | |
1337 | } | |
1338 | echo | |
1339 | ||
1340 | cat <<\_ASBOX | |
1341 | ## ----------------- ## | |
1342 | ## Output variables. ## | |
1343 | ## ----------------- ## | |
1344 | _ASBOX | |
1345 | echo | |
1346 | for ac_var in $ac_subst_vars | |
1347 | do | |
1348 | eval ac_val=$`echo $ac_var` | |
1349 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1350 | done | sort | |
1351 | echo | |
1352 | ||
1353 | if test -n "$ac_subst_files"; then | |
1354 | cat <<\_ASBOX | |
1355 | ## ------------- ## | |
1356 | ## Output files. ## | |
1357 | ## ------------- ## | |
1358 | _ASBOX | |
1359 | echo | |
1360 | for ac_var in $ac_subst_files | |
1361 | do | |
1362 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1363 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1364 | done | sort |
1365 | echo | |
1366 | fi | |
1367 | ||
1368 | if test -s confdefs.h; then | |
1369 | cat <<\_ASBOX | |
1370 | ## ----------- ## | |
1371 | ## confdefs.h. ## | |
1372 | ## ----------- ## | |
1373 | _ASBOX | |
1374 | echo | |
1375 | sed "/^$/d" confdefs.h | sort | |
1376 | echo | |
1377 | fi | |
1378 | test "$ac_signal" != 0 && | |
1379 | echo "$as_me: caught signal $ac_signal" | |
1380 | echo "$as_me: exit $exit_status" | |
1381 | } >&5 | |
ac1cb8d3 | 1382 | rm -f core *.core && |
a848cd7e SC |
1383 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1384 | exit $exit_status | |
1385 | ' 0 | |
1386 | for ac_signal in 1 2 13 15; do | |
1387 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1388 | done | |
1389 | ac_signal=0 | |
1390 | ||
1391 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1392 | rm -rf conftest* confdefs.h | |
1393 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1394 | echo >confdefs.h | |
1395 | ||
1396 | # Predefined preprocessor variables. | |
1397 | ||
1398 | cat >>confdefs.h <<_ACEOF | |
1399 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1400 | _ACEOF | |
1401 | ||
1402 | ||
1403 | cat >>confdefs.h <<_ACEOF | |
1404 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1405 | _ACEOF | |
1406 | ||
1407 | ||
1408 | cat >>confdefs.h <<_ACEOF | |
1409 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1410 | _ACEOF | |
1411 | ||
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | # Let the site file select an alternate cache file if it wants to. | |
1424 | # Prefer explicitly selected file to automatically selected ones. | |
1425 | if test -z "$CONFIG_SITE"; then | |
1426 | if test "x$prefix" != xNONE; then | |
1427 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1428 | else | |
1429 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1430 | fi | |
1431 | fi | |
1432 | for ac_site_file in $CONFIG_SITE; do | |
1433 | if test -r "$ac_site_file"; then | |
1434 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1435 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1436 | sed 's/^/| /' "$ac_site_file" >&5 | |
1437 | . "$ac_site_file" | |
1438 | fi | |
1439 | done | |
1440 | ||
1441 | if test -r "$cache_file"; then | |
1442 | # Some versions of bash will fail to source /dev/null (special | |
1443 | # files actually), so we avoid doing that. | |
1444 | if test -f "$cache_file"; then | |
1445 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1446 | echo "$as_me: loading cache $cache_file" >&6;} | |
1447 | case $cache_file in | |
1448 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1449 | *) . ./$cache_file;; | |
1450 | esac | |
1451 | fi | |
1452 | else | |
1453 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1454 | echo "$as_me: creating cache $cache_file" >&6;} | |
1455 | >$cache_file | |
1456 | fi | |
1457 | ||
1458 | # Check that the precious variables saved in the cache have kept the same | |
1459 | # value. | |
1460 | ac_cache_corrupted=false | |
1461 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1462 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1463 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1464 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1465 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1466 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1467 | case $ac_old_set,$ac_new_set in | |
1468 | set,) | |
1469 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1470 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1471 | ac_cache_corrupted=: ;; | |
1472 | ,set) | |
1473 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1474 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1475 | ac_cache_corrupted=: ;; | |
1476 | ,);; | |
1477 | *) | |
1478 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1479 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1480 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1481 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1482 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1483 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1484 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1485 | ac_cache_corrupted=: |
a848cd7e SC |
1486 | fi;; |
1487 | esac | |
1488 | # Pass precious variables to config.status. | |
1489 | if test "$ac_new_set" = set; then | |
1490 | case $ac_new_val in | |
1491 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1492 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1493 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1494 | esac | |
1495 | case " $ac_configure_args " in | |
1496 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1497 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1498 | esac | |
1499 | fi | |
1500 | done | |
1501 | if $ac_cache_corrupted; then | |
1502 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1503 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1504 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1505 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1506 | { (exit 1); exit 1; }; } | |
1507 | fi | |
1508 | ||
1509 | ac_ext=c | |
1510 | ac_cpp='$CPP $CPPFLAGS' | |
1511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1514 | ||
1515 | ||
1516 | ||
1517 | ||
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | ||
1523 | ||
1524 | ||
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ac_aux_dir= | |
1545 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1546 | if test -f $ac_dir/install-sh; then | |
1547 | ac_aux_dir=$ac_dir | |
1548 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1549 | break | |
1550 | elif test -f $ac_dir/install.sh; then | |
1551 | ac_aux_dir=$ac_dir | |
1552 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1553 | break | |
1554 | elif test -f $ac_dir/shtool; then | |
1555 | ac_aux_dir=$ac_dir | |
1556 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1557 | break | |
1558 | fi | |
1559 | done | |
1560 | if test -z "$ac_aux_dir"; then | |
1561 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1562 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1563 | { (exit 1); exit 1; }; } | |
1564 | fi | |
1565 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1566 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1567 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1568 | ||
1569 | # Make sure we can run config.sub. | |
1570 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1571 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1572 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1573 | { (exit 1); exit 1; }; } | |
1574 | ||
1575 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1576 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_build+set}" = set; then | |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1579 | else | |
1580 | ac_cv_build_alias=$build_alias | |
1581 | test -z "$ac_cv_build_alias" && | |
1582 | ac_cv_build_alias=`$ac_config_guess` | |
1583 | test -z "$ac_cv_build_alias" && | |
1584 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1585 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1588 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1589 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1590 | { (exit 1); exit 1; }; } | |
1591 | ||
1592 | fi | |
1593 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1594 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1595 | build=$ac_cv_build | |
1596 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1597 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1598 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1599 | ||
1600 | ||
1601 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1602 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_host+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | ac_cv_host_alias=$host_alias | |
1607 | test -z "$ac_cv_host_alias" && | |
1608 | ac_cv_host_alias=$ac_cv_build_alias | |
1609 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1610 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1611 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | ||
1614 | fi | |
1615 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1616 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1617 | host=$ac_cv_host | |
1618 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1619 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1620 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1621 | ||
1622 | ||
1623 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1624 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1625 | if test "${ac_cv_target+set}" = set; then | |
1626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1627 | else | |
1628 | ac_cv_target_alias=$target_alias | |
1629 | test "x$ac_cv_target_alias" = "x" && | |
1630 | ac_cv_target_alias=$ac_cv_host_alias | |
1631 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1632 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1633 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1634 | { (exit 1); exit 1; }; } | |
1635 | ||
1636 | fi | |
1637 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1638 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1639 | target=$ac_cv_target | |
1640 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1641 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1642 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1643 | ||
1644 | ||
1645 | # The aliases save the names the user supplied, while $host etc. | |
1646 | # will get canonicalized. | |
1647 | test -n "$target_alias" && | |
1648 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1649 | NONENONEs,x,x, && | |
1650 | program_prefix=${target_alias}- | |
1651 | ||
1652 | ||
1653 | ||
ceec2216 RL |
1654 | wx_major_version_number=2 |
1655 | wx_minor_version_number=5 | |
7714864e RL |
1656 | wx_release_number=3 |
1657 | wx_subrelease_number=0 | |
a848cd7e | 1658 | |
ceec2216 RL |
1659 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1660 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1661 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1662 | |
ceec2216 | 1663 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1664 | |
7714864e | 1665 | WX_CURRENT=3 |
a848cd7e SC |
1666 | WX_REVISION=0 |
1667 | WX_AGE=0 | |
1668 | ||
1669 | ||
1670 | ||
1671 | USE_UNIX=1 | |
1672 | USE_OS2=0 | |
1673 | USE_WIN32=0 | |
1674 | USE_DOS=0 | |
1675 | USE_BEOS=0 | |
1676 | USE_MAC=0 | |
1677 | ||
1678 | USE_AIX= | |
1679 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1680 | USE_GNU= USE_HPUX= | |
1681 | USE_LINUX= | |
1682 | USE_NETBSD= | |
1683 | USE_OPENBSD= | |
1684 | USE_OSF= USE_SGI= | |
1685 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1686 | USE_ULTRIX= | |
1687 | USE_UNIXWARE= | |
1688 | ||
1689 | USE_ALPHA= | |
1690 | ||
1691 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1692 | ||
1693 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1694 | ||
1695 | DEFAULT_wxUSE_COCOA=0 | |
1696 | DEFAULT_wxUSE_GTK=0 | |
1697 | DEFAULT_wxUSE_MAC=0 | |
1698 | DEFAULT_wxUSE_MGL=0 | |
1699 | DEFAULT_wxUSE_MICROWIN=0 | |
1700 | DEFAULT_wxUSE_MOTIF=0 | |
1701 | DEFAULT_wxUSE_MSW=0 | |
1702 | DEFAULT_wxUSE_PM=0 | |
1703 | DEFAULT_wxUSE_X11=0 | |
1704 | ||
1705 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1706 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1714 | ||
1715 | PROGRAM_EXT= | |
1716 | SO_SUFFIX=so | |
1717 | SAMPLES_RPATH_FLAG= | |
1718 | SAMPLES_RPATH_POSTLINK= | |
1719 | ||
1720 | case "${host}" in | |
1721 | *-hp-hpux* ) | |
1722 | USE_HPUX=1 | |
1723 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1724 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1725 | SO_SUFFIX=sl | |
1726 | cat >>confdefs.h <<\_ACEOF | |
1727 | #define __HPUX__ 1 | |
1728 | _ACEOF | |
1729 | ||
1730 | ;; | |
1731 | *-*-linux* ) | |
1732 | USE_LINUX=1 | |
1733 | cat >>confdefs.h <<\_ACEOF | |
1734 | #define __LINUX__ 1 | |
1735 | _ACEOF | |
1736 | ||
1737 | TMP=`uname -m` | |
1738 | if test "x$TMP" = "xalpha"; then | |
1739 | USE_ALPHA=1 | |
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __ALPHA__ 1 | |
1742 | _ACEOF | |
1743 | ||
1744 | fi | |
1745 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1746 | ;; | |
1747 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1748 | USE_GNU=1 | |
1749 | TMP=`uname -m` | |
1750 | if test "x$TMP" = "xalpha"; then | |
1751 | USE_ALPHA=1 | |
1752 | cat >>confdefs.h <<\_ACEOF | |
1753 | #define __ALPHA__ 1 | |
1754 | _ACEOF | |
1755 | ||
1756 | fi | |
1757 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1758 | ;; | |
1759 | *-*-irix5* | *-*-irix6* ) | |
1760 | USE_SGI=1 | |
1761 | USE_SVR4=1 | |
1762 | cat >>confdefs.h <<\_ACEOF | |
1763 | #define __SGI__ 1 | |
1764 | _ACEOF | |
1765 | ||
1766 | cat >>confdefs.h <<\_ACEOF | |
1767 | #define __SVR4__ 1 | |
1768 | _ACEOF | |
1769 | ||
1770 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1771 | ;; | |
1772 | *-*-solaris2* ) | |
1773 | USE_SUN=1 | |
1774 | USE_SOLARIS=1 | |
1775 | USE_SVR4=1 | |
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __SUN__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | cat >>confdefs.h <<\_ACEOF | |
1781 | #define __SOLARIS__ 1 | |
1782 | _ACEOF | |
1783 | ||
1784 | cat >>confdefs.h <<\_ACEOF | |
1785 | #define __SVR4__ 1 | |
1786 | _ACEOF | |
1787 | ||
1788 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1789 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1790 | ;; | |
1791 | *-*-sunos4* ) | |
1792 | USE_SUN=1 | |
1793 | USE_SUNOS=1 | |
1794 | USE_BSD=1 | |
1795 | cat >>confdefs.h <<\_ACEOF | |
1796 | #define __SUN__ 1 | |
1797 | _ACEOF | |
1798 | ||
1799 | cat >>confdefs.h <<\_ACEOF | |
1800 | #define __SUNOS__ 1 | |
1801 | _ACEOF | |
1802 | ||
1803 | cat >>confdefs.h <<\_ACEOF | |
1804 | #define __BSD__ 1 | |
1805 | _ACEOF | |
1806 | ||
1807 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1808 | ;; | |
1809 | *-*-freebsd*) | |
1810 | USE_BSD=1 | |
1811 | USE_FREEBSD=1 | |
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __FREEBSD__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | cat >>confdefs.h <<\_ACEOF | |
1817 | #define __BSD__ 1 | |
1818 | _ACEOF | |
1819 | ||
1820 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1821 | ;; | |
1822 | *-*-openbsd*) | |
1823 | USE_BSD=1 | |
1824 | USE_OPENBSD=1 | |
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __OPENBSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | cat >>confdefs.h <<\_ACEOF | |
1830 | #define __BSD__ 1 | |
1831 | _ACEOF | |
1832 | ||
1833 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1834 | ;; | |
1835 | *-*-netbsd*) | |
1836 | USE_BSD=1 | |
1837 | USE_NETBSD=1 | |
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __NETBSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | cat >>confdefs.h <<\_ACEOF | |
1843 | #define __BSD__ 1 | |
1844 | _ACEOF | |
1845 | ||
1846 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1847 | ;; | |
1848 | *-*-osf* ) | |
1849 | USE_ALPHA=1 | |
1850 | USE_OSF=1 | |
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __ALPHA__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | cat >>confdefs.h <<\_ACEOF | |
1856 | #define __OSF__ 1 | |
1857 | _ACEOF | |
1858 | ||
1859 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1860 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1861 | ;; | |
1862 | *-*-dgux5* ) | |
1863 | USE_ALPHA=1 | |
1864 | USE_SVR4=1 | |
1865 | cat >>confdefs.h <<\_ACEOF | |
1866 | #define __ALPHA__ 1 | |
1867 | _ACEOF | |
1868 | ||
1869 | cat >>confdefs.h <<\_ACEOF | |
1870 | #define __SVR4__ 1 | |
1871 | _ACEOF | |
1872 | ||
1873 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1874 | ;; | |
1875 | *-*-sysv5* ) | |
1876 | USE_SYSV=1 | |
1877 | USE_SVR4=1 | |
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __SYSV__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __SVR4__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1887 | ;; | |
1888 | *-*-aix* ) | |
1889 | USE_AIX=1 | |
1890 | USE_SYSV=1 | |
1891 | USE_SVR4=1 | |
1892 | SO_SUFFIX=a | |
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __AIX__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<\_ACEOF | |
1898 | #define __SYSV__ 1 | |
1899 | _ACEOF | |
1900 | ||
1901 | cat >>confdefs.h <<\_ACEOF | |
1902 | #define __SVR4__ 1 | |
1903 | _ACEOF | |
1904 | ||
1905 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1906 | ;; | |
1907 | ||
1908 | *-*-*UnixWare*) | |
1909 | USE_SYSV=1 | |
1910 | USE_SVR4=1 | |
1911 | USE_UNIXWARE=1 | |
1912 | cat >>confdefs.h <<\_ACEOF | |
1913 | #define __UNIXWARE__ 1 | |
1914 | _ACEOF | |
1915 | ||
1916 | ;; | |
1917 | ||
1918 | *-*-cygwin* | *-*-mingw32* ) | |
1919 | SO_SUFFIX=dll | |
1920 | PROGRAM_EXT=".exe" | |
1921 | RESCOMP=windres | |
1922 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1923 | ;; | |
1924 | ||
1925 | *-pc-msdosdjgpp ) | |
1926 | USE_UNIX=0 | |
1927 | USE_DOS=1 | |
1928 | cat >>confdefs.h <<\_ACEOF | |
1929 | #define __DOS__ 1 | |
1930 | _ACEOF | |
1931 | ||
1932 | PROGRAM_EXT=".exe" | |
1933 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1934 | LIBS="$LIBS -lstdc++" | |
1935 | ;; | |
1936 | ||
1937 | *-pc-os2_emx | *-pc-os2-emx ) | |
1938 | cat >>confdefs.h <<\_ACEOF | |
1939 | #define __EMX__ 1 | |
1940 | _ACEOF | |
1941 | ||
1942 | USE_OS2=1 | |
1943 | cat >>confdefs.h <<\_ACEOF | |
1944 | #define __OS2__ 1 | |
1945 | _ACEOF | |
1946 | ||
1947 | PROGRAM_EXT=".exe" | |
1948 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1949 | CXX=gcc | |
1950 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1951 | ac_executable_extensions=".exe" | |
1952 | export ac_executable_extensions | |
1953 | ac_save_IFS="$IFS" | |
1954 | IFS='\\' | |
1955 | ac_TEMP_PATH= | |
1956 | for ac_dir in $PATH; do | |
1957 | IFS=$ac_save_IFS | |
1958 | if test -z "$ac_TEMP_PATH"; then | |
1959 | ac_TEMP_PATH="$ac_dir" | |
1960 | else | |
1961 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1962 | fi | |
1963 | done | |
1964 | export PATH="$ac_TEMP_PATH" | |
1965 | unset ac_TEMP_PATH | |
1966 | ;; | |
1967 | ||
1968 | powerpc-*-darwin* ) | |
1969 | USE_BSD=1 | |
1970 | USE_DARWIN=1 | |
1971 | SO_SUFFIX=dylib | |
1972 | cat >>confdefs.h <<\_ACEOF | |
1973 | #define __BSD__ 1 | |
1974 | _ACEOF | |
1975 | ||
1976 | cat >>confdefs.h <<\_ACEOF | |
1977 | #define __DARWIN__ 1 | |
1978 | _ACEOF | |
1979 | ||
1980 | cat >>confdefs.h <<\_ACEOF | |
1981 | #define __POWERPC__ 1 | |
1982 | _ACEOF | |
1983 | ||
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define TARGET_CARBON 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1989 | ;; | |
1990 | ||
1991 | *-*-beos* ) | |
1992 | USE_BEOS=1 | |
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define __BEOS__ 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | ;; | |
1998 | ||
1999 | *) | |
2000 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2001 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2002 | { (exit 1); exit 1; }; } | |
2003 | esac | |
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | wx_arg_cache_file="configarg.cache" | |
2009 | echo "loading argument cache $wx_arg_cache_file" | |
2010 | rm -f ${wx_arg_cache_file}.tmp | |
2011 | touch ${wx_arg_cache_file}.tmp | |
2012 | touch ${wx_arg_cache_file} | |
2013 | ||
2014 | ||
2015 | DEBUG_CONFIGURE=0 | |
2016 | if test $DEBUG_CONFIGURE = 1; then | |
2017 | DEFAULT_wxUSE_UNIVERSAL=no | |
2018 | DEFAULT_wxUSE_STL=no | |
2019 | ||
2020 | DEFAULT_wxUSE_NANOX=no | |
2021 | ||
2022 | DEFAULT_wxUSE_THREADS=yes | |
2023 | ||
2024 | DEFAULT_wxUSE_SHARED=yes | |
2025 | DEFAULT_wxUSE_OPTIMISE=no | |
2026 | DEFAULT_wxUSE_PROFILE=no | |
2027 | DEFAULT_wxUSE_NO_DEPS=no | |
2028 | DEFAULT_wxUSE_NO_RTTI=no | |
2029 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2030 | DEFAULT_wxUSE_PERMISSIVE=no | |
2031 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2032 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2033 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2034 | DEFAULT_wxUSE_MEM_TRACING=no | |
2035 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2036 | DEFAULT_wxUSE_DMALLOC=no | |
2037 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2038 | ||
2039 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2040 | DEFAULT_wxUSE_LOG=yes | |
2041 | DEFAULT_wxUSE_LOGWINDOW=no | |
2042 | DEFAULT_wxUSE_LOGGUI=no | |
2043 | DEFAULT_wxUSE_LOGDIALOG=no | |
2044 | ||
2045 | DEFAULT_wxUSE_GUI=yes | |
2046 | DEFAULT_wxUSE_CONTROLS=no | |
2047 | ||
2048 | DEFAULT_wxUSE_REGEX=no | |
2049 | DEFAULT_wxUSE_XML=no | |
2050 | DEFAULT_wxUSE_EXPAT=no | |
2051 | DEFAULT_wxUSE_ZLIB=no | |
2052 | DEFAULT_wxUSE_LIBPNG=no | |
2053 | DEFAULT_wxUSE_LIBJPEG=no | |
2054 | DEFAULT_wxUSE_LIBTIFF=no | |
2055 | DEFAULT_wxUSE_LIBXPM=no | |
2056 | DEFAULT_wxUSE_LIBMSPACK=no | |
2057 | DEFAULT_wxUSE_LIBSDL=no | |
2058 | DEFAULT_wxUSE_ODBC=no | |
2059 | DEFAULT_wxUSE_OPENGL=no | |
2060 | ||
2061 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2062 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2063 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2064 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2065 | DEFAULT_wxUSE_DATETIME=no | |
2066 | DEFAULT_wxUSE_TIMER=no | |
2067 | DEFAULT_wxUSE_STOPWATCH=no | |
2068 | DEFAULT_wxUSE_FILE=no | |
2069 | DEFAULT_wxUSE_FFILE=no | |
2070 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2071 | DEFAULT_wxUSE_TEXTFILE=no | |
2072 | DEFAULT_wxUSE_SOUND=no | |
2073 | DEFAULT_wxUSE_INTL=no | |
2074 | DEFAULT_wxUSE_CONFIG=no | |
2075 | DEFAULT_wxUSE_FONTMAP=no | |
2076 | DEFAULT_wxUSE_STREAMS=no | |
2077 | DEFAULT_wxUSE_SOCKETS=no | |
2078 | DEFAULT_wxUSE_OLE=no | |
2079 | DEFAULT_wxUSE_DATAOBJ=no | |
2080 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2081 | DEFAULT_wxUSE_JOYSTICK=no | |
2082 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2083 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2084 | DEFAULT_wxUSE_LONGLONG=no | |
2085 | DEFAULT_wxUSE_GEOMETRY=no | |
2086 | ||
2087 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2088 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2089 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2090 | ||
2091 | DEFAULT_wxUSE_CLIPBOARD=no | |
2092 | DEFAULT_wxUSE_TOOLTIPS=no | |
2093 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2094 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2095 | DEFAULT_wxUSE_SPLINES=no | |
2096 | ||
8a7b1113 | 2097 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2098 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2099 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2100 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2101 | ||
2102 | DEFAULT_wxUSE_RESOURCES=no | |
2103 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2104 | DEFAULT_wxUSE_IPC=no | |
2105 | DEFAULT_wxUSE_HELP=no | |
2106 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2107 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2108 | DEFAULT_wxUSE_TREELAYOUT=no | |
2109 | DEFAULT_wxUSE_METAFILE=no | |
2110 | DEFAULT_wxUSE_MIMETYPE=no | |
2111 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2112 | DEFAULT_wxUSE_PROTOCOL=no | |
2113 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2114 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2115 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2116 | DEFAULT_wxUSE_URL=no | |
2117 | ||
2118 | DEFAULT_wxUSE_COMMONDLGS=no | |
2119 | DEFAULT_wxUSE_CHOICEDLG=no | |
2120 | DEFAULT_wxUSE_COLOURDLG=no | |
2121 | DEFAULT_wxUSE_DIRDLG=no | |
2122 | DEFAULT_wxUSE_FILEDLG=no | |
2123 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2124 | DEFAULT_wxUSE_FONTDLG=no | |
2125 | DEFAULT_wxUSE_MSGDLG=no | |
2126 | DEFAULT_wxUSE_NUMBERDLG=no | |
2127 | DEFAULT_wxUSE_TEXTDLG=no | |
2128 | DEFAULT_wxUSE_SPLASH=no | |
2129 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2130 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2131 | DEFAULT_wxUSE_WIZARDDLG=no | |
2132 | ||
2133 | DEFAULT_wxUSE_MENUS=no | |
2134 | DEFAULT_wxUSE_MINIFRAME=no | |
2135 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2136 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2137 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2138 | DEFAULT_wxUSE_FILESYSTEM=no |
2139 | DEFAULT_wxUSE_FS_INET=no | |
2140 | DEFAULT_wxUSE_FS_ZIP=no | |
2141 | DEFAULT_wxUSE_BUSYINFO=no | |
2142 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2143 | DEFAULT_wxUSE_VALIDATORS=no |
2144 | ||
2145 | DEFAULT_wxUSE_ACCEL=no | |
2146 | DEFAULT_wxUSE_BUTTON=no | |
2147 | DEFAULT_wxUSE_BMPBUTTON=no | |
2148 | DEFAULT_wxUSE_CALCTRL=no | |
2149 | DEFAULT_wxUSE_CARET=no | |
2150 | DEFAULT_wxUSE_CHECKBOX=no | |
2151 | DEFAULT_wxUSE_CHECKLST=no | |
2152 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2153 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2154 | DEFAULT_wxUSE_COMBOBOX=no |
2155 | DEFAULT_wxUSE_DISPLAY=no | |
2156 | DEFAULT_wxUSE_GAUGE=no | |
2157 | DEFAULT_wxUSE_GRID=no | |
2158 | DEFAULT_wxUSE_IMAGLIST=no | |
2159 | DEFAULT_wxUSE_LISTBOOK=no | |
2160 | DEFAULT_wxUSE_LISTBOX=no | |
2161 | DEFAULT_wxUSE_LISTCTRL=no | |
2162 | DEFAULT_wxUSE_NOTEBOOK=no | |
2163 | DEFAULT_wxUSE_RADIOBOX=no | |
2164 | DEFAULT_wxUSE_RADIOBTN=no | |
2165 | DEFAULT_wxUSE_SASH=no | |
2166 | DEFAULT_wxUSE_SCROLLBAR=no | |
2167 | DEFAULT_wxUSE_SLIDER=no | |
2168 | DEFAULT_wxUSE_SPINBTN=no | |
2169 | DEFAULT_wxUSE_SPINCTRL=no | |
2170 | DEFAULT_wxUSE_SPLITTER=no | |
2171 | DEFAULT_wxUSE_STATBMP=no | |
2172 | DEFAULT_wxUSE_STATBOX=no | |
2173 | DEFAULT_wxUSE_STATLINE=no | |
2174 | DEFAULT_wxUSE_STATTEXT=no | |
2175 | DEFAULT_wxUSE_STATUSBAR=yes | |
2176 | DEFAULT_wxUSE_TABDIALOG=no | |
2177 | DEFAULT_wxUSE_TEXTCTRL=no | |
2178 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2179 | DEFAULT_wxUSE_TOOLBAR=no | |
2180 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2181 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2182 | DEFAULT_wxUSE_TREECTRL=no | |
2183 | DEFAULT_wxUSE_POPUPWIN=no | |
2184 | DEFAULT_wxUSE_TIPWINDOW=no | |
2185 | ||
2186 | DEFAULT_wxUSE_UNICODE=no | |
2187 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2188 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2189 | ||
2190 | DEFAULT_wxUSE_PALETTE=no | |
2191 | DEFAULT_wxUSE_IMAGE=no | |
2192 | DEFAULT_wxUSE_GIF=no | |
2193 | DEFAULT_wxUSE_PCX=no | |
2194 | DEFAULT_wxUSE_PNM=no | |
2195 | DEFAULT_wxUSE_IFF=no | |
2196 | DEFAULT_wxUSE_XPM=no | |
2197 | DEFAULT_wxUSE_ICO_CUR=no | |
2198 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2199 | ||
2200 | DEFAULT_wxUSE_MONOLITHIC=no | |
2201 | DEFAULT_wxUSE_PLUGINS=no | |
2202 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2203 | else | |
2204 | DEFAULT_wxUSE_UNIVERSAL=no | |
2205 | DEFAULT_wxUSE_STL=no | |
2206 | ||
2207 | DEFAULT_wxUSE_NANOX=no | |
2208 | ||
2209 | DEFAULT_wxUSE_THREADS=yes | |
2210 | ||
2211 | DEFAULT_wxUSE_SHARED=yes | |
2212 | DEFAULT_wxUSE_OPTIMISE=yes | |
2213 | DEFAULT_wxUSE_PROFILE=no | |
2214 | DEFAULT_wxUSE_NO_DEPS=no | |
2215 | DEFAULT_wxUSE_NO_RTTI=no | |
2216 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2217 | DEFAULT_wxUSE_PERMISSIVE=no | |
2218 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2219 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2220 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2221 | DEFAULT_wxUSE_MEM_TRACING=no | |
2222 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2223 | DEFAULT_wxUSE_DMALLOC=no | |
2224 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2225 | ||
2226 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2227 | DEFAULT_wxUSE_LOG=yes | |
2228 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2229 | DEFAULT_wxUSE_LOGGUI=yes | |
2230 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2231 | ||
2232 | DEFAULT_wxUSE_GUI=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_REGEX=yes | |
2235 | DEFAULT_wxUSE_XML=yes | |
2236 | DEFAULT_wxUSE_EXPAT=yes | |
2237 | DEFAULT_wxUSE_ZLIB=yes | |
2238 | DEFAULT_wxUSE_LIBPNG=yes | |
2239 | DEFAULT_wxUSE_LIBJPEG=yes | |
2240 | DEFAULT_wxUSE_LIBTIFF=yes | |
2241 | DEFAULT_wxUSE_LIBXPM=yes | |
2242 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2243 | DEFAULT_wxUSE_LIBSDL=no | |
2244 | DEFAULT_wxUSE_ODBC=no | |
2245 | DEFAULT_wxUSE_OPENGL=no | |
2246 | ||
2247 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2248 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2249 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2250 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2251 | DEFAULT_wxUSE_DATETIME=yes | |
2252 | DEFAULT_wxUSE_TIMER=yes | |
2253 | DEFAULT_wxUSE_STOPWATCH=yes | |
2254 | DEFAULT_wxUSE_FILE=yes | |
2255 | DEFAULT_wxUSE_FFILE=yes | |
2256 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2257 | DEFAULT_wxUSE_TEXTFILE=yes | |
2258 | DEFAULT_wxUSE_SOUND=yes | |
2259 | DEFAULT_wxUSE_INTL=yes | |
2260 | DEFAULT_wxUSE_CONFIG=yes | |
2261 | DEFAULT_wxUSE_FONTMAP=yes | |
2262 | DEFAULT_wxUSE_STREAMS=yes | |
2263 | DEFAULT_wxUSE_SOCKETS=yes | |
2264 | DEFAULT_wxUSE_OLE=yes | |
2265 | DEFAULT_wxUSE_DATAOBJ=yes | |
2266 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2267 | DEFAULT_wxUSE_JOYSTICK=yes | |
2268 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2269 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2270 | DEFAULT_wxUSE_LONGLONG=yes | |
2271 | DEFAULT_wxUSE_GEOMETRY=yes | |
2272 | ||
2273 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2274 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2275 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2276 | ||
2277 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2278 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2279 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2280 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2281 | DEFAULT_wxUSE_SPLINES=yes | |
2282 | ||
8a7b1113 | 2283 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2284 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2285 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2286 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2287 | ||
2288 | DEFAULT_wxUSE_RESOURCES=no | |
2289 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2290 | DEFAULT_wxUSE_IPC=yes | |
2291 | DEFAULT_wxUSE_HELP=yes | |
2292 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2293 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2294 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2295 | DEFAULT_wxUSE_METAFILE=yes | |
2296 | DEFAULT_wxUSE_MIMETYPE=yes | |
2297 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2298 | DEFAULT_wxUSE_PROTOCOL=yes | |
2299 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2300 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2301 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2302 | DEFAULT_wxUSE_URL=yes | |
2303 | ||
2304 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2305 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2306 | DEFAULT_wxUSE_COLOURDLG=yes | |
2307 | DEFAULT_wxUSE_DIRDLG=yes | |
2308 | DEFAULT_wxUSE_FILEDLG=yes | |
2309 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2310 | DEFAULT_wxUSE_FONTDLG=yes | |
2311 | DEFAULT_wxUSE_MSGDLG=yes | |
2312 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2313 | DEFAULT_wxUSE_TEXTDLG=yes | |
2314 | DEFAULT_wxUSE_SPLASH=yes | |
2315 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2316 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2317 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_MENUS=yes | |
2320 | DEFAULT_wxUSE_MINIFRAME=yes | |
2321 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2322 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2323 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2324 | DEFAULT_wxUSE_FILESYSTEM=yes |
2325 | DEFAULT_wxUSE_FS_INET=yes | |
2326 | DEFAULT_wxUSE_FS_ZIP=yes | |
2327 | DEFAULT_wxUSE_BUSYINFO=yes | |
2328 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2329 | DEFAULT_wxUSE_VALIDATORS=yes |
2330 | ||
2331 | DEFAULT_wxUSE_ACCEL=yes | |
2332 | DEFAULT_wxUSE_BUTTON=yes | |
2333 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2334 | DEFAULT_wxUSE_CALCTRL=yes | |
2335 | DEFAULT_wxUSE_CARET=yes | |
2336 | DEFAULT_wxUSE_CHECKBOX=yes | |
2337 | DEFAULT_wxUSE_CHECKLST=yes | |
2338 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2339 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2340 | DEFAULT_wxUSE_COMBOBOX=yes |
2341 | DEFAULT_wxUSE_DISPLAY=yes | |
2342 | DEFAULT_wxUSE_GAUGE=yes | |
2343 | DEFAULT_wxUSE_GRID=yes | |
2344 | DEFAULT_wxUSE_IMAGLIST=yes | |
2345 | DEFAULT_wxUSE_LISTBOOK=yes | |
2346 | DEFAULT_wxUSE_LISTBOX=yes | |
2347 | DEFAULT_wxUSE_LISTCTRL=yes | |
2348 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2349 | DEFAULT_wxUSE_RADIOBOX=yes | |
2350 | DEFAULT_wxUSE_RADIOBTN=yes | |
2351 | DEFAULT_wxUSE_SASH=yes | |
2352 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2353 | DEFAULT_wxUSE_SLIDER=yes | |
2354 | DEFAULT_wxUSE_SPINBTN=yes | |
2355 | DEFAULT_wxUSE_SPINCTRL=yes | |
2356 | DEFAULT_wxUSE_SPLITTER=yes | |
2357 | DEFAULT_wxUSE_STATBMP=yes | |
2358 | DEFAULT_wxUSE_STATBOX=yes | |
2359 | DEFAULT_wxUSE_STATLINE=yes | |
2360 | DEFAULT_wxUSE_STATTEXT=yes | |
2361 | DEFAULT_wxUSE_STATUSBAR=yes | |
2362 | DEFAULT_wxUSE_TABDIALOG=no | |
2363 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2364 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2365 | DEFAULT_wxUSE_TOOLBAR=yes | |
2366 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2367 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2368 | DEFAULT_wxUSE_TREECTRL=yes | |
2369 | DEFAULT_wxUSE_POPUPWIN=yes | |
2370 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2371 | ||
2372 | DEFAULT_wxUSE_UNICODE=no | |
2373 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2374 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2375 | ||
2376 | DEFAULT_wxUSE_PALETTE=yes | |
2377 | DEFAULT_wxUSE_IMAGE=yes | |
2378 | DEFAULT_wxUSE_GIF=yes | |
2379 | DEFAULT_wxUSE_PCX=yes | |
2380 | DEFAULT_wxUSE_IFF=no | |
2381 | DEFAULT_wxUSE_PNM=yes | |
2382 | DEFAULT_wxUSE_XPM=yes | |
2383 | DEFAULT_wxUSE_ICO_CUR=yes | |
2384 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2385 | ||
2386 | DEFAULT_wxUSE_MONOLITHIC=no | |
2387 | DEFAULT_wxUSE_PLUGINS=no | |
2388 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2389 | |
2390 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2391 | fi |
2392 | ||
2393 | ||
2394 | ||
2395 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2396 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2397 | if test "x$LINE" != "x" ; then | |
2398 | has_toolkit_in_cache=1 | |
2399 | eval "DEFAULT_$LINE" | |
2400 | eval "CACHE_$toolkit=1" | |
2401 | fi | |
2402 | done | |
2403 | ||
2404 | ||
2405 | ||
2406 | enablestring= | |
2407 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2408 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2409 | no_cache=0 | |
2410 | # Check whether --enable-gui or --disable-gui was given. | |
2411 | if test "${enable_gui+set}" = set; then | |
2412 | enableval="$enable_gui" | |
2413 | ||
2414 | if test "$enableval" = yes; then | |
2415 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2416 | else | |
2417 | ac_cv_use_gui='wxUSE_GUI=no' | |
2418 | fi | |
2419 | ||
2420 | else | |
2421 | ||
2422 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2423 | if test "x$LINE" != x ; then | |
2424 | eval "DEFAULT_$LINE" | |
2425 | else | |
2426 | no_cache=1 | |
2427 | fi | |
2428 | ||
2429 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2430 | ||
2431 | fi; | |
2432 | ||
2433 | eval "$ac_cv_use_gui" | |
2434 | if test "$no_cache" != 1; then | |
2435 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2436 | fi | |
2437 | ||
2438 | if test "$wxUSE_GUI" = yes; then | |
2439 | echo "$as_me:$LINENO: result: yes" >&5 | |
2440 | echo "${ECHO_T}yes" >&6 | |
2441 | else | |
2442 | echo "$as_me:$LINENO: result: no" >&5 | |
2443 | echo "${ECHO_T}no" >&6 | |
2444 | fi | |
2445 | ||
2446 | ||
2447 | enablestring= | |
2448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2449 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2450 | no_cache=0 | |
2451 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2452 | if test "${enable_monolithic+set}" = set; then | |
2453 | enableval="$enable_monolithic" | |
2454 | ||
2455 | if test "$enableval" = yes; then | |
2456 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2457 | else | |
2458 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2459 | fi | |
2460 | ||
2461 | else | |
2462 | ||
2463 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2464 | if test "x$LINE" != x ; then | |
2465 | eval "DEFAULT_$LINE" | |
2466 | else | |
2467 | no_cache=1 | |
2468 | fi | |
2469 | ||
2470 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2471 | ||
2472 | fi; | |
2473 | ||
2474 | eval "$ac_cv_use_monolithic" | |
2475 | if test "$no_cache" != 1; then | |
2476 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2477 | fi | |
2478 | ||
2479 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2480 | echo "$as_me:$LINENO: result: yes" >&5 | |
2481 | echo "${ECHO_T}yes" >&6 | |
2482 | else | |
2483 | echo "$as_me:$LINENO: result: no" >&5 | |
2484 | echo "${ECHO_T}no" >&6 | |
2485 | fi | |
2486 | ||
2487 | ||
2488 | enablestring= | |
2489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2490 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2491 | no_cache=0 | |
2492 | # Check whether --enable-plugins or --disable-plugins was given. | |
2493 | if test "${enable_plugins+set}" = set; then | |
2494 | enableval="$enable_plugins" | |
2495 | ||
2496 | if test "$enableval" = yes; then | |
2497 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2498 | else | |
2499 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2500 | fi | |
2501 | ||
2502 | else | |
2503 | ||
2504 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2505 | if test "x$LINE" != x ; then | |
2506 | eval "DEFAULT_$LINE" | |
2507 | else | |
2508 | no_cache=1 | |
2509 | fi | |
2510 | ||
2511 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2512 | ||
2513 | fi; | |
2514 | ||
2515 | eval "$ac_cv_use_plugins" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_PLUGINS" = yes; then | |
2521 | echo "$as_me:$LINENO: result: yes" >&5 | |
2522 | echo "${ECHO_T}yes" >&6 | |
2523 | else | |
2524 | echo "$as_me:$LINENO: result: no" >&5 | |
2525 | echo "${ECHO_T}no" >&6 | |
2526 | fi | |
2527 | ||
2528 | ||
2529 | if test "$wxUSE_GUI" = "yes"; then | |
2530 | ||
2531 | ||
2532 | enablestring= | |
2533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2534 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2535 | no_cache=0 | |
2536 | # Check whether --enable-universal or --disable-universal was given. | |
2537 | if test "${enable_universal+set}" = set; then | |
2538 | enableval="$enable_universal" | |
2539 | ||
2540 | if test "$enableval" = yes; then | |
2541 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2542 | else | |
2543 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2544 | fi | |
2545 | ||
2546 | else | |
2547 | ||
2548 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2549 | if test "x$LINE" != x ; then | |
2550 | eval "DEFAULT_$LINE" | |
2551 | else | |
2552 | no_cache=1 | |
2553 | fi | |
2554 | ||
2555 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2556 | ||
2557 | fi; | |
2558 | ||
2559 | eval "$ac_cv_use_universal" | |
2560 | if test "$no_cache" != 1; then | |
2561 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2562 | fi | |
2563 | ||
2564 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2565 | echo "$as_me:$LINENO: result: yes" >&5 | |
2566 | echo "${ECHO_T}yes" >&6 | |
2567 | else | |
2568 | echo "$as_me:$LINENO: result: no" >&5 | |
2569 | echo "${ECHO_T}no" >&6 | |
2570 | fi | |
2571 | ||
2572 | ||
2573 | # Check whether --with-gtk or --without-gtk was given. | |
2574 | if test "${with_gtk+set}" = set; then | |
2575 | withval="$with_gtk" | |
2576 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2577 | fi; | |
2578 | ||
2579 | # Check whether --with-motif or --without-motif was given. | |
2580 | if test "${with_motif+set}" = set; then | |
2581 | withval="$with_motif" | |
2582 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2583 | fi; | |
2584 | ||
2585 | # Check whether --with-mac or --without-mac was given. | |
2586 | if test "${with_mac+set}" = set; then | |
2587 | withval="$with_mac" | |
2588 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2589 | fi; | |
2590 | ||
2591 | # Check whether --with-cocoa or --without-cocoa was given. | |
2592 | if test "${with_cocoa+set}" = set; then | |
2593 | withval="$with_cocoa" | |
2594 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2595 | fi; | |
2596 | ||
2597 | # Check whether --with-wine or --without-wine was given. | |
2598 | if test "${with_wine+set}" = set; then | |
2599 | withval="$with_wine" | |
2600 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2601 | fi; | |
2602 | ||
2603 | # Check whether --with-msw or --without-msw was given. | |
2604 | if test "${with_msw+set}" = set; then | |
2605 | withval="$with_msw" | |
2606 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2607 | fi; | |
2608 | ||
2609 | # Check whether --with-pm or --without-pm was given. | |
2610 | if test "${with_pm+set}" = set; then | |
2611 | withval="$with_pm" | |
2612 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2613 | fi; | |
2614 | ||
2615 | # Check whether --with-mgl or --without-mgl was given. | |
2616 | if test "${with_mgl+set}" = set; then | |
2617 | withval="$with_mgl" | |
2618 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2619 | fi; | |
2620 | ||
2621 | # Check whether --with-microwin or --without-microwin was given. | |
2622 | if test "${with_microwin+set}" = set; then | |
2623 | withval="$with_microwin" | |
2624 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2625 | fi; | |
2626 | ||
2627 | # Check whether --with-x11 or --without-x11 was given. | |
2628 | if test "${with_x11+set}" = set; then | |
2629 | withval="$with_x11" | |
2630 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2631 | fi; | |
2632 | ||
2633 | enablestring= | |
2634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2635 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2636 | no_cache=0 | |
2637 | # Check whether --enable-nanox or --disable-nanox was given. | |
2638 | if test "${enable_nanox+set}" = set; then | |
2639 | enableval="$enable_nanox" | |
2640 | ||
2641 | if test "$enableval" = yes; then | |
2642 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2643 | else | |
2644 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2645 | fi | |
2646 | ||
2647 | else | |
2648 | ||
2649 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2650 | if test "x$LINE" != x ; then | |
2651 | eval "DEFAULT_$LINE" | |
2652 | else | |
2653 | no_cache=1 | |
2654 | fi | |
2655 | ||
2656 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2657 | ||
2658 | fi; | |
2659 | ||
2660 | eval "$ac_cv_use_nanox" | |
2661 | if test "$no_cache" != 1; then | |
2662 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2663 | fi | |
2664 | ||
2665 | if test "$wxUSE_NANOX" = yes; then | |
2666 | echo "$as_me:$LINENO: result: yes" >&5 | |
2667 | echo "${ECHO_T}yes" >&6 | |
2668 | else | |
2669 | echo "$as_me:$LINENO: result: no" >&5 | |
2670 | echo "${ECHO_T}no" >&6 | |
2671 | fi | |
2672 | ||
2673 | ||
2674 | ||
2675 | enablestring= | |
2676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2677 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2678 | no_cache=0 | |
2679 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2680 | if test "${enable_gtk2+set}" = set; then | |
2681 | enableval="$enable_gtk2" | |
2682 | ||
2683 | if test "$enableval" = yes; then | |
2684 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2685 | else | |
2686 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2687 | fi | |
2688 | ||
2689 | else | |
2690 | ||
2691 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2692 | if test "x$LINE" != x ; then | |
2693 | eval "DEFAULT_$LINE" | |
2694 | else | |
2695 | no_cache=1 | |
2696 | fi | |
2697 | ||
2698 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2699 | ||
2700 | fi; | |
2701 | ||
2702 | eval "$ac_cv_use_gtk2" | |
2703 | if test "$no_cache" != 1; then | |
2704 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2705 | fi | |
2706 | ||
2707 | if test "$wxUSE_GTK2" = yes; then | |
2708 | echo "$as_me:$LINENO: result: yes" >&5 | |
2709 | echo "${ECHO_T}yes" >&6 | |
2710 | else | |
2711 | echo "$as_me:$LINENO: result: no" >&5 | |
2712 | echo "${ECHO_T}no" >&6 | |
2713 | fi | |
2714 | ||
2715 | ||
2716 | enablestring= | |
2717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2718 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2719 | no_cache=0 | |
2720 | # Check whether --enable-gpe or --disable-gpe was given. | |
2721 | if test "${enable_gpe+set}" = set; then | |
2722 | enableval="$enable_gpe" | |
2723 | ||
2724 | if test "$enableval" = yes; then | |
2725 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2726 | else | |
2727 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2728 | fi | |
2729 | ||
2730 | else | |
2731 | ||
2732 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2733 | if test "x$LINE" != x ; then | |
2734 | eval "DEFAULT_$LINE" | |
2735 | else | |
2736 | no_cache=1 | |
2737 | fi | |
2738 | ||
2739 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2740 | ||
2741 | fi; | |
2742 | ||
2743 | eval "$ac_cv_use_gpe" | |
2744 | if test "$no_cache" != 1; then | |
2745 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2746 | fi | |
2747 | ||
2748 | if test "$wxUSE_GPE" = yes; then | |
2749 | echo "$as_me:$LINENO: result: yes" >&5 | |
2750 | echo "${ECHO_T}yes" >&6 | |
2751 | else | |
2752 | echo "$as_me:$LINENO: result: no" >&5 | |
2753 | echo "${ECHO_T}no" >&6 | |
2754 | fi | |
2755 | ||
2756 | ||
2757 | ||
2758 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2759 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2760 | no_cache=0 | |
2761 | ||
2762 | # Check whether --with-libpng or --without-libpng was given. | |
2763 | if test "${with_libpng+set}" = set; then | |
2764 | withval="$with_libpng" | |
2765 | ||
2766 | if test "$withval" = yes; then | |
2767 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2768 | elif test "$withval" = no; then | |
2769 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2770 | elif test "$withval" = sys; then | |
2771 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2772 | elif test "$withval" = builtin; then | |
2773 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2774 | else | |
2775 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2776 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2777 | { (exit 1); exit 1; }; } | |
2778 | fi | |
2779 | ||
2780 | else | |
2781 | ||
2782 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2790 | ||
2791 | fi; | |
2792 | ||
2793 | eval "$ac_cv_use_libpng" | |
2794 | if test "$no_cache" != 1; then | |
2795 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2796 | fi | |
2797 | ||
2798 | if test "$wxUSE_LIBPNG" = yes; then | |
2799 | echo "$as_me:$LINENO: result: yes" >&5 | |
2800 | echo "${ECHO_T}yes" >&6 | |
2801 | elif test "$wxUSE_LIBPNG" = no; then | |
2802 | echo "$as_me:$LINENO: result: no" >&5 | |
2803 | echo "${ECHO_T}no" >&6 | |
2804 | elif test "$wxUSE_LIBPNG" = sys; then | |
2805 | echo "$as_me:$LINENO: result: system version" >&5 | |
2806 | echo "${ECHO_T}system version" >&6 | |
2807 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2808 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2809 | echo "${ECHO_T}builtin version" >&6 | |
2810 | else | |
2811 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2812 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2813 | { (exit 1); exit 1; }; } | |
2814 | fi | |
2815 | ||
2816 | ||
2817 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2818 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2819 | no_cache=0 | |
2820 | ||
2821 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2822 | if test "${with_libjpeg+set}" = set; then | |
2823 | withval="$with_libjpeg" | |
2824 | ||
2825 | if test "$withval" = yes; then | |
2826 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2827 | elif test "$withval" = no; then | |
2828 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2829 | elif test "$withval" = sys; then | |
2830 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2831 | elif test "$withval" = builtin; then | |
2832 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2833 | else | |
2834 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2835 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2836 | { (exit 1); exit 1; }; } | |
2837 | fi | |
2838 | ||
2839 | else | |
2840 | ||
2841 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2849 | ||
2850 | fi; | |
2851 | ||
2852 | eval "$ac_cv_use_libjpeg" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_LIBJPEG" = yes; then | |
2858 | echo "$as_me:$LINENO: result: yes" >&5 | |
2859 | echo "${ECHO_T}yes" >&6 | |
2860 | elif test "$wxUSE_LIBJPEG" = no; then | |
2861 | echo "$as_me:$LINENO: result: no" >&5 | |
2862 | echo "${ECHO_T}no" >&6 | |
2863 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2864 | echo "$as_me:$LINENO: result: system version" >&5 | |
2865 | echo "${ECHO_T}system version" >&6 | |
2866 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2867 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2868 | echo "${ECHO_T}builtin version" >&6 | |
2869 | else | |
2870 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2871 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2872 | { (exit 1); exit 1; }; } | |
2873 | fi | |
2874 | ||
2875 | ||
2876 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2877 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2878 | no_cache=0 | |
2879 | ||
2880 | # Check whether --with-libtiff or --without-libtiff was given. | |
2881 | if test "${with_libtiff+set}" = set; then | |
2882 | withval="$with_libtiff" | |
2883 | ||
2884 | if test "$withval" = yes; then | |
2885 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2886 | elif test "$withval" = no; then | |
2887 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2888 | elif test "$withval" = sys; then | |
2889 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2890 | elif test "$withval" = builtin; then | |
2891 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2892 | else | |
2893 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2894 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2895 | { (exit 1); exit 1; }; } | |
2896 | fi | |
2897 | ||
2898 | else | |
2899 | ||
2900 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2901 | if test "x$LINE" != x ; then | |
2902 | eval "DEFAULT_$LINE" | |
2903 | else | |
2904 | no_cache=1 | |
2905 | fi | |
2906 | ||
2907 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2908 | ||
2909 | fi; | |
2910 | ||
2911 | eval "$ac_cv_use_libtiff" | |
2912 | if test "$no_cache" != 1; then | |
2913 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2914 | fi | |
2915 | ||
2916 | if test "$wxUSE_LIBTIFF" = yes; then | |
2917 | echo "$as_me:$LINENO: result: yes" >&5 | |
2918 | echo "${ECHO_T}yes" >&6 | |
2919 | elif test "$wxUSE_LIBTIFF" = no; then | |
2920 | echo "$as_me:$LINENO: result: no" >&5 | |
2921 | echo "${ECHO_T}no" >&6 | |
2922 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2923 | echo "$as_me:$LINENO: result: system version" >&5 | |
2924 | echo "${ECHO_T}system version" >&6 | |
2925 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2926 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2927 | echo "${ECHO_T}builtin version" >&6 | |
2928 | else | |
2929 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2930 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2931 | { (exit 1); exit 1; }; } | |
2932 | fi | |
2933 | ||
2934 | ||
2935 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2936 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2937 | no_cache=0 | |
2938 | ||
2939 | # Check whether --with-libxpm or --without-libxpm was given. | |
2940 | if test "${with_libxpm+set}" = set; then | |
2941 | withval="$with_libxpm" | |
2942 | ||
2943 | if test "$withval" = yes; then | |
2944 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2945 | elif test "$withval" = no; then | |
2946 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2947 | elif test "$withval" = sys; then | |
2948 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2949 | elif test "$withval" = builtin; then | |
2950 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2951 | else | |
2952 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2953 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2954 | { (exit 1); exit 1; }; } | |
2955 | fi | |
2956 | ||
2957 | else | |
2958 | ||
2959 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2960 | if test "x$LINE" != x ; then | |
2961 | eval "DEFAULT_$LINE" | |
2962 | else | |
2963 | no_cache=1 | |
2964 | fi | |
2965 | ||
2966 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2967 | ||
2968 | fi; | |
2969 | ||
2970 | eval "$ac_cv_use_libxpm" | |
2971 | if test "$no_cache" != 1; then | |
2972 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2973 | fi | |
2974 | ||
2975 | if test "$wxUSE_LIBXPM" = yes; then | |
2976 | echo "$as_me:$LINENO: result: yes" >&5 | |
2977 | echo "${ECHO_T}yes" >&6 | |
2978 | elif test "$wxUSE_LIBXPM" = no; then | |
2979 | echo "$as_me:$LINENO: result: no" >&5 | |
2980 | echo "${ECHO_T}no" >&6 | |
2981 | elif test "$wxUSE_LIBXPM" = sys; then | |
2982 | echo "$as_me:$LINENO: result: system version" >&5 | |
2983 | echo "${ECHO_T}system version" >&6 | |
2984 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2985 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2986 | echo "${ECHO_T}builtin version" >&6 | |
2987 | else | |
2988 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2989 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2990 | { (exit 1); exit 1; }; } | |
2991 | fi | |
2992 | ||
2993 | ||
2994 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2995 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2996 | no_cache=0 | |
2997 | ||
2998 | # Check whether --with-libmspack or --without-libmspack was given. | |
2999 | if test "${with_libmspack+set}" = set; then | |
3000 | withval="$with_libmspack" | |
3001 | ||
3002 | if test "$withval" = yes; then | |
3003 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3004 | else | |
3005 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3006 | fi | |
3007 | ||
3008 | else | |
3009 | ||
3010 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3011 | if test "x$LINE" != x ; then | |
3012 | eval "DEFAULT_$LINE" | |
3013 | else | |
3014 | no_cache=1 | |
3015 | fi | |
3016 | ||
3017 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3018 | ||
3019 | fi; | |
3020 | ||
3021 | eval "$ac_cv_use_libmspack" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3027 | echo "$as_me:$LINENO: result: yes" >&5 | |
3028 | echo "${ECHO_T}yes" >&6 | |
3029 | else | |
3030 | echo "$as_me:$LINENO: result: no" >&5 | |
3031 | echo "${ECHO_T}no" >&6 | |
3032 | fi | |
3033 | ||
3034 | ||
3035 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3036 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3037 | no_cache=0 | |
3038 | ||
3039 | # Check whether --with-sdl or --without-sdl was given. | |
3040 | if test "${with_sdl+set}" = set; then | |
3041 | withval="$with_sdl" | |
3042 | ||
3043 | if test "$withval" = yes; then | |
3044 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3045 | else | |
3046 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3047 | fi | |
3048 | ||
3049 | else | |
3050 | ||
3051 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3059 | ||
3060 | fi; | |
3061 | ||
3062 | eval "$ac_cv_use_sdl" | |
3063 | if test "$no_cache" != 1; then | |
3064 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3065 | fi | |
3066 | ||
3067 | if test "$wxUSE_LIBSDL" = yes; then | |
3068 | echo "$as_me:$LINENO: result: yes" >&5 | |
3069 | echo "${ECHO_T}yes" >&6 | |
3070 | else | |
3071 | echo "$as_me:$LINENO: result: no" >&5 | |
3072 | echo "${ECHO_T}no" >&6 | |
3073 | fi | |
3074 | ||
3075 | ||
3076 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3077 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3078 | no_cache=0 | |
3079 | ||
3080 | # Check whether --with-opengl or --without-opengl was given. | |
3081 | if test "${with_opengl+set}" = set; then | |
3082 | withval="$with_opengl" | |
3083 | ||
3084 | if test "$withval" = yes; then | |
3085 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3086 | else | |
3087 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3088 | fi | |
3089 | ||
3090 | else | |
3091 | ||
3092 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3093 | if test "x$LINE" != x ; then | |
3094 | eval "DEFAULT_$LINE" | |
3095 | else | |
3096 | no_cache=1 | |
3097 | fi | |
3098 | ||
3099 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3100 | ||
3101 | fi; | |
3102 | ||
3103 | eval "$ac_cv_use_opengl" | |
3104 | if test "$no_cache" != 1; then | |
3105 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3106 | fi | |
3107 | ||
3108 | if test "$wxUSE_OPENGL" = yes; then | |
3109 | echo "$as_me:$LINENO: result: yes" >&5 | |
3110 | echo "${ECHO_T}yes" >&6 | |
3111 | else | |
3112 | echo "$as_me:$LINENO: result: no" >&5 | |
3113 | echo "${ECHO_T}no" >&6 | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | fi | |
3118 | ||
3119 | ||
3120 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3121 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3122 | no_cache=0 | |
3123 | ||
3124 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3125 | if test "${with_dmalloc+set}" = set; then | |
3126 | withval="$with_dmalloc" | |
3127 | ||
3128 | if test "$withval" = yes; then | |
3129 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3130 | else | |
3131 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3144 | ||
3145 | fi; | |
3146 | ||
3147 | eval "$ac_cv_use_dmalloc" | |
3148 | if test "$no_cache" != 1; then | |
3149 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3150 | fi | |
3151 | ||
3152 | if test "$wxUSE_DMALLOC" = yes; then | |
3153 | echo "$as_me:$LINENO: result: yes" >&5 | |
3154 | echo "${ECHO_T}yes" >&6 | |
3155 | else | |
3156 | echo "$as_me:$LINENO: result: no" >&5 | |
3157 | echo "${ECHO_T}no" >&6 | |
3158 | fi | |
3159 | ||
3160 | ||
3161 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3162 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3163 | no_cache=0 | |
3164 | ||
3165 | # Check whether --with-regex or --without-regex was given. | |
3166 | if test "${with_regex+set}" = set; then | |
3167 | withval="$with_regex" | |
3168 | ||
3169 | if test "$withval" = yes; then | |
3170 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3171 | elif test "$withval" = no; then | |
3172 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3173 | elif test "$withval" = sys; then | |
3174 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3175 | elif test "$withval" = builtin; then | |
3176 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3177 | else | |
3178 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3179 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3180 | { (exit 1); exit 1; }; } | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3193 | ||
3194 | fi; | |
3195 | ||
3196 | eval "$ac_cv_use_regex" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_REGEX" = yes; then | |
3202 | echo "$as_me:$LINENO: result: yes" >&5 | |
3203 | echo "${ECHO_T}yes" >&6 | |
3204 | elif test "$wxUSE_REGEX" = no; then | |
3205 | echo "$as_me:$LINENO: result: no" >&5 | |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | elif test "$wxUSE_REGEX" = sys; then | |
3208 | echo "$as_me:$LINENO: result: system version" >&5 | |
3209 | echo "${ECHO_T}system version" >&6 | |
3210 | elif test "$wxUSE_REGEX" = builtin; then | |
3211 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3212 | echo "${ECHO_T}builtin version" >&6 | |
3213 | else | |
3214 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3215 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3216 | { (exit 1); exit 1; }; } | |
3217 | fi | |
3218 | ||
3219 | ||
3220 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3221 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3222 | no_cache=0 | |
3223 | ||
3224 | # Check whether --with-zlib or --without-zlib was given. | |
3225 | if test "${with_zlib+set}" = set; then | |
3226 | withval="$with_zlib" | |
3227 | ||
3228 | if test "$withval" = yes; then | |
3229 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3230 | elif test "$withval" = no; then | |
3231 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3232 | elif test "$withval" = sys; then | |
3233 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3234 | elif test "$withval" = builtin; then | |
3235 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3236 | else | |
3237 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3238 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3239 | { (exit 1); exit 1; }; } | |
3240 | fi | |
3241 | ||
3242 | else | |
3243 | ||
3244 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3245 | if test "x$LINE" != x ; then | |
3246 | eval "DEFAULT_$LINE" | |
3247 | else | |
3248 | no_cache=1 | |
3249 | fi | |
3250 | ||
3251 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3252 | ||
3253 | fi; | |
3254 | ||
3255 | eval "$ac_cv_use_zlib" | |
3256 | if test "$no_cache" != 1; then | |
3257 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3258 | fi | |
3259 | ||
3260 | if test "$wxUSE_ZLIB" = yes; then | |
3261 | echo "$as_me:$LINENO: result: yes" >&5 | |
3262 | echo "${ECHO_T}yes" >&6 | |
3263 | elif test "$wxUSE_ZLIB" = no; then | |
3264 | echo "$as_me:$LINENO: result: no" >&5 | |
3265 | echo "${ECHO_T}no" >&6 | |
3266 | elif test "$wxUSE_ZLIB" = sys; then | |
3267 | echo "$as_me:$LINENO: result: system version" >&5 | |
3268 | echo "${ECHO_T}system version" >&6 | |
3269 | elif test "$wxUSE_ZLIB" = builtin; then | |
3270 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3271 | echo "${ECHO_T}builtin version" >&6 | |
3272 | else | |
3273 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3274 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3275 | { (exit 1); exit 1; }; } | |
3276 | fi | |
3277 | ||
3278 | ||
3279 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3280 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3281 | no_cache=0 | |
3282 | ||
3283 | # Check whether --with-odbc or --without-odbc was given. | |
3284 | if test "${with_odbc+set}" = set; then | |
3285 | withval="$with_odbc" | |
3286 | ||
3287 | if test "$withval" = yes; then | |
3288 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3289 | elif test "$withval" = no; then | |
3290 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3291 | elif test "$withval" = sys; then | |
3292 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3293 | elif test "$withval" = builtin; then | |
3294 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3295 | else | |
3296 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3297 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3298 | { (exit 1); exit 1; }; } | |
3299 | fi | |
3300 | ||
3301 | else | |
3302 | ||
3303 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3304 | if test "x$LINE" != x ; then | |
3305 | eval "DEFAULT_$LINE" | |
3306 | else | |
3307 | no_cache=1 | |
3308 | fi | |
3309 | ||
3310 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3311 | ||
3312 | fi; | |
3313 | ||
3314 | eval "$ac_cv_use_odbc" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_ODBC" = yes; then | |
3320 | echo "$as_me:$LINENO: result: yes" >&5 | |
3321 | echo "${ECHO_T}yes" >&6 | |
3322 | elif test "$wxUSE_ODBC" = no; then | |
3323 | echo "$as_me:$LINENO: result: no" >&5 | |
3324 | echo "${ECHO_T}no" >&6 | |
3325 | elif test "$wxUSE_ODBC" = sys; then | |
3326 | echo "$as_me:$LINENO: result: system version" >&5 | |
3327 | echo "${ECHO_T}system version" >&6 | |
3328 | elif test "$wxUSE_ODBC" = builtin; then | |
3329 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3330 | echo "${ECHO_T}builtin version" >&6 | |
3331 | else | |
3332 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3333 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3334 | { (exit 1); exit 1; }; } | |
3335 | fi | |
3336 | ||
3337 | ||
3338 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3339 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3340 | no_cache=0 | |
3341 | ||
3342 | # Check whether --with-expat or --without-expat was given. | |
3343 | if test "${with_expat+set}" = set; then | |
3344 | withval="$with_expat" | |
3345 | ||
3346 | if test "$withval" = yes; then | |
3347 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3348 | elif test "$withval" = no; then | |
3349 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3350 | elif test "$withval" = sys; then | |
3351 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3352 | elif test "$withval" = builtin; then | |
3353 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3354 | else | |
3355 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3356 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3357 | { (exit 1); exit 1; }; } | |
3358 | fi | |
3359 | ||
3360 | else | |
3361 | ||
3362 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3363 | if test "x$LINE" != x ; then | |
3364 | eval "DEFAULT_$LINE" | |
3365 | else | |
3366 | no_cache=1 | |
3367 | fi | |
3368 | ||
3369 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3370 | ||
3371 | fi; | |
3372 | ||
3373 | eval "$ac_cv_use_expat" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_EXPAT" = yes; then | |
3379 | echo "$as_me:$LINENO: result: yes" >&5 | |
3380 | echo "${ECHO_T}yes" >&6 | |
3381 | elif test "$wxUSE_EXPAT" = no; then | |
3382 | echo "$as_me:$LINENO: result: no" >&5 | |
3383 | echo "${ECHO_T}no" >&6 | |
3384 | elif test "$wxUSE_EXPAT" = sys; then | |
3385 | echo "$as_me:$LINENO: result: system version" >&5 | |
3386 | echo "${ECHO_T}system version" >&6 | |
3387 | elif test "$wxUSE_EXPAT" = builtin; then | |
3388 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3389 | echo "${ECHO_T}builtin version" >&6 | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3392 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3393 | { (exit 1); exit 1; }; } | |
3394 | fi | |
3395 | ||
3396 | ||
3397 | ||
3398 | ||
3399 | enablestring= | |
3400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3401 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3402 | no_cache=0 | |
3403 | # Check whether --enable-shared or --disable-shared was given. | |
3404 | if test "${enable_shared+set}" = set; then | |
3405 | enableval="$enable_shared" | |
3406 | ||
3407 | if test "$enableval" = yes; then | |
3408 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3409 | else | |
3410 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3411 | fi | |
3412 | ||
3413 | else | |
3414 | ||
3415 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3423 | ||
3424 | fi; | |
3425 | ||
3426 | eval "$ac_cv_use_shared" | |
3427 | if test "$no_cache" != 1; then | |
3428 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3429 | fi | |
3430 | ||
3431 | if test "$wxUSE_SHARED" = yes; then | |
3432 | echo "$as_me:$LINENO: result: yes" >&5 | |
3433 | echo "${ECHO_T}yes" >&6 | |
3434 | else | |
3435 | echo "$as_me:$LINENO: result: no" >&5 | |
3436 | echo "${ECHO_T}no" >&6 | |
3437 | fi | |
3438 | ||
3439 | ||
3440 | enablestring= | |
3441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3442 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3443 | no_cache=0 | |
3444 | # Check whether --enable-optimise or --disable-optimise was given. | |
3445 | if test "${enable_optimise+set}" = set; then | |
3446 | enableval="$enable_optimise" | |
3447 | ||
3448 | if test "$enableval" = yes; then | |
3449 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3450 | else | |
3451 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3464 | ||
3465 | fi; | |
3466 | ||
3467 | eval "$ac_cv_use_optimise" | |
3468 | if test "$no_cache" != 1; then | |
3469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3470 | fi | |
3471 | ||
3472 | if test "$wxUSE_OPTIMISE" = yes; then | |
3473 | echo "$as_me:$LINENO: result: yes" >&5 | |
3474 | echo "${ECHO_T}yes" >&6 | |
3475 | else | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
3478 | fi | |
3479 | ||
3480 | ||
3481 | enablestring= | |
3482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3483 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3484 | no_cache=0 | |
3485 | # Check whether --enable-debug or --disable-debug was given. | |
3486 | if test "${enable_debug+set}" = set; then | |
3487 | enableval="$enable_debug" | |
3488 | ||
3489 | if test "$enableval" = yes; then | |
3490 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3491 | else | |
3492 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3493 | fi | |
3494 | ||
3495 | else | |
3496 | ||
3497 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3498 | if test "x$LINE" != x ; then | |
3499 | eval "DEFAULT_$LINE" | |
3500 | else | |
3501 | no_cache=1 | |
3502 | fi | |
3503 | ||
3504 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3505 | ||
3506 | fi; | |
3507 | ||
3508 | eval "$ac_cv_use_debug" | |
3509 | if test "$no_cache" != 1; then | |
3510 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3511 | fi | |
3512 | ||
3513 | if test "$wxUSE_DEBUG" = yes; then | |
3514 | echo "$as_me:$LINENO: result: yes" >&5 | |
3515 | echo "${ECHO_T}yes" >&6 | |
3516 | else | |
3517 | echo "$as_me:$LINENO: result: no" >&5 | |
3518 | echo "${ECHO_T}no" >&6 | |
3519 | fi | |
3520 | ||
3521 | ||
3522 | enablestring= | |
3523 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3524 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3525 | no_cache=0 | |
3526 | # Check whether --enable-stl or --disable-stl was given. | |
3527 | if test "${enable_stl+set}" = set; then | |
3528 | enableval="$enable_stl" | |
3529 | ||
3530 | if test "$enableval" = yes; then | |
3531 | ac_cv_use_stl='wxUSE_STL=yes' | |
3532 | else | |
3533 | ac_cv_use_stl='wxUSE_STL=no' | |
3534 | fi | |
3535 | ||
3536 | else | |
3537 | ||
3538 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3539 | if test "x$LINE" != x ; then | |
3540 | eval "DEFAULT_$LINE" | |
3541 | else | |
3542 | no_cache=1 | |
3543 | fi | |
3544 | ||
3545 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3546 | ||
3547 | fi; | |
3548 | ||
3549 | eval "$ac_cv_use_stl" | |
3550 | if test "$no_cache" != 1; then | |
3551 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3552 | fi | |
3553 | ||
3554 | if test "$wxUSE_STL" = yes; then | |
3555 | echo "$as_me:$LINENO: result: yes" >&5 | |
3556 | echo "${ECHO_T}yes" >&6 | |
3557 | else | |
3558 | echo "$as_me:$LINENO: result: no" >&5 | |
3559 | echo "${ECHO_T}no" >&6 | |
3560 | fi | |
3561 | ||
3562 | if test "$USE_OS2" = "1"; then | |
3563 | ||
3564 | enablestring= | |
3565 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3566 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3567 | no_cache=0 | |
3568 | # Check whether --enable-omf or --disable-omf was given. | |
3569 | if test "${enable_omf+set}" = set; then | |
3570 | enableval="$enable_omf" | |
3571 | ||
3572 | if test "$enableval" = yes; then | |
3573 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3574 | else | |
3575 | ac_cv_use_omf='wxUSE_OMF=no' | |
3576 | fi | |
3577 | ||
3578 | else | |
3579 | ||
3580 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3581 | if test "x$LINE" != x ; then | |
3582 | eval "DEFAULT_$LINE" | |
3583 | else | |
3584 | no_cache=1 | |
3585 | fi | |
3586 | ||
3587 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3588 | ||
3589 | fi; | |
3590 | ||
3591 | eval "$ac_cv_use_omf" | |
3592 | if test "$no_cache" != 1; then | |
3593 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3594 | fi | |
3595 | ||
3596 | if test "$wxUSE_OMF" = yes; then | |
3597 | echo "$as_me:$LINENO: result: yes" >&5 | |
3598 | echo "${ECHO_T}yes" >&6 | |
3599 | else | |
3600 | echo "$as_me:$LINENO: result: no" >&5 | |
3601 | echo "${ECHO_T}no" >&6 | |
3602 | fi | |
3603 | ||
3604 | fi | |
3605 | ||
3606 | if test "$wxUSE_DEBUG" = "yes"; then | |
3607 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3608 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3609 | BUILD=debug | |
3610 | elif test "$wxUSE_DEBUG" = "no"; then | |
3611 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3612 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3613 | BUILD=release | |
3614 | fi | |
3615 | ||
3616 | ||
3617 | enablestring= | |
3618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3619 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3620 | no_cache=0 | |
3621 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3622 | if test "${enable_debug_flag+set}" = set; then | |
3623 | enableval="$enable_debug_flag" | |
3624 | ||
3625 | if test "$enableval" = yes; then | |
3626 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3627 | else | |
3628 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3629 | fi | |
3630 | ||
3631 | else | |
3632 | ||
3633 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3634 | if test "x$LINE" != x ; then | |
3635 | eval "DEFAULT_$LINE" | |
3636 | else | |
3637 | no_cache=1 | |
3638 | fi | |
3639 | ||
3640 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3641 | ||
3642 | fi; | |
3643 | ||
3644 | eval "$ac_cv_use_debug_flag" | |
3645 | if test "$no_cache" != 1; then | |
3646 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3647 | fi | |
3648 | ||
3649 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3650 | echo "$as_me:$LINENO: result: yes" >&5 | |
3651 | echo "${ECHO_T}yes" >&6 | |
3652 | else | |
3653 | echo "$as_me:$LINENO: result: no" >&5 | |
3654 | echo "${ECHO_T}no" >&6 | |
3655 | fi | |
3656 | ||
3657 | ||
3658 | enablestring= | |
3659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3660 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3661 | no_cache=0 | |
3662 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3663 | if test "${enable_debug_info+set}" = set; then | |
3664 | enableval="$enable_debug_info" | |
3665 | ||
3666 | if test "$enableval" = yes; then | |
3667 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3668 | else | |
3669 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3670 | fi | |
3671 | ||
3672 | else | |
3673 | ||
3674 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3675 | if test "x$LINE" != x ; then | |
3676 | eval "DEFAULT_$LINE" | |
3677 | else | |
3678 | no_cache=1 | |
3679 | fi | |
3680 | ||
3681 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3682 | ||
3683 | fi; | |
3684 | ||
3685 | eval "$ac_cv_use_debug_info" | |
3686 | if test "$no_cache" != 1; then | |
3687 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3688 | fi | |
3689 | ||
3690 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3691 | echo "$as_me:$LINENO: result: yes" >&5 | |
3692 | echo "${ECHO_T}yes" >&6 | |
3693 | else | |
3694 | echo "$as_me:$LINENO: result: no" >&5 | |
3695 | echo "${ECHO_T}no" >&6 | |
3696 | fi | |
3697 | ||
3698 | ||
3699 | enablestring= | |
3700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3701 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3702 | no_cache=0 | |
3703 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3704 | if test "${enable_debug_gdb+set}" = set; then | |
3705 | enableval="$enable_debug_gdb" | |
3706 | ||
3707 | if test "$enableval" = yes; then | |
3708 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3709 | else | |
3710 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3711 | fi | |
3712 | ||
3713 | else | |
3714 | ||
3715 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3716 | if test "x$LINE" != x ; then | |
3717 | eval "DEFAULT_$LINE" | |
3718 | else | |
3719 | no_cache=1 | |
3720 | fi | |
3721 | ||
3722 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3723 | ||
3724 | fi; | |
3725 | ||
3726 | eval "$ac_cv_use_debug_gdb" | |
3727 | if test "$no_cache" != 1; then | |
3728 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3729 | fi | |
3730 | ||
3731 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3732 | echo "$as_me:$LINENO: result: yes" >&5 | |
3733 | echo "${ECHO_T}yes" >&6 | |
3734 | else | |
3735 | echo "$as_me:$LINENO: result: no" >&5 | |
3736 | echo "${ECHO_T}no" >&6 | |
3737 | fi | |
3738 | ||
3739 | ||
3740 | enablestring= | |
3741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3742 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3743 | no_cache=0 | |
3744 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3745 | if test "${enable_debug_cntxt+set}" = set; then | |
3746 | enableval="$enable_debug_cntxt" | |
3747 | ||
3748 | if test "$enableval" = yes; then | |
3749 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3750 | else | |
3751 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3752 | fi | |
3753 | ||
3754 | else | |
3755 | ||
3756 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3757 | if test "x$LINE" != x ; then | |
3758 | eval "DEFAULT_$LINE" | |
3759 | else | |
3760 | no_cache=1 | |
3761 | fi | |
3762 | ||
3763 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3764 | ||
3765 | fi; | |
3766 | ||
3767 | eval "$ac_cv_use_debug_cntxt" | |
3768 | if test "$no_cache" != 1; then | |
3769 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3770 | fi | |
3771 | ||
3772 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3773 | echo "$as_me:$LINENO: result: yes" >&5 | |
3774 | echo "${ECHO_T}yes" >&6 | |
3775 | else | |
3776 | echo "$as_me:$LINENO: result: no" >&5 | |
3777 | echo "${ECHO_T}no" >&6 | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | enablestring= | |
3782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3783 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3784 | no_cache=0 | |
3785 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3786 | if test "${enable_mem_tracing+set}" = set; then | |
3787 | enableval="$enable_mem_tracing" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3791 | else | |
3792 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3805 | ||
3806 | fi; | |
3807 | ||
3808 | eval "$ac_cv_use_mem_tracing" | |
3809 | if test "$no_cache" != 1; then | |
3810 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3811 | fi | |
3812 | ||
3813 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3814 | echo "$as_me:$LINENO: result: yes" >&5 | |
3815 | echo "${ECHO_T}yes" >&6 | |
3816 | else | |
3817 | echo "$as_me:$LINENO: result: no" >&5 | |
3818 | echo "${ECHO_T}no" >&6 | |
3819 | fi | |
3820 | ||
3821 | ||
3822 | enablestring= | |
3823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3824 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3825 | no_cache=0 | |
3826 | # Check whether --enable-profile or --disable-profile was given. | |
3827 | if test "${enable_profile+set}" = set; then | |
3828 | enableval="$enable_profile" | |
3829 | ||
3830 | if test "$enableval" = yes; then | |
3831 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3832 | else | |
3833 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3834 | fi | |
3835 | ||
3836 | else | |
3837 | ||
3838 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3846 | ||
3847 | fi; | |
3848 | ||
3849 | eval "$ac_cv_use_profile" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_PROFILE" = yes; then | |
3855 | echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6 | |
3857 | else | |
3858 | echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6 | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | enablestring= | |
3864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3865 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3866 | no_cache=0 | |
3867 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3868 | if test "${enable_no_rtti+set}" = set; then | |
3869 | enableval="$enable_no_rtti" | |
3870 | ||
3871 | if test "$enableval" = yes; then | |
3872 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3873 | else | |
3874 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3875 | fi | |
3876 | ||
3877 | else | |
3878 | ||
3879 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3880 | if test "x$LINE" != x ; then | |
3881 | eval "DEFAULT_$LINE" | |
3882 | else | |
3883 | no_cache=1 | |
3884 | fi | |
3885 | ||
3886 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3887 | ||
3888 | fi; | |
3889 | ||
3890 | eval "$ac_cv_use_no_rtti" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_NO_RTTI" = yes; then | |
3896 | echo "$as_me:$LINENO: result: yes" >&5 | |
3897 | echo "${ECHO_T}yes" >&6 | |
3898 | else | |
3899 | echo "$as_me:$LINENO: result: no" >&5 | |
3900 | echo "${ECHO_T}no" >&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | enablestring= | |
3905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3906 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3907 | no_cache=0 | |
3908 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3909 | if test "${enable_no_exceptions+set}" = set; then | |
3910 | enableval="$enable_no_exceptions" | |
3911 | ||
3912 | if test "$enableval" = yes; then | |
3913 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3914 | else | |
3915 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3916 | fi | |
3917 | ||
3918 | else | |
3919 | ||
3920 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3921 | if test "x$LINE" != x ; then | |
3922 | eval "DEFAULT_$LINE" | |
3923 | else | |
3924 | no_cache=1 | |
3925 | fi | |
3926 | ||
3927 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3928 | ||
3929 | fi; | |
3930 | ||
3931 | eval "$ac_cv_use_no_exceptions" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3937 | echo "$as_me:$LINENO: result: yes" >&5 | |
3938 | echo "${ECHO_T}yes" >&6 | |
3939 | else | |
3940 | echo "$as_me:$LINENO: result: no" >&5 | |
3941 | echo "${ECHO_T}no" >&6 | |
3942 | fi | |
3943 | ||
3944 | ||
3945 | enablestring= | |
3946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3947 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3948 | no_cache=0 | |
3949 | # Check whether --enable-permissive or --disable-permissive was given. | |
3950 | if test "${enable_permissive+set}" = set; then | |
3951 | enableval="$enable_permissive" | |
3952 | ||
3953 | if test "$enableval" = yes; then | |
3954 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3955 | else | |
3956 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3957 | fi | |
3958 | ||
3959 | else | |
3960 | ||
3961 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3962 | if test "x$LINE" != x ; then | |
3963 | eval "DEFAULT_$LINE" | |
3964 | else | |
3965 | no_cache=1 | |
3966 | fi | |
3967 | ||
3968 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3969 | ||
3970 | fi; | |
3971 | ||
3972 | eval "$ac_cv_use_permissive" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3978 | echo "$as_me:$LINENO: result: yes" >&5 | |
3979 | echo "${ECHO_T}yes" >&6 | |
3980 | else | |
3981 | echo "$as_me:$LINENO: result: no" >&5 | |
3982 | echo "${ECHO_T}no" >&6 | |
3983 | fi | |
3984 | ||
3985 | ||
3986 | enablestring= | |
3987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3988 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3989 | no_cache=0 | |
3990 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3991 | if test "${enable_no_deps+set}" = set; then | |
3992 | enableval="$enable_no_deps" | |
3993 | ||
3994 | if test "$enableval" = yes; then | |
3995 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3996 | else | |
3997 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3998 | fi | |
3999 | ||
4000 | else | |
4001 | ||
4002 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4003 | if test "x$LINE" != x ; then | |
4004 | eval "DEFAULT_$LINE" | |
4005 | else | |
4006 | no_cache=1 | |
4007 | fi | |
4008 | ||
4009 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4010 | ||
4011 | fi; | |
4012 | ||
4013 | eval "$ac_cv_use_no_deps" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_NO_DEPS" = yes; then | |
4019 | echo "$as_me:$LINENO: result: yes" >&5 | |
4020 | echo "${ECHO_T}yes" >&6 | |
4021 | else | |
4022 | echo "$as_me:$LINENO: result: no" >&5 | |
4023 | echo "${ECHO_T}no" >&6 | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | ||
4028 | enablestring= | |
4029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4030 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4031 | no_cache=0 | |
4032 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4033 | if test "${enable_compat22+set}" = set; then | |
4034 | enableval="$enable_compat22" | |
4035 | ||
4036 | if test "$enableval" = yes; then | |
4037 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4038 | else | |
4039 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4040 | fi | |
4041 | ||
4042 | else | |
4043 | ||
4044 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4045 | if test "x$LINE" != x ; then | |
4046 | eval "DEFAULT_$LINE" | |
4047 | else | |
4048 | no_cache=1 | |
4049 | fi | |
4050 | ||
4051 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4052 | ||
4053 | fi; | |
4054 | ||
4055 | eval "$ac_cv_use_compat22" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4061 | echo "$as_me:$LINENO: result: yes" >&5 | |
4062 | echo "${ECHO_T}yes" >&6 | |
4063 | else | |
4064 | echo "$as_me:$LINENO: result: no" >&5 | |
4065 | echo "${ECHO_T}no" >&6 | |
4066 | fi | |
4067 | ||
4068 | ||
4069 | enablestring=disable | |
4070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4071 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4072 | no_cache=0 | |
4073 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4074 | if test "${enable_compat24+set}" = set; then | |
4075 | enableval="$enable_compat24" | |
4076 | ||
4077 | if test "$enableval" = yes; then | |
4078 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4079 | else | |
4080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4081 | fi | |
4082 | ||
4083 | else | |
4084 | ||
4085 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4086 | if test "x$LINE" != x ; then | |
4087 | eval "DEFAULT_$LINE" | |
4088 | else | |
4089 | no_cache=1 | |
4090 | fi | |
4091 | ||
4092 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4093 | ||
4094 | fi; | |
4095 | ||
4096 | eval "$ac_cv_use_compat24" | |
4097 | if test "$no_cache" != 1; then | |
4098 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4099 | fi | |
4100 | ||
4101 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4102 | echo "$as_me:$LINENO: result: yes" >&5 | |
4103 | echo "${ECHO_T}yes" >&6 | |
4104 | else | |
4105 | echo "$as_me:$LINENO: result: no" >&5 | |
4106 | echo "${ECHO_T}no" >&6 | |
4107 | fi | |
4108 | ||
4109 | ||
4110 | # Check whether --enable-rpath or --disable-rpath was given. | |
4111 | if test "${enable_rpath+set}" = set; then | |
4112 | enableval="$enable_rpath" | |
4113 | wxRPATH_DIR="$enableval" | |
4114 | fi; | |
4115 | ||
ac1cb8d3 | 4116 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then |
a848cd7e SC |
4117 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" |
4118 | fi | |
4119 | ||
4120 | ||
4121 | ||
4122 | ||
4123 | enablestring= | |
4124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4125 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4126 | no_cache=0 | |
4127 | # Check whether --enable-intl or --disable-intl was given. | |
4128 | if test "${enable_intl+set}" = set; then | |
4129 | enableval="$enable_intl" | |
4130 | ||
4131 | if test "$enableval" = yes; then | |
4132 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4133 | else | |
4134 | ac_cv_use_intl='wxUSE_INTL=no' | |
4135 | fi | |
4136 | ||
4137 | else | |
4138 | ||
4139 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4140 | if test "x$LINE" != x ; then | |
4141 | eval "DEFAULT_$LINE" | |
4142 | else | |
4143 | no_cache=1 | |
4144 | fi | |
4145 | ||
4146 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4147 | ||
4148 | fi; | |
4149 | ||
4150 | eval "$ac_cv_use_intl" | |
4151 | if test "$no_cache" != 1; then | |
4152 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4153 | fi | |
4154 | ||
4155 | if test "$wxUSE_INTL" = yes; then | |
4156 | echo "$as_me:$LINENO: result: yes" >&5 | |
4157 | echo "${ECHO_T}yes" >&6 | |
4158 | else | |
4159 | echo "$as_me:$LINENO: result: no" >&5 | |
4160 | echo "${ECHO_T}no" >&6 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | enablestring= | |
4165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4166 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4167 | no_cache=0 | |
4168 | # Check whether --enable-config or --disable-config was given. | |
4169 | if test "${enable_config+set}" = set; then | |
4170 | enableval="$enable_config" | |
4171 | ||
4172 | if test "$enableval" = yes; then | |
4173 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4174 | else | |
4175 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4176 | fi | |
4177 | ||
4178 | else | |
4179 | ||
4180 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4181 | if test "x$LINE" != x ; then | |
4182 | eval "DEFAULT_$LINE" | |
4183 | else | |
4184 | no_cache=1 | |
4185 | fi | |
4186 | ||
4187 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4188 | ||
4189 | fi; | |
4190 | ||
4191 | eval "$ac_cv_use_config" | |
4192 | if test "$no_cache" != 1; then | |
4193 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4194 | fi | |
4195 | ||
4196 | if test "$wxUSE_CONFIG" = yes; then | |
4197 | echo "$as_me:$LINENO: result: yes" >&5 | |
4198 | echo "${ECHO_T}yes" >&6 | |
4199 | else | |
4200 | echo "$as_me:$LINENO: result: no" >&5 | |
4201 | echo "${ECHO_T}no" >&6 | |
4202 | fi | |
4203 | ||
4204 | ||
4205 | ||
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-protocols or --disable-protocols was given. | |
4211 | if test "${enable_protocols+set}" = set; then | |
4212 | enableval="$enable_protocols" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4216 | else | |
4217 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4230 | ||
4231 | fi; | |
4232 | ||
4233 | eval "$ac_cv_use_protocols" | |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_PROTOCOL" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | enablestring= | |
4248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4249 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4250 | no_cache=0 | |
4251 | # Check whether --enable-ftp or --disable-ftp was given. | |
4252 | if test "${enable_ftp+set}" = set; then | |
4253 | enableval="$enable_ftp" | |
4254 | ||
4255 | if test "$enableval" = yes; then | |
4256 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4257 | else | |
4258 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4259 | fi | |
4260 | ||
4261 | else | |
4262 | ||
4263 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4264 | if test "x$LINE" != x ; then | |
4265 | eval "DEFAULT_$LINE" | |
4266 | else | |
4267 | no_cache=1 | |
4268 | fi | |
4269 | ||
4270 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4271 | ||
4272 | fi; | |
4273 | ||
4274 | eval "$ac_cv_use_ftp" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4280 | echo "$as_me:$LINENO: result: yes" >&5 | |
4281 | echo "${ECHO_T}yes" >&6 | |
4282 | else | |
4283 | echo "$as_me:$LINENO: result: no" >&5 | |
4284 | echo "${ECHO_T}no" >&6 | |
4285 | fi | |
4286 | ||
4287 | ||
4288 | enablestring= | |
4289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4290 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4291 | no_cache=0 | |
4292 | # Check whether --enable-http or --disable-http was given. | |
4293 | if test "${enable_http+set}" = set; then | |
4294 | enableval="$enable_http" | |
4295 | ||
4296 | if test "$enableval" = yes; then | |
4297 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4298 | else | |
4299 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4300 | fi | |
4301 | ||
4302 | else | |
4303 | ||
4304 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4305 | if test "x$LINE" != x ; then | |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
4311 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4312 | ||
4313 | fi; | |
4314 | ||
4315 | eval "$ac_cv_use_http" | |
4316 | if test "$no_cache" != 1; then | |
4317 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4318 | fi | |
4319 | ||
4320 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4321 | echo "$as_me:$LINENO: result: yes" >&5 | |
4322 | echo "${ECHO_T}yes" >&6 | |
4323 | else | |
4324 | echo "$as_me:$LINENO: result: no" >&5 | |
4325 | echo "${ECHO_T}no" >&6 | |
4326 | fi | |
4327 | ||
4328 | ||
4329 | enablestring= | |
4330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4331 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4332 | no_cache=0 | |
4333 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4334 | if test "${enable_fileproto+set}" = set; then | |
4335 | enableval="$enable_fileproto" | |
4336 | ||
4337 | if test "$enableval" = yes; then | |
4338 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4339 | else | |
4340 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4341 | fi | |
4342 | ||
4343 | else | |
4344 | ||
4345 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4346 | if test "x$LINE" != x ; then | |
4347 | eval "DEFAULT_$LINE" | |
4348 | else | |
4349 | no_cache=1 | |
4350 | fi | |
4351 | ||
4352 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4353 | ||
4354 | fi; | |
4355 | ||
4356 | eval "$ac_cv_use_fileproto" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4362 | echo "$as_me:$LINENO: result: yes" >&5 | |
4363 | echo "${ECHO_T}yes" >&6 | |
4364 | else | |
4365 | echo "$as_me:$LINENO: result: no" >&5 | |
4366 | echo "${ECHO_T}no" >&6 | |
4367 | fi | |
4368 | ||
4369 | ||
4370 | enablestring= | |
4371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4372 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4373 | no_cache=0 | |
4374 | # Check whether --enable-sockets or --disable-sockets was given. | |
4375 | if test "${enable_sockets+set}" = set; then | |
4376 | enableval="$enable_sockets" | |
4377 | ||
4378 | if test "$enableval" = yes; then | |
4379 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4380 | else | |
4381 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4382 | fi | |
4383 | ||
4384 | else | |
4385 | ||
4386 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4387 | if test "x$LINE" != x ; then | |
4388 | eval "DEFAULT_$LINE" | |
4389 | else | |
4390 | no_cache=1 | |
4391 | fi | |
4392 | ||
4393 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4394 | ||
4395 | fi; | |
4396 | ||
4397 | eval "$ac_cv_use_sockets" | |
4398 | if test "$no_cache" != 1; then | |
4399 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4400 | fi | |
4401 | ||
4402 | if test "$wxUSE_SOCKETS" = yes; then | |
4403 | echo "$as_me:$LINENO: result: yes" >&5 | |
4404 | echo "${ECHO_T}yes" >&6 | |
4405 | else | |
4406 | echo "$as_me:$LINENO: result: no" >&5 | |
4407 | echo "${ECHO_T}no" >&6 | |
4408 | fi | |
4409 | ||
4410 | ||
4411 | enablestring= | |
4412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4413 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4414 | no_cache=0 | |
4415 | # Check whether --enable-ole or --disable-ole was given. | |
4416 | if test "${enable_ole+set}" = set; then | |
4417 | enableval="$enable_ole" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4421 | else | |
4422 | ac_cv_use_ole='wxUSE_OLE=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4435 | ||
4436 | fi; | |
4437 | ||
4438 | eval "$ac_cv_use_ole" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_OLE" = yes; then | |
4444 | echo "$as_me:$LINENO: result: yes" >&5 | |
4445 | echo "${ECHO_T}yes" >&6 | |
4446 | else | |
4447 | echo "$as_me:$LINENO: result: no" >&5 | |
4448 | echo "${ECHO_T}no" >&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | enablestring= | |
4453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4454 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4455 | no_cache=0 | |
4456 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4457 | if test "${enable_dataobj+set}" = set; then | |
4458 | enableval="$enable_dataobj" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4462 | else | |
4463 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4476 | ||
4477 | fi; | |
4478 | ||
4479 | eval "$ac_cv_use_dataobj" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_DATAOBJ" = yes; then | |
4485 | echo "$as_me:$LINENO: result: yes" >&5 | |
4486 | echo "${ECHO_T}yes" >&6 | |
4487 | else | |
4488 | echo "$as_me:$LINENO: result: no" >&5 | |
4489 | echo "${ECHO_T}no" >&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-ipc or --disable-ipc was given. | |
4499 | if test "${enable_ipc+set}" = set; then | |
4500 | enableval="$enable_ipc" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4504 | else | |
4505 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_ipc" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_IPC" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | ||
4536 | enablestring= | |
4537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4538 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4539 | no_cache=0 | |
4540 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4541 | if test "${enable_apple_ieee+set}" = set; then | |
4542 | enableval="$enable_apple_ieee" | |
4543 | ||
4544 | if test "$enableval" = yes; then | |
4545 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4546 | else | |
4547 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4548 | fi | |
4549 | ||
4550 | else | |
4551 | ||
4552 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4553 | if test "x$LINE" != x ; then | |
4554 | eval "DEFAULT_$LINE" | |
4555 | else | |
4556 | no_cache=1 | |
4557 | fi | |
4558 | ||
4559 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4560 | ||
4561 | fi; | |
4562 | ||
4563 | eval "$ac_cv_use_apple_ieee" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4569 | echo "$as_me:$LINENO: result: yes" >&5 | |
4570 | echo "${ECHO_T}yes" >&6 | |
4571 | else | |
4572 | echo "$as_me:$LINENO: result: no" >&5 | |
4573 | echo "${ECHO_T}no" >&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | enablestring= | |
4578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4579 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4580 | no_cache=0 | |
4581 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4582 | if test "${enable_catch_segvs+set}" = set; then | |
4583 | enableval="$enable_catch_segvs" | |
4584 | ||
4585 | if test "$enableval" = yes; then | |
4586 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4587 | else | |
4588 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4589 | fi | |
4590 | ||
4591 | else | |
4592 | ||
4593 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4594 | if test "x$LINE" != x ; then | |
4595 | eval "DEFAULT_$LINE" | |
4596 | else | |
4597 | no_cache=1 | |
4598 | fi | |
4599 | ||
4600 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4601 | ||
4602 | fi; | |
4603 | ||
4604 | eval "$ac_cv_use_catch_segvs" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4610 | echo "$as_me:$LINENO: result: yes" >&5 | |
4611 | echo "${ECHO_T}yes" >&6 | |
4612 | else | |
4613 | echo "$as_me:$LINENO: result: no" >&5 | |
4614 | echo "${ECHO_T}no" >&6 | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | enablestring= | |
4619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4620 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4621 | no_cache=0 | |
4622 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4623 | if test "${enable_cmdline+set}" = set; then | |
4624 | enableval="$enable_cmdline" | |
4625 | ||
4626 | if test "$enableval" = yes; then | |
4627 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4628 | else | |
4629 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4630 | fi | |
4631 | ||
4632 | else | |
4633 | ||
4634 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4635 | if test "x$LINE" != x ; then | |
4636 | eval "DEFAULT_$LINE" | |
4637 | else | |
4638 | no_cache=1 | |
4639 | fi | |
4640 | ||
4641 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4642 | ||
4643 | fi; | |
4644 | ||
4645 | eval "$ac_cv_use_cmdline" | |
4646 | if test "$no_cache" != 1; then | |
4647 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4648 | fi | |
4649 | ||
4650 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4651 | echo "$as_me:$LINENO: result: yes" >&5 | |
4652 | echo "${ECHO_T}yes" >&6 | |
4653 | else | |
4654 | echo "$as_me:$LINENO: result: no" >&5 | |
4655 | echo "${ECHO_T}no" >&6 | |
4656 | fi | |
4657 | ||
4658 | ||
4659 | enablestring= | |
4660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4661 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4662 | no_cache=0 | |
4663 | # Check whether --enable-datetime or --disable-datetime was given. | |
4664 | if test "${enable_datetime+set}" = set; then | |
4665 | enableval="$enable_datetime" | |
4666 | ||
4667 | if test "$enableval" = yes; then | |
4668 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4669 | else | |
4670 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4671 | fi | |
4672 | ||
4673 | else | |
4674 | ||
4675 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4676 | if test "x$LINE" != x ; then | |
4677 | eval "DEFAULT_$LINE" | |
4678 | else | |
4679 | no_cache=1 | |
4680 | fi | |
4681 | ||
4682 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4683 | ||
4684 | fi; | |
4685 | ||
4686 | eval "$ac_cv_use_datetime" | |
4687 | if test "$no_cache" != 1; then | |
4688 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4689 | fi | |
4690 | ||
4691 | if test "$wxUSE_DATETIME" = yes; then | |
4692 | echo "$as_me:$LINENO: result: yes" >&5 | |
4693 | echo "${ECHO_T}yes" >&6 | |
4694 | else | |
4695 | echo "$as_me:$LINENO: result: no" >&5 | |
4696 | echo "${ECHO_T}no" >&6 | |
4697 | fi | |
4698 | ||
4699 | ||
4700 | enablestring= | |
4701 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4702 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4703 | no_cache=0 | |
4704 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4705 | if test "${enable_dialupman+set}" = set; then | |
4706 | enableval="$enable_dialupman" | |
4707 | ||
4708 | if test "$enableval" = yes; then | |
4709 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4710 | else | |
4711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4712 | fi | |
4713 | ||
4714 | else | |
4715 | ||
4716 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4717 | if test "x$LINE" != x ; then | |
4718 | eval "DEFAULT_$LINE" | |
4719 | else | |
4720 | no_cache=1 | |
4721 | fi | |
4722 | ||
4723 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4724 | ||
4725 | fi; | |
4726 | ||
4727 | eval "$ac_cv_use_dialupman" | |
4728 | if test "$no_cache" != 1; then | |
4729 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4730 | fi | |
4731 | ||
4732 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4733 | echo "$as_me:$LINENO: result: yes" >&5 | |
4734 | echo "${ECHO_T}yes" >&6 | |
4735 | else | |
4736 | echo "$as_me:$LINENO: result: no" >&5 | |
4737 | echo "${ECHO_T}no" >&6 | |
4738 | fi | |
4739 | ||
4740 | ||
4741 | enablestring= | |
4742 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4743 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4744 | no_cache=0 | |
4745 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4746 | if test "${enable_dynlib+set}" = set; then | |
4747 | enableval="$enable_dynlib" | |
4748 | ||
4749 | if test "$enableval" = yes; then | |
4750 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4751 | else | |
4752 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4753 | fi | |
4754 | ||
4755 | else | |
4756 | ||
4757 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4765 | ||
4766 | fi; | |
4767 | ||
4768 | eval "$ac_cv_use_dynlib" | |
4769 | if test "$no_cache" != 1; then | |
4770 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4771 | fi | |
4772 | ||
4773 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4774 | echo "$as_me:$LINENO: result: yes" >&5 | |
4775 | echo "${ECHO_T}yes" >&6 | |
4776 | else | |
4777 | echo "$as_me:$LINENO: result: no" >&5 | |
4778 | echo "${ECHO_T}no" >&6 | |
4779 | fi | |
4780 | ||
4781 | ||
4782 | enablestring= | |
4783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4784 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4785 | no_cache=0 | |
4786 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4787 | if test "${enable_dynamicloader+set}" = set; then | |
4788 | enableval="$enable_dynamicloader" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4792 | else | |
4793 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4806 | ||
4807 | fi; | |
4808 | ||
4809 | eval "$ac_cv_use_dynamicloader" | |
4810 | if test "$no_cache" != 1; then | |
4811 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4812 | fi | |
4813 | ||
4814 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4815 | echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | echo "${ECHO_T}yes" >&6 | |
4817 | else | |
4818 | echo "$as_me:$LINENO: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | enablestring= | |
4824 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4825 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4826 | no_cache=0 | |
4827 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4828 | if test "${enable_exceptions+set}" = set; then | |
4829 | enableval="$enable_exceptions" | |
4830 | ||
4831 | if test "$enableval" = yes; then | |
4832 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4833 | else | |
4834 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4835 | fi | |
4836 | ||
4837 | else | |
4838 | ||
4839 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4840 | if test "x$LINE" != x ; then | |
4841 | eval "DEFAULT_$LINE" | |
4842 | else | |
4843 | no_cache=1 | |
4844 | fi | |
4845 | ||
4846 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4847 | ||
4848 | fi; | |
4849 | ||
4850 | eval "$ac_cv_use_exceptions" | |
4851 | if test "$no_cache" != 1; then | |
4852 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4853 | fi | |
4854 | ||
4855 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4856 | echo "$as_me:$LINENO: result: yes" >&5 | |
4857 | echo "${ECHO_T}yes" >&6 | |
4858 | else | |
4859 | echo "$as_me:$LINENO: result: no" >&5 | |
4860 | echo "${ECHO_T}no" >&6 | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | enablestring= | |
4865 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4866 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4867 | no_cache=0 | |
4868 | # Check whether --enable-ffile or --disable-ffile was given. | |
4869 | if test "${enable_ffile+set}" = set; then | |
4870 | enableval="$enable_ffile" | |
4871 | ||
4872 | if test "$enableval" = yes; then | |
4873 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4874 | else | |
4875 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4876 | fi | |
4877 | ||
4878 | else | |
4879 | ||
4880 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4881 | if test "x$LINE" != x ; then | |
4882 | eval "DEFAULT_$LINE" | |
4883 | else | |
4884 | no_cache=1 | |
4885 | fi | |
4886 | ||
4887 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4888 | ||
4889 | fi; | |
4890 | ||
4891 | eval "$ac_cv_use_ffile" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_FFILE" = yes; then | |
4897 | echo "$as_me:$LINENO: result: yes" >&5 | |
4898 | echo "${ECHO_T}yes" >&6 | |
4899 | else | |
4900 | echo "$as_me:$LINENO: result: no" >&5 | |
4901 | echo "${ECHO_T}no" >&6 | |
4902 | fi | |
4903 | ||
4904 | ||
4905 | enablestring= | |
4906 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4907 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4908 | no_cache=0 | |
4909 | # Check whether --enable-file or --disable-file was given. | |
4910 | if test "${enable_file+set}" = set; then | |
4911 | enableval="$enable_file" | |
4912 | ||
4913 | if test "$enableval" = yes; then | |
4914 | ac_cv_use_file='wxUSE_FILE=yes' | |
4915 | else | |
4916 | ac_cv_use_file='wxUSE_FILE=no' | |
4917 | fi | |
4918 | ||
4919 | else | |
4920 | ||
4921 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4922 | if test "x$LINE" != x ; then | |
4923 | eval "DEFAULT_$LINE" | |
4924 | else | |
4925 | no_cache=1 | |
4926 | fi | |
4927 | ||
4928 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4929 | ||
4930 | fi; | |
4931 | ||
4932 | eval "$ac_cv_use_file" | |
4933 | if test "$no_cache" != 1; then | |
4934 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4935 | fi | |
4936 | ||
4937 | if test "$wxUSE_FILE" = yes; then | |
4938 | echo "$as_me:$LINENO: result: yes" >&5 | |
4939 | echo "${ECHO_T}yes" >&6 | |
4940 | else | |
4941 | echo "$as_me:$LINENO: result: no" >&5 | |
4942 | echo "${ECHO_T}no" >&6 | |
4943 | fi | |
4944 | ||
4945 | ||
4946 | enablestring= | |
4947 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4948 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4949 | no_cache=0 | |
4950 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4951 | if test "${enable_filesystem+set}" = set; then | |
4952 | enableval="$enable_filesystem" | |
4953 | ||
4954 | if test "$enableval" = yes; then | |
4955 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4956 | else | |
4957 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4958 | fi | |
4959 | ||
4960 | else | |
4961 | ||
4962 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4963 | if test "x$LINE" != x ; then | |
4964 | eval "DEFAULT_$LINE" | |
4965 | else | |
4966 | no_cache=1 | |
4967 | fi | |
4968 | ||
4969 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4970 | ||
4971 | fi; | |
4972 | ||
4973 | eval "$ac_cv_use_filesystem" | |
4974 | if test "$no_cache" != 1; then | |
4975 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4976 | fi | |
4977 | ||
4978 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4979 | echo "$as_me:$LINENO: result: yes" >&5 | |
4980 | echo "${ECHO_T}yes" >&6 | |
4981 | else | |
4982 | echo "$as_me:$LINENO: result: no" >&5 | |
4983 | echo "${ECHO_T}no" >&6 | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | enablestring= | |
4988 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4989 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4990 | no_cache=0 | |
4991 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4992 | if test "${enable_fontmap+set}" = set; then | |
4993 | enableval="$enable_fontmap" | |
4994 | ||
4995 | if test "$enableval" = yes; then | |
4996 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4997 | else | |
4998 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4999 | fi | |
5000 | ||
5001 | else | |
5002 | ||
5003 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5004 | if test "x$LINE" != x ; then | |
5005 | eval "DEFAULT_$LINE" | |
5006 | else | |
5007 | no_cache=1 | |
5008 | fi | |
5009 | ||
5010 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5011 | ||
5012 | fi; | |
5013 | ||
5014 | eval "$ac_cv_use_fontmap" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_FONTMAP" = yes; then | |
5020 | echo "$as_me:$LINENO: result: yes" >&5 | |
5021 | echo "${ECHO_T}yes" >&6 | |
5022 | else | |
5023 | echo "$as_me:$LINENO: result: no" >&5 | |
5024 | echo "${ECHO_T}no" >&6 | |
5025 | fi | |
5026 | ||
5027 | ||
5028 | enablestring= | |
5029 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5030 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5031 | no_cache=0 | |
5032 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5033 | if test "${enable_fs_inet+set}" = set; then | |
5034 | enableval="$enable_fs_inet" | |
5035 | ||
5036 | if test "$enableval" = yes; then | |
5037 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5038 | else | |
5039 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5040 | fi | |
5041 | ||
5042 | else | |
5043 | ||
5044 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5045 | if test "x$LINE" != x ; then | |
5046 | eval "DEFAULT_$LINE" | |
5047 | else | |
5048 | no_cache=1 | |
5049 | fi | |
5050 | ||
5051 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5052 | ||
5053 | fi; | |
5054 | ||
5055 | eval "$ac_cv_use_fs_inet" | |
5056 | if test "$no_cache" != 1; then | |
5057 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5058 | fi | |
5059 | ||
5060 | if test "$wxUSE_FS_INET" = yes; then | |
5061 | echo "$as_me:$LINENO: result: yes" >&5 | |
5062 | echo "${ECHO_T}yes" >&6 | |
5063 | else | |
5064 | echo "$as_me:$LINENO: result: no" >&5 | |
5065 | echo "${ECHO_T}no" >&6 | |
5066 | fi | |
5067 | ||
5068 | ||
5069 | enablestring= | |
5070 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5071 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5072 | no_cache=0 | |
5073 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5074 | if test "${enable_fs_zip+set}" = set; then | |
5075 | enableval="$enable_fs_zip" | |
5076 | ||
5077 | if test "$enableval" = yes; then | |
5078 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5079 | else | |
5080 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5081 | fi | |
5082 | ||
5083 | else | |
5084 | ||
5085 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5086 | if test "x$LINE" != x ; then | |
5087 | eval "DEFAULT_$LINE" | |
5088 | else | |
5089 | no_cache=1 | |
5090 | fi | |
5091 | ||
5092 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5093 | ||
5094 | fi; | |
5095 | ||
5096 | eval "$ac_cv_use_fs_zip" | |
5097 | if test "$no_cache" != 1; then | |
5098 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5099 | fi | |
5100 | ||
5101 | if test "$wxUSE_FS_ZIP" = yes; then | |
5102 | echo "$as_me:$LINENO: result: yes" >&5 | |
5103 | echo "${ECHO_T}yes" >&6 | |
5104 | else | |
5105 | echo "$as_me:$LINENO: result: no" >&5 | |
5106 | echo "${ECHO_T}no" >&6 | |
5107 | fi | |
5108 | ||
5109 | ||
5110 | enablestring= | |
5111 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5112 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5113 | no_cache=0 | |
5114 | # Check whether --enable-geometry or --disable-geometry was given. | |
5115 | if test "${enable_geometry+set}" = set; then | |
5116 | enableval="$enable_geometry" | |
5117 | ||
5118 | if test "$enableval" = yes; then | |
5119 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5120 | else | |
5121 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5122 | fi | |
5123 | ||
5124 | else | |
5125 | ||
5126 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5127 | if test "x$LINE" != x ; then | |
5128 | eval "DEFAULT_$LINE" | |
5129 | else | |
5130 | no_cache=1 | |
5131 | fi | |
5132 | ||
5133 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5134 | ||
5135 | fi; | |
5136 | ||
5137 | eval "$ac_cv_use_geometry" | |
5138 | if test "$no_cache" != 1; then | |
5139 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5140 | fi | |
5141 | ||
5142 | if test "$wxUSE_GEOMETRY" = yes; then | |
5143 | echo "$as_me:$LINENO: result: yes" >&5 | |
5144 | echo "${ECHO_T}yes" >&6 | |
5145 | else | |
5146 | echo "$as_me:$LINENO: result: no" >&5 | |
5147 | echo "${ECHO_T}no" >&6 | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | enablestring= | |
5152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5153 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5154 | no_cache=0 | |
5155 | # Check whether --enable-log or --disable-log was given. | |
5156 | if test "${enable_log+set}" = set; then | |
5157 | enableval="$enable_log" | |
5158 | ||
5159 | if test "$enableval" = yes; then | |
5160 | ac_cv_use_log='wxUSE_LOG=yes' | |
5161 | else | |
5162 | ac_cv_use_log='wxUSE_LOG=no' | |
5163 | fi | |
5164 | ||
5165 | else | |
5166 | ||
5167 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5168 | if test "x$LINE" != x ; then | |
5169 | eval "DEFAULT_$LINE" | |
5170 | else | |
5171 | no_cache=1 | |
5172 | fi | |
5173 | ||
5174 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5175 | ||
5176 | fi; | |
5177 | ||
5178 | eval "$ac_cv_use_log" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_LOG" = yes; then | |
5184 | echo "$as_me:$LINENO: result: yes" >&5 | |
5185 | echo "${ECHO_T}yes" >&6 | |
5186 | else | |
5187 | echo "$as_me:$LINENO: result: no" >&5 | |
5188 | echo "${ECHO_T}no" >&6 | |
5189 | fi | |
5190 | ||
5191 | ||
5192 | enablestring= | |
5193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5194 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5195 | no_cache=0 | |
5196 | # Check whether --enable-longlong or --disable-longlong was given. | |
5197 | if test "${enable_longlong+set}" = set; then | |
5198 | enableval="$enable_longlong" | |
5199 | ||
5200 | if test "$enableval" = yes; then | |
5201 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5202 | else | |
5203 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5204 | fi | |
5205 | ||
5206 | else | |
5207 | ||
5208 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5209 | if test "x$LINE" != x ; then | |
5210 | eval "DEFAULT_$LINE" | |
5211 | else | |
5212 | no_cache=1 | |
5213 | fi | |
5214 | ||
5215 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5216 | ||
5217 | fi; | |
5218 | ||
5219 | eval "$ac_cv_use_longlong" | |
5220 | if test "$no_cache" != 1; then | |
5221 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5222 | fi | |
5223 | ||
5224 | if test "$wxUSE_LONGLONG" = yes; then | |
5225 | echo "$as_me:$LINENO: result: yes" >&5 | |
5226 | echo "${ECHO_T}yes" >&6 | |
5227 | else | |
5228 | echo "$as_me:$LINENO: result: no" >&5 | |
5229 | echo "${ECHO_T}no" >&6 | |
5230 | fi | |
5231 | ||
5232 | ||
5233 | enablestring= | |
5234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5235 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5236 | no_cache=0 | |
5237 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5238 | if test "${enable_mimetype+set}" = set; then | |
5239 | enableval="$enable_mimetype" | |
5240 | ||
5241 | if test "$enableval" = yes; then | |
5242 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5243 | else | |
5244 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5245 | fi | |
5246 | ||
5247 | else | |
5248 | ||
5249 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5250 | if test "x$LINE" != x ; then | |
5251 | eval "DEFAULT_$LINE" | |
5252 | else | |
5253 | no_cache=1 | |
5254 | fi | |
5255 | ||
5256 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5257 | ||
5258 | fi; | |
5259 | ||
5260 | eval "$ac_cv_use_mimetype" | |
5261 | if test "$no_cache" != 1; then | |
5262 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5263 | fi | |
5264 | ||
5265 | if test "$wxUSE_MIMETYPE" = yes; then | |
5266 | echo "$as_me:$LINENO: result: yes" >&5 | |
5267 | echo "${ECHO_T}yes" >&6 | |
5268 | else | |
5269 | echo "$as_me:$LINENO: result: no" >&5 | |
5270 | echo "${ECHO_T}no" >&6 | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | enablestring= | |
5275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5276 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5277 | no_cache=0 | |
5278 | # Check whether --enable-mslu or --disable-mslu was given. | |
5279 | if test "${enable_mslu+set}" = set; then | |
5280 | enableval="$enable_mslu" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5284 | else | |
5285 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5298 | ||
5299 | fi; | |
5300 | ||
5301 | eval "$ac_cv_use_mslu" | |
5302 | if test "$no_cache" != 1; then | |
5303 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5304 | fi | |
5305 | ||
5306 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5307 | echo "$as_me:$LINENO: result: yes" >&5 | |
5308 | echo "${ECHO_T}yes" >&6 | |
5309 | else | |
5310 | echo "$as_me:$LINENO: result: no" >&5 | |
5311 | echo "${ECHO_T}no" >&6 | |
5312 | fi | |
5313 | ||
5314 | ||
5315 | enablestring= | |
5316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5317 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5318 | no_cache=0 | |
5319 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5320 | if test "${enable_snglinst+set}" = set; then | |
5321 | enableval="$enable_snglinst" | |
5322 | ||
5323 | if test "$enableval" = yes; then | |
5324 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5325 | else | |
5326 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5327 | fi | |
5328 | ||
5329 | else | |
5330 | ||
5331 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5332 | if test "x$LINE" != x ; then | |
5333 | eval "DEFAULT_$LINE" | |
5334 | else | |
5335 | no_cache=1 | |
5336 | fi | |
5337 | ||
5338 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5339 | ||
5340 | fi; | |
5341 | ||
5342 | eval "$ac_cv_use_snglinst" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5348 | echo "$as_me:$LINENO: result: yes" >&5 | |
5349 | echo "${ECHO_T}yes" >&6 | |
5350 | else | |
5351 | echo "$as_me:$LINENO: result: no" >&5 | |
5352 | echo "${ECHO_T}no" >&6 | |
5353 | fi | |
5354 | ||
5355 | ||
5356 | enablestring= | |
5357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5358 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5359 | no_cache=0 | |
5360 | # Check whether --enable-streams or --disable-streams was given. | |
5361 | if test "${enable_streams+set}" = set; then | |
5362 | enableval="$enable_streams" | |
5363 | ||
5364 | if test "$enableval" = yes; then | |
5365 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5366 | else | |
5367 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5368 | fi | |
5369 | ||
5370 | else | |
5371 | ||
5372 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5380 | ||
5381 | fi; | |
5382 | ||
5383 | eval "$ac_cv_use_streams" | |
5384 | if test "$no_cache" != 1; then | |
5385 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5386 | fi | |
5387 | ||
5388 | if test "$wxUSE_STREAMS" = yes; then | |
5389 | echo "$as_me:$LINENO: result: yes" >&5 | |
5390 | echo "${ECHO_T}yes" >&6 | |
5391 | else | |
5392 | echo "$as_me:$LINENO: result: no" >&5 | |
5393 | echo "${ECHO_T}no" >&6 | |
5394 | fi | |
5395 | ||
5396 | ||
5397 | enablestring= | |
5398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5399 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5400 | no_cache=0 | |
5401 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5402 | if test "${enable_std_iostreams+set}" = set; then | |
5403 | enableval="$enable_std_iostreams" | |
5404 | ||
5405 | if test "$enableval" = yes; then | |
5406 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5407 | else | |
5408 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5409 | fi | |
5410 | ||
5411 | else | |
5412 | ||
5413 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5421 | ||
5422 | fi; | |
5423 | ||
5424 | eval "$ac_cv_use_std_iostreams" | |
5425 | if test "$no_cache" != 1; then | |
5426 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5427 | fi | |
5428 | ||
5429 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5430 | echo "$as_me:$LINENO: result: yes" >&5 | |
5431 | echo "${ECHO_T}yes" >&6 | |
5432 | else | |
5433 | echo "$as_me:$LINENO: result: no" >&5 | |
5434 | echo "${ECHO_T}no" >&6 | |
5435 | fi | |
5436 | ||
5437 | ||
5438 | enablestring= | |
5439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5440 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5441 | no_cache=0 | |
5442 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5443 | if test "${enable_stopwatch+set}" = set; then | |
5444 | enableval="$enable_stopwatch" | |
5445 | ||
5446 | if test "$enableval" = yes; then | |
5447 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5448 | else | |
5449 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5450 | fi | |
5451 | ||
5452 | else | |
5453 | ||
5454 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5462 | ||
5463 | fi; | |
5464 | ||
5465 | eval "$ac_cv_use_stopwatch" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_STOPWATCH" = yes; then | |
5471 | echo "$as_me:$LINENO: result: yes" >&5 | |
5472 | echo "${ECHO_T}yes" >&6 | |
5473 | else | |
5474 | echo "$as_me:$LINENO: result: no" >&5 | |
5475 | echo "${ECHO_T}no" >&6 | |
5476 | fi | |
5477 | ||
5478 | ||
5479 | enablestring= | |
5480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5481 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5482 | no_cache=0 | |
5483 | # Check whether --enable-system_options or --disable-system_options was given. | |
5484 | if test "${enable_system_options+set}" = set; then | |
5485 | enableval="$enable_system_options" | |
5486 | ||
5487 | if test "$enableval" = yes; then | |
5488 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5489 | else | |
5490 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5491 | fi | |
5492 | ||
5493 | else | |
5494 | ||
5495 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5496 | if test "x$LINE" != x ; then | |
5497 | eval "DEFAULT_$LINE" | |
5498 | else | |
5499 | no_cache=1 | |
5500 | fi | |
5501 | ||
5502 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5503 | ||
5504 | fi; | |
5505 | ||
5506 | eval "$ac_cv_use_system_options" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5512 | echo "$as_me:$LINENO: result: yes" >&5 | |
5513 | echo "${ECHO_T}yes" >&6 | |
5514 | else | |
5515 | echo "$as_me:$LINENO: result: no" >&5 | |
5516 | echo "${ECHO_T}no" >&6 | |
5517 | fi | |
5518 | ||
5519 | ||
5520 | enablestring= | |
5521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5522 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5523 | no_cache=0 | |
5524 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5525 | if test "${enable_textbuf+set}" = set; then | |
5526 | enableval="$enable_textbuf" | |
5527 | ||
5528 | if test "$enableval" = yes; then | |
5529 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5530 | else | |
5531 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5532 | fi | |
5533 | ||
5534 | else | |
5535 | ||
5536 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5537 | if test "x$LINE" != x ; then | |
5538 | eval "DEFAULT_$LINE" | |
5539 | else | |
5540 | no_cache=1 | |
5541 | fi | |
5542 | ||
5543 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5544 | ||
5545 | fi; | |
5546 | ||
5547 | eval "$ac_cv_use_textbuf" | |
5548 | if test "$no_cache" != 1; then | |
5549 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5550 | fi | |
5551 | ||
5552 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5553 | echo "$as_me:$LINENO: result: yes" >&5 | |
5554 | echo "${ECHO_T}yes" >&6 | |
5555 | else | |
5556 | echo "$as_me:$LINENO: result: no" >&5 | |
5557 | echo "${ECHO_T}no" >&6 | |
5558 | fi | |
5559 | ||
5560 | ||
5561 | enablestring= | |
5562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5563 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5564 | no_cache=0 | |
5565 | # Check whether --enable-textfile or --disable-textfile was given. | |
5566 | if test "${enable_textfile+set}" = set; then | |
5567 | enableval="$enable_textfile" | |
5568 | ||
5569 | if test "$enableval" = yes; then | |
5570 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5571 | else | |
5572 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5573 | fi | |
5574 | ||
5575 | else | |
5576 | ||
5577 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5578 | if test "x$LINE" != x ; then | |
5579 | eval "DEFAULT_$LINE" | |
5580 | else | |
5581 | no_cache=1 | |
5582 | fi | |
5583 | ||
5584 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5585 | ||
5586 | fi; | |
5587 | ||
5588 | eval "$ac_cv_use_textfile" | |
5589 | if test "$no_cache" != 1; then | |
5590 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5591 | fi | |
5592 | ||
5593 | if test "$wxUSE_TEXTFILE" = yes; then | |
5594 | echo "$as_me:$LINENO: result: yes" >&5 | |
5595 | echo "${ECHO_T}yes" >&6 | |
5596 | else | |
5597 | echo "$as_me:$LINENO: result: no" >&5 | |
5598 | echo "${ECHO_T}no" >&6 | |
5599 | fi | |
5600 | ||
5601 | ||
5602 | enablestring= | |
5603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5604 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5605 | no_cache=0 | |
5606 | # Check whether --enable-timer or --disable-timer was given. | |
5607 | if test "${enable_timer+set}" = set; then | |
5608 | enableval="$enable_timer" | |
5609 | ||
5610 | if test "$enableval" = yes; then | |
5611 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5612 | else | |
5613 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5614 | fi | |
5615 | ||
5616 | else | |
5617 | ||
5618 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5619 | if test "x$LINE" != x ; then | |
5620 | eval "DEFAULT_$LINE" | |
5621 | else | |
5622 | no_cache=1 | |
5623 | fi | |
5624 | ||
5625 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5626 | ||
5627 | fi; | |
5628 | ||
5629 | eval "$ac_cv_use_timer" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_TIMER" = yes; then | |
5635 | echo "$as_me:$LINENO: result: yes" >&5 | |
5636 | echo "${ECHO_T}yes" >&6 | |
5637 | else | |
5638 | echo "$as_me:$LINENO: result: no" >&5 | |
5639 | echo "${ECHO_T}no" >&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | enablestring= | |
5644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5645 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5646 | no_cache=0 | |
5647 | # Check whether --enable-unicode or --disable-unicode was given. | |
5648 | if test "${enable_unicode+set}" = set; then | |
5649 | enableval="$enable_unicode" | |
5650 | ||
5651 | if test "$enableval" = yes; then | |
5652 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5653 | else | |
5654 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5655 | fi | |
5656 | ||
5657 | else | |
5658 | ||
5659 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5660 | if test "x$LINE" != x ; then | |
5661 | eval "DEFAULT_$LINE" | |
5662 | else | |
5663 | no_cache=1 | |
5664 | fi | |
5665 | ||
5666 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5667 | ||
5668 | fi; | |
5669 | ||
5670 | eval "$ac_cv_use_unicode" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_UNICODE" = yes; then | |
5676 | echo "$as_me:$LINENO: result: yes" >&5 | |
5677 | echo "${ECHO_T}yes" >&6 | |
5678 | else | |
5679 | echo "$as_me:$LINENO: result: no" >&5 | |
5680 | echo "${ECHO_T}no" >&6 | |
5681 | fi | |
5682 | ||
5683 | ||
5684 | enablestring= | |
5685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5686 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5687 | no_cache=0 | |
5688 | # Check whether --enable-sound or --disable-sound was given. | |
5689 | if test "${enable_sound+set}" = set; then | |
5690 | enableval="$enable_sound" | |
5691 | ||
5692 | if test "$enableval" = yes; then | |
5693 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5694 | else | |
5695 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5696 | fi | |
5697 | ||
5698 | else | |
5699 | ||
5700 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5708 | ||
5709 | fi; | |
5710 | ||
5711 | eval "$ac_cv_use_sound" | |
5712 | if test "$no_cache" != 1; then | |
5713 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5714 | fi | |
5715 | ||
5716 | if test "$wxUSE_SOUND" = yes; then | |
5717 | echo "$as_me:$LINENO: result: yes" >&5 | |
5718 | echo "${ECHO_T}yes" >&6 | |
5719 | else | |
5720 | echo "$as_me:$LINENO: result: no" >&5 | |
5721 | echo "${ECHO_T}no" >&6 | |
5722 | fi | |
5723 | ||
5724 | ||
5725 | enablestring= | |
5726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5727 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5728 | no_cache=0 | |
5729 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5730 | if test "${enable_wxprintfv+set}" = set; then | |
5731 | enableval="$enable_wxprintfv" | |
5732 | ||
5733 | if test "$enableval" = yes; then | |
5734 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5735 | else | |
5736 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5737 | fi | |
5738 | ||
5739 | else | |
5740 | ||
5741 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5742 | if test "x$LINE" != x ; then | |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
5748 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5749 | ||
5750 | fi; | |
5751 | ||
5752 | eval "$ac_cv_use_wxprintfv" | |
5753 | if test "$no_cache" != 1; then | |
5754 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5755 | fi | |
5756 | ||
5757 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5758 | echo "$as_me:$LINENO: result: yes" >&5 | |
5759 | echo "${ECHO_T}yes" >&6 | |
5760 | else | |
5761 | echo "$as_me:$LINENO: result: no" >&5 | |
5762 | echo "${ECHO_T}no" >&6 | |
5763 | fi | |
5764 | ||
5765 | ||
5766 | enablestring= | |
5767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5768 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5769 | no_cache=0 | |
5770 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5771 | if test "${enable_zipstream+set}" = set; then | |
5772 | enableval="$enable_zipstream" | |
5773 | ||
5774 | if test "$enableval" = yes; then | |
5775 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5776 | else | |
5777 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5778 | fi | |
5779 | ||
5780 | else | |
5781 | ||
5782 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5783 | if test "x$LINE" != x ; then | |
5784 | eval "DEFAULT_$LINE" | |
5785 | else | |
5786 | no_cache=1 | |
5787 | fi | |
5788 | ||
5789 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5790 | ||
5791 | fi; | |
5792 | ||
5793 | eval "$ac_cv_use_zipstream" | |
5794 | if test "$no_cache" != 1; then | |
5795 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5796 | fi | |
5797 | ||
5798 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5799 | echo "$as_me:$LINENO: result: yes" >&5 | |
5800 | echo "${ECHO_T}yes" >&6 | |
5801 | else | |
5802 | echo "$as_me:$LINENO: result: no" >&5 | |
5803 | echo "${ECHO_T}no" >&6 | |
5804 | fi | |
5805 | ||
5806 | ||
a848cd7e SC |
5807 | |
5808 | enablestring= | |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-url or --disable-url was given. | |
5813 | if test "${enable_url+set}" = set; then | |
5814 | enableval="$enable_url" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_url='wxUSE_URL=yes' | |
5818 | else | |
5819 | ac_cv_use_url='wxUSE_URL=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_url" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_URL" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
5849 | enablestring= | |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5852 | no_cache=0 | |
5853 | # Check whether --enable-protocol or --disable-protocol was given. | |
5854 | if test "${enable_protocol+set}" = set; then | |
5855 | enableval="$enable_protocol" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5859 | else | |
5860 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5873 | ||
5874 | fi; | |
5875 | ||
5876 | eval "$ac_cv_use_protocol" | |
5877 | if test "$no_cache" != 1; then | |
5878 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5879 | fi | |
5880 | ||
5881 | if test "$wxUSE_PROTOCOL" = yes; then | |
5882 | echo "$as_me:$LINENO: result: yes" >&5 | |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5895 | if test "${enable_protocol_http+set}" = set; then | |
5896 | enableval="$enable_protocol_http" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5900 | else | |
5901 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_protocol_http" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | enablestring= | |
5932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5933 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5934 | no_cache=0 | |
5935 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5936 | if test "${enable_protocol_ftp+set}" = set; then | |
5937 | enableval="$enable_protocol_ftp" | |
5938 | ||
5939 | if test "$enableval" = yes; then | |
5940 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5941 | else | |
5942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5943 | fi | |
5944 | ||
5945 | else | |
5946 | ||
5947 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5948 | if test "x$LINE" != x ; then | |
5949 | eval "DEFAULT_$LINE" | |
5950 | else | |
5951 | no_cache=1 | |
5952 | fi | |
5953 | ||
5954 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5955 | ||
5956 | fi; | |
5957 | ||
5958 | eval "$ac_cv_use_protocol_ftp" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5964 | echo "$as_me:$LINENO: result: yes" >&5 | |
5965 | echo "${ECHO_T}yes" >&6 | |
5966 | else | |
5967 | echo "$as_me:$LINENO: result: no" >&5 | |
5968 | echo "${ECHO_T}no" >&6 | |
5969 | fi | |
5970 | ||
5971 | ||
5972 | enablestring= | |
5973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5974 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5975 | no_cache=0 | |
5976 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5977 | if test "${enable_protocol_file+set}" = set; then | |
5978 | enableval="$enable_protocol_file" | |
5979 | ||
5980 | if test "$enableval" = yes; then | |
5981 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5982 | else | |
5983 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5984 | fi | |
5985 | ||
5986 | else | |
5987 | ||
5988 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5996 | ||
5997 | fi; | |
5998 | ||
5999 | eval "$ac_cv_use_protocol_file" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6005 | echo "$as_me:$LINENO: result: yes" >&5 | |
6006 | echo "${ECHO_T}yes" >&6 | |
6007 | else | |
6008 | echo "$as_me:$LINENO: result: no" >&5 | |
6009 | echo "${ECHO_T}no" >&6 | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | enablestring= | |
6017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6018 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6019 | no_cache=0 | |
6020 | # Check whether --enable-threads or --disable-threads was given. | |
6021 | if test "${enable_threads+set}" = set; then | |
6022 | enableval="$enable_threads" | |
6023 | ||
6024 | if test "$enableval" = yes; then | |
6025 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6026 | else | |
6027 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6028 | fi | |
6029 | ||
6030 | else | |
6031 | ||
6032 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6033 | if test "x$LINE" != x ; then | |
6034 | eval "DEFAULT_$LINE" | |
6035 | else | |
6036 | no_cache=1 | |
6037 | fi | |
6038 | ||
6039 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6040 | ||
6041 | fi; | |
6042 | ||
6043 | eval "$ac_cv_use_threads" | |
6044 | if test "$no_cache" != 1; then | |
6045 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6046 | fi | |
6047 | ||
6048 | if test "$wxUSE_THREADS" = yes; then | |
6049 | echo "$as_me:$LINENO: result: yes" >&5 | |
6050 | echo "${ECHO_T}yes" >&6 | |
6051 | else | |
6052 | echo "$as_me:$LINENO: result: no" >&5 | |
6053 | echo "${ECHO_T}no" >&6 | |
6054 | fi | |
6055 | ||
6056 | ||
6057 | if test "$wxUSE_GUI" = "yes"; then | |
6058 | ||
6059 | ||
6060 | ||
6061 | enablestring= | |
6062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6063 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6064 | no_cache=0 | |
6065 | # Check whether --enable-docview or --disable-docview was given. | |
6066 | if test "${enable_docview+set}" = set; then | |
6067 | enableval="$enable_docview" | |
6068 | ||
6069 | if test "$enableval" = yes; then | |
6070 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6071 | else | |
6072 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6073 | fi | |
6074 | ||
6075 | else | |
6076 | ||
6077 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6085 | ||
6086 | fi; | |
6087 | ||
6088 | eval "$ac_cv_use_docview" | |
6089 | if test "$no_cache" != 1; then | |
6090 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6091 | fi | |
6092 | ||
6093 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6094 | echo "$as_me:$LINENO: result: yes" >&5 | |
6095 | echo "${ECHO_T}yes" >&6 | |
6096 | else | |
6097 | echo "$as_me:$LINENO: result: no" >&5 | |
6098 | echo "${ECHO_T}no" >&6 | |
6099 | fi | |
6100 | ||
6101 | ||
6102 | enablestring= | |
6103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6104 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6105 | no_cache=0 | |
6106 | # Check whether --enable-help or --disable-help was given. | |
6107 | if test "${enable_help+set}" = set; then | |
6108 | enableval="$enable_help" | |
6109 | ||
6110 | if test "$enableval" = yes; then | |
6111 | ac_cv_use_help='wxUSE_HELP=yes' | |
6112 | else | |
6113 | ac_cv_use_help='wxUSE_HELP=no' | |
6114 | fi | |
6115 | ||
6116 | else | |
6117 | ||
6118 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6119 | if test "x$LINE" != x ; then | |
6120 | eval "DEFAULT_$LINE" | |
6121 | else | |
6122 | no_cache=1 | |
6123 | fi | |
6124 | ||
6125 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6126 | ||
6127 | fi; | |
6128 | ||
6129 | eval "$ac_cv_use_help" | |
6130 | if test "$no_cache" != 1; then | |
6131 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6132 | fi | |
6133 | ||
6134 | if test "$wxUSE_HELP" = yes; then | |
6135 | echo "$as_me:$LINENO: result: yes" >&5 | |
6136 | echo "${ECHO_T}yes" >&6 | |
6137 | else | |
6138 | echo "$as_me:$LINENO: result: no" >&5 | |
6139 | echo "${ECHO_T}no" >&6 | |
6140 | fi | |
6141 | ||
6142 | ||
6143 | enablestring= | |
6144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6145 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6146 | no_cache=0 | |
6147 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6148 | if test "${enable_mshtmlhelp+set}" = set; then | |
6149 | enableval="$enable_mshtmlhelp" | |
6150 | ||
6151 | if test "$enableval" = yes; then | |
6152 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6153 | else | |
6154 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6155 | fi | |
6156 | ||
6157 | else | |
6158 | ||
6159 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6160 | if test "x$LINE" != x ; then | |
6161 | eval "DEFAULT_$LINE" | |
6162 | else | |
6163 | no_cache=1 | |
6164 | fi | |
6165 | ||
6166 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6167 | ||
6168 | fi; | |
6169 | ||
6170 | eval "$ac_cv_use_mshtmlhelp" | |
6171 | if test "$no_cache" != 1; then | |
6172 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6173 | fi | |
6174 | ||
6175 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6176 | echo "$as_me:$LINENO: result: yes" >&5 | |
6177 | echo "${ECHO_T}yes" >&6 | |
6178 | else | |
6179 | echo "$as_me:$LINENO: result: no" >&5 | |
6180 | echo "${ECHO_T}no" >&6 | |
6181 | fi | |
6182 | ||
6183 | ||
6184 | enablestring= | |
6185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6186 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6187 | no_cache=0 | |
6188 | # Check whether --enable-html or --disable-html was given. | |
6189 | if test "${enable_html+set}" = set; then | |
6190 | enableval="$enable_html" | |
6191 | ||
6192 | if test "$enableval" = yes; then | |
6193 | ac_cv_use_html='wxUSE_HTML=yes' | |
6194 | else | |
6195 | ac_cv_use_html='wxUSE_HTML=no' | |
6196 | fi | |
6197 | ||
6198 | else | |
6199 | ||
6200 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6208 | ||
6209 | fi; | |
6210 | ||
6211 | eval "$ac_cv_use_html" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_HTML" = yes; then | |
6217 | echo "$as_me:$LINENO: result: yes" >&5 | |
6218 | echo "${ECHO_T}yes" >&6 | |
6219 | else | |
6220 | echo "$as_me:$LINENO: result: no" >&5 | |
6221 | echo "${ECHO_T}no" >&6 | |
6222 | fi | |
6223 | ||
6224 | ||
6225 | enablestring= | |
6226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6227 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6228 | no_cache=0 | |
6229 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6230 | if test "${enable_htmlhelp+set}" = set; then | |
6231 | enableval="$enable_htmlhelp" | |
6232 | ||
6233 | if test "$enableval" = yes; then | |
6234 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6235 | else | |
6236 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6237 | fi | |
6238 | ||
6239 | else | |
6240 | ||
6241 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6249 | ||
6250 | fi; | |
6251 | ||
6252 | eval "$ac_cv_use_htmlhelp" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6258 | echo "$as_me:$LINENO: result: yes" >&5 | |
6259 | echo "${ECHO_T}yes" >&6 | |
6260 | else | |
6261 | echo "$as_me:$LINENO: result: no" >&5 | |
6262 | echo "${ECHO_T}no" >&6 | |
6263 | fi | |
6264 | ||
6265 | ||
9a8f0513 VS |
6266 | enablestring= |
6267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6268 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6269 | no_cache=0 | |
6270 | # Check whether --enable-xrc or --disable-xrc was given. | |
6271 | if test "${enable_xrc+set}" = set; then | |
6272 | enableval="$enable_xrc" | |
6273 | ||
6274 | if test "$enableval" = yes; then | |
6275 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6276 | else | |
6277 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6278 | fi | |
6279 | ||
6280 | else | |
6281 | ||
6282 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6283 | if test "x$LINE" != x ; then | |
6284 | eval "DEFAULT_$LINE" | |
6285 | else | |
6286 | no_cache=1 | |
6287 | fi | |
6288 | ||
6289 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6290 | ||
6291 | fi; | |
6292 | ||
6293 | eval "$ac_cv_use_xrc" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_XRC" = yes; then | |
6299 | echo "$as_me:$LINENO: result: yes" >&5 | |
6300 | echo "${ECHO_T}yes" >&6 | |
6301 | else | |
6302 | echo "$as_me:$LINENO: result: no" >&5 | |
6303 | echo "${ECHO_T}no" >&6 | |
6304 | fi | |
6305 | ||
6306 | ||
a848cd7e SC |
6307 | enablestring= |
6308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6309 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6310 | no_cache=0 | |
6311 | # Check whether --enable-constraints or --disable-constraints was given. | |
6312 | if test "${enable_constraints+set}" = set; then | |
6313 | enableval="$enable_constraints" | |
6314 | ||
6315 | if test "$enableval" = yes; then | |
6316 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6317 | else | |
6318 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6319 | fi | |
6320 | ||
6321 | else | |
6322 | ||
6323 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6324 | if test "x$LINE" != x ; then | |
6325 | eval "DEFAULT_$LINE" | |
6326 | else | |
6327 | no_cache=1 | |
6328 | fi | |
6329 | ||
6330 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6331 | ||
6332 | fi; | |
6333 | ||
6334 | eval "$ac_cv_use_constraints" | |
6335 | if test "$no_cache" != 1; then | |
6336 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6337 | fi | |
6338 | ||
6339 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6340 | echo "$as_me:$LINENO: result: yes" >&5 | |
6341 | echo "${ECHO_T}yes" >&6 | |
6342 | else | |
6343 | echo "$as_me:$LINENO: result: no" >&5 | |
6344 | echo "${ECHO_T}no" >&6 | |
6345 | fi | |
6346 | ||
6347 | ||
6348 | enablestring= | |
6349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6350 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6351 | no_cache=0 | |
6352 | # Check whether --enable-printarch or --disable-printarch was given. | |
6353 | if test "${enable_printarch+set}" = set; then | |
6354 | enableval="$enable_printarch" | |
6355 | ||
6356 | if test "$enableval" = yes; then | |
6357 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6358 | else | |
6359 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6360 | fi | |
6361 | ||
6362 | else | |
6363 | ||
6364 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6365 | if test "x$LINE" != x ; then | |
6366 | eval "DEFAULT_$LINE" | |
6367 | else | |
6368 | no_cache=1 | |
6369 | fi | |
6370 | ||
6371 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6372 | ||
6373 | fi; | |
6374 | ||
6375 | eval "$ac_cv_use_printarch" | |
6376 | if test "$no_cache" != 1; then | |
6377 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6378 | fi | |
6379 | ||
6380 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6381 | echo "$as_me:$LINENO: result: yes" >&5 | |
6382 | echo "${ECHO_T}yes" >&6 | |
6383 | else | |
6384 | echo "$as_me:$LINENO: result: no" >&5 | |
6385 | echo "${ECHO_T}no" >&6 | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | enablestring= | |
6390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6391 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6392 | no_cache=0 | |
6393 | # Check whether --enable-mdi or --disable-mdi was given. | |
6394 | if test "${enable_mdi+set}" = set; then | |
6395 | enableval="$enable_mdi" | |
6396 | ||
6397 | if test "$enableval" = yes; then | |
8a7b1113 | 6398 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6399 | else |
8a7b1113 | 6400 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6401 | fi |
6402 | ||
6403 | else | |
6404 | ||
8a7b1113 | 6405 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6406 | if test "x$LINE" != x ; then |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
8a7b1113 | 6412 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6413 | |
6414 | fi; | |
6415 | ||
6416 | eval "$ac_cv_use_mdi" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
8a7b1113 VZ |
6421 | if test "$wxUSE_MDI" = yes; then |
6422 | echo "$as_me:$LINENO: result: yes" >&5 | |
6423 | echo "${ECHO_T}yes" >&6 | |
6424 | else | |
6425 | echo "$as_me:$LINENO: result: no" >&5 | |
6426 | echo "${ECHO_T}no" >&6 | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | enablestring= | |
6431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6432 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6433 | no_cache=0 | |
6434 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6435 | if test "${enable_mdidoc+set}" = set; then | |
6436 | enableval="$enable_mdidoc" | |
6437 | ||
6438 | if test "$enableval" = yes; then | |
6439 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6440 | else | |
6441 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6442 | fi | |
6443 | ||
6444 | else | |
6445 | ||
6446 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6454 | ||
6455 | fi; | |
6456 | ||
6457 | eval "$ac_cv_use_mdidoc" | |
6458 | if test "$no_cache" != 1; then | |
6459 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6460 | fi | |
6461 | ||
a848cd7e SC |
6462 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6463 | echo "$as_me:$LINENO: result: yes" >&5 | |
6464 | echo "${ECHO_T}yes" >&6 | |
6465 | else | |
6466 | echo "$as_me:$LINENO: result: no" >&5 | |
6467 | echo "${ECHO_T}no" >&6 | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | enablestring= | |
6472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6473 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6474 | no_cache=0 | |
6475 | # Check whether --enable-loggui or --disable-loggui was given. | |
6476 | if test "${enable_loggui+set}" = set; then | |
6477 | enableval="$enable_loggui" | |
6478 | ||
6479 | if test "$enableval" = yes; then | |
6480 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6481 | else | |
6482 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6483 | fi | |
6484 | ||
6485 | else | |
6486 | ||
6487 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6488 | if test "x$LINE" != x ; then | |
6489 | eval "DEFAULT_$LINE" | |
6490 | else | |
6491 | no_cache=1 | |
6492 | fi | |
6493 | ||
6494 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6495 | ||
6496 | fi; | |
6497 | ||
6498 | eval "$ac_cv_use_loggui" | |
6499 | if test "$no_cache" != 1; then | |
6500 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6501 | fi | |
6502 | ||
6503 | if test "$wxUSE_LOGGUI" = yes; then | |
6504 | echo "$as_me:$LINENO: result: yes" >&5 | |
6505 | echo "${ECHO_T}yes" >&6 | |
6506 | else | |
6507 | echo "$as_me:$LINENO: result: no" >&5 | |
6508 | echo "${ECHO_T}no" >&6 | |
6509 | fi | |
6510 | ||
6511 | ||
6512 | enablestring= | |
6513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6514 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6515 | no_cache=0 | |
6516 | # Check whether --enable-logwin or --disable-logwin was given. | |
6517 | if test "${enable_logwin+set}" = set; then | |
6518 | enableval="$enable_logwin" | |
6519 | ||
6520 | if test "$enableval" = yes; then | |
6521 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6522 | else | |
6523 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6524 | fi | |
6525 | ||
6526 | else | |
6527 | ||
6528 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6529 | if test "x$LINE" != x ; then | |
6530 | eval "DEFAULT_$LINE" | |
6531 | else | |
6532 | no_cache=1 | |
6533 | fi | |
6534 | ||
6535 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6536 | ||
6537 | fi; | |
6538 | ||
6539 | eval "$ac_cv_use_logwin" | |
6540 | if test "$no_cache" != 1; then | |
6541 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6542 | fi | |
6543 | ||
6544 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6545 | echo "$as_me:$LINENO: result: yes" >&5 | |
6546 | echo "${ECHO_T}yes" >&6 | |
6547 | else | |
6548 | echo "$as_me:$LINENO: result: no" >&5 | |
6549 | echo "${ECHO_T}no" >&6 | |
6550 | fi | |
6551 | ||
6552 | ||
6553 | enablestring= | |
6554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6555 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6556 | no_cache=0 | |
6557 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6558 | if test "${enable_logdialog+set}" = set; then | |
6559 | enableval="$enable_logdialog" | |
6560 | ||
6561 | if test "$enableval" = yes; then | |
6562 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6563 | else | |
6564 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6565 | fi | |
6566 | ||
6567 | else | |
6568 | ||
6569 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6577 | ||
6578 | fi; | |
6579 | ||
6580 | eval "$ac_cv_use_logdialog" | |
6581 | if test "$no_cache" != 1; then | |
6582 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6583 | fi | |
6584 | ||
6585 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6586 | echo "$as_me:$LINENO: result: yes" >&5 | |
6587 | echo "${ECHO_T}yes" >&6 | |
6588 | else | |
6589 | echo "$as_me:$LINENO: result: no" >&5 | |
6590 | echo "${ECHO_T}no" >&6 | |
6591 | fi | |
6592 | ||
6593 | ||
646b6ec1 VS |
6594 | enablestring= |
6595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6596 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6597 | no_cache=0 | |
6598 | # Check whether --enable-webkit or --disable-webkit was given. | |
6599 | if test "${enable_webkit+set}" = set; then | |
6600 | enableval="$enable_webkit" | |
6601 | ||
6602 | if test "$enableval" = yes; then | |
6603 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6604 | else | |
6605 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6606 | fi | |
6607 | ||
6608 | else | |
6609 | ||
6610 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6611 | if test "x$LINE" != x ; then | |
6612 | eval "DEFAULT_$LINE" | |
6613 | else | |
6614 | no_cache=1 | |
6615 | fi | |
6616 | ||
6617 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6618 | ||
6619 | fi; | |
6620 | ||
6621 | eval "$ac_cv_use_webkit" | |
6622 | if test "$no_cache" != 1; then | |
6623 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6624 | fi | |
6625 | ||
6626 | if test "$wxUSE_WEBKIT" = yes; then | |
6627 | echo "$as_me:$LINENO: result: yes" >&5 | |
6628 | echo "${ECHO_T}yes" >&6 | |
6629 | else | |
6630 | echo "$as_me:$LINENO: result: no" >&5 | |
6631 | echo "${ECHO_T}no" >&6 | |
6632 | fi | |
6633 | ||
6634 | ||
a848cd7e SC |
6635 | |
6636 | enablestring= | |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-postscript or --disable-postscript was given. | |
6641 | if test "${enable_postscript+set}" = set; then | |
6642 | enableval="$enable_postscript" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6646 | else | |
6647 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_postscript" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | ||
6678 | ||
6679 | ||
6680 | enablestring= | |
6681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6682 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6683 | no_cache=0 | |
6684 | # Check whether --enable-prologio or --disable-prologio was given. | |
6685 | if test "${enable_prologio+set}" = set; then | |
6686 | enableval="$enable_prologio" | |
6687 | ||
6688 | if test "$enableval" = yes; then | |
6689 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6690 | else | |
6691 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6692 | fi | |
6693 | ||
6694 | else | |
6695 | ||
6696 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6697 | if test "x$LINE" != x ; then | |
6698 | eval "DEFAULT_$LINE" | |
6699 | else | |
6700 | no_cache=1 | |
6701 | fi | |
6702 | ||
6703 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6704 | ||
6705 | fi; | |
6706 | ||
6707 | eval "$ac_cv_use_prologio" | |
6708 | if test "$no_cache" != 1; then | |
6709 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6710 | fi | |
6711 | ||
6712 | if test "$wxUSE_PROLOGIO" = yes; then | |
6713 | echo "$as_me:$LINENO: result: yes" >&5 | |
6714 | echo "${ECHO_T}yes" >&6 | |
6715 | else | |
6716 | echo "$as_me:$LINENO: result: no" >&5 | |
6717 | echo "${ECHO_T}no" >&6 | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | enablestring= | |
6722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6723 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6724 | no_cache=0 | |
6725 | # Check whether --enable-resources or --disable-resources was given. | |
6726 | if test "${enable_resources+set}" = set; then | |
6727 | enableval="$enable_resources" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6731 | else | |
6732 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6745 | ||
6746 | fi; | |
6747 | ||
6748 | eval "$ac_cv_use_resources" | |
6749 | if test "$no_cache" != 1; then | |
6750 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_RESOURCES" = yes; then | |
6754 | echo "$as_me:$LINENO: result: yes" >&5 | |
6755 | echo "${ECHO_T}yes" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | ||
6763 | ||
6764 | enablestring= | |
6765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6766 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6767 | no_cache=0 | |
6768 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6769 | if test "${enable_clipboard+set}" = set; then | |
6770 | enableval="$enable_clipboard" | |
6771 | ||
6772 | if test "$enableval" = yes; then | |
6773 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6774 | else | |
6775 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6776 | fi | |
6777 | ||
6778 | else | |
6779 | ||
6780 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6781 | if test "x$LINE" != x ; then | |
6782 | eval "DEFAULT_$LINE" | |
6783 | else | |
6784 | no_cache=1 | |
6785 | fi | |
6786 | ||
6787 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6788 | ||
6789 | fi; | |
6790 | ||
6791 | eval "$ac_cv_use_clipboard" | |
6792 | if test "$no_cache" != 1; then | |
6793 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6794 | fi | |
6795 | ||
6796 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6797 | echo "$as_me:$LINENO: result: yes" >&5 | |
6798 | echo "${ECHO_T}yes" >&6 | |
6799 | else | |
6800 | echo "$as_me:$LINENO: result: no" >&5 | |
6801 | echo "${ECHO_T}no" >&6 | |
6802 | fi | |
6803 | ||
6804 | ||
6805 | enablestring= | |
6806 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6807 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6808 | no_cache=0 | |
6809 | # Check whether --enable-dnd or --disable-dnd was given. | |
6810 | if test "${enable_dnd+set}" = set; then | |
6811 | enableval="$enable_dnd" | |
6812 | ||
6813 | if test "$enableval" = yes; then | |
6814 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6815 | else | |
6816 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6817 | fi | |
6818 | ||
6819 | else | |
6820 | ||
6821 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6829 | ||
6830 | fi; | |
6831 | ||
6832 | eval "$ac_cv_use_dnd" | |
6833 | if test "$no_cache" != 1; then | |
6834 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6835 | fi | |
6836 | ||
6837 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6838 | echo "$as_me:$LINENO: result: yes" >&5 | |
6839 | echo "${ECHO_T}yes" >&6 | |
6840 | else | |
6841 | echo "$as_me:$LINENO: result: no" >&5 | |
6842 | echo "${ECHO_T}no" >&6 | |
6843 | fi | |
6844 | ||
6845 | ||
6846 | enablestring= | |
6847 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6848 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6849 | no_cache=0 | |
6850 | # Check whether --enable-metafile or --disable-metafile was given. | |
6851 | if test "${enable_metafile+set}" = set; then | |
6852 | enableval="$enable_metafile" | |
6853 | ||
6854 | if test "$enableval" = yes; then | |
6855 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6856 | else | |
6857 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6858 | fi | |
6859 | ||
6860 | else | |
6861 | ||
6862 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6863 | if test "x$LINE" != x ; then | |
6864 | eval "DEFAULT_$LINE" | |
6865 | else | |
6866 | no_cache=1 | |
6867 | fi | |
6868 | ||
6869 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6870 | ||
6871 | fi; | |
6872 | ||
6873 | eval "$ac_cv_use_metafile" | |
6874 | if test "$no_cache" != 1; then | |
6875 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6876 | fi | |
6877 | ||
6878 | if test "$wxUSE_METAFILE" = yes; then | |
6879 | echo "$as_me:$LINENO: result: yes" >&5 | |
6880 | echo "${ECHO_T}yes" >&6 | |
6881 | else | |
6882 | echo "$as_me:$LINENO: result: no" >&5 | |
6883 | echo "${ECHO_T}no" >&6 | |
6884 | fi | |
6885 | ||
6886 | ||
6887 | ||
6888 | ||
6889 | ||
6890 | enablestring= | |
6891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6892 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6893 | no_cache=0 | |
6894 | # Check whether --enable-controls or --disable-controls was given. | |
6895 | if test "${enable_controls+set}" = set; then | |
6896 | enableval="$enable_controls" | |
6897 | ||
6898 | if test "$enableval" = yes; then | |
6899 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6900 | else | |
6901 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6902 | fi | |
6903 | ||
6904 | else | |
6905 | ||
6906 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6914 | ||
6915 | fi; | |
6916 | ||
6917 | eval "$ac_cv_use_controls" | |
6918 | if test "$no_cache" != 1; then | |
6919 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6920 | fi | |
6921 | ||
6922 | if test "$wxUSE_CONTROLS" = yes; then | |
6923 | echo "$as_me:$LINENO: result: yes" >&5 | |
6924 | echo "${ECHO_T}yes" >&6 | |
6925 | else | |
6926 | echo "$as_me:$LINENO: result: no" >&5 | |
6927 | echo "${ECHO_T}no" >&6 | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6932 | DEFAULT_wxUSE_ACCEL=yes | |
6933 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6934 | DEFAULT_wxUSE_BUTTON=yes | |
6935 | DEFAULT_wxUSE_CALCTRL=no | |
6936 | DEFAULT_wxUSE_CARET=yes | |
6937 | DEFAULT_wxUSE_COMBOBOX=yes | |
6938 | DEFAULT_wxUSE_CHECKBOX=yes | |
6939 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6940 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 6941 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
6942 | DEFAULT_wxUSE_GAUGE=yes |
6943 | DEFAULT_wxUSE_GRID=yes | |
6944 | DEFAULT_wxUSE_IMAGLIST=yes | |
6945 | DEFAULT_wxUSE_LISTBOOK=yes | |
6946 | DEFAULT_wxUSE_LISTBOX=yes | |
6947 | DEFAULT_wxUSE_LISTCTRL=yes | |
6948 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6949 | DEFAULT_wxUSE_RADIOBOX=yes | |
6950 | DEFAULT_wxUSE_RADIOBTN=yes | |
6951 | DEFAULT_wxUSE_SASH=yes | |
6952 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6953 | DEFAULT_wxUSE_SLIDER=yes | |
6954 | DEFAULT_wxUSE_SPINBTN=yes | |
6955 | DEFAULT_wxUSE_SPINCTRL=yes | |
6956 | DEFAULT_wxUSE_SPLITTER=yes | |
6957 | DEFAULT_wxUSE_STATBMP=yes | |
6958 | DEFAULT_wxUSE_STATBOX=yes | |
6959 | DEFAULT_wxUSE_STATLINE=yes | |
6960 | DEFAULT_wxUSE_STATUSBAR=yes | |
6961 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6962 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6963 | DEFAULT_wxUSE_TOOLBAR=yes | |
6964 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6965 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6966 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6967 | DEFAULT_wxUSE_TREECTRL=yes | |
6968 | DEFAULT_wxUSE_POPUPWIN=yes | |
6969 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6970 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6971 | DEFAULT_wxUSE_ACCEL=no | |
6972 | DEFAULT_wxUSE_BMPBUTTON=no | |
6973 | DEFAULT_wxUSE_BUTTON=no | |
6974 | DEFAULT_wxUSE_CALCTRL=no | |
6975 | DEFAULT_wxUSE_CARET=no | |
6976 | DEFAULT_wxUSE_COMBOBOX=no | |
6977 | DEFAULT_wxUSE_CHECKBOX=no | |
6978 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6979 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 6980 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
6981 | DEFAULT_wxUSE_GAUGE=no |
6982 | DEFAULT_wxUSE_GRID=no | |
6983 | DEFAULT_wxUSE_IMAGLIST=no | |
6984 | DEFAULT_wxUSE_LISTBOOK=no | |
6985 | DEFAULT_wxUSE_LISTBOX=no | |
6986 | DEFAULT_wxUSE_LISTCTRL=no | |
6987 | DEFAULT_wxUSE_NOTEBOOK=no | |
6988 | DEFAULT_wxUSE_RADIOBOX=no | |
6989 | DEFAULT_wxUSE_RADIOBTN=no | |
6990 | DEFAULT_wxUSE_SASH=no | |
6991 | DEFAULT_wxUSE_SCROLLBAR=no | |
6992 | DEFAULT_wxUSE_SLIDER=no | |
6993 | DEFAULT_wxUSE_SPINBTN=no | |
6994 | DEFAULT_wxUSE_SPINCTRL=no | |
6995 | DEFAULT_wxUSE_SPLITTER=no | |
6996 | DEFAULT_wxUSE_STATBMP=no | |
6997 | DEFAULT_wxUSE_STATBOX=no | |
6998 | DEFAULT_wxUSE_STATLINE=no | |
6999 | DEFAULT_wxUSE_STATUSBAR=no | |
7000 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7001 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7002 | DEFAULT_wxUSE_TOOLBAR=no | |
7003 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7004 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7005 | DEFAULT_wxUSE_TOOLTIPS=no | |
7006 | DEFAULT_wxUSE_TREECTRL=no | |
7007 | DEFAULT_wxUSE_POPUPWIN=no | |
7008 | DEFAULT_wxUSE_TIPWINDOW=no | |
7009 | fi | |
7010 | ||
7011 | ## FIXME: This is a blatant hack | |
7012 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
7013 | wxUSE_PRINTING_ARCHITECTURE=no | |
7014 | wxUSE_DRAG_AND_DROP=no | |
a848cd7e SC |
7015 | DEFAULT_wxUSE_DRAGIMAGE=no |
7016 | fi | |
7017 | ||
7018 | ||
7019 | enablestring= | |
7020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7021 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7022 | no_cache=0 | |
7023 | # Check whether --enable-accel or --disable-accel was given. | |
7024 | if test "${enable_accel+set}" = set; then | |
7025 | enableval="$enable_accel" | |
7026 | ||
7027 | if test "$enableval" = yes; then | |
7028 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7029 | else | |
7030 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7031 | fi | |
7032 | ||
7033 | else | |
7034 | ||
7035 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7036 | if test "x$LINE" != x ; then | |
7037 | eval "DEFAULT_$LINE" | |
7038 | else | |
7039 | no_cache=1 | |
7040 | fi | |
7041 | ||
7042 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7043 | ||
7044 | fi; | |
7045 | ||
7046 | eval "$ac_cv_use_accel" | |
7047 | if test "$no_cache" != 1; then | |
7048 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7049 | fi | |
7050 | ||
7051 | if test "$wxUSE_ACCEL" = yes; then | |
7052 | echo "$as_me:$LINENO: result: yes" >&5 | |
7053 | echo "${ECHO_T}yes" >&6 | |
7054 | else | |
7055 | echo "$as_me:$LINENO: result: no" >&5 | |
7056 | echo "${ECHO_T}no" >&6 | |
7057 | fi | |
7058 | ||
7059 | ||
7060 | enablestring= | |
7061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7062 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7063 | no_cache=0 | |
7064 | # Check whether --enable-button or --disable-button was given. | |
7065 | if test "${enable_button+set}" = set; then | |
7066 | enableval="$enable_button" | |
7067 | ||
7068 | if test "$enableval" = yes; then | |
7069 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7070 | else | |
7071 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7072 | fi | |
7073 | ||
7074 | else | |
7075 | ||
7076 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7077 | if test "x$LINE" != x ; then | |
7078 | eval "DEFAULT_$LINE" | |
7079 | else | |
7080 | no_cache=1 | |
7081 | fi | |
7082 | ||
7083 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7084 | ||
7085 | fi; | |
7086 | ||
7087 | eval "$ac_cv_use_button" | |
7088 | if test "$no_cache" != 1; then | |
7089 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7090 | fi | |
7091 | ||
7092 | if test "$wxUSE_BUTTON" = yes; then | |
7093 | echo "$as_me:$LINENO: result: yes" >&5 | |
7094 | echo "${ECHO_T}yes" >&6 | |
7095 | else | |
7096 | echo "$as_me:$LINENO: result: no" >&5 | |
7097 | echo "${ECHO_T}no" >&6 | |
7098 | fi | |
7099 | ||
7100 | ||
7101 | enablestring= | |
7102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7103 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7104 | no_cache=0 | |
7105 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7106 | if test "${enable_bmpbutton+set}" = set; then | |
7107 | enableval="$enable_bmpbutton" | |
7108 | ||
7109 | if test "$enableval" = yes; then | |
7110 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7111 | else | |
7112 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7113 | fi | |
7114 | ||
7115 | else | |
7116 | ||
7117 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7118 | if test "x$LINE" != x ; then | |
7119 | eval "DEFAULT_$LINE" | |
7120 | else | |
7121 | no_cache=1 | |
7122 | fi | |
7123 | ||
7124 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7125 | ||
7126 | fi; | |
7127 | ||
7128 | eval "$ac_cv_use_bmpbutton" | |
7129 | if test "$no_cache" != 1; then | |
7130 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7131 | fi | |
7132 | ||
7133 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7134 | echo "$as_me:$LINENO: result: yes" >&5 | |
7135 | echo "${ECHO_T}yes" >&6 | |
7136 | else | |
7137 | echo "$as_me:$LINENO: result: no" >&5 | |
7138 | echo "${ECHO_T}no" >&6 | |
7139 | fi | |
7140 | ||
7141 | ||
7142 | enablestring= | |
7143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7144 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7145 | no_cache=0 | |
7146 | # Check whether --enable-calendar or --disable-calendar was given. | |
7147 | if test "${enable_calendar+set}" = set; then | |
7148 | enableval="$enable_calendar" | |
7149 | ||
7150 | if test "$enableval" = yes; then | |
7151 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7152 | else | |
7153 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7154 | fi | |
7155 | ||
7156 | else | |
7157 | ||
7158 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7159 | if test "x$LINE" != x ; then | |
7160 | eval "DEFAULT_$LINE" | |
7161 | else | |
7162 | no_cache=1 | |
7163 | fi | |
7164 | ||
7165 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7166 | ||
7167 | fi; | |
7168 | ||
7169 | eval "$ac_cv_use_calendar" | |
7170 | if test "$no_cache" != 1; then | |
7171 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7172 | fi | |
7173 | ||
7174 | if test "$wxUSE_CALCTRL" = yes; then | |
7175 | echo "$as_me:$LINENO: result: yes" >&5 | |
7176 | echo "${ECHO_T}yes" >&6 | |
7177 | else | |
7178 | echo "$as_me:$LINENO: result: no" >&5 | |
7179 | echo "${ECHO_T}no" >&6 | |
7180 | fi | |
7181 | ||
7182 | ||
7183 | enablestring= | |
7184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7185 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7186 | no_cache=0 | |
7187 | # Check whether --enable-caret or --disable-caret was given. | |
7188 | if test "${enable_caret+set}" = set; then | |
7189 | enableval="$enable_caret" | |
7190 | ||
7191 | if test "$enableval" = yes; then | |
7192 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7193 | else | |
7194 | ac_cv_use_caret='wxUSE_CARET=no' | |
7195 | fi | |
7196 | ||
7197 | else | |
7198 | ||
7199 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7200 | if test "x$LINE" != x ; then | |
7201 | eval "DEFAULT_$LINE" | |
7202 | else | |
7203 | no_cache=1 | |
7204 | fi | |
7205 | ||
7206 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7207 | ||
7208 | fi; | |
7209 | ||
7210 | eval "$ac_cv_use_caret" | |
7211 | if test "$no_cache" != 1; then | |
7212 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7213 | fi | |
7214 | ||
7215 | if test "$wxUSE_CARET" = yes; then | |
7216 | echo "$as_me:$LINENO: result: yes" >&5 | |
7217 | echo "${ECHO_T}yes" >&6 | |
7218 | else | |
7219 | echo "$as_me:$LINENO: result: no" >&5 | |
7220 | echo "${ECHO_T}no" >&6 | |
7221 | fi | |
7222 | ||
7223 | ||
7224 | enablestring= | |
7225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7226 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7227 | no_cache=0 | |
7228 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7229 | if test "${enable_checkbox+set}" = set; then | |
7230 | enableval="$enable_checkbox" | |
7231 | ||
7232 | if test "$enableval" = yes; then | |
7233 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7234 | else | |
7235 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7236 | fi | |
7237 | ||
7238 | else | |
7239 | ||
7240 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7241 | if test "x$LINE" != x ; then | |
7242 | eval "DEFAULT_$LINE" | |
7243 | else | |
7244 | no_cache=1 | |
7245 | fi | |
7246 | ||
7247 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7248 | ||
7249 | fi; | |
7250 | ||
7251 | eval "$ac_cv_use_checkbox" | |
7252 | if test "$no_cache" != 1; then | |
7253 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7254 | fi | |
7255 | ||
7256 | if test "$wxUSE_CHECKBOX" = yes; then | |
7257 | echo "$as_me:$LINENO: result: yes" >&5 | |
7258 | echo "${ECHO_T}yes" >&6 | |
7259 | else | |
7260 | echo "$as_me:$LINENO: result: no" >&5 | |
7261 | echo "${ECHO_T}no" >&6 | |
7262 | fi | |
7263 | ||
7264 | ||
7265 | enablestring= | |
7266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7267 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7268 | no_cache=0 | |
7269 | # Check whether --enable-checklst or --disable-checklst was given. | |
7270 | if test "${enable_checklst+set}" = set; then | |
7271 | enableval="$enable_checklst" | |
7272 | ||
7273 | if test "$enableval" = yes; then | |
7274 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7275 | else | |
7276 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7277 | fi | |
7278 | ||
7279 | else | |
7280 | ||
7281 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7282 | if test "x$LINE" != x ; then | |
7283 | eval "DEFAULT_$LINE" | |
7284 | else | |
7285 | no_cache=1 | |
7286 | fi | |
7287 | ||
7288 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7289 | ||
7290 | fi; | |
7291 | ||
7292 | eval "$ac_cv_use_checklst" | |
7293 | if test "$no_cache" != 1; then | |
7294 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7295 | fi | |
7296 | ||
7297 | if test "$wxUSE_CHECKLST" = yes; then | |
7298 | echo "$as_me:$LINENO: result: yes" >&5 | |
7299 | echo "${ECHO_T}yes" >&6 | |
7300 | else | |
7301 | echo "$as_me:$LINENO: result: no" >&5 | |
7302 | echo "${ECHO_T}no" >&6 | |
7303 | fi | |
7304 | ||
7305 | ||
7306 | enablestring= | |
7307 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7308 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7309 | no_cache=0 | |
7310 | # Check whether --enable-choice or --disable-choice was given. | |
7311 | if test "${enable_choice+set}" = set; then | |
7312 | enableval="$enable_choice" | |
7313 | ||
7314 | if test "$enableval" = yes; then | |
7315 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7316 | else | |
7317 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7318 | fi | |
7319 | ||
7320 | else | |
7321 | ||
7322 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7323 | if test "x$LINE" != x ; then | |
7324 | eval "DEFAULT_$LINE" | |
7325 | else | |
7326 | no_cache=1 | |
7327 | fi | |
7328 | ||
7329 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7330 | ||
7331 | fi; | |
7332 | ||
7333 | eval "$ac_cv_use_choice" | |
7334 | if test "$no_cache" != 1; then | |
7335 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7336 | fi | |
7337 | ||
7338 | if test "$wxUSE_CHOICE" = yes; then | |
7339 | echo "$as_me:$LINENO: result: yes" >&5 | |
7340 | echo "${ECHO_T}yes" >&6 | |
7341 | else | |
7342 | echo "$as_me:$LINENO: result: no" >&5 | |
7343 | echo "${ECHO_T}no" >&6 | |
7344 | fi | |
7345 | ||
7346 | ||
92bbdbcd WS |
7347 | enablestring= |
7348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7349 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7350 | no_cache=0 | |
7351 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7352 | if test "${enable_choicebook+set}" = set; then | |
7353 | enableval="$enable_choicebook" | |
7354 | ||
7355 | if test "$enableval" = yes; then | |
7356 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7357 | else | |
7358 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7359 | fi | |
7360 | ||
7361 | else | |
7362 | ||
7363 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7364 | if test "x$LINE" != x ; then | |
7365 | eval "DEFAULT_$LINE" | |
7366 | else | |
7367 | no_cache=1 | |
7368 | fi | |
7369 | ||
7370 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7371 | ||
7372 | fi; | |
7373 | ||
7374 | eval "$ac_cv_use_choicebook" | |
7375 | if test "$no_cache" != 1; then | |
7376 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7377 | fi | |
7378 | ||
7379 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7380 | echo "$as_me:$LINENO: result: yes" >&5 | |
7381 | echo "${ECHO_T}yes" >&6 | |
7382 | else | |
7383 | echo "$as_me:$LINENO: result: no" >&5 | |
7384 | echo "${ECHO_T}no" >&6 | |
7385 | fi | |
7386 | ||
7387 | ||
a848cd7e SC |
7388 | enablestring= |
7389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7390 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7391 | no_cache=0 | |
7392 | # Check whether --enable-combobox or --disable-combobox was given. | |
7393 | if test "${enable_combobox+set}" = set; then | |
7394 | enableval="$enable_combobox" | |
7395 | ||
7396 | if test "$enableval" = yes; then | |
7397 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7398 | else | |
7399 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7400 | fi | |
7401 | ||
7402 | else | |
7403 | ||
7404 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7405 | if test "x$LINE" != x ; then | |
7406 | eval "DEFAULT_$LINE" | |
7407 | else | |
7408 | no_cache=1 | |
7409 | fi | |
7410 | ||
7411 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7412 | ||
7413 | fi; | |
7414 | ||
7415 | eval "$ac_cv_use_combobox" | |
7416 | if test "$no_cache" != 1; then | |
7417 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7418 | fi | |
7419 | ||
7420 | if test "$wxUSE_COMBOBOX" = yes; then | |
7421 | echo "$as_me:$LINENO: result: yes" >&5 | |
7422 | echo "${ECHO_T}yes" >&6 | |
7423 | else | |
7424 | echo "$as_me:$LINENO: result: no" >&5 | |
7425 | echo "${ECHO_T}no" >&6 | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | enablestring= | |
7430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7431 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7432 | no_cache=0 | |
7433 | # Check whether --enable-display or --disable-display was given. | |
7434 | if test "${enable_display+set}" = set; then | |
7435 | enableval="$enable_display" | |
7436 | ||
7437 | if test "$enableval" = yes; then | |
7438 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7439 | else | |
7440 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7441 | fi | |
7442 | ||
7443 | else | |
7444 | ||
7445 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7446 | if test "x$LINE" != x ; then | |
7447 | eval "DEFAULT_$LINE" | |
7448 | else | |
7449 | no_cache=1 | |
7450 | fi | |
7451 | ||
7452 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7453 | ||
7454 | fi; | |
7455 | ||
7456 | eval "$ac_cv_use_display" | |
7457 | if test "$no_cache" != 1; then | |
7458 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7459 | fi | |
7460 | ||
7461 | if test "$wxUSE_DISPLAY" = yes; then | |
7462 | echo "$as_me:$LINENO: result: yes" >&5 | |
7463 | echo "${ECHO_T}yes" >&6 | |
7464 | else | |
7465 | echo "$as_me:$LINENO: result: no" >&5 | |
7466 | echo "${ECHO_T}no" >&6 | |
7467 | fi | |
7468 | ||
7469 | ||
7470 | enablestring= | |
7471 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7472 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7473 | no_cache=0 | |
7474 | # Check whether --enable-gauge or --disable-gauge was given. | |
7475 | if test "${enable_gauge+set}" = set; then | |
7476 | enableval="$enable_gauge" | |
7477 | ||
7478 | if test "$enableval" = yes; then | |
7479 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7480 | else | |
7481 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7482 | fi | |
7483 | ||
7484 | else | |
7485 | ||
7486 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7487 | if test "x$LINE" != x ; then | |
7488 | eval "DEFAULT_$LINE" | |
7489 | else | |
7490 | no_cache=1 | |
7491 | fi | |
7492 | ||
7493 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7494 | ||
7495 | fi; | |
7496 | ||
7497 | eval "$ac_cv_use_gauge" | |
7498 | if test "$no_cache" != 1; then | |
7499 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_GAUGE" = yes; then | |
7503 | echo "$as_me:$LINENO: result: yes" >&5 | |
7504 | echo "${ECHO_T}yes" >&6 | |
7505 | else | |
7506 | echo "$as_me:$LINENO: result: no" >&5 | |
7507 | echo "${ECHO_T}no" >&6 | |
7508 | fi | |
7509 | ||
7510 | ||
7511 | enablestring= | |
7512 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7513 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7514 | no_cache=0 | |
7515 | # Check whether --enable-grid or --disable-grid was given. | |
7516 | if test "${enable_grid+set}" = set; then | |
7517 | enableval="$enable_grid" | |
7518 | ||
7519 | if test "$enableval" = yes; then | |
7520 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7521 | else | |
7522 | ac_cv_use_grid='wxUSE_GRID=no' | |
7523 | fi | |
7524 | ||
7525 | else | |
7526 | ||
7527 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7528 | if test "x$LINE" != x ; then | |
7529 | eval "DEFAULT_$LINE" | |
7530 | else | |
7531 | no_cache=1 | |
7532 | fi | |
7533 | ||
7534 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7535 | ||
7536 | fi; | |
7537 | ||
7538 | eval "$ac_cv_use_grid" | |
7539 | if test "$no_cache" != 1; then | |
7540 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7541 | fi | |
7542 | ||
7543 | if test "$wxUSE_GRID" = yes; then | |
7544 | echo "$as_me:$LINENO: result: yes" >&5 | |
7545 | echo "${ECHO_T}yes" >&6 | |
7546 | else | |
7547 | echo "$as_me:$LINENO: result: no" >&5 | |
7548 | echo "${ECHO_T}no" >&6 | |
7549 | fi | |
7550 | ||
7551 | ||
7552 | enablestring= | |
7553 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7554 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7555 | no_cache=0 | |
7556 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7557 | if test "${enable_imaglist+set}" = set; then | |
7558 | enableval="$enable_imaglist" | |
7559 | ||
7560 | if test "$enableval" = yes; then | |
7561 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7562 | else | |
7563 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7564 | fi | |
7565 | ||
7566 | else | |
7567 | ||
7568 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7569 | if test "x$LINE" != x ; then | |
7570 | eval "DEFAULT_$LINE" | |
7571 | else | |
7572 | no_cache=1 | |
7573 | fi | |
7574 | ||
7575 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7576 | ||
7577 | fi; | |
7578 | ||
7579 | eval "$ac_cv_use_imaglist" | |
7580 | if test "$no_cache" != 1; then | |
7581 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7582 | fi | |
7583 | ||
7584 | if test "$wxUSE_IMAGLIST" = yes; then | |
7585 | echo "$as_me:$LINENO: result: yes" >&5 | |
7586 | echo "${ECHO_T}yes" >&6 | |
7587 | else | |
7588 | echo "$as_me:$LINENO: result: no" >&5 | |
7589 | echo "${ECHO_T}no" >&6 | |
7590 | fi | |
7591 | ||
7592 | ||
7593 | enablestring= | |
7594 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7595 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7596 | no_cache=0 | |
7597 | # Check whether --enable-listbook or --disable-listbook was given. | |
7598 | if test "${enable_listbook+set}" = set; then | |
7599 | enableval="$enable_listbook" | |
7600 | ||
7601 | if test "$enableval" = yes; then | |
7602 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7603 | else | |
7604 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7605 | fi | |
7606 | ||
7607 | else | |
7608 | ||
7609 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7610 | if test "x$LINE" != x ; then | |
7611 | eval "DEFAULT_$LINE" | |
7612 | else | |
7613 | no_cache=1 | |
7614 | fi | |
7615 | ||
7616 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7617 | ||
7618 | fi; | |
7619 | ||
7620 | eval "$ac_cv_use_listbook" | |
7621 | if test "$no_cache" != 1; then | |
7622 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7623 | fi | |
7624 | ||
7625 | if test "$wxUSE_LISTBOOK" = yes; then | |
7626 | echo "$as_me:$LINENO: result: yes" >&5 | |
7627 | echo "${ECHO_T}yes" >&6 | |
7628 | else | |
7629 | echo "$as_me:$LINENO: result: no" >&5 | |
7630 | echo "${ECHO_T}no" >&6 | |
7631 | fi | |
7632 | ||
7633 | ||
7634 | enablestring= | |
7635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7636 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7637 | no_cache=0 | |
7638 | # Check whether --enable-listbox or --disable-listbox was given. | |
7639 | if test "${enable_listbox+set}" = set; then | |
7640 | enableval="$enable_listbox" | |
7641 | ||
7642 | if test "$enableval" = yes; then | |
7643 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7644 | else | |
7645 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7646 | fi | |
7647 | ||
7648 | else | |
7649 | ||
7650 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7651 | if test "x$LINE" != x ; then | |
7652 | eval "DEFAULT_$LINE" | |
7653 | else | |
7654 | no_cache=1 | |
7655 | fi | |
7656 | ||
7657 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7658 | ||
7659 | fi; | |
7660 | ||
7661 | eval "$ac_cv_use_listbox" | |
7662 | if test "$no_cache" != 1; then | |
7663 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7664 | fi | |
7665 | ||
7666 | if test "$wxUSE_LISTBOX" = yes; then | |
7667 | echo "$as_me:$LINENO: result: yes" >&5 | |
7668 | echo "${ECHO_T}yes" >&6 | |
7669 | else | |
7670 | echo "$as_me:$LINENO: result: no" >&5 | |
7671 | echo "${ECHO_T}no" >&6 | |
7672 | fi | |
7673 | ||
7674 | ||
7675 | enablestring= | |
7676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7677 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7678 | no_cache=0 | |
7679 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7680 | if test "${enable_listctrl+set}" = set; then | |
7681 | enableval="$enable_listctrl" | |
7682 | ||
7683 | if test "$enableval" = yes; then | |
7684 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7685 | else | |
7686 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7687 | fi | |
7688 | ||
7689 | else | |
7690 | ||
7691 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7692 | if test "x$LINE" != x ; then | |
7693 | eval "DEFAULT_$LINE" | |
7694 | else | |
7695 | no_cache=1 | |
7696 | fi | |
7697 | ||
7698 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7699 | ||
7700 | fi; | |
7701 | ||
7702 | eval "$ac_cv_use_listctrl" | |
7703 | if test "$no_cache" != 1; then | |
7704 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7705 | fi | |
7706 | ||
7707 | if test "$wxUSE_LISTCTRL" = yes; then | |
7708 | echo "$as_me:$LINENO: result: yes" >&5 | |
7709 | echo "${ECHO_T}yes" >&6 | |
7710 | else | |
7711 | echo "$as_me:$LINENO: result: no" >&5 | |
7712 | echo "${ECHO_T}no" >&6 | |
7713 | fi | |
7714 | ||
7715 | ||
7716 | enablestring= | |
7717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7718 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7719 | no_cache=0 | |
7720 | # Check whether --enable-notebook or --disable-notebook was given. | |
7721 | if test "${enable_notebook+set}" = set; then | |
7722 | enableval="$enable_notebook" | |
7723 | ||
7724 | if test "$enableval" = yes; then | |
7725 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7726 | else | |
7727 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7728 | fi | |
7729 | ||
7730 | else | |
7731 | ||
7732 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7733 | if test "x$LINE" != x ; then | |
7734 | eval "DEFAULT_$LINE" | |
7735 | else | |
7736 | no_cache=1 | |
7737 | fi | |
7738 | ||
7739 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7740 | ||
7741 | fi; | |
7742 | ||
7743 | eval "$ac_cv_use_notebook" | |
7744 | if test "$no_cache" != 1; then | |
7745 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7746 | fi | |
7747 | ||
7748 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7749 | echo "$as_me:$LINENO: result: yes" >&5 | |
7750 | echo "${ECHO_T}yes" >&6 | |
7751 | else | |
7752 | echo "$as_me:$LINENO: result: no" >&5 | |
7753 | echo "${ECHO_T}no" >&6 | |
7754 | fi | |
7755 | ||
7756 | ||
7757 | enablestring= | |
7758 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7759 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7760 | no_cache=0 | |
7761 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7762 | if test "${enable_radiobox+set}" = set; then | |
7763 | enableval="$enable_radiobox" | |
7764 | ||
7765 | if test "$enableval" = yes; then | |
7766 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7767 | else | |
7768 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7769 | fi | |
7770 | ||
7771 | else | |
7772 | ||
7773 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7774 | if test "x$LINE" != x ; then | |
7775 | eval "DEFAULT_$LINE" | |
7776 | else | |
7777 | no_cache=1 | |
7778 | fi | |
7779 | ||
7780 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7781 | ||
7782 | fi; | |
7783 | ||
7784 | eval "$ac_cv_use_radiobox" | |
7785 | if test "$no_cache" != 1; then | |
7786 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7787 | fi | |
7788 | ||
7789 | if test "$wxUSE_RADIOBOX" = yes; then | |
7790 | echo "$as_me:$LINENO: result: yes" >&5 | |
7791 | echo "${ECHO_T}yes" >&6 | |
7792 | else | |
7793 | echo "$as_me:$LINENO: result: no" >&5 | |
7794 | echo "${ECHO_T}no" >&6 | |
7795 | fi | |
7796 | ||
7797 | ||
7798 | enablestring= | |
7799 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7800 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7801 | no_cache=0 | |
7802 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7803 | if test "${enable_radiobtn+set}" = set; then | |
7804 | enableval="$enable_radiobtn" | |
7805 | ||
7806 | if test "$enableval" = yes; then | |
7807 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7808 | else | |
7809 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7810 | fi | |
7811 | ||
7812 | else | |
7813 | ||
7814 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7815 | if test "x$LINE" != x ; then | |
7816 | eval "DEFAULT_$LINE" | |
7817 | else | |
7818 | no_cache=1 | |
7819 | fi | |
7820 | ||
7821 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7822 | ||
7823 | fi; | |
7824 | ||
7825 | eval "$ac_cv_use_radiobtn" | |
7826 | if test "$no_cache" != 1; then | |
7827 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7828 | fi | |
7829 | ||
7830 | if test "$wxUSE_RADIOBTN" = yes; then | |
7831 | echo "$as_me:$LINENO: result: yes" >&5 | |
7832 | echo "${ECHO_T}yes" >&6 | |
7833 | else | |
7834 | echo "$as_me:$LINENO: result: no" >&5 | |
7835 | echo "${ECHO_T}no" >&6 | |
7836 | fi | |
7837 | ||
7838 | ||
7839 | enablestring= | |
7840 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7841 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7842 | no_cache=0 | |
7843 | # Check whether --enable-sash or --disable-sash was given. | |
7844 | if test "${enable_sash+set}" = set; then | |
7845 | enableval="$enable_sash" | |
7846 | ||
7847 | if test "$enableval" = yes; then | |
7848 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7849 | else | |
7850 | ac_cv_use_sash='wxUSE_SASH=no' | |
7851 | fi | |
7852 | ||
7853 | else | |
7854 | ||
7855 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7856 | if test "x$LINE" != x ; then | |
7857 | eval "DEFAULT_$LINE" | |
7858 | else | |
7859 | no_cache=1 | |
7860 | fi | |
7861 | ||
7862 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7863 | ||
7864 | fi; | |
7865 | ||
7866 | eval "$ac_cv_use_sash" | |
7867 | if test "$no_cache" != 1; then | |
7868 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7869 | fi | |
7870 | ||
7871 | if test "$wxUSE_SASH" = yes; then | |
7872 | echo "$as_me:$LINENO: result: yes" >&5 | |
7873 | echo "${ECHO_T}yes" >&6 | |
7874 | else | |
7875 | echo "$as_me:$LINENO: result: no" >&5 | |
7876 | echo "${ECHO_T}no" >&6 | |
7877 | fi | |
7878 | ||
7879 | ||
7880 | enablestring= | |
7881 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7882 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7883 | no_cache=0 | |
7884 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7885 | if test "${enable_scrollbar+set}" = set; then | |
7886 | enableval="$enable_scrollbar" | |
7887 | ||
7888 | if test "$enableval" = yes; then | |
7889 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7890 | else | |
7891 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7892 | fi | |
7893 | ||
7894 | else | |
7895 | ||
7896 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7897 | if test "x$LINE" != x ; then | |
7898 | eval "DEFAULT_$LINE" | |
7899 | else | |
7900 | no_cache=1 | |
7901 | fi | |
7902 | ||
7903 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7904 | ||
7905 | fi; | |
7906 | ||
7907 | eval "$ac_cv_use_scrollbar" | |
7908 | if test "$no_cache" != 1; then | |
7909 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7910 | fi | |
7911 | ||
7912 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7913 | echo "$as_me:$LINENO: result: yes" >&5 | |
7914 | echo "${ECHO_T}yes" >&6 | |
7915 | else | |
7916 | echo "$as_me:$LINENO: result: no" >&5 | |
7917 | echo "${ECHO_T}no" >&6 | |
7918 | fi | |
7919 | ||
7920 | ||
7921 | enablestring= | |
7922 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7923 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7924 | no_cache=0 | |
7925 | # Check whether --enable-slider or --disable-slider was given. | |
7926 | if test "${enable_slider+set}" = set; then | |
7927 | enableval="$enable_slider" | |
7928 | ||
7929 | if test "$enableval" = yes; then | |
7930 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7931 | else | |
7932 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7933 | fi | |
7934 | ||
7935 | else | |
7936 | ||
7937 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7938 | if test "x$LINE" != x ; then | |
7939 | eval "DEFAULT_$LINE" | |
7940 | else | |
7941 | no_cache=1 | |
7942 | fi | |
7943 | ||
7944 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7945 | ||
7946 | fi; | |
7947 | ||
7948 | eval "$ac_cv_use_slider" | |
7949 | if test "$no_cache" != 1; then | |
7950 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7951 | fi | |
7952 | ||
7953 | if test "$wxUSE_SLIDER" = yes; then | |
7954 | echo "$as_me:$LINENO: result: yes" >&5 | |
7955 | echo "${ECHO_T}yes" >&6 | |
7956 | else | |
7957 | echo "$as_me:$LINENO: result: no" >&5 | |
7958 | echo "${ECHO_T}no" >&6 | |
7959 | fi | |
7960 | ||
7961 | ||
7962 | enablestring= | |
7963 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7964 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7965 | no_cache=0 | |
7966 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7967 | if test "${enable_spinbtn+set}" = set; then | |
7968 | enableval="$enable_spinbtn" | |
7969 | ||
7970 | if test "$enableval" = yes; then | |
7971 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7972 | else | |
7973 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7974 | fi | |
7975 | ||
7976 | else | |
7977 | ||
7978 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7979 | if test "x$LINE" != x ; then | |
7980 | eval "DEFAULT_$LINE" | |
7981 | else | |
7982 | no_cache=1 | |
7983 | fi | |
7984 | ||
7985 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7986 | ||
7987 | fi; | |
7988 | ||
7989 | eval "$ac_cv_use_spinbtn" | |
7990 | if test "$no_cache" != 1; then | |
7991 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7992 | fi | |
7993 | ||
7994 | if test "$wxUSE_SPINBTN" = yes; then | |
7995 | echo "$as_me:$LINENO: result: yes" >&5 | |
7996 | echo "${ECHO_T}yes" >&6 | |
7997 | else | |
7998 | echo "$as_me:$LINENO: result: no" >&5 | |
7999 | echo "${ECHO_T}no" >&6 | |
8000 | fi | |
8001 | ||
8002 | ||
8003 | enablestring= | |
8004 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8005 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8006 | no_cache=0 | |
8007 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8008 | if test "${enable_spinctrl+set}" = set; then | |
8009 | enableval="$enable_spinctrl" | |
8010 | ||
8011 | if test "$enableval" = yes; then | |
8012 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8013 | else | |
8014 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8015 | fi | |
8016 | ||
8017 | else | |
8018 | ||
8019 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8020 | if test "x$LINE" != x ; then | |
8021 | eval "DEFAULT_$LINE" | |
8022 | else | |
8023 | no_cache=1 | |
8024 | fi | |
8025 | ||
8026 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8027 | ||
8028 | fi; | |
8029 | ||
8030 | eval "$ac_cv_use_spinctrl" | |
8031 | if test "$no_cache" != 1; then | |
8032 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8033 | fi | |
8034 | ||
8035 | if test "$wxUSE_SPINCTRL" = yes; then | |
8036 | echo "$as_me:$LINENO: result: yes" >&5 | |
8037 | echo "${ECHO_T}yes" >&6 | |
8038 | else | |
8039 | echo "$as_me:$LINENO: result: no" >&5 | |
8040 | echo "${ECHO_T}no" >&6 | |
8041 | fi | |
8042 | ||
8043 | ||
8044 | enablestring= | |
8045 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8046 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8047 | no_cache=0 | |
8048 | # Check whether --enable-splitter or --disable-splitter was given. | |
8049 | if test "${enable_splitter+set}" = set; then | |
8050 | enableval="$enable_splitter" | |
8051 | ||
8052 | if test "$enableval" = yes; then | |
8053 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8054 | else | |
8055 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8056 | fi | |
8057 | ||
8058 | else | |
8059 | ||
8060 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8061 | if test "x$LINE" != x ; then | |
8062 | eval "DEFAULT_$LINE" | |
8063 | else | |
8064 | no_cache=1 | |
8065 | fi | |
8066 | ||
8067 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8068 | ||
8069 | fi; | |
8070 | ||
8071 | eval "$ac_cv_use_splitter" | |
8072 | if test "$no_cache" != 1; then | |
8073 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8074 | fi | |
8075 | ||
8076 | if test "$wxUSE_SPLITTER" = yes; then | |
8077 | echo "$as_me:$LINENO: result: yes" >&5 | |
8078 | echo "${ECHO_T}yes" >&6 | |
8079 | else | |
8080 | echo "$as_me:$LINENO: result: no" >&5 | |
8081 | echo "${ECHO_T}no" >&6 | |
8082 | fi | |
8083 | ||
8084 | ||
8085 | enablestring= | |
8086 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8087 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8088 | no_cache=0 | |
8089 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8090 | if test "${enable_statbmp+set}" = set; then | |
8091 | enableval="$enable_statbmp" | |
8092 | ||
8093 | if test "$enableval" = yes; then | |
8094 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8095 | else | |
8096 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8097 | fi | |
8098 | ||
8099 | else | |
8100 | ||
8101 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8102 | if test "x$LINE" != x ; then | |
8103 | eval "DEFAULT_$LINE" | |
8104 | else | |
8105 | no_cache=1 | |
8106 | fi | |
8107 | ||
8108 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8109 | ||
8110 | fi; | |
8111 | ||
8112 | eval "$ac_cv_use_statbmp" | |
8113 | if test "$no_cache" != 1; then | |
8114 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8115 | fi | |
8116 | ||
8117 | if test "$wxUSE_STATBMP" = yes; then | |
8118 | echo "$as_me:$LINENO: result: yes" >&5 | |
8119 | echo "${ECHO_T}yes" >&6 | |
8120 | else | |
8121 | echo "$as_me:$LINENO: result: no" >&5 | |
8122 | echo "${ECHO_T}no" >&6 | |
8123 | fi | |
8124 | ||
8125 | ||
8126 | enablestring= | |
8127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8128 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8129 | no_cache=0 | |
8130 | # Check whether --enable-statbox or --disable-statbox was given. | |
8131 | if test "${enable_statbox+set}" = set; then | |
8132 | enableval="$enable_statbox" | |
8133 | ||
8134 | if test "$enableval" = yes; then | |
8135 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8136 | else | |
8137 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8138 | fi | |
8139 | ||
8140 | else | |
8141 | ||
8142 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8143 | if test "x$LINE" != x ; then | |
8144 | eval "DEFAULT_$LINE" | |
8145 | else | |
8146 | no_cache=1 | |
8147 | fi | |
8148 | ||
8149 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8150 | ||
8151 | fi; | |
8152 | ||
8153 | eval "$ac_cv_use_statbox" | |
8154 | if test "$no_cache" != 1; then | |
8155 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8156 | fi | |
8157 | ||
8158 | if test "$wxUSE_STATBOX" = yes; then | |
8159 | echo "$as_me:$LINENO: result: yes" >&5 | |
8160 | echo "${ECHO_T}yes" >&6 | |
8161 | else | |
8162 | echo "$as_me:$LINENO: result: no" >&5 | |
8163 | echo "${ECHO_T}no" >&6 | |
8164 | fi | |
8165 | ||
8166 | ||
8167 | enablestring= | |
8168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8169 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8170 | no_cache=0 | |
8171 | # Check whether --enable-statline or --disable-statline was given. | |
8172 | if test "${enable_statline+set}" = set; then | |
8173 | enableval="$enable_statline" | |
8174 | ||
8175 | if test "$enableval" = yes; then | |
8176 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8177 | else | |
8178 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8179 | fi | |
8180 | ||
8181 | else | |
8182 | ||
8183 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8184 | if test "x$LINE" != x ; then | |
8185 | eval "DEFAULT_$LINE" | |
8186 | else | |
8187 | no_cache=1 | |
8188 | fi | |
8189 | ||
8190 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8191 | ||
8192 | fi; | |
8193 | ||
8194 | eval "$ac_cv_use_statline" | |
8195 | if test "$no_cache" != 1; then | |
8196 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8197 | fi | |
8198 | ||
8199 | if test "$wxUSE_STATLINE" = yes; then | |
8200 | echo "$as_me:$LINENO: result: yes" >&5 | |
8201 | echo "${ECHO_T}yes" >&6 | |
8202 | else | |
8203 | echo "$as_me:$LINENO: result: no" >&5 | |
8204 | echo "${ECHO_T}no" >&6 | |
8205 | fi | |
8206 | ||
8207 | ||
8208 | enablestring= | |
8209 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8210 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8211 | no_cache=0 | |
8212 | # Check whether --enable-stattext or --disable-stattext was given. | |
8213 | if test "${enable_stattext+set}" = set; then | |
8214 | enableval="$enable_stattext" | |
8215 | ||
8216 | if test "$enableval" = yes; then | |
8217 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8218 | else | |
8219 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8220 | fi | |
8221 | ||
8222 | else | |
8223 | ||
8224 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8225 | if test "x$LINE" != x ; then | |
8226 | eval "DEFAULT_$LINE" | |
8227 | else | |
8228 | no_cache=1 | |
8229 | fi | |
8230 | ||
8231 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8232 | ||
8233 | fi; | |
8234 | ||
8235 | eval "$ac_cv_use_stattext" | |
8236 | if test "$no_cache" != 1; then | |
8237 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8238 | fi | |
8239 | ||
8240 | if test "$wxUSE_STATTEXT" = yes; then | |
8241 | echo "$as_me:$LINENO: result: yes" >&5 | |
8242 | echo "${ECHO_T}yes" >&6 | |
8243 | else | |
8244 | echo "$as_me:$LINENO: result: no" >&5 | |
8245 | echo "${ECHO_T}no" >&6 | |
8246 | fi | |
8247 | ||
8248 | ||
8249 | enablestring= | |
8250 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8251 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8252 | no_cache=0 | |
8253 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8254 | if test "${enable_statusbar+set}" = set; then | |
8255 | enableval="$enable_statusbar" | |
8256 | ||
8257 | if test "$enableval" = yes; then | |
8258 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8259 | else | |
8260 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8261 | fi | |
8262 | ||
8263 | else | |
8264 | ||
8265 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8266 | if test "x$LINE" != x ; then | |
8267 | eval "DEFAULT_$LINE" | |
8268 | else | |
8269 | no_cache=1 | |
8270 | fi | |
8271 | ||
8272 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8273 | ||
8274 | fi; | |
8275 | ||
8276 | eval "$ac_cv_use_statusbar" | |
8277 | if test "$no_cache" != 1; then | |
8278 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8279 | fi | |
8280 | ||
8281 | if test "$wxUSE_STATUSBAR" = yes; then | |
8282 | echo "$as_me:$LINENO: result: yes" >&5 | |
8283 | echo "${ECHO_T}yes" >&6 | |
8284 | else | |
8285 | echo "$as_me:$LINENO: result: no" >&5 | |
8286 | echo "${ECHO_T}no" >&6 | |
8287 | fi | |
8288 | ||
8289 | ||
8290 | enablestring= | |
8291 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8292 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8293 | no_cache=0 | |
8294 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8295 | if test "${enable_tabdialog+set}" = set; then | |
8296 | enableval="$enable_tabdialog" | |
8297 | ||
8298 | if test "$enableval" = yes; then | |
8299 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8300 | else | |
8301 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8302 | fi | |
8303 | ||
8304 | else | |
8305 | ||
8306 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8307 | if test "x$LINE" != x ; then | |
8308 | eval "DEFAULT_$LINE" | |
8309 | else | |
8310 | no_cache=1 | |
8311 | fi | |
8312 | ||
8313 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8314 | ||
8315 | fi; | |
8316 | ||
8317 | eval "$ac_cv_use_tabdialog" | |
8318 | if test "$no_cache" != 1; then | |
8319 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8320 | fi | |
8321 | ||
8322 | if test "$wxUSE_TABDIALOG" = yes; then | |
8323 | echo "$as_me:$LINENO: result: yes" >&5 | |
8324 | echo "${ECHO_T}yes" >&6 | |
8325 | else | |
8326 | echo "$as_me:$LINENO: result: no" >&5 | |
8327 | echo "${ECHO_T}no" >&6 | |
8328 | fi | |
8329 | ||
8330 | ||
8331 | enablestring= | |
8332 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8333 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8334 | no_cache=0 | |
8335 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8336 | if test "${enable_textctrl+set}" = set; then | |
8337 | enableval="$enable_textctrl" | |
8338 | ||
8339 | if test "$enableval" = yes; then | |
8340 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8341 | else | |
8342 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8343 | fi | |
8344 | ||
8345 | else | |
8346 | ||
8347 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8348 | if test "x$LINE" != x ; then | |
8349 | eval "DEFAULT_$LINE" | |
8350 | else | |
8351 | no_cache=1 | |
8352 | fi | |
8353 | ||
8354 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8355 | ||
8356 | fi; | |
8357 | ||
8358 | eval "$ac_cv_use_textctrl" | |
8359 | if test "$no_cache" != 1; then | |
8360 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8361 | fi | |
8362 | ||
8363 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8364 | echo "$as_me:$LINENO: result: yes" >&5 | |
8365 | echo "${ECHO_T}yes" >&6 | |
8366 | else | |
8367 | echo "$as_me:$LINENO: result: no" >&5 | |
8368 | echo "${ECHO_T}no" >&6 | |
8369 | fi | |
8370 | ||
8371 | ||
8372 | enablestring= | |
8373 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8374 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8375 | no_cache=0 | |
8376 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8377 | if test "${enable_togglebtn+set}" = set; then | |
8378 | enableval="$enable_togglebtn" | |
8379 | ||
8380 | if test "$enableval" = yes; then | |
8381 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8382 | else | |
8383 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8384 | fi | |
8385 | ||
8386 | else | |
8387 | ||
8388 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8389 | if test "x$LINE" != x ; then | |
8390 | eval "DEFAULT_$LINE" | |
8391 | else | |
8392 | no_cache=1 | |
8393 | fi | |
8394 | ||
8395 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8396 | ||
8397 | fi; | |
8398 | ||
8399 | eval "$ac_cv_use_togglebtn" | |
8400 | if test "$no_cache" != 1; then | |
8401 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8402 | fi | |
8403 | ||
8404 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8405 | echo "$as_me:$LINENO: result: yes" >&5 | |
8406 | echo "${ECHO_T}yes" >&6 | |
8407 | else | |
8408 | echo "$as_me:$LINENO: result: no" >&5 | |
8409 | echo "${ECHO_T}no" >&6 | |
8410 | fi | |
8411 | ||
8412 | ||
8413 | enablestring= | |
8414 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8415 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8416 | no_cache=0 | |
8417 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8418 | if test "${enable_toolbar+set}" = set; then | |
8419 | enableval="$enable_toolbar" | |
8420 | ||
8421 | if test "$enableval" = yes; then | |
8422 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8423 | else | |
8424 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8425 | fi | |
8426 | ||
8427 | else | |
8428 | ||
8429 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8430 | if test "x$LINE" != x ; then | |
8431 | eval "DEFAULT_$LINE" | |
8432 | else | |
8433 | no_cache=1 | |
8434 | fi | |
8435 | ||
8436 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8437 | ||
8438 | fi; | |
8439 | ||
8440 | eval "$ac_cv_use_toolbar" | |
8441 | if test "$no_cache" != 1; then | |
8442 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8443 | fi | |
8444 | ||
8445 | if test "$wxUSE_TOOLBAR" = yes; then | |
8446 | echo "$as_me:$LINENO: result: yes" >&5 | |
8447 | echo "${ECHO_T}yes" >&6 | |
8448 | else | |
8449 | echo "$as_me:$LINENO: result: no" >&5 | |
8450 | echo "${ECHO_T}no" >&6 | |
8451 | fi | |
8452 | ||
8453 | ||
8454 | enablestring= | |
8455 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8456 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8457 | no_cache=0 | |
8458 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8459 | if test "${enable_tbarnative+set}" = set; then | |
8460 | enableval="$enable_tbarnative" | |
8461 | ||
8462 | if test "$enableval" = yes; then | |
8463 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8464 | else | |
8465 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8466 | fi | |
8467 | ||
8468 | else | |
8469 | ||
8470 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8471 | if test "x$LINE" != x ; then | |
8472 | eval "DEFAULT_$LINE" | |
8473 | else | |
8474 | no_cache=1 | |
8475 | fi | |
8476 | ||
8477 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8478 | ||
8479 | fi; | |
8480 | ||
8481 | eval "$ac_cv_use_tbarnative" | |
8482 | if test "$no_cache" != 1; then | |
8483 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8484 | fi | |
8485 | ||
8486 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8487 | echo "$as_me:$LINENO: result: yes" >&5 | |
8488 | echo "${ECHO_T}yes" >&6 | |
8489 | else | |
8490 | echo "$as_me:$LINENO: result: no" >&5 | |
8491 | echo "${ECHO_T}no" >&6 | |
8492 | fi | |
8493 | ||
8494 | ||
8495 | enablestring= | |
8496 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8497 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8498 | no_cache=0 | |
8499 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8500 | if test "${enable_tbarsmpl+set}" = set; then | |
8501 | enableval="$enable_tbarsmpl" | |
8502 | ||
8503 | if test "$enableval" = yes; then | |
8504 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8505 | else | |
8506 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8507 | fi | |
8508 | ||
8509 | else | |
8510 | ||
8511 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8512 | if test "x$LINE" != x ; then | |
8513 | eval "DEFAULT_$LINE" | |
8514 | else | |
8515 | no_cache=1 | |
8516 | fi | |
8517 | ||
8518 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8519 | ||
8520 | fi; | |
8521 | ||
8522 | eval "$ac_cv_use_tbarsmpl" | |
8523 | if test "$no_cache" != 1; then | |
8524 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8525 | fi | |
8526 | ||
8527 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8528 | echo "$as_me:$LINENO: result: yes" >&5 | |
8529 | echo "${ECHO_T}yes" >&6 | |
8530 | else | |
8531 | echo "$as_me:$LINENO: result: no" >&5 | |
8532 | echo "${ECHO_T}no" >&6 | |
8533 | fi | |
8534 | ||
8535 | ||
8536 | enablestring= | |
8537 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8538 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8539 | no_cache=0 | |
8540 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8541 | if test "${enable_treectrl+set}" = set; then | |
8542 | enableval="$enable_treectrl" | |
8543 | ||
8544 | if test "$enableval" = yes; then | |
8545 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8546 | else | |
8547 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8548 | fi | |
8549 | ||
8550 | else | |
8551 | ||
8552 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8553 | if test "x$LINE" != x ; then | |
8554 | eval "DEFAULT_$LINE" | |
8555 | else | |
8556 | no_cache=1 | |
8557 | fi | |
8558 | ||
8559 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8560 | ||
8561 | fi; | |
8562 | ||
8563 | eval "$ac_cv_use_treectrl" | |
8564 | if test "$no_cache" != 1; then | |
8565 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8566 | fi | |
8567 | ||
8568 | if test "$wxUSE_TREECTRL" = yes; then | |
8569 | echo "$as_me:$LINENO: result: yes" >&5 | |
8570 | echo "${ECHO_T}yes" >&6 | |
8571 | else | |
8572 | echo "$as_me:$LINENO: result: no" >&5 | |
8573 | echo "${ECHO_T}no" >&6 | |
8574 | fi | |
8575 | ||
8576 | ||
8577 | enablestring= | |
8578 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8579 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8580 | no_cache=0 | |
8581 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8582 | if test "${enable_tipwindow+set}" = set; then | |
8583 | enableval="$enable_tipwindow" | |
8584 | ||
8585 | if test "$enableval" = yes; then | |
8586 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8587 | else | |
8588 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8589 | fi | |
8590 | ||
8591 | else | |
8592 | ||
8593 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8594 | if test "x$LINE" != x ; then | |
8595 | eval "DEFAULT_$LINE" | |
8596 | else | |
8597 | no_cache=1 | |
8598 | fi | |
8599 | ||
8600 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8601 | ||
8602 | fi; | |
8603 | ||
8604 | eval "$ac_cv_use_tipwindow" | |
8605 | if test "$no_cache" != 1; then | |
8606 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8607 | fi | |
8608 | ||
8609 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8610 | echo "$as_me:$LINENO: result: yes" >&5 | |
8611 | echo "${ECHO_T}yes" >&6 | |
8612 | else | |
8613 | echo "$as_me:$LINENO: result: no" >&5 | |
8614 | echo "${ECHO_T}no" >&6 | |
8615 | fi | |
8616 | ||
8617 | ||
8618 | enablestring= | |
8619 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8620 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8621 | no_cache=0 | |
8622 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8623 | if test "${enable_popupwin+set}" = set; then | |
8624 | enableval="$enable_popupwin" | |
8625 | ||
8626 | if test "$enableval" = yes; then | |
8627 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8628 | else | |
8629 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8630 | fi | |
8631 | ||
8632 | else | |
8633 | ||
8634 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8635 | if test "x$LINE" != x ; then | |
8636 | eval "DEFAULT_$LINE" | |
8637 | else | |
8638 | no_cache=1 | |
8639 | fi | |
8640 | ||
8641 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8642 | ||
8643 | fi; | |
8644 | ||
8645 | eval "$ac_cv_use_popupwin" | |
8646 | if test "$no_cache" != 1; then | |
8647 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8648 | fi | |
8649 | ||
8650 | if test "$wxUSE_POPUPWIN" = yes; then | |
8651 | echo "$as_me:$LINENO: result: yes" >&5 | |
8652 | echo "${ECHO_T}yes" >&6 | |
8653 | else | |
8654 | echo "$as_me:$LINENO: result: no" >&5 | |
8655 | echo "${ECHO_T}no" >&6 | |
8656 | fi | |
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | enablestring= | |
8662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8663 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8664 | no_cache=0 | |
8665 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8666 | if test "${enable_commondlg+set}" = set; then | |
8667 | enableval="$enable_commondlg" | |
8668 | ||
8669 | if test "$enableval" = yes; then | |
8670 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8671 | else | |
8672 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8673 | fi | |
8674 | ||
8675 | else | |
8676 | ||
8677 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8678 | if test "x$LINE" != x ; then | |
8679 | eval "DEFAULT_$LINE" | |
8680 | else | |
8681 | no_cache=1 | |
8682 | fi | |
8683 | ||
8684 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8685 | ||
8686 | fi; | |
8687 | ||
8688 | eval "$ac_cv_use_commondlg" | |
8689 | if test "$no_cache" != 1; then | |
8690 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8691 | fi | |
8692 | ||
8693 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8694 | echo "$as_me:$LINENO: result: yes" >&5 | |
8695 | echo "${ECHO_T}yes" >&6 | |
8696 | else | |
8697 | echo "$as_me:$LINENO: result: no" >&5 | |
8698 | echo "${ECHO_T}no" >&6 | |
8699 | fi | |
8700 | ||
8701 | ||
8702 | enablestring= | |
8703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8704 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8705 | no_cache=0 | |
8706 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8707 | if test "${enable_choicedlg+set}" = set; then | |
8708 | enableval="$enable_choicedlg" | |
8709 | ||
8710 | if test "$enableval" = yes; then | |
8711 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8712 | else | |
8713 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8714 | fi | |
8715 | ||
8716 | else | |
8717 | ||
8718 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8719 | if test "x$LINE" != x ; then | |
8720 | eval "DEFAULT_$LINE" | |
8721 | else | |
8722 | no_cache=1 | |
8723 | fi | |
8724 | ||
8725 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8726 | ||
8727 | fi; | |
8728 | ||
8729 | eval "$ac_cv_use_choicedlg" | |
8730 | if test "$no_cache" != 1; then | |
8731 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8732 | fi | |
8733 | ||
8734 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8735 | echo "$as_me:$LINENO: result: yes" >&5 | |
8736 | echo "${ECHO_T}yes" >&6 | |
8737 | else | |
8738 | echo "$as_me:$LINENO: result: no" >&5 | |
8739 | echo "${ECHO_T}no" >&6 | |
8740 | fi | |
8741 | ||
8742 | ||
8743 | enablestring= | |
8744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8745 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8746 | no_cache=0 | |
8747 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8748 | if test "${enable_coldlg+set}" = set; then | |
8749 | enableval="$enable_coldlg" | |
8750 | ||
8751 | if test "$enableval" = yes; then | |
8752 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8753 | else | |
8754 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8755 | fi | |
8756 | ||
8757 | else | |
8758 | ||
8759 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8760 | if test "x$LINE" != x ; then | |
8761 | eval "DEFAULT_$LINE" | |
8762 | else | |
8763 | no_cache=1 | |
8764 | fi | |
8765 | ||
8766 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8767 | ||
8768 | fi; | |
8769 | ||
8770 | eval "$ac_cv_use_coldlg" | |
8771 | if test "$no_cache" != 1; then | |
8772 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8773 | fi | |
8774 | ||
8775 | if test "$wxUSE_COLOURDLG" = yes; then | |
8776 | echo "$as_me:$LINENO: result: yes" >&5 | |
8777 | echo "${ECHO_T}yes" >&6 | |
8778 | else | |
8779 | echo "$as_me:$LINENO: result: no" >&5 | |
8780 | echo "${ECHO_T}no" >&6 | |
8781 | fi | |
8782 | ||
8783 | ||
8784 | enablestring= | |
8785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8786 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8787 | no_cache=0 | |
8788 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8789 | if test "${enable_filedlg+set}" = set; then | |
8790 | enableval="$enable_filedlg" | |
8791 | ||
8792 | if test "$enableval" = yes; then | |
8793 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8794 | else | |
8795 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8796 | fi | |
8797 | ||
8798 | else | |
8799 | ||
8800 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8801 | if test "x$LINE" != x ; then | |
8802 | eval "DEFAULT_$LINE" | |
8803 | else | |
8804 | no_cache=1 | |
8805 | fi | |
8806 | ||
8807 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8808 | ||
8809 | fi; | |
8810 | ||
8811 | eval "$ac_cv_use_filedlg" | |
8812 | if test "$no_cache" != 1; then | |
8813 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8814 | fi | |
8815 | ||
8816 | if test "$wxUSE_FILEDLG" = yes; then | |
8817 | echo "$as_me:$LINENO: result: yes" >&5 | |
8818 | echo "${ECHO_T}yes" >&6 | |
8819 | else | |
8820 | echo "$as_me:$LINENO: result: no" >&5 | |
8821 | echo "${ECHO_T}no" >&6 | |
8822 | fi | |
8823 | ||
8824 | ||
8825 | enablestring= | |
8826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8827 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8828 | no_cache=0 | |
8829 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8830 | if test "${enable_finddlg+set}" = set; then | |
8831 | enableval="$enable_finddlg" | |
8832 | ||
8833 | if test "$enableval" = yes; then | |
8834 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8835 | else | |
8836 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8837 | fi | |
8838 | ||
8839 | else | |
8840 | ||
8841 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8842 | if test "x$LINE" != x ; then | |
8843 | eval "DEFAULT_$LINE" | |
8844 | else | |
8845 | no_cache=1 | |
8846 | fi | |
8847 | ||
8848 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8849 | ||
8850 | fi; | |
8851 | ||
8852 | eval "$ac_cv_use_finddlg" | |
8853 | if test "$no_cache" != 1; then | |
8854 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8855 | fi | |
8856 | ||
8857 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8858 | echo "$as_me:$LINENO: result: yes" >&5 | |
8859 | echo "${ECHO_T}yes" >&6 | |
8860 | else | |
8861 | echo "$as_me:$LINENO: result: no" >&5 | |
8862 | echo "${ECHO_T}no" >&6 | |
8863 | fi | |
8864 | ||
8865 | ||
8866 | enablestring= | |
8867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8868 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8869 | no_cache=0 | |
8870 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8871 | if test "${enable_fontdlg+set}" = set; then | |
8872 | enableval="$enable_fontdlg" | |
8873 | ||
8874 | if test "$enableval" = yes; then | |
8875 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8876 | else | |
8877 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8878 | fi | |
8879 | ||
8880 | else | |
8881 | ||
8882 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8883 | if test "x$LINE" != x ; then | |
8884 | eval "DEFAULT_$LINE" | |
8885 | else | |
8886 | no_cache=1 | |
8887 | fi | |
8888 | ||
8889 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8890 | ||
8891 | fi; | |
8892 | ||
8893 | eval "$ac_cv_use_fontdlg" | |
8894 | if test "$no_cache" != 1; then | |
8895 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8896 | fi | |
8897 | ||
8898 | if test "$wxUSE_FONTDLG" = yes; then | |
8899 | echo "$as_me:$LINENO: result: yes" >&5 | |
8900 | echo "${ECHO_T}yes" >&6 | |
8901 | else | |
8902 | echo "$as_me:$LINENO: result: no" >&5 | |
8903 | echo "${ECHO_T}no" >&6 | |
8904 | fi | |
8905 | ||
8906 | ||
8907 | enablestring= | |
8908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8909 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8910 | no_cache=0 | |
8911 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8912 | if test "${enable_dirdlg+set}" = set; then | |
8913 | enableval="$enable_dirdlg" | |
8914 | ||
8915 | if test "$enableval" = yes; then | |
8916 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8917 | else | |
8918 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8919 | fi | |
8920 | ||
8921 | else | |
8922 | ||
8923 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8924 | if test "x$LINE" != x ; then | |
8925 | eval "DEFAULT_$LINE" | |
8926 | else | |
8927 | no_cache=1 | |
8928 | fi | |
8929 | ||
8930 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8931 | ||
8932 | fi; | |
8933 | ||
8934 | eval "$ac_cv_use_dirdlg" | |
8935 | if test "$no_cache" != 1; then | |
8936 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8937 | fi | |
8938 | ||
8939 | if test "$wxUSE_DIRDLG" = yes; then | |
8940 | echo "$as_me:$LINENO: result: yes" >&5 | |
8941 | echo "${ECHO_T}yes" >&6 | |
8942 | else | |
8943 | echo "$as_me:$LINENO: result: no" >&5 | |
8944 | echo "${ECHO_T}no" >&6 | |
8945 | fi | |
8946 | ||
8947 | ||
8948 | enablestring= | |
8949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8950 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8951 | no_cache=0 | |
8952 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8953 | if test "${enable_msgdlg+set}" = set; then | |
8954 | enableval="$enable_msgdlg" | |
8955 | ||
8956 | if test "$enableval" = yes; then | |
8957 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8958 | else | |
8959 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8960 | fi | |
8961 | ||
8962 | else | |
8963 | ||
8964 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8965 | if test "x$LINE" != x ; then | |
8966 | eval "DEFAULT_$LINE" | |
8967 | else | |
8968 | no_cache=1 | |
8969 | fi | |
8970 | ||
8971 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8972 | ||
8973 | fi; | |
8974 | ||
8975 | eval "$ac_cv_use_msgdlg" | |
8976 | if test "$no_cache" != 1; then | |
8977 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8978 | fi | |
8979 | ||
8980 | if test "$wxUSE_MSGDLG" = yes; then | |
8981 | echo "$as_me:$LINENO: result: yes" >&5 | |
8982 | echo "${ECHO_T}yes" >&6 | |
8983 | else | |
8984 | echo "$as_me:$LINENO: result: no" >&5 | |
8985 | echo "${ECHO_T}no" >&6 | |
8986 | fi | |
8987 | ||
8988 | ||
8989 | enablestring= | |
8990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8991 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8992 | no_cache=0 | |
8993 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8994 | if test "${enable_numberdlg+set}" = set; then | |
8995 | enableval="$enable_numberdlg" | |
8996 | ||
8997 | if test "$enableval" = yes; then | |
8998 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8999 | else | |
9000 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9001 | fi | |
9002 | ||
9003 | else | |
9004 | ||
9005 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9006 | if test "x$LINE" != x ; then | |
9007 | eval "DEFAULT_$LINE" | |
9008 | else | |
9009 | no_cache=1 | |
9010 | fi | |
9011 | ||
9012 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9013 | ||
9014 | fi; | |
9015 | ||
9016 | eval "$ac_cv_use_numberdlg" | |
9017 | if test "$no_cache" != 1; then | |
9018 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9019 | fi | |
9020 | ||
9021 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9022 | echo "$as_me:$LINENO: result: yes" >&5 | |
9023 | echo "${ECHO_T}yes" >&6 | |
9024 | else | |
9025 | echo "$as_me:$LINENO: result: no" >&5 | |
9026 | echo "${ECHO_T}no" >&6 | |
9027 | fi | |
9028 | ||
9029 | ||
9030 | enablestring= | |
9031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9032 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9033 | no_cache=0 | |
9034 | # Check whether --enable-splash or --disable-splash was given. | |
9035 | if test "${enable_splash+set}" = set; then | |
9036 | enableval="$enable_splash" | |
9037 | ||
9038 | if test "$enableval" = yes; then | |
9039 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9040 | else | |
9041 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9042 | fi | |
9043 | ||
9044 | else | |
9045 | ||
9046 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9047 | if test "x$LINE" != x ; then | |
9048 | eval "DEFAULT_$LINE" | |
9049 | else | |
9050 | no_cache=1 | |
9051 | fi | |
9052 | ||
9053 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9054 | ||
9055 | fi; | |
9056 | ||
9057 | eval "$ac_cv_use_splash" | |
9058 | if test "$no_cache" != 1; then | |
9059 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9060 | fi | |
9061 | ||
9062 | if test "$wxUSE_SPLASH" = yes; then | |
9063 | echo "$as_me:$LINENO: result: yes" >&5 | |
9064 | echo "${ECHO_T}yes" >&6 | |
9065 | else | |
9066 | echo "$as_me:$LINENO: result: no" >&5 | |
9067 | echo "${ECHO_T}no" >&6 | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | enablestring= | |
9072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9073 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9074 | no_cache=0 | |
9075 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9076 | if test "${enable_textdlg+set}" = set; then | |
9077 | enableval="$enable_textdlg" | |
9078 | ||
9079 | if test "$enableval" = yes; then | |
9080 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9081 | else | |
9082 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9083 | fi | |
9084 | ||
9085 | else | |
9086 | ||
9087 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9088 | if test "x$LINE" != x ; then | |
9089 | eval "DEFAULT_$LINE" | |
9090 | else | |
9091 | no_cache=1 | |
9092 | fi | |
9093 | ||
9094 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9095 | ||
9096 | fi; | |
9097 | ||
9098 | eval "$ac_cv_use_textdlg" | |
9099 | if test "$no_cache" != 1; then | |
9100 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9101 | fi | |
9102 | ||
9103 | if test "$wxUSE_TEXTDLG" = yes; then | |
9104 | echo "$as_me:$LINENO: result: yes" >&5 | |
9105 | echo "${ECHO_T}yes" >&6 | |
9106 | else | |
9107 | echo "$as_me:$LINENO: result: no" >&5 | |
9108 | echo "${ECHO_T}no" >&6 | |
9109 | fi | |
9110 | ||
9111 | ||
9112 | enablestring= | |
9113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9114 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9115 | no_cache=0 | |
9116 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9117 | if test "${enable_tipdlg+set}" = set; then | |
9118 | enableval="$enable_tipdlg" | |
9119 | ||
9120 | if test "$enableval" = yes; then | |
9121 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9122 | else | |
9123 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9124 | fi | |
9125 | ||
9126 | else | |
9127 | ||
9128 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9129 | if test "x$LINE" != x ; then | |
9130 | eval "DEFAULT_$LINE" | |
9131 | else | |
9132 | no_cache=1 | |
9133 | fi | |
9134 | ||
9135 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9136 | ||
9137 | fi; | |
9138 | ||
9139 | eval "$ac_cv_use_tipdlg" | |
9140 | if test "$no_cache" != 1; then | |
9141 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9142 | fi | |
9143 | ||
9144 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9145 | echo "$as_me:$LINENO: result: yes" >&5 | |
9146 | echo "${ECHO_T}yes" >&6 | |
9147 | else | |
9148 | echo "$as_me:$LINENO: result: no" >&5 | |
9149 | echo "${ECHO_T}no" >&6 | |
9150 | fi | |
9151 | ||
9152 | ||
9153 | enablestring= | |
9154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9155 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9156 | no_cache=0 | |
9157 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9158 | if test "${enable_progressdlg+set}" = set; then | |
9159 | enableval="$enable_progressdlg" | |
9160 | ||
9161 | if test "$enableval" = yes; then | |
9162 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9163 | else | |
9164 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9165 | fi | |
9166 | ||
9167 | else | |
9168 | ||
9169 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9170 | if test "x$LINE" != x ; then | |
9171 | eval "DEFAULT_$LINE" | |
9172 | else | |
9173 | no_cache=1 | |
9174 | fi | |
9175 | ||
9176 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9177 | ||
9178 | fi; | |
9179 | ||
9180 | eval "$ac_cv_use_progressdlg" | |
9181 | if test "$no_cache" != 1; then | |
9182 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9183 | fi | |
9184 | ||
9185 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9186 | echo "$as_me:$LINENO: result: yes" >&5 | |
9187 | echo "${ECHO_T}yes" >&6 | |
9188 | else | |
9189 | echo "$as_me:$LINENO: result: no" >&5 | |
9190 | echo "${ECHO_T}no" >&6 | |
9191 | fi | |
9192 | ||
9193 | ||
9194 | enablestring= | |
9195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9196 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9197 | no_cache=0 | |
9198 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9199 | if test "${enable_wizarddlg+set}" = set; then | |
9200 | enableval="$enable_wizarddlg" | |
9201 | ||
9202 | if test "$enableval" = yes; then | |
9203 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9204 | else | |
9205 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9206 | fi | |
9207 | ||
9208 | else | |
9209 | ||
9210 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9211 | if test "x$LINE" != x ; then | |
9212 | eval "DEFAULT_$LINE" | |
9213 | else | |
9214 | no_cache=1 | |
9215 | fi | |
9216 | ||
9217 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9218 | ||
9219 | fi; | |
9220 | ||
9221 | eval "$ac_cv_use_wizarddlg" | |
9222 | if test "$no_cache" != 1; then | |
9223 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9224 | fi | |
9225 | ||
9226 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9227 | echo "$as_me:$LINENO: result: yes" >&5 | |
9228 | echo "${ECHO_T}yes" >&6 | |
9229 | else | |
9230 | echo "$as_me:$LINENO: result: no" >&5 | |
9231 | echo "${ECHO_T}no" >&6 | |
9232 | fi | |
9233 | ||
9234 | ||
9235 | ||
9236 | ||
9237 | enablestring= | |
9238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9239 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9240 | no_cache=0 | |
9241 | # Check whether --enable-menus or --disable-menus was given. | |
9242 | if test "${enable_menus+set}" = set; then | |
9243 | enableval="$enable_menus" | |
9244 | ||
9245 | if test "$enableval" = yes; then | |
9246 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9247 | else | |
9248 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9249 | fi | |
9250 | ||
9251 | else | |
9252 | ||
9253 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9254 | if test "x$LINE" != x ; then | |
9255 | eval "DEFAULT_$LINE" | |
9256 | else | |
9257 | no_cache=1 | |
9258 | fi | |
9259 | ||
9260 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9261 | ||
9262 | fi; | |
9263 | ||
9264 | eval "$ac_cv_use_menus" | |
9265 | if test "$no_cache" != 1; then | |
9266 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9267 | fi | |
9268 | ||
9269 | if test "$wxUSE_MENUS" = yes; then | |
9270 | echo "$as_me:$LINENO: result: yes" >&5 | |
9271 | echo "${ECHO_T}yes" >&6 | |
9272 | else | |
9273 | echo "$as_me:$LINENO: result: no" >&5 | |
9274 | echo "${ECHO_T}no" >&6 | |
9275 | fi | |
9276 | ||
9277 | ||
9278 | enablestring= | |
9279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9280 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9281 | no_cache=0 | |
9282 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9283 | if test "${enable_miniframe+set}" = set; then | |
9284 | enableval="$enable_miniframe" | |
9285 | ||
9286 | if test "$enableval" = yes; then | |
9287 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9288 | else | |
9289 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9290 | fi | |
9291 | ||
9292 | else | |
9293 | ||
9294 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9295 | if test "x$LINE" != x ; then | |
9296 | eval "DEFAULT_$LINE" | |
9297 | else | |
9298 | no_cache=1 | |
9299 | fi | |
9300 | ||
9301 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9302 | ||
9303 | fi; | |
9304 | ||
9305 | eval "$ac_cv_use_miniframe" | |
9306 | if test "$no_cache" != 1; then | |
9307 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9308 | fi | |
9309 | ||
9310 | if test "$wxUSE_MINIFRAME" = yes; then | |
9311 | echo "$as_me:$LINENO: result: yes" >&5 | |
9312 | echo "${ECHO_T}yes" >&6 | |
9313 | else | |
9314 | echo "$as_me:$LINENO: result: no" >&5 | |
9315 | echo "${ECHO_T}no" >&6 | |
9316 | fi | |
9317 | ||
9318 | ||
9319 | enablestring= | |
9320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9321 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9322 | no_cache=0 | |
9323 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9324 | if test "${enable_tooltips+set}" = set; then | |
9325 | enableval="$enable_tooltips" | |
9326 | ||
9327 | if test "$enableval" = yes; then | |
9328 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9329 | else | |
9330 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9331 | fi | |
9332 | ||
9333 | else | |
9334 | ||
9335 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9336 | if test "x$LINE" != x ; then | |
9337 | eval "DEFAULT_$LINE" | |
9338 | else | |
9339 | no_cache=1 | |
9340 | fi | |
9341 | ||
9342 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9343 | ||
9344 | fi; | |
9345 | ||
9346 | eval "$ac_cv_use_tooltips" | |
9347 | if test "$no_cache" != 1; then | |
9348 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9349 | fi | |
9350 | ||
9351 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9352 | echo "$as_me:$LINENO: result: yes" >&5 | |
9353 | echo "${ECHO_T}yes" >&6 | |
9354 | else | |
9355 | echo "$as_me:$LINENO: result: no" >&5 | |
9356 | echo "${ECHO_T}no" >&6 | |
9357 | fi | |
9358 | ||
9359 | ||
9360 | enablestring= | |
9361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9362 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9363 | no_cache=0 | |
9364 | # Check whether --enable-splines or --disable-splines was given. | |
9365 | if test "${enable_splines+set}" = set; then | |
9366 | enableval="$enable_splines" | |
9367 | ||
9368 | if test "$enableval" = yes; then | |
9369 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9370 | else | |
9371 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9372 | fi | |
9373 | ||
9374 | else | |
9375 | ||
9376 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9377 | if test "x$LINE" != x ; then | |
9378 | eval "DEFAULT_$LINE" | |
9379 | else | |
9380 | no_cache=1 | |
9381 | fi | |
9382 | ||
9383 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9384 | ||
9385 | fi; | |
9386 | ||
9387 | eval "$ac_cv_use_splines" | |
9388 | if test "$no_cache" != 1; then | |
9389 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9390 | fi | |
9391 | ||
9392 | if test "$wxUSE_SPLINES" = yes; then | |
9393 | echo "$as_me:$LINENO: result: yes" >&5 | |
9394 | echo "${ECHO_T}yes" >&6 | |
9395 | else | |
9396 | echo "$as_me:$LINENO: result: no" >&5 | |
9397 | echo "${ECHO_T}no" >&6 | |
9398 | fi | |
9399 | ||
9400 | ||
9401 | enablestring= | |
9402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9403 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9404 | no_cache=0 | |
9405 | # Check whether --enable-validators or --disable-validators was given. | |
9406 | if test "${enable_validators+set}" = set; then | |
9407 | enableval="$enable_validators" | |
9408 | ||
9409 | if test "$enableval" = yes; then | |
9410 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9411 | else | |
9412 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9413 | fi | |
9414 | ||
9415 | else | |
9416 | ||
9417 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9418 | if test "x$LINE" != x ; then | |
9419 | eval "DEFAULT_$LINE" | |
9420 | else | |
9421 | no_cache=1 | |
9422 | fi | |
9423 | ||
9424 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9425 | ||
9426 | fi; | |
9427 | ||
9428 | eval "$ac_cv_use_validators" | |
9429 | if test "$no_cache" != 1; then | |
9430 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9431 | fi | |
9432 | ||
9433 | if test "$wxUSE_VALIDATORS" = yes; then | |
9434 | echo "$as_me:$LINENO: result: yes" >&5 | |
9435 | echo "${ECHO_T}yes" >&6 | |
9436 | else | |
9437 | echo "$as_me:$LINENO: result: no" >&5 | |
9438 | echo "${ECHO_T}no" >&6 | |
9439 | fi | |
9440 | ||
9441 | ||
9442 | enablestring= | |
9443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9444 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9445 | no_cache=0 | |
9446 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9447 | if test "${enable_busyinfo+set}" = set; then | |
9448 | enableval="$enable_busyinfo" | |
9449 | ||
9450 | if test "$enableval" = yes; then | |
9451 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9452 | else | |
9453 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9454 | fi | |
9455 | ||
9456 | else | |
9457 | ||
9458 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9459 | if test "x$LINE" != x ; then | |
9460 | eval "DEFAULT_$LINE" | |
9461 | else | |
9462 | no_cache=1 | |
9463 | fi | |
9464 | ||
9465 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9466 | ||
9467 | fi; | |
9468 | ||
9469 | eval "$ac_cv_use_busyinfo" | |
9470 | if test "$no_cache" != 1; then | |
9471 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9472 | fi | |
9473 | ||
9474 | if test "$wxUSE_BUSYINFO" = yes; then | |
9475 | echo "$as_me:$LINENO: result: yes" >&5 | |
9476 | echo "${ECHO_T}yes" >&6 | |
9477 | else | |
9478 | echo "$as_me:$LINENO: result: no" >&5 | |
9479 | echo "${ECHO_T}no" >&6 | |
9480 | fi | |
9481 | ||
9482 | ||
9483 | enablestring= | |
9484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9485 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9486 | no_cache=0 | |
9487 | # Check whether --enable-joystick or --disable-joystick was given. | |
9488 | if test "${enable_joystick+set}" = set; then | |
9489 | enableval="$enable_joystick" | |
9490 | ||
9491 | if test "$enableval" = yes; then | |
9492 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9493 | else | |
9494 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9495 | fi | |
9496 | ||
9497 | else | |
9498 | ||
9499 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9500 | if test "x$LINE" != x ; then | |
9501 | eval "DEFAULT_$LINE" | |
9502 | else | |
9503 | no_cache=1 | |
9504 | fi | |
9505 | ||
9506 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9507 | ||
9508 | fi; | |
9509 | ||
9510 | eval "$ac_cv_use_joystick" | |
9511 | if test "$no_cache" != 1; then | |
9512 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9513 | fi | |
9514 | ||
9515 | if test "$wxUSE_JOYSTICK" = yes; then | |
9516 | echo "$as_me:$LINENO: result: yes" >&5 | |
9517 | echo "${ECHO_T}yes" >&6 | |
9518 | else | |
9519 | echo "$as_me:$LINENO: result: no" >&5 | |
9520 | echo "${ECHO_T}no" >&6 | |
9521 | fi | |
9522 | ||
9523 | ||
9524 | enablestring= | |
9525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9526 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9527 | no_cache=0 | |
9528 | # Check whether --enable-metafile or --disable-metafile was given. | |
9529 | if test "${enable_metafile+set}" = set; then | |
9530 | enableval="$enable_metafile" | |
9531 | ||
9532 | if test "$enableval" = yes; then | |
9533 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9534 | else | |
9535 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9536 | fi | |
9537 | ||
9538 | else | |
9539 | ||
9540 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9541 | if test "x$LINE" != x ; then | |
9542 | eval "DEFAULT_$LINE" | |
9543 | else | |
9544 | no_cache=1 | |
9545 | fi | |
9546 | ||
9547 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9548 | ||
9549 | fi; | |
9550 | ||
9551 | eval "$ac_cv_use_metafile" | |
9552 | if test "$no_cache" != 1; then | |
9553 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9554 | fi | |
9555 | ||
9556 | if test "$wxUSE_METAFILE" = yes; then | |
9557 | echo "$as_me:$LINENO: result: yes" >&5 | |
9558 | echo "${ECHO_T}yes" >&6 | |
9559 | else | |
9560 | echo "$as_me:$LINENO: result: no" >&5 | |
9561 | echo "${ECHO_T}no" >&6 | |
9562 | fi | |
9563 | ||
9564 | ||
9565 | enablestring= | |
9566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9567 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9568 | no_cache=0 | |
9569 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9570 | if test "${enable_dragimage+set}" = set; then | |
9571 | enableval="$enable_dragimage" | |
9572 | ||
9573 | if test "$enableval" = yes; then | |
9574 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9575 | else | |
9576 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9577 | fi | |
9578 | ||
9579 | else | |
9580 | ||
9581 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9582 | if test "x$LINE" != x ; then | |
9583 | eval "DEFAULT_$LINE" | |
9584 | else | |
9585 | no_cache=1 | |
9586 | fi | |
9587 | ||
9588 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9589 | ||
9590 | fi; | |
9591 | ||
9592 | eval "$ac_cv_use_dragimage" | |
9593 | if test "$no_cache" != 1; then | |
9594 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9595 | fi | |
9596 | ||
9597 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9598 | echo "$as_me:$LINENO: result: yes" >&5 | |
9599 | echo "${ECHO_T}yes" >&6 | |
9600 | else | |
9601 | echo "$as_me:$LINENO: result: no" >&5 | |
9602 | echo "${ECHO_T}no" >&6 | |
9603 | fi | |
9604 | ||
9605 | ||
9606 | enablestring= | |
9607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9608 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9609 | no_cache=0 | |
9610 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9611 | if test "${enable_accessibility+set}" = set; then | |
9612 | enableval="$enable_accessibility" | |
9613 | ||
9614 | if test "$enableval" = yes; then | |
9615 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9616 | else | |
9617 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9618 | fi | |
9619 | ||
9620 | else | |
9621 | ||
9622 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9623 | if test "x$LINE" != x ; then | |
9624 | eval "DEFAULT_$LINE" | |
9625 | else | |
9626 | no_cache=1 | |
9627 | fi | |
9628 | ||
9629 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9630 | ||
9631 | fi; | |
9632 | ||
9633 | eval "$ac_cv_use_accessibility" | |
9634 | if test "$no_cache" != 1; then | |
9635 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9636 | fi | |
9637 | ||
9638 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9639 | echo "$as_me:$LINENO: result: yes" >&5 | |
9640 | echo "${ECHO_T}yes" >&6 | |
9641 | else | |
9642 | echo "$as_me:$LINENO: result: no" >&5 | |
9643 | echo "${ECHO_T}no" >&6 | |
9644 | fi | |
9645 | ||
9646 | ||
9647 | ||
9648 | ||
9649 | enablestring= | |
9650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9651 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9652 | no_cache=0 | |
9653 | # Check whether --enable-palette or --disable-palette was given. | |
9654 | if test "${enable_palette+set}" = set; then | |
9655 | enableval="$enable_palette" | |
9656 | ||
9657 | if test "$enableval" = yes; then | |
9658 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9659 | else | |
9660 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9661 | fi | |
9662 | ||
9663 | else | |
9664 | ||
9665 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9666 | if test "x$LINE" != x ; then | |
9667 | eval "DEFAULT_$LINE" | |
9668 | else | |
9669 | no_cache=1 | |
9670 | fi | |
9671 | ||
9672 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9673 | ||
9674 | fi; | |
9675 | ||
9676 | eval "$ac_cv_use_palette" | |
9677 | if test "$no_cache" != 1; then | |
9678 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9679 | fi | |
9680 | ||
9681 | if test "$wxUSE_PALETTE" = yes; then | |
9682 | echo "$as_me:$LINENO: result: yes" >&5 | |
9683 | echo "${ECHO_T}yes" >&6 | |
9684 | else | |
9685 | echo "$as_me:$LINENO: result: no" >&5 | |
9686 | echo "${ECHO_T}no" >&6 | |
9687 | fi | |
9688 | ||
9689 | ||
9690 | enablestring= | |
9691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9692 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9693 | no_cache=0 | |
9694 | # Check whether --enable-image or --disable-image was given. | |
9695 | if test "${enable_image+set}" = set; then | |
9696 | enableval="$enable_image" | |
9697 | ||
9698 | if test "$enableval" = yes; then | |
9699 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9700 | else | |
9701 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9702 | fi | |
9703 | ||
9704 | else | |
9705 | ||
9706 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9707 | if test "x$LINE" != x ; then | |
9708 | eval "DEFAULT_$LINE" | |
9709 | else | |
9710 | no_cache=1 | |
9711 | fi | |
9712 | ||
9713 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9714 | ||
9715 | fi; | |
9716 | ||
9717 | eval "$ac_cv_use_image" | |
9718 | if test "$no_cache" != 1; then | |
9719 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9720 | fi | |
9721 | ||
9722 | if test "$wxUSE_IMAGE" = yes; then | |
9723 | echo "$as_me:$LINENO: result: yes" >&5 | |
9724 | echo "${ECHO_T}yes" >&6 | |
9725 | else | |
9726 | echo "$as_me:$LINENO: result: no" >&5 | |
9727 | echo "${ECHO_T}no" >&6 | |
9728 | fi | |
9729 | ||
9730 | ||
9731 | enablestring= | |
9732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9733 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9734 | no_cache=0 | |
9735 | # Check whether --enable-gif or --disable-gif was given. | |
9736 | if test "${enable_gif+set}" = set; then | |
9737 | enableval="$enable_gif" | |
9738 | ||
9739 | if test "$enableval" = yes; then | |
9740 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9741 | else | |
9742 | ac_cv_use_gif='wxUSE_GIF=no' | |
9743 | fi | |
9744 | ||
9745 | else | |
9746 | ||
9747 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9748 | if test "x$LINE" != x ; then | |
9749 | eval "DEFAULT_$LINE" | |
9750 | else | |
9751 | no_cache=1 | |
9752 | fi | |
9753 | ||
9754 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9755 | ||
9756 | fi; | |
9757 | ||
9758 | eval "$ac_cv_use_gif" | |
9759 | if test "$no_cache" != 1; then | |
9760 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9761 | fi | |
9762 | ||
9763 | if test "$wxUSE_GIF" = yes; then | |
9764 | echo "$as_me:$LINENO: result: yes" >&5 | |
9765 | echo "${ECHO_T}yes" >&6 | |
9766 | else | |
9767 | echo "$as_me:$LINENO: result: no" >&5 | |
9768 | echo "${ECHO_T}no" >&6 | |
9769 | fi | |
9770 | ||
9771 | ||
9772 | enablestring= | |
9773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9774 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9775 | no_cache=0 | |
9776 | # Check whether --enable-pcx or --disable-pcx was given. | |
9777 | if test "${enable_pcx+set}" = set; then | |
9778 | enableval="$enable_pcx" | |
9779 | ||
9780 | if test "$enableval" = yes; then | |
9781 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9782 | else | |
9783 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9784 | fi | |
9785 | ||
9786 | else | |
9787 | ||
9788 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9789 | if test "x$LINE" != x ; then | |
9790 | eval "DEFAULT_$LINE" | |
9791 | else | |
9792 | no_cache=1 | |
9793 | fi | |
9794 | ||
9795 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9796 | ||
9797 | fi; | |
9798 | ||
9799 | eval "$ac_cv_use_pcx" | |
9800 | if test "$no_cache" != 1; then | |
9801 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9802 | fi | |
9803 | ||
9804 | if test "$wxUSE_PCX" = yes; then | |
9805 | echo "$as_me:$LINENO: result: yes" >&5 | |
9806 | echo "${ECHO_T}yes" >&6 | |
9807 | else | |
9808 | echo "$as_me:$LINENO: result: no" >&5 | |
9809 | echo "${ECHO_T}no" >&6 | |
9810 | fi | |
9811 | ||
9812 | ||
9813 | enablestring= | |
9814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9815 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9816 | no_cache=0 | |
9817 | # Check whether --enable-iff or --disable-iff was given. | |
9818 | if test "${enable_iff+set}" = set; then | |
9819 | enableval="$enable_iff" | |
9820 | ||
9821 | if test "$enableval" = yes; then | |
9822 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9823 | else | |
9824 | ac_cv_use_iff='wxUSE_IFF=no' | |
9825 | fi | |
9826 | ||
9827 | else | |
9828 | ||
9829 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9830 | if test "x$LINE" != x ; then | |
9831 | eval "DEFAULT_$LINE" | |
9832 | else | |
9833 | no_cache=1 | |
9834 | fi | |
9835 | ||
9836 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9837 | ||
9838 | fi; | |
9839 | ||
9840 | eval "$ac_cv_use_iff" | |
9841 | if test "$no_cache" != 1; then | |
9842 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9843 | fi | |
9844 | ||
9845 | if test "$wxUSE_IFF" = yes; then | |
9846 | echo "$as_me:$LINENO: result: yes" >&5 | |
9847 | echo "${ECHO_T}yes" >&6 | |
9848 | else | |
9849 | echo "$as_me:$LINENO: result: no" >&5 | |
9850 | echo "${ECHO_T}no" >&6 | |
9851 | fi | |
9852 | ||
9853 | ||
9854 | enablestring= | |
9855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9856 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9857 | no_cache=0 | |
9858 | # Check whether --enable-pnm or --disable-pnm was given. | |
9859 | if test "${enable_pnm+set}" = set; then | |
9860 | enableval="$enable_pnm" | |
9861 | ||
9862 | if test "$enableval" = yes; then | |
9863 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9864 | else | |
9865 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9866 | fi | |
9867 | ||
9868 | else | |
9869 | ||
9870 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9871 | if test "x$LINE" != x ; then | |
9872 | eval "DEFAULT_$LINE" | |
9873 | else | |
9874 | no_cache=1 | |
9875 | fi | |
9876 | ||
9877 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9878 | ||
9879 | fi; | |
9880 | ||
9881 | eval "$ac_cv_use_pnm" | |
9882 | if test "$no_cache" != 1; then | |
9883 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9884 | fi | |
9885 | ||
9886 | if test "$wxUSE_PNM" = yes; then | |
9887 | echo "$as_me:$LINENO: result: yes" >&5 | |
9888 | echo "${ECHO_T}yes" >&6 | |
9889 | else | |
9890 | echo "$as_me:$LINENO: result: no" >&5 | |
9891 | echo "${ECHO_T}no" >&6 | |
9892 | fi | |
9893 | ||
9894 | ||
9895 | enablestring= | |
9896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9897 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9898 | no_cache=0 | |
9899 | # Check whether --enable-xpm or --disable-xpm was given. | |
9900 | if test "${enable_xpm+set}" = set; then | |
9901 | enableval="$enable_xpm" | |
9902 | ||
9903 | if test "$enableval" = yes; then | |
9904 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9905 | else | |
9906 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9907 | fi | |
9908 | ||
9909 | else | |
9910 | ||
9911 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9912 | if test "x$LINE" != x ; then | |
9913 | eval "DEFAULT_$LINE" | |
9914 | else | |
9915 | no_cache=1 | |
9916 | fi | |
9917 | ||
9918 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9919 | ||
9920 | fi; | |
9921 | ||
9922 | eval "$ac_cv_use_xpm" | |
9923 | if test "$no_cache" != 1; then | |
9924 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9925 | fi | |
9926 | ||
9927 | if test "$wxUSE_XPM" = yes; then | |
9928 | echo "$as_me:$LINENO: result: yes" >&5 | |
9929 | echo "${ECHO_T}yes" >&6 | |
9930 | else | |
9931 | echo "$as_me:$LINENO: result: no" >&5 | |
9932 | echo "${ECHO_T}no" >&6 | |
9933 | fi | |
9934 | ||
9935 | ||
9936 | enablestring= | |
9937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9938 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9939 | no_cache=0 | |
9940 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9941 | if test "${enable_ico_cur+set}" = set; then | |
9942 | enableval="$enable_ico_cur" | |
9943 | ||
9944 | if test "$enableval" = yes; then | |
9945 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9946 | else | |
9947 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9948 | fi | |
9949 | ||
9950 | else | |
9951 | ||
9952 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9953 | if test "x$LINE" != x ; then | |
9954 | eval "DEFAULT_$LINE" | |
9955 | else | |
9956 | no_cache=1 | |
9957 | fi | |
9958 | ||
9959 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9960 | ||
9961 | fi; | |
9962 | ||
9963 | eval "$ac_cv_use_ico_cur" | |
9964 | if test "$no_cache" != 1; then | |
9965 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9966 | fi | |
9967 | ||
9968 | if test "$wxUSE_ICO_CUR" = yes; then | |
9969 | echo "$as_me:$LINENO: result: yes" >&5 | |
9970 | echo "${ECHO_T}yes" >&6 | |
9971 | else | |
9972 | echo "$as_me:$LINENO: result: no" >&5 | |
9973 | echo "${ECHO_T}no" >&6 | |
9974 | fi | |
9975 | ||
9976 | ||
9977 | fi | |
9978 | ||
9979 | ||
9980 | ||
ceec2216 RL |
9981 | # Check whether --with-flavour or --without-flavour was given. |
9982 | if test "${with_flavour+set}" = set; then | |
9983 | withval="$with_flavour" | |
9984 | WX_FLAVOUR="$withval" | |
9985 | fi; | |
9986 | ||
9987 | ||
9988 | ||
a848cd7e SC |
9989 | enablestring= |
9990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9991 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9992 | no_cache=0 | |
9993 | # Check whether --enable-official_build or --disable-official_build was given. | |
9994 | if test "${enable_official_build+set}" = set; then | |
9995 | enableval="$enable_official_build" | |
9996 | ||
9997 | if test "$enableval" = yes; then | |
9998 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9999 | else | |
10000 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10001 | fi | |
10002 | ||
10003 | else | |
10004 | ||
10005 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10006 | if test "x$LINE" != x ; then | |
10007 | eval "DEFAULT_$LINE" | |
10008 | else | |
10009 | no_cache=1 | |
10010 | fi | |
10011 | ||
10012 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10013 | ||
10014 | fi; | |
10015 | ||
10016 | eval "$ac_cv_use_official_build" | |
10017 | if test "$no_cache" != 1; then | |
10018 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10019 | fi | |
10020 | ||
10021 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10022 | echo "$as_me:$LINENO: result: yes" >&5 | |
10023 | echo "${ECHO_T}yes" >&6 | |
10024 | else | |
10025 | echo "$as_me:$LINENO: result: no" >&5 | |
10026 | echo "${ECHO_T}no" >&6 | |
10027 | fi | |
10028 | ||
10029 | # Check whether --enable-vendor or --disable-vendor was given. | |
10030 | if test "${enable_vendor+set}" = set; then | |
10031 | enableval="$enable_vendor" | |
10032 | VENDOR="$enableval" | |
10033 | fi; | |
10034 | if test "x$VENDOR" = "x"; then | |
10035 | VENDOR="custom" | |
10036 | fi | |
10037 | ||
a848cd7e SC |
10038 | |
10039 | ||
10040 | ||
10041 | echo "saving argument cache $wx_arg_cache_file" | |
10042 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10043 | ||
10044 | ||
10045 | ||
10046 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10047 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10048 | ||
10049 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10050 | if test "$wxUSE_WINE" = "yes"; then | |
10051 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10052 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10053 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10054 | wxUSE_SHARED=no | |
10055 | fi | |
10056 | ||
10057 | if test "$wxUSE_GUI" = "yes"; then | |
10058 | ||
10059 | if test "$USE_BEOS" = 1; then | |
10060 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10061 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10062 | { (exit 1); exit 1; }; } | |
10063 | fi | |
10064 | ||
10065 | if test "$TOOLKIT_GIVEN" = 1; then | |
10066 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10067 | var=wxUSE_$toolkit | |
10068 | eval "value=\$${var}" | |
10069 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10070 | done | |
10071 | else | |
10072 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10073 | if test "$has_toolkit_in_cache" != 1; then | |
10074 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10075 | else | |
10076 | var=DEFAULT_wxUSE_$toolkit | |
10077 | fi | |
10078 | eval "wxUSE_$toolkit=\$${var}" | |
10079 | done | |
10080 | fi | |
10081 | ||
10082 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10083 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10084 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10085 | ||
10086 | case "${host}" in | |
10087 | *-pc-os2_emx | *-pc-os2-emx ) | |
10088 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10089 | esac | |
10090 | ||
10091 | case "$NUM_TOOLKITS" in | |
10092 | 1) | |
10093 | ;; | |
10094 | 0) | |
10095 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10096 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10097 | { (exit 1); exit 1; }; } | |
10098 | ;; | |
10099 | *) | |
10100 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10101 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10102 | { (exit 1); exit 1; }; } | |
10103 | esac | |
10104 | ||
10105 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10106 | var=wxUSE_$toolkit | |
10107 | eval "value=\$${var}" | |
10108 | if test "x$value" != x; then | |
10109 | cache_var=CACHE_$toolkit | |
10110 | eval "cache=\$${cache_var}" | |
10111 | if test "$cache" = 1; then | |
10112 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10113 | fi | |
10114 | if test "$value" = 1; then | |
10115 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10116 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10117 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10118 | fi | |
10119 | fi | |
10120 | done | |
10121 | else | |
10122 | if test "x$host_alias" != "x"; then | |
10123 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10124 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10125 | else | |
10126 | echo "$as_me:$LINENO: result: base only" >&5 | |
10127 | echo "${ECHO_T}base only" >&6 | |
10128 | fi | |
10129 | fi | |
10130 | ||
10131 | wants_win32=0 | |
10132 | doesnt_want_win32=0 | |
10133 | case "${host}" in | |
10134 | *-*-cygwin*) | |
10135 | if test "$wxUSE_MSW" = 1 ; then | |
10136 | wants_win32=1 | |
10137 | else | |
10138 | doesnt_want_win32=1 | |
10139 | fi | |
10140 | ;; | |
10141 | *-*-mingw*) | |
10142 | wants_win32=1 | |
10143 | ;; | |
10144 | esac | |
10145 | ||
10146 | if test "$wxUSE_WINE" = "yes"; then | |
10147 | wants_win32=1 | |
10148 | CC=winegcc | |
10149 | CXX=wineg++ | |
10150 | RESCOMP=wrc | |
10151 | LDFLAGS_GUI="-mwindows" | |
10152 | fi | |
10153 | ||
10154 | if test "$wants_win32" = 1 ; then | |
10155 | USE_UNIX=0 | |
10156 | USE_WIN32=1 | |
10157 | cat >>confdefs.h <<\_ACEOF | |
10158 | #define __WIN32__ 1 | |
10159 | _ACEOF | |
10160 | ||
10161 | cat >>confdefs.h <<\_ACEOF | |
10162 | #define __WIN95__ 1 | |
10163 | _ACEOF | |
10164 | ||
10165 | cat >>confdefs.h <<\_ACEOF | |
10166 | #define __WINDOWS__ 1 | |
10167 | _ACEOF | |
10168 | ||
10169 | cat >>confdefs.h <<\_ACEOF | |
10170 | #define __GNUWIN32__ 1 | |
10171 | _ACEOF | |
10172 | ||
10173 | cat >>confdefs.h <<\_ACEOF | |
10174 | #define STRICT 1 | |
10175 | _ACEOF | |
10176 | ||
10177 | cat >>confdefs.h <<\_ACEOF | |
10178 | #define WINVER 0x0400 | |
10179 | _ACEOF | |
10180 | ||
10181 | fi | |
10182 | if test "$doesnt_want_win32" = 1 ; then | |
10183 | USE_UNIX=1 | |
10184 | USE_WIN32=0 | |
10185 | fi | |
10186 | ||
10187 | if test "$USE_UNIX" = 1 ; then | |
10188 | wxUSE_UNIX=yes | |
10189 | cat >>confdefs.h <<\_ACEOF | |
10190 | #define __UNIX__ 1 | |
10191 | _ACEOF | |
10192 | ||
10193 | fi | |
10194 | ||
10195 | ||
10196 | cat >confcache <<\_ACEOF | |
10197 | # This file is a shell script that caches the results of configure | |
10198 | # tests run on this system so they can be shared between configure | |
10199 | # scripts and configure runs, see configure's option --config-cache. | |
10200 | # It is not useful on other systems. If it contains results you don't | |
10201 | # want to keep, you may remove or edit it. | |
10202 | # | |
10203 | # config.status only pays attention to the cache file if you give it | |
10204 | # the --recheck option to rerun configure. | |
10205 | # | |
10206 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10207 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10208 | # following values. | |
10209 | ||
10210 | _ACEOF | |
10211 | ||
10212 | # The following way of writing the cache mishandles newlines in values, | |
10213 | # but we know of no workaround that is simple, portable, and efficient. | |
10214 | # So, don't put newlines in cache variables' values. | |
10215 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10216 | # and sets the high bit in the cache file unless we assign to the vars. | |
10217 | { | |
10218 | (set) 2>&1 | | |
10219 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10220 | *ac_space=\ *) | |
10221 | # `set' does not quote correctly, so add quotes (double-quote | |
10222 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10223 | sed -n \ | |
ac1cb8d3 VS |
10224 | "s/'/'\\\\''/g; |
10225 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10226 | ;; |
10227 | *) | |
10228 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10229 | sed -n \ | |
ac1cb8d3 | 10230 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10231 | ;; |
10232 | esac; | |
10233 | } | | |
10234 | sed ' | |
10235 | t clear | |
10236 | : clear | |
10237 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10238 | t end | |
10239 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10240 | : end' >>confcache | |
10241 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10242 | if test -w $cache_file; then | |
10243 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10244 | cat confcache >$cache_file | |
10245 | else | |
10246 | echo "not updating unwritable cache $cache_file" | |
10247 | fi | |
10248 | fi | |
10249 | rm -f confcache | |
10250 | ||
10251 | if test "$build" != "$host" ; then | |
10252 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10253 | CC=$host_alias-gcc | |
10254 | CXX=$host_alias-c++ | |
10255 | AR=$host_alias-ar | |
10256 | RANLIB=$host_alias-ranlib | |
10257 | DLLTOOL=$host_alias-dlltool | |
10258 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10259 | STRIP=$host_alias-strip |
10260 | else | |
10261 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10262 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10263 | { (exit 1); exit 1; }; } | |
10264 | fi | |
10265 | fi | |
10266 | ||
10267 | CFLAGS=${CFLAGS:=} | |
10268 | ac_ext=c | |
10269 | ac_cpp='$CPP $CPPFLAGS' | |
10270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10273 | if test -n "$ac_tool_prefix"; then | |
10274 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10275 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10278 | if test "${ac_cv_prog_CC+set}" = set; then | |
10279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10280 | else | |
10281 | if test -n "$CC"; then | |
10282 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10283 | else | |
10284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10285 | for as_dir in $PATH | |
10286 | do | |
10287 | IFS=$as_save_IFS | |
10288 | test -z "$as_dir" && as_dir=. | |
10289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10290 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10291 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10293 | break 2 | |
10294 | fi | |
10295 | done | |
10296 | done | |
10297 | ||
10298 | fi | |
10299 | fi | |
10300 | CC=$ac_cv_prog_CC | |
10301 | if test -n "$CC"; then | |
10302 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10303 | echo "${ECHO_T}$CC" >&6 | |
10304 | else | |
10305 | echo "$as_me:$LINENO: result: no" >&5 | |
10306 | echo "${ECHO_T}no" >&6 | |
10307 | fi | |
10308 | ||
10309 | fi | |
10310 | if test -z "$ac_cv_prog_CC"; then | |
10311 | ac_ct_CC=$CC | |
10312 | # Extract the first word of "gcc", so it can be a program name with args. | |
10313 | set dummy gcc; ac_word=$2 | |
10314 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10315 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10316 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10318 | else | |
10319 | if test -n "$ac_ct_CC"; then | |
10320 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10321 | else | |
10322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10323 | for as_dir in $PATH | |
10324 | do | |
10325 | IFS=$as_save_IFS | |
10326 | test -z "$as_dir" && as_dir=. | |
10327 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10328 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10329 | ac_cv_prog_ac_ct_CC="gcc" | |
10330 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10331 | break 2 | |
10332 | fi | |
10333 | done | |
10334 | done | |
10335 | ||
10336 | fi | |
10337 | fi | |
10338 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10339 | if test -n "$ac_ct_CC"; then | |
10340 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10341 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10342 | else | |
10343 | echo "$as_me:$LINENO: result: no" >&5 | |
10344 | echo "${ECHO_T}no" >&6 | |
10345 | fi | |
10346 | ||
10347 | CC=$ac_ct_CC | |
10348 | else | |
10349 | CC="$ac_cv_prog_CC" | |
10350 | fi | |
10351 | ||
10352 | if test -z "$CC"; then | |
10353 | if test -n "$ac_tool_prefix"; then | |
10354 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10355 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10358 | if test "${ac_cv_prog_CC+set}" = set; then | |
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10360 | else | |
10361 | if test -n "$CC"; then | |
10362 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10363 | else | |
10364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10365 | for as_dir in $PATH | |
10366 | do | |
10367 | IFS=$as_save_IFS | |
10368 | test -z "$as_dir" && as_dir=. | |
10369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10370 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10371 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10373 | break 2 | |
10374 | fi | |
10375 | done | |
10376 | done | |
10377 | ||
10378 | fi | |
10379 | fi | |
10380 | CC=$ac_cv_prog_CC | |
10381 | if test -n "$CC"; then | |
10382 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10383 | echo "${ECHO_T}$CC" >&6 | |
10384 | else | |
10385 | echo "$as_me:$LINENO: result: no" >&5 | |
10386 | echo "${ECHO_T}no" >&6 | |
10387 | fi | |
10388 | ||
10389 | fi | |
10390 | if test -z "$ac_cv_prog_CC"; then | |
10391 | ac_ct_CC=$CC | |
10392 | # Extract the first word of "cc", so it can be a program name with args. | |
10393 | set dummy cc; ac_word=$2 | |
10394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10396 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10398 | else | |
10399 | if test -n "$ac_ct_CC"; then | |
10400 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10401 | else | |
10402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10403 | for as_dir in $PATH | |
10404 | do | |
10405 | IFS=$as_save_IFS | |
10406 | test -z "$as_dir" && as_dir=. | |
10407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10409 | ac_cv_prog_ac_ct_CC="cc" | |
10410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10411 | break 2 | |
10412 | fi | |
10413 | done | |
10414 | done | |
10415 | ||
10416 | fi | |
10417 | fi | |
10418 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10419 | if test -n "$ac_ct_CC"; then | |
10420 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10421 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10422 | else | |
10423 | echo "$as_me:$LINENO: result: no" >&5 | |
10424 | echo "${ECHO_T}no" >&6 | |
10425 | fi | |
10426 | ||
10427 | CC=$ac_ct_CC | |
10428 | else | |
10429 | CC="$ac_cv_prog_CC" | |
10430 | fi | |
10431 | ||
10432 | fi | |
10433 | if test -z "$CC"; then | |
10434 | # Extract the first word of "cc", so it can be a program name with args. | |
10435 | set dummy cc; ac_word=$2 | |
10436 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10438 | if test "${ac_cv_prog_CC+set}" = set; then | |
10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10440 | else | |
10441 | if test -n "$CC"; then | |
10442 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10443 | else | |
10444 | ac_prog_rejected=no | |
10445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10446 | for as_dir in $PATH | |
10447 | do | |
10448 | IFS=$as_save_IFS | |
10449 | test -z "$as_dir" && as_dir=. | |
10450 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10452 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10453 | ac_prog_rejected=yes | |
10454 | continue | |
10455 | fi | |
10456 | ac_cv_prog_CC="cc" | |
10457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10458 | break 2 | |
10459 | fi | |
10460 | done | |
10461 | done | |
10462 | ||
10463 | if test $ac_prog_rejected = yes; then | |
10464 | # We found a bogon in the path, so make sure we never use it. | |
10465 | set dummy $ac_cv_prog_CC | |
10466 | shift | |
10467 | if test $# != 0; then | |
10468 | # We chose a different compiler from the bogus one. | |
10469 | # However, it has the same basename, so the bogon will be chosen | |
10470 | # first if we set CC to just the basename; use the full file name. | |
10471 | shift | |
10472 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10473 | fi | |
10474 | fi | |
10475 | fi | |
10476 | fi | |
10477 | CC=$ac_cv_prog_CC | |
10478 | if test -n "$CC"; then | |
10479 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10480 | echo "${ECHO_T}$CC" >&6 | |
10481 | else | |
10482 | echo "$as_me:$LINENO: result: no" >&5 | |
10483 | echo "${ECHO_T}no" >&6 | |
10484 | fi | |
10485 | ||
10486 | fi | |
10487 | if test -z "$CC"; then | |
10488 | if test -n "$ac_tool_prefix"; then | |
10489 | for ac_prog in cl | |
10490 | do | |
10491 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10492 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10495 | if test "${ac_cv_prog_CC+set}" = set; then | |
10496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10497 | else | |
10498 | if test -n "$CC"; then | |
10499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10500 | else | |
10501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10502 | for as_dir in $PATH | |
10503 | do | |
10504 | IFS=$as_save_IFS | |
10505 | test -z "$as_dir" && as_dir=. | |
10506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10508 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10510 | break 2 | |
10511 | fi | |
10512 | done | |
10513 | done | |
10514 | ||
10515 | fi | |
10516 | fi | |
10517 | CC=$ac_cv_prog_CC | |
10518 | if test -n "$CC"; then | |
10519 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10520 | echo "${ECHO_T}$CC" >&6 | |
10521 | else | |
10522 | echo "$as_me:$LINENO: result: no" >&5 | |
10523 | echo "${ECHO_T}no" >&6 | |
10524 | fi | |
10525 | ||
10526 | test -n "$CC" && break | |
10527 | done | |
10528 | fi | |
10529 | if test -z "$CC"; then | |
10530 | ac_ct_CC=$CC | |
10531 | for ac_prog in cl | |
10532 | do | |
10533 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10534 | set dummy $ac_prog; ac_word=$2 | |
10535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10537 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10539 | else | |
10540 | if test -n "$ac_ct_CC"; then | |
10541 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10542 | else | |
10543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10544 | for as_dir in $PATH | |
10545 | do | |
10546 | IFS=$as_save_IFS | |
10547 | test -z "$as_dir" && as_dir=. | |
10548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10550 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10552 | break 2 | |
10553 | fi | |
10554 | done | |
10555 | done | |
10556 | ||
10557 | fi | |
10558 | fi | |
10559 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10560 | if test -n "$ac_ct_CC"; then | |
10561 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10562 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10563 | else | |
10564 | echo "$as_me:$LINENO: result: no" >&5 | |
10565 | echo "${ECHO_T}no" >&6 | |
10566 | fi | |
10567 | ||
10568 | test -n "$ac_ct_CC" && break | |
10569 | done | |
10570 | ||
10571 | CC=$ac_ct_CC | |
10572 | fi | |
10573 | ||
10574 | fi | |
10575 | ||
10576 | ||
10577 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10578 | See \`config.log' for more details." >&5 | |
10579 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10580 | See \`config.log' for more details." >&2;} | |
10581 | { (exit 1); exit 1; }; } | |
10582 | ||
10583 | # Provide some information about the compiler. | |
10584 | echo "$as_me:$LINENO:" \ | |
10585 | "checking for C compiler version" >&5 | |
10586 | ac_compiler=`set X $ac_compile; echo $2` | |
10587 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10588 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10589 | ac_status=$? | |
10590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10591 | (exit $ac_status); } | |
10592 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10593 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10594 | ac_status=$? | |
10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10596 | (exit $ac_status); } | |
10597 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10598 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10599 | ac_status=$? | |
10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10601 | (exit $ac_status); } | |
10602 | ||
10603 | cat >conftest.$ac_ext <<_ACEOF | |
10604 | /* confdefs.h. */ | |
10605 | _ACEOF | |
10606 | cat confdefs.h >>conftest.$ac_ext | |
10607 | cat >>conftest.$ac_ext <<_ACEOF | |
10608 | /* end confdefs.h. */ | |
10609 | ||
10610 | int | |
10611 | main () | |
10612 | { | |
10613 | ||
10614 | ; | |
10615 | return 0; | |
10616 | } | |
10617 | _ACEOF | |
10618 | ac_clean_files_save=$ac_clean_files | |
10619 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10620 | # Try to create an executable without -o first, disregard a.out. | |
10621 | # It will help us diagnose broken compilers, and finding out an intuition | |
10622 | # of exeext. | |
ac1cb8d3 VS |
10623 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10624 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10625 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10626 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10627 | (eval $ac_link_default) 2>&5 | |
10628 | ac_status=$? | |
10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10630 | (exit $ac_status); }; then | |
10631 | # Find the output, starting from the most likely. This scheme is | |
10632 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10633 | # resort. | |
10634 | ||
10635 | # Be careful to initialize this variable, since it used to be cached. | |
10636 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10637 | ac_cv_exeext= | |
10638 | # b.out is created by i960 compilers. | |
10639 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10640 | do | |
10641 | test -f "$ac_file" || continue | |
10642 | case $ac_file in | |
10643 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10644 | ;; |
a848cd7e | 10645 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10646 | # This is the source file. |
10647 | ;; | |
a848cd7e | 10648 | [ab].out ) |
ac1cb8d3 VS |
10649 | # We found the default executable, but exeext='' is most |
10650 | # certainly right. | |
10651 | break;; | |
a848cd7e | 10652 | *.* ) |
ac1cb8d3 VS |
10653 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10654 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10655 | # but it would be cool to find out if it's true. Does anybody | |
10656 | # maintain Libtool? --akim. | |
10657 | export ac_cv_exeext | |
10658 | break;; | |
a848cd7e | 10659 | * ) |
ac1cb8d3 | 10660 | break;; |
a848cd7e SC |
10661 | esac |
10662 | done | |
10663 | else | |
10664 | echo "$as_me: failed program was:" >&5 | |
10665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10666 | ||
10667 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10668 | See \`config.log' for more details." >&5 | |
10669 | echo "$as_me: error: C compiler cannot create executables | |
10670 | See \`config.log' for more details." >&2;} | |
10671 | { (exit 77); exit 77; }; } | |
10672 | fi | |
10673 | ||
10674 | ac_exeext=$ac_cv_exeext | |
10675 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10676 | echo "${ECHO_T}$ac_file" >&6 | |
10677 | ||
10678 | # Check the compiler produces executables we can run. If not, either | |
10679 | # the compiler is broken, or we cross compile. | |
10680 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10681 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10682 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10683 | # If not cross compiling, check that we can run a simple program. | |
10684 | if test "$cross_compiling" != yes; then | |
10685 | if { ac_try='./$ac_file' | |
10686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10687 | (eval $ac_try) 2>&5 | |
10688 | ac_status=$? | |
10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10690 | (exit $ac_status); }; }; then | |
10691 | cross_compiling=no | |
10692 | else | |
10693 | if test "$cross_compiling" = maybe; then | |
10694 | cross_compiling=yes | |
10695 | else | |
10696 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10697 | If you meant to cross compile, use \`--host'. | |
10698 | See \`config.log' for more details." >&5 | |
10699 | echo "$as_me: error: cannot run C compiled programs. | |
10700 | If you meant to cross compile, use \`--host'. | |
10701 | See \`config.log' for more details." >&2;} | |
10702 | { (exit 1); exit 1; }; } | |
10703 | fi | |
10704 | fi | |
10705 | fi | |
10706 | echo "$as_me:$LINENO: result: yes" >&5 | |
10707 | echo "${ECHO_T}yes" >&6 | |
10708 | ||
10709 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10710 | ac_clean_files=$ac_clean_files_save | |
10711 | # Check the compiler produces executables we can run. If not, either | |
10712 | # the compiler is broken, or we cross compile. | |
10713 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10714 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10715 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10716 | echo "${ECHO_T}$cross_compiling" >&6 | |
10717 | ||
10718 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10719 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10721 | (eval $ac_link) 2>&5 | |
10722 | ac_status=$? | |
10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10724 | (exit $ac_status); }; then | |
10725 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10726 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10727 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10728 | # `rm'. | |
10729 | for ac_file in conftest.exe conftest conftest.*; do | |
10730 | test -f "$ac_file" || continue | |
10731 | case $ac_file in | |
10732 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10733 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10734 | export ac_cv_exeext |
10735 | break;; | |
a848cd7e SC |
10736 | * ) break;; |
10737 | esac | |
10738 | done | |
10739 | else | |
10740 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10741 | See \`config.log' for more details." >&5 | |
10742 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10743 | See \`config.log' for more details." >&2;} | |
10744 | { (exit 1); exit 1; }; } | |
10745 | fi | |
10746 | ||
10747 | rm -f conftest$ac_cv_exeext | |
10748 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10749 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10750 | ||
10751 | rm -f conftest.$ac_ext | |
10752 | EXEEXT=$ac_cv_exeext | |
10753 | ac_exeext=$EXEEXT | |
10754 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10755 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10756 | if test "${ac_cv_objext+set}" = set; then | |
10757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10758 | else | |
10759 | cat >conftest.$ac_ext <<_ACEOF | |
10760 | /* confdefs.h. */ | |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
10765 | ||
10766 | int | |
10767 | main () | |
10768 | { | |
10769 | ||
10770 | ; | |
10771 | return 0; | |
10772 | } | |
10773 | _ACEOF | |
10774 | rm -f conftest.o conftest.obj | |
10775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10776 | (eval $ac_compile) 2>&5 | |
10777 | ac_status=$? | |
10778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10779 | (exit $ac_status); }; then | |
10780 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10781 | case $ac_file in | |
10782 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10783 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10784 | break;; | |
10785 | esac | |
10786 | done | |
10787 | else | |
10788 | echo "$as_me: failed program was:" >&5 | |
10789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10790 | ||
10791 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10792 | See \`config.log' for more details." >&5 | |
10793 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10794 | See \`config.log' for more details." >&2;} | |
10795 | { (exit 1); exit 1; }; } | |
10796 | fi | |
10797 | ||
10798 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10799 | fi | |
10800 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10801 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10802 | OBJEXT=$ac_cv_objext | |
10803 | ac_objext=$OBJEXT | |
10804 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10805 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10806 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10808 | else | |
10809 | cat >conftest.$ac_ext <<_ACEOF | |
10810 | /* confdefs.h. */ | |
10811 | _ACEOF | |
10812 | cat confdefs.h >>conftest.$ac_ext | |
10813 | cat >>conftest.$ac_ext <<_ACEOF | |
10814 | /* end confdefs.h. */ | |
10815 | ||
10816 | int | |
10817 | main () | |
10818 | { | |
10819 | #ifndef __GNUC__ | |
10820 | choke me | |
10821 | #endif | |
10822 | ||
10823 | ; | |
10824 | return 0; | |
10825 | } | |
10826 | _ACEOF | |
10827 | rm -f conftest.$ac_objext | |
10828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10830 | ac_status=$? |
ac1cb8d3 VS |
10831 | grep -v '^ *+' conftest.er1 >conftest.err |
10832 | rm -f conftest.er1 | |
10833 | cat conftest.err >&5 | |
a848cd7e SC |
10834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10835 | (exit $ac_status); } && | |
7714864e | 10836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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' | |
a848cd7e SC |
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_compiler_gnu=yes | |
10849 | else | |
10850 | echo "$as_me: failed program was:" >&5 | |
10851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10852 | ||
10853 | ac_compiler_gnu=no | |
10854 | fi | |
ac1cb8d3 | 10855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10856 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10857 | ||
10858 | fi | |
10859 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10860 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10861 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10862 | ac_test_CFLAGS=${CFLAGS+set} | |
10863 | ac_save_CFLAGS=$CFLAGS | |
10864 | CFLAGS="-g" | |
10865 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10866 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10867 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10869 | else | |
10870 | cat >conftest.$ac_ext <<_ACEOF | |
10871 | /* confdefs.h. */ | |
10872 | _ACEOF | |
10873 | cat confdefs.h >>conftest.$ac_ext | |
10874 | cat >>conftest.$ac_ext <<_ACEOF | |
10875 | /* end confdefs.h. */ | |
10876 | ||
10877 | int | |
10878 | main () | |
10879 | { | |
10880 | ||
10881 | ; | |
10882 | return 0; | |
10883 | } | |
10884 | _ACEOF | |
10885 | rm -f conftest.$ac_objext | |
10886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10887 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10888 | ac_status=$? |
ac1cb8d3 VS |
10889 | grep -v '^ *+' conftest.er1 >conftest.err |
10890 | rm -f conftest.er1 | |
10891 | cat conftest.err >&5 | |
a848cd7e SC |
10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10893 | (exit $ac_status); } && | |
7714864e | 10894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10896 | (eval $ac_try) 2>&5 | |
10897 | ac_status=$? | |
10898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10899 | (exit $ac_status); }; } && | |
10900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10902 | (eval $ac_try) 2>&5 | |
10903 | ac_status=$? | |
10904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10905 | (exit $ac_status); }; }; then | |
10906 | ac_cv_prog_cc_g=yes | |
10907 | else | |
10908 | echo "$as_me: failed program was:" >&5 | |
10909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10910 | ||
10911 | ac_cv_prog_cc_g=no | |
10912 | fi | |
ac1cb8d3 | 10913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10914 | fi |
10915 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10916 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10917 | if test "$ac_test_CFLAGS" = set; then | |
10918 | CFLAGS=$ac_save_CFLAGS | |
10919 | elif test $ac_cv_prog_cc_g = yes; then | |
10920 | if test "$GCC" = yes; then | |
10921 | CFLAGS="-g -O2" | |
10922 | else | |
10923 | CFLAGS="-g" | |
10924 | fi | |
10925 | else | |
10926 | if test "$GCC" = yes; then | |
10927 | CFLAGS="-O2" | |
10928 | else | |
10929 | CFLAGS= | |
10930 | fi | |
10931 | fi | |
10932 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10933 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10934 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10936 | else | |
10937 | ac_cv_prog_cc_stdc=no | |
10938 | ac_save_CC=$CC | |
10939 | cat >conftest.$ac_ext <<_ACEOF | |
10940 | /* confdefs.h. */ | |
10941 | _ACEOF | |
10942 | cat confdefs.h >>conftest.$ac_ext | |
10943 | cat >>conftest.$ac_ext <<_ACEOF | |
10944 | /* end confdefs.h. */ | |
10945 | #include <stdarg.h> | |
10946 | #include <stdio.h> | |
10947 | #include <sys/types.h> | |
10948 | #include <sys/stat.h> | |
10949 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10950 | struct buf { int x; }; | |
10951 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10952 | static char *e (p, i) | |
10953 | char **p; | |
10954 | int i; | |
10955 | { | |
10956 | return p[i]; | |
10957 | } | |
10958 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10959 | { | |
10960 | char *s; | |
10961 | va_list v; | |
10962 | va_start (v,p); | |
10963 | s = g (p, va_arg (v,int)); | |
10964 | va_end (v); | |
10965 | return s; | |
10966 | } | |
ac1cb8d3 VS |
10967 | |
10968 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
10969 | function prototypes and stuff, but not '\xHH' hex character constants. | |
10970 | These don't provoke an error unfortunately, instead are silently treated | |
10971 | as 'x'. The following induces an error, until -std1 is added to get | |
10972 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
10973 | array size at least. It's necessary to write '\x00'==0 to get something | |
10974 | that's true only with -std1. */ | |
10975 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
10976 | ||
a848cd7e SC |
10977 | int test (int i, double x); |
10978 | struct s1 {int (*f) (int a);}; | |
10979 | struct s2 {int (*f) (double a);}; | |
10980 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10981 | int argc; | |
10982 | char **argv; | |
10983 | int | |
10984 | main () | |
10985 | { | |
10986 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10987 | ; | |
10988 | return 0; | |
10989 | } | |
10990 | _ACEOF | |
10991 | # Don't try gcc -ansi; that turns off useful extensions and | |
10992 | # breaks some systems' header files. | |
10993 | # AIX -qlanglvl=ansi | |
10994 | # Ultrix and OSF/1 -std1 | |
10995 | # HP-UX 10.20 and later -Ae | |
10996 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10997 | # SVR4 -Xc -D__EXTENSIONS__ | |
10998 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10999 | do | |
11000 | CC="$ac_save_CC $ac_arg" | |
11001 | rm -f conftest.$ac_objext | |
11002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11004 | ac_status=$? |
ac1cb8d3 VS |
11005 | grep -v '^ *+' conftest.er1 >conftest.err |
11006 | rm -f conftest.er1 | |
11007 | cat conftest.err >&5 | |
a848cd7e SC |
11008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11009 | (exit $ac_status); } && | |
7714864e | 11010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11012 | (eval $ac_try) 2>&5 | |
11013 | ac_status=$? | |
11014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11015 | (exit $ac_status); }; } && | |
11016 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11018 | (eval $ac_try) 2>&5 | |
11019 | ac_status=$? | |
11020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11021 | (exit $ac_status); }; }; then | |
11022 | ac_cv_prog_cc_stdc=$ac_arg | |
11023 | break | |
11024 | else | |
11025 | echo "$as_me: failed program was:" >&5 | |
11026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11027 | ||
11028 | fi | |
ac1cb8d3 | 11029 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11030 | done |
11031 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11032 | CC=$ac_save_CC | |
11033 | ||
11034 | fi | |
11035 | ||
11036 | case "x$ac_cv_prog_cc_stdc" in | |
11037 | x|xno) | |
11038 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11039 | echo "${ECHO_T}none needed" >&6 ;; | |
11040 | *) | |
11041 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11042 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11043 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11044 | esac | |
11045 | ||
11046 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11047 | # in C++ we need to declare it. In case someone uses the same compiler | |
11048 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11049 | # the declaration of exit, since it's the most demanding environment. | |
11050 | cat >conftest.$ac_ext <<_ACEOF | |
11051 | #ifndef __cplusplus | |
11052 | choke me | |
11053 | #endif | |
11054 | _ACEOF | |
11055 | rm -f conftest.$ac_objext | |
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11057 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11058 | ac_status=$? |
ac1cb8d3 VS |
11059 | grep -v '^ *+' conftest.er1 >conftest.err |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
a848cd7e SC |
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11063 | (exit $ac_status); } && | |
7714864e | 11064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11066 | (eval $ac_try) 2>&5 | |
11067 | ac_status=$? | |
11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11069 | (exit $ac_status); }; } && | |
11070 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11072 | (eval $ac_try) 2>&5 | |
11073 | ac_status=$? | |
11074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11075 | (exit $ac_status); }; }; then | |
11076 | for ac_declaration in \ | |
ac1cb8d3 | 11077 | '' \ |
a848cd7e SC |
11078 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11079 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11080 | 'extern "C" void exit (int) throw ();' \ | |
11081 | 'extern "C" void exit (int);' \ | |
11082 | 'void exit (int);' | |
11083 | do | |
11084 | cat >conftest.$ac_ext <<_ACEOF | |
11085 | /* confdefs.h. */ | |
11086 | _ACEOF | |
11087 | cat confdefs.h >>conftest.$ac_ext | |
11088 | cat >>conftest.$ac_ext <<_ACEOF | |
11089 | /* end confdefs.h. */ | |
de59c161 | 11090 | $ac_declaration |
ac1cb8d3 | 11091 | #include <stdlib.h> |
a848cd7e SC |
11092 | int |
11093 | main () | |
11094 | { | |
11095 | exit (42); | |
11096 | ; | |
11097 | return 0; | |
11098 | } | |
11099 | _ACEOF | |
11100 | rm -f conftest.$ac_objext | |
11101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11103 | ac_status=$? |
ac1cb8d3 VS |
11104 | grep -v '^ *+' conftest.er1 >conftest.err |
11105 | rm -f conftest.er1 | |
11106 | cat conftest.err >&5 | |
a848cd7e SC |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11108 | (exit $ac_status); } && | |
7714864e | 11109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11111 | (eval $ac_try) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); }; } && | |
11115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11117 | (eval $ac_try) 2>&5 | |
11118 | ac_status=$? | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11120 | (exit $ac_status); }; }; then | |
11121 | : | |
11122 | else | |
11123 | echo "$as_me: failed program was:" >&5 | |
11124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11125 | ||
11126 | continue | |
11127 | fi | |
ac1cb8d3 | 11128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11129 | cat >conftest.$ac_ext <<_ACEOF |
11130 | /* confdefs.h. */ | |
11131 | _ACEOF | |
11132 | cat confdefs.h >>conftest.$ac_ext | |
11133 | cat >>conftest.$ac_ext <<_ACEOF | |
11134 | /* end confdefs.h. */ | |
11135 | $ac_declaration | |
11136 | int | |
11137 | main () | |
11138 | { | |
11139 | exit (42); | |
11140 | ; | |
11141 | return 0; | |
11142 | } | |
11143 | _ACEOF | |
11144 | rm -f conftest.$ac_objext | |
11145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11146 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11147 | ac_status=$? |
ac1cb8d3 VS |
11148 | grep -v '^ *+' conftest.er1 >conftest.err |
11149 | rm -f conftest.er1 | |
11150 | cat conftest.err >&5 | |
a848cd7e SC |
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11152 | (exit $ac_status); } && | |
7714864e | 11153 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11155 | (eval $ac_try) 2>&5 | |
11156 | ac_status=$? | |
11157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11158 | (exit $ac_status); }; } && | |
11159 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11161 | (eval $ac_try) 2>&5 | |
11162 | ac_status=$? | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); }; }; then | |
11165 | break | |
11166 | else | |
11167 | echo "$as_me: failed program was:" >&5 | |
11168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11169 | ||
11170 | fi | |
ac1cb8d3 | 11171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11172 | done |
11173 | rm -f conftest* | |
11174 | if test -n "$ac_declaration"; then | |
11175 | echo '#ifdef __cplusplus' >>confdefs.h | |
11176 | echo $ac_declaration >>confdefs.h | |
11177 | echo '#endif' >>confdefs.h | |
11178 | fi | |
11179 | ||
11180 | else | |
11181 | echo "$as_me: failed program was:" >&5 | |
11182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11183 | ||
11184 | fi | |
ac1cb8d3 | 11185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11186 | ac_ext=c |
11187 | ac_cpp='$CPP $CPPFLAGS' | |
11188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11191 | ||
11192 | ||
11193 | ||
11194 | ac_ext=c | |
11195 | ac_cpp='$CPP $CPPFLAGS' | |
11196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11199 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11200 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11201 | # On Suns, sometimes $CPP names a directory. | |
11202 | if test -n "$CPP" && test -d "$CPP"; then | |
11203 | CPP= | |
11204 | fi | |
11205 | if test -z "$CPP"; then | |
11206 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11208 | else | |
11209 | # Double quotes because CPP needs to be expanded | |
11210 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11211 | do | |
11212 | ac_preproc_ok=false | |
11213 | for ac_c_preproc_warn_flag in '' yes | |
11214 | do | |
11215 | # Use a header file that comes with gcc, so configuring glibc | |
11216 | # with a fresh cross-compiler works. | |
11217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11218 | # <limits.h> exists even on freestanding compilers. | |
11219 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11220 | # not just through cpp. "Syntax error" is here to catch this case. | |
11221 | cat >conftest.$ac_ext <<_ACEOF | |
11222 | /* confdefs.h. */ | |
11223 | _ACEOF | |
11224 | cat confdefs.h >>conftest.$ac_ext | |
11225 | cat >>conftest.$ac_ext <<_ACEOF | |
11226 | /* end confdefs.h. */ | |
11227 | #ifdef __STDC__ | |
11228 | # include <limits.h> | |
11229 | #else | |
11230 | # include <assert.h> | |
11231 | #endif | |
ac1cb8d3 | 11232 | Syntax error |
a848cd7e SC |
11233 | _ACEOF |
11234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11236 | ac_status=$? | |
11237 | grep -v '^ *+' conftest.er1 >conftest.err | |
11238 | rm -f conftest.er1 | |
11239 | cat conftest.err >&5 | |
11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11241 | (exit $ac_status); } >/dev/null; then | |
11242 | if test -s conftest.err; then | |
11243 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11244 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11245 | else |
11246 | ac_cpp_err= | |
11247 | fi | |
11248 | else | |
11249 | ac_cpp_err=yes | |
11250 | fi | |
11251 | if test -z "$ac_cpp_err"; then | |
11252 | : | |
11253 | else | |
11254 | echo "$as_me: failed program was:" >&5 | |
11255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11256 | ||
11257 | # Broken: fails on valid input. | |
11258 | continue | |
11259 | fi | |
11260 | rm -f conftest.err conftest.$ac_ext | |
11261 | ||
11262 | # OK, works on sane cases. Now check whether non-existent headers | |
11263 | # can be detected and how. | |
11264 | cat >conftest.$ac_ext <<_ACEOF | |
11265 | /* confdefs.h. */ | |
11266 | _ACEOF | |
11267 | cat confdefs.h >>conftest.$ac_ext | |
11268 | cat >>conftest.$ac_ext <<_ACEOF | |
11269 | /* end confdefs.h. */ | |
11270 | #include <ac_nonexistent.h> | |
11271 | _ACEOF | |
11272 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11273 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11274 | ac_status=$? | |
11275 | grep -v '^ *+' conftest.er1 >conftest.err | |
11276 | rm -f conftest.er1 | |
11277 | cat conftest.err >&5 | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); } >/dev/null; then | |
11280 | if test -s conftest.err; then | |
11281 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11282 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11283 | else |
11284 | ac_cpp_err= | |
11285 | fi | |
11286 | else | |
11287 | ac_cpp_err=yes | |
11288 | fi | |
11289 | if test -z "$ac_cpp_err"; then | |
11290 | # Broken: success on invalid input. | |
11291 | continue | |
11292 | else | |
11293 | echo "$as_me: failed program was:" >&5 | |
11294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11295 | ||
11296 | # Passes both tests. | |
11297 | ac_preproc_ok=: | |
11298 | break | |
11299 | fi | |
11300 | rm -f conftest.err conftest.$ac_ext | |
11301 | ||
11302 | done | |
11303 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11304 | rm -f conftest.err conftest.$ac_ext | |
11305 | if $ac_preproc_ok; then | |
11306 | break | |
11307 | fi | |
11308 | ||
11309 | done | |
11310 | ac_cv_prog_CPP=$CPP | |
11311 | ||
11312 | fi | |
11313 | CPP=$ac_cv_prog_CPP | |
11314 | else | |
11315 | ac_cv_prog_CPP=$CPP | |
11316 | fi | |
11317 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11318 | echo "${ECHO_T}$CPP" >&6 | |
11319 | ac_preproc_ok=false | |
11320 | for ac_c_preproc_warn_flag in '' yes | |
11321 | do | |
11322 | # Use a header file that comes with gcc, so configuring glibc | |
11323 | # with a fresh cross-compiler works. | |
11324 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11325 | # <limits.h> exists even on freestanding compilers. | |
11326 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11327 | # not just through cpp. "Syntax error" is here to catch this case. | |
11328 | cat >conftest.$ac_ext <<_ACEOF | |
11329 | /* confdefs.h. */ | |
11330 | _ACEOF | |
11331 | cat confdefs.h >>conftest.$ac_ext | |
11332 | cat >>conftest.$ac_ext <<_ACEOF | |
11333 | /* end confdefs.h. */ | |
11334 | #ifdef __STDC__ | |
11335 | # include <limits.h> | |
11336 | #else | |
11337 | # include <assert.h> | |
11338 | #endif | |
ac1cb8d3 | 11339 | Syntax error |
a848cd7e SC |
11340 | _ACEOF |
11341 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11342 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11343 | ac_status=$? | |
11344 | grep -v '^ *+' conftest.er1 >conftest.err | |
11345 | rm -f conftest.er1 | |
11346 | cat conftest.err >&5 | |
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11348 | (exit $ac_status); } >/dev/null; then | |
11349 | if test -s conftest.err; then | |
11350 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11351 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11352 | else |
11353 | ac_cpp_err= | |
11354 | fi | |
11355 | else | |
11356 | ac_cpp_err=yes | |
11357 | fi | |
11358 | if test -z "$ac_cpp_err"; then | |
11359 | : | |
11360 | else | |
11361 | echo "$as_me: failed program was:" >&5 | |
11362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11363 | ||
11364 | # Broken: fails on valid input. | |
11365 | continue | |
11366 | fi | |
11367 | rm -f conftest.err conftest.$ac_ext | |
11368 | ||
11369 | # OK, works on sane cases. Now check whether non-existent headers | |
11370 | # can be detected and how. | |
11371 | cat >conftest.$ac_ext <<_ACEOF | |
11372 | /* confdefs.h. */ | |
11373 | _ACEOF | |
11374 | cat confdefs.h >>conftest.$ac_ext | |
11375 | cat >>conftest.$ac_ext <<_ACEOF | |
11376 | /* end confdefs.h. */ | |
11377 | #include <ac_nonexistent.h> | |
11378 | _ACEOF | |
11379 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11380 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11381 | ac_status=$? | |
11382 | grep -v '^ *+' conftest.er1 >conftest.err | |
11383 | rm -f conftest.er1 | |
11384 | cat conftest.err >&5 | |
11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11386 | (exit $ac_status); } >/dev/null; then | |
11387 | if test -s conftest.err; then | |
11388 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11389 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11390 | else |
11391 | ac_cpp_err= | |
11392 | fi | |
11393 | else | |
11394 | ac_cpp_err=yes | |
11395 | fi | |
11396 | if test -z "$ac_cpp_err"; then | |
11397 | # Broken: success on invalid input. | |
11398 | continue | |
11399 | else | |
11400 | echo "$as_me: failed program was:" >&5 | |
11401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11402 | ||
11403 | # Passes both tests. | |
11404 | ac_preproc_ok=: | |
11405 | break | |
11406 | fi | |
11407 | rm -f conftest.err conftest.$ac_ext | |
11408 | ||
11409 | done | |
11410 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11411 | rm -f conftest.err conftest.$ac_ext | |
11412 | if $ac_preproc_ok; then | |
11413 | : | |
11414 | else | |
11415 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11416 | See \`config.log' for more details." >&5 | |
11417 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11418 | See \`config.log' for more details." >&2;} | |
11419 | { (exit 1); exit 1; }; } | |
11420 | fi | |
11421 | ||
11422 | ac_ext=c | |
11423 | ac_cpp='$CPP $CPPFLAGS' | |
11424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11427 | ||
11428 | ||
11429 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11430 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11431 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11433 | else | |
11434 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11435 | then ac_cv_prog_egrep='grep -E' | |
11436 | else ac_cv_prog_egrep='egrep' | |
11437 | fi | |
11438 | fi | |
11439 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11440 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11441 | EGREP=$ac_cv_prog_egrep | |
11442 | ||
11443 | ||
11444 | if test $ac_cv_c_compiler_gnu = yes; then | |
11445 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11446 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11447 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11449 | else | |
11450 | ac_pattern="Autoconf.*'x'" | |
11451 | cat >conftest.$ac_ext <<_ACEOF | |
11452 | /* confdefs.h. */ | |
11453 | _ACEOF | |
11454 | cat confdefs.h >>conftest.$ac_ext | |
11455 | cat >>conftest.$ac_ext <<_ACEOF | |
11456 | /* end confdefs.h. */ | |
11457 | #include <sgtty.h> | |
11458 | Autoconf TIOCGETP | |
11459 | _ACEOF | |
11460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11461 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11462 | ac_cv_prog_gcc_traditional=yes | |
11463 | else | |
11464 | ac_cv_prog_gcc_traditional=no | |
11465 | fi | |
11466 | rm -f conftest* | |
11467 | ||
11468 | ||
11469 | if test $ac_cv_prog_gcc_traditional = no; then | |
11470 | cat >conftest.$ac_ext <<_ACEOF | |
11471 | /* confdefs.h. */ | |
11472 | _ACEOF | |
11473 | cat confdefs.h >>conftest.$ac_ext | |
11474 | cat >>conftest.$ac_ext <<_ACEOF | |
11475 | /* end confdefs.h. */ | |
11476 | #include <termio.h> | |
11477 | Autoconf TCGETA | |
11478 | _ACEOF | |
11479 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11480 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11481 | ac_cv_prog_gcc_traditional=yes | |
11482 | fi | |
11483 | rm -f conftest* | |
11484 | ||
11485 | fi | |
11486 | fi | |
11487 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11488 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11489 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11490 | CC="$CC -traditional" | |
11491 | fi | |
11492 | fi | |
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ac_ext=cc | |
11498 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11502 | ||
11503 | ||
11504 | CXXFLAGS=${CXXFLAGS:=} | |
11505 | ac_ext=cc | |
11506 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11510 | if test -n "$ac_tool_prefix"; then | |
11511 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11512 | do | |
11513 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11514 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11517 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11519 | else | |
11520 | if test -n "$CXX"; then | |
11521 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11522 | else | |
11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11524 | for as_dir in $PATH | |
11525 | do | |
11526 | IFS=$as_save_IFS | |
11527 | test -z "$as_dir" && as_dir=. | |
11528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11530 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11532 | break 2 | |
11533 | fi | |
11534 | done | |
11535 | done | |
11536 | ||
11537 | fi | |
11538 | fi | |
11539 | CXX=$ac_cv_prog_CXX | |
11540 | if test -n "$CXX"; then | |
11541 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11542 | echo "${ECHO_T}$CXX" >&6 | |
11543 | else | |
11544 | echo "$as_me:$LINENO: result: no" >&5 | |
11545 | echo "${ECHO_T}no" >&6 | |
11546 | fi | |
11547 | ||
11548 | test -n "$CXX" && break | |
11549 | done | |
11550 | fi | |
11551 | if test -z "$CXX"; then | |
11552 | ac_ct_CXX=$CXX | |
11553 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11554 | do | |
11555 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11556 | set dummy $ac_prog; ac_word=$2 | |
11557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11559 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11561 | else | |
11562 | if test -n "$ac_ct_CXX"; then | |
11563 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11564 | else | |
11565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11566 | for as_dir in $PATH | |
11567 | do | |
11568 | IFS=$as_save_IFS | |
11569 | test -z "$as_dir" && as_dir=. | |
11570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11572 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11574 | break 2 | |
11575 | fi | |
11576 | done | |
11577 | done | |
11578 | ||
11579 | fi | |
11580 | fi | |
11581 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11582 | if test -n "$ac_ct_CXX"; then | |
11583 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11584 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11585 | else | |
11586 | echo "$as_me:$LINENO: result: no" >&5 | |
11587 | echo "${ECHO_T}no" >&6 | |
11588 | fi | |
11589 | ||
11590 | test -n "$ac_ct_CXX" && break | |
11591 | done | |
11592 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11593 | ||
11594 | CXX=$ac_ct_CXX | |
11595 | fi | |
11596 | ||
11597 | ||
11598 | # Provide some information about the compiler. | |
11599 | echo "$as_me:$LINENO:" \ | |
11600 | "checking for C++ compiler version" >&5 | |
11601 | ac_compiler=`set X $ac_compile; echo $2` | |
11602 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11603 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11604 | ac_status=$? | |
11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11606 | (exit $ac_status); } | |
11607 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11608 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11609 | ac_status=$? | |
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11611 | (exit $ac_status); } | |
11612 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11613 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11614 | ac_status=$? | |
11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11616 | (exit $ac_status); } | |
11617 | ||
11618 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11619 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11620 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11622 | else | |
11623 | cat >conftest.$ac_ext <<_ACEOF | |
11624 | /* confdefs.h. */ | |
11625 | _ACEOF | |
11626 | cat confdefs.h >>conftest.$ac_ext | |
11627 | cat >>conftest.$ac_ext <<_ACEOF | |
11628 | /* end confdefs.h. */ | |
11629 | ||
11630 | int | |
11631 | main () | |
11632 | { | |
11633 | #ifndef __GNUC__ | |
11634 | choke me | |
11635 | #endif | |
11636 | ||
11637 | ; | |
11638 | return 0; | |
11639 | } | |
11640 | _ACEOF | |
11641 | rm -f conftest.$ac_objext | |
11642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11643 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11644 | ac_status=$? |
ac1cb8d3 VS |
11645 | grep -v '^ *+' conftest.er1 >conftest.err |
11646 | rm -f conftest.er1 | |
11647 | cat conftest.err >&5 | |
a848cd7e SC |
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11649 | (exit $ac_status); } && | |
7714864e | 11650 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11652 | (eval $ac_try) 2>&5 | |
11653 | ac_status=$? | |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11655 | (exit $ac_status); }; } && | |
11656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11662 | ac_compiler_gnu=yes | |
11663 | else | |
11664 | echo "$as_me: failed program was:" >&5 | |
11665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11666 | ||
11667 | ac_compiler_gnu=no | |
11668 | fi | |
ac1cb8d3 | 11669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11670 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11671 | ||
11672 | fi | |
11673 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11674 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11675 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11676 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11677 | ac_save_CXXFLAGS=$CXXFLAGS | |
11678 | CXXFLAGS="-g" | |
11679 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11680 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11681 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11683 | else | |
11684 | cat >conftest.$ac_ext <<_ACEOF | |
11685 | /* confdefs.h. */ | |
11686 | _ACEOF | |
11687 | cat confdefs.h >>conftest.$ac_ext | |
11688 | cat >>conftest.$ac_ext <<_ACEOF | |
11689 | /* end confdefs.h. */ | |
11690 | ||
11691 | int | |
11692 | main () | |
11693 | { | |
11694 | ||
11695 | ; | |
11696 | return 0; | |
11697 | } | |
11698 | _ACEOF | |
11699 | rm -f conftest.$ac_objext | |
11700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11702 | ac_status=$? |
ac1cb8d3 VS |
11703 | grep -v '^ *+' conftest.er1 >conftest.err |
11704 | rm -f conftest.er1 | |
11705 | cat conftest.err >&5 | |
a848cd7e SC |
11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11707 | (exit $ac_status); } && | |
7714864e | 11708 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11710 | (eval $ac_try) 2>&5 | |
11711 | ac_status=$? | |
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11713 | (exit $ac_status); }; } && | |
11714 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11716 | (eval $ac_try) 2>&5 | |
11717 | ac_status=$? | |
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11719 | (exit $ac_status); }; }; then | |
11720 | ac_cv_prog_cxx_g=yes | |
11721 | else | |
11722 | echo "$as_me: failed program was:" >&5 | |
11723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11724 | ||
11725 | ac_cv_prog_cxx_g=no | |
11726 | fi | |
ac1cb8d3 | 11727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11728 | fi |
11729 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11730 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11731 | if test "$ac_test_CXXFLAGS" = set; then | |
11732 | CXXFLAGS=$ac_save_CXXFLAGS | |
11733 | elif test $ac_cv_prog_cxx_g = yes; then | |
11734 | if test "$GXX" = yes; then | |
11735 | CXXFLAGS="-g -O2" | |
11736 | else | |
11737 | CXXFLAGS="-g" | |
11738 | fi | |
11739 | else | |
11740 | if test "$GXX" = yes; then | |
11741 | CXXFLAGS="-O2" | |
11742 | else | |
11743 | CXXFLAGS= | |
11744 | fi | |
11745 | fi | |
11746 | for ac_declaration in \ | |
ac1cb8d3 | 11747 | '' \ |
a848cd7e SC |
11748 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11749 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11750 | 'extern "C" void exit (int) throw ();' \ | |
11751 | 'extern "C" void exit (int);' \ | |
11752 | 'void exit (int);' | |
11753 | do | |
11754 | cat >conftest.$ac_ext <<_ACEOF | |
11755 | /* confdefs.h. */ | |
11756 | _ACEOF | |
11757 | cat confdefs.h >>conftest.$ac_ext | |
11758 | cat >>conftest.$ac_ext <<_ACEOF | |
11759 | /* end confdefs.h. */ | |
de59c161 | 11760 | $ac_declaration |
ac1cb8d3 | 11761 | #include <stdlib.h> |
a848cd7e SC |
11762 | int |
11763 | main () | |
11764 | { | |
11765 | exit (42); | |
11766 | ; | |
11767 | return 0; | |
11768 | } | |
11769 | _ACEOF | |
11770 | rm -f conftest.$ac_objext | |
11771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11773 | ac_status=$? |
ac1cb8d3 VS |
11774 | grep -v '^ *+' conftest.er1 >conftest.err |
11775 | rm -f conftest.er1 | |
11776 | cat conftest.err >&5 | |
a848cd7e SC |
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11778 | (exit $ac_status); } && | |
7714864e | 11779 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11781 | (eval $ac_try) 2>&5 | |
11782 | ac_status=$? | |
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11784 | (exit $ac_status); }; } && | |
11785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11787 | (eval $ac_try) 2>&5 | |
11788 | ac_status=$? | |
11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11790 | (exit $ac_status); }; }; then | |
11791 | : | |
11792 | else | |
11793 | echo "$as_me: failed program was:" >&5 | |
11794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11795 | ||
11796 | continue | |
11797 | fi | |
ac1cb8d3 | 11798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11799 | cat >conftest.$ac_ext <<_ACEOF |
11800 | /* confdefs.h. */ | |
11801 | _ACEOF | |
11802 | cat confdefs.h >>conftest.$ac_ext | |
11803 | cat >>conftest.$ac_ext <<_ACEOF | |
11804 | /* end confdefs.h. */ | |
11805 | $ac_declaration | |
11806 | int | |
11807 | main () | |
11808 | { | |
11809 | exit (42); | |
11810 | ; | |
11811 | return 0; | |
11812 | } | |
11813 | _ACEOF | |
11814 | rm -f conftest.$ac_objext | |
11815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11817 | ac_status=$? |
ac1cb8d3 VS |
11818 | grep -v '^ *+' conftest.er1 >conftest.err |
11819 | rm -f conftest.er1 | |
11820 | cat conftest.err >&5 | |
a848cd7e SC |
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11822 | (exit $ac_status); } && | |
7714864e | 11823 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11825 | (eval $ac_try) 2>&5 | |
11826 | ac_status=$? | |
11827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11828 | (exit $ac_status); }; } && | |
11829 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11831 | (eval $ac_try) 2>&5 | |
11832 | ac_status=$? | |
11833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11834 | (exit $ac_status); }; }; then | |
11835 | break | |
11836 | else | |
11837 | echo "$as_me: failed program was:" >&5 | |
11838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11839 | ||
11840 | fi | |
ac1cb8d3 | 11841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11842 | done |
11843 | rm -f conftest* | |
11844 | if test -n "$ac_declaration"; then | |
11845 | echo '#ifdef __cplusplus' >>confdefs.h | |
11846 | echo $ac_declaration >>confdefs.h | |
11847 | echo '#endif' >>confdefs.h | |
11848 | fi | |
11849 | ||
11850 | ac_ext=cc | |
11851 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11852 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11853 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11854 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11855 | ||
11856 | ||
11857 | ac_ext=c | |
11858 | ac_cpp='$CPP $CPPFLAGS' | |
11859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11862 | ||
11863 | ||
a848cd7e SC |
11864 | if test -n "$ac_tool_prefix"; then |
11865 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11866 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11869 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11871 | else | |
11872 | if test -n "$RANLIB"; then | |
11873 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11874 | else | |
11875 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11876 | for as_dir in $PATH | |
11877 | do | |
11878 | IFS=$as_save_IFS | |
11879 | test -z "$as_dir" && as_dir=. | |
11880 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11881 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11882 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11883 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11884 | break 2 | |
11885 | fi | |
11886 | done | |
11887 | done | |
11888 | ||
11889 | fi | |
11890 | fi | |
11891 | RANLIB=$ac_cv_prog_RANLIB | |
11892 | if test -n "$RANLIB"; then | |
11893 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11894 | echo "${ECHO_T}$RANLIB" >&6 | |
11895 | else | |
11896 | echo "$as_me:$LINENO: result: no" >&5 | |
11897 | echo "${ECHO_T}no" >&6 | |
11898 | fi | |
11899 | ||
11900 | fi | |
11901 | if test -z "$ac_cv_prog_RANLIB"; then | |
11902 | ac_ct_RANLIB=$RANLIB | |
11903 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11904 | set dummy ranlib; ac_word=$2 | |
11905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11907 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11909 | else | |
11910 | if test -n "$ac_ct_RANLIB"; then | |
11911 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11912 | else | |
11913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11914 | for as_dir in $PATH | |
11915 | do | |
11916 | IFS=$as_save_IFS | |
11917 | test -z "$as_dir" && as_dir=. | |
11918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11920 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11922 | break 2 | |
11923 | fi | |
11924 | done | |
11925 | done | |
11926 | ||
11927 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11928 | fi | |
11929 | fi | |
11930 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11931 | if test -n "$ac_ct_RANLIB"; then | |
11932 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11933 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11934 | else | |
11935 | echo "$as_me:$LINENO: result: no" >&5 | |
11936 | echo "${ECHO_T}no" >&6 | |
11937 | fi | |
11938 | ||
11939 | RANLIB=$ac_ct_RANLIB | |
11940 | else | |
11941 | RANLIB="$ac_cv_prog_RANLIB" | |
11942 | fi | |
11943 | ||
11944 | ||
11945 | # Extract the first word of "ar", so it can be a program name with args. | |
11946 | set dummy ar; ac_word=$2 | |
11947 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11948 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11949 | if test "${ac_cv_prog_AR+set}" = set; then | |
11950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11951 | else | |
11952 | if test -n "$AR"; then | |
11953 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11954 | else | |
11955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11956 | for as_dir in $PATH | |
11957 | do | |
11958 | IFS=$as_save_IFS | |
11959 | test -z "$as_dir" && as_dir=. | |
11960 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11961 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11962 | ac_cv_prog_AR="ar" | |
11963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11964 | break 2 | |
11965 | fi | |
11966 | done | |
11967 | done | |
11968 | ||
11969 | fi | |
11970 | fi | |
11971 | AR=$ac_cv_prog_AR | |
11972 | if test -n "$AR"; then | |
11973 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11974 | echo "${ECHO_T}$AR" >&6 | |
11975 | else | |
11976 | echo "$as_me:$LINENO: result: no" >&5 | |
11977 | echo "${ECHO_T}no" >&6 | |
11978 | fi | |
11979 | ||
11980 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
11981 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
11982 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
11983 | { (exit 1); exit 1; }; } |
11984 | fi | |
11985 | ||
11986 | # Find a good install program. We prefer a C program (faster), | |
11987 | # so one script is as good as another. But avoid the broken or | |
11988 | # incompatible versions: | |
11989 | # SysV /etc/install, /usr/sbin/install | |
11990 | # SunOS /usr/etc/install | |
11991 | # IRIX /sbin/install | |
11992 | # AIX /bin/install | |
11993 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11994 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11995 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11996 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 11997 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
11998 | # ./install, which can be erroneously created by make from ./install.sh. |
11999 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12000 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12001 | if test -z "$INSTALL"; then | |
12002 | if test "${ac_cv_path_install+set}" = set; then | |
12003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12004 | else | |
12005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12006 | for as_dir in $PATH | |
12007 | do | |
12008 | IFS=$as_save_IFS | |
12009 | test -z "$as_dir" && as_dir=. | |
12010 | # Account for people who put trailing slashes in PATH elements. | |
12011 | case $as_dir/ in | |
12012 | ./ | .// | /cC/* | \ | |
12013 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12014 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12015 | /usr/ucb/* ) ;; |
12016 | *) | |
12017 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12018 | # Don't use installbsd from OSF since it installs stuff as root | |
12019 | # by default. | |
12020 | for ac_prog in ginstall scoinst install; do | |
12021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12022 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12023 | if test $ac_prog = install && | |
12024 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12025 | # AIX install. It has an incompatible calling convention. | |
12026 | : | |
12027 | elif test $ac_prog = install && | |
12028 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12029 | # program-specific install script used by HP pwplus--don't use. | |
12030 | : | |
12031 | else | |
12032 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12033 | break 3 | |
12034 | fi | |
12035 | fi | |
a848cd7e SC |
12036 | done |
12037 | done | |
12038 | ;; | |
12039 | esac | |
12040 | done | |
12041 | ||
12042 | ||
12043 | fi | |
12044 | if test "${ac_cv_path_install+set}" = set; then | |
12045 | INSTALL=$ac_cv_path_install | |
12046 | else | |
12047 | # As a last resort, use the slow shell script. We don't cache a | |
12048 | # path for INSTALL within a source directory, because that will | |
12049 | # break other packages using the cache if that directory is | |
12050 | # removed, or if the path is relative. | |
12051 | INSTALL=$ac_install_sh | |
12052 | fi | |
12053 | fi | |
12054 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12055 | echo "${ECHO_T}$INSTALL" >&6 | |
12056 | ||
12057 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12058 | # It thinks the first close brace ends the variable substitution. | |
12059 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12060 | ||
12061 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12062 | ||
12063 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12064 | ||
12065 | ||
12066 | case ${INSTALL} in | |
12067 | /* ) # Absolute | |
12068 | ;; | |
12069 | ?:* ) # Drive letter, considered as absolute. | |
12070 | ;; | |
12071 | *) | |
12072 | INSTALL=`pwd`/${INSTALL} ;; | |
12073 | esac | |
12074 | ||
a848cd7e SC |
12075 | |
12076 | case "${host}" in | |
12077 | ||
12078 | powerpc-*-darwin* ) | |
12079 | INSTALL_PROGRAM="cp -fp" | |
12080 | INSTALL_DATA="cp -fp" | |
12081 | ;; | |
12082 | *) | |
12083 | ;; | |
12084 | esac | |
12085 | ||
12086 | # Extract the first word of "strip", so it can be a program name with args. | |
12087 | set dummy strip; ac_word=$2 | |
12088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12090 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12092 | else | |
12093 | if test -n "$STRIP"; then | |
12094 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12095 | else | |
12096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12097 | for as_dir in $PATH | |
12098 | do | |
12099 | IFS=$as_save_IFS | |
12100 | test -z "$as_dir" && as_dir=. | |
12101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12103 | ac_cv_prog_STRIP="strip" | |
12104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12105 | break 2 | |
12106 | fi | |
12107 | done | |
12108 | done | |
12109 | ||
12110 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12111 | fi | |
12112 | fi | |
12113 | STRIP=$ac_cv_prog_STRIP | |
12114 | if test -n "$STRIP"; then | |
12115 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12116 | echo "${ECHO_T}$STRIP" >&6 | |
12117 | else | |
12118 | echo "$as_me:$LINENO: result: no" >&5 | |
12119 | echo "${ECHO_T}no" >&6 | |
12120 | fi | |
12121 | ||
12122 | ||
12123 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12124 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12125 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12127 | else | |
12128 | ||
12129 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12130 | egrep -s GNU > /dev/null); then | |
12131 | wx_cv_prog_makeisgnu="yes" | |
12132 | else | |
12133 | wx_cv_prog_makeisgnu="no" | |
12134 | fi | |
12135 | ||
12136 | fi | |
12137 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12138 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12139 | ||
12140 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12141 | IF_GNU_MAKE="" | |
12142 | else | |
12143 | IF_GNU_MAKE="#" | |
12144 | fi | |
12145 | ||
12146 | ||
12147 | ||
12148 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12149 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12150 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12151 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12153 | else | |
12154 | ||
12155 | cat - << EOF > confMake | |
12156 | check : file | |
12157 | cp \$? \$@ | |
12158 | cp \$? final_file | |
12159 | EOF | |
12160 | ||
12161 | if test ! -d sub ; then | |
12162 | mkdir sub | |
12163 | fi | |
12164 | echo dummy > sub/file | |
12165 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12166 | RESULT=$? | |
12167 | rm -f sub/file check final_file confMake | |
12168 | rmdir sub | |
12169 | if test "$RESULT" = 0; then | |
12170 | wx_cv_prog_makevpath="yes" | |
12171 | else | |
12172 | wx_cv_prog_makevpath="no" | |
12173 | fi | |
12174 | ||
12175 | fi | |
12176 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12177 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12178 | ||
12179 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12180 | { { echo "$as_me:$LINENO: error: | |
12181 | You need a make-utility that is able to use the variable | |
12182 | VPATH correctly. | |
12183 | If your version of make does not support VPATH correctly, | |
12184 | please install GNU-make (possibly as gmake), and start | |
12185 | configure with the following command: | |
12186 | export MAKE=gmake; ./configure for sh-type shells | |
12187 | setenv MAKE gmake; ./configure for csh-type shells | |
12188 | Also please do remember to use gmake in this case every time | |
12189 | you are trying to compile. | |
12190 | " >&5 | |
12191 | echo "$as_me: error: | |
12192 | You need a make-utility that is able to use the variable | |
12193 | VPATH correctly. | |
12194 | If your version of make does not support VPATH correctly, | |
12195 | please install GNU-make (possibly as gmake), and start | |
12196 | configure with the following command: | |
12197 | export MAKE=gmake; ./configure for sh-type shells | |
12198 | setenv MAKE gmake; ./configure for csh-type shells | |
12199 | Also please do remember to use gmake in this case every time | |
12200 | you are trying to compile. | |
12201 | " >&2;} | |
12202 | { (exit 1); exit 1; }; } | |
12203 | fi fi | |
12204 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12205 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12206 | LN_S=$as_ln_s | |
12207 | if test "$LN_S" = "ln -s"; then | |
12208 | echo "$as_me:$LINENO: result: yes" >&5 | |
12209 | echo "${ECHO_T}yes" >&6 | |
12210 | else | |
12211 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12212 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12213 | fi | |
12214 | ||
12215 | ||
12216 | ||
12217 | case "${host}" in | |
12218 | *-pc-os2_emx | *-pc-os2-emx ) | |
12219 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12220 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12221 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12222 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12224 | else | |
12225 | ac_check_lib_save_LIBS=$LIBS | |
12226 | LIBS="-lcExt $LIBS" | |
12227 | cat >conftest.$ac_ext <<_ACEOF | |
12228 | /* confdefs.h. */ | |
12229 | _ACEOF | |
12230 | cat confdefs.h >>conftest.$ac_ext | |
12231 | cat >>conftest.$ac_ext <<_ACEOF | |
12232 | /* end confdefs.h. */ | |
12233 | ||
12234 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12235 | #ifdef __cplusplus | |
12236 | extern "C" | |
12237 | #endif | |
12238 | /* We use char because int might match the return type of a gcc2 | |
12239 | builtin and then its argument prototype would still apply. */ | |
12240 | char drand48 (); | |
12241 | int | |
12242 | main () | |
12243 | { | |
12244 | drand48 (); | |
12245 | ; | |
12246 | return 0; | |
12247 | } | |
12248 | _ACEOF | |
12249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12251 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12252 | ac_status=$? |
ac1cb8d3 VS |
12253 | grep -v '^ *+' conftest.er1 >conftest.err |
12254 | rm -f conftest.er1 | |
12255 | cat conftest.err >&5 | |
a848cd7e SC |
12256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12257 | (exit $ac_status); } && | |
7714864e | 12258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12260 | (eval $ac_try) 2>&5 | |
12261 | ac_status=$? | |
12262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12263 | (exit $ac_status); }; } && | |
12264 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12266 | (eval $ac_try) 2>&5 | |
12267 | ac_status=$? | |
12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12269 | (exit $ac_status); }; }; then | |
12270 | ac_cv_lib_cExt_drand48=yes | |
12271 | else | |
12272 | echo "$as_me: failed program was:" >&5 | |
12273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12274 | ||
12275 | ac_cv_lib_cExt_drand48=no | |
12276 | fi | |
ac1cb8d3 VS |
12277 | rm -f conftest.err conftest.$ac_objext \ |
12278 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12279 | LIBS=$ac_check_lib_save_LIBS |
12280 | fi | |
12281 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12282 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12283 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12284 | LIBS="$LIBS -lcExt" | |
12285 | fi | |
12286 | ||
12287 | else | |
12288 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12289 | fi | |
12290 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12291 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12292 | if test "${wx_cv_gccversion+set}" = set; then | |
12293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12294 | else | |
12295 | ||
12296 | cat >conftest.$ac_ext <<_ACEOF | |
12297 | /* confdefs.h. */ | |
12298 | _ACEOF | |
12299 | cat confdefs.h >>conftest.$ac_ext | |
12300 | cat >>conftest.$ac_ext <<_ACEOF | |
12301 | /* end confdefs.h. */ | |
12302 | ||
12303 | int | |
12304 | main () | |
12305 | { | |
12306 | ||
12307 | #if (__GNUC__ < 3) | |
12308 | #error old gcc | |
12309 | #endif | |
12310 | ||
12311 | ; | |
12312 | return 0; | |
12313 | } | |
12314 | _ACEOF | |
12315 | rm -f conftest.$ac_objext | |
12316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12317 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12318 | ac_status=$? |
ac1cb8d3 VS |
12319 | grep -v '^ *+' conftest.er1 >conftest.err |
12320 | rm -f conftest.er1 | |
12321 | cat conftest.err >&5 | |
a848cd7e SC |
12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12323 | (exit $ac_status); } && | |
7714864e | 12324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12326 | (eval $ac_try) 2>&5 | |
12327 | ac_status=$? | |
12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12329 | (exit $ac_status); }; } && | |
12330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12332 | (eval $ac_try) 2>&5 | |
12333 | ac_status=$? | |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12335 | (exit $ac_status); }; }; then | |
12336 | ||
12337 | cat >conftest.$ac_ext <<_ACEOF | |
12338 | /* confdefs.h. */ | |
12339 | _ACEOF | |
12340 | cat confdefs.h >>conftest.$ac_ext | |
12341 | cat >>conftest.$ac_ext <<_ACEOF | |
12342 | /* end confdefs.h. */ | |
12343 | ||
12344 | int | |
12345 | main () | |
12346 | { | |
12347 | ||
12348 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12349 | #error intermediate gcc | |
12350 | #endif | |
12351 | ||
12352 | ; | |
12353 | return 0; | |
12354 | } | |
12355 | _ACEOF | |
12356 | rm -f conftest.$ac_objext | |
12357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12359 | ac_status=$? |
ac1cb8d3 VS |
12360 | grep -v '^ *+' conftest.er1 >conftest.err |
12361 | rm -f conftest.er1 | |
12362 | cat conftest.err >&5 | |
a848cd7e SC |
12363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12364 | (exit $ac_status); } && | |
7714864e | 12365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12367 | (eval $ac_try) 2>&5 | |
12368 | ac_status=$? | |
12369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12370 | (exit $ac_status); }; } && | |
12371 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12373 | (eval $ac_try) 2>&5 | |
12374 | ac_status=$? | |
12375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12376 | (exit $ac_status); }; }; then | |
12377 | ||
12378 | wx_cv_gccversion=Innotek | |
12379 | ||
12380 | else | |
12381 | echo "$as_me: failed program was:" >&5 | |
12382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12383 | ||
12384 | ||
12385 | wx_cv_gccversion=3 | |
12386 | ||
12387 | ||
12388 | fi | |
ac1cb8d3 | 12389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12390 | |
12391 | else | |
12392 | echo "$as_me: failed program was:" >&5 | |
12393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12394 | ||
12395 | ||
12396 | wx_cv_gccversion=2 | |
12397 | ||
12398 | ||
12399 | fi | |
ac1cb8d3 | 12400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12401 | |
12402 | fi | |
12403 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12404 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12405 | if test "$wx_cv_gccversion" = "2"; then | |
12406 | LIBS="$LIBS -lstdcpp" | |
12407 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12408 | else | |
12409 | if test "$wx_cv_gccversion" = "3"; then | |
12410 | LIBS="$LIBS -lstdcxx" | |
12411 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12412 | else | |
12413 | LIBS="$LIBS -lstdc++" | |
12414 | fi | |
12415 | fi | |
12416 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12417 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12418 | fi |
12419 | ;; | |
12420 | *) | |
12421 | ||
12422 | ||
12423 | ||
12424 | ac_ext=cc | |
12425 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12429 | ||
12430 | ||
12431 | ||
12432 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12433 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12434 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12436 | else | |
12437 | ||
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | /* confdefs.h. */ | |
12440 | _ACEOF | |
12441 | cat confdefs.h >>conftest.$ac_ext | |
12442 | cat >>conftest.$ac_ext <<_ACEOF | |
12443 | /* end confdefs.h. */ | |
12444 | ||
12445 | #include <string.h> | |
12446 | ||
12447 | int | |
12448 | main () | |
12449 | { | |
12450 | ||
12451 | strcasecmp("foo", "bar"); | |
12452 | ||
12453 | ; | |
12454 | return 0; | |
12455 | } | |
12456 | _ACEOF | |
12457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12459 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12460 | ac_status=$? |
ac1cb8d3 VS |
12461 | grep -v '^ *+' conftest.er1 >conftest.err |
12462 | rm -f conftest.er1 | |
12463 | cat conftest.err >&5 | |
a848cd7e SC |
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12465 | (exit $ac_status); } && | |
7714864e | 12466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12468 | (eval $ac_try) 2>&5 | |
12469 | ac_status=$? | |
12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12471 | (exit $ac_status); }; } && | |
12472 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
12478 | ac_cv_string_strcasecmp=yes | |
12479 | else | |
12480 | echo "$as_me: failed program was:" >&5 | |
12481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12482 | ||
12483 | ac_cv_string_strcasecmp=no | |
12484 | ||
12485 | fi | |
ac1cb8d3 VS |
12486 | rm -f conftest.err conftest.$ac_objext \ |
12487 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12488 | |
12489 | fi | |
12490 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12491 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12492 | ||
12493 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12494 | cat >>confdefs.h <<\_ACEOF | |
12495 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12496 | _ACEOF | |
12497 | ||
12498 | else | |
12499 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12500 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12501 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12503 | else | |
12504 | ||
12505 | cat >conftest.$ac_ext <<_ACEOF | |
12506 | /* confdefs.h. */ | |
12507 | _ACEOF | |
12508 | cat confdefs.h >>conftest.$ac_ext | |
12509 | cat >>conftest.$ac_ext <<_ACEOF | |
12510 | /* end confdefs.h. */ | |
12511 | ||
12512 | #include <strings.h> | |
12513 | ||
12514 | int | |
12515 | main () | |
12516 | { | |
12517 | ||
12518 | strcasecmp("foo", "bar"); | |
12519 | ||
12520 | ; | |
12521 | return 0; | |
12522 | } | |
12523 | _ACEOF | |
12524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12526 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12527 | ac_status=$? |
ac1cb8d3 VS |
12528 | grep -v '^ *+' conftest.er1 >conftest.err |
12529 | rm -f conftest.er1 | |
12530 | cat conftest.err >&5 | |
a848cd7e SC |
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12532 | (exit $ac_status); } && | |
7714864e | 12533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12535 | (eval $ac_try) 2>&5 | |
12536 | ac_status=$? | |
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12538 | (exit $ac_status); }; } && | |
12539 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12541 | (eval $ac_try) 2>&5 | |
12542 | ac_status=$? | |
12543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12544 | (exit $ac_status); }; }; then | |
12545 | ac_cv_strings_strcasecmp=yes | |
12546 | else | |
12547 | echo "$as_me: failed program was:" >&5 | |
12548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12549 | ||
12550 | ac_cv_strings_strcasecmp=no | |
12551 | ||
12552 | fi | |
ac1cb8d3 VS |
12553 | rm -f conftest.err conftest.$ac_objext \ |
12554 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12555 | |
12556 | fi | |
12557 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12558 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12559 | ||
0c3c69fc | 12560 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12561 | cat >>confdefs.h <<\_ACEOF |
12562 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12563 | _ACEOF | |
12564 | ||
12565 | else | |
12566 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12567 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12568 | { (exit 1); exit 1; }; } | |
12569 | fi | |
12570 | fi | |
12571 | ||
12572 | ac_ext=c | |
12573 | ac_cpp='$CPP $CPPFLAGS' | |
12574 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12575 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12576 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12577 | ||
12578 | ;; | |
12579 | esac | |
12580 | ||
12581 | ||
12582 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12583 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12584 | if test "${ac_cv_header_stdc+set}" = set; then | |
12585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12586 | else | |
12587 | cat >conftest.$ac_ext <<_ACEOF | |
12588 | /* confdefs.h. */ | |
12589 | _ACEOF | |
12590 | cat confdefs.h >>conftest.$ac_ext | |
12591 | cat >>conftest.$ac_ext <<_ACEOF | |
12592 | /* end confdefs.h. */ | |
12593 | #include <stdlib.h> | |
12594 | #include <stdarg.h> | |
12595 | #include <string.h> | |
12596 | #include <float.h> | |
12597 | ||
12598 | int | |
12599 | main () | |
12600 | { | |
12601 | ||
12602 | ; | |
12603 | return 0; | |
12604 | } | |
12605 | _ACEOF | |
12606 | rm -f conftest.$ac_objext | |
12607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12608 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12609 | ac_status=$? |
ac1cb8d3 VS |
12610 | grep -v '^ *+' conftest.er1 >conftest.err |
12611 | rm -f conftest.er1 | |
12612 | cat conftest.err >&5 | |
a848cd7e SC |
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12614 | (exit $ac_status); } && | |
7714864e | 12615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12617 | (eval $ac_try) 2>&5 | |
12618 | ac_status=$? | |
12619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12620 | (exit $ac_status); }; } && | |
12621 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12623 | (eval $ac_try) 2>&5 | |
12624 | ac_status=$? | |
12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12626 | (exit $ac_status); }; }; then | |
12627 | ac_cv_header_stdc=yes | |
12628 | else | |
12629 | echo "$as_me: failed program was:" >&5 | |
12630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12631 | ||
12632 | ac_cv_header_stdc=no | |
12633 | fi | |
ac1cb8d3 | 12634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12635 | |
12636 | if test $ac_cv_header_stdc = yes; then | |
12637 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12638 | cat >conftest.$ac_ext <<_ACEOF | |
12639 | /* confdefs.h. */ | |
12640 | _ACEOF | |
12641 | cat confdefs.h >>conftest.$ac_ext | |
12642 | cat >>conftest.$ac_ext <<_ACEOF | |
12643 | /* end confdefs.h. */ | |
12644 | #include <string.h> | |
12645 | ||
12646 | _ACEOF | |
12647 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12648 | $EGREP "memchr" >/dev/null 2>&1; then | |
12649 | : | |
12650 | else | |
12651 | ac_cv_header_stdc=no | |
12652 | fi | |
12653 | rm -f conftest* | |
12654 | ||
12655 | fi | |
12656 | ||
12657 | if test $ac_cv_header_stdc = yes; then | |
12658 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12659 | cat >conftest.$ac_ext <<_ACEOF | |
12660 | /* confdefs.h. */ | |
12661 | _ACEOF | |
12662 | cat confdefs.h >>conftest.$ac_ext | |
12663 | cat >>conftest.$ac_ext <<_ACEOF | |
12664 | /* end confdefs.h. */ | |
12665 | #include <stdlib.h> | |
12666 | ||
12667 | _ACEOF | |
12668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12669 | $EGREP "free" >/dev/null 2>&1; then | |
12670 | : | |
12671 | else | |
12672 | ac_cv_header_stdc=no | |
12673 | fi | |
12674 | rm -f conftest* | |
12675 | ||
12676 | fi | |
12677 | ||
12678 | if test $ac_cv_header_stdc = yes; then | |
12679 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12680 | if test "$cross_compiling" = yes; then | |
12681 | : | |
12682 | else | |
12683 | cat >conftest.$ac_ext <<_ACEOF | |
12684 | /* confdefs.h. */ | |
12685 | _ACEOF | |
12686 | cat confdefs.h >>conftest.$ac_ext | |
12687 | cat >>conftest.$ac_ext <<_ACEOF | |
12688 | /* end confdefs.h. */ | |
12689 | #include <ctype.h> | |
12690 | #if ((' ' & 0x0FF) == 0x020) | |
12691 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12692 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12693 | #else | |
12694 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12695 | (('a' <= (c) && (c) <= 'i') \ |
12696 | || ('j' <= (c) && (c) <= 'r') \ | |
12697 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12698 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12699 | #endif | |
12700 | ||
12701 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12702 | int | |
12703 | main () | |
12704 | { | |
12705 | int i; | |
12706 | for (i = 0; i < 256; i++) | |
12707 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12708 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12709 | exit(2); |
12710 | exit (0); | |
12711 | } | |
12712 | _ACEOF | |
12713 | rm -f conftest$ac_exeext | |
12714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12715 | (eval $ac_link) 2>&5 | |
12716 | ac_status=$? | |
12717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12720 | (eval $ac_try) 2>&5 | |
12721 | ac_status=$? | |
12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12723 | (exit $ac_status); }; }; then | |
12724 | : | |
12725 | else | |
12726 | echo "$as_me: program exited with status $ac_status" >&5 | |
12727 | echo "$as_me: failed program was:" >&5 | |
12728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12729 | ||
12730 | ( exit $ac_status ) | |
12731 | ac_cv_header_stdc=no | |
12732 | fi | |
ac1cb8d3 | 12733 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12734 | fi |
12735 | fi | |
12736 | fi | |
12737 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12738 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12739 | if test $ac_cv_header_stdc = yes; then | |
12740 | ||
12741 | cat >>confdefs.h <<\_ACEOF | |
12742 | #define STDC_HEADERS 1 | |
12743 | _ACEOF | |
12744 | ||
12745 | fi | |
12746 | ||
12747 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12748 | ||
12749 | ||
12750 | ||
12751 | ||
12752 | ||
12753 | ||
12754 | ||
12755 | ||
12756 | ||
12757 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12758 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12759 | do |
12760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12765 | else | |
12766 | cat >conftest.$ac_ext <<_ACEOF | |
12767 | /* confdefs.h. */ | |
12768 | _ACEOF | |
12769 | cat confdefs.h >>conftest.$ac_ext | |
12770 | cat >>conftest.$ac_ext <<_ACEOF | |
12771 | /* end confdefs.h. */ | |
12772 | $ac_includes_default | |
12773 | ||
12774 | #include <$ac_header> | |
12775 | _ACEOF | |
12776 | rm -f conftest.$ac_objext | |
12777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12778 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12779 | ac_status=$? |
ac1cb8d3 VS |
12780 | grep -v '^ *+' conftest.er1 >conftest.err |
12781 | rm -f conftest.er1 | |
12782 | cat conftest.err >&5 | |
a848cd7e SC |
12783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12784 | (exit $ac_status); } && | |
7714864e | 12785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12787 | (eval $ac_try) 2>&5 | |
12788 | ac_status=$? | |
12789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12790 | (exit $ac_status); }; } && | |
12791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12793 | (eval $ac_try) 2>&5 | |
12794 | ac_status=$? | |
12795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12796 | (exit $ac_status); }; }; then | |
12797 | eval "$as_ac_Header=yes" | |
12798 | else | |
12799 | echo "$as_me: failed program was:" >&5 | |
12800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12801 | ||
12802 | eval "$as_ac_Header=no" | |
12803 | fi | |
ac1cb8d3 | 12804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12805 | fi |
12806 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12807 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12808 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12809 | cat >>confdefs.h <<_ACEOF | |
12810 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12811 | _ACEOF | |
12812 | ||
12813 | fi | |
12814 | ||
12815 | done | |
12816 | ||
12817 | ||
12818 | ||
12819 | for ac_header in stdlib.h | |
12820 | do | |
12821 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12822 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12823 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12827 | fi | |
12828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12830 | else | |
12831 | # Is the header compilable? | |
12832 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12833 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12834 | cat >conftest.$ac_ext <<_ACEOF | |
12835 | /* confdefs.h. */ | |
12836 | _ACEOF | |
12837 | cat confdefs.h >>conftest.$ac_ext | |
12838 | cat >>conftest.$ac_ext <<_ACEOF | |
12839 | /* end confdefs.h. */ | |
12840 | $ac_includes_default | |
12841 | #include <$ac_header> | |
12842 | _ACEOF | |
12843 | rm -f conftest.$ac_objext | |
12844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12845 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12846 | ac_status=$? |
ac1cb8d3 VS |
12847 | grep -v '^ *+' conftest.er1 >conftest.err |
12848 | rm -f conftest.er1 | |
12849 | cat conftest.err >&5 | |
a848cd7e SC |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12851 | (exit $ac_status); } && | |
7714864e | 12852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12854 | (eval $ac_try) 2>&5 | |
12855 | ac_status=$? | |
12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12857 | (exit $ac_status); }; } && | |
12858 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12860 | (eval $ac_try) 2>&5 | |
12861 | ac_status=$? | |
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12863 | (exit $ac_status); }; }; then | |
12864 | ac_header_compiler=yes | |
12865 | else | |
12866 | echo "$as_me: failed program was:" >&5 | |
12867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12868 | ||
12869 | ac_header_compiler=no | |
12870 | fi | |
ac1cb8d3 | 12871 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12872 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12873 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12874 | ||
12875 | # Is the header present? | |
12876 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12877 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12878 | cat >conftest.$ac_ext <<_ACEOF | |
12879 | /* confdefs.h. */ | |
12880 | _ACEOF | |
12881 | cat confdefs.h >>conftest.$ac_ext | |
12882 | cat >>conftest.$ac_ext <<_ACEOF | |
12883 | /* end confdefs.h. */ | |
12884 | #include <$ac_header> | |
12885 | _ACEOF | |
12886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12888 | ac_status=$? | |
12889 | grep -v '^ *+' conftest.er1 >conftest.err | |
12890 | rm -f conftest.er1 | |
12891 | cat conftest.err >&5 | |
12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12893 | (exit $ac_status); } >/dev/null; then | |
12894 | if test -s conftest.err; then | |
12895 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12896 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12897 | else |
12898 | ac_cpp_err= | |
12899 | fi | |
12900 | else | |
12901 | ac_cpp_err=yes | |
12902 | fi | |
12903 | if test -z "$ac_cpp_err"; then | |
12904 | ac_header_preproc=yes | |
12905 | else | |
12906 | echo "$as_me: failed program was:" >&5 | |
12907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12908 | ||
12909 | ac_header_preproc=no | |
12910 | fi | |
12911 | rm -f conftest.err conftest.$ac_ext | |
12912 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12913 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12914 | ||
12915 | # So? What about this header? | |
ac1cb8d3 VS |
12916 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12917 | yes:no: ) | |
a848cd7e SC |
12918 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12919 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12921 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12922 | ac_header_preproc=yes | |
a848cd7e | 12923 | ;; |
ac1cb8d3 | 12924 | no:yes:* ) |
a848cd7e SC |
12925 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12926 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12927 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12928 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12929 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12930 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12931 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12932 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
12933 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12934 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
12935 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
12936 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
12937 | ( |
12938 | cat <<\_ASBOX | |
ac1cb8d3 VS |
12939 | ## ----------------------------------------- ## |
12940 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
12941 | ## ----------------------------------------- ## | |
a848cd7e SC |
12942 | _ASBOX |
12943 | ) | | |
12944 | sed "s/^/$as_me: WARNING: /" >&2 | |
12945 | ;; | |
12946 | esac | |
12947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12951 | else | |
ac1cb8d3 | 12952 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
12953 | fi |
12954 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12955 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12956 | ||
12957 | fi | |
12958 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12959 | cat >>confdefs.h <<_ACEOF | |
12960 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12961 | _ACEOF | |
12962 | ||
12963 | fi | |
12964 | ||
12965 | done | |
12966 | ||
12967 | ||
12968 | for ac_header in malloc.h | |
12969 | do | |
12970 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12976 | fi | |
12977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12979 | else | |
12980 | # Is the header compilable? | |
12981 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12982 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12983 | cat >conftest.$ac_ext <<_ACEOF | |
12984 | /* confdefs.h. */ | |
12985 | _ACEOF | |
12986 | cat confdefs.h >>conftest.$ac_ext | |
12987 | cat >>conftest.$ac_ext <<_ACEOF | |
12988 | /* end confdefs.h. */ | |
12989 | $ac_includes_default | |
12990 | #include <$ac_header> | |
12991 | _ACEOF | |
12992 | rm -f conftest.$ac_objext | |
12993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12994 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12995 | ac_status=$? |
ac1cb8d3 VS |
12996 | grep -v '^ *+' conftest.er1 >conftest.err |
12997 | rm -f conftest.er1 | |
12998 | cat conftest.err >&5 | |
a848cd7e SC |
12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13000 | (exit $ac_status); } && | |
7714864e | 13001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13003 | (eval $ac_try) 2>&5 | |
13004 | ac_status=$? | |
13005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13006 | (exit $ac_status); }; } && | |
13007 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13009 | (eval $ac_try) 2>&5 | |
13010 | ac_status=$? | |
13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13012 | (exit $ac_status); }; }; then | |
13013 | ac_header_compiler=yes | |
13014 | else | |
13015 | echo "$as_me: failed program was:" >&5 | |
13016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13017 | ||
13018 | ac_header_compiler=no | |
13019 | fi | |
ac1cb8d3 | 13020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13021 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13022 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13023 | ||
13024 | # Is the header present? | |
13025 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13026 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13027 | cat >conftest.$ac_ext <<_ACEOF | |
13028 | /* confdefs.h. */ | |
13029 | _ACEOF | |
13030 | cat confdefs.h >>conftest.$ac_ext | |
13031 | cat >>conftest.$ac_ext <<_ACEOF | |
13032 | /* end confdefs.h. */ | |
13033 | #include <$ac_header> | |
13034 | _ACEOF | |
13035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13037 | ac_status=$? | |
13038 | grep -v '^ *+' conftest.er1 >conftest.err | |
13039 | rm -f conftest.er1 | |
13040 | cat conftest.err >&5 | |
13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13042 | (exit $ac_status); } >/dev/null; then | |
13043 | if test -s conftest.err; then | |
13044 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13045 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13046 | else |
13047 | ac_cpp_err= | |
13048 | fi | |
13049 | else | |
13050 | ac_cpp_err=yes | |
13051 | fi | |
13052 | if test -z "$ac_cpp_err"; then | |
13053 | ac_header_preproc=yes | |
13054 | else | |
13055 | echo "$as_me: failed program was:" >&5 | |
13056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13057 | ||
13058 | ac_header_preproc=no | |
13059 | fi | |
13060 | rm -f conftest.err conftest.$ac_ext | |
13061 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13062 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13063 | ||
13064 | # So? What about this header? | |
ac1cb8d3 VS |
13065 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13066 | yes:no: ) | |
a848cd7e SC |
13067 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13068 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13070 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13071 | ac_header_preproc=yes | |
a848cd7e | 13072 | ;; |
ac1cb8d3 | 13073 | no:yes:* ) |
a848cd7e SC |
13074 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13075 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13076 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13077 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13078 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13079 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13080 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13081 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13082 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13083 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13084 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13085 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13086 | ( |
13087 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13088 | ## ----------------------------------------- ## |
13089 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13090 | ## ----------------------------------------- ## | |
a848cd7e SC |
13091 | _ASBOX |
13092 | ) | | |
13093 | sed "s/^/$as_me: WARNING: /" >&2 | |
13094 | ;; | |
13095 | esac | |
13096 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13100 | else | |
ac1cb8d3 | 13101 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13102 | fi |
13103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13104 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13105 | ||
13106 | fi | |
13107 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13108 | cat >>confdefs.h <<_ACEOF | |
13109 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13110 | _ACEOF | |
13111 | ||
13112 | fi | |
13113 | ||
13114 | done | |
13115 | ||
13116 | ||
13117 | for ac_header in unistd.h | |
13118 | do | |
13119 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13120 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13121 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13122 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13123 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13125 | fi | |
13126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13127 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13128 | else | |
13129 | # Is the header compilable? | |
13130 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13131 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13132 | cat >conftest.$ac_ext <<_ACEOF | |
13133 | /* confdefs.h. */ | |
13134 | _ACEOF | |
13135 | cat confdefs.h >>conftest.$ac_ext | |
13136 | cat >>conftest.$ac_ext <<_ACEOF | |
13137 | /* end confdefs.h. */ | |
13138 | $ac_includes_default | |
13139 | #include <$ac_header> | |
13140 | _ACEOF | |
13141 | rm -f conftest.$ac_objext | |
13142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13144 | ac_status=$? |
ac1cb8d3 VS |
13145 | grep -v '^ *+' conftest.er1 >conftest.err |
13146 | rm -f conftest.er1 | |
13147 | cat conftest.err >&5 | |
a848cd7e SC |
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13149 | (exit $ac_status); } && | |
7714864e | 13150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13152 | (eval $ac_try) 2>&5 | |
13153 | ac_status=$? | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); }; } && | |
13156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13158 | (eval $ac_try) 2>&5 | |
13159 | ac_status=$? | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13161 | (exit $ac_status); }; }; then | |
13162 | ac_header_compiler=yes | |
13163 | else | |
13164 | echo "$as_me: failed program was:" >&5 | |
13165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13166 | ||
13167 | ac_header_compiler=no | |
13168 | fi | |
ac1cb8d3 | 13169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13170 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13171 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13172 | ||
13173 | # Is the header present? | |
13174 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13175 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13176 | cat >conftest.$ac_ext <<_ACEOF | |
13177 | /* confdefs.h. */ | |
13178 | _ACEOF | |
13179 | cat confdefs.h >>conftest.$ac_ext | |
13180 | cat >>conftest.$ac_ext <<_ACEOF | |
13181 | /* end confdefs.h. */ | |
13182 | #include <$ac_header> | |
13183 | _ACEOF | |
13184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13186 | ac_status=$? | |
13187 | grep -v '^ *+' conftest.er1 >conftest.err | |
13188 | rm -f conftest.er1 | |
13189 | cat conftest.err >&5 | |
13190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13191 | (exit $ac_status); } >/dev/null; then | |
13192 | if test -s conftest.err; then | |
13193 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13194 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13195 | else |
13196 | ac_cpp_err= | |
13197 | fi | |
13198 | else | |
13199 | ac_cpp_err=yes | |
13200 | fi | |
13201 | if test -z "$ac_cpp_err"; then | |
13202 | ac_header_preproc=yes | |
13203 | else | |
13204 | echo "$as_me: failed program was:" >&5 | |
13205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13206 | ||
13207 | ac_header_preproc=no | |
13208 | fi | |
13209 | rm -f conftest.err conftest.$ac_ext | |
13210 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13211 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13212 | ||
13213 | # So? What about this header? | |
ac1cb8d3 VS |
13214 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13215 | yes:no: ) | |
a848cd7e SC |
13216 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13217 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13219 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13220 | ac_header_preproc=yes | |
a848cd7e | 13221 | ;; |
ac1cb8d3 | 13222 | no:yes:* ) |
a848cd7e SC |
13223 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13224 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13225 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13226 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13227 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13228 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13229 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13230 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13231 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13232 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13233 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13234 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13235 | ( |
13236 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13237 | ## ----------------------------------------- ## |
13238 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13239 | ## ----------------------------------------- ## | |
a848cd7e SC |
13240 | _ASBOX |
13241 | ) | | |
13242 | sed "s/^/$as_me: WARNING: /" >&2 | |
13243 | ;; | |
13244 | esac | |
13245 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13247 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13249 | else | |
ac1cb8d3 | 13250 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13251 | fi |
13252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13254 | ||
13255 | fi | |
13256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13257 | cat >>confdefs.h <<_ACEOF | |
13258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13259 | _ACEOF | |
13260 | ||
13261 | fi | |
13262 | ||
13263 | done | |
13264 | ||
13265 | ||
13266 | for ac_header in wchar.h | |
13267 | do | |
13268 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13269 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13274 | fi | |
13275 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13276 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13277 | else | |
13278 | # Is the header compilable? | |
13279 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13280 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13281 | cat >conftest.$ac_ext <<_ACEOF | |
13282 | /* confdefs.h. */ | |
13283 | _ACEOF | |
13284 | cat confdefs.h >>conftest.$ac_ext | |
13285 | cat >>conftest.$ac_ext <<_ACEOF | |
13286 | /* end confdefs.h. */ | |
13287 | $ac_includes_default | |
13288 | #include <$ac_header> | |
13289 | _ACEOF | |
13290 | rm -f conftest.$ac_objext | |
13291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13292 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13293 | ac_status=$? |
ac1cb8d3 VS |
13294 | grep -v '^ *+' conftest.er1 >conftest.err |
13295 | rm -f conftest.er1 | |
13296 | cat conftest.err >&5 | |
a848cd7e SC |
13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13298 | (exit $ac_status); } && | |
7714864e | 13299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13301 | (eval $ac_try) 2>&5 | |
13302 | ac_status=$? | |
13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13304 | (exit $ac_status); }; } && | |
13305 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13307 | (eval $ac_try) 2>&5 | |
13308 | ac_status=$? | |
13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13310 | (exit $ac_status); }; }; then | |
13311 | ac_header_compiler=yes | |
13312 | else | |
13313 | echo "$as_me: failed program was:" >&5 | |
13314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13315 | ||
13316 | ac_header_compiler=no | |
13317 | fi | |
ac1cb8d3 | 13318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13319 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13320 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13321 | ||
13322 | # Is the header present? | |
13323 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13324 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13325 | cat >conftest.$ac_ext <<_ACEOF | |
13326 | /* confdefs.h. */ | |
13327 | _ACEOF | |
13328 | cat confdefs.h >>conftest.$ac_ext | |
13329 | cat >>conftest.$ac_ext <<_ACEOF | |
13330 | /* end confdefs.h. */ | |
13331 | #include <$ac_header> | |
13332 | _ACEOF | |
13333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13335 | ac_status=$? | |
13336 | grep -v '^ *+' conftest.er1 >conftest.err | |
13337 | rm -f conftest.er1 | |
13338 | cat conftest.err >&5 | |
13339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13340 | (exit $ac_status); } >/dev/null; then | |
13341 | if test -s conftest.err; then | |
13342 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13343 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13344 | else |
13345 | ac_cpp_err= | |
13346 | fi | |
13347 | else | |
13348 | ac_cpp_err=yes | |
13349 | fi | |
13350 | if test -z "$ac_cpp_err"; then | |
13351 | ac_header_preproc=yes | |
13352 | else | |
13353 | echo "$as_me: failed program was:" >&5 | |
13354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13355 | ||
13356 | ac_header_preproc=no | |
13357 | fi | |
13358 | rm -f conftest.err conftest.$ac_ext | |
13359 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13360 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13361 | ||
13362 | # So? What about this header? | |
ac1cb8d3 VS |
13363 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13364 | yes:no: ) | |
a848cd7e SC |
13365 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13366 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13367 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13368 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13369 | ac_header_preproc=yes | |
a848cd7e | 13370 | ;; |
ac1cb8d3 | 13371 | no:yes:* ) |
a848cd7e SC |
13372 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13373 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13374 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13375 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13376 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13377 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13378 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13379 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13381 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13382 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13383 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13384 | ( |
13385 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13386 | ## ----------------------------------------- ## |
13387 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13388 | ## ----------------------------------------- ## | |
a848cd7e SC |
13389 | _ASBOX |
13390 | ) | | |
13391 | sed "s/^/$as_me: WARNING: /" >&2 | |
13392 | ;; | |
13393 | esac | |
13394 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13395 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13398 | else | |
ac1cb8d3 | 13399 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13400 | fi |
13401 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13402 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13403 | ||
13404 | fi | |
13405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13406 | cat >>confdefs.h <<_ACEOF | |
13407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13408 | _ACEOF | |
13409 | ||
13410 | fi | |
13411 | ||
13412 | done | |
13413 | ||
13414 | ||
13415 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13416 | ||
13417 | for ac_header in wcstr.h | |
13418 | do | |
13419 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13421 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13422 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13423 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13425 | fi | |
13426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13428 | else | |
13429 | # Is the header compilable? | |
13430 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13431 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13432 | cat >conftest.$ac_ext <<_ACEOF | |
13433 | /* confdefs.h. */ | |
13434 | _ACEOF | |
13435 | cat confdefs.h >>conftest.$ac_ext | |
13436 | cat >>conftest.$ac_ext <<_ACEOF | |
13437 | /* end confdefs.h. */ | |
13438 | $ac_includes_default | |
13439 | #include <$ac_header> | |
13440 | _ACEOF | |
13441 | rm -f conftest.$ac_objext | |
13442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13443 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13444 | ac_status=$? |
ac1cb8d3 VS |
13445 | grep -v '^ *+' conftest.er1 >conftest.err |
13446 | rm -f conftest.er1 | |
13447 | cat conftest.err >&5 | |
a848cd7e SC |
13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13449 | (exit $ac_status); } && | |
7714864e | 13450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13452 | (eval $ac_try) 2>&5 | |
13453 | ac_status=$? | |
13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13455 | (exit $ac_status); }; } && | |
13456 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13458 | (eval $ac_try) 2>&5 | |
13459 | ac_status=$? | |
13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13461 | (exit $ac_status); }; }; then | |
13462 | ac_header_compiler=yes | |
13463 | else | |
13464 | echo "$as_me: failed program was:" >&5 | |
13465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13466 | ||
13467 | ac_header_compiler=no | |
13468 | fi | |
ac1cb8d3 | 13469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13470 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13471 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13472 | ||
13473 | # Is the header present? | |
13474 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13475 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13476 | cat >conftest.$ac_ext <<_ACEOF | |
13477 | /* confdefs.h. */ | |
13478 | _ACEOF | |
13479 | cat confdefs.h >>conftest.$ac_ext | |
13480 | cat >>conftest.$ac_ext <<_ACEOF | |
13481 | /* end confdefs.h. */ | |
13482 | #include <$ac_header> | |
13483 | _ACEOF | |
13484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13486 | ac_status=$? | |
13487 | grep -v '^ *+' conftest.er1 >conftest.err | |
13488 | rm -f conftest.er1 | |
13489 | cat conftest.err >&5 | |
13490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13491 | (exit $ac_status); } >/dev/null; then | |
13492 | if test -s conftest.err; then | |
13493 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13494 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13495 | else |
13496 | ac_cpp_err= | |
13497 | fi | |
13498 | else | |
13499 | ac_cpp_err=yes | |
13500 | fi | |
13501 | if test -z "$ac_cpp_err"; then | |
13502 | ac_header_preproc=yes | |
13503 | else | |
13504 | echo "$as_me: failed program was:" >&5 | |
13505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13506 | ||
13507 | ac_header_preproc=no | |
13508 | fi | |
13509 | rm -f conftest.err conftest.$ac_ext | |
13510 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13511 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13512 | ||
13513 | # So? What about this header? | |
ac1cb8d3 VS |
13514 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13515 | yes:no: ) | |
a848cd7e SC |
13516 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13517 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13519 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13520 | ac_header_preproc=yes | |
a848cd7e | 13521 | ;; |
ac1cb8d3 | 13522 | no:yes:* ) |
a848cd7e SC |
13523 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13524 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13525 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13526 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13527 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13528 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13529 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13530 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13532 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13533 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13534 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13535 | ( |
13536 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13537 | ## ----------------------------------------- ## |
13538 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13539 | ## ----------------------------------------- ## | |
a848cd7e SC |
13540 | _ASBOX |
13541 | ) | | |
13542 | sed "s/^/$as_me: WARNING: /" >&2 | |
13543 | ;; | |
13544 | esac | |
13545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13549 | else | |
ac1cb8d3 | 13550 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13551 | fi |
13552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13553 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13554 | ||
13555 | fi | |
13556 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13557 | cat >>confdefs.h <<_ACEOF | |
13558 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13559 | _ACEOF | |
13560 | ||
13561 | fi | |
13562 | ||
13563 | done | |
13564 | ||
13565 | fi | |
13566 | ||
13567 | ||
13568 | for ac_header in fnmatch.h | |
13569 | do | |
13570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13576 | fi | |
13577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13579 | else | |
13580 | # Is the header compilable? | |
13581 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13582 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13583 | cat >conftest.$ac_ext <<_ACEOF | |
13584 | /* confdefs.h. */ | |
13585 | _ACEOF | |
13586 | cat confdefs.h >>conftest.$ac_ext | |
13587 | cat >>conftest.$ac_ext <<_ACEOF | |
13588 | /* end confdefs.h. */ | |
13589 | $ac_includes_default | |
13590 | #include <$ac_header> | |
13591 | _ACEOF | |
13592 | rm -f conftest.$ac_objext | |
13593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13594 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13595 | ac_status=$? |
ac1cb8d3 VS |
13596 | grep -v '^ *+' conftest.er1 >conftest.err |
13597 | rm -f conftest.er1 | |
13598 | cat conftest.err >&5 | |
a848cd7e SC |
13599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13600 | (exit $ac_status); } && | |
7714864e | 13601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13603 | (eval $ac_try) 2>&5 | |
13604 | ac_status=$? | |
13605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13606 | (exit $ac_status); }; } && | |
13607 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13609 | (eval $ac_try) 2>&5 | |
13610 | ac_status=$? | |
13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13612 | (exit $ac_status); }; }; then | |
13613 | ac_header_compiler=yes | |
13614 | else | |
13615 | echo "$as_me: failed program was:" >&5 | |
13616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13617 | ||
13618 | ac_header_compiler=no | |
13619 | fi | |
ac1cb8d3 | 13620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13621 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13622 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13623 | ||
13624 | # Is the header present? | |
13625 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13626 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13627 | cat >conftest.$ac_ext <<_ACEOF | |
13628 | /* confdefs.h. */ | |
13629 | _ACEOF | |
13630 | cat confdefs.h >>conftest.$ac_ext | |
13631 | cat >>conftest.$ac_ext <<_ACEOF | |
13632 | /* end confdefs.h. */ | |
13633 | #include <$ac_header> | |
13634 | _ACEOF | |
13635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13637 | ac_status=$? | |
13638 | grep -v '^ *+' conftest.er1 >conftest.err | |
13639 | rm -f conftest.er1 | |
13640 | cat conftest.err >&5 | |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13642 | (exit $ac_status); } >/dev/null; then | |
13643 | if test -s conftest.err; then | |
13644 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13645 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13646 | else |
13647 | ac_cpp_err= | |
13648 | fi | |
13649 | else | |
13650 | ac_cpp_err=yes | |
13651 | fi | |
13652 | if test -z "$ac_cpp_err"; then | |
13653 | ac_header_preproc=yes | |
13654 | else | |
13655 | echo "$as_me: failed program was:" >&5 | |
13656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13657 | ||
13658 | ac_header_preproc=no | |
13659 | fi | |
13660 | rm -f conftest.err conftest.$ac_ext | |
13661 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13662 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13663 | ||
13664 | # So? What about this header? | |
ac1cb8d3 VS |
13665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13666 | yes:no: ) | |
a848cd7e SC |
13667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13671 | ac_header_preproc=yes | |
a848cd7e | 13672 | ;; |
ac1cb8d3 | 13673 | no:yes:* ) |
a848cd7e SC |
13674 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13676 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13677 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13678 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13680 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13681 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13683 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13684 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13685 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13686 | ( |
13687 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13688 | ## ----------------------------------------- ## |
13689 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13690 | ## ----------------------------------------- ## | |
a848cd7e SC |
13691 | _ASBOX |
13692 | ) | | |
13693 | sed "s/^/$as_me: WARNING: /" >&2 | |
13694 | ;; | |
13695 | esac | |
13696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13700 | else | |
ac1cb8d3 | 13701 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13702 | fi |
13703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13704 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13705 | ||
13706 | fi | |
13707 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13708 | cat >>confdefs.h <<_ACEOF | |
13709 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13710 | _ACEOF | |
13711 | ||
13712 | fi | |
13713 | ||
13714 | done | |
13715 | ||
13716 | ||
13717 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13718 | ||
13719 | for ac_func in fnmatch | |
13720 | do | |
13721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13722 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13724 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13726 | else | |
13727 | cat >conftest.$ac_ext <<_ACEOF | |
13728 | /* confdefs.h. */ | |
13729 | _ACEOF | |
13730 | cat confdefs.h >>conftest.$ac_ext | |
13731 | cat >>conftest.$ac_ext <<_ACEOF | |
13732 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13735 | #define $ac_func innocuous_$ac_func | |
13736 | ||
a848cd7e SC |
13737 | /* System header to define __stub macros and hopefully few prototypes, |
13738 | which can conflict with char $ac_func (); below. | |
13739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13740 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13741 | |
a848cd7e SC |
13742 | #ifdef __STDC__ |
13743 | # include <limits.h> | |
13744 | #else | |
13745 | # include <assert.h> | |
13746 | #endif | |
ac1cb8d3 VS |
13747 | |
13748 | #undef $ac_func | |
13749 | ||
a848cd7e SC |
13750 | /* Override any gcc2 internal prototype to avoid an error. */ |
13751 | #ifdef __cplusplus | |
13752 | extern "C" | |
13753 | { | |
13754 | #endif | |
13755 | /* We use char because int might match the return type of a gcc2 | |
13756 | builtin and then its argument prototype would still apply. */ | |
13757 | char $ac_func (); | |
13758 | /* The GNU C library defines this for functions which it implements | |
13759 | to always fail with ENOSYS. Some functions are actually named | |
13760 | something starting with __ and the normal name is an alias. */ | |
13761 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13762 | choke me | |
13763 | #else | |
13764 | char (*f) () = $ac_func; | |
13765 | #endif | |
13766 | #ifdef __cplusplus | |
13767 | } | |
13768 | #endif | |
13769 | ||
13770 | int | |
13771 | main () | |
13772 | { | |
13773 | return f != $ac_func; | |
13774 | ; | |
13775 | return 0; | |
13776 | } | |
13777 | _ACEOF | |
13778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13780 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13781 | ac_status=$? |
ac1cb8d3 VS |
13782 | grep -v '^ *+' conftest.er1 >conftest.err |
13783 | rm -f conftest.er1 | |
13784 | cat conftest.err >&5 | |
a848cd7e SC |
13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13786 | (exit $ac_status); } && | |
7714864e | 13787 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13789 | (eval $ac_try) 2>&5 | |
13790 | ac_status=$? | |
13791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13792 | (exit $ac_status); }; } && | |
13793 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13795 | (eval $ac_try) 2>&5 | |
13796 | ac_status=$? | |
13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13798 | (exit $ac_status); }; }; then | |
13799 | eval "$as_ac_var=yes" | |
13800 | else | |
13801 | echo "$as_me: failed program was:" >&5 | |
13802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13803 | ||
13804 | eval "$as_ac_var=no" | |
13805 | fi | |
ac1cb8d3 VS |
13806 | rm -f conftest.err conftest.$ac_objext \ |
13807 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13808 | fi |
13809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13810 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13811 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13812 | cat >>confdefs.h <<_ACEOF | |
13813 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13814 | _ACEOF | |
13815 | ||
13816 | fi | |
13817 | done | |
13818 | ||
13819 | fi | |
13820 | ||
13821 | ||
13822 | for ac_header in langinfo.h | |
13823 | do | |
13824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13830 | fi | |
13831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13833 | else | |
13834 | # Is the header compilable? | |
13835 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13837 | cat >conftest.$ac_ext <<_ACEOF | |
13838 | /* confdefs.h. */ | |
13839 | _ACEOF | |
13840 | cat confdefs.h >>conftest.$ac_ext | |
13841 | cat >>conftest.$ac_ext <<_ACEOF | |
13842 | /* end confdefs.h. */ | |
13843 | $ac_includes_default | |
13844 | #include <$ac_header> | |
13845 | _ACEOF | |
13846 | rm -f conftest.$ac_objext | |
13847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13849 | ac_status=$? |
ac1cb8d3 VS |
13850 | grep -v '^ *+' conftest.er1 >conftest.err |
13851 | rm -f conftest.er1 | |
13852 | cat conftest.err >&5 | |
a848cd7e SC |
13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13854 | (exit $ac_status); } && | |
7714864e | 13855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13857 | (eval $ac_try) 2>&5 | |
13858 | ac_status=$? | |
13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13860 | (exit $ac_status); }; } && | |
13861 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13863 | (eval $ac_try) 2>&5 | |
13864 | ac_status=$? | |
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); }; }; then | |
13867 | ac_header_compiler=yes | |
13868 | else | |
13869 | echo "$as_me: failed program was:" >&5 | |
13870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13871 | ||
13872 | ac_header_compiler=no | |
13873 | fi | |
ac1cb8d3 | 13874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13875 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13876 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13877 | ||
13878 | # Is the header present? | |
13879 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13880 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13881 | cat >conftest.$ac_ext <<_ACEOF | |
13882 | /* confdefs.h. */ | |
13883 | _ACEOF | |
13884 | cat confdefs.h >>conftest.$ac_ext | |
13885 | cat >>conftest.$ac_ext <<_ACEOF | |
13886 | /* end confdefs.h. */ | |
13887 | #include <$ac_header> | |
13888 | _ACEOF | |
13889 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13890 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13891 | ac_status=$? | |
13892 | grep -v '^ *+' conftest.er1 >conftest.err | |
13893 | rm -f conftest.er1 | |
13894 | cat conftest.err >&5 | |
13895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13896 | (exit $ac_status); } >/dev/null; then | |
13897 | if test -s conftest.err; then | |
13898 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13899 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13900 | else |
13901 | ac_cpp_err= | |
13902 | fi | |
13903 | else | |
13904 | ac_cpp_err=yes | |
13905 | fi | |
13906 | if test -z "$ac_cpp_err"; then | |
13907 | ac_header_preproc=yes | |
13908 | else | |
13909 | echo "$as_me: failed program was:" >&5 | |
13910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13911 | ||
13912 | ac_header_preproc=no | |
13913 | fi | |
13914 | rm -f conftest.err conftest.$ac_ext | |
13915 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13916 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13917 | ||
13918 | # So? What about this header? | |
ac1cb8d3 VS |
13919 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13920 | yes:no: ) | |
a848cd7e SC |
13921 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13922 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13923 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13924 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13925 | ac_header_preproc=yes | |
a848cd7e | 13926 | ;; |
ac1cb8d3 | 13927 | no:yes:* ) |
a848cd7e SC |
13928 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13929 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13930 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13931 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13932 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13933 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13934 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13935 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13936 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13937 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13938 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13939 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13940 | ( |
13941 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13942 | ## ----------------------------------------- ## |
13943 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13944 | ## ----------------------------------------- ## | |
a848cd7e SC |
13945 | _ASBOX |
13946 | ) | | |
13947 | sed "s/^/$as_me: WARNING: /" >&2 | |
13948 | ;; | |
13949 | esac | |
13950 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13952 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13954 | else | |
ac1cb8d3 | 13955 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13956 | fi |
13957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13958 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13959 | ||
13960 | fi | |
13961 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13962 | cat >>confdefs.h <<_ACEOF | |
13963 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13964 | _ACEOF | |
13965 | ||
13966 | fi | |
13967 | ||
13968 | done | |
13969 | ||
13970 | ||
13971 | case "${host}" in | |
13972 | *-pc-os2_emx | *-pc-os2-emx ) | |
13973 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13974 | LIBS="$LIBS -lintl" | |
13975 | fi | |
13976 | ;; | |
13977 | esac | |
13978 | ||
13979 | if test "$wxUSE_GUI" = "yes"; then | |
13980 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13981 | ||
13982 | for ac_header in X11/Xlib.h | |
13983 | do | |
13984 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13990 | fi | |
13991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13993 | else | |
13994 | # Is the header compilable? | |
13995 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13996 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13997 | cat >conftest.$ac_ext <<_ACEOF | |
13998 | /* confdefs.h. */ | |
13999 | _ACEOF | |
14000 | cat confdefs.h >>conftest.$ac_ext | |
14001 | cat >>conftest.$ac_ext <<_ACEOF | |
14002 | /* end confdefs.h. */ | |
14003 | $ac_includes_default | |
14004 | #include <$ac_header> | |
14005 | _ACEOF | |
14006 | rm -f conftest.$ac_objext | |
14007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14008 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14009 | ac_status=$? |
ac1cb8d3 VS |
14010 | grep -v '^ *+' conftest.er1 >conftest.err |
14011 | rm -f conftest.er1 | |
14012 | cat conftest.err >&5 | |
a848cd7e SC |
14013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14014 | (exit $ac_status); } && | |
7714864e | 14015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14017 | (eval $ac_try) 2>&5 | |
14018 | ac_status=$? | |
14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); }; } && | |
14021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14023 | (eval $ac_try) 2>&5 | |
14024 | ac_status=$? | |
14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; }; then | |
14027 | ac_header_compiler=yes | |
14028 | else | |
14029 | echo "$as_me: failed program was:" >&5 | |
14030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14031 | ||
14032 | ac_header_compiler=no | |
14033 | fi | |
ac1cb8d3 | 14034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14036 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14037 | ||
14038 | # Is the header present? | |
14039 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14040 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14041 | cat >conftest.$ac_ext <<_ACEOF | |
14042 | /* confdefs.h. */ | |
14043 | _ACEOF | |
14044 | cat confdefs.h >>conftest.$ac_ext | |
14045 | cat >>conftest.$ac_ext <<_ACEOF | |
14046 | /* end confdefs.h. */ | |
14047 | #include <$ac_header> | |
14048 | _ACEOF | |
14049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14051 | ac_status=$? | |
14052 | grep -v '^ *+' conftest.er1 >conftest.err | |
14053 | rm -f conftest.er1 | |
14054 | cat conftest.err >&5 | |
14055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14056 | (exit $ac_status); } >/dev/null; then | |
14057 | if test -s conftest.err; then | |
14058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14060 | else |
14061 | ac_cpp_err= | |
14062 | fi | |
14063 | else | |
14064 | ac_cpp_err=yes | |
14065 | fi | |
14066 | if test -z "$ac_cpp_err"; then | |
14067 | ac_header_preproc=yes | |
14068 | else | |
14069 | echo "$as_me: failed program was:" >&5 | |
14070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14071 | ||
14072 | ac_header_preproc=no | |
14073 | fi | |
14074 | rm -f conftest.err conftest.$ac_ext | |
14075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14076 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14077 | ||
14078 | # So? What about this header? | |
ac1cb8d3 VS |
14079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14080 | yes:no: ) | |
a848cd7e SC |
14081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14085 | ac_header_preproc=yes | |
a848cd7e | 14086 | ;; |
ac1cb8d3 | 14087 | no:yes:* ) |
a848cd7e SC |
14088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14100 | ( |
14101 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14102 | ## ----------------------------------------- ## |
14103 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14104 | ## ----------------------------------------- ## | |
a848cd7e SC |
14105 | _ASBOX |
14106 | ) | | |
14107 | sed "s/^/$as_me: WARNING: /" >&2 | |
14108 | ;; | |
14109 | esac | |
14110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14114 | else | |
ac1cb8d3 | 14115 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14116 | fi |
14117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14119 | ||
14120 | fi | |
14121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14122 | cat >>confdefs.h <<_ACEOF | |
14123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14124 | _ACEOF | |
14125 | ||
14126 | fi | |
14127 | ||
14128 | done | |
14129 | ||
14130 | ||
14131 | for ac_header in X11/XKBlib.h | |
14132 | do | |
14133 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14134 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14138 | else | |
14139 | cat >conftest.$ac_ext <<_ACEOF | |
14140 | /* confdefs.h. */ | |
14141 | _ACEOF | |
14142 | cat confdefs.h >>conftest.$ac_ext | |
14143 | cat >>conftest.$ac_ext <<_ACEOF | |
14144 | /* end confdefs.h. */ | |
14145 | ||
14146 | #if HAVE_X11_XLIB_H | |
14147 | #include <X11/Xlib.h> | |
14148 | #endif | |
14149 | ||
14150 | ||
14151 | #include <$ac_header> | |
14152 | _ACEOF | |
14153 | rm -f conftest.$ac_objext | |
14154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14155 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14156 | ac_status=$? |
ac1cb8d3 VS |
14157 | grep -v '^ *+' conftest.er1 >conftest.err |
14158 | rm -f conftest.er1 | |
14159 | cat conftest.err >&5 | |
a848cd7e SC |
14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14161 | (exit $ac_status); } && | |
7714864e | 14162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14164 | (eval $ac_try) 2>&5 | |
14165 | ac_status=$? | |
14166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14167 | (exit $ac_status); }; } && | |
14168 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14170 | (eval $ac_try) 2>&5 | |
14171 | ac_status=$? | |
14172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14173 | (exit $ac_status); }; }; then | |
14174 | eval "$as_ac_Header=yes" | |
14175 | else | |
14176 | echo "$as_me: failed program was:" >&5 | |
14177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14178 | ||
14179 | eval "$as_ac_Header=no" | |
14180 | fi | |
ac1cb8d3 | 14181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14182 | fi |
14183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14186 | cat >>confdefs.h <<_ACEOF | |
14187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14188 | _ACEOF | |
14189 | ||
14190 | fi | |
14191 | ||
14192 | done | |
14193 | ||
14194 | fi | |
14195 | fi | |
14196 | ||
14197 | ||
14198 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14199 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14200 | if test "${ac_cv_c_const+set}" = set; then | |
14201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14202 | else | |
14203 | cat >conftest.$ac_ext <<_ACEOF | |
14204 | /* confdefs.h. */ | |
14205 | _ACEOF | |
14206 | cat confdefs.h >>conftest.$ac_ext | |
14207 | cat >>conftest.$ac_ext <<_ACEOF | |
14208 | /* end confdefs.h. */ | |
14209 | ||
14210 | int | |
14211 | main () | |
14212 | { | |
14213 | /* FIXME: Include the comments suggested by Paul. */ | |
14214 | #ifndef __cplusplus | |
14215 | /* Ultrix mips cc rejects this. */ | |
14216 | typedef int charset[2]; | |
14217 | const charset x; | |
14218 | /* SunOS 4.1.1 cc rejects this. */ | |
14219 | char const *const *ccp; | |
14220 | char **p; | |
14221 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14222 | struct point {int x, y;}; | |
14223 | static struct point const zero = {0,0}; | |
14224 | /* AIX XL C 1.02.0.0 rejects this. | |
14225 | It does not let you subtract one const X* pointer from another in | |
14226 | an arm of an if-expression whose if-part is not a constant | |
14227 | expression */ | |
14228 | const char *g = "string"; | |
14229 | ccp = &g + (g ? g-g : 0); | |
14230 | /* HPUX 7.0 cc rejects these. */ | |
14231 | ++ccp; | |
14232 | p = (char**) ccp; | |
14233 | ccp = (char const *const *) p; | |
14234 | { /* SCO 3.2v4 cc rejects this. */ | |
14235 | char *t; | |
14236 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14237 | ||
14238 | *t++ = 0; | |
14239 | } | |
14240 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14241 | int x[] = {25, 17}; | |
14242 | const int *foo = &x[0]; | |
14243 | ++foo; | |
14244 | } | |
14245 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14246 | typedef const int *iptr; | |
14247 | iptr p = 0; | |
14248 | ++p; | |
14249 | } | |
14250 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14251 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14252 | struct s { int j; const int *ap[3]; }; | |
14253 | struct s *b; b->j = 5; | |
14254 | } | |
14255 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14256 | const int foo = 10; | |
14257 | } | |
14258 | #endif | |
14259 | ||
14260 | ; | |
14261 | return 0; | |
14262 | } | |
14263 | _ACEOF | |
14264 | rm -f conftest.$ac_objext | |
14265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14266 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14267 | ac_status=$? |
ac1cb8d3 VS |
14268 | grep -v '^ *+' conftest.er1 >conftest.err |
14269 | rm -f conftest.er1 | |
14270 | cat conftest.err >&5 | |
a848cd7e SC |
14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14272 | (exit $ac_status); } && | |
7714864e | 14273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14275 | (eval $ac_try) 2>&5 | |
14276 | ac_status=$? | |
14277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14278 | (exit $ac_status); }; } && | |
14279 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14281 | (eval $ac_try) 2>&5 | |
14282 | ac_status=$? | |
14283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14284 | (exit $ac_status); }; }; then | |
14285 | ac_cv_c_const=yes | |
14286 | else | |
14287 | echo "$as_me: failed program was:" >&5 | |
14288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14289 | ||
14290 | ac_cv_c_const=no | |
14291 | fi | |
ac1cb8d3 | 14292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14293 | fi |
14294 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14295 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14296 | if test $ac_cv_c_const = no; then | |
14297 | ||
14298 | cat >>confdefs.h <<\_ACEOF | |
14299 | #define const | |
14300 | _ACEOF | |
14301 | ||
14302 | fi | |
14303 | ||
14304 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14305 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14306 | if test "${ac_cv_c_inline+set}" = set; then | |
14307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14308 | else | |
14309 | ac_cv_c_inline=no | |
14310 | for ac_kw in inline __inline__ __inline; do | |
14311 | cat >conftest.$ac_ext <<_ACEOF | |
14312 | /* confdefs.h. */ | |
14313 | _ACEOF | |
14314 | cat confdefs.h >>conftest.$ac_ext | |
14315 | cat >>conftest.$ac_ext <<_ACEOF | |
14316 | /* end confdefs.h. */ | |
14317 | #ifndef __cplusplus | |
14318 | typedef int foo_t; | |
14319 | static $ac_kw foo_t static_foo () {return 0; } | |
14320 | $ac_kw foo_t foo () {return 0; } | |
14321 | #endif | |
14322 | ||
14323 | _ACEOF | |
14324 | rm -f conftest.$ac_objext | |
14325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14326 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14327 | ac_status=$? |
ac1cb8d3 VS |
14328 | grep -v '^ *+' conftest.er1 >conftest.err |
14329 | rm -f conftest.er1 | |
14330 | cat conftest.err >&5 | |
a848cd7e SC |
14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14332 | (exit $ac_status); } && | |
7714864e | 14333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14335 | (eval $ac_try) 2>&5 | |
14336 | ac_status=$? | |
14337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14338 | (exit $ac_status); }; } && | |
14339 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14341 | (eval $ac_try) 2>&5 | |
14342 | ac_status=$? | |
14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14344 | (exit $ac_status); }; }; then | |
14345 | ac_cv_c_inline=$ac_kw; break | |
14346 | else | |
14347 | echo "$as_me: failed program was:" >&5 | |
14348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14349 | ||
14350 | fi | |
ac1cb8d3 | 14351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14352 | done |
14353 | ||
14354 | fi | |
14355 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14356 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14357 | |
14358 | ||
a848cd7e SC |
14359 | case $ac_cv_c_inline in |
14360 | inline | yes) ;; | |
ac1cb8d3 VS |
14361 | *) |
14362 | case $ac_cv_c_inline in | |
14363 | no) ac_val=;; | |
14364 | *) ac_val=$ac_cv_c_inline;; | |
14365 | esac | |
14366 | cat >>confdefs.h <<_ACEOF | |
14367 | #ifndef __cplusplus | |
14368 | #define inline $ac_val | |
14369 | #endif | |
de59c161 | 14370 | _ACEOF |
ac1cb8d3 | 14371 | ;; |
a848cd7e SC |
14372 | esac |
14373 | ||
14374 | ||
14375 | echo "$as_me:$LINENO: checking for char" >&5 | |
14376 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14377 | if test "${ac_cv_type_char+set}" = set; then | |
14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14379 | else | |
14380 | cat >conftest.$ac_ext <<_ACEOF | |
14381 | /* confdefs.h. */ | |
14382 | _ACEOF | |
14383 | cat confdefs.h >>conftest.$ac_ext | |
14384 | cat >>conftest.$ac_ext <<_ACEOF | |
14385 | /* end confdefs.h. */ | |
14386 | $ac_includes_default | |
14387 | int | |
14388 | main () | |
14389 | { | |
14390 | if ((char *) 0) | |
14391 | return 0; | |
14392 | if (sizeof (char)) | |
14393 | return 0; | |
14394 | ; | |
14395 | return 0; | |
14396 | } | |
14397 | _ACEOF | |
14398 | rm -f conftest.$ac_objext | |
14399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14400 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14401 | ac_status=$? |
ac1cb8d3 VS |
14402 | grep -v '^ *+' conftest.er1 >conftest.err |
14403 | rm -f conftest.er1 | |
14404 | cat conftest.err >&5 | |
a848cd7e SC |
14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14406 | (exit $ac_status); } && | |
7714864e | 14407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14409 | (eval $ac_try) 2>&5 | |
14410 | ac_status=$? | |
14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14412 | (exit $ac_status); }; } && | |
14413 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14415 | (eval $ac_try) 2>&5 | |
14416 | ac_status=$? | |
14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14418 | (exit $ac_status); }; }; then | |
14419 | ac_cv_type_char=yes | |
14420 | else | |
14421 | echo "$as_me: failed program was:" >&5 | |
14422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14423 | ||
14424 | ac_cv_type_char=no | |
14425 | fi | |
ac1cb8d3 | 14426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14427 | fi |
14428 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14429 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14430 | ||
14431 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14432 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14433 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14435 | else | |
14436 | if test "$ac_cv_type_char" = yes; then | |
14437 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14438 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14439 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14440 | # This bug is HP SR number 8606223364. | |
14441 | if test "$cross_compiling" = yes; then | |
14442 | # Depending upon the size, compute the lo and hi bounds. | |
14443 | cat >conftest.$ac_ext <<_ACEOF | |
14444 | /* confdefs.h. */ | |
14445 | _ACEOF | |
14446 | cat confdefs.h >>conftest.$ac_ext | |
14447 | cat >>conftest.$ac_ext <<_ACEOF | |
14448 | /* end confdefs.h. */ | |
14449 | $ac_includes_default | |
14450 | int | |
14451 | main () | |
14452 | { | |
14453 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14454 | test_array [0] = 0 | |
14455 | ||
14456 | ; | |
14457 | return 0; | |
14458 | } | |
14459 | _ACEOF | |
14460 | rm -f conftest.$ac_objext | |
14461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14462 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14463 | ac_status=$? |
ac1cb8d3 VS |
14464 | grep -v '^ *+' conftest.er1 >conftest.err |
14465 | rm -f conftest.er1 | |
14466 | cat conftest.err >&5 | |
a848cd7e SC |
14467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14468 | (exit $ac_status); } && | |
7714864e | 14469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14471 | (eval $ac_try) 2>&5 | |
14472 | ac_status=$? | |
14473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14474 | (exit $ac_status); }; } && | |
14475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14477 | (eval $ac_try) 2>&5 | |
14478 | ac_status=$? | |
14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14480 | (exit $ac_status); }; }; then | |
14481 | ac_lo=0 ac_mid=0 | |
14482 | while :; do | |
14483 | cat >conftest.$ac_ext <<_ACEOF | |
14484 | /* confdefs.h. */ | |
14485 | _ACEOF | |
14486 | cat confdefs.h >>conftest.$ac_ext | |
14487 | cat >>conftest.$ac_ext <<_ACEOF | |
14488 | /* end confdefs.h. */ | |
14489 | $ac_includes_default | |
14490 | int | |
14491 | main () | |
14492 | { | |
14493 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14494 | test_array [0] = 0 | |
14495 | ||
14496 | ; | |
14497 | return 0; | |
14498 | } | |
14499 | _ACEOF | |
14500 | rm -f conftest.$ac_objext | |
14501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14502 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14503 | ac_status=$? |
ac1cb8d3 VS |
14504 | grep -v '^ *+' conftest.er1 >conftest.err |
14505 | rm -f conftest.er1 | |
14506 | cat conftest.err >&5 | |
a848cd7e SC |
14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14508 | (exit $ac_status); } && | |
7714864e | 14509 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14511 | (eval $ac_try) 2>&5 | |
14512 | ac_status=$? | |
14513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14514 | (exit $ac_status); }; } && | |
14515 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14517 | (eval $ac_try) 2>&5 | |
14518 | ac_status=$? | |
14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14520 | (exit $ac_status); }; }; then | |
14521 | ac_hi=$ac_mid; break | |
14522 | else | |
14523 | echo "$as_me: failed program was:" >&5 | |
14524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14525 | ||
14526 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14527 | if test $ac_lo -le $ac_mid; then |
14528 | ac_lo= ac_hi= | |
14529 | break | |
14530 | fi | |
14531 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14532 | fi |
ac1cb8d3 | 14533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14534 | done |
14535 | else | |
14536 | echo "$as_me: failed program was:" >&5 | |
14537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14538 | ||
14539 | cat >conftest.$ac_ext <<_ACEOF | |
14540 | /* confdefs.h. */ | |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
14545 | $ac_includes_default | |
14546 | int | |
14547 | main () | |
14548 | { | |
14549 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14550 | test_array [0] = 0 | |
14551 | ||
14552 | ; | |
14553 | return 0; | |
14554 | } | |
14555 | _ACEOF | |
14556 | rm -f conftest.$ac_objext | |
14557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14558 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14559 | ac_status=$? |
ac1cb8d3 VS |
14560 | grep -v '^ *+' conftest.er1 >conftest.err |
14561 | rm -f conftest.er1 | |
14562 | cat conftest.err >&5 | |
a848cd7e SC |
14563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14564 | (exit $ac_status); } && | |
7714864e | 14565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14567 | (eval $ac_try) 2>&5 | |
14568 | ac_status=$? | |
14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14570 | (exit $ac_status); }; } && | |
14571 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; }; then | |
14577 | ac_hi=-1 ac_mid=-1 | |
14578 | while :; do | |
14579 | cat >conftest.$ac_ext <<_ACEOF | |
14580 | /* confdefs.h. */ | |
14581 | _ACEOF | |
14582 | cat confdefs.h >>conftest.$ac_ext | |
14583 | cat >>conftest.$ac_ext <<_ACEOF | |
14584 | /* end confdefs.h. */ | |
14585 | $ac_includes_default | |
14586 | int | |
14587 | main () | |
14588 | { | |
14589 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14590 | test_array [0] = 0 | |
14591 | ||
14592 | ; | |
14593 | return 0; | |
14594 | } | |
14595 | _ACEOF | |
14596 | rm -f conftest.$ac_objext | |
14597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14598 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14599 | ac_status=$? |
ac1cb8d3 VS |
14600 | grep -v '^ *+' conftest.er1 >conftest.err |
14601 | rm -f conftest.er1 | |
14602 | cat conftest.err >&5 | |
a848cd7e SC |
14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14604 | (exit $ac_status); } && | |
7714864e | 14605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14607 | (eval $ac_try) 2>&5 | |
14608 | ac_status=$? | |
14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14610 | (exit $ac_status); }; } && | |
14611 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14613 | (eval $ac_try) 2>&5 | |
14614 | ac_status=$? | |
14615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14616 | (exit $ac_status); }; }; then | |
14617 | ac_lo=$ac_mid; break | |
14618 | else | |
14619 | echo "$as_me: failed program was:" >&5 | |
14620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14621 | ||
14622 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14623 | if test $ac_mid -le $ac_hi; then |
14624 | ac_lo= ac_hi= | |
14625 | break | |
14626 | fi | |
14627 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14628 | fi |
ac1cb8d3 | 14629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14630 | done |
14631 | else | |
14632 | echo "$as_me: failed program was:" >&5 | |
14633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14634 | ||
14635 | ac_lo= ac_hi= | |
14636 | fi | |
ac1cb8d3 | 14637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14638 | fi |
ac1cb8d3 | 14639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14640 | # Binary search between lo and hi bounds. |
14641 | while test "x$ac_lo" != "x$ac_hi"; do | |
14642 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14643 | cat >conftest.$ac_ext <<_ACEOF | |
14644 | /* confdefs.h. */ | |
14645 | _ACEOF | |
14646 | cat confdefs.h >>conftest.$ac_ext | |
14647 | cat >>conftest.$ac_ext <<_ACEOF | |
14648 | /* end confdefs.h. */ | |
14649 | $ac_includes_default | |
14650 | int | |
14651 | main () | |
14652 | { | |
14653 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14654 | test_array [0] = 0 | |
14655 | ||
14656 | ; | |
14657 | return 0; | |
14658 | } | |
14659 | _ACEOF | |
14660 | rm -f conftest.$ac_objext | |
14661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14662 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14663 | ac_status=$? |
ac1cb8d3 VS |
14664 | grep -v '^ *+' conftest.er1 >conftest.err |
14665 | rm -f conftest.er1 | |
14666 | cat conftest.err >&5 | |
a848cd7e SC |
14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14668 | (exit $ac_status); } && | |
7714864e | 14669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14671 | (eval $ac_try) 2>&5 | |
14672 | ac_status=$? | |
14673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14674 | (exit $ac_status); }; } && | |
14675 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14677 | (eval $ac_try) 2>&5 | |
14678 | ac_status=$? | |
14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14680 | (exit $ac_status); }; }; then | |
14681 | ac_hi=$ac_mid | |
14682 | else | |
14683 | echo "$as_me: failed program was:" >&5 | |
14684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14685 | ||
14686 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14687 | fi | |
ac1cb8d3 | 14688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14689 | done |
14690 | case $ac_lo in | |
14691 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14692 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14693 | See \`config.log' for more details." >&5 | |
14694 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14695 | See \`config.log' for more details." >&2;} | |
14696 | { (exit 1); exit 1; }; } ;; | |
14697 | esac | |
14698 | else | |
14699 | if test "$cross_compiling" = yes; then | |
7714864e RL |
14700 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14701 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14702 | { (exit 1); exit 1; }; } |
14703 | else | |
14704 | cat >conftest.$ac_ext <<_ACEOF | |
14705 | /* confdefs.h. */ | |
14706 | _ACEOF | |
14707 | cat confdefs.h >>conftest.$ac_ext | |
14708 | cat >>conftest.$ac_ext <<_ACEOF | |
14709 | /* end confdefs.h. */ | |
14710 | $ac_includes_default | |
14711 | long longval () { return (long) (sizeof (char)); } | |
14712 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14713 | #include <stdio.h> | |
14714 | #include <stdlib.h> | |
14715 | int | |
14716 | main () | |
14717 | { | |
14718 | ||
14719 | FILE *f = fopen ("conftest.val", "w"); | |
14720 | if (! f) | |
14721 | exit (1); | |
14722 | if (((long) (sizeof (char))) < 0) | |
14723 | { | |
14724 | long i = longval (); | |
14725 | if (i != ((long) (sizeof (char)))) | |
14726 | exit (1); | |
14727 | fprintf (f, "%ld\n", i); | |
14728 | } | |
14729 | else | |
14730 | { | |
14731 | unsigned long i = ulongval (); | |
14732 | if (i != ((long) (sizeof (char)))) | |
14733 | exit (1); | |
14734 | fprintf (f, "%lu\n", i); | |
14735 | } | |
14736 | exit (ferror (f) || fclose (f) != 0); | |
14737 | ||
14738 | ; | |
14739 | return 0; | |
14740 | } | |
14741 | _ACEOF | |
14742 | rm -f conftest$ac_exeext | |
14743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14744 | (eval $ac_link) 2>&5 | |
14745 | ac_status=$? | |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14749 | (eval $ac_try) 2>&5 | |
14750 | ac_status=$? | |
14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14752 | (exit $ac_status); }; }; then | |
14753 | ac_cv_sizeof_char=`cat conftest.val` | |
14754 | else | |
14755 | echo "$as_me: program exited with status $ac_status" >&5 | |
14756 | echo "$as_me: failed program was:" >&5 | |
14757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14758 | ||
14759 | ( exit $ac_status ) | |
14760 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14761 | See \`config.log' for more details." >&5 | |
14762 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14763 | See \`config.log' for more details." >&2;} | |
14764 | { (exit 1); exit 1; }; } | |
14765 | fi | |
ac1cb8d3 | 14766 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14767 | fi |
14768 | fi | |
14769 | rm -f conftest.val | |
14770 | else | |
14771 | ac_cv_sizeof_char=0 | |
14772 | fi | |
14773 | fi | |
14774 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14775 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14776 | cat >>confdefs.h <<_ACEOF | |
14777 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14778 | _ACEOF | |
14779 | ||
14780 | ||
14781 | echo "$as_me:$LINENO: checking for short" >&5 | |
14782 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14783 | if test "${ac_cv_type_short+set}" = set; then | |
14784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14785 | else | |
14786 | cat >conftest.$ac_ext <<_ACEOF | |
14787 | /* confdefs.h. */ | |
14788 | _ACEOF | |
14789 | cat confdefs.h >>conftest.$ac_ext | |
14790 | cat >>conftest.$ac_ext <<_ACEOF | |
14791 | /* end confdefs.h. */ | |
14792 | $ac_includes_default | |
14793 | int | |
14794 | main () | |
14795 | { | |
14796 | if ((short *) 0) | |
14797 | return 0; | |
14798 | if (sizeof (short)) | |
14799 | return 0; | |
14800 | ; | |
14801 | return 0; | |
14802 | } | |
14803 | _ACEOF | |
14804 | rm -f conftest.$ac_objext | |
14805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14807 | ac_status=$? |
ac1cb8d3 VS |
14808 | grep -v '^ *+' conftest.er1 >conftest.err |
14809 | rm -f conftest.er1 | |
14810 | cat conftest.err >&5 | |
a848cd7e SC |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14812 | (exit $ac_status); } && | |
7714864e | 14813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14815 | (eval $ac_try) 2>&5 | |
14816 | ac_status=$? | |
14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14818 | (exit $ac_status); }; } && | |
14819 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14821 | (eval $ac_try) 2>&5 | |
14822 | ac_status=$? | |
14823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14824 | (exit $ac_status); }; }; then | |
14825 | ac_cv_type_short=yes | |
14826 | else | |
14827 | echo "$as_me: failed program was:" >&5 | |
14828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14829 | ||
14830 | ac_cv_type_short=no | |
14831 | fi | |
ac1cb8d3 | 14832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14833 | fi |
14834 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14835 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14836 | ||
14837 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14838 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14839 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14841 | else | |
14842 | if test "$ac_cv_type_short" = yes; then | |
14843 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14844 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14845 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14846 | # This bug is HP SR number 8606223364. | |
14847 | if test "$cross_compiling" = yes; then | |
14848 | # Depending upon the size, compute the lo and hi bounds. | |
14849 | cat >conftest.$ac_ext <<_ACEOF | |
14850 | /* confdefs.h. */ | |
14851 | _ACEOF | |
14852 | cat confdefs.h >>conftest.$ac_ext | |
14853 | cat >>conftest.$ac_ext <<_ACEOF | |
14854 | /* end confdefs.h. */ | |
14855 | $ac_includes_default | |
14856 | int | |
14857 | main () | |
14858 | { | |
14859 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14860 | test_array [0] = 0 | |
14861 | ||
14862 | ; | |
14863 | return 0; | |
14864 | } | |
14865 | _ACEOF | |
14866 | rm -f conftest.$ac_objext | |
14867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14869 | ac_status=$? |
ac1cb8d3 VS |
14870 | grep -v '^ *+' conftest.er1 >conftest.err |
14871 | rm -f conftest.er1 | |
14872 | cat conftest.err >&5 | |
a848cd7e SC |
14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14874 | (exit $ac_status); } && | |
7714864e | 14875 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14877 | (eval $ac_try) 2>&5 | |
14878 | ac_status=$? | |
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14880 | (exit $ac_status); }; } && | |
14881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14883 | (eval $ac_try) 2>&5 | |
14884 | ac_status=$? | |
14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14886 | (exit $ac_status); }; }; then | |
14887 | ac_lo=0 ac_mid=0 | |
14888 | while :; do | |
14889 | cat >conftest.$ac_ext <<_ACEOF | |
14890 | /* confdefs.h. */ | |
14891 | _ACEOF | |
14892 | cat confdefs.h >>conftest.$ac_ext | |
14893 | cat >>conftest.$ac_ext <<_ACEOF | |
14894 | /* end confdefs.h. */ | |
14895 | $ac_includes_default | |
14896 | int | |
14897 | main () | |
14898 | { | |
14899 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14900 | test_array [0] = 0 | |
14901 | ||
14902 | ; | |
14903 | return 0; | |
14904 | } | |
14905 | _ACEOF | |
14906 | rm -f conftest.$ac_objext | |
14907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14908 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14909 | ac_status=$? |
ac1cb8d3 VS |
14910 | grep -v '^ *+' conftest.er1 >conftest.err |
14911 | rm -f conftest.er1 | |
14912 | cat conftest.err >&5 | |
a848cd7e SC |
14913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14914 | (exit $ac_status); } && | |
7714864e | 14915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14917 | (eval $ac_try) 2>&5 | |
14918 | ac_status=$? | |
14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14920 | (exit $ac_status); }; } && | |
14921 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14923 | (eval $ac_try) 2>&5 | |
14924 | ac_status=$? | |
14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14926 | (exit $ac_status); }; }; then | |
14927 | ac_hi=$ac_mid; break | |
14928 | else | |
14929 | echo "$as_me: failed program was:" >&5 | |
14930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14931 | ||
14932 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14933 | if test $ac_lo -le $ac_mid; then |
14934 | ac_lo= ac_hi= | |
14935 | break | |
14936 | fi | |
14937 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14938 | fi |
ac1cb8d3 | 14939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14940 | done |
14941 | else | |
14942 | echo "$as_me: failed program was:" >&5 | |
14943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14944 | ||
14945 | cat >conftest.$ac_ext <<_ACEOF | |
14946 | /* confdefs.h. */ | |
14947 | _ACEOF | |
14948 | cat confdefs.h >>conftest.$ac_ext | |
14949 | cat >>conftest.$ac_ext <<_ACEOF | |
14950 | /* end confdefs.h. */ | |
14951 | $ac_includes_default | |
14952 | int | |
14953 | main () | |
14954 | { | |
14955 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14956 | test_array [0] = 0 | |
14957 | ||
14958 | ; | |
14959 | return 0; | |
14960 | } | |
14961 | _ACEOF | |
14962 | rm -f conftest.$ac_objext | |
14963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14965 | ac_status=$? |
ac1cb8d3 VS |
14966 | grep -v '^ *+' conftest.er1 >conftest.err |
14967 | rm -f conftest.er1 | |
14968 | cat conftest.err >&5 | |
a848cd7e SC |
14969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14970 | (exit $ac_status); } && | |
7714864e | 14971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; } && | |
14977 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14979 | (eval $ac_try) 2>&5 | |
14980 | ac_status=$? | |
14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14982 | (exit $ac_status); }; }; then | |
14983 | ac_hi=-1 ac_mid=-1 | |
14984 | while :; do | |
14985 | cat >conftest.$ac_ext <<_ACEOF | |
14986 | /* confdefs.h. */ | |
14987 | _ACEOF | |
14988 | cat confdefs.h >>conftest.$ac_ext | |
14989 | cat >>conftest.$ac_ext <<_ACEOF | |
14990 | /* end confdefs.h. */ | |
14991 | $ac_includes_default | |
14992 | int | |
14993 | main () | |
14994 | { | |
14995 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14996 | test_array [0] = 0 | |
14997 | ||
14998 | ; | |
14999 | return 0; | |
15000 | } | |
15001 | _ACEOF | |
15002 | rm -f conftest.$ac_objext | |
15003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15004 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15005 | ac_status=$? |
ac1cb8d3 VS |
15006 | grep -v '^ *+' conftest.er1 >conftest.err |
15007 | rm -f conftest.er1 | |
15008 | cat conftest.err >&5 | |
a848cd7e SC |
15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15010 | (exit $ac_status); } && | |
7714864e | 15011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15013 | (eval $ac_try) 2>&5 | |
15014 | ac_status=$? | |
15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15016 | (exit $ac_status); }; } && | |
15017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15019 | (eval $ac_try) 2>&5 | |
15020 | ac_status=$? | |
15021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15022 | (exit $ac_status); }; }; then | |
15023 | ac_lo=$ac_mid; break | |
15024 | else | |
15025 | echo "$as_me: failed program was:" >&5 | |
15026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15027 | ||
15028 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15029 | if test $ac_mid -le $ac_hi; then |
15030 | ac_lo= ac_hi= | |
15031 | break | |
15032 | fi | |
15033 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15034 | fi |
ac1cb8d3 | 15035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15036 | done |
15037 | else | |
15038 | echo "$as_me: failed program was:" >&5 | |
15039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15040 | ||
15041 | ac_lo= ac_hi= | |
15042 | fi | |
ac1cb8d3 | 15043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15044 | fi |
ac1cb8d3 | 15045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15046 | # Binary search between lo and hi bounds. |
15047 | while test "x$ac_lo" != "x$ac_hi"; do | |
15048 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15049 | cat >conftest.$ac_ext <<_ACEOF | |
15050 | /* confdefs.h. */ | |
15051 | _ACEOF | |
15052 | cat confdefs.h >>conftest.$ac_ext | |
15053 | cat >>conftest.$ac_ext <<_ACEOF | |
15054 | /* end confdefs.h. */ | |
15055 | $ac_includes_default | |
15056 | int | |
15057 | main () | |
15058 | { | |
15059 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15060 | test_array [0] = 0 | |
15061 | ||
15062 | ; | |
15063 | return 0; | |
15064 | } | |
15065 | _ACEOF | |
15066 | rm -f conftest.$ac_objext | |
15067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15069 | ac_status=$? |
ac1cb8d3 VS |
15070 | grep -v '^ *+' conftest.er1 >conftest.err |
15071 | rm -f conftest.er1 | |
15072 | cat conftest.err >&5 | |
a848cd7e SC |
15073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15074 | (exit $ac_status); } && | |
7714864e | 15075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15077 | (eval $ac_try) 2>&5 | |
15078 | ac_status=$? | |
15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15080 | (exit $ac_status); }; } && | |
15081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15083 | (eval $ac_try) 2>&5 | |
15084 | ac_status=$? | |
15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15086 | (exit $ac_status); }; }; then | |
15087 | ac_hi=$ac_mid | |
15088 | else | |
15089 | echo "$as_me: failed program was:" >&5 | |
15090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15091 | ||
15092 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15093 | fi | |
ac1cb8d3 | 15094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15095 | done |
15096 | case $ac_lo in | |
15097 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15098 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15099 | See \`config.log' for more details." >&5 | |
15100 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15101 | See \`config.log' for more details." >&2;} | |
15102 | { (exit 1); exit 1; }; } ;; | |
15103 | esac | |
15104 | else | |
15105 | if test "$cross_compiling" = yes; then | |
7714864e RL |
15106 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15107 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15108 | { (exit 1); exit 1; }; } |
15109 | else | |
15110 | cat >conftest.$ac_ext <<_ACEOF | |
15111 | /* confdefs.h. */ | |
15112 | _ACEOF | |
15113 | cat confdefs.h >>conftest.$ac_ext | |
15114 | cat >>conftest.$ac_ext <<_ACEOF | |
15115 | /* end confdefs.h. */ | |
15116 | $ac_includes_default | |
15117 | long longval () { return (long) (sizeof (short)); } | |
15118 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15119 | #include <stdio.h> | |
15120 | #include <stdlib.h> | |
15121 | int | |
15122 | main () | |
15123 | { | |
15124 | ||
15125 | FILE *f = fopen ("conftest.val", "w"); | |
15126 | if (! f) | |
15127 | exit (1); | |
15128 | if (((long) (sizeof (short))) < 0) | |
15129 | { | |
15130 | long i = longval (); | |
15131 | if (i != ((long) (sizeof (short)))) | |
15132 | exit (1); | |
15133 | fprintf (f, "%ld\n", i); | |
15134 | } | |
15135 | else | |
15136 | { | |
15137 | unsigned long i = ulongval (); | |
15138 | if (i != ((long) (sizeof (short)))) | |
15139 | exit (1); | |
15140 | fprintf (f, "%lu\n", i); | |
15141 | } | |
15142 | exit (ferror (f) || fclose (f) != 0); | |
15143 | ||
15144 | ; | |
15145 | return 0; | |
15146 | } | |
15147 | _ACEOF | |
15148 | rm -f conftest$ac_exeext | |
15149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15150 | (eval $ac_link) 2>&5 | |
15151 | ac_status=$? | |
15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15155 | (eval $ac_try) 2>&5 | |
15156 | ac_status=$? | |
15157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15158 | (exit $ac_status); }; }; then | |
15159 | ac_cv_sizeof_short=`cat conftest.val` | |
15160 | else | |
15161 | echo "$as_me: program exited with status $ac_status" >&5 | |
15162 | echo "$as_me: failed program was:" >&5 | |
15163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15164 | ||
15165 | ( exit $ac_status ) | |
15166 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15167 | See \`config.log' for more details." >&5 | |
15168 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15169 | See \`config.log' for more details." >&2;} | |
15170 | { (exit 1); exit 1; }; } | |
15171 | fi | |
ac1cb8d3 | 15172 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15173 | fi |
15174 | fi | |
15175 | rm -f conftest.val | |
15176 | else | |
15177 | ac_cv_sizeof_short=0 | |
15178 | fi | |
15179 | fi | |
15180 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15181 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15182 | cat >>confdefs.h <<_ACEOF | |
15183 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15184 | _ACEOF | |
15185 | ||
15186 | ||
15187 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15188 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15189 | if test "${ac_cv_type_void_p+set}" = set; then | |
15190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15191 | else | |
15192 | cat >conftest.$ac_ext <<_ACEOF | |
15193 | /* confdefs.h. */ | |
15194 | _ACEOF | |
15195 | cat confdefs.h >>conftest.$ac_ext | |
15196 | cat >>conftest.$ac_ext <<_ACEOF | |
15197 | /* end confdefs.h. */ | |
15198 | $ac_includes_default | |
15199 | int | |
15200 | main () | |
15201 | { | |
15202 | if ((void * *) 0) | |
15203 | return 0; | |
15204 | if (sizeof (void *)) | |
15205 | return 0; | |
15206 | ; | |
15207 | return 0; | |
15208 | } | |
15209 | _ACEOF | |
15210 | rm -f conftest.$ac_objext | |
15211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15212 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15213 | ac_status=$? |
ac1cb8d3 VS |
15214 | grep -v '^ *+' conftest.er1 >conftest.err |
15215 | rm -f conftest.er1 | |
15216 | cat conftest.err >&5 | |
a848cd7e SC |
15217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15218 | (exit $ac_status); } && | |
7714864e | 15219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15221 | (eval $ac_try) 2>&5 | |
15222 | ac_status=$? | |
15223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15224 | (exit $ac_status); }; } && | |
15225 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15227 | (eval $ac_try) 2>&5 | |
15228 | ac_status=$? | |
15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15230 | (exit $ac_status); }; }; then | |
15231 | ac_cv_type_void_p=yes | |
15232 | else | |
15233 | echo "$as_me: failed program was:" >&5 | |
15234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15235 | ||
15236 | ac_cv_type_void_p=no | |
15237 | fi | |
ac1cb8d3 | 15238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15239 | fi |
15240 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15241 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15242 | ||
15243 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15244 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15245 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15247 | else | |
15248 | if test "$ac_cv_type_void_p" = yes; then | |
15249 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15252 | # This bug is HP SR number 8606223364. | |
15253 | if test "$cross_compiling" = yes; then | |
15254 | # Depending upon the size, compute the lo and hi bounds. | |
15255 | cat >conftest.$ac_ext <<_ACEOF | |
15256 | /* confdefs.h. */ | |
15257 | _ACEOF | |
15258 | cat confdefs.h >>conftest.$ac_ext | |
15259 | cat >>conftest.$ac_ext <<_ACEOF | |
15260 | /* end confdefs.h. */ | |
15261 | $ac_includes_default | |
15262 | int | |
15263 | main () | |
15264 | { | |
15265 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15266 | test_array [0] = 0 | |
15267 | ||
15268 | ; | |
15269 | return 0; | |
15270 | } | |
15271 | _ACEOF | |
15272 | rm -f conftest.$ac_objext | |
15273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15274 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15275 | ac_status=$? |
ac1cb8d3 VS |
15276 | grep -v '^ *+' conftest.er1 >conftest.err |
15277 | rm -f conftest.er1 | |
15278 | cat conftest.err >&5 | |
a848cd7e SC |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15280 | (exit $ac_status); } && | |
7714864e | 15281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15286 | (exit $ac_status); }; } && | |
15287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15289 | (eval $ac_try) 2>&5 | |
15290 | ac_status=$? | |
15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15292 | (exit $ac_status); }; }; then | |
15293 | ac_lo=0 ac_mid=0 | |
15294 | while :; do | |
15295 | cat >conftest.$ac_ext <<_ACEOF | |
15296 | /* confdefs.h. */ | |
15297 | _ACEOF | |
15298 | cat confdefs.h >>conftest.$ac_ext | |
15299 | cat >>conftest.$ac_ext <<_ACEOF | |
15300 | /* end confdefs.h. */ | |
15301 | $ac_includes_default | |
15302 | int | |
15303 | main () | |
15304 | { | |
15305 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15306 | test_array [0] = 0 | |
15307 | ||
15308 | ; | |
15309 | return 0; | |
15310 | } | |
15311 | _ACEOF | |
15312 | rm -f conftest.$ac_objext | |
15313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15315 | ac_status=$? |
ac1cb8d3 VS |
15316 | grep -v '^ *+' conftest.er1 >conftest.err |
15317 | rm -f conftest.er1 | |
15318 | cat conftest.err >&5 | |
a848cd7e SC |
15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15320 | (exit $ac_status); } && | |
7714864e | 15321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15323 | (eval $ac_try) 2>&5 | |
15324 | ac_status=$? | |
15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15326 | (exit $ac_status); }; } && | |
15327 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15329 | (eval $ac_try) 2>&5 | |
15330 | ac_status=$? | |
15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15332 | (exit $ac_status); }; }; then | |
15333 | ac_hi=$ac_mid; break | |
15334 | else | |
15335 | echo "$as_me: failed program was:" >&5 | |
15336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15337 | ||
15338 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15339 | if test $ac_lo -le $ac_mid; then |
15340 | ac_lo= ac_hi= | |
15341 | break | |
15342 | fi | |
15343 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15344 | fi |
ac1cb8d3 | 15345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15346 | done |
15347 | else | |
15348 | echo "$as_me: failed program was:" >&5 | |
15349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15350 | ||
15351 | cat >conftest.$ac_ext <<_ACEOF | |
15352 | /* confdefs.h. */ | |
15353 | _ACEOF | |
15354 | cat confdefs.h >>conftest.$ac_ext | |
15355 | cat >>conftest.$ac_ext <<_ACEOF | |
15356 | /* end confdefs.h. */ | |
15357 | $ac_includes_default | |
15358 | int | |
15359 | main () | |
15360 | { | |
15361 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15362 | test_array [0] = 0 | |
15363 | ||
15364 | ; | |
15365 | return 0; | |
15366 | } | |
15367 | _ACEOF | |
15368 | rm -f conftest.$ac_objext | |
15369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15370 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15371 | ac_status=$? |
ac1cb8d3 VS |
15372 | grep -v '^ *+' conftest.er1 >conftest.err |
15373 | rm -f conftest.er1 | |
15374 | cat conftest.err >&5 | |
a848cd7e SC |
15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15376 | (exit $ac_status); } && | |
7714864e | 15377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15379 | (eval $ac_try) 2>&5 | |
15380 | ac_status=$? | |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15382 | (exit $ac_status); }; } && | |
15383 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15385 | (eval $ac_try) 2>&5 | |
15386 | ac_status=$? | |
15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15388 | (exit $ac_status); }; }; then | |
15389 | ac_hi=-1 ac_mid=-1 | |
15390 | while :; do | |
15391 | cat >conftest.$ac_ext <<_ACEOF | |
15392 | /* confdefs.h. */ | |
15393 | _ACEOF | |
15394 | cat confdefs.h >>conftest.$ac_ext | |
15395 | cat >>conftest.$ac_ext <<_ACEOF | |
15396 | /* end confdefs.h. */ | |
15397 | $ac_includes_default | |
15398 | int | |
15399 | main () | |
15400 | { | |
15401 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15402 | test_array [0] = 0 | |
15403 | ||
15404 | ; | |
15405 | return 0; | |
15406 | } | |
15407 | _ACEOF | |
15408 | rm -f conftest.$ac_objext | |
15409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15411 | ac_status=$? |
ac1cb8d3 VS |
15412 | grep -v '^ *+' conftest.er1 >conftest.err |
15413 | rm -f conftest.er1 | |
15414 | cat conftest.err >&5 | |
a848cd7e SC |
15415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15416 | (exit $ac_status); } && | |
7714864e | 15417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15419 | (eval $ac_try) 2>&5 | |
15420 | ac_status=$? | |
15421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15422 | (exit $ac_status); }; } && | |
15423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15425 | (eval $ac_try) 2>&5 | |
15426 | ac_status=$? | |
15427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15428 | (exit $ac_status); }; }; then | |
15429 | ac_lo=$ac_mid; break | |
15430 | else | |
15431 | echo "$as_me: failed program was:" >&5 | |
15432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15433 | ||
15434 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15435 | if test $ac_mid -le $ac_hi; then |
15436 | ac_lo= ac_hi= | |
15437 | break | |
15438 | fi | |
15439 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15440 | fi |
ac1cb8d3 | 15441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15442 | done |
15443 | else | |
15444 | echo "$as_me: failed program was:" >&5 | |
15445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15446 | ||
15447 | ac_lo= ac_hi= | |
15448 | fi | |
ac1cb8d3 | 15449 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15450 | fi |
ac1cb8d3 | 15451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15452 | # Binary search between lo and hi bounds. |
15453 | while test "x$ac_lo" != "x$ac_hi"; do | |
15454 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15455 | cat >conftest.$ac_ext <<_ACEOF | |
15456 | /* confdefs.h. */ | |
15457 | _ACEOF | |
15458 | cat confdefs.h >>conftest.$ac_ext | |
15459 | cat >>conftest.$ac_ext <<_ACEOF | |
15460 | /* end confdefs.h. */ | |
15461 | $ac_includes_default | |
15462 | int | |
15463 | main () | |
15464 | { | |
15465 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15466 | test_array [0] = 0 | |
15467 | ||
15468 | ; | |
15469 | return 0; | |
15470 | } | |
15471 | _ACEOF | |
15472 | rm -f conftest.$ac_objext | |
15473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15475 | ac_status=$? |
ac1cb8d3 VS |
15476 | grep -v '^ *+' conftest.er1 >conftest.err |
15477 | rm -f conftest.er1 | |
15478 | cat conftest.err >&5 | |
a848cd7e SC |
15479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15480 | (exit $ac_status); } && | |
7714864e | 15481 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15483 | (eval $ac_try) 2>&5 | |
15484 | ac_status=$? | |
15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15486 | (exit $ac_status); }; } && | |
15487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15489 | (eval $ac_try) 2>&5 | |
15490 | ac_status=$? | |
15491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15492 | (exit $ac_status); }; }; then | |
15493 | ac_hi=$ac_mid | |
15494 | else | |
15495 | echo "$as_me: failed program was:" >&5 | |
15496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15497 | ||
15498 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15499 | fi | |
ac1cb8d3 | 15500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15501 | done |
15502 | case $ac_lo in | |
15503 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15504 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15505 | See \`config.log' for more details." >&5 | |
15506 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15507 | See \`config.log' for more details." >&2;} | |
15508 | { (exit 1); exit 1; }; } ;; | |
15509 | esac | |
15510 | else | |
15511 | if test "$cross_compiling" = yes; then | |
7714864e RL |
15512 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15513 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15514 | { (exit 1); exit 1; }; } |
15515 | else | |
15516 | cat >conftest.$ac_ext <<_ACEOF | |
15517 | /* confdefs.h. */ | |
15518 | _ACEOF | |
15519 | cat confdefs.h >>conftest.$ac_ext | |
15520 | cat >>conftest.$ac_ext <<_ACEOF | |
15521 | /* end confdefs.h. */ | |
15522 | $ac_includes_default | |
15523 | long longval () { return (long) (sizeof (void *)); } | |
15524 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15525 | #include <stdio.h> | |
15526 | #include <stdlib.h> | |
15527 | int | |
15528 | main () | |
15529 | { | |
15530 | ||
15531 | FILE *f = fopen ("conftest.val", "w"); | |
15532 | if (! f) | |
15533 | exit (1); | |
15534 | if (((long) (sizeof (void *))) < 0) | |
15535 | { | |
15536 | long i = longval (); | |
15537 | if (i != ((long) (sizeof (void *)))) | |
15538 | exit (1); | |
15539 | fprintf (f, "%ld\n", i); | |
15540 | } | |
15541 | else | |
15542 | { | |
15543 | unsigned long i = ulongval (); | |
15544 | if (i != ((long) (sizeof (void *)))) | |
15545 | exit (1); | |
15546 | fprintf (f, "%lu\n", i); | |
15547 | } | |
15548 | exit (ferror (f) || fclose (f) != 0); | |
15549 | ||
15550 | ; | |
15551 | return 0; | |
15552 | } | |
15553 | _ACEOF | |
15554 | rm -f conftest$ac_exeext | |
15555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15556 | (eval $ac_link) 2>&5 | |
15557 | ac_status=$? | |
15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15561 | (eval $ac_try) 2>&5 | |
15562 | ac_status=$? | |
15563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15564 | (exit $ac_status); }; }; then | |
15565 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15566 | else | |
15567 | echo "$as_me: program exited with status $ac_status" >&5 | |
15568 | echo "$as_me: failed program was:" >&5 | |
15569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15570 | ||
15571 | ( exit $ac_status ) | |
15572 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15573 | See \`config.log' for more details." >&5 | |
15574 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15575 | See \`config.log' for more details." >&2;} | |
15576 | { (exit 1); exit 1; }; } | |
15577 | fi | |
ac1cb8d3 | 15578 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15579 | fi |
15580 | fi | |
15581 | rm -f conftest.val | |
15582 | else | |
15583 | ac_cv_sizeof_void_p=0 | |
15584 | fi | |
15585 | fi | |
15586 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15587 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15588 | cat >>confdefs.h <<_ACEOF | |
15589 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15590 | _ACEOF | |
15591 | ||
15592 | ||
15593 | echo "$as_me:$LINENO: checking for int" >&5 | |
15594 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15595 | if test "${ac_cv_type_int+set}" = set; then | |
15596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15597 | else | |
15598 | cat >conftest.$ac_ext <<_ACEOF | |
15599 | /* confdefs.h. */ | |
15600 | _ACEOF | |
15601 | cat confdefs.h >>conftest.$ac_ext | |
15602 | cat >>conftest.$ac_ext <<_ACEOF | |
15603 | /* end confdefs.h. */ | |
15604 | $ac_includes_default | |
15605 | int | |
15606 | main () | |
15607 | { | |
15608 | if ((int *) 0) | |
15609 | return 0; | |
15610 | if (sizeof (int)) | |
15611 | return 0; | |
15612 | ; | |
15613 | return 0; | |
15614 | } | |
15615 | _ACEOF | |
15616 | rm -f conftest.$ac_objext | |
15617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15618 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15619 | ac_status=$? |
ac1cb8d3 VS |
15620 | grep -v '^ *+' conftest.er1 >conftest.err |
15621 | rm -f conftest.er1 | |
15622 | cat conftest.err >&5 | |
a848cd7e SC |
15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15624 | (exit $ac_status); } && | |
7714864e | 15625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15627 | (eval $ac_try) 2>&5 | |
15628 | ac_status=$? | |
15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15630 | (exit $ac_status); }; } && | |
15631 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15633 | (eval $ac_try) 2>&5 | |
15634 | ac_status=$? | |
15635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15636 | (exit $ac_status); }; }; then | |
15637 | ac_cv_type_int=yes | |
15638 | else | |
15639 | echo "$as_me: failed program was:" >&5 | |
15640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15641 | ||
15642 | ac_cv_type_int=no | |
15643 | fi | |
ac1cb8d3 | 15644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15645 | fi |
15646 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15647 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15648 | ||
15649 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15650 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15651 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15653 | else | |
15654 | if test "$ac_cv_type_int" = yes; then | |
15655 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15656 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15657 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15658 | # This bug is HP SR number 8606223364. | |
15659 | if test "$cross_compiling" = yes; then | |
15660 | # Depending upon the size, compute the lo and hi bounds. | |
15661 | cat >conftest.$ac_ext <<_ACEOF | |
15662 | /* confdefs.h. */ | |
15663 | _ACEOF | |
15664 | cat confdefs.h >>conftest.$ac_ext | |
15665 | cat >>conftest.$ac_ext <<_ACEOF | |
15666 | /* end confdefs.h. */ | |
15667 | $ac_includes_default | |
15668 | int | |
15669 | main () | |
15670 | { | |
15671 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15672 | test_array [0] = 0 | |
15673 | ||
15674 | ; | |
15675 | return 0; | |
15676 | } | |
15677 | _ACEOF | |
15678 | rm -f conftest.$ac_objext | |
15679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15680 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15681 | ac_status=$? |
ac1cb8d3 VS |
15682 | grep -v '^ *+' conftest.er1 >conftest.err |
15683 | rm -f conftest.er1 | |
15684 | cat conftest.err >&5 | |
a848cd7e SC |
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15686 | (exit $ac_status); } && | |
7714864e | 15687 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 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); }; } && | |
15693 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15695 | (eval $ac_try) 2>&5 | |
15696 | ac_status=$? | |
15697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15698 | (exit $ac_status); }; }; then | |
15699 | ac_lo=0 ac_mid=0 | |
15700 | while :; do | |
15701 | cat >conftest.$ac_ext <<_ACEOF | |
15702 | /* confdefs.h. */ | |
15703 | _ACEOF | |
15704 | cat confdefs.h >>conftest.$ac_ext | |
15705 | cat >>conftest.$ac_ext <<_ACEOF | |
15706 | /* end confdefs.h. */ | |
15707 | $ac_includes_default | |
15708 | int | |
15709 | main () | |
15710 | { | |
15711 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15712 | test_array [0] = 0 | |
15713 | ||
15714 | ; | |
15715 | return 0; | |
15716 | } | |
15717 | _ACEOF | |
15718 | rm -f conftest.$ac_objext | |
15719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15721 | ac_status=$? |
ac1cb8d3 VS |
15722 | grep -v '^ *+' conftest.er1 >conftest.err |
15723 | rm -f conftest.er1 | |
15724 | cat conftest.err >&5 | |
a848cd7e SC |
15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15726 | (exit $ac_status); } && | |
7714864e | 15727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15729 | (eval $ac_try) 2>&5 | |
15730 | ac_status=$? | |
15731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15732 | (exit $ac_status); }; } && | |
15733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15735 | (eval $ac_try) 2>&5 | |
15736 | ac_status=$? | |
15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15738 | (exit $ac_status); }; }; then | |
15739 | ac_hi=$ac_mid; break | |
15740 | else | |
15741 | echo "$as_me: failed program was:" >&5 | |
15742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15743 | ||
15744 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15745 | if test $ac_lo -le $ac_mid; then |
15746 | ac_lo= ac_hi= | |
15747 | break | |
15748 | fi | |
15749 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15750 | fi |
ac1cb8d3 | 15751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15752 | done |
15753 | else | |
15754 | echo "$as_me: failed program was:" >&5 | |
15755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15756 | ||
15757 | cat >conftest.$ac_ext <<_ACEOF | |
15758 | /* confdefs.h. */ | |
15759 | _ACEOF | |
15760 | cat confdefs.h >>conftest.$ac_ext | |
15761 | cat >>conftest.$ac_ext <<_ACEOF | |
15762 | /* end confdefs.h. */ | |
15763 | $ac_includes_default | |
15764 | int | |
15765 | main () | |
15766 | { | |
15767 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15768 | test_array [0] = 0 | |
15769 | ||
15770 | ; | |
15771 | return 0; | |
15772 | } | |
15773 | _ACEOF | |
15774 | rm -f conftest.$ac_objext | |
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15776 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15777 | ac_status=$? |
ac1cb8d3 VS |
15778 | grep -v '^ *+' conftest.er1 >conftest.err |
15779 | rm -f conftest.er1 | |
15780 | cat conftest.err >&5 | |
a848cd7e SC |
15781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15782 | (exit $ac_status); } && | |
7714864e | 15783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15788 | (exit $ac_status); }; } && | |
15789 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15791 | (eval $ac_try) 2>&5 | |
15792 | ac_status=$? | |
15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15794 | (exit $ac_status); }; }; then | |
15795 | ac_hi=-1 ac_mid=-1 | |
15796 | while :; do | |
15797 | cat >conftest.$ac_ext <<_ACEOF | |
15798 | /* confdefs.h. */ | |
15799 | _ACEOF | |
15800 | cat confdefs.h >>conftest.$ac_ext | |
15801 | cat >>conftest.$ac_ext <<_ACEOF | |
15802 | /* end confdefs.h. */ | |
15803 | $ac_includes_default | |
15804 | int | |
15805 | main () | |
15806 | { | |
15807 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15808 | test_array [0] = 0 | |
15809 | ||
15810 | ; | |
15811 | return 0; | |
15812 | } | |
15813 | _ACEOF | |
15814 | rm -f conftest.$ac_objext | |
15815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15817 | ac_status=$? |
ac1cb8d3 VS |
15818 | grep -v '^ *+' conftest.er1 >conftest.err |
15819 | rm -f conftest.er1 | |
15820 | cat conftest.err >&5 | |
a848cd7e SC |
15821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15822 | (exit $ac_status); } && | |
7714864e | 15823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15825 | (eval $ac_try) 2>&5 | |
15826 | ac_status=$? | |
15827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15828 | (exit $ac_status); }; } && | |
15829 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15831 | (eval $ac_try) 2>&5 | |
15832 | ac_status=$? | |
15833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15834 | (exit $ac_status); }; }; then | |
15835 | ac_lo=$ac_mid; break | |
15836 | else | |
15837 | echo "$as_me: failed program was:" >&5 | |
15838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15839 | ||
15840 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15841 | if test $ac_mid -le $ac_hi; then |
15842 | ac_lo= ac_hi= | |
15843 | break | |
15844 | fi | |
15845 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15846 | fi |
ac1cb8d3 | 15847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15848 | done |
15849 | else | |
15850 | echo "$as_me: failed program was:" >&5 | |
15851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15852 | ||
15853 | ac_lo= ac_hi= | |
15854 | fi | |
ac1cb8d3 | 15855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15856 | fi |
ac1cb8d3 | 15857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15858 | # Binary search between lo and hi bounds. |
15859 | while test "x$ac_lo" != "x$ac_hi"; do | |
15860 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15861 | cat >conftest.$ac_ext <<_ACEOF | |
15862 | /* confdefs.h. */ | |
15863 | _ACEOF | |
15864 | cat confdefs.h >>conftest.$ac_ext | |
15865 | cat >>conftest.$ac_ext <<_ACEOF | |
15866 | /* end confdefs.h. */ | |
15867 | $ac_includes_default | |
15868 | int | |
15869 | main () | |
15870 | { | |
15871 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15872 | test_array [0] = 0 | |
15873 | ||
15874 | ; | |
15875 | return 0; | |
15876 | } | |
15877 | _ACEOF | |
15878 | rm -f conftest.$ac_objext | |
15879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15880 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15881 | ac_status=$? |
ac1cb8d3 VS |
15882 | grep -v '^ *+' conftest.er1 >conftest.err |
15883 | rm -f conftest.er1 | |
15884 | cat conftest.err >&5 | |
a848cd7e SC |
15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15886 | (exit $ac_status); } && | |
7714864e | 15887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15889 | (eval $ac_try) 2>&5 | |
15890 | ac_status=$? | |
15891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15892 | (exit $ac_status); }; } && | |
15893 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15895 | (eval $ac_try) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); }; }; then | |
15899 | ac_hi=$ac_mid | |
15900 | else | |
15901 | echo "$as_me: failed program was:" >&5 | |
15902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15903 | ||
15904 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15905 | fi | |
ac1cb8d3 | 15906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15907 | done |
15908 | case $ac_lo in | |
15909 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15910 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15911 | See \`config.log' for more details." >&5 | |
15912 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15913 | See \`config.log' for more details." >&2;} | |
15914 | { (exit 1); exit 1; }; } ;; | |
15915 | esac | |
15916 | else | |
15917 | if test "$cross_compiling" = yes; then | |
7714864e RL |
15918 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15919 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15920 | { (exit 1); exit 1; }; } |
15921 | else | |
15922 | cat >conftest.$ac_ext <<_ACEOF | |
15923 | /* confdefs.h. */ | |
15924 | _ACEOF | |
15925 | cat confdefs.h >>conftest.$ac_ext | |
15926 | cat >>conftest.$ac_ext <<_ACEOF | |
15927 | /* end confdefs.h. */ | |
15928 | $ac_includes_default | |
15929 | long longval () { return (long) (sizeof (int)); } | |
15930 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15931 | #include <stdio.h> | |
15932 | #include <stdlib.h> | |
15933 | int | |
15934 | main () | |
15935 | { | |
15936 | ||
15937 | FILE *f = fopen ("conftest.val", "w"); | |
15938 | if (! f) | |
15939 | exit (1); | |
15940 | if (((long) (sizeof (int))) < 0) | |
15941 | { | |
15942 | long i = longval (); | |
15943 | if (i != ((long) (sizeof (int)))) | |
15944 | exit (1); | |
15945 | fprintf (f, "%ld\n", i); | |
15946 | } | |
15947 | else | |
15948 | { | |
15949 | unsigned long i = ulongval (); | |
15950 | if (i != ((long) (sizeof (int)))) | |
15951 | exit (1); | |
15952 | fprintf (f, "%lu\n", i); | |
15953 | } | |
15954 | exit (ferror (f) || fclose (f) != 0); | |
15955 | ||
15956 | ; | |
15957 | return 0; | |
15958 | } | |
15959 | _ACEOF | |
15960 | rm -f conftest$ac_exeext | |
15961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15962 | (eval $ac_link) 2>&5 | |
15963 | ac_status=$? | |
15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15967 | (eval $ac_try) 2>&5 | |
15968 | ac_status=$? | |
15969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15970 | (exit $ac_status); }; }; then | |
15971 | ac_cv_sizeof_int=`cat conftest.val` | |
15972 | else | |
15973 | echo "$as_me: program exited with status $ac_status" >&5 | |
15974 | echo "$as_me: failed program was:" >&5 | |
15975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15976 | ||
15977 | ( exit $ac_status ) | |
15978 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15979 | See \`config.log' for more details." >&5 | |
15980 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15981 | See \`config.log' for more details." >&2;} | |
15982 | { (exit 1); exit 1; }; } | |
15983 | fi | |
ac1cb8d3 | 15984 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15985 | fi |
15986 | fi | |
15987 | rm -f conftest.val | |
15988 | else | |
15989 | ac_cv_sizeof_int=0 | |
15990 | fi | |
15991 | fi | |
15992 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15993 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15994 | cat >>confdefs.h <<_ACEOF | |
15995 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15996 | _ACEOF | |
15997 | ||
15998 | ||
15999 | echo "$as_me:$LINENO: checking for long" >&5 | |
16000 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16001 | if test "${ac_cv_type_long+set}" = set; then | |
16002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16003 | else | |
16004 | cat >conftest.$ac_ext <<_ACEOF | |
16005 | /* confdefs.h. */ | |
16006 | _ACEOF | |
16007 | cat confdefs.h >>conftest.$ac_ext | |
16008 | cat >>conftest.$ac_ext <<_ACEOF | |
16009 | /* end confdefs.h. */ | |
16010 | $ac_includes_default | |
16011 | int | |
16012 | main () | |
16013 | { | |
16014 | if ((long *) 0) | |
16015 | return 0; | |
16016 | if (sizeof (long)) | |
16017 | return 0; | |
16018 | ; | |
16019 | return 0; | |
16020 | } | |
16021 | _ACEOF | |
16022 | rm -f conftest.$ac_objext | |
16023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16025 | ac_status=$? |
ac1cb8d3 VS |
16026 | grep -v '^ *+' conftest.er1 >conftest.err |
16027 | rm -f conftest.er1 | |
16028 | cat conftest.err >&5 | |
a848cd7e SC |
16029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16030 | (exit $ac_status); } && | |
7714864e | 16031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16033 | (eval $ac_try) 2>&5 | |
16034 | ac_status=$? | |
16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16036 | (exit $ac_status); }; } && | |
16037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16039 | (eval $ac_try) 2>&5 | |
16040 | ac_status=$? | |
16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16042 | (exit $ac_status); }; }; then | |
16043 | ac_cv_type_long=yes | |
16044 | else | |
16045 | echo "$as_me: failed program was:" >&5 | |
16046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16047 | ||
16048 | ac_cv_type_long=no | |
16049 | fi | |
ac1cb8d3 | 16050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16051 | fi |
16052 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16053 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16054 | ||
16055 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16056 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16057 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16059 | else | |
16060 | if test "$ac_cv_type_long" = yes; then | |
16061 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16062 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16063 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16064 | # This bug is HP SR number 8606223364. | |
16065 | if test "$cross_compiling" = yes; then | |
16066 | # Depending upon the size, compute the lo and hi bounds. | |
16067 | cat >conftest.$ac_ext <<_ACEOF | |
16068 | /* confdefs.h. */ | |
16069 | _ACEOF | |
16070 | cat confdefs.h >>conftest.$ac_ext | |
16071 | cat >>conftest.$ac_ext <<_ACEOF | |
16072 | /* end confdefs.h. */ | |
16073 | $ac_includes_default | |
16074 | int | |
16075 | main () | |
16076 | { | |
16077 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16078 | test_array [0] = 0 | |
16079 | ||
16080 | ; | |
16081 | return 0; | |
16082 | } | |
16083 | _ACEOF | |
16084 | rm -f conftest.$ac_objext | |
16085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16086 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16087 | ac_status=$? |
ac1cb8d3 VS |
16088 | grep -v '^ *+' conftest.er1 >conftest.err |
16089 | rm -f conftest.er1 | |
16090 | cat conftest.err >&5 | |
a848cd7e SC |
16091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16092 | (exit $ac_status); } && | |
7714864e | 16093 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16095 | (eval $ac_try) 2>&5 | |
16096 | ac_status=$? | |
16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16098 | (exit $ac_status); }; } && | |
16099 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16101 | (eval $ac_try) 2>&5 | |
16102 | ac_status=$? | |
16103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16104 | (exit $ac_status); }; }; then | |
16105 | ac_lo=0 ac_mid=0 | |
16106 | while :; do | |
16107 | cat >conftest.$ac_ext <<_ACEOF | |
16108 | /* confdefs.h. */ | |
16109 | _ACEOF | |
16110 | cat confdefs.h >>conftest.$ac_ext | |
16111 | cat >>conftest.$ac_ext <<_ACEOF | |
16112 | /* end confdefs.h. */ | |
16113 | $ac_includes_default | |
16114 | int | |
16115 | main () | |
16116 | { | |
16117 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16118 | test_array [0] = 0 | |
16119 | ||
16120 | ; | |
16121 | return 0; | |
16122 | } | |
16123 | _ACEOF | |
16124 | rm -f conftest.$ac_objext | |
16125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16126 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16127 | ac_status=$? |
ac1cb8d3 VS |
16128 | grep -v '^ *+' conftest.er1 >conftest.err |
16129 | rm -f conftest.er1 | |
16130 | cat conftest.err >&5 | |
a848cd7e SC |
16131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16132 | (exit $ac_status); } && | |
7714864e | 16133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16135 | (eval $ac_try) 2>&5 | |
16136 | ac_status=$? | |
16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16138 | (exit $ac_status); }; } && | |
16139 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16141 | (eval $ac_try) 2>&5 | |
16142 | ac_status=$? | |
16143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16144 | (exit $ac_status); }; }; then | |
16145 | ac_hi=$ac_mid; break | |
16146 | else | |
16147 | echo "$as_me: failed program was:" >&5 | |
16148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16149 | ||
16150 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16151 | if test $ac_lo -le $ac_mid; then |
16152 | ac_lo= ac_hi= | |
16153 | break | |
16154 | fi | |
16155 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16156 | fi |
ac1cb8d3 | 16157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16158 | done |
16159 | else | |
16160 | echo "$as_me: failed program was:" >&5 | |
16161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16162 | ||
16163 | cat >conftest.$ac_ext <<_ACEOF | |
16164 | /* confdefs.h. */ | |
16165 | _ACEOF | |
16166 | cat confdefs.h >>conftest.$ac_ext | |
16167 | cat >>conftest.$ac_ext <<_ACEOF | |
16168 | /* end confdefs.h. */ | |
16169 | $ac_includes_default | |
16170 | int | |
16171 | main () | |
16172 | { | |
16173 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16174 | test_array [0] = 0 | |
16175 | ||
16176 | ; | |
16177 | return 0; | |
16178 | } | |
16179 | _ACEOF | |
16180 | rm -f conftest.$ac_objext | |
16181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16183 | ac_status=$? |
ac1cb8d3 VS |
16184 | grep -v '^ *+' conftest.er1 >conftest.err |
16185 | rm -f conftest.er1 | |
16186 | cat conftest.err >&5 | |
a848cd7e SC |
16187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16188 | (exit $ac_status); } && | |
7714864e | 16189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16191 | (eval $ac_try) 2>&5 | |
16192 | ac_status=$? | |
16193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16194 | (exit $ac_status); }; } && | |
16195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16197 | (eval $ac_try) 2>&5 | |
16198 | ac_status=$? | |
16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16200 | (exit $ac_status); }; }; then | |
16201 | ac_hi=-1 ac_mid=-1 | |
16202 | while :; do | |
16203 | cat >conftest.$ac_ext <<_ACEOF | |
16204 | /* confdefs.h. */ | |
16205 | _ACEOF | |
16206 | cat confdefs.h >>conftest.$ac_ext | |
16207 | cat >>conftest.$ac_ext <<_ACEOF | |
16208 | /* end confdefs.h. */ | |
16209 | $ac_includes_default | |
16210 | int | |
16211 | main () | |
16212 | { | |
16213 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16214 | test_array [0] = 0 | |
16215 | ||
16216 | ; | |
16217 | return 0; | |
16218 | } | |
16219 | _ACEOF | |
16220 | rm -f conftest.$ac_objext | |
16221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16222 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16223 | ac_status=$? |
ac1cb8d3 VS |
16224 | grep -v '^ *+' conftest.er1 >conftest.err |
16225 | rm -f conftest.er1 | |
16226 | cat conftest.err >&5 | |
a848cd7e SC |
16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16228 | (exit $ac_status); } && | |
7714864e | 16229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16231 | (eval $ac_try) 2>&5 | |
16232 | ac_status=$? | |
16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16234 | (exit $ac_status); }; } && | |
16235 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16237 | (eval $ac_try) 2>&5 | |
16238 | ac_status=$? | |
16239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16240 | (exit $ac_status); }; }; then | |
16241 | ac_lo=$ac_mid; break | |
16242 | else | |
16243 | echo "$as_me: failed program was:" >&5 | |
16244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16245 | ||
16246 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16247 | if test $ac_mid -le $ac_hi; then |
16248 | ac_lo= ac_hi= | |
16249 | break | |
16250 | fi | |
16251 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16252 | fi |
ac1cb8d3 | 16253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16254 | done |
16255 | else | |
16256 | echo "$as_me: failed program was:" >&5 | |
16257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16258 | ||
16259 | ac_lo= ac_hi= | |
16260 | fi | |
ac1cb8d3 | 16261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16262 | fi |
ac1cb8d3 | 16263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16264 | # Binary search between lo and hi bounds. |
16265 | while test "x$ac_lo" != "x$ac_hi"; do | |
16266 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16267 | cat >conftest.$ac_ext <<_ACEOF | |
16268 | /* confdefs.h. */ | |
16269 | _ACEOF | |
16270 | cat confdefs.h >>conftest.$ac_ext | |
16271 | cat >>conftest.$ac_ext <<_ACEOF | |
16272 | /* end confdefs.h. */ | |
16273 | $ac_includes_default | |
16274 | int | |
16275 | main () | |
16276 | { | |
16277 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16278 | test_array [0] = 0 | |
16279 | ||
16280 | ; | |
16281 | return 0; | |
16282 | } | |
16283 | _ACEOF | |
16284 | rm -f conftest.$ac_objext | |
16285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16287 | ac_status=$? |
ac1cb8d3 VS |
16288 | grep -v '^ *+' conftest.er1 >conftest.err |
16289 | rm -f conftest.er1 | |
16290 | cat conftest.err >&5 | |
a848cd7e SC |
16291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16292 | (exit $ac_status); } && | |
7714864e | 16293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16295 | (eval $ac_try) 2>&5 | |
16296 | ac_status=$? | |
16297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16298 | (exit $ac_status); }; } && | |
16299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16301 | (eval $ac_try) 2>&5 | |
16302 | ac_status=$? | |
16303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16304 | (exit $ac_status); }; }; then | |
16305 | ac_hi=$ac_mid | |
16306 | else | |
16307 | echo "$as_me: failed program was:" >&5 | |
16308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16309 | ||
16310 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16311 | fi | |
ac1cb8d3 | 16312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16313 | done |
16314 | case $ac_lo in | |
16315 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16316 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16317 | See \`config.log' for more details." >&5 | |
16318 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16319 | See \`config.log' for more details." >&2;} | |
16320 | { (exit 1); exit 1; }; } ;; | |
16321 | esac | |
16322 | else | |
16323 | if test "$cross_compiling" = yes; then | |
7714864e RL |
16324 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16325 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16326 | { (exit 1); exit 1; }; } |
16327 | else | |
16328 | cat >conftest.$ac_ext <<_ACEOF | |
16329 | /* confdefs.h. */ | |
16330 | _ACEOF | |
16331 | cat confdefs.h >>conftest.$ac_ext | |
16332 | cat >>conftest.$ac_ext <<_ACEOF | |
16333 | /* end confdefs.h. */ | |
16334 | $ac_includes_default | |
16335 | long longval () { return (long) (sizeof (long)); } | |
16336 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16337 | #include <stdio.h> | |
16338 | #include <stdlib.h> | |
16339 | int | |
16340 | main () | |
16341 | { | |
16342 | ||
16343 | FILE *f = fopen ("conftest.val", "w"); | |
16344 | if (! f) | |
16345 | exit (1); | |
16346 | if (((long) (sizeof (long))) < 0) | |
16347 | { | |
16348 | long i = longval (); | |
16349 | if (i != ((long) (sizeof (long)))) | |
16350 | exit (1); | |
16351 | fprintf (f, "%ld\n", i); | |
16352 | } | |
16353 | else | |
16354 | { | |
16355 | unsigned long i = ulongval (); | |
16356 | if (i != ((long) (sizeof (long)))) | |
16357 | exit (1); | |
16358 | fprintf (f, "%lu\n", i); | |
16359 | } | |
16360 | exit (ferror (f) || fclose (f) != 0); | |
16361 | ||
16362 | ; | |
16363 | return 0; | |
16364 | } | |
16365 | _ACEOF | |
16366 | rm -f conftest$ac_exeext | |
16367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16368 | (eval $ac_link) 2>&5 | |
16369 | ac_status=$? | |
16370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16373 | (eval $ac_try) 2>&5 | |
16374 | ac_status=$? | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); }; }; then | |
16377 | ac_cv_sizeof_long=`cat conftest.val` | |
16378 | else | |
16379 | echo "$as_me: program exited with status $ac_status" >&5 | |
16380 | echo "$as_me: failed program was:" >&5 | |
16381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16382 | ||
16383 | ( exit $ac_status ) | |
16384 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16385 | See \`config.log' for more details." >&5 | |
16386 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16387 | See \`config.log' for more details." >&2;} | |
16388 | { (exit 1); exit 1; }; } | |
16389 | fi | |
ac1cb8d3 | 16390 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16391 | fi |
16392 | fi | |
16393 | rm -f conftest.val | |
16394 | else | |
16395 | ac_cv_sizeof_long=0 | |
16396 | fi | |
16397 | fi | |
16398 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16399 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16400 | cat >>confdefs.h <<_ACEOF | |
16401 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16402 | _ACEOF | |
16403 | ||
16404 | ||
16405 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16406 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16407 | if test "${ac_cv_type_size_t+set}" = set; then | |
16408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16409 | else | |
16410 | cat >conftest.$ac_ext <<_ACEOF | |
16411 | /* confdefs.h. */ | |
16412 | _ACEOF | |
16413 | cat confdefs.h >>conftest.$ac_ext | |
16414 | cat >>conftest.$ac_ext <<_ACEOF | |
16415 | /* end confdefs.h. */ | |
16416 | $ac_includes_default | |
16417 | int | |
16418 | main () | |
16419 | { | |
16420 | if ((size_t *) 0) | |
16421 | return 0; | |
16422 | if (sizeof (size_t)) | |
16423 | return 0; | |
16424 | ; | |
16425 | return 0; | |
16426 | } | |
16427 | _ACEOF | |
16428 | rm -f conftest.$ac_objext | |
16429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16431 | ac_status=$? |
ac1cb8d3 VS |
16432 | grep -v '^ *+' conftest.er1 >conftest.err |
16433 | rm -f conftest.er1 | |
16434 | cat conftest.err >&5 | |
a848cd7e SC |
16435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16436 | (exit $ac_status); } && | |
7714864e | 16437 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16439 | (eval $ac_try) 2>&5 | |
16440 | ac_status=$? | |
16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16442 | (exit $ac_status); }; } && | |
16443 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16445 | (eval $ac_try) 2>&5 | |
16446 | ac_status=$? | |
16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16448 | (exit $ac_status); }; }; then | |
16449 | ac_cv_type_size_t=yes | |
16450 | else | |
16451 | echo "$as_me: failed program was:" >&5 | |
16452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16453 | ||
16454 | ac_cv_type_size_t=no | |
16455 | fi | |
ac1cb8d3 | 16456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16457 | fi |
16458 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16459 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16460 | ||
16461 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16462 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16463 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16465 | else | |
16466 | if test "$ac_cv_type_size_t" = yes; then | |
16467 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16468 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16469 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16470 | # This bug is HP SR number 8606223364. | |
16471 | if test "$cross_compiling" = yes; then | |
16472 | # Depending upon the size, compute the lo and hi bounds. | |
16473 | cat >conftest.$ac_ext <<_ACEOF | |
16474 | /* confdefs.h. */ | |
16475 | _ACEOF | |
16476 | cat confdefs.h >>conftest.$ac_ext | |
16477 | cat >>conftest.$ac_ext <<_ACEOF | |
16478 | /* end confdefs.h. */ | |
16479 | $ac_includes_default | |
16480 | int | |
16481 | main () | |
16482 | { | |
16483 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16484 | test_array [0] = 0 | |
16485 | ||
16486 | ; | |
16487 | return 0; | |
16488 | } | |
16489 | _ACEOF | |
16490 | rm -f conftest.$ac_objext | |
16491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16493 | ac_status=$? |
ac1cb8d3 VS |
16494 | grep -v '^ *+' conftest.er1 >conftest.err |
16495 | rm -f conftest.er1 | |
16496 | cat conftest.err >&5 | |
a848cd7e SC |
16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16498 | (exit $ac_status); } && | |
7714864e | 16499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16501 | (eval $ac_try) 2>&5 | |
16502 | ac_status=$? | |
16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16504 | (exit $ac_status); }; } && | |
16505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16507 | (eval $ac_try) 2>&5 | |
16508 | ac_status=$? | |
16509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16510 | (exit $ac_status); }; }; then | |
16511 | ac_lo=0 ac_mid=0 | |
16512 | while :; do | |
16513 | cat >conftest.$ac_ext <<_ACEOF | |
16514 | /* confdefs.h. */ | |
16515 | _ACEOF | |
16516 | cat confdefs.h >>conftest.$ac_ext | |
16517 | cat >>conftest.$ac_ext <<_ACEOF | |
16518 | /* end confdefs.h. */ | |
16519 | $ac_includes_default | |
16520 | int | |
16521 | main () | |
16522 | { | |
16523 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16524 | test_array [0] = 0 | |
16525 | ||
16526 | ; | |
16527 | return 0; | |
16528 | } | |
16529 | _ACEOF | |
16530 | rm -f conftest.$ac_objext | |
16531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16532 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16533 | ac_status=$? |
ac1cb8d3 VS |
16534 | grep -v '^ *+' conftest.er1 >conftest.err |
16535 | rm -f conftest.er1 | |
16536 | cat conftest.err >&5 | |
a848cd7e SC |
16537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16538 | (exit $ac_status); } && | |
7714864e | 16539 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16541 | (eval $ac_try) 2>&5 | |
16542 | ac_status=$? | |
16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16544 | (exit $ac_status); }; } && | |
16545 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16547 | (eval $ac_try) 2>&5 | |
16548 | ac_status=$? | |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16550 | (exit $ac_status); }; }; then | |
16551 | ac_hi=$ac_mid; break | |
16552 | else | |
16553 | echo "$as_me: failed program was:" >&5 | |
16554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16555 | ||
16556 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16557 | if test $ac_lo -le $ac_mid; then |
16558 | ac_lo= ac_hi= | |
16559 | break | |
16560 | fi | |
16561 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16562 | fi |
ac1cb8d3 | 16563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16564 | done |
16565 | else | |
16566 | echo "$as_me: failed program was:" >&5 | |
16567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16568 | ||
16569 | cat >conftest.$ac_ext <<_ACEOF | |
16570 | /* confdefs.h. */ | |
16571 | _ACEOF | |
16572 | cat confdefs.h >>conftest.$ac_ext | |
16573 | cat >>conftest.$ac_ext <<_ACEOF | |
16574 | /* end confdefs.h. */ | |
16575 | $ac_includes_default | |
16576 | int | |
16577 | main () | |
16578 | { | |
16579 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16580 | test_array [0] = 0 | |
16581 | ||
16582 | ; | |
16583 | return 0; | |
16584 | } | |
16585 | _ACEOF | |
16586 | rm -f conftest.$ac_objext | |
16587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16588 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16589 | ac_status=$? |
ac1cb8d3 VS |
16590 | grep -v '^ *+' conftest.er1 >conftest.err |
16591 | rm -f conftest.er1 | |
16592 | cat conftest.err >&5 | |
a848cd7e SC |
16593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16594 | (exit $ac_status); } && | |
7714864e | 16595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16597 | (eval $ac_try) 2>&5 | |
16598 | ac_status=$? | |
16599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16600 | (exit $ac_status); }; } && | |
16601 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16603 | (eval $ac_try) 2>&5 | |
16604 | ac_status=$? | |
16605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16606 | (exit $ac_status); }; }; then | |
16607 | ac_hi=-1 ac_mid=-1 | |
16608 | while :; do | |
16609 | cat >conftest.$ac_ext <<_ACEOF | |
16610 | /* confdefs.h. */ | |
16611 | _ACEOF | |
16612 | cat confdefs.h >>conftest.$ac_ext | |
16613 | cat >>conftest.$ac_ext <<_ACEOF | |
16614 | /* end confdefs.h. */ | |
16615 | $ac_includes_default | |
16616 | int | |
16617 | main () | |
16618 | { | |
16619 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16620 | test_array [0] = 0 | |
16621 | ||
16622 | ; | |
16623 | return 0; | |
16624 | } | |
16625 | _ACEOF | |
16626 | rm -f conftest.$ac_objext | |
16627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16628 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16629 | ac_status=$? |
ac1cb8d3 VS |
16630 | grep -v '^ *+' conftest.er1 >conftest.err |
16631 | rm -f conftest.er1 | |
16632 | cat conftest.err >&5 | |
a848cd7e SC |
16633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16634 | (exit $ac_status); } && | |
7714864e | 16635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16637 | (eval $ac_try) 2>&5 | |
16638 | ac_status=$? | |
16639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16640 | (exit $ac_status); }; } && | |
16641 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16643 | (eval $ac_try) 2>&5 | |
16644 | ac_status=$? | |
16645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16646 | (exit $ac_status); }; }; then | |
16647 | ac_lo=$ac_mid; break | |
16648 | else | |
16649 | echo "$as_me: failed program was:" >&5 | |
16650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16651 | ||
16652 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16653 | if test $ac_mid -le $ac_hi; then |
16654 | ac_lo= ac_hi= | |
16655 | break | |
16656 | fi | |
16657 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16658 | fi |
ac1cb8d3 | 16659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16660 | done |
16661 | else | |
16662 | echo "$as_me: failed program was:" >&5 | |
16663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16664 | ||
16665 | ac_lo= ac_hi= | |
16666 | fi | |
ac1cb8d3 | 16667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16668 | fi |
ac1cb8d3 | 16669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16670 | # Binary search between lo and hi bounds. |
16671 | while test "x$ac_lo" != "x$ac_hi"; do | |
16672 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16673 | cat >conftest.$ac_ext <<_ACEOF | |
16674 | /* confdefs.h. */ | |
16675 | _ACEOF | |
16676 | cat confdefs.h >>conftest.$ac_ext | |
16677 | cat >>conftest.$ac_ext <<_ACEOF | |
16678 | /* end confdefs.h. */ | |
16679 | $ac_includes_default | |
16680 | int | |
16681 | main () | |
16682 | { | |
16683 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16684 | test_array [0] = 0 | |
16685 | ||
16686 | ; | |
16687 | return 0; | |
16688 | } | |
16689 | _ACEOF | |
16690 | rm -f conftest.$ac_objext | |
16691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16693 | ac_status=$? |
ac1cb8d3 VS |
16694 | grep -v '^ *+' conftest.er1 >conftest.err |
16695 | rm -f conftest.er1 | |
16696 | cat conftest.err >&5 | |
a848cd7e SC |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16698 | (exit $ac_status); } && | |
7714864e | 16699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; } && | |
16705 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16707 | (eval $ac_try) 2>&5 | |
16708 | ac_status=$? | |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 | (exit $ac_status); }; }; then | |
16711 | ac_hi=$ac_mid | |
16712 | else | |
16713 | echo "$as_me: failed program was:" >&5 | |
16714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16715 | ||
16716 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16717 | fi | |
ac1cb8d3 | 16718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16719 | done |
16720 | case $ac_lo in | |
16721 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16722 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16723 | See \`config.log' for more details." >&5 | |
16724 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16725 | See \`config.log' for more details." >&2;} | |
16726 | { (exit 1); exit 1; }; } ;; | |
16727 | esac | |
16728 | else | |
16729 | if test "$cross_compiling" = yes; then | |
7714864e RL |
16730 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16731 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16732 | { (exit 1); exit 1; }; } |
16733 | else | |
16734 | cat >conftest.$ac_ext <<_ACEOF | |
16735 | /* confdefs.h. */ | |
16736 | _ACEOF | |
16737 | cat confdefs.h >>conftest.$ac_ext | |
16738 | cat >>conftest.$ac_ext <<_ACEOF | |
16739 | /* end confdefs.h. */ | |
16740 | $ac_includes_default | |
16741 | long longval () { return (long) (sizeof (size_t)); } | |
16742 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16743 | #include <stdio.h> | |
16744 | #include <stdlib.h> | |
16745 | int | |
16746 | main () | |
16747 | { | |
16748 | ||
16749 | FILE *f = fopen ("conftest.val", "w"); | |
16750 | if (! f) | |
16751 | exit (1); | |
16752 | if (((long) (sizeof (size_t))) < 0) | |
16753 | { | |
16754 | long i = longval (); | |
16755 | if (i != ((long) (sizeof (size_t)))) | |
16756 | exit (1); | |
16757 | fprintf (f, "%ld\n", i); | |
16758 | } | |
16759 | else | |
16760 | { | |
16761 | unsigned long i = ulongval (); | |
16762 | if (i != ((long) (sizeof (size_t)))) | |
16763 | exit (1); | |
16764 | fprintf (f, "%lu\n", i); | |
16765 | } | |
16766 | exit (ferror (f) || fclose (f) != 0); | |
16767 | ||
16768 | ; | |
16769 | return 0; | |
16770 | } | |
16771 | _ACEOF | |
16772 | rm -f conftest$ac_exeext | |
16773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16774 | (eval $ac_link) 2>&5 | |
16775 | ac_status=$? | |
16776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; }; then | |
16783 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16784 | else | |
16785 | echo "$as_me: program exited with status $ac_status" >&5 | |
16786 | echo "$as_me: failed program was:" >&5 | |
16787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16788 | ||
16789 | ( exit $ac_status ) | |
16790 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16791 | See \`config.log' for more details." >&5 | |
16792 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16793 | See \`config.log' for more details." >&2;} | |
16794 | { (exit 1); exit 1; }; } | |
16795 | fi | |
ac1cb8d3 | 16796 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16797 | fi |
16798 | fi | |
16799 | rm -f conftest.val | |
16800 | else | |
16801 | ac_cv_sizeof_size_t=0 | |
16802 | fi | |
16803 | fi | |
16804 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16805 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16806 | cat >>confdefs.h <<_ACEOF | |
16807 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16808 | _ACEOF | |
16809 | ||
16810 | ||
16811 | ||
16812 | case "${host}" in | |
16813 | arm-*-linux* ) | |
16814 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16815 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16816 | if test "${ac_cv_type_long_long+set}" = set; then | |
16817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16818 | else | |
16819 | cat >conftest.$ac_ext <<_ACEOF | |
16820 | /* confdefs.h. */ | |
16821 | _ACEOF | |
16822 | cat confdefs.h >>conftest.$ac_ext | |
16823 | cat >>conftest.$ac_ext <<_ACEOF | |
16824 | /* end confdefs.h. */ | |
16825 | $ac_includes_default | |
16826 | int | |
16827 | main () | |
16828 | { | |
16829 | if ((long long *) 0) | |
16830 | return 0; | |
16831 | if (sizeof (long long)) | |
16832 | return 0; | |
16833 | ; | |
16834 | return 0; | |
16835 | } | |
16836 | _ACEOF | |
16837 | rm -f conftest.$ac_objext | |
16838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16839 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16840 | ac_status=$? |
ac1cb8d3 VS |
16841 | grep -v '^ *+' conftest.er1 >conftest.err |
16842 | rm -f conftest.er1 | |
16843 | cat conftest.err >&5 | |
a848cd7e SC |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16845 | (exit $ac_status); } && | |
7714864e | 16846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; } && | |
16852 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; }; then | |
16858 | ac_cv_type_long_long=yes | |
16859 | else | |
16860 | echo "$as_me: failed program was:" >&5 | |
16861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16862 | ||
16863 | ac_cv_type_long_long=no | |
16864 | fi | |
ac1cb8d3 | 16865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16866 | fi |
16867 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16868 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16869 | ||
16870 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16871 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16872 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16874 | else | |
16875 | if test "$ac_cv_type_long_long" = yes; then | |
16876 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16877 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16878 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16879 | # This bug is HP SR number 8606223364. | |
16880 | if test "$cross_compiling" = yes; then | |
16881 | # Depending upon the size, compute the lo and hi bounds. | |
16882 | cat >conftest.$ac_ext <<_ACEOF | |
16883 | /* confdefs.h. */ | |
16884 | _ACEOF | |
16885 | cat confdefs.h >>conftest.$ac_ext | |
16886 | cat >>conftest.$ac_ext <<_ACEOF | |
16887 | /* end confdefs.h. */ | |
16888 | $ac_includes_default | |
16889 | int | |
16890 | main () | |
16891 | { | |
16892 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16893 | test_array [0] = 0 | |
16894 | ||
16895 | ; | |
16896 | return 0; | |
16897 | } | |
16898 | _ACEOF | |
16899 | rm -f conftest.$ac_objext | |
16900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16901 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16902 | ac_status=$? |
ac1cb8d3 VS |
16903 | grep -v '^ *+' conftest.er1 >conftest.err |
16904 | rm -f conftest.er1 | |
16905 | cat conftest.err >&5 | |
a848cd7e SC |
16906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16907 | (exit $ac_status); } && | |
7714864e | 16908 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16910 | (eval $ac_try) 2>&5 | |
16911 | ac_status=$? | |
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16913 | (exit $ac_status); }; } && | |
16914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16916 | (eval $ac_try) 2>&5 | |
16917 | ac_status=$? | |
16918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16919 | (exit $ac_status); }; }; then | |
16920 | ac_lo=0 ac_mid=0 | |
16921 | while :; do | |
16922 | cat >conftest.$ac_ext <<_ACEOF | |
16923 | /* confdefs.h. */ | |
16924 | _ACEOF | |
16925 | cat confdefs.h >>conftest.$ac_ext | |
16926 | cat >>conftest.$ac_ext <<_ACEOF | |
16927 | /* end confdefs.h. */ | |
16928 | $ac_includes_default | |
16929 | int | |
16930 | main () | |
16931 | { | |
16932 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16933 | test_array [0] = 0 | |
16934 | ||
16935 | ; | |
16936 | return 0; | |
16937 | } | |
16938 | _ACEOF | |
16939 | rm -f conftest.$ac_objext | |
16940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16942 | ac_status=$? |
ac1cb8d3 VS |
16943 | grep -v '^ *+' conftest.er1 >conftest.err |
16944 | rm -f conftest.er1 | |
16945 | cat conftest.err >&5 | |
a848cd7e SC |
16946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16947 | (exit $ac_status); } && | |
7714864e | 16948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16950 | (eval $ac_try) 2>&5 | |
16951 | ac_status=$? | |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16953 | (exit $ac_status); }; } && | |
16954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16956 | (eval $ac_try) 2>&5 | |
16957 | ac_status=$? | |
16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16959 | (exit $ac_status); }; }; then | |
16960 | ac_hi=$ac_mid; break | |
16961 | else | |
16962 | echo "$as_me: failed program was:" >&5 | |
16963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16964 | ||
16965 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16966 | if test $ac_lo -le $ac_mid; then |
16967 | ac_lo= ac_hi= | |
16968 | break | |
16969 | fi | |
16970 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16971 | fi |
ac1cb8d3 | 16972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16973 | done |
16974 | else | |
16975 | echo "$as_me: failed program was:" >&5 | |
16976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16977 | ||
16978 | cat >conftest.$ac_ext <<_ACEOF | |
16979 | /* confdefs.h. */ | |
16980 | _ACEOF | |
16981 | cat confdefs.h >>conftest.$ac_ext | |
16982 | cat >>conftest.$ac_ext <<_ACEOF | |
16983 | /* end confdefs.h. */ | |
16984 | $ac_includes_default | |
16985 | int | |
16986 | main () | |
16987 | { | |
16988 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16989 | test_array [0] = 0 | |
16990 | ||
16991 | ; | |
16992 | return 0; | |
16993 | } | |
16994 | _ACEOF | |
16995 | rm -f conftest.$ac_objext | |
16996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16998 | ac_status=$? |
ac1cb8d3 VS |
16999 | grep -v '^ *+' conftest.er1 >conftest.err |
17000 | rm -f conftest.er1 | |
17001 | cat conftest.err >&5 | |
a848cd7e SC |
17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17003 | (exit $ac_status); } && | |
7714864e | 17004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17006 | (eval $ac_try) 2>&5 | |
17007 | ac_status=$? | |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17009 | (exit $ac_status); }; } && | |
17010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17012 | (eval $ac_try) 2>&5 | |
17013 | ac_status=$? | |
17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17015 | (exit $ac_status); }; }; then | |
17016 | ac_hi=-1 ac_mid=-1 | |
17017 | while :; do | |
17018 | cat >conftest.$ac_ext <<_ACEOF | |
17019 | /* confdefs.h. */ | |
17020 | _ACEOF | |
17021 | cat confdefs.h >>conftest.$ac_ext | |
17022 | cat >>conftest.$ac_ext <<_ACEOF | |
17023 | /* end confdefs.h. */ | |
17024 | $ac_includes_default | |
17025 | int | |
17026 | main () | |
17027 | { | |
17028 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17029 | test_array [0] = 0 | |
17030 | ||
17031 | ; | |
17032 | return 0; | |
17033 | } | |
17034 | _ACEOF | |
17035 | rm -f conftest.$ac_objext | |
17036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17037 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17038 | ac_status=$? |
ac1cb8d3 VS |
17039 | grep -v '^ *+' conftest.er1 >conftest.err |
17040 | rm -f conftest.er1 | |
17041 | cat conftest.err >&5 | |
a848cd7e SC |
17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17043 | (exit $ac_status); } && | |
7714864e | 17044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17046 | (eval $ac_try) 2>&5 | |
17047 | ac_status=$? | |
17048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17049 | (exit $ac_status); }; } && | |
17050 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17052 | (eval $ac_try) 2>&5 | |
17053 | ac_status=$? | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); }; }; then | |
17056 | ac_lo=$ac_mid; break | |
17057 | else | |
17058 | echo "$as_me: failed program was:" >&5 | |
17059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17060 | ||
17061 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17062 | if test $ac_mid -le $ac_hi; then |
17063 | ac_lo= ac_hi= | |
17064 | break | |
17065 | fi | |
17066 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17067 | fi |
ac1cb8d3 | 17068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17069 | done |
17070 | else | |
17071 | echo "$as_me: failed program was:" >&5 | |
17072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17073 | ||
17074 | ac_lo= ac_hi= | |
17075 | fi | |
ac1cb8d3 | 17076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17077 | fi |
ac1cb8d3 | 17078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17079 | # Binary search between lo and hi bounds. |
17080 | while test "x$ac_lo" != "x$ac_hi"; do | |
17081 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17082 | cat >conftest.$ac_ext <<_ACEOF | |
17083 | /* confdefs.h. */ | |
17084 | _ACEOF | |
17085 | cat confdefs.h >>conftest.$ac_ext | |
17086 | cat >>conftest.$ac_ext <<_ACEOF | |
17087 | /* end confdefs.h. */ | |
17088 | $ac_includes_default | |
17089 | int | |
17090 | main () | |
17091 | { | |
17092 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17093 | test_array [0] = 0 | |
17094 | ||
17095 | ; | |
17096 | return 0; | |
17097 | } | |
17098 | _ACEOF | |
17099 | rm -f conftest.$ac_objext | |
17100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17102 | ac_status=$? |
ac1cb8d3 VS |
17103 | grep -v '^ *+' conftest.er1 >conftest.err |
17104 | rm -f conftest.er1 | |
17105 | cat conftest.err >&5 | |
a848cd7e SC |
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17107 | (exit $ac_status); } && | |
7714864e | 17108 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17110 | (eval $ac_try) 2>&5 | |
17111 | ac_status=$? | |
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17113 | (exit $ac_status); }; } && | |
17114 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17116 | (eval $ac_try) 2>&5 | |
17117 | ac_status=$? | |
17118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17119 | (exit $ac_status); }; }; then | |
17120 | ac_hi=$ac_mid | |
17121 | else | |
17122 | echo "$as_me: failed program was:" >&5 | |
17123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17124 | ||
17125 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17126 | fi | |
ac1cb8d3 | 17127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17128 | done |
17129 | case $ac_lo in | |
17130 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17131 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17132 | See \`config.log' for more details." >&5 | |
17133 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17134 | See \`config.log' for more details." >&2;} | |
17135 | { (exit 1); exit 1; }; } ;; | |
17136 | esac | |
17137 | else | |
17138 | if test "$cross_compiling" = yes; then | |
7714864e RL |
17139 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17140 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17141 | { (exit 1); exit 1; }; } |
17142 | else | |
17143 | cat >conftest.$ac_ext <<_ACEOF | |
17144 | /* confdefs.h. */ | |
17145 | _ACEOF | |
17146 | cat confdefs.h >>conftest.$ac_ext | |
17147 | cat >>conftest.$ac_ext <<_ACEOF | |
17148 | /* end confdefs.h. */ | |
17149 | $ac_includes_default | |
17150 | long longval () { return (long) (sizeof (long long)); } | |
17151 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17152 | #include <stdio.h> | |
17153 | #include <stdlib.h> | |
17154 | int | |
17155 | main () | |
17156 | { | |
17157 | ||
17158 | FILE *f = fopen ("conftest.val", "w"); | |
17159 | if (! f) | |
17160 | exit (1); | |
17161 | if (((long) (sizeof (long long))) < 0) | |
17162 | { | |
17163 | long i = longval (); | |
17164 | if (i != ((long) (sizeof (long long)))) | |
17165 | exit (1); | |
17166 | fprintf (f, "%ld\n", i); | |
17167 | } | |
17168 | else | |
17169 | { | |
17170 | unsigned long i = ulongval (); | |
17171 | if (i != ((long) (sizeof (long long)))) | |
17172 | exit (1); | |
17173 | fprintf (f, "%lu\n", i); | |
17174 | } | |
17175 | exit (ferror (f) || fclose (f) != 0); | |
17176 | ||
17177 | ; | |
17178 | return 0; | |
17179 | } | |
17180 | _ACEOF | |
17181 | rm -f conftest$ac_exeext | |
17182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17183 | (eval $ac_link) 2>&5 | |
17184 | ac_status=$? | |
17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17188 | (eval $ac_try) 2>&5 | |
17189 | ac_status=$? | |
17190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17191 | (exit $ac_status); }; }; then | |
17192 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17193 | else | |
17194 | echo "$as_me: program exited with status $ac_status" >&5 | |
17195 | echo "$as_me: failed program was:" >&5 | |
17196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17197 | ||
17198 | ( exit $ac_status ) | |
17199 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17200 | See \`config.log' for more details." >&5 | |
17201 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17202 | See \`config.log' for more details." >&2;} | |
17203 | { (exit 1); exit 1; }; } | |
17204 | fi | |
ac1cb8d3 | 17205 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17206 | fi |
17207 | fi | |
17208 | rm -f conftest.val | |
17209 | else | |
17210 | ac_cv_sizeof_long_long=0 | |
17211 | fi | |
17212 | fi | |
17213 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17214 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17215 | cat >>confdefs.h <<_ACEOF | |
17216 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17217 | _ACEOF | |
17218 | ||
17219 | ||
17220 | ;; | |
17221 | *-hp-hpux* ) | |
17222 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17223 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17224 | if test "${ac_cv_type_long_long+set}" = set; then | |
17225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17226 | else | |
17227 | cat >conftest.$ac_ext <<_ACEOF | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
17233 | $ac_includes_default | |
17234 | int | |
17235 | main () | |
17236 | { | |
17237 | if ((long long *) 0) | |
17238 | return 0; | |
17239 | if (sizeof (long long)) | |
17240 | return 0; | |
17241 | ; | |
17242 | return 0; | |
17243 | } | |
17244 | _ACEOF | |
17245 | rm -f conftest.$ac_objext | |
17246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17247 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17248 | ac_status=$? |
ac1cb8d3 VS |
17249 | grep -v '^ *+' conftest.er1 >conftest.err |
17250 | rm -f conftest.er1 | |
17251 | cat conftest.err >&5 | |
a848cd7e SC |
17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17253 | (exit $ac_status); } && | |
7714864e | 17254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17256 | (eval $ac_try) 2>&5 | |
17257 | ac_status=$? | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); }; } && | |
17260 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17262 | (eval $ac_try) 2>&5 | |
17263 | ac_status=$? | |
17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17265 | (exit $ac_status); }; }; then | |
17266 | ac_cv_type_long_long=yes | |
17267 | else | |
17268 | echo "$as_me: failed program was:" >&5 | |
17269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17270 | ||
17271 | ac_cv_type_long_long=no | |
17272 | fi | |
ac1cb8d3 | 17273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17274 | fi |
17275 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17276 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17277 | ||
17278 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17279 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17280 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17282 | else | |
17283 | if test "$ac_cv_type_long_long" = yes; then | |
17284 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17285 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17286 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17287 | # This bug is HP SR number 8606223364. | |
17288 | if test "$cross_compiling" = yes; then | |
17289 | # Depending upon the size, compute the lo and hi bounds. | |
17290 | cat >conftest.$ac_ext <<_ACEOF | |
17291 | /* confdefs.h. */ | |
17292 | _ACEOF | |
17293 | cat confdefs.h >>conftest.$ac_ext | |
17294 | cat >>conftest.$ac_ext <<_ACEOF | |
17295 | /* end confdefs.h. */ | |
17296 | $ac_includes_default | |
17297 | int | |
17298 | main () | |
17299 | { | |
17300 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17301 | test_array [0] = 0 | |
17302 | ||
17303 | ; | |
17304 | return 0; | |
17305 | } | |
17306 | _ACEOF | |
17307 | rm -f conftest.$ac_objext | |
17308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17309 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17310 | ac_status=$? |
ac1cb8d3 VS |
17311 | grep -v '^ *+' conftest.er1 >conftest.err |
17312 | rm -f conftest.er1 | |
17313 | cat conftest.err >&5 | |
a848cd7e SC |
17314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17315 | (exit $ac_status); } && | |
7714864e | 17316 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17318 | (eval $ac_try) 2>&5 | |
17319 | ac_status=$? | |
17320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17321 | (exit $ac_status); }; } && | |
17322 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17324 | (eval $ac_try) 2>&5 | |
17325 | ac_status=$? | |
17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17327 | (exit $ac_status); }; }; then | |
17328 | ac_lo=0 ac_mid=0 | |
17329 | while :; do | |
17330 | cat >conftest.$ac_ext <<_ACEOF | |
17331 | /* confdefs.h. */ | |
17332 | _ACEOF | |
17333 | cat confdefs.h >>conftest.$ac_ext | |
17334 | cat >>conftest.$ac_ext <<_ACEOF | |
17335 | /* end confdefs.h. */ | |
17336 | $ac_includes_default | |
17337 | int | |
17338 | main () | |
17339 | { | |
17340 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17341 | test_array [0] = 0 | |
17342 | ||
17343 | ; | |
17344 | return 0; | |
17345 | } | |
17346 | _ACEOF | |
17347 | rm -f conftest.$ac_objext | |
17348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17350 | ac_status=$? |
ac1cb8d3 VS |
17351 | grep -v '^ *+' conftest.er1 >conftest.err |
17352 | rm -f conftest.er1 | |
17353 | cat conftest.err >&5 | |
a848cd7e SC |
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17355 | (exit $ac_status); } && | |
7714864e | 17356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17358 | (eval $ac_try) 2>&5 | |
17359 | ac_status=$? | |
17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17361 | (exit $ac_status); }; } && | |
17362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17364 | (eval $ac_try) 2>&5 | |
17365 | ac_status=$? | |
17366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17367 | (exit $ac_status); }; }; then | |
17368 | ac_hi=$ac_mid; break | |
17369 | else | |
17370 | echo "$as_me: failed program was:" >&5 | |
17371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17372 | ||
17373 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17374 | if test $ac_lo -le $ac_mid; then |
17375 | ac_lo= ac_hi= | |
17376 | break | |
17377 | fi | |
17378 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17379 | fi |
ac1cb8d3 | 17380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17381 | done |
17382 | else | |
17383 | echo "$as_me: failed program was:" >&5 | |
17384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17385 | ||
17386 | cat >conftest.$ac_ext <<_ACEOF | |
17387 | /* confdefs.h. */ | |
17388 | _ACEOF | |
17389 | cat confdefs.h >>conftest.$ac_ext | |
17390 | cat >>conftest.$ac_ext <<_ACEOF | |
17391 | /* end confdefs.h. */ | |
17392 | $ac_includes_default | |
17393 | int | |
17394 | main () | |
17395 | { | |
17396 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17397 | test_array [0] = 0 | |
17398 | ||
17399 | ; | |
17400 | return 0; | |
17401 | } | |
17402 | _ACEOF | |
17403 | rm -f conftest.$ac_objext | |
17404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17405 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17406 | ac_status=$? |
ac1cb8d3 VS |
17407 | grep -v '^ *+' conftest.er1 >conftest.err |
17408 | rm -f conftest.er1 | |
17409 | cat conftest.err >&5 | |
a848cd7e SC |
17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17411 | (exit $ac_status); } && | |
7714864e | 17412 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17414 | (eval $ac_try) 2>&5 | |
17415 | ac_status=$? | |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17417 | (exit $ac_status); }; } && | |
17418 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17420 | (eval $ac_try) 2>&5 | |
17421 | ac_status=$? | |
17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17423 | (exit $ac_status); }; }; then | |
17424 | ac_hi=-1 ac_mid=-1 | |
17425 | while :; do | |
17426 | cat >conftest.$ac_ext <<_ACEOF | |
17427 | /* confdefs.h. */ | |
17428 | _ACEOF | |
17429 | cat confdefs.h >>conftest.$ac_ext | |
17430 | cat >>conftest.$ac_ext <<_ACEOF | |
17431 | /* end confdefs.h. */ | |
17432 | $ac_includes_default | |
17433 | int | |
17434 | main () | |
17435 | { | |
17436 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17437 | test_array [0] = 0 | |
17438 | ||
17439 | ; | |
17440 | return 0; | |
17441 | } | |
17442 | _ACEOF | |
17443 | rm -f conftest.$ac_objext | |
17444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17445 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17446 | ac_status=$? |
ac1cb8d3 VS |
17447 | grep -v '^ *+' conftest.er1 >conftest.err |
17448 | rm -f conftest.er1 | |
17449 | cat conftest.err >&5 | |
a848cd7e SC |
17450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17451 | (exit $ac_status); } && | |
7714864e | 17452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17454 | (eval $ac_try) 2>&5 | |
17455 | ac_status=$? | |
17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17457 | (exit $ac_status); }; } && | |
17458 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17460 | (eval $ac_try) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); }; }; then | |
17464 | ac_lo=$ac_mid; break | |
17465 | else | |
17466 | echo "$as_me: failed program was:" >&5 | |
17467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17468 | ||
17469 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17470 | if test $ac_mid -le $ac_hi; then |
17471 | ac_lo= ac_hi= | |
17472 | break | |
17473 | fi | |
17474 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17475 | fi |
ac1cb8d3 | 17476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17477 | done |
17478 | else | |
17479 | echo "$as_me: failed program was:" >&5 | |
17480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17481 | ||
17482 | ac_lo= ac_hi= | |
17483 | fi | |
ac1cb8d3 | 17484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17485 | fi |
ac1cb8d3 | 17486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17487 | # Binary search between lo and hi bounds. |
17488 | while test "x$ac_lo" != "x$ac_hi"; do | |
17489 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17490 | cat >conftest.$ac_ext <<_ACEOF | |
17491 | /* confdefs.h. */ | |
17492 | _ACEOF | |
17493 | cat confdefs.h >>conftest.$ac_ext | |
17494 | cat >>conftest.$ac_ext <<_ACEOF | |
17495 | /* end confdefs.h. */ | |
17496 | $ac_includes_default | |
17497 | int | |
17498 | main () | |
17499 | { | |
17500 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17501 | test_array [0] = 0 | |
17502 | ||
17503 | ; | |
17504 | return 0; | |
17505 | } | |
17506 | _ACEOF | |
17507 | rm -f conftest.$ac_objext | |
17508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17509 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17510 | ac_status=$? |
ac1cb8d3 VS |
17511 | grep -v '^ *+' conftest.er1 >conftest.err |
17512 | rm -f conftest.er1 | |
17513 | cat conftest.err >&5 | |
a848cd7e SC |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17515 | (exit $ac_status); } && | |
7714864e | 17516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17518 | (eval $ac_try) 2>&5 | |
17519 | ac_status=$? | |
17520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17521 | (exit $ac_status); }; } && | |
17522 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17524 | (eval $ac_try) 2>&5 | |
17525 | ac_status=$? | |
17526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17527 | (exit $ac_status); }; }; then | |
17528 | ac_hi=$ac_mid | |
17529 | else | |
17530 | echo "$as_me: failed program was:" >&5 | |
17531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17532 | ||
17533 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17534 | fi | |
ac1cb8d3 | 17535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17536 | done |
17537 | case $ac_lo in | |
17538 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17539 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17540 | See \`config.log' for more details." >&5 | |
17541 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17542 | See \`config.log' for more details." >&2;} | |
17543 | { (exit 1); exit 1; }; } ;; | |
17544 | esac | |
17545 | else | |
17546 | if test "$cross_compiling" = yes; then | |
7714864e RL |
17547 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17548 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17549 | { (exit 1); exit 1; }; } |
17550 | else | |
17551 | cat >conftest.$ac_ext <<_ACEOF | |
17552 | /* confdefs.h. */ | |
17553 | _ACEOF | |
17554 | cat confdefs.h >>conftest.$ac_ext | |
17555 | cat >>conftest.$ac_ext <<_ACEOF | |
17556 | /* end confdefs.h. */ | |
17557 | $ac_includes_default | |
17558 | long longval () { return (long) (sizeof (long long)); } | |
17559 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17560 | #include <stdio.h> | |
17561 | #include <stdlib.h> | |
17562 | int | |
17563 | main () | |
17564 | { | |
17565 | ||
17566 | FILE *f = fopen ("conftest.val", "w"); | |
17567 | if (! f) | |
17568 | exit (1); | |
17569 | if (((long) (sizeof (long long))) < 0) | |
17570 | { | |
17571 | long i = longval (); | |
17572 | if (i != ((long) (sizeof (long long)))) | |
17573 | exit (1); | |
17574 | fprintf (f, "%ld\n", i); | |
17575 | } | |
17576 | else | |
17577 | { | |
17578 | unsigned long i = ulongval (); | |
17579 | if (i != ((long) (sizeof (long long)))) | |
17580 | exit (1); | |
17581 | fprintf (f, "%lu\n", i); | |
17582 | } | |
17583 | exit (ferror (f) || fclose (f) != 0); | |
17584 | ||
17585 | ; | |
17586 | return 0; | |
17587 | } | |
17588 | _ACEOF | |
17589 | rm -f conftest$ac_exeext | |
17590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17591 | (eval $ac_link) 2>&5 | |
17592 | ac_status=$? | |
17593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17594 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17596 | (eval $ac_try) 2>&5 | |
17597 | ac_status=$? | |
17598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17599 | (exit $ac_status); }; }; then | |
17600 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17601 | else | |
17602 | echo "$as_me: program exited with status $ac_status" >&5 | |
17603 | echo "$as_me: failed program was:" >&5 | |
17604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17605 | ||
17606 | ( exit $ac_status ) | |
17607 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17608 | See \`config.log' for more details." >&5 | |
17609 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17610 | See \`config.log' for more details." >&2;} | |
17611 | { (exit 1); exit 1; }; } | |
17612 | fi | |
ac1cb8d3 | 17613 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17614 | fi |
17615 | fi | |
17616 | rm -f conftest.val | |
17617 | else | |
17618 | ac_cv_sizeof_long_long=0 | |
17619 | fi | |
17620 | fi | |
17621 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17622 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17623 | cat >>confdefs.h <<_ACEOF | |
17624 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17625 | _ACEOF | |
17626 | ||
17627 | ||
17628 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17629 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17630 | fi | |
17631 | ;; | |
17632 | * ) | |
17633 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17634 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17635 | if test "${ac_cv_type_long_long+set}" = set; then | |
17636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17637 | else | |
17638 | cat >conftest.$ac_ext <<_ACEOF | |
17639 | /* confdefs.h. */ | |
17640 | _ACEOF | |
17641 | cat confdefs.h >>conftest.$ac_ext | |
17642 | cat >>conftest.$ac_ext <<_ACEOF | |
17643 | /* end confdefs.h. */ | |
17644 | $ac_includes_default | |
17645 | int | |
17646 | main () | |
17647 | { | |
17648 | if ((long long *) 0) | |
17649 | return 0; | |
17650 | if (sizeof (long long)) | |
17651 | return 0; | |
17652 | ; | |
17653 | return 0; | |
17654 | } | |
17655 | _ACEOF | |
17656 | rm -f conftest.$ac_objext | |
17657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17658 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17659 | ac_status=$? |
ac1cb8d3 VS |
17660 | grep -v '^ *+' conftest.er1 >conftest.err |
17661 | rm -f conftest.er1 | |
17662 | cat conftest.err >&5 | |
a848cd7e SC |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17664 | (exit $ac_status); } && | |
7714864e | 17665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17667 | (eval $ac_try) 2>&5 | |
17668 | ac_status=$? | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); }; } && | |
17671 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17673 | (eval $ac_try) 2>&5 | |
17674 | ac_status=$? | |
17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17676 | (exit $ac_status); }; }; then | |
17677 | ac_cv_type_long_long=yes | |
17678 | else | |
17679 | echo "$as_me: failed program was:" >&5 | |
17680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17681 | ||
17682 | ac_cv_type_long_long=no | |
17683 | fi | |
ac1cb8d3 | 17684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17685 | fi |
17686 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17687 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17688 | ||
17689 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17690 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17691 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17693 | else | |
17694 | if test "$ac_cv_type_long_long" = yes; then | |
17695 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17696 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17697 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17698 | # This bug is HP SR number 8606223364. | |
17699 | if test "$cross_compiling" = yes; then | |
17700 | # Depending upon the size, compute the lo and hi bounds. | |
17701 | cat >conftest.$ac_ext <<_ACEOF | |
17702 | /* confdefs.h. */ | |
17703 | _ACEOF | |
17704 | cat confdefs.h >>conftest.$ac_ext | |
17705 | cat >>conftest.$ac_ext <<_ACEOF | |
17706 | /* end confdefs.h. */ | |
17707 | $ac_includes_default | |
17708 | int | |
17709 | main () | |
17710 | { | |
17711 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17712 | test_array [0] = 0 | |
17713 | ||
17714 | ; | |
17715 | return 0; | |
17716 | } | |
17717 | _ACEOF | |
17718 | rm -f conftest.$ac_objext | |
17719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17720 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17721 | ac_status=$? |
ac1cb8d3 VS |
17722 | grep -v '^ *+' conftest.er1 >conftest.err |
17723 | rm -f conftest.er1 | |
17724 | cat conftest.err >&5 | |
a848cd7e SC |
17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17726 | (exit $ac_status); } && | |
7714864e | 17727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17729 | (eval $ac_try) 2>&5 | |
17730 | ac_status=$? | |
17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17732 | (exit $ac_status); }; } && | |
17733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17735 | (eval $ac_try) 2>&5 | |
17736 | ac_status=$? | |
17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17738 | (exit $ac_status); }; }; then | |
17739 | ac_lo=0 ac_mid=0 | |
17740 | while :; do | |
17741 | cat >conftest.$ac_ext <<_ACEOF | |
17742 | /* confdefs.h. */ | |
17743 | _ACEOF | |
17744 | cat confdefs.h >>conftest.$ac_ext | |
17745 | cat >>conftest.$ac_ext <<_ACEOF | |
17746 | /* end confdefs.h. */ | |
17747 | $ac_includes_default | |
17748 | int | |
17749 | main () | |
17750 | { | |
17751 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17752 | test_array [0] = 0 | |
17753 | ||
17754 | ; | |
17755 | return 0; | |
17756 | } | |
17757 | _ACEOF | |
17758 | rm -f conftest.$ac_objext | |
17759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17761 | ac_status=$? |
ac1cb8d3 VS |
17762 | grep -v '^ *+' conftest.er1 >conftest.err |
17763 | rm -f conftest.er1 | |
17764 | cat conftest.err >&5 | |
a848cd7e SC |
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17766 | (exit $ac_status); } && | |
7714864e | 17767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 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); }; } && | |
17773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17775 | (eval $ac_try) 2>&5 | |
17776 | ac_status=$? | |
17777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17778 | (exit $ac_status); }; }; then | |
17779 | ac_hi=$ac_mid; break | |
17780 | else | |
17781 | echo "$as_me: failed program was:" >&5 | |
17782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17783 | ||
17784 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17785 | if test $ac_lo -le $ac_mid; then |
17786 | ac_lo= ac_hi= | |
17787 | break | |
17788 | fi | |
17789 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17790 | fi |
ac1cb8d3 | 17791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17792 | done |
17793 | else | |
17794 | echo "$as_me: failed program was:" >&5 | |
17795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17796 | ||
17797 | cat >conftest.$ac_ext <<_ACEOF | |
17798 | /* confdefs.h. */ | |
17799 | _ACEOF | |
17800 | cat confdefs.h >>conftest.$ac_ext | |
17801 | cat >>conftest.$ac_ext <<_ACEOF | |
17802 | /* end confdefs.h. */ | |
17803 | $ac_includes_default | |
17804 | int | |
17805 | main () | |
17806 | { | |
17807 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17808 | test_array [0] = 0 | |
17809 | ||
17810 | ; | |
17811 | return 0; | |
17812 | } | |
17813 | _ACEOF | |
17814 | rm -f conftest.$ac_objext | |
17815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17817 | ac_status=$? |
ac1cb8d3 VS |
17818 | grep -v '^ *+' conftest.er1 >conftest.err |
17819 | rm -f conftest.er1 | |
17820 | cat conftest.err >&5 | |
a848cd7e SC |
17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17822 | (exit $ac_status); } && | |
7714864e | 17823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17825 | (eval $ac_try) 2>&5 | |
17826 | ac_status=$? | |
17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17828 | (exit $ac_status); }; } && | |
17829 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17831 | (eval $ac_try) 2>&5 | |
17832 | ac_status=$? | |
17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17834 | (exit $ac_status); }; }; then | |
17835 | ac_hi=-1 ac_mid=-1 | |
17836 | while :; do | |
17837 | cat >conftest.$ac_ext <<_ACEOF | |
17838 | /* confdefs.h. */ | |
17839 | _ACEOF | |
17840 | cat confdefs.h >>conftest.$ac_ext | |
17841 | cat >>conftest.$ac_ext <<_ACEOF | |
17842 | /* end confdefs.h. */ | |
17843 | $ac_includes_default | |
17844 | int | |
17845 | main () | |
17846 | { | |
17847 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17848 | test_array [0] = 0 | |
17849 | ||
17850 | ; | |
17851 | return 0; | |
17852 | } | |
17853 | _ACEOF | |
17854 | rm -f conftest.$ac_objext | |
17855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17856 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17857 | ac_status=$? |
ac1cb8d3 VS |
17858 | grep -v '^ *+' conftest.er1 >conftest.err |
17859 | rm -f conftest.er1 | |
17860 | cat conftest.err >&5 | |
a848cd7e SC |
17861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17862 | (exit $ac_status); } && | |
7714864e | 17863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17865 | (eval $ac_try) 2>&5 | |
17866 | ac_status=$? | |
17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17868 | (exit $ac_status); }; } && | |
17869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17871 | (eval $ac_try) 2>&5 | |
17872 | ac_status=$? | |
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17874 | (exit $ac_status); }; }; then | |
17875 | ac_lo=$ac_mid; break | |
17876 | else | |
17877 | echo "$as_me: failed program was:" >&5 | |
17878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17879 | ||
17880 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17881 | if test $ac_mid -le $ac_hi; then |
17882 | ac_lo= ac_hi= | |
17883 | break | |
17884 | fi | |
17885 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17886 | fi |
ac1cb8d3 | 17887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17888 | done |
17889 | else | |
17890 | echo "$as_me: failed program was:" >&5 | |
17891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17892 | ||
17893 | ac_lo= ac_hi= | |
17894 | fi | |
ac1cb8d3 | 17895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17896 | fi |
ac1cb8d3 | 17897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17898 | # Binary search between lo and hi bounds. |
17899 | while test "x$ac_lo" != "x$ac_hi"; do | |
17900 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17901 | cat >conftest.$ac_ext <<_ACEOF | |
17902 | /* confdefs.h. */ | |
17903 | _ACEOF | |
17904 | cat confdefs.h >>conftest.$ac_ext | |
17905 | cat >>conftest.$ac_ext <<_ACEOF | |
17906 | /* end confdefs.h. */ | |
17907 | $ac_includes_default | |
17908 | int | |
17909 | main () | |
17910 | { | |
17911 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17912 | test_array [0] = 0 | |
17913 | ||
17914 | ; | |
17915 | return 0; | |
17916 | } | |
17917 | _ACEOF | |
17918 | rm -f conftest.$ac_objext | |
17919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17920 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17921 | ac_status=$? |
ac1cb8d3 VS |
17922 | grep -v '^ *+' conftest.er1 >conftest.err |
17923 | rm -f conftest.er1 | |
17924 | cat conftest.err >&5 | |
a848cd7e SC |
17925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17926 | (exit $ac_status); } && | |
7714864e | 17927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17929 | (eval $ac_try) 2>&5 | |
17930 | ac_status=$? | |
17931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17932 | (exit $ac_status); }; } && | |
17933 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17935 | (eval $ac_try) 2>&5 | |
17936 | ac_status=$? | |
17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17938 | (exit $ac_status); }; }; then | |
17939 | ac_hi=$ac_mid | |
17940 | else | |
17941 | echo "$as_me: failed program was:" >&5 | |
17942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17943 | ||
17944 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17945 | fi | |
ac1cb8d3 | 17946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17947 | done |
17948 | case $ac_lo in | |
17949 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17950 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17951 | See \`config.log' for more details." >&5 | |
17952 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17953 | See \`config.log' for more details." >&2;} | |
17954 | { (exit 1); exit 1; }; } ;; | |
17955 | esac | |
17956 | else | |
17957 | if test "$cross_compiling" = yes; then | |
7714864e RL |
17958 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17959 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17960 | { (exit 1); exit 1; }; } |
17961 | else | |
17962 | cat >conftest.$ac_ext <<_ACEOF | |
17963 | /* confdefs.h. */ | |
17964 | _ACEOF | |
17965 | cat confdefs.h >>conftest.$ac_ext | |
17966 | cat >>conftest.$ac_ext <<_ACEOF | |
17967 | /* end confdefs.h. */ | |
17968 | $ac_includes_default | |
17969 | long longval () { return (long) (sizeof (long long)); } | |
17970 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17971 | #include <stdio.h> | |
17972 | #include <stdlib.h> | |
17973 | int | |
17974 | main () | |
17975 | { | |
17976 | ||
17977 | FILE *f = fopen ("conftest.val", "w"); | |
17978 | if (! f) | |
17979 | exit (1); | |
17980 | if (((long) (sizeof (long long))) < 0) | |
17981 | { | |
17982 | long i = longval (); | |
17983 | if (i != ((long) (sizeof (long long)))) | |
17984 | exit (1); | |
17985 | fprintf (f, "%ld\n", i); | |
17986 | } | |
17987 | else | |
17988 | { | |
17989 | unsigned long i = ulongval (); | |
17990 | if (i != ((long) (sizeof (long long)))) | |
17991 | exit (1); | |
17992 | fprintf (f, "%lu\n", i); | |
17993 | } | |
17994 | exit (ferror (f) || fclose (f) != 0); | |
17995 | ||
17996 | ; | |
17997 | return 0; | |
17998 | } | |
17999 | _ACEOF | |
18000 | rm -f conftest$ac_exeext | |
18001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18002 | (eval $ac_link) 2>&5 | |
18003 | ac_status=$? | |
18004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18007 | (eval $ac_try) 2>&5 | |
18008 | ac_status=$? | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); }; }; then | |
18011 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18012 | else | |
18013 | echo "$as_me: program exited with status $ac_status" >&5 | |
18014 | echo "$as_me: failed program was:" >&5 | |
18015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18016 | ||
18017 | ( exit $ac_status ) | |
18018 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18019 | See \`config.log' for more details." >&5 | |
18020 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18021 | See \`config.log' for more details." >&2;} | |
18022 | { (exit 1); exit 1; }; } | |
18023 | fi | |
ac1cb8d3 | 18024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18025 | fi |
18026 | fi | |
18027 | rm -f conftest.val | |
18028 | else | |
18029 | ac_cv_sizeof_long_long=0 | |
18030 | fi | |
18031 | fi | |
18032 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18033 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18034 | cat >>confdefs.h <<_ACEOF | |
18035 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18036 | _ACEOF | |
18037 | ||
18038 | ||
18039 | esac | |
18040 | ||
18041 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18042 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18043 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18045 | else | |
18046 | ||
18047 | if test "$cross_compiling" = yes; then | |
18048 | ||
18049 | case "${host}" in | |
18050 | *-pc-msdosdjgpp ) | |
18051 | wx_cv_sizeof_wchar_t=0 | |
18052 | ;; | |
18053 | * ) | |
18054 | wx_cv_sizeof_wchar_t=4 | |
18055 | ;; | |
18056 | esac | |
18057 | ||
18058 | ||
18059 | else | |
18060 | cat >conftest.$ac_ext <<_ACEOF | |
18061 | /* confdefs.h. */ | |
18062 | _ACEOF | |
18063 | cat confdefs.h >>conftest.$ac_ext | |
18064 | cat >>conftest.$ac_ext <<_ACEOF | |
18065 | /* end confdefs.h. */ | |
18066 | ||
18067 | /* DJGPP only has fake wchar_t: */ | |
18068 | #ifdef __DJGPP__ | |
18069 | # error "fake wchar_t" | |
18070 | #endif | |
18071 | #ifdef HAVE_WCHAR_H | |
18072 | # ifdef __CYGWIN__ | |
18073 | # include <stddef.h> | |
18074 | # endif | |
18075 | # include <wchar.h> | |
18076 | #endif | |
18077 | #ifdef HAVE_STDLIB_H | |
18078 | # include <stdlib.h> | |
18079 | #endif | |
18080 | #include <stdio.h> | |
18081 | int main() | |
18082 | { | |
18083 | FILE *f=fopen("conftestval", "w"); | |
18084 | if (!f) exit(1); | |
18085 | fprintf(f, "%i", sizeof(wchar_t)); | |
18086 | exit(0); | |
18087 | } | |
18088 | ||
18089 | _ACEOF | |
18090 | rm -f conftest$ac_exeext | |
18091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18092 | (eval $ac_link) 2>&5 | |
18093 | ac_status=$? | |
18094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18095 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18097 | (eval $ac_try) 2>&5 | |
18098 | ac_status=$? | |
18099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18100 | (exit $ac_status); }; }; then | |
18101 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18102 | else | |
18103 | echo "$as_me: program exited with status $ac_status" >&5 | |
18104 | echo "$as_me: failed program was:" >&5 | |
18105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18106 | ||
18107 | ( exit $ac_status ) | |
18108 | wx_cv_sizeof_wchar_t=0 | |
18109 | fi | |
ac1cb8d3 | 18110 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18111 | fi |
18112 | ||
18113 | fi | |
18114 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18115 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18116 | ||
18117 | cat >>confdefs.h <<_ACEOF | |
18118 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18119 | _ACEOF | |
18120 | ||
18121 | ||
ba3d13e1 VZ |
18122 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18123 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18124 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18126 | else | |
18127 | ||
18128 | cat >conftest.$ac_ext <<_ACEOF | |
18129 | ||
18130 | #include <stdarg.h> | |
18131 | void foo(char *f, ...) | |
18132 | { | |
18133 | va_list ap1, ap2; | |
18134 | va_start(ap1, f); | |
18135 | va_copy(ap2, ap1); | |
18136 | va_end(ap2); | |
18137 | va_end(ap1); | |
18138 | } | |
18139 | _ACEOF | |
18140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18142 | (eval $ac_link) 2>conftest.er1 | |
18143 | ac_status=$? | |
18144 | grep -v '^ *+' conftest.er1 >conftest.err | |
18145 | rm -f conftest.er1 | |
18146 | cat conftest.err >&5 | |
18147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18148 | (exit $ac_status); } && | |
18149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
18150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18151 | (eval $ac_try) 2>&5 | |
18152 | ac_status=$? | |
18153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18154 | (exit $ac_status); }; } && | |
18155 | { ac_try='test -s conftest$ac_exeext' | |
18156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18157 | (eval $ac_try) 2>&5 | |
18158 | ac_status=$? | |
18159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18160 | (exit $ac_status); }; }; then | |
18161 | wx_cv_func_va_copy=yes | |
18162 | else | |
18163 | echo "$as_me: failed program was:" >&5 | |
18164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18165 | ||
18166 | wx_cv_func_va_copy=no | |
18167 | ||
18168 | fi | |
18169 | rm -f conftest.err conftest.$ac_objext \ | |
18170 | conftest$ac_exeext conftest.$ac_ext | |
18171 | ||
18172 | ||
18173 | fi | |
18174 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18175 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18176 | ||
18177 | if test $wx_cv_func_va_copy = "yes"; then | |
18178 | cat >>confdefs.h <<\_ACEOF | |
18179 | #define HAVE_VA_COPY 1 | |
18180 | _ACEOF | |
18181 | ||
18182 | else | |
18183 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18184 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18185 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18187 | else | |
18188 | ||
18189 | if test "$cross_compiling" = yes; then | |
18190 | wx_cv_type_va_list_lvalue=yes | |
18191 | ||
18192 | else | |
18193 | cat >conftest.$ac_ext <<_ACEOF | |
18194 | ||
18195 | #include <stdarg.h> | |
18196 | int foo(char *f, ...) | |
18197 | { | |
18198 | va_list ap1, ap2; | |
18199 | va_start(ap1, f); | |
18200 | ap2 = ap1; | |
18201 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18202 | return 1; | |
18203 | va_end(ap2); | |
18204 | va_end(ap1); | |
18205 | return 0; | |
18206 | } | |
18207 | int main() | |
18208 | { | |
18209 | return foo("hi", 17); | |
18210 | } | |
18211 | _ACEOF | |
18212 | rm -f conftest$ac_exeext | |
18213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18214 | (eval $ac_link) 2>&5 | |
18215 | ac_status=$? | |
18216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18219 | (eval $ac_try) 2>&5 | |
18220 | ac_status=$? | |
18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18222 | (exit $ac_status); }; }; then | |
18223 | wx_cv_type_va_list_lvalue=yes | |
18224 | else | |
18225 | echo "$as_me: program exited with status $ac_status" >&5 | |
18226 | echo "$as_me: failed program was:" >&5 | |
18227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18228 | ||
18229 | ( exit $ac_status ) | |
18230 | wx_cv_type_va_list_lvalue=no | |
18231 | fi | |
18232 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18233 | fi | |
18234 | ||
18235 | ||
18236 | fi | |
18237 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18238 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18239 | ||
18240 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18241 | cat >>confdefs.h <<\_ACEOF | |
18242 | #define VA_LIST_IS_ARRAY 1 | |
18243 | _ACEOF | |
18244 | ||
18245 | fi | |
18246 | fi | |
18247 | ||
a848cd7e SC |
18248 | # Check whether --enable-largefile or --disable-largefile was given. |
18249 | if test "${enable_largefile+set}" = set; then | |
18250 | enableval="$enable_largefile" | |
18251 | ||
18252 | fi; | |
18253 | if test "$enable_largefile" != no; then | |
18254 | wx_largefile=no | |
18255 | ||
18256 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18257 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18258 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18260 | else | |
18261 | ||
18262 | cat >conftest.$ac_ext <<_ACEOF | |
18263 | /* confdefs.h. */ | |
18264 | _ACEOF | |
18265 | cat confdefs.h >>conftest.$ac_ext | |
18266 | cat >>conftest.$ac_ext <<_ACEOF | |
18267 | /* end confdefs.h. */ | |
18268 | #define _FILE_OFFSET_BITS 64 | |
18269 | #include <sys/types.h> | |
18270 | int | |
18271 | main () | |
18272 | { | |
18273 | typedef struct { | |
18274 | unsigned int field: sizeof(off_t) == 8; | |
18275 | } wxlf; | |
18276 | ||
18277 | ; | |
18278 | return 0; | |
18279 | } | |
18280 | _ACEOF | |
18281 | rm -f conftest.$ac_objext | |
18282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18284 | ac_status=$? |
ac1cb8d3 VS |
18285 | grep -v '^ *+' conftest.er1 >conftest.err |
18286 | rm -f conftest.er1 | |
18287 | cat conftest.err >&5 | |
a848cd7e SC |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18289 | (exit $ac_status); } && | |
7714864e | 18290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18292 | (eval $ac_try) 2>&5 | |
18293 | ac_status=$? | |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18295 | (exit $ac_status); }; } && | |
18296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18298 | (eval $ac_try) 2>&5 | |
18299 | ac_status=$? | |
18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18301 | (exit $ac_status); }; }; then | |
18302 | ac_cv_sys_file_offset_bits=64 | |
18303 | else | |
18304 | echo "$as_me: failed program was:" >&5 | |
18305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18306 | ||
18307 | ac_cv_sys_file_offset_bits=no | |
18308 | fi | |
ac1cb8d3 | 18309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18310 | |
18311 | ||
18312 | fi | |
18313 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18314 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18315 | ||
18316 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18317 | wx_largefile=yes | |
18318 | cat >>confdefs.h <<_ACEOF | |
18319 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18320 | _ACEOF | |
18321 | ||
18322 | fi | |
18323 | ||
18324 | if test "x$wx_largefile" != "xyes"; then | |
18325 | ||
18326 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18327 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18328 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18330 | else | |
18331 | ||
18332 | cat >conftest.$ac_ext <<_ACEOF | |
18333 | /* confdefs.h. */ | |
18334 | _ACEOF | |
18335 | cat confdefs.h >>conftest.$ac_ext | |
18336 | cat >>conftest.$ac_ext <<_ACEOF | |
18337 | /* end confdefs.h. */ | |
18338 | #define _LARGE_FILES 1 | |
18339 | #include <sys/types.h> | |
18340 | int | |
18341 | main () | |
18342 | { | |
18343 | typedef struct { | |
18344 | unsigned int field: sizeof(off_t) == 8; | |
18345 | } wxlf; | |
18346 | ||
18347 | ; | |
18348 | return 0; | |
18349 | } | |
18350 | _ACEOF | |
18351 | rm -f conftest.$ac_objext | |
18352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18354 | ac_status=$? |
ac1cb8d3 VS |
18355 | grep -v '^ *+' conftest.er1 >conftest.err |
18356 | rm -f conftest.er1 | |
18357 | cat conftest.err >&5 | |
a848cd7e SC |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18359 | (exit $ac_status); } && | |
7714864e | 18360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18362 | (eval $ac_try) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); }; } && | |
18366 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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 | |
18372 | ac_cv_sys_large_files=1 | |
18373 | else | |
18374 | echo "$as_me: failed program was:" >&5 | |
18375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18376 | ||
18377 | ac_cv_sys_large_files=no | |
18378 | fi | |
ac1cb8d3 | 18379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18380 | |
18381 | ||
18382 | fi | |
18383 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18384 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18385 | ||
18386 | if test "$ac_cv_sys_large_files" != no; then | |
18387 | wx_largefile=yes | |
18388 | cat >>confdefs.h <<_ACEOF | |
18389 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18390 | _ACEOF | |
18391 | ||
18392 | fi | |
18393 | ||
18394 | fi | |
18395 | ||
18396 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18397 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18398 | if test "x$wx_largefile" = "xyes"; then | |
18399 | cat >>confdefs.h <<\_ACEOF | |
18400 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18401 | _ACEOF | |
18402 | ||
18403 | fi | |
18404 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18405 | echo "${ECHO_T}$wx_largefile" >&6 | |
18406 | fi | |
18407 | ||
18408 | ||
18409 | if test "x$wx_largefile" = "xyes"; then | |
18410 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18411 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18412 | else | |
18413 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18414 | fi | |
18415 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18416 | fi | |
18417 | ||
18418 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18419 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18420 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18422 | else | |
18423 | ac_cv_c_bigendian=unknown | |
18424 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18425 | cat >conftest.$ac_ext <<_ACEOF | |
18426 | /* confdefs.h. */ | |
18427 | _ACEOF | |
18428 | cat confdefs.h >>conftest.$ac_ext | |
18429 | cat >>conftest.$ac_ext <<_ACEOF | |
18430 | /* end confdefs.h. */ | |
18431 | #include <sys/types.h> | |
18432 | #include <sys/param.h> | |
18433 | int | |
18434 | main () | |
18435 | { | |
18436 | ||
18437 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18438 | bogus endian macros | |
18439 | #endif | |
18440 | ; | |
18441 | return 0; | |
18442 | } | |
18443 | _ACEOF | |
18444 | rm -f conftest.$ac_objext | |
18445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18446 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18447 | ac_status=$? |
ac1cb8d3 VS |
18448 | grep -v '^ *+' conftest.er1 >conftest.err |
18449 | rm -f conftest.er1 | |
18450 | cat conftest.err >&5 | |
a848cd7e SC |
18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18452 | (exit $ac_status); } && | |
7714864e | 18453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18455 | (eval $ac_try) 2>&5 | |
18456 | ac_status=$? | |
18457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18458 | (exit $ac_status); }; } && | |
18459 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18461 | (eval $ac_try) 2>&5 | |
18462 | ac_status=$? | |
18463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18464 | (exit $ac_status); }; }; then | |
18465 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18466 | cat >conftest.$ac_ext <<_ACEOF | |
18467 | /* confdefs.h. */ | |
18468 | _ACEOF | |
18469 | cat confdefs.h >>conftest.$ac_ext | |
18470 | cat >>conftest.$ac_ext <<_ACEOF | |
18471 | /* end confdefs.h. */ | |
18472 | #include <sys/types.h> | |
18473 | #include <sys/param.h> | |
18474 | int | |
18475 | main () | |
18476 | { | |
18477 | ||
18478 | #if BYTE_ORDER != BIG_ENDIAN | |
18479 | not big endian | |
18480 | #endif | |
18481 | ; | |
18482 | return 0; | |
18483 | } | |
18484 | _ACEOF | |
18485 | rm -f conftest.$ac_objext | |
18486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18487 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18488 | ac_status=$? |
ac1cb8d3 VS |
18489 | grep -v '^ *+' conftest.er1 >conftest.err |
18490 | rm -f conftest.er1 | |
18491 | cat conftest.err >&5 | |
a848cd7e SC |
18492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18493 | (exit $ac_status); } && | |
7714864e | 18494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18496 | (eval $ac_try) 2>&5 | |
18497 | ac_status=$? | |
18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18499 | (exit $ac_status); }; } && | |
18500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18502 | (eval $ac_try) 2>&5 | |
18503 | ac_status=$? | |
18504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18505 | (exit $ac_status); }; }; then | |
18506 | ac_cv_c_bigendian=yes | |
18507 | else | |
18508 | echo "$as_me: failed program was:" >&5 | |
18509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18510 | ||
18511 | ac_cv_c_bigendian=no | |
18512 | fi | |
ac1cb8d3 | 18513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18514 | else |
18515 | echo "$as_me: failed program was:" >&5 | |
18516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18517 | ||
18518 | fi | |
ac1cb8d3 | 18519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18520 | if test $ac_cv_c_bigendian = unknown; then |
18521 | if test "$cross_compiling" = yes; then | |
18522 | ac_cv_c_bigendian=unknown | |
18523 | else | |
18524 | cat >conftest.$ac_ext <<_ACEOF | |
18525 | /* confdefs.h. */ | |
18526 | _ACEOF | |
18527 | cat confdefs.h >>conftest.$ac_ext | |
18528 | cat >>conftest.$ac_ext <<_ACEOF | |
18529 | /* end confdefs.h. */ | |
18530 | main () { | |
18531 | /* Are we little or big endian? From Harbison&Steele. */ | |
18532 | union | |
18533 | { | |
18534 | long l; | |
18535 | char c[sizeof (long)]; | |
18536 | } u; | |
18537 | u.l = 1; | |
18538 | exit (u.c[sizeof (long) - 1] == 1); | |
18539 | } | |
18540 | _ACEOF | |
18541 | rm -f conftest$ac_exeext | |
18542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18543 | (eval $ac_link) 2>&5 | |
18544 | ac_status=$? | |
18545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18546 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18548 | (eval $ac_try) 2>&5 | |
18549 | ac_status=$? | |
18550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18551 | (exit $ac_status); }; }; then | |
18552 | ac_cv_c_bigendian=no | |
18553 | else | |
18554 | echo "$as_me: program exited with status $ac_status" >&5 | |
18555 | echo "$as_me: failed program was:" >&5 | |
18556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18557 | ||
18558 | ( exit $ac_status ) | |
18559 | ac_cv_c_bigendian=yes | |
18560 | fi | |
ac1cb8d3 | 18561 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18562 | fi |
18563 | fi | |
18564 | fi | |
18565 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18566 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18567 | if test $ac_cv_c_bigendian = unknown; then | |
18568 | { 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 | |
18569 | 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;} | |
18570 | fi | |
18571 | if test $ac_cv_c_bigendian = yes; then | |
18572 | cat >>confdefs.h <<\_ACEOF | |
18573 | #define WORDS_BIGENDIAN 1 | |
18574 | _ACEOF | |
18575 | ||
18576 | fi | |
18577 | ||
18578 | ||
18579 | ac_ext=cc | |
18580 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18581 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18582 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18583 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18584 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18585 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18586 | if test -z "$CXXCPP"; then | |
18587 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18589 | else | |
18590 | # Double quotes because CXXCPP needs to be expanded | |
18591 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18592 | do | |
18593 | ac_preproc_ok=false | |
18594 | for ac_cxx_preproc_warn_flag in '' yes | |
18595 | do | |
18596 | # Use a header file that comes with gcc, so configuring glibc | |
18597 | # with a fresh cross-compiler works. | |
18598 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18599 | # <limits.h> exists even on freestanding compilers. | |
18600 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18601 | # not just through cpp. "Syntax error" is here to catch this case. | |
18602 | cat >conftest.$ac_ext <<_ACEOF | |
18603 | /* confdefs.h. */ | |
18604 | _ACEOF | |
18605 | cat confdefs.h >>conftest.$ac_ext | |
18606 | cat >>conftest.$ac_ext <<_ACEOF | |
18607 | /* end confdefs.h. */ | |
18608 | #ifdef __STDC__ | |
18609 | # include <limits.h> | |
18610 | #else | |
18611 | # include <assert.h> | |
18612 | #endif | |
ac1cb8d3 | 18613 | Syntax error |
a848cd7e SC |
18614 | _ACEOF |
18615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18617 | ac_status=$? | |
18618 | grep -v '^ *+' conftest.er1 >conftest.err | |
18619 | rm -f conftest.er1 | |
18620 | cat conftest.err >&5 | |
18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 | (exit $ac_status); } >/dev/null; then | |
18623 | if test -s conftest.err; then | |
18624 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18625 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18626 | else |
18627 | ac_cpp_err= | |
18628 | fi | |
18629 | else | |
18630 | ac_cpp_err=yes | |
18631 | fi | |
18632 | if test -z "$ac_cpp_err"; then | |
18633 | : | |
18634 | else | |
18635 | echo "$as_me: failed program was:" >&5 | |
18636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18637 | ||
18638 | # Broken: fails on valid input. | |
18639 | continue | |
18640 | fi | |
18641 | rm -f conftest.err conftest.$ac_ext | |
18642 | ||
18643 | # OK, works on sane cases. Now check whether non-existent headers | |
18644 | # can be detected and how. | |
18645 | cat >conftest.$ac_ext <<_ACEOF | |
18646 | /* confdefs.h. */ | |
18647 | _ACEOF | |
18648 | cat confdefs.h >>conftest.$ac_ext | |
18649 | cat >>conftest.$ac_ext <<_ACEOF | |
18650 | /* end confdefs.h. */ | |
18651 | #include <ac_nonexistent.h> | |
18652 | _ACEOF | |
18653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18655 | ac_status=$? | |
18656 | grep -v '^ *+' conftest.er1 >conftest.err | |
18657 | rm -f conftest.er1 | |
18658 | cat conftest.err >&5 | |
18659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18660 | (exit $ac_status); } >/dev/null; then | |
18661 | if test -s conftest.err; then | |
18662 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18663 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18664 | else |
18665 | ac_cpp_err= | |
18666 | fi | |
18667 | else | |
18668 | ac_cpp_err=yes | |
18669 | fi | |
18670 | if test -z "$ac_cpp_err"; then | |
18671 | # Broken: success on invalid input. | |
18672 | continue | |
18673 | else | |
18674 | echo "$as_me: failed program was:" >&5 | |
18675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18676 | ||
18677 | # Passes both tests. | |
18678 | ac_preproc_ok=: | |
18679 | break | |
18680 | fi | |
18681 | rm -f conftest.err conftest.$ac_ext | |
18682 | ||
18683 | done | |
18684 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18685 | rm -f conftest.err conftest.$ac_ext | |
18686 | if $ac_preproc_ok; then | |
18687 | break | |
18688 | fi | |
18689 | ||
18690 | done | |
18691 | ac_cv_prog_CXXCPP=$CXXCPP | |
18692 | ||
18693 | fi | |
18694 | CXXCPP=$ac_cv_prog_CXXCPP | |
18695 | else | |
18696 | ac_cv_prog_CXXCPP=$CXXCPP | |
18697 | fi | |
18698 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18699 | echo "${ECHO_T}$CXXCPP" >&6 | |
18700 | ac_preproc_ok=false | |
18701 | for ac_cxx_preproc_warn_flag in '' yes | |
18702 | do | |
18703 | # Use a header file that comes with gcc, so configuring glibc | |
18704 | # with a fresh cross-compiler works. | |
18705 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18706 | # <limits.h> exists even on freestanding compilers. | |
18707 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18708 | # not just through cpp. "Syntax error" is here to catch this case. | |
18709 | cat >conftest.$ac_ext <<_ACEOF | |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
18715 | #ifdef __STDC__ | |
18716 | # include <limits.h> | |
18717 | #else | |
18718 | # include <assert.h> | |
18719 | #endif | |
ac1cb8d3 | 18720 | Syntax error |
a848cd7e SC |
18721 | _ACEOF |
18722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18724 | ac_status=$? | |
18725 | grep -v '^ *+' conftest.er1 >conftest.err | |
18726 | rm -f conftest.er1 | |
18727 | cat conftest.err >&5 | |
18728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18729 | (exit $ac_status); } >/dev/null; then | |
18730 | if test -s conftest.err; then | |
18731 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18732 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18733 | else |
18734 | ac_cpp_err= | |
18735 | fi | |
18736 | else | |
18737 | ac_cpp_err=yes | |
18738 | fi | |
18739 | if test -z "$ac_cpp_err"; then | |
18740 | : | |
18741 | else | |
18742 | echo "$as_me: failed program was:" >&5 | |
18743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18744 | ||
18745 | # Broken: fails on valid input. | |
18746 | continue | |
18747 | fi | |
18748 | rm -f conftest.err conftest.$ac_ext | |
18749 | ||
18750 | # OK, works on sane cases. Now check whether non-existent headers | |
18751 | # can be detected and how. | |
18752 | cat >conftest.$ac_ext <<_ACEOF | |
18753 | /* confdefs.h. */ | |
18754 | _ACEOF | |
18755 | cat confdefs.h >>conftest.$ac_ext | |
18756 | cat >>conftest.$ac_ext <<_ACEOF | |
18757 | /* end confdefs.h. */ | |
18758 | #include <ac_nonexistent.h> | |
18759 | _ACEOF | |
18760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18762 | ac_status=$? | |
18763 | grep -v '^ *+' conftest.er1 >conftest.err | |
18764 | rm -f conftest.er1 | |
18765 | cat conftest.err >&5 | |
18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18767 | (exit $ac_status); } >/dev/null; then | |
18768 | if test -s conftest.err; then | |
18769 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18770 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18771 | else |
18772 | ac_cpp_err= | |
18773 | fi | |
18774 | else | |
18775 | ac_cpp_err=yes | |
18776 | fi | |
18777 | if test -z "$ac_cpp_err"; then | |
18778 | # Broken: success on invalid input. | |
18779 | continue | |
18780 | else | |
18781 | echo "$as_me: failed program was:" >&5 | |
18782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18783 | ||
18784 | # Passes both tests. | |
18785 | ac_preproc_ok=: | |
18786 | break | |
18787 | fi | |
18788 | rm -f conftest.err conftest.$ac_ext | |
18789 | ||
18790 | done | |
18791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18792 | rm -f conftest.err conftest.$ac_ext | |
18793 | if $ac_preproc_ok; then | |
18794 | : | |
18795 | else | |
18796 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18797 | See \`config.log' for more details." >&5 | |
18798 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18799 | See \`config.log' for more details." >&2;} | |
18800 | { (exit 1); exit 1; }; } | |
18801 | fi | |
18802 | ||
18803 | ac_ext=cc | |
18804 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18808 | ||
18809 | ||
18810 | ||
18811 | ||
18812 | ||
18813 | ac_ext=cc | |
18814 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18815 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18816 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18817 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18818 | ||
18819 | ||
18820 | ||
18821 | for ac_header in iostream | |
18822 | do | |
18823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18825 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18826 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18827 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18829 | fi | |
18830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18831 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18832 | else | |
18833 | # Is the header compilable? | |
18834 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18835 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18836 | cat >conftest.$ac_ext <<_ACEOF | |
18837 | /* confdefs.h. */ | |
18838 | _ACEOF | |
18839 | cat confdefs.h >>conftest.$ac_ext | |
18840 | cat >>conftest.$ac_ext <<_ACEOF | |
18841 | /* end confdefs.h. */ | |
18842 | $ac_includes_default | |
18843 | #include <$ac_header> | |
18844 | _ACEOF | |
18845 | rm -f conftest.$ac_objext | |
18846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18848 | ac_status=$? |
ac1cb8d3 VS |
18849 | grep -v '^ *+' conftest.er1 >conftest.err |
18850 | rm -f conftest.er1 | |
18851 | cat conftest.err >&5 | |
a848cd7e SC |
18852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18853 | (exit $ac_status); } && | |
7714864e | 18854 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18856 | (eval $ac_try) 2>&5 | |
18857 | ac_status=$? | |
18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18859 | (exit $ac_status); }; } && | |
18860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18862 | (eval $ac_try) 2>&5 | |
18863 | ac_status=$? | |
18864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18865 | (exit $ac_status); }; }; then | |
18866 | ac_header_compiler=yes | |
18867 | else | |
18868 | echo "$as_me: failed program was:" >&5 | |
18869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18870 | ||
18871 | ac_header_compiler=no | |
18872 | fi | |
ac1cb8d3 | 18873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18875 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18876 | ||
18877 | # Is the header present? | |
18878 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18880 | cat >conftest.$ac_ext <<_ACEOF | |
18881 | /* confdefs.h. */ | |
18882 | _ACEOF | |
18883 | cat confdefs.h >>conftest.$ac_ext | |
18884 | cat >>conftest.$ac_ext <<_ACEOF | |
18885 | /* end confdefs.h. */ | |
18886 | #include <$ac_header> | |
18887 | _ACEOF | |
18888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18890 | ac_status=$? | |
18891 | grep -v '^ *+' conftest.er1 >conftest.err | |
18892 | rm -f conftest.er1 | |
18893 | cat conftest.err >&5 | |
18894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18895 | (exit $ac_status); } >/dev/null; then | |
18896 | if test -s conftest.err; then | |
18897 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18898 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18899 | else |
18900 | ac_cpp_err= | |
18901 | fi | |
18902 | else | |
18903 | ac_cpp_err=yes | |
18904 | fi | |
18905 | if test -z "$ac_cpp_err"; then | |
18906 | ac_header_preproc=yes | |
18907 | else | |
18908 | echo "$as_me: failed program was:" >&5 | |
18909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18910 | ||
18911 | ac_header_preproc=no | |
18912 | fi | |
18913 | rm -f conftest.err conftest.$ac_ext | |
18914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18915 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18916 | ||
18917 | # So? What about this header? | |
ac1cb8d3 VS |
18918 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18919 | yes:no: ) | |
a848cd7e SC |
18920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18924 | ac_header_preproc=yes | |
a848cd7e | 18925 | ;; |
ac1cb8d3 | 18926 | no:yes:* ) |
a848cd7e SC |
18927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
18929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
18935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
18936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
18937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
18939 | ( |
18940 | cat <<\_ASBOX | |
ac1cb8d3 VS |
18941 | ## ----------------------------------------- ## |
18942 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
18943 | ## ----------------------------------------- ## | |
a848cd7e SC |
18944 | _ASBOX |
18945 | ) | | |
18946 | sed "s/^/$as_me: WARNING: /" >&2 | |
18947 | ;; | |
18948 | esac | |
18949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18953 | else | |
ac1cb8d3 | 18954 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
18955 | fi |
18956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18958 | ||
18959 | fi | |
18960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18961 | cat >>confdefs.h <<_ACEOF | |
18962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18963 | _ACEOF | |
18964 | ||
18965 | fi | |
18966 | ||
18967 | done | |
18968 | ||
18969 | ||
18970 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18971 | : | |
18972 | else | |
18973 | cat >>confdefs.h <<\_ACEOF | |
18974 | #define wxUSE_IOSTREAMH 1 | |
18975 | _ACEOF | |
18976 | ||
18977 | fi | |
18978 | ||
18979 | ac_ext=c | |
18980 | ac_cpp='$CPP $CPPFLAGS' | |
18981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18984 | ||
18985 | ||
18986 | ||
18987 | ||
18988 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18989 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18990 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18992 | else | |
18993 | ||
18994 | ||
18995 | ||
18996 | ac_ext=cc | |
18997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19001 | ||
19002 | ||
19003 | cat >conftest.$ac_ext <<_ACEOF | |
19004 | /* confdefs.h. */ | |
19005 | _ACEOF | |
19006 | cat confdefs.h >>conftest.$ac_ext | |
19007 | cat >>conftest.$ac_ext <<_ACEOF | |
19008 | /* end confdefs.h. */ | |
19009 | ||
19010 | ||
19011 | int | |
19012 | main () | |
19013 | { | |
19014 | ||
19015 | bool b = true; | |
19016 | ||
19017 | return 0; | |
19018 | ||
19019 | ; | |
19020 | return 0; | |
19021 | } | |
19022 | _ACEOF | |
19023 | rm -f conftest.$ac_objext | |
19024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19025 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19026 | ac_status=$? |
ac1cb8d3 VS |
19027 | grep -v '^ *+' conftest.er1 >conftest.err |
19028 | rm -f conftest.er1 | |
19029 | cat conftest.err >&5 | |
a848cd7e SC |
19030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19031 | (exit $ac_status); } && | |
7714864e | 19032 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19034 | (eval $ac_try) 2>&5 | |
19035 | ac_status=$? | |
19036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19037 | (exit $ac_status); }; } && | |
19038 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19040 | (eval $ac_try) 2>&5 | |
19041 | ac_status=$? | |
19042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19043 | (exit $ac_status); }; }; then | |
19044 | ||
19045 | wx_cv_cpp_bool=yes | |
19046 | ||
19047 | else | |
19048 | echo "$as_me: failed program was:" >&5 | |
19049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19050 | ||
19051 | ||
19052 | wx_cv_cpp_bool=no | |
19053 | ||
19054 | ||
19055 | fi | |
ac1cb8d3 | 19056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19057 | |
19058 | ac_ext=c | |
19059 | ac_cpp='$CPP $CPPFLAGS' | |
19060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19063 | ||
19064 | ||
19065 | fi | |
19066 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19067 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19068 | ||
19069 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19070 | cat >>confdefs.h <<\_ACEOF | |
19071 | #define HAVE_BOOL 1 | |
19072 | _ACEOF | |
19073 | ||
19074 | fi | |
19075 | ||
19076 | ||
19077 | ||
19078 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19079 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19080 | if test "${wx_cv_explicit+set}" = set; then | |
19081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19082 | else | |
19083 | ||
19084 | ||
19085 | ||
19086 | ac_ext=cc | |
19087 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19091 | ||
19092 | ||
19093 | cat >conftest.$ac_ext <<_ACEOF | |
19094 | /* confdefs.h. */ | |
19095 | _ACEOF | |
19096 | cat confdefs.h >>conftest.$ac_ext | |
19097 | cat >>conftest.$ac_ext <<_ACEOF | |
19098 | /* end confdefs.h. */ | |
19099 | ||
19100 | class Foo { public: explicit Foo(int) {} }; | |
19101 | ||
19102 | int | |
19103 | main () | |
19104 | { | |
19105 | ||
19106 | return 0; | |
19107 | ||
19108 | ; | |
19109 | return 0; | |
19110 | } | |
19111 | _ACEOF | |
19112 | rm -f conftest.$ac_objext | |
19113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19115 | ac_status=$? |
ac1cb8d3 VS |
19116 | grep -v '^ *+' conftest.er1 >conftest.err |
19117 | rm -f conftest.er1 | |
19118 | cat conftest.err >&5 | |
a848cd7e SC |
19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19120 | (exit $ac_status); } && | |
7714864e | 19121 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19123 | (eval $ac_try) 2>&5 | |
19124 | ac_status=$? | |
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19126 | (exit $ac_status); }; } && | |
19127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19129 | (eval $ac_try) 2>&5 | |
19130 | ac_status=$? | |
19131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19132 | (exit $ac_status); }; }; then | |
19133 | ||
19134 | cat >conftest.$ac_ext <<_ACEOF | |
19135 | /* confdefs.h. */ | |
19136 | _ACEOF | |
19137 | cat confdefs.h >>conftest.$ac_ext | |
19138 | cat >>conftest.$ac_ext <<_ACEOF | |
19139 | /* end confdefs.h. */ | |
19140 | ||
19141 | class Foo { public: explicit Foo(int) {} }; | |
19142 | static void TakeFoo(const Foo& foo) { } | |
19143 | ||
19144 | int | |
19145 | main () | |
19146 | { | |
19147 | ||
19148 | TakeFoo(17); | |
19149 | return 0; | |
19150 | ||
19151 | ; | |
19152 | return 0; | |
19153 | } | |
19154 | _ACEOF | |
19155 | rm -f conftest.$ac_objext | |
19156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19158 | ac_status=$? |
ac1cb8d3 VS |
19159 | grep -v '^ *+' conftest.er1 >conftest.err |
19160 | rm -f conftest.er1 | |
19161 | cat conftest.err >&5 | |
a848cd7e SC |
19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19163 | (exit $ac_status); } && | |
7714864e | 19164 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19166 | (eval $ac_try) 2>&5 | |
19167 | ac_status=$? | |
19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19169 | (exit $ac_status); }; } && | |
19170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19172 | (eval $ac_try) 2>&5 | |
19173 | ac_status=$? | |
19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19175 | (exit $ac_status); }; }; then | |
19176 | wx_cv_explicit=no | |
19177 | else | |
19178 | echo "$as_me: failed program was:" >&5 | |
19179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19180 | ||
19181 | wx_cv_explicit=yes | |
19182 | ||
19183 | fi | |
ac1cb8d3 | 19184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19185 | |
19186 | else | |
19187 | echo "$as_me: failed program was:" >&5 | |
19188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19189 | ||
19190 | wx_cv_explicit=no | |
19191 | ||
19192 | fi | |
ac1cb8d3 | 19193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19194 | |
19195 | ac_ext=c | |
19196 | ac_cpp='$CPP $CPPFLAGS' | |
19197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19200 | ||
19201 | ||
19202 | fi | |
19203 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19204 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19205 | ||
19206 | if test "$wx_cv_explicit" = "yes"; then | |
19207 | cat >>confdefs.h <<\_ACEOF | |
19208 | #define HAVE_EXPLICIT 1 | |
19209 | _ACEOF | |
19210 | ||
19211 | fi | |
19212 | ||
19213 | ||
19214 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19215 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19216 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19218 | else | |
19219 | ||
19220 | ||
19221 | ac_ext=cc | |
19222 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19223 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19224 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19225 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19226 | ||
19227 | cat >conftest.$ac_ext <<_ACEOF | |
19228 | /* confdefs.h. */ | |
19229 | _ACEOF | |
19230 | cat confdefs.h >>conftest.$ac_ext | |
19231 | cat >>conftest.$ac_ext <<_ACEOF | |
19232 | /* end confdefs.h. */ | |
19233 | ||
19234 | int | |
19235 | main () | |
19236 | { | |
19237 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19238 | ; | |
19239 | return 0; | |
19240 | } | |
19241 | _ACEOF | |
19242 | rm -f conftest.$ac_objext | |
19243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19244 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19245 | ac_status=$? |
ac1cb8d3 VS |
19246 | grep -v '^ *+' conftest.er1 >conftest.err |
19247 | rm -f conftest.er1 | |
19248 | cat conftest.err >&5 | |
a848cd7e SC |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19250 | (exit $ac_status); } && | |
7714864e | 19251 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19257 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19259 | (eval $ac_try) 2>&5 | |
19260 | ac_status=$? | |
19261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19262 | (exit $ac_status); }; }; then | |
19263 | ac_cv_cxx_const_cast=yes | |
19264 | else | |
19265 | echo "$as_me: failed program was:" >&5 | |
19266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19267 | ||
19268 | ac_cv_cxx_const_cast=no | |
19269 | fi | |
ac1cb8d3 | 19270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19271 | ac_ext=c |
19272 | ac_cpp='$CPP $CPPFLAGS' | |
19273 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19274 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19275 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19276 | ||
19277 | ||
19278 | fi | |
19279 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19280 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19281 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19282 | ||
19283 | cat >>confdefs.h <<\_ACEOF | |
19284 | #define HAVE_CONST_CAST | |
19285 | _ACEOF | |
19286 | ||
19287 | fi | |
19288 | ||
7714864e RL |
19289 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19290 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19291 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19293 | else | |
19294 | ||
19295 | ||
19296 | ac_ext=cc | |
19297 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19301 | ||
19302 | cat >conftest.$ac_ext <<_ACEOF | |
19303 | /* confdefs.h. */ | |
19304 | _ACEOF | |
19305 | cat confdefs.h >>conftest.$ac_ext | |
19306 | cat >>conftest.$ac_ext <<_ACEOF | |
19307 | /* end confdefs.h. */ | |
19308 | #include <typeinfo> | |
19309 | class Base { public : Base () {} virtual void f () = 0;}; | |
19310 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19311 | class Unrelated { public : Unrelated () {} }; | |
19312 | int g (Unrelated&) { return 0; } | |
19313 | int | |
19314 | main () | |
19315 | { | |
19316 | ||
19317 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19318 | ; | |
19319 | return 0; | |
19320 | } | |
19321 | _ACEOF | |
19322 | rm -f conftest.$ac_objext | |
19323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19324 | (eval $ac_compile) 2>conftest.er1 | |
19325 | ac_status=$? | |
19326 | grep -v '^ *+' conftest.er1 >conftest.err | |
19327 | rm -f conftest.er1 | |
19328 | cat conftest.err >&5 | |
19329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19330 | (exit $ac_status); } && | |
19331 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
19332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19333 | (eval $ac_try) 2>&5 | |
19334 | ac_status=$? | |
19335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19336 | (exit $ac_status); }; } && | |
19337 | { ac_try='test -s conftest.$ac_objext' | |
19338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19339 | (eval $ac_try) 2>&5 | |
19340 | ac_status=$? | |
19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19342 | (exit $ac_status); }; }; then | |
19343 | ac_cv_cxx_reinterpret_cast=yes | |
19344 | else | |
19345 | echo "$as_me: failed program was:" >&5 | |
19346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19347 | ||
19348 | ac_cv_cxx_reinterpret_cast=no | |
19349 | fi | |
19350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19351 | ac_ext=c | |
19352 | ac_cpp='$CPP $CPPFLAGS' | |
19353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19356 | ||
19357 | ||
19358 | fi | |
19359 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19360 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19361 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19362 | ||
19363 | cat >>confdefs.h <<\_ACEOF | |
19364 | #define HAVE_REINTERPRET_CAST | |
19365 | _ACEOF | |
19366 | ||
19367 | fi | |
19368 | ||
a848cd7e SC |
19369 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19370 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19371 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19373 | else | |
19374 | ||
19375 | ||
19376 | ac_ext=cc | |
19377 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19378 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19379 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19380 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19381 | ||
19382 | cat >conftest.$ac_ext <<_ACEOF | |
19383 | /* confdefs.h. */ | |
19384 | _ACEOF | |
19385 | cat confdefs.h >>conftest.$ac_ext | |
19386 | cat >>conftest.$ac_ext <<_ACEOF | |
19387 | /* end confdefs.h. */ | |
19388 | #include <typeinfo> | |
19389 | class Base { public : Base () {} virtual void f () = 0; }; | |
19390 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19391 | int g (Derived&) { return 0; } | |
19392 | int | |
19393 | main () | |
19394 | { | |
19395 | ||
19396 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19397 | ; | |
19398 | return 0; | |
19399 | } | |
19400 | _ACEOF | |
19401 | rm -f conftest.$ac_objext | |
19402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19404 | ac_status=$? |
ac1cb8d3 VS |
19405 | grep -v '^ *+' conftest.er1 >conftest.err |
19406 | rm -f conftest.er1 | |
19407 | cat conftest.err >&5 | |
a848cd7e SC |
19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19409 | (exit $ac_status); } && | |
7714864e | 19410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19412 | (eval $ac_try) 2>&5 | |
19413 | ac_status=$? | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); }; } && | |
19416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 | (exit $ac_status); }; }; then | |
19422 | ac_cv_cxx_static_cast=yes | |
19423 | else | |
19424 | echo "$as_me: failed program was:" >&5 | |
19425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19426 | ||
19427 | ac_cv_cxx_static_cast=no | |
19428 | fi | |
ac1cb8d3 | 19429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19430 | ac_ext=c |
19431 | ac_cpp='$CPP $CPPFLAGS' | |
19432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19435 | ||
19436 | ||
19437 | fi | |
19438 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19439 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19440 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19441 | ||
19442 | cat >>confdefs.h <<\_ACEOF | |
19443 | #define HAVE_STATIC_CAST | |
19444 | _ACEOF | |
19445 | ||
19446 | fi | |
19447 | ||
19448 | ||
19449 | if test "$wxUSE_STL" = "yes"; then | |
19450 | ac_ext=cc | |
19451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19455 | ||
19456 | ||
19457 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19458 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19459 | cat >conftest.$ac_ext <<_ACEOF | |
19460 | /* confdefs.h. */ | |
19461 | _ACEOF | |
19462 | cat confdefs.h >>conftest.$ac_ext | |
19463 | cat >>conftest.$ac_ext <<_ACEOF | |
19464 | /* end confdefs.h. */ | |
19465 | #include <string> | |
19466 | #include <functional> | |
19467 | #include <algorithm> | |
19468 | #include <vector> | |
19469 | #include <list> | |
19470 | int | |
19471 | main () | |
19472 | { | |
19473 | std::vector<int> moo; | |
19474 | std::list<int> foo; | |
19475 | std::vector<int>::iterator it = | |
19476 | std::find_if(moo.begin(), moo.end(), | |
19477 | std::bind2nd(std::less<int>(), 3)); | |
19478 | ; | |
19479 | return 0; | |
19480 | } | |
19481 | _ACEOF | |
19482 | rm -f conftest.$ac_objext | |
19483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19484 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19485 | ac_status=$? |
ac1cb8d3 VS |
19486 | grep -v '^ *+' conftest.er1 >conftest.err |
19487 | rm -f conftest.er1 | |
19488 | cat conftest.err >&5 | |
a848cd7e SC |
19489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19490 | (exit $ac_status); } && | |
7714864e | 19491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19493 | (eval $ac_try) 2>&5 | |
19494 | ac_status=$? | |
19495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19496 | (exit $ac_status); }; } && | |
19497 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19499 | (eval $ac_try) 2>&5 | |
19500 | ac_status=$? | |
19501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19502 | (exit $ac_status); }; }; then | |
19503 | echo "$as_me:$LINENO: result: yes" >&5 | |
19504 | echo "${ECHO_T}yes" >&6 | |
19505 | else | |
19506 | echo "$as_me: failed program was:" >&5 | |
19507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19508 | ||
19509 | echo "$as_me:$LINENO: result: no" >&5 | |
19510 | echo "${ECHO_T}no" >&6 | |
19511 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19512 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19513 | { (exit 1); exit 1; }; } | |
19514 | fi | |
ac1cb8d3 | 19515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19516 | |
19517 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19518 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19519 | cat >conftest.$ac_ext <<_ACEOF | |
19520 | /* confdefs.h. */ | |
19521 | _ACEOF | |
19522 | cat confdefs.h >>conftest.$ac_ext | |
19523 | cat >>conftest.$ac_ext <<_ACEOF | |
19524 | /* end confdefs.h. */ | |
19525 | #include <string> | |
19526 | int | |
19527 | main () | |
19528 | { | |
19529 | std::wstring foo; | |
19530 | ; | |
19531 | return 0; | |
19532 | } | |
19533 | _ACEOF | |
19534 | rm -f conftest.$ac_objext | |
19535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19537 | ac_status=$? |
ac1cb8d3 VS |
19538 | grep -v '^ *+' conftest.er1 >conftest.err |
19539 | rm -f conftest.er1 | |
19540 | cat conftest.err >&5 | |
a848cd7e SC |
19541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19542 | (exit $ac_status); } && | |
7714864e | 19543 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19545 | (eval $ac_try) 2>&5 | |
19546 | ac_status=$? | |
19547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19548 | (exit $ac_status); }; } && | |
19549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19551 | (eval $ac_try) 2>&5 | |
19552 | ac_status=$? | |
19553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19554 | (exit $ac_status); }; }; then | |
19555 | echo "$as_me:$LINENO: result: yes" >&5 | |
19556 | echo "${ECHO_T}yes" >&6 | |
19557 | cat >>confdefs.h <<\_ACEOF | |
19558 | #define HAVE_STD_WSTRING 1 | |
19559 | _ACEOF | |
19560 | ||
19561 | else | |
19562 | echo "$as_me: failed program was:" >&5 | |
19563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19564 | ||
19565 | echo "$as_me:$LINENO: result: no" >&5 | |
19566 | echo "${ECHO_T}no" >&6 | |
19567 | fi | |
ac1cb8d3 | 19568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19569 | |
19570 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19571 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19572 | cat >conftest.$ac_ext <<_ACEOF | |
19573 | /* confdefs.h. */ | |
19574 | _ACEOF | |
19575 | cat confdefs.h >>conftest.$ac_ext | |
19576 | cat >>conftest.$ac_ext <<_ACEOF | |
19577 | /* end confdefs.h. */ | |
19578 | #include <string> | |
19579 | int | |
19580 | main () | |
19581 | { | |
19582 | std::string foo, bar; | |
19583 | foo.compare(bar); | |
19584 | foo.compare(1, 1, bar); | |
19585 | foo.compare(1, 1, bar, 1, 1); | |
19586 | foo.compare(""); | |
19587 | foo.compare(1, 1, ""); | |
19588 | foo.compare(1, 1, "", 2); | |
19589 | ; | |
19590 | return 0; | |
19591 | } | |
19592 | _ACEOF | |
19593 | rm -f conftest.$ac_objext | |
19594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19596 | ac_status=$? |
ac1cb8d3 VS |
19597 | grep -v '^ *+' conftest.er1 >conftest.err |
19598 | rm -f conftest.er1 | |
19599 | cat conftest.err >&5 | |
a848cd7e SC |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19601 | (exit $ac_status); } && | |
7714864e | 19602 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19604 | (eval $ac_try) 2>&5 | |
19605 | ac_status=$? | |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 | (exit $ac_status); }; } && | |
19608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; }; then | |
19614 | echo "$as_me:$LINENO: result: yes" >&5 | |
19615 | echo "${ECHO_T}yes" >&6 | |
19616 | cat >>confdefs.h <<\_ACEOF | |
19617 | #define HAVE_STD_STRING_COMPARE 1 | |
19618 | _ACEOF | |
19619 | ||
19620 | else | |
19621 | echo "$as_me: failed program was:" >&5 | |
19622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19623 | ||
19624 | echo "$as_me:$LINENO: result: no" >&5 | |
19625 | echo "${ECHO_T}no" >&6 | |
19626 | fi | |
ac1cb8d3 | 19627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19628 | |
19629 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19630 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19631 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19632 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19634 | fi | |
19635 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19636 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19637 | else | |
19638 | # Is the header compilable? | |
19639 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19640 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19641 | cat >conftest.$ac_ext <<_ACEOF | |
19642 | /* confdefs.h. */ | |
19643 | _ACEOF | |
19644 | cat confdefs.h >>conftest.$ac_ext | |
19645 | cat >>conftest.$ac_ext <<_ACEOF | |
19646 | /* end confdefs.h. */ | |
19647 | $ac_includes_default | |
19648 | #include <hash_map> | |
19649 | _ACEOF | |
19650 | rm -f conftest.$ac_objext | |
19651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19652 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19653 | ac_status=$? |
ac1cb8d3 VS |
19654 | grep -v '^ *+' conftest.er1 >conftest.err |
19655 | rm -f conftest.er1 | |
19656 | cat conftest.err >&5 | |
bdcade0a MB |
19657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19658 | (exit $ac_status); } && | |
7714864e | 19659 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19661 | (eval $ac_try) 2>&5 | |
19662 | ac_status=$? | |
19663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19664 | (exit $ac_status); }; } && | |
19665 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19667 | (eval $ac_try) 2>&5 | |
19668 | ac_status=$? | |
19669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19670 | (exit $ac_status); }; }; then | |
19671 | ac_header_compiler=yes | |
19672 | else | |
19673 | echo "$as_me: failed program was:" >&5 | |
19674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19675 | ||
19676 | ac_header_compiler=no | |
19677 | fi | |
ac1cb8d3 | 19678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19681 | ||
19682 | # Is the header present? | |
19683 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19684 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19685 | cat >conftest.$ac_ext <<_ACEOF | |
19686 | /* confdefs.h. */ | |
19687 | _ACEOF | |
19688 | cat confdefs.h >>conftest.$ac_ext | |
19689 | cat >>conftest.$ac_ext <<_ACEOF | |
19690 | /* end confdefs.h. */ | |
19691 | #include <hash_map> | |
19692 | _ACEOF | |
19693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19695 | ac_status=$? | |
19696 | grep -v '^ *+' conftest.er1 >conftest.err | |
19697 | rm -f conftest.er1 | |
19698 | cat conftest.err >&5 | |
19699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19700 | (exit $ac_status); } >/dev/null; then | |
19701 | if test -s conftest.err; then | |
19702 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19703 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19704 | else |
19705 | ac_cpp_err= | |
19706 | fi | |
19707 | else | |
19708 | ac_cpp_err=yes | |
19709 | fi | |
19710 | if test -z "$ac_cpp_err"; then | |
19711 | ac_header_preproc=yes | |
19712 | else | |
19713 | echo "$as_me: failed program was:" >&5 | |
19714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19715 | ||
19716 | ac_header_preproc=no | |
19717 | fi | |
19718 | rm -f conftest.err conftest.$ac_ext | |
19719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19721 | ||
19722 | # So? What about this header? | |
ac1cb8d3 VS |
19723 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19724 | yes:no: ) | |
bdcade0a MB |
19725 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19726 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19727 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19728 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19729 | ac_header_preproc=yes | |
bdcade0a | 19730 | ;; |
ac1cb8d3 | 19731 | no:yes:* ) |
bdcade0a MB |
19732 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19733 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19734 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19735 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19736 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19737 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19738 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19739 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19740 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19741 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19742 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19743 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19744 | ( |
19745 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19746 | ## ----------------------------------------- ## |
19747 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19748 | ## ----------------------------------------- ## | |
bdcade0a MB |
19749 | _ASBOX |
19750 | ) | | |
19751 | sed "s/^/$as_me: WARNING: /" >&2 | |
19752 | ;; | |
19753 | esac | |
19754 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19755 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19756 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19758 | else | |
19759 | ac_cv_header_hash_map=$ac_header_preproc | |
19760 | fi | |
19761 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19762 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19763 | ||
19764 | fi | |
19765 | if test $ac_cv_header_hash_map = yes; then | |
19766 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19767 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19768 | cat >conftest.$ac_ext <<_ACEOF | |
19769 | /* confdefs.h. */ | |
19770 | _ACEOF | |
19771 | cat confdefs.h >>conftest.$ac_ext | |
19772 | cat >>conftest.$ac_ext <<_ACEOF | |
19773 | /* end confdefs.h. */ | |
19774 | #include <hash_map> | |
19775 | #include <hash_set> | |
19776 | int | |
19777 | main () | |
19778 | { | |
19779 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19780 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19781 | ; | |
19782 | return 0; | |
19783 | } | |
19784 | _ACEOF | |
19785 | rm -f conftest.$ac_objext | |
19786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19787 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19788 | ac_status=$? |
ac1cb8d3 VS |
19789 | grep -v '^ *+' conftest.er1 >conftest.err |
19790 | rm -f conftest.er1 | |
19791 | cat conftest.err >&5 | |
bdcade0a MB |
19792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19793 | (exit $ac_status); } && | |
7714864e | 19794 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19796 | (eval $ac_try) 2>&5 | |
19797 | ac_status=$? | |
19798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19799 | (exit $ac_status); }; } && | |
19800 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19802 | (eval $ac_try) 2>&5 | |
19803 | ac_status=$? | |
19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19805 | (exit $ac_status); }; }; then | |
19806 | echo "$as_me:$LINENO: result: yes" >&5 | |
19807 | echo "${ECHO_T}yes" >&6 | |
19808 | cat >>confdefs.h <<\_ACEOF | |
19809 | #define HAVE_HASH_MAP 1 | |
19810 | _ACEOF | |
19811 | ||
19812 | cat >>confdefs.h <<\_ACEOF | |
19813 | #define HAVE_STD_HASH_MAP 1 | |
19814 | _ACEOF | |
19815 | ||
19816 | else | |
19817 | echo "$as_me: failed program was:" >&5 | |
19818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19819 | ||
19820 | echo "$as_me:$LINENO: result: no" >&5 | |
19821 | echo "${ECHO_T}no" >&6 | |
19822 | fi | |
ac1cb8d3 | 19823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19824 | |
19825 | fi | |
19826 | ||
19827 | ||
19828 | ||
19829 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19830 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19831 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19832 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19834 | fi | |
19835 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19836 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19837 | else | |
19838 | # Is the header compilable? | |
19839 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19840 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19841 | cat >conftest.$ac_ext <<_ACEOF | |
19842 | /* confdefs.h. */ | |
19843 | _ACEOF | |
19844 | cat confdefs.h >>conftest.$ac_ext | |
19845 | cat >>conftest.$ac_ext <<_ACEOF | |
19846 | /* end confdefs.h. */ | |
19847 | $ac_includes_default | |
19848 | #include <ext/hash_map> | |
19849 | _ACEOF | |
19850 | rm -f conftest.$ac_objext | |
19851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19852 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19853 | ac_status=$? |
ac1cb8d3 VS |
19854 | grep -v '^ *+' conftest.er1 >conftest.err |
19855 | rm -f conftest.er1 | |
19856 | cat conftest.err >&5 | |
bdcade0a MB |
19857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19858 | (exit $ac_status); } && | |
7714864e | 19859 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19861 | (eval $ac_try) 2>&5 | |
19862 | ac_status=$? | |
19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19864 | (exit $ac_status); }; } && | |
19865 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19867 | (eval $ac_try) 2>&5 | |
19868 | ac_status=$? | |
19869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19870 | (exit $ac_status); }; }; then | |
19871 | ac_header_compiler=yes | |
19872 | else | |
19873 | echo "$as_me: failed program was:" >&5 | |
19874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19875 | ||
19876 | ac_header_compiler=no | |
19877 | fi | |
ac1cb8d3 | 19878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19879 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19880 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19881 | ||
19882 | # Is the header present? | |
19883 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19884 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19885 | cat >conftest.$ac_ext <<_ACEOF | |
19886 | /* confdefs.h. */ | |
19887 | _ACEOF | |
19888 | cat confdefs.h >>conftest.$ac_ext | |
19889 | cat >>conftest.$ac_ext <<_ACEOF | |
19890 | /* end confdefs.h. */ | |
19891 | #include <ext/hash_map> | |
19892 | _ACEOF | |
19893 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19894 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19895 | ac_status=$? | |
19896 | grep -v '^ *+' conftest.er1 >conftest.err | |
19897 | rm -f conftest.er1 | |
19898 | cat conftest.err >&5 | |
19899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19900 | (exit $ac_status); } >/dev/null; then | |
19901 | if test -s conftest.err; then | |
19902 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19903 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19904 | else |
19905 | ac_cpp_err= | |
19906 | fi | |
19907 | else | |
19908 | ac_cpp_err=yes | |
19909 | fi | |
19910 | if test -z "$ac_cpp_err"; then | |
19911 | ac_header_preproc=yes | |
19912 | else | |
19913 | echo "$as_me: failed program was:" >&5 | |
19914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19915 | ||
19916 | ac_header_preproc=no | |
19917 | fi | |
19918 | rm -f conftest.err conftest.$ac_ext | |
19919 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19920 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19921 | ||
19922 | # So? What about this header? | |
ac1cb8d3 VS |
19923 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19924 | yes:no: ) | |
bdcade0a MB |
19925 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19926 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19927 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19928 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
19929 | ac_header_preproc=yes | |
bdcade0a | 19930 | ;; |
ac1cb8d3 | 19931 | no:yes:* ) |
bdcade0a MB |
19932 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
19933 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19934 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
19935 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
19936 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
19937 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
19938 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19939 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19940 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
19941 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19942 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
19943 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19944 | ( |
19945 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19946 | ## ----------------------------------------- ## |
19947 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19948 | ## ----------------------------------------- ## | |
bdcade0a MB |
19949 | _ASBOX |
19950 | ) | | |
19951 | sed "s/^/$as_me: WARNING: /" >&2 | |
19952 | ;; | |
19953 | esac | |
19954 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19955 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19956 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19958 | else | |
19959 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
19960 | fi | |
19961 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19962 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19963 | ||
19964 | fi | |
19965 | if test $ac_cv_header_ext_hash_map = yes; then | |
19966 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19967 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19968 | cat >conftest.$ac_ext <<_ACEOF | |
19969 | /* confdefs.h. */ | |
19970 | _ACEOF | |
19971 | cat confdefs.h >>conftest.$ac_ext | |
19972 | cat >>conftest.$ac_ext <<_ACEOF | |
19973 | /* end confdefs.h. */ | |
19974 | #include <ext/hash_map> | |
19975 | #include <ext/hash_set> | |
19976 | int | |
19977 | main () | |
19978 | { | |
19979 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
19980 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
19981 | ; | |
19982 | return 0; | |
19983 | } | |
19984 | _ACEOF | |
19985 | rm -f conftest.$ac_objext | |
19986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19987 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19988 | ac_status=$? |
ac1cb8d3 VS |
19989 | grep -v '^ *+' conftest.er1 >conftest.err |
19990 | rm -f conftest.er1 | |
19991 | cat conftest.err >&5 | |
bdcade0a MB |
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19993 | (exit $ac_status); } && | |
7714864e | 19994 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19996 | (eval $ac_try) 2>&5 | |
19997 | ac_status=$? | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); }; } && | |
20000 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20002 | (eval $ac_try) 2>&5 | |
20003 | ac_status=$? | |
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20005 | (exit $ac_status); }; }; then | |
20006 | echo "$as_me:$LINENO: result: yes" >&5 | |
20007 | echo "${ECHO_T}yes" >&6 | |
20008 | cat >>confdefs.h <<\_ACEOF | |
20009 | #define HAVE_EXT_HASH_MAP 1 | |
20010 | _ACEOF | |
20011 | ||
20012 | cat >>confdefs.h <<\_ACEOF | |
20013 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20014 | _ACEOF | |
20015 | ||
20016 | else | |
20017 | echo "$as_me: failed program was:" >&5 | |
20018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20019 | ||
20020 | echo "$as_me:$LINENO: result: no" >&5 | |
20021 | echo "${ECHO_T}no" >&6 | |
20022 | fi | |
ac1cb8d3 | 20023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20024 | |
20025 | fi | |
20026 | ||
20027 | ||
a848cd7e SC |
20028 | |
20029 | ac_ext=c | |
20030 | ac_cpp='$CPP $CPPFLAGS' | |
20031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20034 | ||
20035 | fi | |
20036 | ||
20037 | ||
20038 | SEARCH_INCLUDE="\ | |
20039 | /usr/local/include \ | |
20040 | \ | |
20041 | /usr/Motif-2.1/include \ | |
20042 | /usr/Motif-1.2/include \ | |
20043 | /usr/include/Motif1.2 \ | |
20044 | /opt/xpm/include/X11 \ | |
20045 | /opt/GBxpm/include/ \ | |
20046 | /opt/GBxpm/X11/include/ \ | |
20047 | \ | |
20048 | /usr/dt/include \ | |
20049 | /usr/openwin/include \ | |
20050 | \ | |
20051 | /usr/include/Xm \ | |
20052 | \ | |
20053 | /usr/X11R6/include \ | |
20054 | /usr/X11R6.4/include \ | |
20055 | /usr/X11R5/include \ | |
20056 | /usr/X11R4/include \ | |
20057 | \ | |
20058 | /usr/include/X11R6 \ | |
20059 | /usr/include/X11R5 \ | |
20060 | /usr/include/X11R4 \ | |
20061 | \ | |
20062 | /usr/local/X11R6/include \ | |
20063 | /usr/local/X11R5/include \ | |
20064 | /usr/local/X11R4/include \ | |
20065 | \ | |
20066 | /usr/local/include/X11R6 \ | |
20067 | /usr/local/include/X11R5 \ | |
20068 | /usr/local/include/X11R4 \ | |
20069 | \ | |
20070 | /usr/X11/include \ | |
20071 | /usr/include/X11 \ | |
20072 | /usr/local/X11/include \ | |
20073 | /usr/local/include/X11 \ | |
20074 | \ | |
20075 | /usr/X386/include \ | |
20076 | /usr/x386/include \ | |
20077 | /usr/XFree86/include/X11 \ | |
20078 | \ | |
20079 | X:/XFree86/include \ | |
20080 | X:/XFree86/include/X11 \ | |
20081 | \ | |
20082 | /usr/include/gtk \ | |
20083 | /usr/local/include/gtk \ | |
20084 | /usr/include/glib \ | |
20085 | /usr/local/include/glib \ | |
20086 | \ | |
20087 | /usr/include/qt \ | |
20088 | /usr/local/include/qt \ | |
20089 | \ | |
20090 | /usr/local/arm/3.3.2/include \ | |
20091 | \ | |
20092 | /usr/include/windows \ | |
20093 | /usr/include/wine \ | |
20094 | /usr/local/include/wine \ | |
20095 | \ | |
20096 | /usr/unsupported/include \ | |
20097 | /usr/athena/include \ | |
20098 | /usr/local/x11r5/include \ | |
20099 | /usr/lpp/Xamples/include \ | |
20100 | \ | |
20101 | /usr/openwin/share/include" | |
20102 | ||
20103 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20104 | ||
20105 | ||
20106 | cat >confcache <<\_ACEOF | |
20107 | # This file is a shell script that caches the results of configure | |
20108 | # tests run on this system so they can be shared between configure | |
20109 | # scripts and configure runs, see configure's option --config-cache. | |
20110 | # It is not useful on other systems. If it contains results you don't | |
20111 | # want to keep, you may remove or edit it. | |
20112 | # | |
20113 | # config.status only pays attention to the cache file if you give it | |
20114 | # the --recheck option to rerun configure. | |
20115 | # | |
20116 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20117 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20118 | # following values. | |
20119 | ||
20120 | _ACEOF | |
20121 | ||
20122 | # The following way of writing the cache mishandles newlines in values, | |
20123 | # but we know of no workaround that is simple, portable, and efficient. | |
20124 | # So, don't put newlines in cache variables' values. | |
20125 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20126 | # and sets the high bit in the cache file unless we assign to the vars. | |
20127 | { | |
20128 | (set) 2>&1 | | |
20129 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20130 | *ac_space=\ *) | |
20131 | # `set' does not quote correctly, so add quotes (double-quote | |
20132 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20133 | sed -n \ | |
ac1cb8d3 VS |
20134 | "s/'/'\\\\''/g; |
20135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20136 | ;; |
20137 | *) | |
20138 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20139 | sed -n \ | |
ac1cb8d3 | 20140 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20141 | ;; |
20142 | esac; | |
20143 | } | | |
20144 | sed ' | |
20145 | t clear | |
20146 | : clear | |
20147 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20148 | t end | |
20149 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20150 | : end' >>confcache | |
20151 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20152 | if test -w $cache_file; then | |
20153 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20154 | cat confcache >$cache_file | |
20155 | else | |
20156 | echo "not updating unwritable cache $cache_file" | |
20157 | fi | |
20158 | fi | |
20159 | rm -f confcache | |
20160 | ||
20161 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20162 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20163 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20164 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20166 | else | |
20167 | ||
20168 | cat >conftest.$ac_ext <<_ACEOF | |
20169 | /* confdefs.h. */ | |
20170 | _ACEOF | |
20171 | cat confdefs.h >>conftest.$ac_ext | |
20172 | cat >>conftest.$ac_ext <<_ACEOF | |
20173 | /* end confdefs.h. */ | |
20174 | #include <features.h> | |
20175 | int | |
20176 | main () | |
20177 | { | |
20178 | ||
20179 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20180 | #error not glibc2.1 | |
20181 | #endif | |
20182 | ||
20183 | ; | |
20184 | return 0; | |
20185 | } | |
20186 | _ACEOF | |
20187 | rm -f conftest.$ac_objext | |
20188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20189 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20190 | ac_status=$? |
ac1cb8d3 VS |
20191 | grep -v '^ *+' conftest.er1 >conftest.err |
20192 | rm -f conftest.er1 | |
20193 | cat conftest.err >&5 | |
a848cd7e SC |
20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20195 | (exit $ac_status); } && | |
7714864e | 20196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; } && | |
20202 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; }; then | |
20208 | ||
20209 | wx_cv_lib_glibc21=yes | |
20210 | ||
20211 | else | |
20212 | echo "$as_me: failed program was:" >&5 | |
20213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20214 | ||
20215 | ||
20216 | wx_cv_lib_glibc21=no | |
20217 | ||
20218 | ||
20219 | fi | |
ac1cb8d3 | 20220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20221 | |
20222 | fi | |
20223 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20224 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20225 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20226 | cat >>confdefs.h <<\_ACEOF | |
20227 | #define wxHAVE_GLIBC2 1 | |
20228 | _ACEOF | |
20229 | ||
20230 | fi | |
20231 | fi | |
20232 | ||
20233 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20234 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20235 | cat >>confdefs.h <<\_ACEOF | |
20236 | #define _GNU_SOURCE 1 | |
20237 | _ACEOF | |
20238 | ||
20239 | fi | |
20240 | fi | |
20241 | ||
20242 | ||
20243 | ||
20244 | if test "$wxUSE_REGEX" != "no"; then | |
20245 | cat >>confdefs.h <<\_ACEOF | |
20246 | #define wxUSE_REGEX 1 | |
20247 | _ACEOF | |
20248 | ||
20249 | ||
20250 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20251 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20252 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20253 | wxUSE_REGEX=builtin | |
20254 | fi | |
20255 | ||
20256 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20257 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20258 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20259 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20260 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20262 | fi | |
20263 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20264 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20265 | else | |
20266 | # Is the header compilable? | |
20267 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20268 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20269 | cat >conftest.$ac_ext <<_ACEOF | |
20270 | /* confdefs.h. */ | |
20271 | _ACEOF | |
20272 | cat confdefs.h >>conftest.$ac_ext | |
20273 | cat >>conftest.$ac_ext <<_ACEOF | |
20274 | /* end confdefs.h. */ | |
20275 | $ac_includes_default | |
20276 | #include <regex.h> | |
20277 | _ACEOF | |
20278 | rm -f conftest.$ac_objext | |
20279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20281 | ac_status=$? |
ac1cb8d3 VS |
20282 | grep -v '^ *+' conftest.er1 >conftest.err |
20283 | rm -f conftest.er1 | |
20284 | cat conftest.err >&5 | |
a848cd7e SC |
20285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20286 | (exit $ac_status); } && | |
7714864e | 20287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20289 | (eval $ac_try) 2>&5 | |
20290 | ac_status=$? | |
20291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20292 | (exit $ac_status); }; } && | |
20293 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20295 | (eval $ac_try) 2>&5 | |
20296 | ac_status=$? | |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20298 | (exit $ac_status); }; }; then | |
20299 | ac_header_compiler=yes | |
20300 | else | |
20301 | echo "$as_me: failed program was:" >&5 | |
20302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20303 | ||
20304 | ac_header_compiler=no | |
20305 | fi | |
ac1cb8d3 | 20306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20309 | ||
20310 | # Is the header present? | |
20311 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20312 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20313 | cat >conftest.$ac_ext <<_ACEOF | |
20314 | /* confdefs.h. */ | |
20315 | _ACEOF | |
20316 | cat confdefs.h >>conftest.$ac_ext | |
20317 | cat >>conftest.$ac_ext <<_ACEOF | |
20318 | /* end confdefs.h. */ | |
20319 | #include <regex.h> | |
20320 | _ACEOF | |
20321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20323 | ac_status=$? | |
20324 | grep -v '^ *+' conftest.er1 >conftest.err | |
20325 | rm -f conftest.er1 | |
20326 | cat conftest.err >&5 | |
20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20328 | (exit $ac_status); } >/dev/null; then | |
20329 | if test -s conftest.err; then | |
20330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20332 | else |
20333 | ac_cpp_err= | |
20334 | fi | |
20335 | else | |
20336 | ac_cpp_err=yes | |
20337 | fi | |
20338 | if test -z "$ac_cpp_err"; then | |
20339 | ac_header_preproc=yes | |
20340 | else | |
20341 | echo "$as_me: failed program was:" >&5 | |
20342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20343 | ||
20344 | ac_header_preproc=no | |
20345 | fi | |
20346 | rm -f conftest.err conftest.$ac_ext | |
20347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20349 | ||
20350 | # So? What about this header? | |
ac1cb8d3 VS |
20351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20352 | yes:no: ) | |
a848cd7e SC |
20353 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20354 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20355 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20356 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20357 | ac_header_preproc=yes | |
a848cd7e | 20358 | ;; |
ac1cb8d3 | 20359 | no:yes:* ) |
a848cd7e SC |
20360 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20361 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20362 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20363 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20364 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20365 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20366 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20367 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20368 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20369 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20370 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20371 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20372 | ( |
20373 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20374 | ## ----------------------------------------- ## |
20375 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20376 | ## ----------------------------------------- ## | |
a848cd7e SC |
20377 | _ASBOX |
20378 | ) | | |
20379 | sed "s/^/$as_me: WARNING: /" >&2 | |
20380 | ;; | |
20381 | esac | |
20382 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20383 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20384 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20386 | else | |
20387 | ac_cv_header_regex_h=$ac_header_preproc | |
20388 | fi | |
20389 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20390 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20391 | ||
20392 | fi | |
20393 | if test $ac_cv_header_regex_h = yes; then | |
20394 | ||
20395 | for ac_func in regcomp | |
20396 | do | |
20397 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20398 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20399 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20400 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20402 | else | |
20403 | cat >conftest.$ac_ext <<_ACEOF | |
20404 | /* confdefs.h. */ | |
20405 | _ACEOF | |
20406 | cat confdefs.h >>conftest.$ac_ext | |
20407 | cat >>conftest.$ac_ext <<_ACEOF | |
20408 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20409 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20411 | #define $ac_func innocuous_$ac_func | |
20412 | ||
a848cd7e SC |
20413 | /* System header to define __stub macros and hopefully few prototypes, |
20414 | which can conflict with char $ac_func (); below. | |
20415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20416 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20417 | |
a848cd7e SC |
20418 | #ifdef __STDC__ |
20419 | # include <limits.h> | |
20420 | #else | |
20421 | # include <assert.h> | |
20422 | #endif | |
ac1cb8d3 VS |
20423 | |
20424 | #undef $ac_func | |
20425 | ||
a848cd7e SC |
20426 | /* Override any gcc2 internal prototype to avoid an error. */ |
20427 | #ifdef __cplusplus | |
20428 | extern "C" | |
20429 | { | |
20430 | #endif | |
20431 | /* We use char because int might match the return type of a gcc2 | |
20432 | builtin and then its argument prototype would still apply. */ | |
20433 | char $ac_func (); | |
20434 | /* The GNU C library defines this for functions which it implements | |
20435 | to always fail with ENOSYS. Some functions are actually named | |
20436 | something starting with __ and the normal name is an alias. */ | |
20437 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20438 | choke me | |
20439 | #else | |
20440 | char (*f) () = $ac_func; | |
20441 | #endif | |
20442 | #ifdef __cplusplus | |
20443 | } | |
20444 | #endif | |
20445 | ||
20446 | int | |
20447 | main () | |
20448 | { | |
20449 | return f != $ac_func; | |
20450 | ; | |
20451 | return 0; | |
20452 | } | |
20453 | _ACEOF | |
20454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20456 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20457 | ac_status=$? |
ac1cb8d3 VS |
20458 | grep -v '^ *+' conftest.er1 >conftest.err |
20459 | rm -f conftest.er1 | |
20460 | cat conftest.err >&5 | |
a848cd7e SC |
20461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20462 | (exit $ac_status); } && | |
7714864e | 20463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20465 | (eval $ac_try) 2>&5 | |
20466 | ac_status=$? | |
20467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20468 | (exit $ac_status); }; } && | |
20469 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20471 | (eval $ac_try) 2>&5 | |
20472 | ac_status=$? | |
20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20474 | (exit $ac_status); }; }; then | |
20475 | eval "$as_ac_var=yes" | |
20476 | else | |
20477 | echo "$as_me: failed program was:" >&5 | |
20478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20479 | ||
20480 | eval "$as_ac_var=no" | |
20481 | fi | |
ac1cb8d3 VS |
20482 | rm -f conftest.err conftest.$ac_objext \ |
20483 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20484 | fi |
20485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20487 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20488 | cat >>confdefs.h <<_ACEOF | |
20489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20490 | _ACEOF | |
20491 | ||
20492 | fi | |
20493 | done | |
20494 | ||
20495 | fi | |
20496 | ||
20497 | ||
20498 | ||
20499 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20500 | if test "$wxUSE_REGEX" = "sys" ; then | |
20501 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20502 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20503 | { (exit 1); exit 1; }; } | |
20504 | else | |
20505 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20506 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20507 | wxUSE_REGEX=builtin | |
20508 | fi | |
20509 | else | |
20510 | wxUSE_REGEX=sys | |
20511 | cat >>confdefs.h <<\_ACEOF | |
20512 | #define WX_NO_REGEX_ADVANCED 1 | |
20513 | _ACEOF | |
20514 | ||
20515 | fi | |
20516 | fi | |
20517 | fi | |
20518 | ||
20519 | ||
20520 | ZLIB_LINK= | |
20521 | if test "$wxUSE_ZLIB" != "no" ; then | |
20522 | cat >>confdefs.h <<\_ACEOF | |
20523 | #define wxUSE_ZLIB 1 | |
20524 | _ACEOF | |
20525 | ||
20526 | ||
20527 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20528 | if test "$USE_DARWIN" = 1; then | |
20529 | system_zlib_h_ok="yes" | |
20530 | else | |
20531 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20532 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20533 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20535 | else | |
20536 | if test "$cross_compiling" = yes; then | |
20537 | unset ac_cv_header_zlib_h | |
20538 | ||
20539 | else | |
20540 | cat >conftest.$ac_ext <<_ACEOF | |
20541 | /* confdefs.h. */ | |
20542 | _ACEOF | |
20543 | cat confdefs.h >>conftest.$ac_ext | |
20544 | cat >>conftest.$ac_ext <<_ACEOF | |
20545 | /* end confdefs.h. */ | |
20546 | ||
20547 | #include <zlib.h> | |
20548 | #include <stdio.h> | |
20549 | ||
20550 | int main() | |
20551 | { | |
20552 | FILE *f=fopen("conftestval", "w"); | |
20553 | if (!f) exit(1); | |
20554 | fprintf(f, "%s", | |
20555 | ZLIB_VERSION[0] == '1' && | |
20556 | (ZLIB_VERSION[2] > '1' || | |
20557 | (ZLIB_VERSION[2] == '1' && | |
20558 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20559 | exit(0); | |
20560 | } | |
20561 | ||
20562 | _ACEOF | |
20563 | rm -f conftest$ac_exeext | |
20564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20565 | (eval $ac_link) 2>&5 | |
20566 | ac_status=$? | |
20567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20568 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20570 | (eval $ac_try) 2>&5 | |
20571 | ac_status=$? | |
20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20573 | (exit $ac_status); }; }; then | |
20574 | ac_cv_header_zlib_h=`cat conftestval` | |
20575 | else | |
20576 | echo "$as_me: program exited with status $ac_status" >&5 | |
20577 | echo "$as_me: failed program was:" >&5 | |
20578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20579 | ||
20580 | ( exit $ac_status ) | |
20581 | ac_cv_header_zlib_h=no | |
20582 | fi | |
ac1cb8d3 | 20583 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20584 | fi |
20585 | ||
20586 | fi | |
20587 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20588 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20589 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20590 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20591 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20592 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20594 | fi | |
20595 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20596 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20597 | else | |
20598 | # Is the header compilable? | |
20599 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20600 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20601 | cat >conftest.$ac_ext <<_ACEOF | |
20602 | /* confdefs.h. */ | |
20603 | _ACEOF | |
20604 | cat confdefs.h >>conftest.$ac_ext | |
20605 | cat >>conftest.$ac_ext <<_ACEOF | |
20606 | /* end confdefs.h. */ | |
20607 | $ac_includes_default | |
20608 | #include <zlib.h> | |
20609 | _ACEOF | |
20610 | rm -f conftest.$ac_objext | |
20611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20613 | ac_status=$? |
ac1cb8d3 VS |
20614 | grep -v '^ *+' conftest.er1 >conftest.err |
20615 | rm -f conftest.er1 | |
20616 | cat conftest.err >&5 | |
a848cd7e SC |
20617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20618 | (exit $ac_status); } && | |
7714864e | 20619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20621 | (eval $ac_try) 2>&5 | |
20622 | ac_status=$? | |
20623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20624 | (exit $ac_status); }; } && | |
20625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20627 | (eval $ac_try) 2>&5 | |
20628 | ac_status=$? | |
20629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20630 | (exit $ac_status); }; }; then | |
20631 | ac_header_compiler=yes | |
20632 | else | |
20633 | echo "$as_me: failed program was:" >&5 | |
20634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20635 | ||
20636 | ac_header_compiler=no | |
20637 | fi | |
ac1cb8d3 | 20638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20640 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20641 | ||
20642 | # Is the header present? | |
20643 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20644 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20645 | cat >conftest.$ac_ext <<_ACEOF | |
20646 | /* confdefs.h. */ | |
20647 | _ACEOF | |
20648 | cat confdefs.h >>conftest.$ac_ext | |
20649 | cat >>conftest.$ac_ext <<_ACEOF | |
20650 | /* end confdefs.h. */ | |
20651 | #include <zlib.h> | |
20652 | _ACEOF | |
20653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20655 | ac_status=$? | |
20656 | grep -v '^ *+' conftest.er1 >conftest.err | |
20657 | rm -f conftest.er1 | |
20658 | cat conftest.err >&5 | |
20659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20660 | (exit $ac_status); } >/dev/null; then | |
20661 | if test -s conftest.err; then | |
20662 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20663 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20664 | else |
20665 | ac_cpp_err= | |
20666 | fi | |
20667 | else | |
20668 | ac_cpp_err=yes | |
20669 | fi | |
20670 | if test -z "$ac_cpp_err"; then | |
20671 | ac_header_preproc=yes | |
20672 | else | |
20673 | echo "$as_me: failed program was:" >&5 | |
20674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20675 | ||
20676 | ac_header_preproc=no | |
20677 | fi | |
20678 | rm -f conftest.err conftest.$ac_ext | |
20679 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20680 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20681 | ||
20682 | # So? What about this header? | |
ac1cb8d3 VS |
20683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20684 | yes:no: ) | |
a848cd7e SC |
20685 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20686 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20687 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20688 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20689 | ac_header_preproc=yes | |
a848cd7e | 20690 | ;; |
ac1cb8d3 | 20691 | no:yes:* ) |
a848cd7e SC |
20692 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20693 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20694 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20695 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20696 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20697 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20698 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20699 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20700 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20701 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20702 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20703 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20704 | ( |
20705 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20706 | ## ----------------------------------------- ## |
20707 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20708 | ## ----------------------------------------- ## | |
a848cd7e SC |
20709 | _ASBOX |
20710 | ) | | |
20711 | sed "s/^/$as_me: WARNING: /" >&2 | |
20712 | ;; | |
20713 | esac | |
20714 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20715 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20716 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20718 | else | |
20719 | ac_cv_header_zlib_h=$ac_header_preproc | |
20720 | fi | |
20721 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20722 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20723 | ||
20724 | fi | |
20725 | ||
20726 | ||
20727 | ||
20728 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20729 | fi | |
20730 | ||
20731 | if test "$system_zlib_h_ok" = "yes"; then | |
20732 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20733 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20734 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20736 | else | |
20737 | ac_check_lib_save_LIBS=$LIBS | |
20738 | LIBS="-lz $LIBS" | |
20739 | cat >conftest.$ac_ext <<_ACEOF | |
20740 | /* confdefs.h. */ | |
20741 | _ACEOF | |
20742 | cat confdefs.h >>conftest.$ac_ext | |
20743 | cat >>conftest.$ac_ext <<_ACEOF | |
20744 | /* end confdefs.h. */ | |
20745 | ||
20746 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20747 | #ifdef __cplusplus | |
20748 | extern "C" | |
20749 | #endif | |
20750 | /* We use char because int might match the return type of a gcc2 | |
20751 | builtin and then its argument prototype would still apply. */ | |
20752 | char deflate (); | |
20753 | int | |
20754 | main () | |
20755 | { | |
20756 | deflate (); | |
20757 | ; | |
20758 | return 0; | |
20759 | } | |
20760 | _ACEOF | |
20761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20763 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20764 | ac_status=$? |
ac1cb8d3 VS |
20765 | grep -v '^ *+' conftest.er1 >conftest.err |
20766 | rm -f conftest.er1 | |
20767 | cat conftest.err >&5 | |
a848cd7e SC |
20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20769 | (exit $ac_status); } && | |
7714864e | 20770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20772 | (eval $ac_try) 2>&5 | |
20773 | ac_status=$? | |
20774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20775 | (exit $ac_status); }; } && | |
20776 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20778 | (eval $ac_try) 2>&5 | |
20779 | ac_status=$? | |
20780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20781 | (exit $ac_status); }; }; then | |
20782 | ac_cv_lib_z_deflate=yes | |
20783 | else | |
20784 | echo "$as_me: failed program was:" >&5 | |
20785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20786 | ||
20787 | ac_cv_lib_z_deflate=no | |
20788 | fi | |
ac1cb8d3 VS |
20789 | rm -f conftest.err conftest.$ac_objext \ |
20790 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20791 | LIBS=$ac_check_lib_save_LIBS |
20792 | fi | |
20793 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20794 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20795 | if test $ac_cv_lib_z_deflate = yes; then | |
20796 | ZLIB_LINK=" -lz" | |
20797 | fi | |
20798 | ||
20799 | fi | |
20800 | ||
20801 | if test "x$ZLIB_LINK" = "x" ; then | |
20802 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20803 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20804 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20805 | { (exit 1); exit 1; }; } | |
20806 | else | |
20807 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20808 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20809 | wxUSE_ZLIB=builtin | |
20810 | fi | |
20811 | else | |
20812 | wxUSE_ZLIB=sys | |
20813 | fi | |
20814 | fi | |
20815 | fi | |
20816 | ||
20817 | ||
20818 | PNG_LINK= | |
20819 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20820 | cat >>confdefs.h <<\_ACEOF | |
20821 | #define wxUSE_LIBPNG 1 | |
20822 | _ACEOF | |
20823 | ||
20824 | ||
20825 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20826 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20827 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20828 | wxUSE_LIBPNG=sys | |
20829 | fi | |
20830 | ||
20831 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20832 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20833 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20834 | wxUSE_LIBPNG=builtin | |
20835 | fi | |
20836 | ||
20837 | if test "$wxUSE_MGL" != 1 ; then | |
20838 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20839 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20840 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20841 | if test "${ac_cv_header_png_h+set}" = set; then | |
20842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20843 | else | |
20844 | if test "$cross_compiling" = yes; then | |
20845 | unset ac_cv_header_png_h | |
20846 | ||
20847 | else | |
20848 | cat >conftest.$ac_ext <<_ACEOF | |
20849 | /* confdefs.h. */ | |
20850 | _ACEOF | |
20851 | cat confdefs.h >>conftest.$ac_ext | |
20852 | cat >>conftest.$ac_ext <<_ACEOF | |
20853 | /* end confdefs.h. */ | |
20854 | ||
20855 | #include <png.h> | |
20856 | #include <stdio.h> | |
20857 | ||
20858 | int main() | |
20859 | { | |
20860 | FILE *f=fopen("conftestval", "w"); | |
20861 | if (!f) exit(1); | |
20862 | fprintf(f, "%s", | |
20863 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20864 | exit(0); | |
20865 | } | |
20866 | ||
20867 | _ACEOF | |
20868 | rm -f conftest$ac_exeext | |
20869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20870 | (eval $ac_link) 2>&5 | |
20871 | ac_status=$? | |
20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20873 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20875 | (eval $ac_try) 2>&5 | |
20876 | ac_status=$? | |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20878 | (exit $ac_status); }; }; then | |
20879 | ac_cv_header_png_h=`cat conftestval` | |
20880 | else | |
20881 | echo "$as_me: program exited with status $ac_status" >&5 | |
20882 | echo "$as_me: failed program was:" >&5 | |
20883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20884 | ||
20885 | ( exit $ac_status ) | |
20886 | ac_cv_header_png_h=no | |
20887 | fi | |
ac1cb8d3 | 20888 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20889 | fi |
20890 | ||
20891 | fi | |
20892 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20893 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20894 | if test "${ac_cv_header_png_h+set}" = set; then | |
20895 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20896 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20897 | if test "${ac_cv_header_png_h+set}" = set; then | |
20898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20899 | fi | |
20900 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20901 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20902 | else | |
20903 | # Is the header compilable? | |
20904 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20905 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20906 | cat >conftest.$ac_ext <<_ACEOF | |
20907 | /* confdefs.h. */ | |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
20912 | $ac_includes_default | |
20913 | #include <png.h> | |
20914 | _ACEOF | |
20915 | rm -f conftest.$ac_objext | |
20916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20917 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20918 | ac_status=$? |
ac1cb8d3 VS |
20919 | grep -v '^ *+' conftest.er1 >conftest.err |
20920 | rm -f conftest.er1 | |
20921 | cat conftest.err >&5 | |
a848cd7e SC |
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20923 | (exit $ac_status); } && | |
7714864e | 20924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20926 | (eval $ac_try) 2>&5 | |
20927 | ac_status=$? | |
20928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20929 | (exit $ac_status); }; } && | |
20930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20932 | (eval $ac_try) 2>&5 | |
20933 | ac_status=$? | |
20934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20935 | (exit $ac_status); }; }; then | |
20936 | ac_header_compiler=yes | |
20937 | else | |
20938 | echo "$as_me: failed program was:" >&5 | |
20939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20940 | ||
20941 | ac_header_compiler=no | |
20942 | fi | |
ac1cb8d3 | 20943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20944 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20945 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20946 | ||
20947 | # Is the header present? | |
20948 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
20949 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
20950 | cat >conftest.$ac_ext <<_ACEOF | |
20951 | /* confdefs.h. */ | |
20952 | _ACEOF | |
20953 | cat confdefs.h >>conftest.$ac_ext | |
20954 | cat >>conftest.$ac_ext <<_ACEOF | |
20955 | /* end confdefs.h. */ | |
20956 | #include <png.h> | |
20957 | _ACEOF | |
20958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20960 | ac_status=$? | |
20961 | grep -v '^ *+' conftest.er1 >conftest.err | |
20962 | rm -f conftest.er1 | |
20963 | cat conftest.err >&5 | |
20964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20965 | (exit $ac_status); } >/dev/null; then | |
20966 | if test -s conftest.err; then | |
20967 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20969 | else |
20970 | ac_cpp_err= | |
20971 | fi | |
20972 | else | |
20973 | ac_cpp_err=yes | |
20974 | fi | |
20975 | if test -z "$ac_cpp_err"; then | |
20976 | ac_header_preproc=yes | |
20977 | else | |
20978 | echo "$as_me: failed program was:" >&5 | |
20979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20980 | ||
20981 | ac_header_preproc=no | |
20982 | fi | |
20983 | rm -f conftest.err conftest.$ac_ext | |
20984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20985 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20986 | ||
20987 | # So? What about this header? | |
ac1cb8d3 VS |
20988 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20989 | yes:no: ) | |
a848cd7e SC |
20990 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20991 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20992 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
20993 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
20994 | ac_header_preproc=yes | |
a848cd7e | 20995 | ;; |
ac1cb8d3 | 20996 | no:yes:* ) |
a848cd7e SC |
20997 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
20998 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20999 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21000 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21001 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21002 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21003 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21004 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21005 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21006 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21007 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21008 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21009 | ( |
21010 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21011 | ## ----------------------------------------- ## |
21012 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21013 | ## ----------------------------------------- ## | |
a848cd7e SC |
21014 | _ASBOX |
21015 | ) | | |
21016 | sed "s/^/$as_me: WARNING: /" >&2 | |
21017 | ;; | |
21018 | esac | |
21019 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21020 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21021 | if test "${ac_cv_header_png_h+set}" = set; then | |
21022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21023 | else | |
21024 | ac_cv_header_png_h=$ac_header_preproc | |
21025 | fi | |
21026 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21027 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21028 | ||
21029 | fi | |
21030 | ||
21031 | ||
21032 | ||
21033 | if test "$ac_cv_header_png_h" = "yes"; then | |
21034 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21035 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21036 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21038 | else | |
21039 | ac_check_lib_save_LIBS=$LIBS | |
21040 | LIBS="-lpng -lz -lm $LIBS" | |
21041 | cat >conftest.$ac_ext <<_ACEOF | |
21042 | /* confdefs.h. */ | |
21043 | _ACEOF | |
21044 | cat confdefs.h >>conftest.$ac_ext | |
21045 | cat >>conftest.$ac_ext <<_ACEOF | |
21046 | /* end confdefs.h. */ | |
21047 | ||
21048 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21049 | #ifdef __cplusplus | |
21050 | extern "C" | |
21051 | #endif | |
21052 | /* We use char because int might match the return type of a gcc2 | |
21053 | builtin and then its argument prototype would still apply. */ | |
21054 | char png_check_sig (); | |
21055 | int | |
21056 | main () | |
21057 | { | |
21058 | png_check_sig (); | |
21059 | ; | |
21060 | return 0; | |
21061 | } | |
21062 | _ACEOF | |
21063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21065 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21066 | ac_status=$? |
ac1cb8d3 VS |
21067 | grep -v '^ *+' conftest.er1 >conftest.err |
21068 | rm -f conftest.er1 | |
21069 | cat conftest.err >&5 | |
a848cd7e SC |
21070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21071 | (exit $ac_status); } && | |
7714864e | 21072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21074 | (eval $ac_try) 2>&5 | |
21075 | ac_status=$? | |
21076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21077 | (exit $ac_status); }; } && | |
21078 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21080 | (eval $ac_try) 2>&5 | |
21081 | ac_status=$? | |
21082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21083 | (exit $ac_status); }; }; then | |
21084 | ac_cv_lib_png_png_check_sig=yes | |
21085 | else | |
21086 | echo "$as_me: failed program was:" >&5 | |
21087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21088 | ||
21089 | ac_cv_lib_png_png_check_sig=no | |
21090 | fi | |
ac1cb8d3 VS |
21091 | rm -f conftest.err conftest.$ac_objext \ |
21092 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21093 | LIBS=$ac_check_lib_save_LIBS |
21094 | fi | |
21095 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21096 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21097 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21098 | PNG_LINK=" -lpng -lz" | |
21099 | fi | |
21100 | ||
21101 | fi | |
21102 | ||
21103 | if test "x$PNG_LINK" = "x" ; then | |
21104 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21105 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21106 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21107 | { (exit 1); exit 1; }; } | |
21108 | else | |
21109 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21110 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21111 | wxUSE_LIBPNG=builtin | |
21112 | fi | |
21113 | else | |
21114 | wxUSE_LIBPNG=sys | |
21115 | fi | |
21116 | fi | |
21117 | fi | |
21118 | ||
21119 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21120 | fi | |
21121 | ||
21122 | ||
21123 | JPEG_LINK= | |
21124 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21125 | cat >>confdefs.h <<\_ACEOF | |
21126 | #define wxUSE_LIBJPEG 1 | |
21127 | _ACEOF | |
21128 | ||
21129 | ||
21130 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21131 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21132 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21133 | wxUSE_LIBJPEG=sys | |
21134 | fi | |
21135 | ||
21136 | if test "$wxUSE_MGL" != 1 ; then | |
21137 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21138 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21139 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21140 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21142 | else | |
21143 | cat >conftest.$ac_ext <<_ACEOF | |
21144 | /* confdefs.h. */ | |
21145 | _ACEOF | |
21146 | cat confdefs.h >>conftest.$ac_ext | |
21147 | cat >>conftest.$ac_ext <<_ACEOF | |
21148 | /* end confdefs.h. */ | |
21149 | ||
21150 | #undef HAVE_STDLIB_H | |
21151 | #include <stdio.h> | |
21152 | #include <jpeglib.h> | |
21153 | ||
21154 | int | |
21155 | main () | |
21156 | { | |
21157 | ||
21158 | ||
21159 | ; | |
21160 | return 0; | |
21161 | } | |
21162 | _ACEOF | |
21163 | rm -f conftest.$ac_objext | |
21164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21165 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21166 | ac_status=$? |
ac1cb8d3 VS |
21167 | grep -v '^ *+' conftest.er1 >conftest.err |
21168 | rm -f conftest.er1 | |
21169 | cat conftest.err >&5 | |
a848cd7e SC |
21170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21171 | (exit $ac_status); } && | |
7714864e | 21172 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21174 | (eval $ac_try) 2>&5 | |
21175 | ac_status=$? | |
21176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21177 | (exit $ac_status); }; } && | |
21178 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21180 | (eval $ac_try) 2>&5 | |
21181 | ac_status=$? | |
21182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21183 | (exit $ac_status); }; }; then | |
21184 | ac_cv_header_jpeglib_h=yes | |
21185 | else | |
21186 | echo "$as_me: failed program was:" >&5 | |
21187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21188 | ||
21189 | ac_cv_header_jpeglib_h=no | |
21190 | ||
21191 | fi | |
ac1cb8d3 | 21192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21193 | |
21194 | fi | |
21195 | ||
21196 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21197 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21198 | ||
21199 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21200 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21201 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21202 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21204 | else | |
21205 | ac_check_lib_save_LIBS=$LIBS | |
21206 | LIBS="-ljpeg $LIBS" | |
21207 | cat >conftest.$ac_ext <<_ACEOF | |
21208 | /* confdefs.h. */ | |
21209 | _ACEOF | |
21210 | cat confdefs.h >>conftest.$ac_ext | |
21211 | cat >>conftest.$ac_ext <<_ACEOF | |
21212 | /* end confdefs.h. */ | |
21213 | ||
21214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21215 | #ifdef __cplusplus | |
21216 | extern "C" | |
21217 | #endif | |
21218 | /* We use char because int might match the return type of a gcc2 | |
21219 | builtin and then its argument prototype would still apply. */ | |
21220 | char jpeg_read_header (); | |
21221 | int | |
21222 | main () | |
21223 | { | |
21224 | jpeg_read_header (); | |
21225 | ; | |
21226 | return 0; | |
21227 | } | |
21228 | _ACEOF | |
21229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21231 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21232 | ac_status=$? |
ac1cb8d3 VS |
21233 | grep -v '^ *+' conftest.er1 >conftest.err |
21234 | rm -f conftest.er1 | |
21235 | cat conftest.err >&5 | |
a848cd7e SC |
21236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21237 | (exit $ac_status); } && | |
7714864e | 21238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21240 | (eval $ac_try) 2>&5 | |
21241 | ac_status=$? | |
21242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21243 | (exit $ac_status); }; } && | |
21244 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21246 | (eval $ac_try) 2>&5 | |
21247 | ac_status=$? | |
21248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21249 | (exit $ac_status); }; }; then | |
21250 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21251 | else | |
21252 | echo "$as_me: failed program was:" >&5 | |
21253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21254 | ||
21255 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21256 | fi | |
ac1cb8d3 VS |
21257 | rm -f conftest.err conftest.$ac_objext \ |
21258 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21259 | LIBS=$ac_check_lib_save_LIBS |
21260 | fi | |
21261 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21262 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21263 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21264 | JPEG_LINK=" -ljpeg" | |
21265 | fi | |
21266 | ||
21267 | fi | |
21268 | ||
21269 | if test "x$JPEG_LINK" = "x" ; then | |
21270 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21271 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21272 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21273 | { (exit 1); exit 1; }; } | |
21274 | else | |
21275 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21276 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21277 | wxUSE_LIBJPEG=builtin | |
21278 | fi | |
21279 | else | |
21280 | wxUSE_LIBJPEG=sys | |
21281 | fi | |
21282 | fi | |
21283 | fi | |
21284 | fi | |
21285 | ||
21286 | ||
21287 | TIFF_LINK= | |
21288 | TIFF_PREREQ_LINKS=-lm | |
21289 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21290 | cat >>confdefs.h <<\_ACEOF | |
21291 | #define wxUSE_LIBTIFF 1 | |
21292 | _ACEOF | |
21293 | ||
21294 | ||
21295 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21296 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21297 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21298 | fi | |
21299 | if test "$wxUSE_ZLIB" = "sys"; then | |
21300 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21301 | fi | |
21302 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21303 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21304 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21305 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21307 | fi | |
21308 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21309 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21310 | else | |
21311 | # Is the header compilable? | |
21312 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21313 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21314 | cat >conftest.$ac_ext <<_ACEOF | |
21315 | /* confdefs.h. */ | |
21316 | _ACEOF | |
21317 | cat confdefs.h >>conftest.$ac_ext | |
21318 | cat >>conftest.$ac_ext <<_ACEOF | |
21319 | /* end confdefs.h. */ | |
21320 | $ac_includes_default | |
21321 | #include <tiffio.h> | |
21322 | _ACEOF | |
21323 | rm -f conftest.$ac_objext | |
21324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21325 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21326 | ac_status=$? |
ac1cb8d3 VS |
21327 | grep -v '^ *+' conftest.er1 >conftest.err |
21328 | rm -f conftest.er1 | |
21329 | cat conftest.err >&5 | |
a848cd7e SC |
21330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21331 | (exit $ac_status); } && | |
7714864e | 21332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21334 | (eval $ac_try) 2>&5 | |
21335 | ac_status=$? | |
21336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21337 | (exit $ac_status); }; } && | |
21338 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21340 | (eval $ac_try) 2>&5 | |
21341 | ac_status=$? | |
21342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21343 | (exit $ac_status); }; }; then | |
21344 | ac_header_compiler=yes | |
21345 | else | |
21346 | echo "$as_me: failed program was:" >&5 | |
21347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21348 | ||
21349 | ac_header_compiler=no | |
21350 | fi | |
ac1cb8d3 | 21351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21353 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21354 | ||
21355 | # Is the header present? | |
21356 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21357 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21358 | cat >conftest.$ac_ext <<_ACEOF | |
21359 | /* confdefs.h. */ | |
21360 | _ACEOF | |
21361 | cat confdefs.h >>conftest.$ac_ext | |
21362 | cat >>conftest.$ac_ext <<_ACEOF | |
21363 | /* end confdefs.h. */ | |
21364 | #include <tiffio.h> | |
21365 | _ACEOF | |
21366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21368 | ac_status=$? | |
21369 | grep -v '^ *+' conftest.er1 >conftest.err | |
21370 | rm -f conftest.er1 | |
21371 | cat conftest.err >&5 | |
21372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21373 | (exit $ac_status); } >/dev/null; then | |
21374 | if test -s conftest.err; then | |
21375 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21377 | else |
21378 | ac_cpp_err= | |
21379 | fi | |
21380 | else | |
21381 | ac_cpp_err=yes | |
21382 | fi | |
21383 | if test -z "$ac_cpp_err"; then | |
21384 | ac_header_preproc=yes | |
21385 | else | |
21386 | echo "$as_me: failed program was:" >&5 | |
21387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21388 | ||
21389 | ac_header_preproc=no | |
21390 | fi | |
21391 | rm -f conftest.err conftest.$ac_ext | |
21392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21393 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21394 | ||
21395 | # So? What about this header? | |
ac1cb8d3 VS |
21396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21397 | yes:no: ) | |
a848cd7e SC |
21398 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21399 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21400 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21401 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21402 | ac_header_preproc=yes | |
a848cd7e | 21403 | ;; |
ac1cb8d3 | 21404 | no:yes:* ) |
a848cd7e SC |
21405 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21406 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21407 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21408 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21409 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21410 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21411 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21412 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21413 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21414 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21415 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21416 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21417 | ( |
21418 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21419 | ## ----------------------------------------- ## |
21420 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21421 | ## ----------------------------------------- ## | |
a848cd7e SC |
21422 | _ASBOX |
21423 | ) | | |
21424 | sed "s/^/$as_me: WARNING: /" >&2 | |
21425 | ;; | |
21426 | esac | |
21427 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21428 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21429 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21431 | else | |
21432 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21433 | fi | |
21434 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21435 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21436 | ||
21437 | fi | |
21438 | if test $ac_cv_header_tiffio_h = yes; then | |
21439 | ||
21440 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21441 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21442 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21444 | else | |
21445 | ac_check_lib_save_LIBS=$LIBS | |
21446 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21447 | cat >conftest.$ac_ext <<_ACEOF | |
21448 | /* confdefs.h. */ | |
21449 | _ACEOF | |
21450 | cat confdefs.h >>conftest.$ac_ext | |
21451 | cat >>conftest.$ac_ext <<_ACEOF | |
21452 | /* end confdefs.h. */ | |
21453 | ||
21454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21455 | #ifdef __cplusplus | |
21456 | extern "C" | |
21457 | #endif | |
21458 | /* We use char because int might match the return type of a gcc2 | |
21459 | builtin and then its argument prototype would still apply. */ | |
21460 | char TIFFError (); | |
21461 | int | |
21462 | main () | |
21463 | { | |
21464 | TIFFError (); | |
21465 | ; | |
21466 | return 0; | |
21467 | } | |
21468 | _ACEOF | |
21469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21471 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21472 | ac_status=$? |
ac1cb8d3 VS |
21473 | grep -v '^ *+' conftest.er1 >conftest.err |
21474 | rm -f conftest.er1 | |
21475 | cat conftest.err >&5 | |
a848cd7e SC |
21476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21477 | (exit $ac_status); } && | |
7714864e | 21478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21480 | (eval $ac_try) 2>&5 | |
21481 | ac_status=$? | |
21482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21483 | (exit $ac_status); }; } && | |
21484 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21486 | (eval $ac_try) 2>&5 | |
21487 | ac_status=$? | |
21488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21489 | (exit $ac_status); }; }; then | |
21490 | ac_cv_lib_tiff_TIFFError=yes | |
21491 | else | |
21492 | echo "$as_me: failed program was:" >&5 | |
21493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21494 | ||
21495 | ac_cv_lib_tiff_TIFFError=no | |
21496 | fi | |
ac1cb8d3 VS |
21497 | rm -f conftest.err conftest.$ac_objext \ |
21498 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21499 | LIBS=$ac_check_lib_save_LIBS |
21500 | fi | |
21501 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21502 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21503 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21504 | TIFF_LINK=" -ltiff" | |
21505 | fi | |
21506 | ||
21507 | ||
21508 | ||
21509 | fi | |
21510 | ||
21511 | ||
21512 | ||
21513 | if test "x$TIFF_LINK" = "x" ; then | |
21514 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21515 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21516 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21517 | { (exit 1); exit 1; }; } | |
21518 | else | |
21519 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21520 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21521 | wxUSE_LIBTIFF=builtin | |
21522 | fi | |
21523 | else | |
21524 | wxUSE_LIBTIFF=sys | |
21525 | fi | |
21526 | fi | |
21527 | fi | |
21528 | ||
21529 | ||
21530 | if test "$wxUSE_EXPAT" != "no"; then | |
21531 | wxUSE_XML=yes | |
21532 | cat >>confdefs.h <<\_ACEOF | |
21533 | #define wxUSE_EXPAT 1 | |
21534 | _ACEOF | |
21535 | ||
21536 | cat >>confdefs.h <<\_ACEOF | |
21537 | #define wxUSE_XML 1 | |
21538 | _ACEOF | |
21539 | ||
21540 | ||
21541 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21542 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21543 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21544 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21545 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21547 | fi | |
21548 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21549 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21550 | else | |
21551 | # Is the header compilable? | |
21552 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21553 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21554 | cat >conftest.$ac_ext <<_ACEOF | |
21555 | /* confdefs.h. */ | |
21556 | _ACEOF | |
21557 | cat confdefs.h >>conftest.$ac_ext | |
21558 | cat >>conftest.$ac_ext <<_ACEOF | |
21559 | /* end confdefs.h. */ | |
21560 | $ac_includes_default | |
21561 | #include <expat.h> | |
21562 | _ACEOF | |
21563 | rm -f conftest.$ac_objext | |
21564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21565 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21566 | ac_status=$? |
ac1cb8d3 VS |
21567 | grep -v '^ *+' conftest.er1 >conftest.err |
21568 | rm -f conftest.er1 | |
21569 | cat conftest.err >&5 | |
a848cd7e SC |
21570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21571 | (exit $ac_status); } && | |
7714864e | 21572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21574 | (eval $ac_try) 2>&5 | |
21575 | ac_status=$? | |
21576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21577 | (exit $ac_status); }; } && | |
21578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21580 | (eval $ac_try) 2>&5 | |
21581 | ac_status=$? | |
21582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21583 | (exit $ac_status); }; }; then | |
21584 | ac_header_compiler=yes | |
21585 | else | |
21586 | echo "$as_me: failed program was:" >&5 | |
21587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21588 | ||
21589 | ac_header_compiler=no | |
21590 | fi | |
ac1cb8d3 | 21591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21593 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21594 | ||
21595 | # Is the header present? | |
21596 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21597 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21598 | cat >conftest.$ac_ext <<_ACEOF | |
21599 | /* confdefs.h. */ | |
21600 | _ACEOF | |
21601 | cat confdefs.h >>conftest.$ac_ext | |
21602 | cat >>conftest.$ac_ext <<_ACEOF | |
21603 | /* end confdefs.h. */ | |
21604 | #include <expat.h> | |
21605 | _ACEOF | |
21606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21608 | ac_status=$? | |
21609 | grep -v '^ *+' conftest.er1 >conftest.err | |
21610 | rm -f conftest.er1 | |
21611 | cat conftest.err >&5 | |
21612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21613 | (exit $ac_status); } >/dev/null; then | |
21614 | if test -s conftest.err; then | |
21615 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21617 | else |
21618 | ac_cpp_err= | |
21619 | fi | |
21620 | else | |
21621 | ac_cpp_err=yes | |
21622 | fi | |
21623 | if test -z "$ac_cpp_err"; then | |
21624 | ac_header_preproc=yes | |
21625 | else | |
21626 | echo "$as_me: failed program was:" >&5 | |
21627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21628 | ||
21629 | ac_header_preproc=no | |
21630 | fi | |
21631 | rm -f conftest.err conftest.$ac_ext | |
21632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21633 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21634 | ||
21635 | # So? What about this header? | |
ac1cb8d3 VS |
21636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21637 | yes:no: ) | |
a848cd7e SC |
21638 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21639 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21640 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21641 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21642 | ac_header_preproc=yes | |
a848cd7e | 21643 | ;; |
ac1cb8d3 | 21644 | no:yes:* ) |
a848cd7e SC |
21645 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21646 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21647 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21648 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21649 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21650 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21651 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21652 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21653 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21654 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21655 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21656 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21657 | ( |
21658 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21659 | ## ----------------------------------------- ## |
21660 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21661 | ## ----------------------------------------- ## | |
a848cd7e SC |
21662 | _ASBOX |
21663 | ) | | |
21664 | sed "s/^/$as_me: WARNING: /" >&2 | |
21665 | ;; | |
21666 | esac | |
21667 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21668 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21669 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21671 | else | |
21672 | ac_cv_header_expat_h=$ac_header_preproc | |
21673 | fi | |
21674 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21675 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21676 | ||
21677 | fi | |
21678 | if test $ac_cv_header_expat_h = yes; then | |
21679 | found_expat_h=1 | |
21680 | fi | |
21681 | ||
21682 | ||
21683 | if test "x$found_expat_h" = "x1"; then | |
21684 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21685 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21686 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21688 | else | |
21689 | ||
21690 | ||
21691 | ||
21692 | ac_ext=cc | |
21693 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21694 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21695 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21696 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21697 | ||
21698 | cat >conftest.$ac_ext <<_ACEOF | |
21699 | /* confdefs.h. */ | |
21700 | _ACEOF | |
21701 | cat confdefs.h >>conftest.$ac_ext | |
21702 | cat >>conftest.$ac_ext <<_ACEOF | |
21703 | /* end confdefs.h. */ | |
21704 | #include <expat.h> | |
21705 | int | |
21706 | main () | |
21707 | { | |
21708 | ||
21709 | ; | |
21710 | return 0; | |
21711 | } | |
21712 | _ACEOF | |
21713 | rm -f conftest.$ac_objext | |
21714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21716 | ac_status=$? |
ac1cb8d3 VS |
21717 | grep -v '^ *+' conftest.er1 >conftest.err |
21718 | rm -f conftest.er1 | |
21719 | cat conftest.err >&5 | |
a848cd7e SC |
21720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21721 | (exit $ac_status); } && | |
7714864e | 21722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21724 | (eval $ac_try) 2>&5 | |
21725 | ac_status=$? | |
21726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21727 | (exit $ac_status); }; } && | |
21728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21730 | (eval $ac_try) 2>&5 | |
21731 | ac_status=$? | |
21732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21733 | (exit $ac_status); }; }; then | |
21734 | wx_cv_expat_is_not_broken=yes | |
21735 | else | |
21736 | echo "$as_me: failed program was:" >&5 | |
21737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21738 | ||
21739 | wx_cv_expat_is_not_broken=no | |
21740 | ||
21741 | fi | |
ac1cb8d3 | 21742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21743 | ac_ext=c |
21744 | ac_cpp='$CPP $CPPFLAGS' | |
21745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21748 | ||
21749 | ||
21750 | ||
21751 | fi | |
21752 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21753 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21754 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21755 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21756 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21757 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21759 | else | |
21760 | ac_check_lib_save_LIBS=$LIBS | |
21761 | LIBS="-lexpat $LIBS" | |
21762 | cat >conftest.$ac_ext <<_ACEOF | |
21763 | /* confdefs.h. */ | |
21764 | _ACEOF | |
21765 | cat confdefs.h >>conftest.$ac_ext | |
21766 | cat >>conftest.$ac_ext <<_ACEOF | |
21767 | /* end confdefs.h. */ | |
21768 | ||
21769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21770 | #ifdef __cplusplus | |
21771 | extern "C" | |
21772 | #endif | |
21773 | /* We use char because int might match the return type of a gcc2 | |
21774 | builtin and then its argument prototype would still apply. */ | |
21775 | char XML_ParserCreate (); | |
21776 | int | |
21777 | main () | |
21778 | { | |
21779 | XML_ParserCreate (); | |
21780 | ; | |
21781 | return 0; | |
21782 | } | |
21783 | _ACEOF | |
21784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21786 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21787 | ac_status=$? |
ac1cb8d3 VS |
21788 | grep -v '^ *+' conftest.er1 >conftest.err |
21789 | rm -f conftest.er1 | |
21790 | cat conftest.err >&5 | |
a848cd7e SC |
21791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21792 | (exit $ac_status); } && | |
7714864e | 21793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21795 | (eval $ac_try) 2>&5 | |
21796 | ac_status=$? | |
21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); }; } && | |
21799 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21801 | (eval $ac_try) 2>&5 | |
21802 | ac_status=$? | |
21803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21804 | (exit $ac_status); }; }; then | |
21805 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21806 | else | |
21807 | echo "$as_me: failed program was:" >&5 | |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21809 | ||
21810 | ac_cv_lib_expat_XML_ParserCreate=no | |
21811 | fi | |
ac1cb8d3 VS |
21812 | rm -f conftest.err conftest.$ac_objext \ |
21813 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21814 | LIBS=$ac_check_lib_save_LIBS |
21815 | fi | |
21816 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21817 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21818 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21819 | EXPAT_LINK=" -lexpat" | |
21820 | fi | |
21821 | ||
21822 | fi | |
21823 | fi | |
21824 | if test "x$EXPAT_LINK" = "x" ; then | |
21825 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21826 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21827 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21828 | { (exit 1); exit 1; }; } | |
21829 | else | |
21830 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21831 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21832 | wxUSE_EXPAT=builtin | |
21833 | fi | |
21834 | else | |
21835 | wxUSE_EXPAT=sys | |
21836 | fi | |
21837 | fi | |
21838 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21839 | ||
21840 | ||
21841 | subdirs="$subdirs src/expat" | |
21842 | ||
21843 | fi | |
21844 | fi | |
21845 | ||
21846 | ||
21847 | ||
21848 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21849 | ||
21850 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21851 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21852 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21853 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21855 | fi | |
21856 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21857 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21858 | else | |
21859 | # Is the header compilable? | |
21860 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21861 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21862 | cat >conftest.$ac_ext <<_ACEOF | |
21863 | /* confdefs.h. */ | |
21864 | _ACEOF | |
21865 | cat confdefs.h >>conftest.$ac_ext | |
21866 | cat >>conftest.$ac_ext <<_ACEOF | |
21867 | /* end confdefs.h. */ | |
21868 | $ac_includes_default | |
21869 | #include <mspack.h> | |
21870 | _ACEOF | |
21871 | rm -f conftest.$ac_objext | |
21872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21873 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21874 | ac_status=$? |
ac1cb8d3 VS |
21875 | grep -v '^ *+' conftest.er1 >conftest.err |
21876 | rm -f conftest.er1 | |
21877 | cat conftest.err >&5 | |
a848cd7e SC |
21878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21879 | (exit $ac_status); } && | |
7714864e | 21880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21882 | (eval $ac_try) 2>&5 | |
21883 | ac_status=$? | |
21884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21885 | (exit $ac_status); }; } && | |
21886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21888 | (eval $ac_try) 2>&5 | |
21889 | ac_status=$? | |
21890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21891 | (exit $ac_status); }; }; then | |
21892 | ac_header_compiler=yes | |
21893 | else | |
21894 | echo "$as_me: failed program was:" >&5 | |
21895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21896 | ||
21897 | ac_header_compiler=no | |
21898 | fi | |
ac1cb8d3 | 21899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21900 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21901 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21902 | ||
21903 | # Is the header present? | |
21904 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21905 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21906 | cat >conftest.$ac_ext <<_ACEOF | |
21907 | /* confdefs.h. */ | |
21908 | _ACEOF | |
21909 | cat confdefs.h >>conftest.$ac_ext | |
21910 | cat >>conftest.$ac_ext <<_ACEOF | |
21911 | /* end confdefs.h. */ | |
21912 | #include <mspack.h> | |
21913 | _ACEOF | |
21914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21916 | ac_status=$? | |
21917 | grep -v '^ *+' conftest.er1 >conftest.err | |
21918 | rm -f conftest.er1 | |
21919 | cat conftest.err >&5 | |
21920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21921 | (exit $ac_status); } >/dev/null; then | |
21922 | if test -s conftest.err; then | |
21923 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21925 | else |
21926 | ac_cpp_err= | |
21927 | fi | |
21928 | else | |
21929 | ac_cpp_err=yes | |
21930 | fi | |
21931 | if test -z "$ac_cpp_err"; then | |
21932 | ac_header_preproc=yes | |
21933 | else | |
21934 | echo "$as_me: failed program was:" >&5 | |
21935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21936 | ||
21937 | ac_header_preproc=no | |
21938 | fi | |
21939 | rm -f conftest.err conftest.$ac_ext | |
21940 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21941 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21942 | ||
21943 | # So? What about this header? | |
ac1cb8d3 VS |
21944 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21945 | yes:no: ) | |
a848cd7e SC |
21946 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21947 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21948 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
21949 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
21950 | ac_header_preproc=yes | |
a848cd7e | 21951 | ;; |
ac1cb8d3 | 21952 | no:yes:* ) |
a848cd7e SC |
21953 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
21954 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21955 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
21956 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
21957 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
21958 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
21959 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21960 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21961 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
21962 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21963 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
21964 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21965 | ( |
21966 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21967 | ## ----------------------------------------- ## |
21968 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21969 | ## ----------------------------------------- ## | |
a848cd7e SC |
21970 | _ASBOX |
21971 | ) | | |
21972 | sed "s/^/$as_me: WARNING: /" >&2 | |
21973 | ;; | |
21974 | esac | |
21975 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21976 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21977 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21979 | else | |
21980 | ac_cv_header_mspack_h=$ac_header_preproc | |
21981 | fi | |
21982 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21983 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21984 | ||
21985 | fi | |
21986 | if test $ac_cv_header_mspack_h = yes; then | |
21987 | found_mspack_h=1 | |
21988 | fi | |
21989 | ||
21990 | ||
21991 | if test "x$found_mspack_h" = "x1"; then | |
21992 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
21993 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
21994 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
21995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21996 | else | |
21997 | ac_check_lib_save_LIBS=$LIBS | |
21998 | LIBS="-lmspack $LIBS" | |
21999 | cat >conftest.$ac_ext <<_ACEOF | |
22000 | /* confdefs.h. */ | |
22001 | _ACEOF | |
22002 | cat confdefs.h >>conftest.$ac_ext | |
22003 | cat >>conftest.$ac_ext <<_ACEOF | |
22004 | /* end confdefs.h. */ | |
22005 | ||
22006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22007 | #ifdef __cplusplus | |
22008 | extern "C" | |
22009 | #endif | |
22010 | /* We use char because int might match the return type of a gcc2 | |
22011 | builtin and then its argument prototype would still apply. */ | |
22012 | char mspack_create_chm_decompressor (); | |
22013 | int | |
22014 | main () | |
22015 | { | |
22016 | mspack_create_chm_decompressor (); | |
22017 | ; | |
22018 | return 0; | |
22019 | } | |
22020 | _ACEOF | |
22021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22023 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22024 | ac_status=$? |
ac1cb8d3 VS |
22025 | grep -v '^ *+' conftest.er1 >conftest.err |
22026 | rm -f conftest.er1 | |
22027 | cat conftest.err >&5 | |
a848cd7e SC |
22028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22029 | (exit $ac_status); } && | |
7714864e | 22030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22032 | (eval $ac_try) 2>&5 | |
22033 | ac_status=$? | |
22034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22035 | (exit $ac_status); }; } && | |
22036 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22038 | (eval $ac_try) 2>&5 | |
22039 | ac_status=$? | |
22040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22041 | (exit $ac_status); }; }; then | |
22042 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22043 | else | |
22044 | echo "$as_me: failed program was:" >&5 | |
22045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22046 | ||
22047 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22048 | fi | |
ac1cb8d3 VS |
22049 | rm -f conftest.err conftest.$ac_objext \ |
22050 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22051 | LIBS=$ac_check_lib_save_LIBS |
22052 | fi | |
22053 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22054 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22055 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22056 | MSPACK_LINK=" -lmspack" | |
22057 | fi | |
22058 | ||
22059 | fi | |
22060 | if test "x$MSPACK_LINK" = "x" ; then | |
22061 | wxUSE_LIBMSPACK=no | |
22062 | else | |
22063 | cat >>confdefs.h <<\_ACEOF | |
22064 | #define wxUSE_LIBMSPACK 1 | |
22065 | _ACEOF | |
22066 | ||
22067 | fi | |
22068 | fi | |
22069 | ||
22070 | ||
22071 | ||
22072 | AFMINSTALL= | |
22073 | WIN32INSTALL= | |
22074 | ||
22075 | TOOLKIT= | |
22076 | TOOLKIT_INCLUDE= | |
22077 | WIDGET_SET= | |
22078 | ||
22079 | if test "$USE_WIN32" = 1 ; then | |
22080 | ||
22081 | for ac_header in w32api.h | |
22082 | do | |
22083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22085 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22089 | fi | |
22090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22091 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22092 | else | |
22093 | # Is the header compilable? | |
22094 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22095 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22096 | cat >conftest.$ac_ext <<_ACEOF | |
22097 | /* confdefs.h. */ | |
22098 | _ACEOF | |
22099 | cat confdefs.h >>conftest.$ac_ext | |
22100 | cat >>conftest.$ac_ext <<_ACEOF | |
22101 | /* end confdefs.h. */ | |
22102 | $ac_includes_default | |
22103 | #include <$ac_header> | |
22104 | _ACEOF | |
22105 | rm -f conftest.$ac_objext | |
22106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22107 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22108 | ac_status=$? |
ac1cb8d3 VS |
22109 | grep -v '^ *+' conftest.er1 >conftest.err |
22110 | rm -f conftest.er1 | |
22111 | cat conftest.err >&5 | |
a848cd7e SC |
22112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22113 | (exit $ac_status); } && | |
7714864e | 22114 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22116 | (eval $ac_try) 2>&5 | |
22117 | ac_status=$? | |
22118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22119 | (exit $ac_status); }; } && | |
22120 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22122 | (eval $ac_try) 2>&5 | |
22123 | ac_status=$? | |
22124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22125 | (exit $ac_status); }; }; then | |
22126 | ac_header_compiler=yes | |
22127 | else | |
22128 | echo "$as_me: failed program was:" >&5 | |
22129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22130 | ||
22131 | ac_header_compiler=no | |
22132 | fi | |
ac1cb8d3 | 22133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22134 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22135 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22136 | ||
22137 | # Is the header present? | |
22138 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22139 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22140 | cat >conftest.$ac_ext <<_ACEOF | |
22141 | /* confdefs.h. */ | |
22142 | _ACEOF | |
22143 | cat confdefs.h >>conftest.$ac_ext | |
22144 | cat >>conftest.$ac_ext <<_ACEOF | |
22145 | /* end confdefs.h. */ | |
22146 | #include <$ac_header> | |
22147 | _ACEOF | |
22148 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22149 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22150 | ac_status=$? | |
22151 | grep -v '^ *+' conftest.er1 >conftest.err | |
22152 | rm -f conftest.er1 | |
22153 | cat conftest.err >&5 | |
22154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22155 | (exit $ac_status); } >/dev/null; then | |
22156 | if test -s conftest.err; then | |
22157 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22158 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22159 | else |
22160 | ac_cpp_err= | |
22161 | fi | |
22162 | else | |
22163 | ac_cpp_err=yes | |
22164 | fi | |
22165 | if test -z "$ac_cpp_err"; then | |
22166 | ac_header_preproc=yes | |
22167 | else | |
22168 | echo "$as_me: failed program was:" >&5 | |
22169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22170 | ||
22171 | ac_header_preproc=no | |
22172 | fi | |
22173 | rm -f conftest.err conftest.$ac_ext | |
22174 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22175 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22176 | ||
22177 | # So? What about this header? | |
ac1cb8d3 VS |
22178 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22179 | yes:no: ) | |
a848cd7e SC |
22180 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22181 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22183 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22184 | ac_header_preproc=yes | |
a848cd7e | 22185 | ;; |
ac1cb8d3 | 22186 | no:yes:* ) |
a848cd7e SC |
22187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22191 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22192 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22193 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22194 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22197 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22198 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22199 | ( |
22200 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22201 | ## ----------------------------------------- ## |
22202 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22203 | ## ----------------------------------------- ## | |
a848cd7e SC |
22204 | _ASBOX |
22205 | ) | | |
22206 | sed "s/^/$as_me: WARNING: /" >&2 | |
22207 | ;; | |
22208 | esac | |
22209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22213 | else | |
ac1cb8d3 | 22214 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22215 | fi |
22216 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22217 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22218 | ||
22219 | fi | |
22220 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22221 | cat >>confdefs.h <<_ACEOF | |
22222 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22223 | _ACEOF | |
22224 | ||
22225 | fi | |
22226 | ||
22227 | done | |
22228 | ||
22229 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22230 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22231 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22232 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22234 | fi | |
22235 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22236 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22237 | else | |
22238 | # Is the header compilable? | |
22239 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22240 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22241 | cat >conftest.$ac_ext <<_ACEOF | |
22242 | /* confdefs.h. */ | |
22243 | _ACEOF | |
22244 | cat confdefs.h >>conftest.$ac_ext | |
22245 | cat >>conftest.$ac_ext <<_ACEOF | |
22246 | /* end confdefs.h. */ | |
22247 | $ac_includes_default | |
22248 | #include <windows.h> | |
22249 | _ACEOF | |
22250 | rm -f conftest.$ac_objext | |
22251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22252 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22253 | ac_status=$? |
ac1cb8d3 VS |
22254 | grep -v '^ *+' conftest.er1 >conftest.err |
22255 | rm -f conftest.er1 | |
22256 | cat conftest.err >&5 | |
a848cd7e SC |
22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22258 | (exit $ac_status); } && | |
7714864e | 22259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22261 | (eval $ac_try) 2>&5 | |
22262 | ac_status=$? | |
22263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22264 | (exit $ac_status); }; } && | |
22265 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22267 | (eval $ac_try) 2>&5 | |
22268 | ac_status=$? | |
22269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22270 | (exit $ac_status); }; }; then | |
22271 | ac_header_compiler=yes | |
22272 | else | |
22273 | echo "$as_me: failed program was:" >&5 | |
22274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22275 | ||
22276 | ac_header_compiler=no | |
22277 | fi | |
ac1cb8d3 | 22278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22279 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22280 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22281 | ||
22282 | # Is the header present? | |
22283 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22284 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22285 | cat >conftest.$ac_ext <<_ACEOF | |
22286 | /* confdefs.h. */ | |
22287 | _ACEOF | |
22288 | cat confdefs.h >>conftest.$ac_ext | |
22289 | cat >>conftest.$ac_ext <<_ACEOF | |
22290 | /* end confdefs.h. */ | |
22291 | #include <windows.h> | |
22292 | _ACEOF | |
22293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22295 | ac_status=$? | |
22296 | grep -v '^ *+' conftest.er1 >conftest.err | |
22297 | rm -f conftest.er1 | |
22298 | cat conftest.err >&5 | |
22299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22300 | (exit $ac_status); } >/dev/null; then | |
22301 | if test -s conftest.err; then | |
22302 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22303 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22304 | else |
22305 | ac_cpp_err= | |
22306 | fi | |
22307 | else | |
22308 | ac_cpp_err=yes | |
22309 | fi | |
22310 | if test -z "$ac_cpp_err"; then | |
22311 | ac_header_preproc=yes | |
22312 | else | |
22313 | echo "$as_me: failed program was:" >&5 | |
22314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22315 | ||
22316 | ac_header_preproc=no | |
22317 | fi | |
22318 | rm -f conftest.err conftest.$ac_ext | |
22319 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22320 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22321 | ||
22322 | # So? What about this header? | |
ac1cb8d3 VS |
22323 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22324 | yes:no: ) | |
a848cd7e SC |
22325 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22326 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22327 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22328 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22329 | ac_header_preproc=yes | |
a848cd7e | 22330 | ;; |
ac1cb8d3 | 22331 | no:yes:* ) |
a848cd7e SC |
22332 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22333 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22334 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22335 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22336 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22337 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22338 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22339 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22340 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22341 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22342 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22343 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22344 | ( |
22345 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22346 | ## ----------------------------------------- ## |
22347 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22348 | ## ----------------------------------------- ## | |
a848cd7e SC |
22349 | _ASBOX |
22350 | ) | | |
22351 | sed "s/^/$as_me: WARNING: /" >&2 | |
22352 | ;; | |
22353 | esac | |
22354 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22355 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22356 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22358 | else | |
22359 | ac_cv_header_windows_h=$ac_header_preproc | |
22360 | fi | |
22361 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22362 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22363 | ||
22364 | fi | |
22365 | if test $ac_cv_header_windows_h = yes; then | |
22366 | : | |
22367 | else | |
22368 | ||
22369 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22370 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22371 | { (exit 1); exit 1; }; } | |
22372 | ||
22373 | fi | |
22374 | ||
22375 | ||
22376 | ||
22377 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22378 | ||
22379 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22380 | LIBS="$LIBS -loleacc" | |
22381 | fi | |
22382 | ||
22383 | case "${host}" in | |
22384 | *-*-cygwin* ) | |
22385 | LIBS="$LIBS -lkernel32 -luser32" | |
22386 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22387 | esac | |
22388 | ||
22389 | if test "$wxUSE_ODBC" = "sys" ; then | |
22390 | wxUSE_ODBC = "yes" | |
22391 | fi | |
22392 | if test "$wxUSE_ODBC" = "yes" ; then | |
22393 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22394 | cat >>confdefs.h <<\_ACEOF | |
22395 | #define wxUSE_ODBC 1 | |
22396 | _ACEOF | |
22397 | ||
22398 | fi | |
22399 | ||
22400 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22401 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22402 | ||
22403 | WIN32INSTALL=win32install | |
22404 | fi | |
22405 | ||
22406 | if test "$wxUSE_GUI" = "yes"; then | |
22407 | USE_GUI=1 | |
22408 | ||
22409 | GUI_TK_LIBRARY= | |
22410 | ||
22411 | WXGTK12= | |
22412 | WXGTK127= | |
22413 | WXGTK20= | |
22414 | WXGPE= | |
22415 | ||
22416 | if test "$wxUSE_MSW" = 1 ; then | |
22417 | TOOLKIT=MSW | |
22418 | GUIDIST=MSW_DIST | |
22419 | ||
ceec2216 | 22420 | case "${host}" in |
a848cd7e SC |
22421 | *-*-mingw32* ) |
22422 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22423 | esac | |
22424 | fi | |
22425 | ||
22426 | if test "$wxUSE_GTK" = 1; then | |
22427 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22428 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22429 | ||
22430 | gtk_version_cached=1 | |
22431 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22433 | else | |
22434 | ||
22435 | gtk_version_cached=0 | |
22436 | echo "$as_me:$LINENO: result: " >&5 | |
22437 | echo "${ECHO_T}" >&6 | |
22438 | ||
22439 | GTK_MODULES= | |
22440 | if test "$wxUSE_THREADS" = "yes"; then | |
22441 | GTK_MODULES=gthread | |
22442 | fi | |
22443 | ||
22444 | wx_cv_lib_gtk= | |
22445 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22446 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22447 | if test "${enable_gtktest+set}" = set; then | |
22448 | enableval="$enable_gtktest" | |
22449 | ||
22450 | else | |
22451 | enable_gtktest=yes | |
22452 | fi; | |
22453 | ||
22454 | pkg_config_args=gtk+-2.0 | |
22455 | for module in . $GTK_MODULES | |
22456 | do | |
22457 | case "$module" in | |
22458 | gthread) | |
22459 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22460 | ;; | |
22461 | esac | |
22462 | done | |
22463 | ||
22464 | no_gtk="" | |
22465 | ||
22466 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22467 | set dummy pkg-config; ac_word=$2 | |
22468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22470 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22472 | else | |
22473 | case $PKG_CONFIG in | |
22474 | [\\/]* | ?:[\\/]*) | |
22475 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22476 | ;; | |
22477 | *) | |
22478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22479 | for as_dir in $PATH | |
22480 | do | |
22481 | IFS=$as_save_IFS | |
22482 | test -z "$as_dir" && as_dir=. | |
22483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22485 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22487 | break 2 | |
22488 | fi | |
22489 | done | |
22490 | done | |
22491 | ||
22492 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22493 | ;; | |
22494 | esac | |
22495 | fi | |
22496 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22497 | ||
22498 | if test -n "$PKG_CONFIG"; then | |
22499 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22500 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22501 | else | |
22502 | echo "$as_me:$LINENO: result: no" >&5 | |
22503 | echo "${ECHO_T}no" >&6 | |
22504 | fi | |
22505 | ||
22506 | ||
22507 | if test x$PKG_CONFIG != xno ; then | |
22508 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22509 | : | |
22510 | else | |
c2218763 | 22511 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22512 | no_gtk=yes |
22513 | PKG_CONFIG=no | |
22514 | fi | |
22515 | else | |
22516 | no_gtk=yes | |
22517 | fi | |
22518 | ||
22519 | min_gtk_version=2.0.0 | |
22520 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22521 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22522 | ||
22523 | if test x$PKG_CONFIG != xno ; then | |
22524 | ## don't try to run the test against uninstalled libtool libs | |
22525 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22526 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22527 | enable_gtktest=no | |
22528 | fi | |
22529 | ||
22530 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22531 | : | |
22532 | else | |
22533 | no_gtk=yes | |
22534 | fi | |
22535 | fi | |
22536 | ||
22537 | if test x"$no_gtk" = x ; then | |
22538 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22539 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22540 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22541 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22542 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22543 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22544 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22545 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22546 | if test "x$enable_gtktest" = "xyes" ; then | |
22547 | ac_save_CFLAGS="$CFLAGS" | |
22548 | ac_save_LIBS="$LIBS" | |
22549 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22550 | LIBS="$GTK_LIBS $LIBS" | |
22551 | rm -f conf.gtktest | |
22552 | if test "$cross_compiling" = yes; then | |
22553 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22554 | else | |
22555 | cat >conftest.$ac_ext <<_ACEOF | |
22556 | /* confdefs.h. */ | |
22557 | _ACEOF | |
22558 | cat confdefs.h >>conftest.$ac_ext | |
22559 | cat >>conftest.$ac_ext <<_ACEOF | |
22560 | /* end confdefs.h. */ | |
22561 | ||
22562 | #include <gtk/gtk.h> | |
22563 | #include <stdio.h> | |
22564 | #include <stdlib.h> | |
22565 | ||
22566 | int | |
22567 | main () | |
22568 | { | |
22569 | int major, minor, micro; | |
22570 | char *tmp_version; | |
22571 | ||
22572 | system ("touch conf.gtktest"); | |
22573 | ||
22574 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22575 | tmp_version = g_strdup("$min_gtk_version"); | |
22576 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22577 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22578 | exit(1); | |
22579 | } | |
22580 | ||
22581 | if ((gtk_major_version != $gtk_config_major_version) || | |
22582 | (gtk_minor_version != $gtk_config_minor_version) || | |
22583 | (gtk_micro_version != $gtk_config_micro_version)) | |
22584 | { | |
22585 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22586 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22587 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22588 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22589 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22590 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22591 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22592 | printf("*** required on your system.\n"); | |
22593 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22594 | printf("*** to point to the correct configuration files\n"); | |
22595 | } | |
22596 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22597 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22598 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22599 | { | |
22600 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22601 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22602 | printf("*** library (version %d.%d.%d)\n", | |
22603 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22604 | } | |
22605 | else | |
22606 | { | |
22607 | if ((gtk_major_version > major) || | |
22608 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22609 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22610 | { | |
22611 | return 0; | |
22612 | } | |
22613 | else | |
22614 | { | |
22615 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22616 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22617 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22618 | major, minor, micro); | |
22619 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22620 | printf("***\n"); | |
22621 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22622 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22623 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22624 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22625 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22626 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22627 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22628 | } | |
22629 | } | |
22630 | return 1; | |
22631 | } | |
22632 | ||
22633 | _ACEOF | |
22634 | rm -f conftest$ac_exeext | |
22635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22636 | (eval $ac_link) 2>&5 | |
22637 | ac_status=$? | |
22638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22641 | (eval $ac_try) 2>&5 | |
22642 | ac_status=$? | |
22643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22644 | (exit $ac_status); }; }; then | |
22645 | : | |
22646 | else | |
22647 | echo "$as_me: program exited with status $ac_status" >&5 | |
22648 | echo "$as_me: failed program was:" >&5 | |
22649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22650 | ||
22651 | ( exit $ac_status ) | |
22652 | no_gtk=yes | |
22653 | fi | |
ac1cb8d3 | 22654 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22655 | fi |
22656 | CFLAGS="$ac_save_CFLAGS" | |
22657 | LIBS="$ac_save_LIBS" | |
22658 | fi | |
22659 | fi | |
22660 | if test "x$no_gtk" = x ; then | |
22661 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22662 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22663 | wx_cv_lib_gtk=2.0 | |
22664 | else | |
22665 | echo "$as_me:$LINENO: result: no" >&5 | |
22666 | echo "${ECHO_T}no" >&6 | |
22667 | if test "$PKG_CONFIG" = "no" ; then | |
22668 | echo "*** A new enough version of pkg-config was not found." | |
22669 | echo "*** See http://pkgconfig.sourceforge.net" | |
22670 | else | |
22671 | if test -f conf.gtktest ; then | |
22672 | : | |
22673 | else | |
22674 | echo "*** Could not run GTK+ test program, checking why..." | |
22675 | ac_save_CFLAGS="$CFLAGS" | |
22676 | ac_save_LIBS="$LIBS" | |
22677 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22678 | LIBS="$LIBS $GTK_LIBS" | |
22679 | cat >conftest.$ac_ext <<_ACEOF | |
22680 | /* confdefs.h. */ | |
22681 | _ACEOF | |
22682 | cat confdefs.h >>conftest.$ac_ext | |
22683 | cat >>conftest.$ac_ext <<_ACEOF | |
22684 | /* end confdefs.h. */ | |
22685 | ||
22686 | #include <gtk/gtk.h> | |
22687 | #include <stdio.h> | |
22688 | ||
22689 | int | |
22690 | main () | |
22691 | { | |
22692 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22693 | ; | |
22694 | return 0; | |
22695 | } | |
22696 | _ACEOF | |
22697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22699 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22700 | ac_status=$? |
ac1cb8d3 VS |
22701 | grep -v '^ *+' conftest.er1 >conftest.err |
22702 | rm -f conftest.er1 | |
22703 | cat conftest.err >&5 | |
a848cd7e SC |
22704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22705 | (exit $ac_status); } && | |
7714864e | 22706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22708 | (eval $ac_try) 2>&5 | |
22709 | ac_status=$? | |
22710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22711 | (exit $ac_status); }; } && | |
22712 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22714 | (eval $ac_try) 2>&5 | |
22715 | ac_status=$? | |
22716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22717 | (exit $ac_status); }; }; then | |
22718 | echo "*** The test program compiled, but did not run. This usually means" | |
22719 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22720 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22721 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22722 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22723 | echo "*** is required on your system" | |
22724 | echo "***" | |
22725 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22726 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22727 | else | |
22728 | echo "$as_me: failed program was:" >&5 | |
22729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22730 | ||
22731 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22732 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22733 | fi | |
ac1cb8d3 VS |
22734 | rm -f conftest.err conftest.$ac_objext \ |
22735 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22736 | CFLAGS="$ac_save_CFLAGS" |
22737 | LIBS="$ac_save_LIBS" | |
22738 | fi | |
22739 | fi | |
22740 | GTK_CFLAGS="" | |
22741 | GTK_LIBS="" | |
22742 | : | |
22743 | fi | |
22744 | ||
22745 | ||
22746 | rm -f conf.gtktest | |
22747 | ||
22748 | else | |
22749 | ||
22750 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22751 | if test "${with_gtk_prefix+set}" = set; then | |
22752 | withval="$with_gtk_prefix" | |
22753 | gtk_config_prefix="$withval" | |
22754 | else | |
22755 | gtk_config_prefix="" | |
22756 | fi; | |
22757 | ||
22758 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22759 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22760 | withval="$with_gtk_exec_prefix" | |
22761 | gtk_config_exec_prefix="$withval" | |
22762 | else | |
22763 | gtk_config_exec_prefix="" | |
22764 | fi; | |
22765 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22766 | if test "${enable_gtktest+set}" = set; then | |
22767 | enableval="$enable_gtktest" | |
22768 | ||
22769 | else | |
22770 | enable_gtktest=yes | |
22771 | fi; | |
22772 | ||
22773 | for module in . $GTK_MODULES | |
22774 | do | |
22775 | case "$module" in | |
22776 | gthread) | |
22777 | gtk_config_args="$gtk_config_args gthread" | |
22778 | ;; | |
22779 | esac | |
22780 | done | |
22781 | ||
22782 | if test x$gtk_config_exec_prefix != x ; then | |
22783 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22784 | if test x${GTK_CONFIG+set} != xset ; then | |
22785 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22786 | fi | |
22787 | fi | |
22788 | if test x$gtk_config_prefix != x ; then | |
22789 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22790 | if test x${GTK_CONFIG+set} != xset ; then | |
22791 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22792 | fi | |
22793 | fi | |
22794 | ||
22795 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22796 | set dummy gtk-config; ac_word=$2 | |
22797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22799 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22801 | else | |
22802 | case $GTK_CONFIG in | |
22803 | [\\/]* | ?:[\\/]*) | |
22804 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22805 | ;; | |
22806 | *) | |
22807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22808 | for as_dir in $PATH | |
22809 | do | |
22810 | IFS=$as_save_IFS | |
22811 | test -z "$as_dir" && as_dir=. | |
22812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22814 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22816 | break 2 | |
22817 | fi | |
22818 | done | |
22819 | done | |
22820 | ||
22821 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22822 | ;; | |
22823 | esac | |
22824 | fi | |
22825 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22826 | ||
22827 | if test -n "$GTK_CONFIG"; then | |
22828 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22829 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22830 | else | |
22831 | echo "$as_me:$LINENO: result: no" >&5 | |
22832 | echo "${ECHO_T}no" >&6 | |
22833 | fi | |
22834 | ||
22835 | min_gtk_version=1.2.7 | |
22836 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22837 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22838 | no_gtk="" | |
22839 | if test "$GTK_CONFIG" = "no" ; then | |
22840 | no_gtk=yes | |
22841 | else | |
22842 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22843 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22844 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22845 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22846 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22847 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22848 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22849 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22850 | if test "x$enable_gtktest" = "xyes" ; then | |
22851 | ac_save_CFLAGS="$CFLAGS" | |
22852 | ac_save_LIBS="$LIBS" | |
22853 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22854 | LIBS="$GTK_LIBS $LIBS" | |
22855 | rm -f conf.gtktest | |
22856 | if test "$cross_compiling" = yes; then | |
22857 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22858 | else | |
22859 | cat >conftest.$ac_ext <<_ACEOF | |
22860 | /* confdefs.h. */ | |
22861 | _ACEOF | |
22862 | cat confdefs.h >>conftest.$ac_ext | |
22863 | cat >>conftest.$ac_ext <<_ACEOF | |
22864 | /* end confdefs.h. */ | |
22865 | ||
22866 | #include <gtk/gtk.h> | |
22867 | #include <stdio.h> | |
22868 | #include <stdlib.h> | |
22869 | ||
22870 | int | |
22871 | main () | |
22872 | { | |
22873 | int major, minor, micro; | |
22874 | char *tmp_version; | |
22875 | ||
22876 | system ("touch conf.gtktest"); | |
22877 | ||
22878 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22879 | tmp_version = g_strdup("$min_gtk_version"); | |
22880 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22881 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22882 | exit(1); | |
22883 | } | |
22884 | ||
22885 | if ((gtk_major_version != $gtk_config_major_version) || | |
22886 | (gtk_minor_version != $gtk_config_minor_version) || | |
22887 | (gtk_micro_version != $gtk_config_micro_version)) | |
22888 | { | |
22889 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22890 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22891 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22892 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22893 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22894 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22895 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22896 | printf("*** required on your system.\n"); | |
22897 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22898 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22899 | printf("*** before re-running configure\n"); | |
22900 | } | |
22901 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22902 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22903 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22904 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22905 | { | |
22906 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22907 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22908 | printf("*** library (version %d.%d.%d)\n", | |
22909 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22910 | } | |
22911 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
22912 | else | |
22913 | { | |
22914 | if ((gtk_major_version > major) || | |
22915 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22916 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22917 | { | |
22918 | return 0; | |
22919 | } | |
22920 | else | |
22921 | { | |
22922 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22923 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22924 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22925 | major, minor, micro); | |
22926 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22927 | printf("***\n"); | |
22928 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22929 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
22930 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22931 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
22932 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
22933 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22934 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22935 | } | |
22936 | } | |
22937 | return 1; | |
22938 | } | |
22939 | ||
22940 | _ACEOF | |
22941 | rm -f conftest$ac_exeext | |
22942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22943 | (eval $ac_link) 2>&5 | |
22944 | ac_status=$? | |
22945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22948 | (eval $ac_try) 2>&5 | |
22949 | ac_status=$? | |
22950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22951 | (exit $ac_status); }; }; then | |
22952 | : | |
22953 | else | |
22954 | echo "$as_me: program exited with status $ac_status" >&5 | |
22955 | echo "$as_me: failed program was:" >&5 | |
22956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22957 | ||
22958 | ( exit $ac_status ) | |
22959 | no_gtk=yes | |
22960 | fi | |
ac1cb8d3 | 22961 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22962 | fi |
22963 | CFLAGS="$ac_save_CFLAGS" | |
22964 | LIBS="$ac_save_LIBS" | |
22965 | fi | |
22966 | fi | |
22967 | if test "x$no_gtk" = x ; then | |
22968 | echo "$as_me:$LINENO: result: yes" >&5 | |
22969 | echo "${ECHO_T}yes" >&6 | |
22970 | wx_cv_lib_gtk=1.2.7 | |
22971 | else | |
22972 | echo "$as_me:$LINENO: result: no" >&5 | |
22973 | echo "${ECHO_T}no" >&6 | |
22974 | if test "$GTK_CONFIG" = "no" ; then | |
22975 | echo "*** The gtk-config script installed by GTK could not be found" | |
22976 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
22977 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
22978 | echo "*** full path to gtk-config." | |
22979 | else | |
22980 | if test -f conf.gtktest ; then | |
22981 | : | |
22982 | else | |
22983 | echo "*** Could not run GTK test program, checking why..." | |
22984 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22985 | LIBS="$LIBS $GTK_LIBS" | |
22986 | cat >conftest.$ac_ext <<_ACEOF | |
22987 | /* confdefs.h. */ | |
22988 | _ACEOF | |
22989 | cat confdefs.h >>conftest.$ac_ext | |
22990 | cat >>conftest.$ac_ext <<_ACEOF | |
22991 | /* end confdefs.h. */ | |
22992 | ||
22993 | #include <gtk/gtk.h> | |
22994 | #include <stdio.h> | |
22995 | ||
22996 | int | |
22997 | main () | |
22998 | { | |
22999 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23000 | ; | |
23001 | return 0; | |
23002 | } | |
23003 | _ACEOF | |
23004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23006 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23007 | ac_status=$? |
ac1cb8d3 VS |
23008 | grep -v '^ *+' conftest.er1 >conftest.err |
23009 | rm -f conftest.er1 | |
23010 | cat conftest.err >&5 | |
a848cd7e SC |
23011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23012 | (exit $ac_status); } && | |
7714864e | 23013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23015 | (eval $ac_try) 2>&5 | |
23016 | ac_status=$? | |
23017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23018 | (exit $ac_status); }; } && | |
23019 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23021 | (eval $ac_try) 2>&5 | |
23022 | ac_status=$? | |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23024 | (exit $ac_status); }; }; then | |
23025 | echo "*** The test program compiled, but did not run. This usually means" | |
23026 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23027 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23028 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23029 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23030 | echo "*** is required on your system" | |
23031 | echo "***" | |
23032 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23033 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23034 | echo "***" | |
23035 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23036 | echo "*** came with the system with the command" | |
23037 | echo "***" | |
23038 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23039 | else | |
23040 | echo "$as_me: failed program was:" >&5 | |
23041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23042 | ||
23043 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23044 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23045 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23046 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23047 | fi | |
ac1cb8d3 VS |
23048 | rm -f conftest.err conftest.$ac_objext \ |
23049 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23050 | CFLAGS="$ac_save_CFLAGS" |
23051 | LIBS="$ac_save_LIBS" | |
23052 | fi | |
23053 | fi | |
23054 | GTK_CFLAGS="" | |
23055 | GTK_LIBS="" | |
23056 | : | |
23057 | fi | |
23058 | ||
23059 | ||
23060 | rm -f conf.gtktest | |
23061 | ||
23062 | ||
23063 | if test -z "$wx_cv_lib_gtk"; then | |
23064 | ||
23065 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23066 | if test "${with_gtk_prefix+set}" = set; then | |
23067 | withval="$with_gtk_prefix" | |
23068 | gtk_config_prefix="$withval" | |
23069 | else | |
23070 | gtk_config_prefix="" | |
23071 | fi; | |
23072 | ||
23073 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23074 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23075 | withval="$with_gtk_exec_prefix" | |
23076 | gtk_config_exec_prefix="$withval" | |
23077 | else | |
23078 | gtk_config_exec_prefix="" | |
23079 | fi; | |
23080 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23081 | if test "${enable_gtktest+set}" = set; then | |
23082 | enableval="$enable_gtktest" | |
23083 | ||
23084 | else | |
23085 | enable_gtktest=yes | |
23086 | fi; | |
23087 | ||
23088 | for module in . $GTK_MODULES | |
23089 | do | |
23090 | case "$module" in | |
23091 | gthread) | |
23092 | gtk_config_args="$gtk_config_args gthread" | |
23093 | ;; | |
23094 | esac | |
23095 | done | |
23096 | ||
23097 | if test x$gtk_config_exec_prefix != x ; then | |
23098 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23099 | if test x${GTK_CONFIG+set} != xset ; then | |
23100 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23101 | fi | |
23102 | fi | |
23103 | if test x$gtk_config_prefix != x ; then | |
23104 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23105 | if test x${GTK_CONFIG+set} != xset ; then | |
23106 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23107 | fi | |
23108 | fi | |
23109 | ||
23110 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23111 | set dummy gtk-config; ac_word=$2 | |
23112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23114 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23116 | else | |
23117 | case $GTK_CONFIG in | |
23118 | [\\/]* | ?:[\\/]*) | |
23119 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23120 | ;; | |
23121 | *) | |
23122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23123 | for as_dir in $PATH | |
23124 | do | |
23125 | IFS=$as_save_IFS | |
23126 | test -z "$as_dir" && as_dir=. | |
23127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23128 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23129 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23131 | break 2 | |
23132 | fi | |
23133 | done | |
23134 | done | |
23135 | ||
23136 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23137 | ;; | |
23138 | esac | |
23139 | fi | |
23140 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23141 | ||
23142 | if test -n "$GTK_CONFIG"; then | |
23143 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23144 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23145 | else | |
23146 | echo "$as_me:$LINENO: result: no" >&5 | |
23147 | echo "${ECHO_T}no" >&6 | |
23148 | fi | |
23149 | ||
23150 | min_gtk_version=1.2.3 | |
23151 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23152 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23153 | no_gtk="" | |
23154 | if test "$GTK_CONFIG" = "no" ; then | |
23155 | no_gtk=yes | |
23156 | else | |
23157 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23158 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23159 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23160 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23161 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23162 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23163 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23164 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23165 | if test "x$enable_gtktest" = "xyes" ; then | |
23166 | ac_save_CFLAGS="$CFLAGS" | |
23167 | ac_save_LIBS="$LIBS" | |
23168 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23169 | LIBS="$GTK_LIBS $LIBS" | |
23170 | rm -f conf.gtktest | |
23171 | if test "$cross_compiling" = yes; then | |
23172 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23173 | else | |
23174 | cat >conftest.$ac_ext <<_ACEOF | |
23175 | /* confdefs.h. */ | |
23176 | _ACEOF | |
23177 | cat confdefs.h >>conftest.$ac_ext | |
23178 | cat >>conftest.$ac_ext <<_ACEOF | |
23179 | /* end confdefs.h. */ | |
23180 | ||
23181 | #include <gtk/gtk.h> | |
23182 | #include <stdio.h> | |
23183 | #include <stdlib.h> | |
23184 | ||
23185 | int | |
23186 | main () | |
23187 | { | |
23188 | int major, minor, micro; | |
23189 | char *tmp_version; | |
23190 | ||
23191 | system ("touch conf.gtktest"); | |
23192 | ||
23193 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23194 | tmp_version = g_strdup("$min_gtk_version"); | |
23195 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23196 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23197 | exit(1); | |
23198 | } | |
23199 | ||
23200 | if ((gtk_major_version != $gtk_config_major_version) || | |
23201 | (gtk_minor_version != $gtk_config_minor_version) || | |
23202 | (gtk_micro_version != $gtk_config_micro_version)) | |
23203 | { | |
23204 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23205 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23206 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23207 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23208 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23209 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23210 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23211 | printf("*** required on your system.\n"); | |
23212 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23213 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23214 | printf("*** before re-running configure\n"); | |
23215 | } | |
23216 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23217 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23218 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23219 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23220 | { | |
23221 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23222 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23223 | printf("*** library (version %d.%d.%d)\n", | |
23224 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23225 | } | |
23226 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23227 | else | |
23228 | { | |
23229 | if ((gtk_major_version > major) || | |
23230 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23231 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23232 | { | |
23233 | return 0; | |
23234 | } | |
23235 | else | |
23236 | { | |
23237 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23238 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23239 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23240 | major, minor, micro); | |
23241 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23242 | printf("***\n"); | |
23243 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23244 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23245 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23246 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23247 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23248 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23249 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23250 | } | |
23251 | } | |
23252 | return 1; | |
23253 | } | |
23254 | ||
23255 | _ACEOF | |
23256 | rm -f conftest$ac_exeext | |
23257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23258 | (eval $ac_link) 2>&5 | |
23259 | ac_status=$? | |
23260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23261 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23263 | (eval $ac_try) 2>&5 | |
23264 | ac_status=$? | |
23265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23266 | (exit $ac_status); }; }; then | |
23267 | : | |
23268 | else | |
23269 | echo "$as_me: program exited with status $ac_status" >&5 | |
23270 | echo "$as_me: failed program was:" >&5 | |
23271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23272 | ||
23273 | ( exit $ac_status ) | |
23274 | no_gtk=yes | |
23275 | fi | |
ac1cb8d3 | 23276 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23277 | fi |
23278 | CFLAGS="$ac_save_CFLAGS" | |
23279 | LIBS="$ac_save_LIBS" | |
23280 | fi | |
23281 | fi | |
23282 | if test "x$no_gtk" = x ; then | |
23283 | echo "$as_me:$LINENO: result: yes" >&5 | |
23284 | echo "${ECHO_T}yes" >&6 | |
23285 | wx_cv_lib_gtk=1.2.3 | |
23286 | else | |
23287 | echo "$as_me:$LINENO: result: no" >&5 | |
23288 | echo "${ECHO_T}no" >&6 | |
23289 | if test "$GTK_CONFIG" = "no" ; then | |
23290 | echo "*** The gtk-config script installed by GTK could not be found" | |
23291 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23292 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23293 | echo "*** full path to gtk-config." | |
23294 | else | |
23295 | if test -f conf.gtktest ; then | |
23296 | : | |
23297 | else | |
23298 | echo "*** Could not run GTK test program, checking why..." | |
23299 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23300 | LIBS="$LIBS $GTK_LIBS" | |
23301 | cat >conftest.$ac_ext <<_ACEOF | |
23302 | /* confdefs.h. */ | |
23303 | _ACEOF | |
23304 | cat confdefs.h >>conftest.$ac_ext | |
23305 | cat >>conftest.$ac_ext <<_ACEOF | |
23306 | /* end confdefs.h. */ | |
23307 | ||
23308 | #include <gtk/gtk.h> | |
23309 | #include <stdio.h> | |
23310 | ||
23311 | int | |
23312 | main () | |
23313 | { | |
23314 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23315 | ; | |
23316 | return 0; | |
23317 | } | |
23318 | _ACEOF | |
23319 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23321 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23322 | ac_status=$? |
ac1cb8d3 VS |
23323 | grep -v '^ *+' conftest.er1 >conftest.err |
23324 | rm -f conftest.er1 | |
23325 | cat conftest.err >&5 | |
a848cd7e SC |
23326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23327 | (exit $ac_status); } && | |
7714864e | 23328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23330 | (eval $ac_try) 2>&5 | |
23331 | ac_status=$? | |
23332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23333 | (exit $ac_status); }; } && | |
23334 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23336 | (eval $ac_try) 2>&5 | |
23337 | ac_status=$? | |
23338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23339 | (exit $ac_status); }; }; then | |
23340 | echo "*** The test program compiled, but did not run. This usually means" | |
23341 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23342 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23343 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23344 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23345 | echo "*** is required on your system" | |
23346 | echo "***" | |
23347 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23348 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23349 | echo "***" | |
23350 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23351 | echo "*** came with the system with the command" | |
23352 | echo "***" | |
23353 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23354 | else | |
23355 | echo "$as_me: failed program was:" >&5 | |
23356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23357 | ||
23358 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23359 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23360 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23361 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23362 | fi | |
ac1cb8d3 VS |
23363 | rm -f conftest.err conftest.$ac_objext \ |
23364 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23365 | CFLAGS="$ac_save_CFLAGS" |
23366 | LIBS="$ac_save_LIBS" | |
23367 | fi | |
23368 | fi | |
23369 | GTK_CFLAGS="" | |
23370 | GTK_LIBS="" | |
23371 | : | |
23372 | fi | |
23373 | ||
23374 | ||
23375 | rm -f conf.gtktest | |
23376 | ||
23377 | fi | |
23378 | fi | |
23379 | ||
23380 | if test -z "$wx_cv_lib_gtk"; then | |
23381 | wx_cv_lib_gtk=none | |
23382 | else | |
23383 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23384 | wx_cv_libs_gtk=$GTK_LIBS | |
23385 | fi | |
23386 | ||
23387 | ||
23388 | fi | |
23389 | ||
23390 | ||
23391 | if test "$gtk_version_cached" = 1; then | |
23392 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23393 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23394 | fi | |
23395 | ||
23396 | case "$wx_cv_lib_gtk" in | |
23397 | 2.0) WXGTK20=1 | |
23398 | TOOLKIT_VERSION=2 | |
23399 | ;; | |
23400 | 1.2.7) WXGTK127=1 | |
23401 | WXGTK12=1 | |
23402 | ;; | |
23403 | 1.2.3) WXGTK12=1 | |
23404 | ;; | |
23405 | *) { { echo "$as_me:$LINENO: error: | |
23406 | Please check that gtk-config is in path, the directory | |
23407 | where GTK+ libraries are installed (returned by | |
23408 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23409 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23410 | " >&5 | |
23411 | echo "$as_me: error: | |
23412 | Please check that gtk-config is in path, the directory | |
23413 | where GTK+ libraries are installed (returned by | |
23414 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23415 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23416 | " >&2;} | |
23417 | { (exit 1); exit 1; }; } | |
23418 | ;; | |
23419 | esac | |
23420 | ||
23421 | if test "$WXGTK20" = 1; then | |
23422 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
23423 | ||
23424 | succeeded=no | |
23425 | ||
23426 | if test -z "$PKG_CONFIG"; then | |
23427 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23428 | set dummy pkg-config; ac_word=$2 | |
23429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23431 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23433 | else | |
23434 | case $PKG_CONFIG in | |
23435 | [\\/]* | ?:[\\/]*) | |
23436 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23437 | ;; | |
23438 | *) | |
23439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23440 | for as_dir in $PATH | |
23441 | do | |
23442 | IFS=$as_save_IFS | |
23443 | test -z "$as_dir" && as_dir=. | |
23444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23445 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23446 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23447 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23448 | break 2 | |
23449 | fi | |
23450 | done | |
23451 | done | |
23452 | ||
23453 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23454 | ;; | |
23455 | esac | |
23456 | fi | |
23457 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23458 | ||
23459 | if test -n "$PKG_CONFIG"; then | |
23460 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23461 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23462 | else | |
23463 | echo "$as_me:$LINENO: result: no" >&5 | |
23464 | echo "${ECHO_T}no" >&6 | |
23465 | fi | |
23466 | ||
23467 | fi | |
23468 | ||
23469 | if test "$PKG_CONFIG" = "no" ; then | |
23470 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23471 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23472 | echo "*** to the full path to pkg-config." | |
23473 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23474 | else | |
23475 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23476 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23477 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23478 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23479 | ||
23480 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23481 | echo "$as_me:$LINENO: result: yes" >&5 | |
23482 | echo "${ECHO_T}yes" >&6 | |
23483 | succeeded=yes | |
23484 | ||
23485 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23486 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23487 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23488 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23489 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23490 | ||
23491 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23492 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23493 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23494 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23495 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23496 | else | |
23497 | PANGOFT2_CFLAGS="" | |
23498 | PANGOFT2_LIBS="" | |
23499 | ## If we have a custom action on failure, don't print errors, but | |
23500 | ## do set a variable so people can do so. | |
23501 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23502 | ||
23503 | fi | |
23504 | ||
23505 | ||
23506 | ||
23507 | else | |
23508 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23509 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23510 | fi | |
23511 | fi | |
23512 | ||
23513 | if test $succeeded = yes; then | |
23514 | ||
23515 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
ceec2216 RL |
23516 | # FIXME: GTK_LIBS already has a lot of what this is |
23517 | # about to add, but we go ahead and just add | |
23518 | # it all again anyway. | |
23519 | # This is not a good way to manage things. And simply | |
23520 | # uniq'ing the list later is hardly better. | |
a848cd7e SC |
23521 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
23522 | ||
23523 | else | |
23524 | ||
23525 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23526 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23527 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23528 | ||
23529 | ||
23530 | fi | |
23531 | ||
23532 | fi | |
304205f1 VS |
23533 | |
23534 | save_CFLAGS="$CFLAGS" | |
23535 | save_LIBS="$LIBS" | |
23536 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23537 | LIBS="$LIBS $GTK_LIBS" | |
23538 | ||
23539 | for ac_func in pango_font_family_is_monospace | |
23540 | do | |
23541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23544 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23546 | else | |
23547 | cat >conftest.$ac_ext <<_ACEOF | |
23548 | /* confdefs.h. */ | |
23549 | _ACEOF | |
23550 | cat confdefs.h >>conftest.$ac_ext | |
23551 | cat >>conftest.$ac_ext <<_ACEOF | |
23552 | /* end confdefs.h. */ | |
23553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23555 | #define $ac_func innocuous_$ac_func | |
23556 | ||
23557 | /* System header to define __stub macros and hopefully few prototypes, | |
23558 | which can conflict with char $ac_func (); below. | |
23559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23560 | <limits.h> exists even on freestanding compilers. */ | |
23561 | ||
23562 | #ifdef __STDC__ | |
23563 | # include <limits.h> | |
23564 | #else | |
23565 | # include <assert.h> | |
23566 | #endif | |
23567 | ||
23568 | #undef $ac_func | |
23569 | ||
23570 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23571 | #ifdef __cplusplus | |
23572 | extern "C" | |
23573 | { | |
23574 | #endif | |
23575 | /* We use char because int might match the return type of a gcc2 | |
23576 | builtin and then its argument prototype would still apply. */ | |
23577 | char $ac_func (); | |
23578 | /* The GNU C library defines this for functions which it implements | |
23579 | to always fail with ENOSYS. Some functions are actually named | |
23580 | something starting with __ and the normal name is an alias. */ | |
23581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23582 | choke me | |
23583 | #else | |
23584 | char (*f) () = $ac_func; | |
23585 | #endif | |
23586 | #ifdef __cplusplus | |
23587 | } | |
23588 | #endif | |
23589 | ||
23590 | int | |
23591 | main () | |
23592 | { | |
23593 | return f != $ac_func; | |
23594 | ; | |
23595 | return 0; | |
23596 | } | |
23597 | _ACEOF | |
23598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23600 | (eval $ac_link) 2>conftest.er1 | |
23601 | ac_status=$? | |
23602 | grep -v '^ *+' conftest.er1 >conftest.err | |
23603 | rm -f conftest.er1 | |
23604 | cat conftest.err >&5 | |
23605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23606 | (exit $ac_status); } && | |
7714864e | 23607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23609 | (eval $ac_try) 2>&5 | |
23610 | ac_status=$? | |
23611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23612 | (exit $ac_status); }; } && | |
23613 | { ac_try='test -s conftest$ac_exeext' | |
23614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23615 | (eval $ac_try) 2>&5 | |
23616 | ac_status=$? | |
23617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23618 | (exit $ac_status); }; }; then | |
23619 | eval "$as_ac_var=yes" | |
23620 | else | |
23621 | echo "$as_me: failed program was:" >&5 | |
23622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23623 | ||
23624 | eval "$as_ac_var=no" | |
23625 | fi | |
23626 | rm -f conftest.err conftest.$ac_objext \ | |
23627 | conftest$ac_exeext conftest.$ac_ext | |
23628 | fi | |
23629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23630 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23631 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23632 | cat >>confdefs.h <<_ACEOF | |
23633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23634 | _ACEOF | |
23635 | ||
23636 | fi | |
23637 | done | |
23638 | ||
23639 | CFLAGS="$save_CFLAGS" | |
23640 | LIBS="$save_LIBS" | |
a848cd7e SC |
23641 | else |
23642 | if test "$wxUSE_UNICODE" = "yes"; then | |
23643 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23644 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23645 | wxUSE_UNICODE=no | |
23646 | fi | |
23647 | fi | |
23648 | ||
23649 | if test "$USE_DARWIN" != 1; then | |
23650 | ||
23651 | for ac_func in poll | |
23652 | do | |
23653 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23654 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23655 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23656 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23658 | else | |
23659 | cat >conftest.$ac_ext <<_ACEOF | |
23660 | /* confdefs.h. */ | |
23661 | _ACEOF | |
23662 | cat confdefs.h >>conftest.$ac_ext | |
23663 | cat >>conftest.$ac_ext <<_ACEOF | |
23664 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23665 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23666 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23667 | #define $ac_func innocuous_$ac_func | |
23668 | ||
a848cd7e SC |
23669 | /* System header to define __stub macros and hopefully few prototypes, |
23670 | which can conflict with char $ac_func (); below. | |
23671 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23672 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23673 | |
a848cd7e SC |
23674 | #ifdef __STDC__ |
23675 | # include <limits.h> | |
23676 | #else | |
23677 | # include <assert.h> | |
23678 | #endif | |
ac1cb8d3 VS |
23679 | |
23680 | #undef $ac_func | |
23681 | ||
a848cd7e SC |
23682 | /* Override any gcc2 internal prototype to avoid an error. */ |
23683 | #ifdef __cplusplus | |
23684 | extern "C" | |
23685 | { | |
23686 | #endif | |
23687 | /* We use char because int might match the return type of a gcc2 | |
23688 | builtin and then its argument prototype would still apply. */ | |
23689 | char $ac_func (); | |
23690 | /* The GNU C library defines this for functions which it implements | |
23691 | to always fail with ENOSYS. Some functions are actually named | |
23692 | something starting with __ and the normal name is an alias. */ | |
23693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23694 | choke me | |
23695 | #else | |
23696 | char (*f) () = $ac_func; | |
23697 | #endif | |
23698 | #ifdef __cplusplus | |
23699 | } | |
23700 | #endif | |
23701 | ||
23702 | int | |
23703 | main () | |
23704 | { | |
23705 | return f != $ac_func; | |
23706 | ; | |
23707 | return 0; | |
23708 | } | |
23709 | _ACEOF | |
23710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23712 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23713 | ac_status=$? |
ac1cb8d3 VS |
23714 | grep -v '^ *+' conftest.er1 >conftest.err |
23715 | rm -f conftest.er1 | |
23716 | cat conftest.err >&5 | |
a848cd7e SC |
23717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23718 | (exit $ac_status); } && | |
7714864e | 23719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 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); }; } && | |
23725 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23727 | (eval $ac_try) 2>&5 | |
23728 | ac_status=$? | |
23729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23730 | (exit $ac_status); }; }; then | |
23731 | eval "$as_ac_var=yes" | |
23732 | else | |
23733 | echo "$as_me: failed program was:" >&5 | |
23734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23735 | ||
23736 | eval "$as_ac_var=no" | |
23737 | fi | |
ac1cb8d3 VS |
23738 | rm -f conftest.err conftest.$ac_objext \ |
23739 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23740 | fi |
23741 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23742 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23743 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23744 | cat >>confdefs.h <<_ACEOF | |
23745 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23746 | _ACEOF | |
23747 | ||
23748 | fi | |
23749 | done | |
23750 | ||
23751 | fi | |
23752 | ||
23753 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23754 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23755 | ||
23756 | AFMINSTALL=afminstall | |
23757 | TOOLKIT=GTK | |
23758 | GUIDIST=GTK_DIST | |
23759 | ||
23760 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23761 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23762 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23764 | else | |
23765 | ac_check_lib_save_LIBS=$LIBS | |
23766 | LIBS="-lgdk $LIBS" | |
23767 | cat >conftest.$ac_ext <<_ACEOF | |
23768 | /* confdefs.h. */ | |
23769 | _ACEOF | |
23770 | cat confdefs.h >>conftest.$ac_ext | |
23771 | cat >>conftest.$ac_ext <<_ACEOF | |
23772 | /* end confdefs.h. */ | |
23773 | ||
23774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23775 | #ifdef __cplusplus | |
23776 | extern "C" | |
23777 | #endif | |
23778 | /* We use char because int might match the return type of a gcc2 | |
23779 | builtin and then its argument prototype would still apply. */ | |
23780 | char gdk_im_open (); | |
23781 | int | |
23782 | main () | |
23783 | { | |
23784 | gdk_im_open (); | |
23785 | ; | |
23786 | return 0; | |
23787 | } | |
23788 | _ACEOF | |
23789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23792 | ac_status=$? |
ac1cb8d3 VS |
23793 | grep -v '^ *+' conftest.er1 >conftest.err |
23794 | rm -f conftest.er1 | |
23795 | cat conftest.err >&5 | |
a848cd7e SC |
23796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23797 | (exit $ac_status); } && | |
7714864e | 23798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23800 | (eval $ac_try) 2>&5 | |
23801 | ac_status=$? | |
23802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23803 | (exit $ac_status); }; } && | |
23804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23806 | (eval $ac_try) 2>&5 | |
23807 | ac_status=$? | |
23808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23809 | (exit $ac_status); }; }; then | |
23810 | ac_cv_lib_gdk_gdk_im_open=yes | |
23811 | else | |
23812 | echo "$as_me: failed program was:" >&5 | |
23813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23814 | ||
23815 | ac_cv_lib_gdk_gdk_im_open=no | |
23816 | fi | |
ac1cb8d3 VS |
23817 | rm -f conftest.err conftest.$ac_objext \ |
23818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23819 | LIBS=$ac_check_lib_save_LIBS |
23820 | fi | |
23821 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23822 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23823 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23824 | cat >>confdefs.h <<\_ACEOF | |
23825 | #define HAVE_XIM 1 | |
23826 | _ACEOF | |
23827 | ||
23828 | fi | |
23829 | ||
23830 | ||
23831 | ||
23832 | if test "$wxUSE_GPE" = "yes"; then | |
23833 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23834 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23835 | ||
23836 | ac_find_libraries= | |
23837 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23838 | do | |
23839 | for ac_extension in a so sl dylib; do | |
23840 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23841 | ac_find_libraries=$ac_dir | |
23842 | break 2 | |
23843 | fi | |
23844 | done | |
23845 | done | |
23846 | ||
23847 | if test "$ac_find_libraries" != "" ; then | |
23848 | ||
23849 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23850 | result=$? | |
23851 | if test $result = 0; then | |
23852 | ac_path_to_link="" | |
23853 | else | |
23854 | ac_path_to_link=" -L$ac_find_libraries" | |
23855 | fi | |
23856 | ||
23857 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23858 | WXGPE=1 | |
23859 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23860 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23861 | else | |
23862 | echo "$as_me:$LINENO: result: not found" >&5 | |
23863 | echo "${ECHO_T}not found" >&6 | |
23864 | fi | |
23865 | ||
23866 | fi | |
23867 | fi | |
23868 | ||
23869 | if test "$wxUSE_MGL" = 1; then | |
23870 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23871 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23872 | if test "x$MGL_ROOT" = x ; then | |
23873 | echo "$as_me:$LINENO: result: not found" >&5 | |
23874 | echo "${ECHO_T}not found" >&6 | |
23875 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23876 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23877 | { (exit 1); exit 1; }; } | |
23878 | else | |
23879 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23880 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23881 | fi | |
23882 | ||
23883 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23884 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23885 | case "${host}" in | |
23886 | *-*-linux* ) | |
23887 | if test "x$wxUSE_SHARED" = xyes ; then | |
23888 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23889 | else | |
23890 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23891 | fi | |
23892 | ;; | |
23893 | *-pc-msdosdjgpp ) | |
23894 | mgl_os_candidates="dos32/dj2" | |
23895 | ;; | |
23896 | *) | |
23897 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23898 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23899 | { (exit 1); exit 1; }; } | |
23900 | esac | |
23901 | ||
23902 | mgl_lib_type="" | |
23903 | mgl_os="" | |
23904 | ||
23905 | for mgl_os_i in $mgl_os_candidates ; do | |
23906 | if test "x$mgl_os" = x ; then | |
23907 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23908 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23909 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23910 | mgl_lib_type=debug | |
23911 | mgl_os=$mgl_os_i | |
23912 | fi | |
23913 | fi | |
23914 | if test "x$mgl_lib_type" = x ; then | |
23915 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23916 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23917 | mgl_lib_type=release | |
23918 | mgl_os=$mgl_os_i | |
23919 | fi | |
23920 | fi | |
23921 | fi | |
23922 | done | |
23923 | ||
23924 | if test "x$mgl_os" = x ; then | |
23925 | echo "$as_me:$LINENO: result: not found" >&5 | |
23926 | echo "${ECHO_T}not found" >&6 | |
23927 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23928 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23929 | { (exit 1); exit 1; }; } | |
23930 | fi | |
23931 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23932 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23933 | ||
23934 | wxUSE_UNIVERSAL="yes" | |
23935 | ||
23936 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23937 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23938 | ||
23939 | AFMINSTALL=afminstall | |
23940 | TOOLKIT=MGL | |
23941 | GUIDIST=MGL_DIST | |
23942 | fi | |
23943 | ||
23944 | if test "$wxUSE_MICROWIN" = 1; then | |
23945 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23946 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23947 | if test "x$MICROWINDOWS" = x ; then | |
23948 | echo "$as_me:$LINENO: result: not found" >&5 | |
23949 | echo "${ECHO_T}not found" >&6 | |
23950 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23951 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23952 | { (exit 1); exit 1; }; } | |
23953 | else | |
23954 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23955 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23956 | fi | |
23957 | ||
23958 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23959 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23960 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23961 | else | |
23962 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23963 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23964 | { (exit 1); exit 1; }; } | |
23965 | fi | |
23966 | ||
23967 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23968 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23969 | ||
23970 | wxUSE_UNIVERSAL="yes" | |
23971 | ||
23972 | AFMINSTALL=afminstall | |
23973 | TOOLKIT=MICROWIN | |
23974 | GUIDIST=MICROWIN_DIST | |
23975 | ||
23976 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23977 | fi | |
23978 | ||
74b84332 | 23979 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
7714864e RL |
23980 | |
23981 | if test "x$ac_path_x_has_been_run" != xyes; then | |
23982 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
23983 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23984 | ||
7714864e | 23985 | ac_path_x_has_been_run=yes |
a848cd7e SC |
23986 | |
23987 | # Check whether --with-x or --without-x was given. | |
23988 | if test "${with_x+set}" = set; then | |
23989 | withval="$with_x" | |
23990 | ||
23991 | fi; | |
23992 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23993 | if test "x$with_x" = xno; then | |
23994 | # The user explicitly disabled X. | |
23995 | have_x=disabled | |
23996 | else | |
23997 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23998 | # Both variables are already set. | |
23999 | have_x=yes | |
24000 | else | |
24001 | if test "${ac_cv_have_x+set}" = set; then | |
24002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24003 | else | |
24004 | # One or both of the vars are not set, and there is no cached value. | |
24005 | ac_x_includes=no ac_x_libraries=no | |
24006 | rm -fr conftest.dir | |
24007 | if mkdir conftest.dir; then | |
24008 | cd conftest.dir | |
24009 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
24010 | cat >Imakefile <<'_ACEOF' | |
24011 | acfindx: | |
24012 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
24013 | _ACEOF | |
24014 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
24015 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
24016 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24017 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24018 | for ac_extension in a so sl; do | |
24019 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
24020 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24021 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
24022 | fi |
24023 | done | |
24024 | # Screen out bogus values from the imake configuration. They are | |
24025 | # bogus both because they are the default anyway, and because | |
24026 | # using them would break gcc on systems where it needs fixed includes. | |
24027 | case $ac_im_incroot in | |
24028 | /usr/include) ;; | |
24029 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24030 | esac | |
24031 | case $ac_im_usrlibdir in | |
24032 | /usr/lib | /lib) ;; | |
24033 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24034 | esac | |
24035 | fi | |
24036 | cd .. | |
24037 | rm -fr conftest.dir | |
24038 | fi | |
24039 | ||
24040 | # Standard set of common directories for X headers. | |
24041 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24042 | ac_x_header_dirs=' | |
24043 | /usr/X11/include | |
24044 | /usr/X11R6/include | |
24045 | /usr/X11R5/include | |
24046 | /usr/X11R4/include | |
24047 | ||
24048 | /usr/include/X11 | |
24049 | /usr/include/X11R6 | |
24050 | /usr/include/X11R5 | |
24051 | /usr/include/X11R4 | |
24052 | ||
24053 | /usr/local/X11/include | |
24054 | /usr/local/X11R6/include | |
24055 | /usr/local/X11R5/include | |
24056 | /usr/local/X11R4/include | |
24057 | ||
24058 | /usr/local/include/X11 | |
24059 | /usr/local/include/X11R6 | |
24060 | /usr/local/include/X11R5 | |
24061 | /usr/local/include/X11R4 | |
24062 | ||
24063 | /usr/X386/include | |
24064 | /usr/x386/include | |
24065 | /usr/XFree86/include/X11 | |
24066 | ||
24067 | /usr/include | |
24068 | /usr/local/include | |
24069 | /usr/unsupported/include | |
24070 | /usr/athena/include | |
24071 | /usr/local/x11r5/include | |
24072 | /usr/lpp/Xamples/include | |
24073 | ||
24074 | /usr/openwin/include | |
24075 | /usr/openwin/share/include' | |
24076 | ||
24077 | if test "$ac_x_includes" = no; then | |
7714864e | 24078 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
24079 | # First, try using that file with no special directory specified. |
24080 | cat >conftest.$ac_ext <<_ACEOF | |
24081 | /* confdefs.h. */ | |
24082 | _ACEOF | |
24083 | cat confdefs.h >>conftest.$ac_ext | |
24084 | cat >>conftest.$ac_ext <<_ACEOF | |
24085 | /* end confdefs.h. */ | |
24086 | #include <X11/Intrinsic.h> | |
24087 | _ACEOF | |
24088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24090 | ac_status=$? | |
24091 | grep -v '^ *+' conftest.er1 >conftest.err | |
24092 | rm -f conftest.er1 | |
24093 | cat conftest.err >&5 | |
24094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24095 | (exit $ac_status); } >/dev/null; then | |
24096 | if test -s conftest.err; then | |
24097 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24098 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24099 | else |
24100 | ac_cpp_err= | |
24101 | fi | |
24102 | else | |
24103 | ac_cpp_err=yes | |
24104 | fi | |
24105 | if test -z "$ac_cpp_err"; then | |
24106 | # We can compile using X headers with no special include directory. | |
24107 | ac_x_includes= | |
24108 | else | |
24109 | echo "$as_me: failed program was:" >&5 | |
24110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24111 | ||
24112 | for ac_dir in $ac_x_header_dirs; do | |
24113 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24114 | ac_x_includes=$ac_dir | |
24115 | break | |
24116 | fi | |
24117 | done | |
24118 | fi | |
24119 | rm -f conftest.err conftest.$ac_ext | |
24120 | fi # $ac_x_includes = no | |
24121 | ||
24122 | if test "$ac_x_libraries" = no; then | |
24123 | # Check for the libraries. | |
24124 | # See if we find them without any special options. | |
24125 | # Don't add to $LIBS permanently. | |
24126 | ac_save_LIBS=$LIBS | |
24127 | LIBS="-lXt $LIBS" | |
24128 | cat >conftest.$ac_ext <<_ACEOF | |
24129 | /* confdefs.h. */ | |
24130 | _ACEOF | |
24131 | cat confdefs.h >>conftest.$ac_ext | |
24132 | cat >>conftest.$ac_ext <<_ACEOF | |
24133 | /* end confdefs.h. */ | |
24134 | #include <X11/Intrinsic.h> | |
24135 | int | |
24136 | main () | |
24137 | { | |
24138 | XtMalloc (0) | |
24139 | ; | |
24140 | return 0; | |
24141 | } | |
24142 | _ACEOF | |
24143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24145 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24146 | ac_status=$? |
ac1cb8d3 VS |
24147 | grep -v '^ *+' conftest.er1 >conftest.err |
24148 | rm -f conftest.er1 | |
24149 | cat conftest.err >&5 | |
a848cd7e SC |
24150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24151 | (exit $ac_status); } && | |
7714864e | 24152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24154 | (eval $ac_try) 2>&5 | |
24155 | ac_status=$? | |
24156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24157 | (exit $ac_status); }; } && | |
24158 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24160 | (eval $ac_try) 2>&5 | |
24161 | ac_status=$? | |
24162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24163 | (exit $ac_status); }; }; then | |
24164 | LIBS=$ac_save_LIBS | |
24165 | # We can link X programs with no special library path. | |
24166 | ac_x_libraries= | |
24167 | else | |
24168 | echo "$as_me: failed program was:" >&5 | |
24169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24170 | ||
24171 | LIBS=$ac_save_LIBS | |
24172 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24173 | do | |
24174 | # Don't even attempt the hair of trying to link an X program! | |
24175 | for ac_extension in a so sl; do | |
24176 | if test -r $ac_dir/libXt.$ac_extension; then | |
24177 | ac_x_libraries=$ac_dir | |
24178 | break 2 | |
24179 | fi | |
24180 | done | |
24181 | done | |
24182 | fi | |
ac1cb8d3 VS |
24183 | rm -f conftest.err conftest.$ac_objext \ |
24184 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24185 | fi # $ac_x_libraries = no |
24186 | ||
24187 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24188 | # Didn't find X anywhere. Cache the known absence of X. | |
24189 | ac_cv_have_x="have_x=no" | |
24190 | else | |
24191 | # Record where we found X for the cache. | |
24192 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24193 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24194 | fi |
24195 | fi | |
24196 | ||
24197 | fi | |
24198 | eval "$ac_cv_have_x" | |
24199 | fi # $with_x != no | |
24200 | ||
24201 | if test "$have_x" != yes; then | |
24202 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24203 | echo "${ECHO_T}$have_x" >&6 | |
24204 | no_x=yes | |
24205 | else | |
24206 | # If each of the values was on the command line, it overrides each guess. | |
24207 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24208 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24209 | # Update the cache value to reflect the command line values. | |
24210 | ac_cv_have_x="have_x=yes \ | |
24211 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7714864e RL |
24212 | # It might be that x_includes is empty (headers are found in the |
24213 | # standard search path. Then output the corresponding message | |
24214 | ac_out_x_includes=$x_includes | |
24215 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
24216 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
24217 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
24218 | fi |
24219 | ||
7714864e | 24220 | fi |
a848cd7e SC |
24221 | if test "$no_x" = yes; then |
24222 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24223 | ||
24224 | cat >>confdefs.h <<\_ACEOF | |
24225 | #define X_DISPLAY_MISSING 1 | |
24226 | _ACEOF | |
24227 | ||
24228 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24229 | else | |
24230 | if test -n "$x_includes"; then | |
24231 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24232 | fi | |
24233 | ||
24234 | # It would also be nice to do this for all -L options, not just this one. | |
24235 | if test -n "$x_libraries"; then | |
24236 | X_LIBS="$X_LIBS -L$x_libraries" | |
24237 | # For Solaris; some versions of Sun CC require a space after -R and | |
24238 | # others require no space. Words are not sufficient . . . . | |
24239 | case `(uname -sr) 2>/dev/null` in | |
24240 | "SunOS 5"*) | |
24241 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24242 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24243 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24244 | cat >conftest.$ac_ext <<_ACEOF | |
24245 | /* confdefs.h. */ | |
24246 | _ACEOF | |
24247 | cat confdefs.h >>conftest.$ac_ext | |
24248 | cat >>conftest.$ac_ext <<_ACEOF | |
24249 | /* end confdefs.h. */ | |
24250 | ||
24251 | int | |
24252 | main () | |
24253 | { | |
24254 | ||
24255 | ; | |
24256 | return 0; | |
24257 | } | |
24258 | _ACEOF | |
24259 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24261 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24262 | ac_status=$? |
ac1cb8d3 VS |
24263 | grep -v '^ *+' conftest.er1 >conftest.err |
24264 | rm -f conftest.er1 | |
24265 | cat conftest.err >&5 | |
a848cd7e SC |
24266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24267 | (exit $ac_status); } && | |
7714864e | 24268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24270 | (eval $ac_try) 2>&5 | |
24271 | ac_status=$? | |
24272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24273 | (exit $ac_status); }; } && | |
24274 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24276 | (eval $ac_try) 2>&5 | |
24277 | ac_status=$? | |
24278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24279 | (exit $ac_status); }; }; then | |
24280 | ac_R_nospace=yes | |
24281 | else | |
24282 | echo "$as_me: failed program was:" >&5 | |
24283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24284 | ||
24285 | ac_R_nospace=no | |
24286 | fi | |
ac1cb8d3 VS |
24287 | rm -f conftest.err conftest.$ac_objext \ |
24288 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24289 | if test $ac_R_nospace = yes; then |
24290 | echo "$as_me:$LINENO: result: no" >&5 | |
24291 | echo "${ECHO_T}no" >&6 | |
24292 | X_LIBS="$X_LIBS -R$x_libraries" | |
24293 | else | |
24294 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24295 | cat >conftest.$ac_ext <<_ACEOF | |
24296 | /* confdefs.h. */ | |
24297 | _ACEOF | |
24298 | cat confdefs.h >>conftest.$ac_ext | |
24299 | cat >>conftest.$ac_ext <<_ACEOF | |
24300 | /* end confdefs.h. */ | |
24301 | ||
24302 | int | |
24303 | main () | |
24304 | { | |
24305 | ||
24306 | ; | |
24307 | return 0; | |
24308 | } | |
24309 | _ACEOF | |
24310 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24312 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24313 | ac_status=$? |
ac1cb8d3 VS |
24314 | grep -v '^ *+' conftest.er1 >conftest.err |
24315 | rm -f conftest.er1 | |
24316 | cat conftest.err >&5 | |
a848cd7e SC |
24317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24318 | (exit $ac_status); } && | |
7714864e | 24319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24321 | (eval $ac_try) 2>&5 | |
24322 | ac_status=$? | |
24323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24324 | (exit $ac_status); }; } && | |
24325 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24327 | (eval $ac_try) 2>&5 | |
24328 | ac_status=$? | |
24329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24330 | (exit $ac_status); }; }; then | |
24331 | ac_R_space=yes | |
24332 | else | |
24333 | echo "$as_me: failed program was:" >&5 | |
24334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24335 | ||
24336 | ac_R_space=no | |
24337 | fi | |
ac1cb8d3 VS |
24338 | rm -f conftest.err conftest.$ac_objext \ |
24339 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24340 | if test $ac_R_space = yes; then |
24341 | echo "$as_me:$LINENO: result: yes" >&5 | |
24342 | echo "${ECHO_T}yes" >&6 | |
24343 | X_LIBS="$X_LIBS -R $x_libraries" | |
24344 | else | |
24345 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24346 | echo "${ECHO_T}neither works" >&6 | |
24347 | fi | |
24348 | fi | |
24349 | LIBS=$ac_xsave_LIBS | |
24350 | esac | |
24351 | fi | |
24352 | ||
24353 | # Check for system-dependent libraries X programs must link with. | |
24354 | # Do this before checking for the system-independent R6 libraries | |
24355 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24356 | ||
24357 | if test "$ISC" = yes; then | |
24358 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24359 | else | |
24360 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24361 | # libraries were built with DECnet support. And Karl Berry says | |
24362 | # the Alpha needs dnet_stub (dnet does not exist). | |
24363 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24364 | cat >conftest.$ac_ext <<_ACEOF | |
24365 | /* confdefs.h. */ | |
24366 | _ACEOF | |
24367 | cat confdefs.h >>conftest.$ac_ext | |
24368 | cat >>conftest.$ac_ext <<_ACEOF | |
24369 | /* end confdefs.h. */ | |
24370 | ||
24371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24372 | #ifdef __cplusplus | |
24373 | extern "C" | |
24374 | #endif | |
24375 | /* We use char because int might match the return type of a gcc2 | |
24376 | builtin and then its argument prototype would still apply. */ | |
24377 | char XOpenDisplay (); | |
24378 | int | |
24379 | main () | |
24380 | { | |
24381 | XOpenDisplay (); | |
24382 | ; | |
24383 | return 0; | |
24384 | } | |
24385 | _ACEOF | |
24386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24388 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24389 | ac_status=$? |
ac1cb8d3 VS |
24390 | grep -v '^ *+' conftest.er1 >conftest.err |
24391 | rm -f conftest.er1 | |
24392 | cat conftest.err >&5 | |
a848cd7e SC |
24393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24394 | (exit $ac_status); } && | |
7714864e | 24395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24397 | (eval $ac_try) 2>&5 | |
24398 | ac_status=$? | |
24399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24400 | (exit $ac_status); }; } && | |
24401 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24403 | (eval $ac_try) 2>&5 | |
24404 | ac_status=$? | |
24405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24406 | (exit $ac_status); }; }; then | |
24407 | : | |
24408 | else | |
24409 | echo "$as_me: failed program was:" >&5 | |
24410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24411 | ||
24412 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24413 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24414 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24416 | else | |
24417 | ac_check_lib_save_LIBS=$LIBS | |
24418 | LIBS="-ldnet $LIBS" | |
24419 | cat >conftest.$ac_ext <<_ACEOF | |
24420 | /* confdefs.h. */ | |
24421 | _ACEOF | |
24422 | cat confdefs.h >>conftest.$ac_ext | |
24423 | cat >>conftest.$ac_ext <<_ACEOF | |
24424 | /* end confdefs.h. */ | |
24425 | ||
24426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24427 | #ifdef __cplusplus | |
24428 | extern "C" | |
24429 | #endif | |
24430 | /* We use char because int might match the return type of a gcc2 | |
24431 | builtin and then its argument prototype would still apply. */ | |
24432 | char dnet_ntoa (); | |
24433 | int | |
24434 | main () | |
24435 | { | |
24436 | dnet_ntoa (); | |
24437 | ; | |
24438 | return 0; | |
24439 | } | |
24440 | _ACEOF | |
24441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24443 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24444 | ac_status=$? |
ac1cb8d3 VS |
24445 | grep -v '^ *+' conftest.er1 >conftest.err |
24446 | rm -f conftest.er1 | |
24447 | cat conftest.err >&5 | |
a848cd7e SC |
24448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24449 | (exit $ac_status); } && | |
7714864e | 24450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24452 | (eval $ac_try) 2>&5 | |
24453 | ac_status=$? | |
24454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24455 | (exit $ac_status); }; } && | |
24456 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
24462 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24463 | else | |
24464 | echo "$as_me: failed program was:" >&5 | |
24465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24466 | ||
24467 | ac_cv_lib_dnet_dnet_ntoa=no | |
24468 | fi | |
ac1cb8d3 VS |
24469 | rm -f conftest.err conftest.$ac_objext \ |
24470 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24471 | LIBS=$ac_check_lib_save_LIBS |
24472 | fi | |
24473 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24474 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24475 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24476 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24477 | fi | |
24478 | ||
24479 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24480 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24481 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24482 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24484 | else | |
24485 | ac_check_lib_save_LIBS=$LIBS | |
24486 | LIBS="-ldnet_stub $LIBS" | |
24487 | cat >conftest.$ac_ext <<_ACEOF | |
24488 | /* confdefs.h. */ | |
24489 | _ACEOF | |
24490 | cat confdefs.h >>conftest.$ac_ext | |
24491 | cat >>conftest.$ac_ext <<_ACEOF | |
24492 | /* end confdefs.h. */ | |
24493 | ||
24494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24495 | #ifdef __cplusplus | |
24496 | extern "C" | |
24497 | #endif | |
24498 | /* We use char because int might match the return type of a gcc2 | |
24499 | builtin and then its argument prototype would still apply. */ | |
24500 | char dnet_ntoa (); | |
24501 | int | |
24502 | main () | |
24503 | { | |
24504 | dnet_ntoa (); | |
24505 | ; | |
24506 | return 0; | |
24507 | } | |
24508 | _ACEOF | |
24509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24511 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24512 | ac_status=$? |
ac1cb8d3 VS |
24513 | grep -v '^ *+' conftest.er1 >conftest.err |
24514 | rm -f conftest.er1 | |
24515 | cat conftest.err >&5 | |
a848cd7e SC |
24516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24517 | (exit $ac_status); } && | |
7714864e | 24518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24520 | (eval $ac_try) 2>&5 | |
24521 | ac_status=$? | |
24522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24523 | (exit $ac_status); }; } && | |
24524 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24526 | (eval $ac_try) 2>&5 | |
24527 | ac_status=$? | |
24528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24529 | (exit $ac_status); }; }; then | |
24530 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24531 | else | |
24532 | echo "$as_me: failed program was:" >&5 | |
24533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24534 | ||
24535 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24536 | fi | |
ac1cb8d3 VS |
24537 | rm -f conftest.err conftest.$ac_objext \ |
24538 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24539 | LIBS=$ac_check_lib_save_LIBS |
24540 | fi | |
24541 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24542 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24543 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24544 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24545 | fi | |
24546 | ||
24547 | fi | |
24548 | fi | |
ac1cb8d3 VS |
24549 | rm -f conftest.err conftest.$ac_objext \ |
24550 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24551 | LIBS="$ac_xsave_LIBS" |
24552 | ||
24553 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24554 | # to get the SysV transport functions. | |
24555 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24556 | # needs -lnsl. | |
24557 | # The nsl library prevents programs from opening the X display | |
24558 | # on Irix 5.2, according to T.E. Dickey. | |
24559 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24560 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24561 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24562 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24563 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24565 | else | |
24566 | cat >conftest.$ac_ext <<_ACEOF | |
24567 | /* confdefs.h. */ | |
24568 | _ACEOF | |
24569 | cat confdefs.h >>conftest.$ac_ext | |
24570 | cat >>conftest.$ac_ext <<_ACEOF | |
24571 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24572 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24574 | #define gethostbyname innocuous_gethostbyname | |
24575 | ||
a848cd7e SC |
24576 | /* System header to define __stub macros and hopefully few prototypes, |
24577 | which can conflict with char gethostbyname (); below. | |
24578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24579 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24580 | |
a848cd7e SC |
24581 | #ifdef __STDC__ |
24582 | # include <limits.h> | |
24583 | #else | |
24584 | # include <assert.h> | |
24585 | #endif | |
ac1cb8d3 VS |
24586 | |
24587 | #undef gethostbyname | |
24588 | ||
a848cd7e SC |
24589 | /* Override any gcc2 internal prototype to avoid an error. */ |
24590 | #ifdef __cplusplus | |
24591 | extern "C" | |
24592 | { | |
24593 | #endif | |
24594 | /* We use char because int might match the return type of a gcc2 | |
24595 | builtin and then its argument prototype would still apply. */ | |
24596 | char gethostbyname (); | |
24597 | /* The GNU C library defines this for functions which it implements | |
24598 | to always fail with ENOSYS. Some functions are actually named | |
24599 | something starting with __ and the normal name is an alias. */ | |
24600 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24601 | choke me | |
24602 | #else | |
24603 | char (*f) () = gethostbyname; | |
24604 | #endif | |
24605 | #ifdef __cplusplus | |
24606 | } | |
24607 | #endif | |
24608 | ||
24609 | int | |
24610 | main () | |
24611 | { | |
24612 | return f != gethostbyname; | |
24613 | ; | |
24614 | return 0; | |
24615 | } | |
24616 | _ACEOF | |
24617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24619 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24620 | ac_status=$? |
ac1cb8d3 VS |
24621 | grep -v '^ *+' conftest.er1 >conftest.err |
24622 | rm -f conftest.er1 | |
24623 | cat conftest.err >&5 | |
a848cd7e SC |
24624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24625 | (exit $ac_status); } && | |
7714864e | 24626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24628 | (eval $ac_try) 2>&5 | |
24629 | ac_status=$? | |
24630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24631 | (exit $ac_status); }; } && | |
24632 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24634 | (eval $ac_try) 2>&5 | |
24635 | ac_status=$? | |
24636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24637 | (exit $ac_status); }; }; then | |
24638 | ac_cv_func_gethostbyname=yes | |
24639 | else | |
24640 | echo "$as_me: failed program was:" >&5 | |
24641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24642 | ||
24643 | ac_cv_func_gethostbyname=no | |
24644 | fi | |
ac1cb8d3 VS |
24645 | rm -f conftest.err conftest.$ac_objext \ |
24646 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24647 | fi |
24648 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24649 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24650 | ||
24651 | if test $ac_cv_func_gethostbyname = no; then | |
24652 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24653 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24654 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24656 | else | |
24657 | ac_check_lib_save_LIBS=$LIBS | |
24658 | LIBS="-lnsl $LIBS" | |
24659 | cat >conftest.$ac_ext <<_ACEOF | |
24660 | /* confdefs.h. */ | |
24661 | _ACEOF | |
24662 | cat confdefs.h >>conftest.$ac_ext | |
24663 | cat >>conftest.$ac_ext <<_ACEOF | |
24664 | /* end confdefs.h. */ | |
24665 | ||
24666 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24667 | #ifdef __cplusplus | |
24668 | extern "C" | |
24669 | #endif | |
24670 | /* We use char because int might match the return type of a gcc2 | |
24671 | builtin and then its argument prototype would still apply. */ | |
24672 | char gethostbyname (); | |
24673 | int | |
24674 | main () | |
24675 | { | |
24676 | gethostbyname (); | |
24677 | ; | |
24678 | return 0; | |
24679 | } | |
24680 | _ACEOF | |
24681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24683 | (eval $ac_link) 2>conftest.er1 |
24684 | ac_status=$? | |
24685 | grep -v '^ *+' conftest.er1 >conftest.err | |
24686 | rm -f conftest.er1 | |
24687 | cat conftest.err >&5 | |
24688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24689 | (exit $ac_status); } && | |
7714864e | 24690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24692 | (eval $ac_try) 2>&5 | |
24693 | ac_status=$? | |
24694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24695 | (exit $ac_status); }; } && | |
24696 | { ac_try='test -s conftest$ac_exeext' | |
24697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24698 | (eval $ac_try) 2>&5 | |
24699 | ac_status=$? | |
24700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24701 | (exit $ac_status); }; }; then | |
24702 | ac_cv_lib_nsl_gethostbyname=yes | |
24703 | else | |
24704 | echo "$as_me: failed program was:" >&5 | |
24705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24706 | ||
24707 | ac_cv_lib_nsl_gethostbyname=no | |
24708 | fi | |
24709 | rm -f conftest.err conftest.$ac_objext \ | |
24710 | conftest$ac_exeext conftest.$ac_ext | |
24711 | LIBS=$ac_check_lib_save_LIBS | |
24712 | fi | |
24713 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24714 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24715 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24716 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24717 | fi | |
24718 | ||
24719 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24720 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24721 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24722 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24724 | else | |
24725 | ac_check_lib_save_LIBS=$LIBS | |
24726 | LIBS="-lbsd $LIBS" | |
24727 | cat >conftest.$ac_ext <<_ACEOF | |
24728 | /* confdefs.h. */ | |
24729 | _ACEOF | |
24730 | cat confdefs.h >>conftest.$ac_ext | |
24731 | cat >>conftest.$ac_ext <<_ACEOF | |
24732 | /* end confdefs.h. */ | |
24733 | ||
24734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24735 | #ifdef __cplusplus | |
24736 | extern "C" | |
24737 | #endif | |
24738 | /* We use char because int might match the return type of a gcc2 | |
24739 | builtin and then its argument prototype would still apply. */ | |
24740 | char gethostbyname (); | |
24741 | int | |
24742 | main () | |
24743 | { | |
24744 | gethostbyname (); | |
24745 | ; | |
24746 | return 0; | |
24747 | } | |
24748 | _ACEOF | |
24749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24751 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24752 | ac_status=$? |
ac1cb8d3 VS |
24753 | grep -v '^ *+' conftest.er1 >conftest.err |
24754 | rm -f conftest.er1 | |
24755 | cat conftest.err >&5 | |
a848cd7e SC |
24756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24757 | (exit $ac_status); } && | |
7714864e | 24758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
24759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24760 | (eval $ac_try) 2>&5 | |
24761 | ac_status=$? | |
24762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24763 | (exit $ac_status); }; } && |
24764 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24766 | (eval $ac_try) 2>&5 | |
24767 | ac_status=$? | |
24768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24769 | (exit $ac_status); }; }; then | |
24770 | ac_cv_lib_bsd_gethostbyname=yes | |
24771 | else | |
24772 | echo "$as_me: failed program was:" >&5 | |
24773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24774 | ||
24775 | ac_cv_lib_bsd_gethostbyname=no | |
24776 | fi | |
ac1cb8d3 VS |
24777 | rm -f conftest.err conftest.$ac_objext \ |
24778 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24779 | LIBS=$ac_check_lib_save_LIBS |
24780 | fi | |
24781 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24782 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24783 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24784 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24785 | fi | |
24786 | ||
24787 | fi | |
24788 | fi | |
24789 | ||
24790 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24791 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24792 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24793 | # on later versions), says Simon Leinen: it contains gethostby* | |
24794 | # variants that don't use the name server (or something). -lsocket | |
24795 | # must be given before -lnsl if both are needed. We assume that | |
24796 | # if connect needs -lnsl, so does gethostbyname. | |
24797 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24798 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24799 | if test "${ac_cv_func_connect+set}" = set; then | |
24800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24801 | else | |
24802 | cat >conftest.$ac_ext <<_ACEOF | |
24803 | /* confdefs.h. */ | |
24804 | _ACEOF | |
24805 | cat confdefs.h >>conftest.$ac_ext | |
24806 | cat >>conftest.$ac_ext <<_ACEOF | |
24807 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24808 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24810 | #define connect innocuous_connect | |
24811 | ||
a848cd7e SC |
24812 | /* System header to define __stub macros and hopefully few prototypes, |
24813 | which can conflict with char connect (); below. | |
24814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24815 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24816 | |
a848cd7e SC |
24817 | #ifdef __STDC__ |
24818 | # include <limits.h> | |
24819 | #else | |
24820 | # include <assert.h> | |
24821 | #endif | |
ac1cb8d3 VS |
24822 | |
24823 | #undef connect | |
24824 | ||
a848cd7e SC |
24825 | /* Override any gcc2 internal prototype to avoid an error. */ |
24826 | #ifdef __cplusplus | |
24827 | extern "C" | |
24828 | { | |
24829 | #endif | |
24830 | /* We use char because int might match the return type of a gcc2 | |
24831 | builtin and then its argument prototype would still apply. */ | |
24832 | char connect (); | |
24833 | /* The GNU C library defines this for functions which it implements | |
24834 | to always fail with ENOSYS. Some functions are actually named | |
24835 | something starting with __ and the normal name is an alias. */ | |
24836 | #if defined (__stub_connect) || defined (__stub___connect) | |
24837 | choke me | |
24838 | #else | |
24839 | char (*f) () = connect; | |
24840 | #endif | |
24841 | #ifdef __cplusplus | |
24842 | } | |
24843 | #endif | |
24844 | ||
24845 | int | |
24846 | main () | |
24847 | { | |
24848 | return f != connect; | |
24849 | ; | |
24850 | return 0; | |
24851 | } | |
24852 | _ACEOF | |
24853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24855 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24856 | ac_status=$? |
ac1cb8d3 VS |
24857 | grep -v '^ *+' conftest.er1 >conftest.err |
24858 | rm -f conftest.er1 | |
24859 | cat conftest.err >&5 | |
a848cd7e SC |
24860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24861 | (exit $ac_status); } && | |
7714864e | 24862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24864 | (eval $ac_try) 2>&5 | |
24865 | ac_status=$? | |
24866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24867 | (exit $ac_status); }; } && | |
24868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24870 | (eval $ac_try) 2>&5 | |
24871 | ac_status=$? | |
24872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24873 | (exit $ac_status); }; }; then | |
24874 | ac_cv_func_connect=yes | |
24875 | else | |
24876 | echo "$as_me: failed program was:" >&5 | |
24877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24878 | ||
24879 | ac_cv_func_connect=no | |
24880 | fi | |
ac1cb8d3 VS |
24881 | rm -f conftest.err conftest.$ac_objext \ |
24882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24883 | fi |
24884 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24885 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24886 | ||
24887 | if test $ac_cv_func_connect = no; then | |
24888 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24889 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24890 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24892 | else | |
24893 | ac_check_lib_save_LIBS=$LIBS | |
24894 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24895 | cat >conftest.$ac_ext <<_ACEOF | |
24896 | /* confdefs.h. */ | |
24897 | _ACEOF | |
24898 | cat confdefs.h >>conftest.$ac_ext | |
24899 | cat >>conftest.$ac_ext <<_ACEOF | |
24900 | /* end confdefs.h. */ | |
24901 | ||
24902 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24903 | #ifdef __cplusplus | |
24904 | extern "C" | |
24905 | #endif | |
24906 | /* We use char because int might match the return type of a gcc2 | |
24907 | builtin and then its argument prototype would still apply. */ | |
24908 | char connect (); | |
24909 | int | |
24910 | main () | |
24911 | { | |
24912 | connect (); | |
24913 | ; | |
24914 | return 0; | |
24915 | } | |
24916 | _ACEOF | |
24917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24919 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24920 | ac_status=$? |
ac1cb8d3 VS |
24921 | grep -v '^ *+' conftest.er1 >conftest.err |
24922 | rm -f conftest.er1 | |
24923 | cat conftest.err >&5 | |
a848cd7e SC |
24924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24925 | (exit $ac_status); } && | |
7714864e | 24926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24928 | (eval $ac_try) 2>&5 | |
24929 | ac_status=$? | |
24930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24931 | (exit $ac_status); }; } && | |
24932 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24934 | (eval $ac_try) 2>&5 | |
24935 | ac_status=$? | |
24936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24937 | (exit $ac_status); }; }; then | |
24938 | ac_cv_lib_socket_connect=yes | |
24939 | else | |
24940 | echo "$as_me: failed program was:" >&5 | |
24941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24942 | ||
24943 | ac_cv_lib_socket_connect=no | |
24944 | fi | |
ac1cb8d3 VS |
24945 | rm -f conftest.err conftest.$ac_objext \ |
24946 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24947 | LIBS=$ac_check_lib_save_LIBS |
24948 | fi | |
24949 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24950 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24951 | if test $ac_cv_lib_socket_connect = yes; then | |
24952 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24953 | fi | |
24954 | ||
24955 | fi | |
24956 | ||
24957 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24958 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24959 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24960 | if test "${ac_cv_func_remove+set}" = set; then | |
24961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24962 | else | |
24963 | cat >conftest.$ac_ext <<_ACEOF | |
24964 | /* confdefs.h. */ | |
24965 | _ACEOF | |
24966 | cat confdefs.h >>conftest.$ac_ext | |
24967 | cat >>conftest.$ac_ext <<_ACEOF | |
24968 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24969 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24970 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24971 | #define remove innocuous_remove | |
24972 | ||
a848cd7e SC |
24973 | /* System header to define __stub macros and hopefully few prototypes, |
24974 | which can conflict with char remove (); below. | |
24975 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24976 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24977 | |
a848cd7e SC |
24978 | #ifdef __STDC__ |
24979 | # include <limits.h> | |
24980 | #else | |
24981 | # include <assert.h> | |
24982 | #endif | |
ac1cb8d3 VS |
24983 | |
24984 | #undef remove | |
24985 | ||
a848cd7e SC |
24986 | /* Override any gcc2 internal prototype to avoid an error. */ |
24987 | #ifdef __cplusplus | |
24988 | extern "C" | |
24989 | { | |
24990 | #endif | |
24991 | /* We use char because int might match the return type of a gcc2 | |
24992 | builtin and then its argument prototype would still apply. */ | |
24993 | char remove (); | |
24994 | /* The GNU C library defines this for functions which it implements | |
24995 | to always fail with ENOSYS. Some functions are actually named | |
24996 | something starting with __ and the normal name is an alias. */ | |
24997 | #if defined (__stub_remove) || defined (__stub___remove) | |
24998 | choke me | |
24999 | #else | |
25000 | char (*f) () = remove; | |
25001 | #endif | |
25002 | #ifdef __cplusplus | |
25003 | } | |
25004 | #endif | |
25005 | ||
25006 | int | |
25007 | main () | |
25008 | { | |
25009 | return f != remove; | |
25010 | ; | |
25011 | return 0; | |
25012 | } | |
25013 | _ACEOF | |
25014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25016 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25017 | ac_status=$? |
ac1cb8d3 VS |
25018 | grep -v '^ *+' conftest.er1 >conftest.err |
25019 | rm -f conftest.er1 | |
25020 | cat conftest.err >&5 | |
a848cd7e SC |
25021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25022 | (exit $ac_status); } && | |
7714864e | 25023 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25025 | (eval $ac_try) 2>&5 | |
25026 | ac_status=$? | |
25027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25028 | (exit $ac_status); }; } && | |
25029 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25031 | (eval $ac_try) 2>&5 | |
25032 | ac_status=$? | |
25033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25034 | (exit $ac_status); }; }; then | |
25035 | ac_cv_func_remove=yes | |
25036 | else | |
25037 | echo "$as_me: failed program was:" >&5 | |
25038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25039 | ||
25040 | ac_cv_func_remove=no | |
25041 | fi | |
ac1cb8d3 VS |
25042 | rm -f conftest.err conftest.$ac_objext \ |
25043 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25044 | fi |
25045 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25046 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25047 | ||
25048 | if test $ac_cv_func_remove = no; then | |
25049 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25050 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25051 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25053 | else | |
25054 | ac_check_lib_save_LIBS=$LIBS | |
25055 | LIBS="-lposix $LIBS" | |
25056 | cat >conftest.$ac_ext <<_ACEOF | |
25057 | /* confdefs.h. */ | |
25058 | _ACEOF | |
25059 | cat confdefs.h >>conftest.$ac_ext | |
25060 | cat >>conftest.$ac_ext <<_ACEOF | |
25061 | /* end confdefs.h. */ | |
25062 | ||
25063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25064 | #ifdef __cplusplus | |
25065 | extern "C" | |
25066 | #endif | |
25067 | /* We use char because int might match the return type of a gcc2 | |
25068 | builtin and then its argument prototype would still apply. */ | |
25069 | char remove (); | |
25070 | int | |
25071 | main () | |
25072 | { | |
25073 | remove (); | |
25074 | ; | |
25075 | return 0; | |
25076 | } | |
25077 | _ACEOF | |
25078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25081 | ac_status=$? |
ac1cb8d3 VS |
25082 | grep -v '^ *+' conftest.er1 >conftest.err |
25083 | rm -f conftest.er1 | |
25084 | cat conftest.err >&5 | |
a848cd7e SC |
25085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25086 | (exit $ac_status); } && | |
7714864e | 25087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25089 | (eval $ac_try) 2>&5 | |
25090 | ac_status=$? | |
25091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25092 | (exit $ac_status); }; } && | |
25093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25095 | (eval $ac_try) 2>&5 | |
25096 | ac_status=$? | |
25097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25098 | (exit $ac_status); }; }; then | |
25099 | ac_cv_lib_posix_remove=yes | |
25100 | else | |
25101 | echo "$as_me: failed program was:" >&5 | |
25102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25103 | ||
25104 | ac_cv_lib_posix_remove=no | |
25105 | fi | |
ac1cb8d3 VS |
25106 | rm -f conftest.err conftest.$ac_objext \ |
25107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25108 | LIBS=$ac_check_lib_save_LIBS |
25109 | fi | |
25110 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25111 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25112 | if test $ac_cv_lib_posix_remove = yes; then | |
25113 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25114 | fi | |
25115 | ||
25116 | fi | |
25117 | ||
25118 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25119 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25120 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25121 | if test "${ac_cv_func_shmat+set}" = set; then | |
25122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25123 | else | |
25124 | cat >conftest.$ac_ext <<_ACEOF | |
25125 | /* confdefs.h. */ | |
25126 | _ACEOF | |
25127 | cat confdefs.h >>conftest.$ac_ext | |
25128 | cat >>conftest.$ac_ext <<_ACEOF | |
25129 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25130 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25132 | #define shmat innocuous_shmat | |
25133 | ||
a848cd7e SC |
25134 | /* System header to define __stub macros and hopefully few prototypes, |
25135 | which can conflict with char shmat (); below. | |
25136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25137 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25138 | |
a848cd7e SC |
25139 | #ifdef __STDC__ |
25140 | # include <limits.h> | |
25141 | #else | |
25142 | # include <assert.h> | |
25143 | #endif | |
ac1cb8d3 VS |
25144 | |
25145 | #undef shmat | |
25146 | ||
a848cd7e SC |
25147 | /* Override any gcc2 internal prototype to avoid an error. */ |
25148 | #ifdef __cplusplus | |
25149 | extern "C" | |
25150 | { | |
25151 | #endif | |
25152 | /* We use char because int might match the return type of a gcc2 | |
25153 | builtin and then its argument prototype would still apply. */ | |
25154 | char shmat (); | |
25155 | /* The GNU C library defines this for functions which it implements | |
25156 | to always fail with ENOSYS. Some functions are actually named | |
25157 | something starting with __ and the normal name is an alias. */ | |
25158 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25159 | choke me | |
25160 | #else | |
25161 | char (*f) () = shmat; | |
25162 | #endif | |
25163 | #ifdef __cplusplus | |
25164 | } | |
25165 | #endif | |
25166 | ||
25167 | int | |
25168 | main () | |
25169 | { | |
25170 | return f != shmat; | |
25171 | ; | |
25172 | return 0; | |
25173 | } | |
25174 | _ACEOF | |
25175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25178 | ac_status=$? |
ac1cb8d3 VS |
25179 | grep -v '^ *+' conftest.er1 >conftest.err |
25180 | rm -f conftest.er1 | |
25181 | cat conftest.err >&5 | |
a848cd7e SC |
25182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25183 | (exit $ac_status); } && | |
7714864e | 25184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25186 | (eval $ac_try) 2>&5 | |
25187 | ac_status=$? | |
25188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25189 | (exit $ac_status); }; } && | |
25190 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25192 | (eval $ac_try) 2>&5 | |
25193 | ac_status=$? | |
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25195 | (exit $ac_status); }; }; then | |
25196 | ac_cv_func_shmat=yes | |
25197 | else | |
25198 | echo "$as_me: failed program was:" >&5 | |
25199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25200 | ||
25201 | ac_cv_func_shmat=no | |
25202 | fi | |
ac1cb8d3 VS |
25203 | rm -f conftest.err conftest.$ac_objext \ |
25204 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25205 | fi |
25206 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25207 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25208 | ||
25209 | if test $ac_cv_func_shmat = no; then | |
25210 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25211 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25212 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25214 | else | |
25215 | ac_check_lib_save_LIBS=$LIBS | |
25216 | LIBS="-lipc $LIBS" | |
25217 | cat >conftest.$ac_ext <<_ACEOF | |
25218 | /* confdefs.h. */ | |
25219 | _ACEOF | |
25220 | cat confdefs.h >>conftest.$ac_ext | |
25221 | cat >>conftest.$ac_ext <<_ACEOF | |
25222 | /* end confdefs.h. */ | |
25223 | ||
25224 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25225 | #ifdef __cplusplus | |
25226 | extern "C" | |
25227 | #endif | |
25228 | /* We use char because int might match the return type of a gcc2 | |
25229 | builtin and then its argument prototype would still apply. */ | |
25230 | char shmat (); | |
25231 | int | |
25232 | main () | |
25233 | { | |
25234 | shmat (); | |
25235 | ; | |
25236 | return 0; | |
25237 | } | |
25238 | _ACEOF | |
25239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25241 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25242 | ac_status=$? |
ac1cb8d3 VS |
25243 | grep -v '^ *+' conftest.er1 >conftest.err |
25244 | rm -f conftest.er1 | |
25245 | cat conftest.err >&5 | |
a848cd7e SC |
25246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25247 | (exit $ac_status); } && | |
7714864e | 25248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25250 | (eval $ac_try) 2>&5 | |
25251 | ac_status=$? | |
25252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25253 | (exit $ac_status); }; } && | |
25254 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25256 | (eval $ac_try) 2>&5 | |
25257 | ac_status=$? | |
25258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25259 | (exit $ac_status); }; }; then | |
25260 | ac_cv_lib_ipc_shmat=yes | |
25261 | else | |
25262 | echo "$as_me: failed program was:" >&5 | |
25263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25264 | ||
25265 | ac_cv_lib_ipc_shmat=no | |
25266 | fi | |
ac1cb8d3 VS |
25267 | rm -f conftest.err conftest.$ac_objext \ |
25268 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25269 | LIBS=$ac_check_lib_save_LIBS |
25270 | fi | |
25271 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25272 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25273 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25274 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25275 | fi | |
25276 | ||
25277 | fi | |
25278 | fi | |
25279 | ||
25280 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25281 | ac_save_LDFLAGS=$LDFLAGS | |
25282 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25283 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25284 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25285 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25286 | # These have to be linked with before -lX11, unlike the other | |
25287 | # libraries we check for below, so use a different variable. | |
25288 | # John Interrante, Karl Berry | |
25289 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25290 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25291 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25293 | else | |
25294 | ac_check_lib_save_LIBS=$LIBS | |
25295 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25296 | cat >conftest.$ac_ext <<_ACEOF | |
25297 | /* confdefs.h. */ | |
25298 | _ACEOF | |
25299 | cat confdefs.h >>conftest.$ac_ext | |
25300 | cat >>conftest.$ac_ext <<_ACEOF | |
25301 | /* end confdefs.h. */ | |
25302 | ||
25303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25304 | #ifdef __cplusplus | |
25305 | extern "C" | |
25306 | #endif | |
25307 | /* We use char because int might match the return type of a gcc2 | |
25308 | builtin and then its argument prototype would still apply. */ | |
25309 | char IceConnectionNumber (); | |
25310 | int | |
25311 | main () | |
25312 | { | |
25313 | IceConnectionNumber (); | |
25314 | ; | |
25315 | return 0; | |
25316 | } | |
25317 | _ACEOF | |
25318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25320 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25321 | ac_status=$? |
ac1cb8d3 VS |
25322 | grep -v '^ *+' conftest.er1 >conftest.err |
25323 | rm -f conftest.er1 | |
25324 | cat conftest.err >&5 | |
a848cd7e SC |
25325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25326 | (exit $ac_status); } && | |
7714864e | 25327 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25329 | (eval $ac_try) 2>&5 | |
25330 | ac_status=$? | |
25331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25332 | (exit $ac_status); }; } && | |
25333 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25335 | (eval $ac_try) 2>&5 | |
25336 | ac_status=$? | |
25337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25338 | (exit $ac_status); }; }; then | |
25339 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25340 | else | |
25341 | echo "$as_me: failed program was:" >&5 | |
25342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25343 | ||
25344 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25345 | fi | |
ac1cb8d3 VS |
25346 | rm -f conftest.err conftest.$ac_objext \ |
25347 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25348 | LIBS=$ac_check_lib_save_LIBS |
25349 | fi | |
25350 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25351 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25352 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25353 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25354 | fi | |
25355 | ||
25356 | LDFLAGS=$ac_save_LDFLAGS | |
25357 | ||
25358 | fi | |
25359 | ||
25360 | ||
25361 | if test "$no_x" = "yes"; then | |
25362 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25363 | echo "$as_me: error: X11 not found" >&2;} | |
25364 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25365 | fi | |
25366 | ||
74b84332 VS |
25367 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25368 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25369 | AFMINSTALL=afminstall |
25370 | COMPILED_X_PROGRAM=0 | |
25371 | ||
74b84332 VS |
25372 | fi |
25373 | ||
25374 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25375 | if test "$wxUSE_NANOX" = "yes"; then |
25376 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25377 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25378 | if test "x$MICROWIN" = x ; then | |
25379 | echo "$as_me:$LINENO: result: not found" >&5 | |
25380 | echo "${ECHO_T}not found" >&6 | |
25381 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25382 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25383 | { (exit 1); exit 1; }; } | |
25384 | else | |
25385 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25386 | echo "${ECHO_T}$MICROWIN" >&6 | |
25387 | cat >>confdefs.h <<\_ACEOF | |
25388 | #define wxUSE_NANOX 1 | |
25389 | _ACEOF | |
25390 | ||
25391 | fi | |
25392 | fi | |
25393 | ||
25394 | if test "$wxUSE_UNICODE" = "yes"; then | |
25395 | ||
25396 | succeeded=no | |
25397 | ||
25398 | if test -z "$PKG_CONFIG"; then | |
25399 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25400 | set dummy pkg-config; ac_word=$2 | |
25401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25403 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25405 | else | |
25406 | case $PKG_CONFIG in | |
25407 | [\\/]* | ?:[\\/]*) | |
25408 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25409 | ;; | |
25410 | *) | |
25411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25412 | for as_dir in $PATH | |
25413 | do | |
25414 | IFS=$as_save_IFS | |
25415 | test -z "$as_dir" && as_dir=. | |
25416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25417 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25418 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25420 | break 2 | |
25421 | fi | |
25422 | done | |
25423 | done | |
25424 | ||
25425 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25426 | ;; | |
25427 | esac | |
25428 | fi | |
25429 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25430 | ||
25431 | if test -n "$PKG_CONFIG"; then | |
25432 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25433 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25434 | else | |
25435 | echo "$as_me:$LINENO: result: no" >&5 | |
25436 | echo "${ECHO_T}no" >&6 | |
25437 | fi | |
25438 | ||
25439 | fi | |
25440 | ||
25441 | if test "$PKG_CONFIG" = "no" ; then | |
25442 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25443 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25444 | echo "*** to the full path to pkg-config." | |
25445 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25446 | else | |
25447 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25448 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25449 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25450 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25451 | ||
25452 | if $PKG_CONFIG --exists "pangox" ; then | |
25453 | echo "$as_me:$LINENO: result: yes" >&5 | |
25454 | echo "${ECHO_T}yes" >&6 | |
25455 | succeeded=yes | |
25456 | ||
25457 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25458 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25459 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25460 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25461 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25462 | ||
25463 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25464 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25465 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25466 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25467 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25468 | else | |
25469 | PANGOX_CFLAGS="" | |
25470 | PANGOX_LIBS="" | |
25471 | ## If we have a custom action on failure, don't print errors, but | |
25472 | ## do set a variable so people can do so. | |
25473 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25474 | ||
25475 | fi | |
25476 | ||
25477 | ||
25478 | ||
25479 | else | |
25480 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25481 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25482 | fi | |
25483 | fi | |
25484 | ||
25485 | if test $succeeded = yes; then | |
25486 | ||
25487 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25488 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25489 | ||
25490 | else | |
25491 | ||
25492 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25493 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25494 | { (exit 1); exit 1; }; } | |
25495 | ||
25496 | ||
25497 | fi | |
25498 | ||
25499 | ||
25500 | succeeded=no | |
25501 | ||
25502 | if test -z "$PKG_CONFIG"; then | |
25503 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25504 | set dummy pkg-config; ac_word=$2 | |
25505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25507 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25509 | else | |
25510 | case $PKG_CONFIG in | |
25511 | [\\/]* | ?:[\\/]*) | |
25512 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25513 | ;; | |
25514 | *) | |
25515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25516 | for as_dir in $PATH | |
25517 | do | |
25518 | IFS=$as_save_IFS | |
25519 | test -z "$as_dir" && as_dir=. | |
25520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25522 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25524 | break 2 | |
25525 | fi | |
25526 | done | |
25527 | done | |
25528 | ||
25529 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25530 | ;; | |
25531 | esac | |
25532 | fi | |
25533 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25534 | ||
25535 | if test -n "$PKG_CONFIG"; then | |
25536 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25537 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25538 | else | |
25539 | echo "$as_me:$LINENO: result: no" >&5 | |
25540 | echo "${ECHO_T}no" >&6 | |
25541 | fi | |
25542 | ||
25543 | fi | |
25544 | ||
25545 | if test "$PKG_CONFIG" = "no" ; then | |
25546 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25547 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25548 | echo "*** to the full path to pkg-config." | |
25549 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25550 | else | |
25551 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25552 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25553 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25554 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25555 | ||
25556 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25557 | echo "$as_me:$LINENO: result: yes" >&5 | |
25558 | echo "${ECHO_T}yes" >&6 | |
25559 | succeeded=yes | |
25560 | ||
25561 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25562 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25563 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25564 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25565 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25566 | ||
25567 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25568 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25569 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25570 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25571 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25572 | else | |
25573 | PANGOFT2_CFLAGS="" | |
25574 | PANGOFT2_LIBS="" | |
25575 | ## If we have a custom action on failure, don't print errors, but | |
25576 | ## do set a variable so people can do so. | |
25577 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25578 | ||
25579 | fi | |
25580 | ||
25581 | ||
25582 | ||
25583 | else | |
25584 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25585 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25586 | fi | |
25587 | fi | |
25588 | ||
25589 | if test $succeeded = yes; then | |
25590 | ||
25591 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25592 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25593 | ||
25594 | else | |
25595 | ||
25596 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25597 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25598 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25599 | ||
25600 | ||
25601 | fi | |
25602 | ||
25603 | ||
25604 | succeeded=no | |
25605 | ||
25606 | if test -z "$PKG_CONFIG"; then | |
25607 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25608 | set dummy pkg-config; ac_word=$2 | |
25609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25611 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25613 | else | |
25614 | case $PKG_CONFIG in | |
25615 | [\\/]* | ?:[\\/]*) | |
25616 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25617 | ;; | |
25618 | *) | |
25619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25620 | for as_dir in $PATH | |
25621 | do | |
25622 | IFS=$as_save_IFS | |
25623 | test -z "$as_dir" && as_dir=. | |
25624 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25625 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25626 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25627 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25628 | break 2 | |
25629 | fi | |
25630 | done | |
25631 | done | |
25632 | ||
25633 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25634 | ;; | |
25635 | esac | |
25636 | fi | |
25637 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25638 | ||
25639 | if test -n "$PKG_CONFIG"; then | |
25640 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25641 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25642 | else | |
25643 | echo "$as_me:$LINENO: result: no" >&5 | |
25644 | echo "${ECHO_T}no" >&6 | |
25645 | fi | |
25646 | ||
25647 | fi | |
25648 | ||
25649 | if test "$PKG_CONFIG" = "no" ; then | |
25650 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25651 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25652 | echo "*** to the full path to pkg-config." | |
25653 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25654 | else | |
25655 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25656 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25657 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25658 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25659 | ||
25660 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25661 | echo "$as_me:$LINENO: result: yes" >&5 | |
25662 | echo "${ECHO_T}yes" >&6 | |
25663 | succeeded=yes | |
25664 | ||
25665 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25666 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25667 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25668 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25669 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25670 | ||
25671 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25672 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25673 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25674 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25675 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25676 | else | |
25677 | PANGOXFT_CFLAGS="" | |
25678 | PANGOXFT_LIBS="" | |
25679 | ## If we have a custom action on failure, don't print errors, but | |
25680 | ## do set a variable so people can do so. | |
25681 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25682 | ||
25683 | fi | |
25684 | ||
25685 | ||
25686 | ||
25687 | else | |
25688 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25689 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25690 | fi | |
25691 | fi | |
25692 | ||
25693 | if test $succeeded = yes; then | |
25694 | ||
25695 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25696 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25697 | ||
25698 | else | |
25699 | ||
25700 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25701 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25702 | ||
25703 | ||
25704 | fi | |
25705 | ||
304205f1 VS |
25706 | save_CFLAGS="$CFLAGS" |
25707 | save_LIBS="$LIBS" | |
25708 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25709 | LIBS="$LIBS $PANGOX_LIBS" | |
25710 | ||
25711 | for ac_func in pango_font_family_is_monospace | |
25712 | do | |
25713 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25714 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25715 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25716 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25718 | else | |
25719 | cat >conftest.$ac_ext <<_ACEOF | |
25720 | /* confdefs.h. */ | |
25721 | _ACEOF | |
25722 | cat confdefs.h >>conftest.$ac_ext | |
25723 | cat >>conftest.$ac_ext <<_ACEOF | |
25724 | /* end confdefs.h. */ | |
25725 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25726 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25727 | #define $ac_func innocuous_$ac_func | |
25728 | ||
25729 | /* System header to define __stub macros and hopefully few prototypes, | |
25730 | which can conflict with char $ac_func (); below. | |
25731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25732 | <limits.h> exists even on freestanding compilers. */ | |
25733 | ||
25734 | #ifdef __STDC__ | |
25735 | # include <limits.h> | |
25736 | #else | |
25737 | # include <assert.h> | |
25738 | #endif | |
25739 | ||
25740 | #undef $ac_func | |
25741 | ||
25742 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25743 | #ifdef __cplusplus | |
25744 | extern "C" | |
25745 | { | |
25746 | #endif | |
25747 | /* We use char because int might match the return type of a gcc2 | |
25748 | builtin and then its argument prototype would still apply. */ | |
25749 | char $ac_func (); | |
25750 | /* The GNU C library defines this for functions which it implements | |
25751 | to always fail with ENOSYS. Some functions are actually named | |
25752 | something starting with __ and the normal name is an alias. */ | |
25753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25754 | choke me | |
25755 | #else | |
25756 | char (*f) () = $ac_func; | |
25757 | #endif | |
25758 | #ifdef __cplusplus | |
25759 | } | |
25760 | #endif | |
25761 | ||
25762 | int | |
25763 | main () | |
25764 | { | |
25765 | return f != $ac_func; | |
25766 | ; | |
25767 | return 0; | |
25768 | } | |
25769 | _ACEOF | |
25770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25772 | (eval $ac_link) 2>conftest.er1 | |
25773 | ac_status=$? | |
25774 | grep -v '^ *+' conftest.er1 >conftest.err | |
25775 | rm -f conftest.er1 | |
25776 | cat conftest.err >&5 | |
25777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25778 | (exit $ac_status); } && | |
7714864e | 25779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25781 | (eval $ac_try) 2>&5 | |
25782 | ac_status=$? | |
25783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25784 | (exit $ac_status); }; } && | |
25785 | { ac_try='test -s conftest$ac_exeext' | |
25786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25787 | (eval $ac_try) 2>&5 | |
25788 | ac_status=$? | |
25789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25790 | (exit $ac_status); }; }; then | |
25791 | eval "$as_ac_var=yes" | |
25792 | else | |
25793 | echo "$as_me: failed program was:" >&5 | |
25794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25795 | ||
25796 | eval "$as_ac_var=no" | |
25797 | fi | |
25798 | rm -f conftest.err conftest.$ac_objext \ | |
25799 | conftest$ac_exeext conftest.$ac_ext | |
25800 | fi | |
25801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25803 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25804 | cat >>confdefs.h <<_ACEOF | |
25805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25806 | _ACEOF | |
25807 | ||
25808 | fi | |
25809 | done | |
25810 | ||
25811 | CFLAGS="$save_CFLAGS" | |
25812 | LIBS="$save_LIBS" | |
a848cd7e SC |
25813 | fi |
25814 | ||
25815 | wxUSE_UNIVERSAL="yes" | |
25816 | ||
25817 | if test "$wxUSE_NANOX" = "yes"; then | |
25818 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25819 | 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" | |
25820 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25821 | else | |
25822 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25823 | fi | |
25824 | ||
a848cd7e SC |
25825 | TOOLKIT=X11 |
25826 | GUIDIST=X11_DIST | |
25827 | fi | |
25828 | ||
25829 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25830 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25831 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25832 | |
74b84332 VS |
25833 | ac_find_includes= |
25834 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25835 | do | |
25836 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25837 | ac_find_includes=$ac_dir | |
25838 | break | |
25839 | fi | |
25840 | done | |
a848cd7e | 25841 | |
74b84332 VS |
25842 | if test "$ac_find_includes" != "" ; then |
25843 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25844 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25845 | ||
25846 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25847 | ac_path_to_include="" | |
25848 | else | |
25849 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25850 | result=$? | |
25851 | if test $result = 0; then | |
25852 | ac_path_to_include="" | |
25853 | else | |
25854 | ac_path_to_include=" -I$ac_find_includes" | |
25855 | fi | |
a848cd7e SC |
25856 | fi |
25857 | ||
74b84332 VS |
25858 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25859 | else | |
25860 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25861 | /* confdefs.h. */ |
25862 | _ACEOF | |
25863 | cat confdefs.h >>conftest.$ac_ext | |
25864 | cat >>conftest.$ac_ext <<_ACEOF | |
25865 | /* end confdefs.h. */ | |
25866 | ||
74b84332 VS |
25867 | #include <Xm/Xm.h> |
25868 | ||
a848cd7e SC |
25869 | int |
25870 | main () | |
25871 | { | |
25872 | ||
74b84332 VS |
25873 | int version; |
25874 | version = xmUseVersion; | |
25875 | ||
a848cd7e SC |
25876 | ; |
25877 | return 0; | |
25878 | } | |
25879 | _ACEOF | |
74b84332 VS |
25880 | rm -f conftest.$ac_objext |
25881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25882 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25883 | ac_status=$? |
ac1cb8d3 VS |
25884 | grep -v '^ *+' conftest.er1 >conftest.err |
25885 | rm -f conftest.er1 | |
25886 | cat conftest.err >&5 | |
a848cd7e SC |
25887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25888 | (exit $ac_status); } && | |
7714864e | 25889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25891 | (eval $ac_try) 2>&5 | |
25892 | ac_status=$? | |
25893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25894 | (exit $ac_status); }; } && | |
74b84332 | 25895 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25897 | (eval $ac_try) 2>&5 | |
25898 | ac_status=$? | |
25899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25900 | (exit $ac_status); }; }; then | |
74b84332 VS |
25901 | |
25902 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25903 | echo "${ECHO_T}found in default search path" >&6 | |
25904 | COMPILED_X_PROGRAM=1 | |
25905 | ||
a848cd7e SC |
25906 | else |
25907 | echo "$as_me: failed program was:" >&5 | |
25908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25909 | ||
a848cd7e | 25910 | |
74b84332 VS |
25911 | echo "$as_me:$LINENO: result: no" >&5 |
25912 | echo "${ECHO_T}no" >&6 | |
25913 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25914 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25915 | { (exit 1); exit 1; }; } | |
a848cd7e | 25916 | |
a848cd7e | 25917 | |
a848cd7e | 25918 | fi |
74b84332 VS |
25919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25920 | fi | |
25921 | ||
25922 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25923 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25924 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25925 | ||
25926 | ac_find_libraries= | |
25927 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25928 | do | |
25929 | for ac_extension in a so sl dylib; do | |
25930 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25931 | ac_find_libraries=$ac_dir | |
25932 | break 2 | |
a848cd7e | 25933 | fi |
74b84332 VS |
25934 | done |
25935 | done | |
a848cd7e | 25936 | |
74b84332 VS |
25937 | if test "$ac_find_libraries" != "" ; then |
25938 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25939 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25940 | |
74b84332 VS |
25941 | |
25942 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25943 | result=$? | |
25944 | if test $result = 0; then | |
25945 | ac_path_to_link="" | |
a848cd7e | 25946 | else |
74b84332 VS |
25947 | ac_path_to_link=" -L$ac_find_libraries" |
25948 | fi | |
25949 | ||
25950 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25951 | else | |
25952 | save_CFLAGS=$CFLAGS | |
25953 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25954 | ||
25955 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25956 | /* confdefs.h. */ |
25957 | _ACEOF | |
25958 | cat confdefs.h >>conftest.$ac_ext | |
25959 | cat >>conftest.$ac_ext <<_ACEOF | |
25960 | /* end confdefs.h. */ | |
25961 | ||
74b84332 VS |
25962 | #include <Xm/Xm.h> |
25963 | ||
a848cd7e SC |
25964 | int |
25965 | main () | |
25966 | { | |
74b84332 VS |
25967 | |
25968 | int version; | |
25969 | version = xmUseVersion; | |
25970 | ||
a848cd7e SC |
25971 | ; |
25972 | return 0; | |
25973 | } | |
25974 | _ACEOF | |
74b84332 VS |
25975 | rm -f conftest.$ac_objext |
25976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25977 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25978 | ac_status=$? |
ac1cb8d3 VS |
25979 | grep -v '^ *+' conftest.er1 >conftest.err |
25980 | rm -f conftest.er1 | |
25981 | cat conftest.err >&5 | |
a848cd7e SC |
25982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25983 | (exit $ac_status); } && | |
7714864e | 25984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25986 | (eval $ac_try) 2>&5 | |
25987 | ac_status=$? | |
25988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25989 | (exit $ac_status); }; } && | |
74b84332 | 25990 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25992 | (eval $ac_try) 2>&5 | |
25993 | ac_status=$? | |
25994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25995 | (exit $ac_status); }; }; then | |
74b84332 VS |
25996 | |
25997 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25998 | echo "${ECHO_T}found in default search path" >&6 | |
25999 | COMPILED_X_PROGRAM=1 | |
26000 | ||
a848cd7e SC |
26001 | else |
26002 | echo "$as_me: failed program was:" >&5 | |
26003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26004 | ||
74b84332 VS |
26005 | |
26006 | echo "$as_me:$LINENO: result: no" >&5 | |
26007 | echo "${ECHO_T}no" >&6 | |
26008 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
26009 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
26010 | { (exit 1); exit 1; }; } | |
26011 | ||
26012 | ||
26013 | fi | |
26014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26015 | ||
26016 | CFLAGS=$save_CFLAGS | |
26017 | fi | |
26018 | fi | |
26019 | ||
26020 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
26021 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
26022 | libp_link="" | |
26023 | libsm_ice_link="" | |
26024 | libs_found=0 | |
26025 | for libp in "" " -lXp"; do | |
26026 | if test "$libs_found" = "0"; then | |
26027 | for libsm_ice in "" " -lSM -lICE"; do | |
26028 | if test "$libs_found" = "0"; then | |
26029 | save_LIBS="$LIBS" | |
26030 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26031 | save_CFLAGS=$CFLAGS | |
26032 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26033 | ||
26034 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26035 | /* confdefs.h. */ |
26036 | _ACEOF | |
26037 | cat confdefs.h >>conftest.$ac_ext | |
26038 | cat >>conftest.$ac_ext <<_ACEOF | |
26039 | /* end confdefs.h. */ | |
26040 | ||
74b84332 VS |
26041 | #include <Xm/Xm.h> |
26042 | #include <Xm/List.h> | |
26043 | ||
a848cd7e SC |
26044 | int |
26045 | main () | |
26046 | { | |
74b84332 VS |
26047 | |
26048 | XmString string = NULL; | |
26049 | Widget w = NULL; | |
26050 | int position = 0; | |
26051 | XmListAddItem(w, string, position); | |
26052 | ||
a848cd7e SC |
26053 | ; |
26054 | return 0; | |
26055 | } | |
26056 | _ACEOF | |
26057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26059 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26060 | ac_status=$? |
ac1cb8d3 VS |
26061 | grep -v '^ *+' conftest.er1 >conftest.err |
26062 | rm -f conftest.er1 | |
26063 | cat conftest.err >&5 | |
a848cd7e SC |
26064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26065 | (exit $ac_status); } && | |
7714864e | 26066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26068 | (eval $ac_try) 2>&5 | |
26069 | ac_status=$? | |
26070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26071 | (exit $ac_status); }; } && | |
26072 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26074 | (eval $ac_try) 2>&5 | |
26075 | ac_status=$? | |
26076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26077 | (exit $ac_status); }; }; then | |
26078 | ||
26079 | libp_link="$libp" | |
26080 | libsm_ice_link="$libsm_ice" | |
26081 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26082 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26083 | libs_found=1 | |
26084 | ||
26085 | else | |
26086 | echo "$as_me: failed program was:" >&5 | |
26087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26088 | ||
26089 | ||
26090 | ||
26091 | fi | |
ac1cb8d3 VS |
26092 | rm -f conftest.err conftest.$ac_objext \ |
26093 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26094 | |
26095 | LIBS="$save_LIBS" | |
26096 | CFLAGS=$save_CFLAGS | |
26097 | fi | |
26098 | done | |
26099 | fi | |
26100 | done | |
26101 | ||
26102 | if test "$libs_found" = "0"; then | |
26103 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26104 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26105 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26106 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26107 | { (exit 1); exit 1; }; } | |
26108 | fi | |
26109 | ||
26110 | save_CFLAGS=$CFLAGS | |
26111 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26112 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26113 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26114 | cat >conftest.$ac_ext <<_ACEOF | |
26115 | /* confdefs.h. */ | |
26116 | _ACEOF | |
26117 | cat confdefs.h >>conftest.$ac_ext | |
26118 | cat >>conftest.$ac_ext <<_ACEOF | |
26119 | /* end confdefs.h. */ | |
26120 | ||
26121 | #include <Xm/Xm.h> | |
26122 | ||
26123 | int | |
26124 | main () | |
26125 | { | |
26126 | ||
26127 | #if XmVersion < 2000 | |
26128 | #error "Not Motif 2" | |
26129 | #endif | |
26130 | ||
26131 | ; | |
26132 | return 0; | |
26133 | } | |
26134 | _ACEOF | |
26135 | rm -f conftest.$ac_objext | |
26136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26138 | ac_status=$? |
ac1cb8d3 VS |
26139 | grep -v '^ *+' conftest.er1 >conftest.err |
26140 | rm -f conftest.er1 | |
26141 | cat conftest.err >&5 | |
a848cd7e SC |
26142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26143 | (exit $ac_status); } && | |
7714864e | 26144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26146 | (eval $ac_try) 2>&5 | |
26147 | ac_status=$? | |
26148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26149 | (exit $ac_status); }; } && | |
26150 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26152 | (eval $ac_try) 2>&5 | |
26153 | ac_status=$? | |
26154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26155 | (exit $ac_status); }; }; then | |
26156 | ||
26157 | cat >>confdefs.h <<\_ACEOF | |
26158 | #define __WXMOTIF20__ 1 | |
26159 | _ACEOF | |
26160 | ||
26161 | echo "$as_me:$LINENO: result: found" >&5 | |
26162 | echo "${ECHO_T}found" >&6 | |
26163 | ||
26164 | else | |
26165 | echo "$as_me: failed program was:" >&5 | |
26166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26167 | ||
26168 | ||
26169 | cat >>confdefs.h <<\_ACEOF | |
26170 | #define __WXMOTIF20__ 0 | |
26171 | _ACEOF | |
26172 | ||
26173 | echo "$as_me:$LINENO: result: not found" >&5 | |
26174 | echo "${ECHO_T}not found" >&6 | |
26175 | ||
26176 | fi | |
ac1cb8d3 | 26177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26178 | CFLAGS=$save_CFLAGS |
26179 | ||
26180 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26181 | TOOLKIT=MOTIF |
26182 | GUIDIST=MOTIF_DIST | |
26183 | fi | |
26184 | ||
74b84332 | 26185 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26186 | if test "$wxUSE_LIBXPM" = "sys"; then |
26187 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26188 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26189 | ||
26190 | ac_find_libraries= | |
26191 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26192 | do | |
26193 | for ac_extension in a so sl dylib; do | |
26194 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26195 | ac_find_libraries=$ac_dir | |
26196 | break 2 | |
26197 | fi | |
26198 | done | |
26199 | done | |
26200 | ||
26201 | if test "$ac_find_libraries" != "" ; then | |
26202 | ||
26203 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26204 | result=$? | |
26205 | if test $result = 0; then | |
26206 | ac_path_to_link="" | |
26207 | else | |
26208 | ac_path_to_link=" -L$ac_find_libraries" | |
26209 | fi | |
26210 | ||
26211 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26212 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26213 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26214 | ||
26215 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26216 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26217 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26219 | else | |
26220 | ||
26221 | save_CFLAGS=$CFLAGS | |
26222 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26223 | ||
26224 | cat >conftest.$ac_ext <<_ACEOF | |
26225 | /* confdefs.h. */ | |
26226 | _ACEOF | |
26227 | cat confdefs.h >>conftest.$ac_ext | |
26228 | cat >>conftest.$ac_ext <<_ACEOF | |
26229 | /* end confdefs.h. */ | |
26230 | ||
26231 | #include <X11/xpm.h> | |
26232 | ||
26233 | int | |
26234 | main () | |
26235 | { | |
26236 | ||
26237 | int version; | |
26238 | version = XpmLibraryVersion(); | |
26239 | ||
26240 | ; | |
26241 | return 0; | |
26242 | } | |
26243 | _ACEOF | |
26244 | rm -f conftest.$ac_objext | |
26245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26246 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26247 | ac_status=$? |
ac1cb8d3 VS |
26248 | grep -v '^ *+' conftest.er1 >conftest.err |
26249 | rm -f conftest.er1 | |
26250 | cat conftest.err >&5 | |
a848cd7e SC |
26251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26252 | (exit $ac_status); } && | |
7714864e | 26253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26255 | (eval $ac_try) 2>&5 | |
26256 | ac_status=$? | |
26257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26258 | (exit $ac_status); }; } && | |
26259 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26261 | (eval $ac_try) 2>&5 | |
26262 | ac_status=$? | |
26263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26264 | (exit $ac_status); }; }; then | |
26265 | wx_cv_x11_xpm_h=yes | |
26266 | else | |
26267 | echo "$as_me: failed program was:" >&5 | |
26268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26269 | ||
26270 | wx_cv_x11_xpm_h=no | |
26271 | ||
26272 | fi | |
ac1cb8d3 | 26273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26274 | |
26275 | CFLAGS=$save_CFLAGS | |
26276 | ||
26277 | ||
26278 | fi | |
26279 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26280 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26281 | ||
26282 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26283 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26284 | cat >>confdefs.h <<\_ACEOF | |
26285 | #define wxHAVE_LIB_XPM 1 | |
26286 | _ACEOF | |
26287 | ||
26288 | else | |
26289 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26290 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26291 | fi | |
26292 | fi | |
26293 | ||
26294 | fi | |
26295 | ||
26296 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26297 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26298 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26300 | else | |
26301 | ac_check_lib_save_LIBS=$LIBS | |
26302 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26303 | cat >conftest.$ac_ext <<_ACEOF | |
26304 | /* confdefs.h. */ | |
26305 | _ACEOF | |
26306 | cat confdefs.h >>conftest.$ac_ext | |
26307 | cat >>conftest.$ac_ext <<_ACEOF | |
26308 | /* end confdefs.h. */ | |
26309 | ||
26310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26311 | #ifdef __cplusplus | |
26312 | extern "C" | |
26313 | #endif | |
26314 | /* We use char because int might match the return type of a gcc2 | |
26315 | builtin and then its argument prototype would still apply. */ | |
26316 | char XShapeQueryExtension (); | |
26317 | int | |
26318 | main () | |
26319 | { | |
26320 | XShapeQueryExtension (); | |
26321 | ; | |
26322 | return 0; | |
26323 | } | |
26324 | _ACEOF | |
26325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26327 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26328 | ac_status=$? |
ac1cb8d3 VS |
26329 | grep -v '^ *+' conftest.er1 >conftest.err |
26330 | rm -f conftest.er1 | |
26331 | cat conftest.err >&5 | |
a848cd7e SC |
26332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26333 | (exit $ac_status); } && | |
7714864e | 26334 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26336 | (eval $ac_try) 2>&5 | |
26337 | ac_status=$? | |
26338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26339 | (exit $ac_status); }; } && | |
26340 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26342 | (eval $ac_try) 2>&5 | |
26343 | ac_status=$? | |
26344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26345 | (exit $ac_status); }; }; then | |
26346 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26347 | else | |
26348 | echo "$as_me: failed program was:" >&5 | |
26349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26350 | ||
26351 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26352 | fi | |
ac1cb8d3 VS |
26353 | rm -f conftest.err conftest.$ac_objext \ |
26354 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26355 | LIBS=$ac_check_lib_save_LIBS |
26356 | fi | |
26357 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26358 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26359 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26360 | ||
26361 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26362 | wxHAVE_XEXT_LIB=1 | |
26363 | ||
26364 | fi | |
26365 | ||
26366 | ||
26367 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26368 | save_CFLAGS="$CFLAGS" | |
26369 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26370 | ||
26371 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26372 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26373 | cat >conftest.$ac_ext <<_ACEOF | |
26374 | /* confdefs.h. */ | |
26375 | _ACEOF | |
26376 | cat confdefs.h >>conftest.$ac_ext | |
26377 | cat >>conftest.$ac_ext <<_ACEOF | |
26378 | /* end confdefs.h. */ | |
26379 | ||
26380 | #include <X11/Xlib.h> | |
26381 | #include <X11/extensions/shape.h> | |
26382 | ||
26383 | int | |
26384 | main () | |
26385 | { | |
26386 | ||
26387 | int dummy1, dummy2; | |
26388 | XShapeQueryExtension((Display*)NULL, | |
26389 | (int*)NULL, (int*)NULL); | |
26390 | ||
26391 | ; | |
26392 | return 0; | |
26393 | } | |
26394 | _ACEOF | |
26395 | rm -f conftest.$ac_objext | |
26396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26398 | ac_status=$? |
ac1cb8d3 VS |
26399 | grep -v '^ *+' conftest.er1 >conftest.err |
26400 | rm -f conftest.er1 | |
26401 | cat conftest.err >&5 | |
a848cd7e SC |
26402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26403 | (exit $ac_status); } && | |
7714864e | 26404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26406 | (eval $ac_try) 2>&5 | |
26407 | ac_status=$? | |
26408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26409 | (exit $ac_status); }; } && | |
26410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26412 | (eval $ac_try) 2>&5 | |
26413 | ac_status=$? | |
26414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26415 | (exit $ac_status); }; }; then | |
26416 | ||
26417 | cat >>confdefs.h <<\_ACEOF | |
26418 | #define HAVE_XSHAPE 1 | |
26419 | _ACEOF | |
26420 | ||
26421 | echo "$as_me:$LINENO: result: found" >&5 | |
26422 | echo "${ECHO_T}found" >&6 | |
26423 | ||
26424 | else | |
26425 | echo "$as_me: failed program was:" >&5 | |
26426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26427 | ||
26428 | ||
26429 | echo "$as_me:$LINENO: result: not found" >&5 | |
26430 | echo "${ECHO_T}not found" >&6 | |
26431 | ||
26432 | fi | |
ac1cb8d3 | 26433 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26434 | CFLAGS="$save_CFLAGS" |
26435 | ||
26436 | fi | |
26437 | fi | |
26438 | ||
26439 | if test "$wxUSE_MAC" = 1; then | |
26440 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26441 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26442 | if test "$GCC" = yes; then | |
26443 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26444 | echo "${ECHO_T}gcc" >&6 | |
26445 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26446 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26447 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26448 | echo "${ECHO_T}xlc" >&6 | |
26449 | CPPFLAGS_PASCAL="-qmacpstr" | |
26450 | else | |
26451 | echo "$as_me:$LINENO: result: none" >&5 | |
26452 | echo "${ECHO_T}none" >&6 | |
26453 | fi | |
26454 | ||
26455 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26456 | ||
a848cd7e SC |
26457 | TOOLKIT=MAC |
26458 | GUIDIST=MACX_DIST | |
dd21ced8 | 26459 | WXBASEPORT="_carbon" |
a848cd7e SC |
26460 | fi |
26461 | ||
26462 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26463 | TOOLKIT=COCOA |
26464 | GUIDIST=COCOA_DIST | |
26465 | fi | |
26466 | ||
26467 | if test "$wxUSE_PM" = 1; then | |
26468 | TOOLKIT=PM | |
de59c161 RD |
26469 | GUIDIST=PM_DIST |
26470 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26471 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26472 | if test "${wx_cv_spbcdata+set}" = set; then | |
26473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26474 | else | |
26475 | ||
26476 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26477 | /* confdefs.h. */ |
26478 | _ACEOF | |
26479 | cat confdefs.h >>conftest.$ac_ext | |
26480 | cat >>conftest.$ac_ext <<_ACEOF | |
26481 | /* end confdefs.h. */ | |
26482 | ||
26483 | #define INCL_PM | |
26484 | #include <os2.h> | |
26485 | ||
26486 | int | |
26487 | main () | |
26488 | { | |
26489 | ||
26490 | SPBCDATA test; | |
26491 | ||
26492 | ; | |
26493 | return 0; | |
26494 | } | |
26495 | _ACEOF | |
26496 | rm -f conftest.$ac_objext | |
26497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26498 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26499 | ac_status=$? |
ac1cb8d3 VS |
26500 | grep -v '^ *+' conftest.er1 >conftest.err |
26501 | rm -f conftest.er1 | |
26502 | cat conftest.err >&5 | |
de59c161 RD |
26503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26504 | (exit $ac_status); } && | |
7714864e | 26505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26507 | (eval $ac_try) 2>&5 | |
26508 | ac_status=$? | |
26509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26510 | (exit $ac_status); }; } && | |
26511 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26513 | (eval $ac_try) 2>&5 | |
26514 | ac_status=$? | |
26515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26516 | (exit $ac_status); }; }; then | |
26517 | wx_cv_spbcdata=yes | |
26518 | else | |
26519 | echo "$as_me: failed program was:" >&5 | |
26520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26521 | ||
26522 | wx_cv_spbcdata=no | |
26523 | ||
26524 | fi | |
ac1cb8d3 | 26525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26526 | |
26527 | ||
26528 | fi | |
26529 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26530 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26531 | ||
26532 | if test $wx_cv_spbcdata = "yes"; then | |
26533 | cat >>confdefs.h <<\_ACEOF | |
26534 | #define HAVE_SPBCDATA 1 | |
26535 | _ACEOF | |
26536 | ||
26537 | fi | |
a848cd7e SC |
26538 | fi |
26539 | ||
26540 | if test "$TOOLKIT" = "PM" ; then | |
26541 | TOOLKIT_DIR="os2" | |
26542 | else | |
26543 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26544 | fi | |
26545 | ||
a848cd7e | 26546 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26547 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26548 | WIDGET_SET=univ | |
a848cd7e SC |
26549 | fi |
26550 | ||
26551 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26552 | DISTDIR="wx\$(TOOLKIT)" | |
26553 | else | |
26554 | USE_GUI=0 | |
26555 | ||
26556 | TOOLKIT_DIR="base" | |
26557 | ||
26558 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26559 | TOOLKIT="MSW" |
a848cd7e SC |
26560 | fi |
26561 | ||
a848cd7e SC |
26562 | GUIDIST="BASE_DIST" |
26563 | DISTDIR="wxBase" | |
26564 | fi | |
26565 | ||
26566 | ||
26567 | ||
26568 | ||
26569 | IODBC_C_SRC="" | |
26570 | ||
26571 | ||
26572 | if test "$TOOLKIT" != "MSW" ; then | |
26573 | ||
26574 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26575 | ||
26576 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26577 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26578 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26579 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26581 | fi | |
26582 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26583 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26584 | else | |
26585 | # Is the header compilable? | |
26586 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26587 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26588 | cat >conftest.$ac_ext <<_ACEOF | |
26589 | /* confdefs.h. */ | |
26590 | _ACEOF | |
26591 | cat confdefs.h >>conftest.$ac_ext | |
26592 | cat >>conftest.$ac_ext <<_ACEOF | |
26593 | /* end confdefs.h. */ | |
26594 | $ac_includes_default | |
26595 | #include <sql.h> | |
26596 | _ACEOF | |
26597 | rm -f conftest.$ac_objext | |
26598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26599 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26600 | ac_status=$? |
ac1cb8d3 VS |
26601 | grep -v '^ *+' conftest.er1 >conftest.err |
26602 | rm -f conftest.er1 | |
26603 | cat conftest.err >&5 | |
a848cd7e SC |
26604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26605 | (exit $ac_status); } && | |
7714864e | 26606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26608 | (eval $ac_try) 2>&5 | |
26609 | ac_status=$? | |
26610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26611 | (exit $ac_status); }; } && | |
26612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26614 | (eval $ac_try) 2>&5 | |
26615 | ac_status=$? | |
26616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26617 | (exit $ac_status); }; }; then | |
26618 | ac_header_compiler=yes | |
26619 | else | |
26620 | echo "$as_me: failed program was:" >&5 | |
26621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26622 | ||
26623 | ac_header_compiler=no | |
26624 | fi | |
ac1cb8d3 | 26625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26626 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26627 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26628 | ||
26629 | # Is the header present? | |
26630 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26631 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26632 | cat >conftest.$ac_ext <<_ACEOF | |
26633 | /* confdefs.h. */ | |
26634 | _ACEOF | |
26635 | cat confdefs.h >>conftest.$ac_ext | |
26636 | cat >>conftest.$ac_ext <<_ACEOF | |
26637 | /* end confdefs.h. */ | |
26638 | #include <sql.h> | |
26639 | _ACEOF | |
26640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26642 | ac_status=$? | |
26643 | grep -v '^ *+' conftest.er1 >conftest.err | |
26644 | rm -f conftest.er1 | |
26645 | cat conftest.err >&5 | |
26646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26647 | (exit $ac_status); } >/dev/null; then | |
26648 | if test -s conftest.err; then | |
26649 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26651 | else |
26652 | ac_cpp_err= | |
26653 | fi | |
26654 | else | |
26655 | ac_cpp_err=yes | |
26656 | fi | |
26657 | if test -z "$ac_cpp_err"; then | |
26658 | ac_header_preproc=yes | |
26659 | else | |
26660 | echo "$as_me: failed program was:" >&5 | |
26661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26662 | ||
26663 | ac_header_preproc=no | |
26664 | fi | |
26665 | rm -f conftest.err conftest.$ac_ext | |
26666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26667 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26668 | ||
26669 | # So? What about this header? | |
ac1cb8d3 VS |
26670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26671 | yes:no: ) | |
a848cd7e SC |
26672 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26673 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26674 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26675 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26676 | ac_header_preproc=yes | |
a848cd7e | 26677 | ;; |
ac1cb8d3 | 26678 | no:yes:* ) |
a848cd7e SC |
26679 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26680 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26681 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26682 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26683 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26684 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26685 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26686 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26687 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26688 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26689 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26690 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26691 | ( |
26692 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26693 | ## ----------------------------------------- ## |
26694 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26695 | ## ----------------------------------------- ## | |
a848cd7e SC |
26696 | _ASBOX |
26697 | ) | | |
26698 | sed "s/^/$as_me: WARNING: /" >&2 | |
26699 | ;; | |
26700 | esac | |
26701 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26702 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26703 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26705 | else | |
26706 | ac_cv_header_sql_h=$ac_header_preproc | |
26707 | fi | |
26708 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26709 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26710 | ||
26711 | fi | |
26712 | if test $ac_cv_header_sql_h = yes; then | |
26713 | found_sql_h=1 | |
26714 | fi | |
26715 | ||
26716 | ||
26717 | if test "x$found_sql_h" = "x1" ; then | |
26718 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26719 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26720 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26722 | else | |
26723 | ac_check_lib_save_LIBS=$LIBS | |
26724 | LIBS="-liodbc $LIBS" | |
26725 | cat >conftest.$ac_ext <<_ACEOF | |
26726 | /* confdefs.h. */ | |
26727 | _ACEOF | |
26728 | cat confdefs.h >>conftest.$ac_ext | |
26729 | cat >>conftest.$ac_ext <<_ACEOF | |
26730 | /* end confdefs.h. */ | |
26731 | ||
26732 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26733 | #ifdef __cplusplus | |
26734 | extern "C" | |
26735 | #endif | |
26736 | /* We use char because int might match the return type of a gcc2 | |
26737 | builtin and then its argument prototype would still apply. */ | |
26738 | char SQLAllocEnv (); | |
26739 | int | |
26740 | main () | |
26741 | { | |
26742 | SQLAllocEnv (); | |
26743 | ; | |
26744 | return 0; | |
26745 | } | |
26746 | _ACEOF | |
26747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26749 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26750 | ac_status=$? |
ac1cb8d3 VS |
26751 | grep -v '^ *+' conftest.er1 >conftest.err |
26752 | rm -f conftest.er1 | |
26753 | cat conftest.err >&5 | |
a848cd7e SC |
26754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26755 | (exit $ac_status); } && | |
7714864e | 26756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26758 | (eval $ac_try) 2>&5 | |
26759 | ac_status=$? | |
26760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26761 | (exit $ac_status); }; } && | |
26762 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26764 | (eval $ac_try) 2>&5 | |
26765 | ac_status=$? | |
26766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26767 | (exit $ac_status); }; }; then | |
26768 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26769 | else | |
26770 | echo "$as_me: failed program was:" >&5 | |
26771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26772 | ||
26773 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26774 | fi | |
ac1cb8d3 VS |
26775 | rm -f conftest.err conftest.$ac_objext \ |
26776 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26777 | LIBS=$ac_check_lib_save_LIBS |
26778 | fi | |
26779 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26780 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26781 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26782 | ODBC_LINK=" -liodbc" | |
26783 | else | |
26784 | ||
26785 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26786 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26787 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26789 | else | |
26790 | ac_check_lib_save_LIBS=$LIBS | |
26791 | LIBS="-lunixodbc $LIBS" | |
26792 | cat >conftest.$ac_ext <<_ACEOF | |
26793 | /* confdefs.h. */ | |
26794 | _ACEOF | |
26795 | cat confdefs.h >>conftest.$ac_ext | |
26796 | cat >>conftest.$ac_ext <<_ACEOF | |
26797 | /* end confdefs.h. */ | |
26798 | ||
26799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26800 | #ifdef __cplusplus | |
26801 | extern "C" | |
26802 | #endif | |
26803 | /* We use char because int might match the return type of a gcc2 | |
26804 | builtin and then its argument prototype would still apply. */ | |
26805 | char SQLAllocEnv (); | |
26806 | int | |
26807 | main () | |
26808 | { | |
26809 | SQLAllocEnv (); | |
26810 | ; | |
26811 | return 0; | |
26812 | } | |
26813 | _ACEOF | |
26814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26817 | ac_status=$? |
ac1cb8d3 VS |
26818 | grep -v '^ *+' conftest.er1 >conftest.err |
26819 | rm -f conftest.er1 | |
26820 | cat conftest.err >&5 | |
a848cd7e SC |
26821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26822 | (exit $ac_status); } && | |
7714864e | 26823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26825 | (eval $ac_try) 2>&5 | |
26826 | ac_status=$? | |
26827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26828 | (exit $ac_status); }; } && | |
26829 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26831 | (eval $ac_try) 2>&5 | |
26832 | ac_status=$? | |
26833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26834 | (exit $ac_status); }; }; then | |
26835 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26836 | else | |
26837 | echo "$as_me: failed program was:" >&5 | |
26838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26839 | ||
26840 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26841 | fi | |
ac1cb8d3 VS |
26842 | rm -f conftest.err conftest.$ac_objext \ |
26843 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26844 | LIBS=$ac_check_lib_save_LIBS |
26845 | fi | |
26846 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26847 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26848 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26849 | ODBC_LINK=" -lunixodbc" | |
26850 | else | |
26851 | ||
26852 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26853 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26854 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26856 | else | |
26857 | ac_check_lib_save_LIBS=$LIBS | |
26858 | LIBS="-lodbc $LIBS" | |
26859 | cat >conftest.$ac_ext <<_ACEOF | |
26860 | /* confdefs.h. */ | |
26861 | _ACEOF | |
26862 | cat confdefs.h >>conftest.$ac_ext | |
26863 | cat >>conftest.$ac_ext <<_ACEOF | |
26864 | /* end confdefs.h. */ | |
26865 | ||
26866 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26867 | #ifdef __cplusplus | |
26868 | extern "C" | |
26869 | #endif | |
26870 | /* We use char because int might match the return type of a gcc2 | |
26871 | builtin and then its argument prototype would still apply. */ | |
26872 | char SQLAllocEnv (); | |
26873 | int | |
26874 | main () | |
26875 | { | |
26876 | SQLAllocEnv (); | |
26877 | ; | |
26878 | return 0; | |
26879 | } | |
26880 | _ACEOF | |
26881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26883 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26884 | ac_status=$? |
ac1cb8d3 VS |
26885 | grep -v '^ *+' conftest.er1 >conftest.err |
26886 | rm -f conftest.er1 | |
26887 | cat conftest.err >&5 | |
a848cd7e SC |
26888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26889 | (exit $ac_status); } && | |
7714864e | 26890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26892 | (eval $ac_try) 2>&5 | |
26893 | ac_status=$? | |
26894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26895 | (exit $ac_status); }; } && | |
26896 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26898 | (eval $ac_try) 2>&5 | |
26899 | ac_status=$? | |
26900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26901 | (exit $ac_status); }; }; then | |
26902 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26903 | else | |
26904 | echo "$as_me: failed program was:" >&5 | |
26905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26906 | ||
26907 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26908 | fi | |
ac1cb8d3 VS |
26909 | rm -f conftest.err conftest.$ac_objext \ |
26910 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26911 | LIBS=$ac_check_lib_save_LIBS |
26912 | fi | |
26913 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26914 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26915 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26916 | ODBC_LINK=" -lodbc" | |
26917 | fi | |
26918 | ||
26919 | ||
26920 | fi | |
26921 | ||
26922 | ||
26923 | fi | |
26924 | ||
26925 | fi | |
26926 | if test "x$ODBC_LINK" = "x" ; then | |
26927 | if test "$wxUSE_ODBC" = "sys" ; then | |
26928 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26929 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26930 | { (exit 1); exit 1; }; } | |
26931 | else | |
26932 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26933 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26934 | wxUSE_ODBC=builtin | |
26935 | fi | |
26936 | else | |
26937 | wxUSE_ODBC=sys | |
26938 | fi | |
26939 | fi | |
26940 | if test "$wxUSE_ODBC" != "no" ; then | |
26941 | cat >>confdefs.h <<\_ACEOF | |
26942 | #define wxUSE_ODBC 1 | |
26943 | _ACEOF | |
26944 | ||
26945 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26946 | cat >>confdefs.h <<\_ACEOF | |
26947 | #define wxUSE_BUILTIN_IODBC 1 | |
26948 | _ACEOF | |
26949 | ||
26950 | fi | |
26951 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26952 | ||
26953 | WXODBCFLAG="-D_IODBC_" | |
26954 | fi | |
26955 | fi | |
26956 | ||
a848cd7e | 26957 | |
01cb68df | 26958 | |
a848cd7e | 26959 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26960 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26961 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26962 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26963 | ||
26964 | ac_find_libraries= | |
26965 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26966 | do | |
26967 | for ac_extension in a so sl dylib; do | |
26968 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26969 | ac_find_libraries=$ac_dir | |
26970 | break 2 | |
26971 | fi | |
26972 | done | |
26973 | done | |
26974 | ||
26975 | if test "$ac_find_libraries" != "" ; then | |
26976 | ||
26977 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26978 | result=$? | |
26979 | if test $result = 0; then | |
26980 | ac_path_to_link="" | |
26981 | else | |
26982 | ac_path_to_link=" -L$ac_find_libraries" | |
26983 | fi | |
26984 | ||
26985 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26986 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26987 | fi | |
26988 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26989 | echo "$as_me:$LINENO: result: yes" >&5 | |
26990 | echo "${ECHO_T}yes" >&6 | |
26991 | ||
26992 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26993 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26994 | ||
26995 | ac_find_libraries= | |
26996 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26997 | do | |
26998 | for ac_extension in a so sl dylib; do | |
26999 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27000 | ac_find_libraries=$ac_dir | |
27001 | break 2 | |
27002 | fi | |
27003 | done | |
27004 | done | |
27005 | ||
27006 | if test "$ac_find_libraries" != "" ; then | |
27007 | echo "$as_me:$LINENO: result: yes" >&5 | |
27008 | echo "${ECHO_T}yes" >&6 | |
27009 | ||
27010 | for ac_header in X11/extensions/xf86vmode.h | |
27011 | do | |
27012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27017 | else | |
27018 | cat >conftest.$ac_ext <<_ACEOF | |
27019 | /* confdefs.h. */ | |
27020 | _ACEOF | |
27021 | cat confdefs.h >>conftest.$ac_ext | |
27022 | cat >>conftest.$ac_ext <<_ACEOF | |
27023 | /* end confdefs.h. */ | |
27024 | ||
27025 | #if HAVE_X11_XLIB_H | |
27026 | #include <X11/Xlib.h> | |
27027 | #endif | |
27028 | ||
27029 | ||
27030 | #include <$ac_header> | |
27031 | _ACEOF | |
27032 | rm -f conftest.$ac_objext | |
27033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27034 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27035 | ac_status=$? |
ac1cb8d3 VS |
27036 | grep -v '^ *+' conftest.er1 >conftest.err |
27037 | rm -f conftest.er1 | |
27038 | cat conftest.err >&5 | |
a848cd7e SC |
27039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27040 | (exit $ac_status); } && | |
7714864e | 27041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27043 | (eval $ac_try) 2>&5 | |
27044 | ac_status=$? | |
27045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27046 | (exit $ac_status); }; } && | |
27047 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27049 | (eval $ac_try) 2>&5 | |
27050 | ac_status=$? | |
27051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27052 | (exit $ac_status); }; }; then | |
27053 | eval "$as_ac_Header=yes" | |
27054 | else | |
27055 | echo "$as_me: failed program was:" >&5 | |
27056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27057 | ||
27058 | eval "$as_ac_Header=no" | |
27059 | fi | |
ac1cb8d3 | 27060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27061 | fi |
27062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27064 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27065 | cat >>confdefs.h <<_ACEOF | |
27066 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27067 | _ACEOF | |
27068 | ||
27069 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27070 | ||
27071 | fi | |
27072 | ||
27073 | done | |
27074 | ||
27075 | else | |
27076 | echo "$as_me:$LINENO: result: no" >&5 | |
27077 | echo "${ECHO_T}no" >&6 | |
27078 | fi | |
27079 | ||
27080 | else | |
27081 | echo "$as_me:$LINENO: result: no" >&5 | |
27082 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27083 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27084 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27085 | wxUSE_DISPLAY="no" |
27086 | fi | |
01cb68df RG |
27087 | elif test "$wxUSE_MSW" = 1; then |
27088 | ||
27089 | ||
27090 | for ac_header in multimon.h ddraw.h | |
27091 | do | |
27092 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27093 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27094 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27095 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27098 | fi | |
27099 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27100 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27101 | else | |
27102 | # Is the header compilable? | |
27103 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27104 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27105 | cat >conftest.$ac_ext <<_ACEOF | |
27106 | /* confdefs.h. */ | |
27107 | _ACEOF | |
27108 | cat confdefs.h >>conftest.$ac_ext | |
27109 | cat >>conftest.$ac_ext <<_ACEOF | |
27110 | /* end confdefs.h. */ | |
27111 | $ac_includes_default | |
27112 | #include <$ac_header> | |
27113 | _ACEOF | |
27114 | rm -f conftest.$ac_objext | |
27115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27116 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27117 | ac_status=$? |
ac1cb8d3 VS |
27118 | grep -v '^ *+' conftest.er1 >conftest.err |
27119 | rm -f conftest.er1 | |
27120 | cat conftest.err >&5 | |
01cb68df RG |
27121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27122 | (exit $ac_status); } && | |
7714864e | 27123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27125 | (eval $ac_try) 2>&5 | |
27126 | ac_status=$? | |
27127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27128 | (exit $ac_status); }; } && | |
27129 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27131 | (eval $ac_try) 2>&5 | |
27132 | ac_status=$? | |
27133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27134 | (exit $ac_status); }; }; then | |
27135 | ac_header_compiler=yes | |
27136 | else | |
27137 | echo "$as_me: failed program was:" >&5 | |
27138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27139 | ||
27140 | ac_header_compiler=no | |
27141 | fi | |
ac1cb8d3 | 27142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27145 | ||
27146 | # Is the header present? | |
27147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27149 | cat >conftest.$ac_ext <<_ACEOF | |
27150 | /* confdefs.h. */ | |
27151 | _ACEOF | |
27152 | cat confdefs.h >>conftest.$ac_ext | |
27153 | cat >>conftest.$ac_ext <<_ACEOF | |
27154 | /* end confdefs.h. */ | |
27155 | #include <$ac_header> | |
27156 | _ACEOF | |
27157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27159 | ac_status=$? | |
27160 | grep -v '^ *+' conftest.er1 >conftest.err | |
27161 | rm -f conftest.er1 | |
27162 | cat conftest.err >&5 | |
27163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27164 | (exit $ac_status); } >/dev/null; then | |
27165 | if test -s conftest.err; then | |
27166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27167 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27168 | else |
27169 | ac_cpp_err= | |
27170 | fi | |
27171 | else | |
27172 | ac_cpp_err=yes | |
27173 | fi | |
27174 | if test -z "$ac_cpp_err"; then | |
27175 | ac_header_preproc=yes | |
27176 | else | |
27177 | echo "$as_me: failed program was:" >&5 | |
27178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27179 | ||
27180 | ac_header_preproc=no | |
27181 | fi | |
27182 | rm -f conftest.err conftest.$ac_ext | |
27183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27185 | ||
27186 | # So? What about this header? | |
ac1cb8d3 VS |
27187 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27188 | yes:no: ) | |
01cb68df RG |
27189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27192 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27193 | ac_header_preproc=yes | |
01cb68df | 27194 | ;; |
ac1cb8d3 | 27195 | no:yes:* ) |
01cb68df RG |
27196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27200 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27201 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27202 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27203 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27206 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27207 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27208 | ( |
27209 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27210 | ## ----------------------------------------- ## |
27211 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27212 | ## ----------------------------------------- ## | |
01cb68df RG |
27213 | _ASBOX |
27214 | ) | | |
27215 | sed "s/^/$as_me: WARNING: /" >&2 | |
27216 | ;; | |
27217 | esac | |
27218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27222 | else | |
ac1cb8d3 | 27223 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27224 | fi |
27225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27227 | ||
27228 | fi | |
27229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27230 | cat >>confdefs.h <<_ACEOF | |
27231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27232 | _ACEOF | |
27233 | ||
27234 | else | |
27235 | ||
27236 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27237 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27238 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27239 | |
27240 | fi | |
27241 | ||
27242 | done | |
27243 | ||
a848cd7e SC |
27244 | fi |
27245 | fi | |
27246 | ||
27247 | ||
27248 | USE_OPENGL=0 | |
27249 | if test "$wxUSE_OPENGL" = "yes"; then | |
27250 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27251 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27252 | elif test "$wxUSE_MSW" = 1; then | |
27253 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27254 | else | |
27255 | ||
27256 | ||
27257 | ac_find_includes= | |
27258 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27259 | do | |
27260 | if test -f "$ac_dir/GL/gl.h"; then | |
27261 | ac_find_includes=$ac_dir | |
27262 | break | |
27263 | fi | |
27264 | done | |
27265 | ||
27266 | if test "$ac_find_includes" != "" ; then | |
27267 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27268 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27269 | ||
27270 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27271 | ac_path_to_include="" | |
27272 | else | |
27273 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27274 | result=$? | |
27275 | if test $result = 0; then | |
27276 | ac_path_to_include="" | |
27277 | else | |
27278 | ac_path_to_include=" -I$ac_find_includes" | |
27279 | fi | |
27280 | fi | |
27281 | ||
27282 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27283 | fi | |
27284 | ||
27285 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27286 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27287 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27288 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27290 | fi | |
27291 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27292 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27293 | else | |
27294 | # Is the header compilable? | |
27295 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27296 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27297 | cat >conftest.$ac_ext <<_ACEOF | |
27298 | /* confdefs.h. */ | |
27299 | _ACEOF | |
27300 | cat confdefs.h >>conftest.$ac_ext | |
27301 | cat >>conftest.$ac_ext <<_ACEOF | |
27302 | /* end confdefs.h. */ | |
27303 | $ac_includes_default | |
27304 | #include <GL/gl.h> | |
27305 | _ACEOF | |
27306 | rm -f conftest.$ac_objext | |
27307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27308 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27309 | ac_status=$? |
ac1cb8d3 VS |
27310 | grep -v '^ *+' conftest.er1 >conftest.err |
27311 | rm -f conftest.er1 | |
27312 | cat conftest.err >&5 | |
a848cd7e SC |
27313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27314 | (exit $ac_status); } && | |
7714864e | 27315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27317 | (eval $ac_try) 2>&5 | |
27318 | ac_status=$? | |
27319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27320 | (exit $ac_status); }; } && | |
27321 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27323 | (eval $ac_try) 2>&5 | |
27324 | ac_status=$? | |
27325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27326 | (exit $ac_status); }; }; then | |
27327 | ac_header_compiler=yes | |
27328 | else | |
27329 | echo "$as_me: failed program was:" >&5 | |
27330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27331 | ||
27332 | ac_header_compiler=no | |
27333 | fi | |
ac1cb8d3 | 27334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27336 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27337 | ||
27338 | # Is the header present? | |
27339 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27340 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27341 | cat >conftest.$ac_ext <<_ACEOF | |
27342 | /* confdefs.h. */ | |
27343 | _ACEOF | |
27344 | cat confdefs.h >>conftest.$ac_ext | |
27345 | cat >>conftest.$ac_ext <<_ACEOF | |
27346 | /* end confdefs.h. */ | |
27347 | #include <GL/gl.h> | |
27348 | _ACEOF | |
27349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27351 | ac_status=$? | |
27352 | grep -v '^ *+' conftest.er1 >conftest.err | |
27353 | rm -f conftest.er1 | |
27354 | cat conftest.err >&5 | |
27355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27356 | (exit $ac_status); } >/dev/null; then | |
27357 | if test -s conftest.err; then | |
27358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27360 | else |
27361 | ac_cpp_err= | |
27362 | fi | |
27363 | else | |
27364 | ac_cpp_err=yes | |
27365 | fi | |
27366 | if test -z "$ac_cpp_err"; then | |
27367 | ac_header_preproc=yes | |
27368 | else | |
27369 | echo "$as_me: failed program was:" >&5 | |
27370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27371 | ||
27372 | ac_header_preproc=no | |
27373 | fi | |
27374 | rm -f conftest.err conftest.$ac_ext | |
27375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27376 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27377 | ||
27378 | # So? What about this header? | |
ac1cb8d3 VS |
27379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27380 | yes:no: ) | |
a848cd7e SC |
27381 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27382 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27383 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27384 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27385 | ac_header_preproc=yes | |
a848cd7e | 27386 | ;; |
ac1cb8d3 | 27387 | no:yes:* ) |
a848cd7e SC |
27388 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27389 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27390 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27391 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27392 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27393 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27394 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27395 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27396 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27397 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27398 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27399 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27400 | ( |
27401 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27402 | ## ----------------------------------------- ## |
27403 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27404 | ## ----------------------------------------- ## | |
a848cd7e SC |
27405 | _ASBOX |
27406 | ) | | |
27407 | sed "s/^/$as_me: WARNING: /" >&2 | |
27408 | ;; | |
27409 | esac | |
27410 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27411 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27412 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27414 | else | |
27415 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27416 | fi | |
27417 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27418 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27419 | ||
27420 | fi | |
27421 | if test $ac_cv_header_GL_gl_h = yes; then | |
27422 | ||
27423 | found_gl=0 | |
27424 | ||
27425 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27426 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27427 | ||
27428 | ac_find_libraries= | |
27429 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27430 | do | |
27431 | for ac_extension in a so sl dylib; do | |
27432 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27433 | ac_find_libraries=$ac_dir | |
27434 | break 2 | |
27435 | fi | |
27436 | done | |
27437 | done | |
27438 | ||
27439 | if test "$ac_find_libraries" != "" ; then | |
27440 | ||
27441 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27442 | result=$? | |
27443 | if test $result = 0; then | |
27444 | ac_path_to_link="" | |
27445 | else | |
27446 | ac_path_to_link=" -L$ac_find_libraries" | |
27447 | fi | |
27448 | ||
27449 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27450 | LDFLAGS_GL="$ac_path_to_link" | |
27451 | fi | |
27452 | ||
27453 | ||
27454 | ac_find_libraries= | |
27455 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27456 | do | |
27457 | for ac_extension in a so sl dylib; do | |
27458 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27459 | ac_find_libraries=$ac_dir | |
27460 | break 2 | |
27461 | fi | |
27462 | done | |
27463 | done | |
27464 | ||
27465 | if test "$ac_find_libraries" != "" ; then | |
27466 | ||
27467 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27468 | result=$? | |
27469 | if test $result = 0; then | |
27470 | ac_path_to_link="" | |
27471 | else | |
27472 | ac_path_to_link=" -L$ac_find_libraries" | |
27473 | fi | |
27474 | ||
27475 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27476 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27477 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27478 | fi | |
27479 | ||
27480 | found_gl=1 | |
27481 | OPENGL_LIBS="-lGL -lGLU" | |
27482 | echo "$as_me:$LINENO: result: yes" >&5 | |
27483 | echo "${ECHO_T}yes" >&6 | |
27484 | fi | |
27485 | fi | |
27486 | ||
27487 | if test "$found_gl" != 1; then | |
27488 | echo "$as_me:$LINENO: result: no" >&5 | |
27489 | echo "${ECHO_T}no" >&6 | |
27490 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27491 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27492 | ||
27493 | ac_find_libraries= | |
27494 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27495 | do | |
27496 | for ac_extension in a so sl dylib; do | |
27497 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27498 | ac_find_libraries=$ac_dir | |
27499 | break 2 | |
27500 | fi | |
27501 | done | |
27502 | done | |
27503 | ||
27504 | if test "$ac_find_libraries" != "" ; then | |
27505 | ||
27506 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27507 | result=$? | |
27508 | if test $result = 0; then | |
27509 | ac_path_to_link="" | |
27510 | else | |
27511 | ac_path_to_link=" -L$ac_find_libraries" | |
27512 | fi | |
27513 | ||
27514 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27515 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27516 | echo "$as_me:$LINENO: result: yes" >&5 | |
27517 | echo "${ECHO_T}yes" >&6 | |
27518 | else | |
27519 | echo "$as_me:$LINENO: result: no" >&5 | |
27520 | echo "${ECHO_T}no" >&6 | |
27521 | fi | |
27522 | fi | |
27523 | ||
27524 | fi | |
27525 | ||
27526 | ||
27527 | ||
27528 | if test "x$OPENGL_LIBS" = "x"; then | |
27529 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27530 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27531 | { (exit 1); exit 1; }; } | |
27532 | fi | |
27533 | fi | |
27534 | ||
27535 | if test "$wxUSE_OPENGL" = "yes"; then | |
27536 | USE_OPENGL=1 | |
27537 | cat >>confdefs.h <<\_ACEOF | |
27538 | #define wxUSE_OPENGL 1 | |
27539 | _ACEOF | |
27540 | ||
27541 | cat >>confdefs.h <<\_ACEOF | |
27542 | #define wxUSE_GLCANVAS 1 | |
27543 | _ACEOF | |
27544 | ||
27545 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27546 | fi | |
27547 | fi | |
27548 | ||
a848cd7e SC |
27549 | |
27550 | if test -n "$TOOLKIT" ; then | |
27551 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27552 | fi | |
27553 | ||
a848cd7e SC |
27554 | |
27555 | ||
27556 | if test "$wxUSE_SHARED" = "yes"; then | |
27557 | case "${host}" in | |
27558 | *-pc-msdosdjgpp ) | |
27559 | wxUSE_SHARED=no | |
27560 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27561 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27562 | ;; | |
27563 | esac | |
27564 | fi | |
27565 | ||
a848cd7e | 27566 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27567 | |
27568 | ||
27569 | found_versioning=no | |
27570 | ||
27571 | ||
27572 | if test $found_versioning = no ; then | |
27573 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27574 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27575 | if test "${wx_cv_version_script+set}" = set; then | |
27576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27577 | else | |
27578 | ||
27579 | echo "VER_1 { *; };" >conftest.sym | |
27580 | echo "int main() { return 0; }" >conftest.cpp | |
27581 | ||
27582 | if { ac_try=' | |
27583 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27584 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27586 | (eval $ac_try) 2>&5 | |
27587 | ac_status=$? | |
27588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27589 | (exit $ac_status); }; } ; then | |
27590 | if test -s conftest.stderr ; then | |
27591 | wx_cv_version_script=no | |
27592 | else | |
27593 | wx_cv_version_script=yes | |
27594 | fi | |
27595 | else | |
27596 | wx_cv_version_script=no | |
27597 | fi | |
27598 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27599 | ||
27600 | fi | |
27601 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27602 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27603 | if test $wx_cv_version_script = yes ; then | |
27604 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27605 | fi | |
27606 | fi | |
27607 | ||
27608 | ||
27609 | case "${host}" in | |
27610 | *-*-linux* | *-*-gnu* ) | |
27611 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27612 | ;; | |
27613 | ||
27614 | *-*-solaris2* ) | |
27615 | if test "$GCC" = yes ; then | |
27616 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27617 | ||
27618 | saveLdflags="$LDFLAGS" | |
27619 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27620 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27621 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27622 | cat >conftest.$ac_ext <<_ACEOF | |
27623 | /* confdefs.h. */ | |
27624 | _ACEOF | |
27625 | cat confdefs.h >>conftest.$ac_ext | |
27626 | cat >>conftest.$ac_ext <<_ACEOF | |
27627 | /* end confdefs.h. */ | |
27628 | ||
27629 | int | |
27630 | main () | |
27631 | { | |
27632 | ||
27633 | ; | |
27634 | return 0; | |
27635 | } | |
27636 | _ACEOF | |
27637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27639 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27640 | ac_status=$? |
ac1cb8d3 VS |
27641 | grep -v '^ *+' conftest.er1 >conftest.err |
27642 | rm -f conftest.er1 | |
27643 | cat conftest.err >&5 | |
a848cd7e SC |
27644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27645 | (exit $ac_status); } && | |
7714864e | 27646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27648 | (eval $ac_try) 2>&5 | |
27649 | ac_status=$? | |
27650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27651 | (exit $ac_status); }; } && | |
27652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27654 | (eval $ac_try) 2>&5 | |
27655 | ac_status=$? | |
27656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27657 | (exit $ac_status); }; }; then | |
27658 | ||
27659 | echo "$as_me:$LINENO: result: yes" >&5 | |
27660 | echo "${ECHO_T}yes" >&6 | |
27661 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
27662 | ||
27663 | else | |
27664 | echo "$as_me: failed program was:" >&5 | |
27665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27666 | ||
27667 | ||
27668 | echo "$as_me:$LINENO: result: no" >&5 | |
27669 | echo "${ECHO_T}no" >&6 | |
27670 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27671 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27672 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27673 | cat >conftest.$ac_ext <<_ACEOF | |
27674 | /* confdefs.h. */ | |
27675 | _ACEOF | |
27676 | cat confdefs.h >>conftest.$ac_ext | |
27677 | cat >>conftest.$ac_ext <<_ACEOF | |
27678 | /* end confdefs.h. */ | |
27679 | ||
27680 | int | |
27681 | main () | |
27682 | { | |
27683 | ||
27684 | ; | |
27685 | return 0; | |
27686 | } | |
27687 | _ACEOF | |
27688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27691 | ac_status=$? |
ac1cb8d3 VS |
27692 | grep -v '^ *+' conftest.er1 >conftest.err |
27693 | rm -f conftest.er1 | |
27694 | cat conftest.err >&5 | |
a848cd7e SC |
27695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27696 | (exit $ac_status); } && | |
7714864e | 27697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27699 | (eval $ac_try) 2>&5 | |
27700 | ac_status=$? | |
27701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27702 | (exit $ac_status); }; } && | |
27703 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27705 | (eval $ac_try) 2>&5 | |
27706 | ac_status=$? | |
27707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27708 | (exit $ac_status); }; }; then | |
27709 | ||
27710 | echo "$as_me:$LINENO: result: yes" >&5 | |
27711 | echo "${ECHO_T}yes" >&6 | |
27712 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
27713 | else | |
27714 | echo "$as_me: failed program was:" >&5 | |
27715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27716 | ||
27717 | ||
27718 | echo "$as_me:$LINENO: result: no" >&5 | |
27719 | echo "${ECHO_T}no" >&6 | |
27720 | ||
27721 | fi | |
ac1cb8d3 VS |
27722 | rm -f conftest.err conftest.$ac_objext \ |
27723 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27724 | |
27725 | fi | |
ac1cb8d3 VS |
27726 | rm -f conftest.err conftest.$ac_objext \ |
27727 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27728 | LDFLAGS="$saveLdflags" |
27729 | else | |
a848cd7e SC |
27730 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
27731 | fi | |
27732 | ;; | |
27733 | ||
27734 | powerpc-*-darwin* ) | |
27735 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27736 | cat <<EOF >change-install-names | |
27737 | #!/bin/sh | |
27738 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27739 | inst_cmd="install_name_tool " | |
27740 | for i in \${libnames} ; do | |
27741 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27742 | done | |
27743 | \${inst_cmd} \${3} | |
27744 | EOF | |
27745 | chmod +x change-install-names | |
27746 | ;; | |
27747 | ||
27748 | *-*-cygwin* | *-*-mingw32* ) | |
27749 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27750 | ;; | |
27751 | ||
27752 | esac | |
ceec2216 RL |
27753 | fi |
27754 | ||
27755 | if test "$wxUSE_SHARED" = "no"; then | |
27756 | config_linkage_component="-static" | |
27757 | SHARED=0 | |
27758 | else | |
27759 | SHARED=1 | |
27760 | fi | |
a848cd7e | 27761 | |
a848cd7e | 27762 | |
ceec2216 RL |
27763 | UNICODE=0 |
27764 | lib_unicode_suffix= | |
27765 | WX_CHARTYPE="ansi" | |
27766 | if test "$wxUSE_UNICODE" = "yes"; then | |
27767 | lib_unicode_suffix=u | |
27768 | WX_CHARTYPE="unicode" | |
27769 | UNICODE=1 | |
a848cd7e SC |
27770 | fi |
27771 | ||
ceec2216 RL |
27772 | lib_debug_suffix= |
27773 | WX_DEBUGTYPE="release" | |
27774 | DEBUG_FLAG=0 | |
27775 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27776 | lib_debug_suffix=d | |
27777 | WX_DEBUGTYPE="debug" | |
27778 | DEBUG_FLAG=1 | |
27779 | fi | |
a848cd7e | 27780 | |
ceec2216 RL |
27781 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27782 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27783 | |
ceec2216 RL |
27784 | DEBUG_INFO=0 |
27785 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27786 | DEBUG_INFO=1 | |
27787 | fi | |
a848cd7e | 27788 | |
ceec2216 | 27789 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 27790 | |
ceec2216 | 27791 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 27792 | |
ceec2216 | 27793 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 27794 | |
ceec2216 RL |
27795 | if test "$cross_compiling" = "yes"; then |
27796 | HOST_SUFFIX="-$host_alias" | |
27797 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
27798 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
27799 | fi |
27800 | ||
dd21ced8 | 27801 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
27802 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
27803 | ||
27804 | ||
27805 | ||
a848cd7e | 27806 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
ceec2216 RL |
27807 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r" |
27808 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc" | |
27809 | ||
a848cd7e | 27810 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
27811 | |
27812 | # Extract the first word of "Rez", so it can be a program name with args. | |
27813 | set dummy Rez; ac_word=$2 | |
27814 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27816 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27818 | else | |
27819 | if test -n "$RESCOMP"; then | |
27820 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27821 | else | |
27822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27823 | for as_dir in $PATH | |
27824 | do | |
27825 | IFS=$as_save_IFS | |
27826 | test -z "$as_dir" && as_dir=. | |
27827 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27828 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27829 | ac_cv_prog_RESCOMP="Rez" | |
27830 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27831 | break 2 | |
27832 | fi | |
27833 | done | |
27834 | done | |
27835 | ||
27836 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27837 | fi | |
27838 | fi | |
27839 | RESCOMP=$ac_cv_prog_RESCOMP | |
27840 | if test -n "$RESCOMP"; then | |
27841 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27842 | echo "${ECHO_T}$RESCOMP" >&6 | |
27843 | else | |
27844 | echo "$as_me:$LINENO: result: no" >&5 | |
27845 | echo "${ECHO_T}no" >&6 | |
27846 | fi | |
27847 | ||
27848 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27849 | set dummy DeRez; ac_word=$2 | |
27850 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27852 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27854 | else | |
27855 | if test -n "$DEREZ"; then | |
27856 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27857 | else | |
27858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27859 | for as_dir in $PATH | |
27860 | do | |
27861 | IFS=$as_save_IFS | |
27862 | test -z "$as_dir" && as_dir=. | |
27863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27864 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27865 | ac_cv_prog_DEREZ="DeRez" | |
27866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27867 | break 2 | |
27868 | fi | |
27869 | done | |
27870 | done | |
27871 | ||
27872 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27873 | fi | |
27874 | fi | |
27875 | DEREZ=$ac_cv_prog_DEREZ | |
27876 | if test -n "$DEREZ"; then | |
27877 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27878 | echo "${ECHO_T}$DEREZ" >&6 | |
27879 | else | |
27880 | echo "$as_me:$LINENO: result: no" >&5 | |
27881 | echo "${ECHO_T}no" >&6 | |
27882 | fi | |
27883 | ||
27884 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27885 | set dummy SetFile; ac_word=$2 | |
27886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27888 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27890 | else | |
27891 | if test -n "$SETFILE"; then | |
27892 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27893 | else | |
27894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27895 | for as_dir in $PATH | |
27896 | do | |
27897 | IFS=$as_save_IFS | |
27898 | test -z "$as_dir" && as_dir=. | |
27899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27900 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27901 | ac_cv_prog_SETFILE="SetFile" | |
27902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27903 | break 2 | |
27904 | fi | |
27905 | done | |
27906 | done | |
27907 | ||
27908 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27909 | fi | |
27910 | fi | |
27911 | SETFILE=$ac_cv_prog_SETFILE | |
27912 | if test -n "$SETFILE"; then | |
27913 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27914 | echo "${ECHO_T}$SETFILE" >&6 | |
27915 | else | |
27916 | echo "$as_me:$LINENO: result: no" >&5 | |
27917 | echo "${ECHO_T}no" >&6 | |
27918 | fi | |
27919 | ||
27920 | ||
27921 | MACSETFILE="\$(SETFILE)" | |
27922 | ||
27923 | if test "$wxUSE_MAC" = 1; then | |
27924 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27925 | ||
27926 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27927 | else | |
27928 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27929 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27930 | fi | |
27931 | else | |
27932 | MACSETFILE="@#" | |
27933 | MACRESWXCONFIG="#" | |
27934 | ||
27935 | if test "$wxUSE_PM" = 1; then | |
27936 | MACRESCOMP="emxbind -ep" | |
27937 | else | |
27938 | MACRESCOMP="@#" | |
27939 | fi | |
27940 | fi | |
27941 | ||
27942 | ||
27943 | ||
27944 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27945 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27946 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27948 | else | |
27949 | cat >conftest.$ac_ext <<_ACEOF | |
27950 | /* confdefs.h. */ | |
27951 | _ACEOF | |
27952 | cat confdefs.h >>conftest.$ac_ext | |
27953 | cat >>conftest.$ac_ext <<_ACEOF | |
27954 | /* end confdefs.h. */ | |
27955 | $ac_includes_default | |
27956 | int | |
27957 | main () | |
27958 | { | |
27959 | if ((mode_t *) 0) | |
27960 | return 0; | |
27961 | if (sizeof (mode_t)) | |
27962 | return 0; | |
27963 | ; | |
27964 | return 0; | |
27965 | } | |
27966 | _ACEOF | |
27967 | rm -f conftest.$ac_objext | |
27968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27969 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27970 | ac_status=$? |
ac1cb8d3 VS |
27971 | grep -v '^ *+' conftest.er1 >conftest.err |
27972 | rm -f conftest.er1 | |
27973 | cat conftest.err >&5 | |
a848cd7e SC |
27974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27975 | (exit $ac_status); } && | |
7714864e | 27976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27978 | (eval $ac_try) 2>&5 | |
27979 | ac_status=$? | |
27980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27981 | (exit $ac_status); }; } && | |
27982 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27984 | (eval $ac_try) 2>&5 | |
27985 | ac_status=$? | |
27986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27987 | (exit $ac_status); }; }; then | |
27988 | ac_cv_type_mode_t=yes | |
27989 | else | |
27990 | echo "$as_me: failed program was:" >&5 | |
27991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27992 | ||
27993 | ac_cv_type_mode_t=no | |
27994 | fi | |
ac1cb8d3 | 27995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27996 | fi |
27997 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
27998 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27999 | if test $ac_cv_type_mode_t = yes; then | |
28000 | : | |
28001 | else | |
28002 | ||
28003 | cat >>confdefs.h <<_ACEOF | |
28004 | #define mode_t int | |
28005 | _ACEOF | |
28006 | ||
28007 | fi | |
28008 | ||
28009 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
28010 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28011 | if test "${ac_cv_type_off_t+set}" = set; then | |
28012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28013 | else | |
28014 | cat >conftest.$ac_ext <<_ACEOF | |
28015 | /* confdefs.h. */ | |
28016 | _ACEOF | |
28017 | cat confdefs.h >>conftest.$ac_ext | |
28018 | cat >>conftest.$ac_ext <<_ACEOF | |
28019 | /* end confdefs.h. */ | |
28020 | $ac_includes_default | |
28021 | int | |
28022 | main () | |
28023 | { | |
28024 | if ((off_t *) 0) | |
28025 | return 0; | |
28026 | if (sizeof (off_t)) | |
28027 | return 0; | |
28028 | ; | |
28029 | return 0; | |
28030 | } | |
28031 | _ACEOF | |
28032 | rm -f conftest.$ac_objext | |
28033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28034 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28035 | ac_status=$? |
ac1cb8d3 VS |
28036 | grep -v '^ *+' conftest.er1 >conftest.err |
28037 | rm -f conftest.er1 | |
28038 | cat conftest.err >&5 | |
a848cd7e SC |
28039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28040 | (exit $ac_status); } && | |
7714864e | 28041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28043 | (eval $ac_try) 2>&5 | |
28044 | ac_status=$? | |
28045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28046 | (exit $ac_status); }; } && | |
28047 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28049 | (eval $ac_try) 2>&5 | |
28050 | ac_status=$? | |
28051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28052 | (exit $ac_status); }; }; then | |
28053 | ac_cv_type_off_t=yes | |
28054 | else | |
28055 | echo "$as_me: failed program was:" >&5 | |
28056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28057 | ||
28058 | ac_cv_type_off_t=no | |
28059 | fi | |
ac1cb8d3 | 28060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28061 | fi |
28062 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28063 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28064 | if test $ac_cv_type_off_t = yes; then | |
28065 | : | |
28066 | else | |
28067 | ||
28068 | cat >>confdefs.h <<_ACEOF | |
28069 | #define off_t long | |
28070 | _ACEOF | |
28071 | ||
28072 | fi | |
28073 | ||
28074 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28075 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28076 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28078 | else | |
28079 | cat >conftest.$ac_ext <<_ACEOF | |
28080 | /* confdefs.h. */ | |
28081 | _ACEOF | |
28082 | cat confdefs.h >>conftest.$ac_ext | |
28083 | cat >>conftest.$ac_ext <<_ACEOF | |
28084 | /* end confdefs.h. */ | |
28085 | $ac_includes_default | |
28086 | int | |
28087 | main () | |
28088 | { | |
28089 | if ((pid_t *) 0) | |
28090 | return 0; | |
28091 | if (sizeof (pid_t)) | |
28092 | return 0; | |
28093 | ; | |
28094 | return 0; | |
28095 | } | |
28096 | _ACEOF | |
28097 | rm -f conftest.$ac_objext | |
28098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28100 | ac_status=$? |
ac1cb8d3 VS |
28101 | grep -v '^ *+' conftest.er1 >conftest.err |
28102 | rm -f conftest.er1 | |
28103 | cat conftest.err >&5 | |
a848cd7e SC |
28104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28105 | (exit $ac_status); } && | |
7714864e | 28106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28108 | (eval $ac_try) 2>&5 | |
28109 | ac_status=$? | |
28110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28111 | (exit $ac_status); }; } && | |
28112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28114 | (eval $ac_try) 2>&5 | |
28115 | ac_status=$? | |
28116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28117 | (exit $ac_status); }; }; then | |
28118 | ac_cv_type_pid_t=yes | |
28119 | else | |
28120 | echo "$as_me: failed program was:" >&5 | |
28121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28122 | ||
28123 | ac_cv_type_pid_t=no | |
28124 | fi | |
ac1cb8d3 | 28125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28126 | fi |
28127 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28128 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28129 | if test $ac_cv_type_pid_t = yes; then | |
28130 | : | |
28131 | else | |
28132 | ||
28133 | cat >>confdefs.h <<_ACEOF | |
28134 | #define pid_t int | |
28135 | _ACEOF | |
28136 | ||
28137 | fi | |
28138 | ||
28139 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28140 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28141 | if test "${ac_cv_type_size_t+set}" = set; then | |
28142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28143 | else | |
28144 | cat >conftest.$ac_ext <<_ACEOF | |
28145 | /* confdefs.h. */ | |
28146 | _ACEOF | |
28147 | cat confdefs.h >>conftest.$ac_ext | |
28148 | cat >>conftest.$ac_ext <<_ACEOF | |
28149 | /* end confdefs.h. */ | |
28150 | $ac_includes_default | |
28151 | int | |
28152 | main () | |
28153 | { | |
28154 | if ((size_t *) 0) | |
28155 | return 0; | |
28156 | if (sizeof (size_t)) | |
28157 | return 0; | |
28158 | ; | |
28159 | return 0; | |
28160 | } | |
28161 | _ACEOF | |
28162 | rm -f conftest.$ac_objext | |
28163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28164 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28165 | ac_status=$? |
ac1cb8d3 VS |
28166 | grep -v '^ *+' conftest.er1 >conftest.err |
28167 | rm -f conftest.er1 | |
28168 | cat conftest.err >&5 | |
a848cd7e SC |
28169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28170 | (exit $ac_status); } && | |
7714864e | 28171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28173 | (eval $ac_try) 2>&5 | |
28174 | ac_status=$? | |
28175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28176 | (exit $ac_status); }; } && | |
28177 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28179 | (eval $ac_try) 2>&5 | |
28180 | ac_status=$? | |
28181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28182 | (exit $ac_status); }; }; then | |
28183 | ac_cv_type_size_t=yes | |
28184 | else | |
28185 | echo "$as_me: failed program was:" >&5 | |
28186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28187 | ||
28188 | ac_cv_type_size_t=no | |
28189 | fi | |
ac1cb8d3 | 28190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28191 | fi |
28192 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28193 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28194 | if test $ac_cv_type_size_t = yes; then | |
28195 | : | |
28196 | else | |
28197 | ||
28198 | cat >>confdefs.h <<_ACEOF | |
28199 | #define size_t unsigned | |
28200 | _ACEOF | |
28201 | ||
28202 | fi | |
28203 | ||
28204 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28205 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28206 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28208 | else | |
28209 | cat >conftest.$ac_ext <<_ACEOF | |
28210 | /* confdefs.h. */ | |
28211 | _ACEOF | |
28212 | cat confdefs.h >>conftest.$ac_ext | |
28213 | cat >>conftest.$ac_ext <<_ACEOF | |
28214 | /* end confdefs.h. */ | |
28215 | #include <sys/types.h> | |
28216 | ||
28217 | _ACEOF | |
28218 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28219 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28220 | ac_cv_type_uid_t=yes | |
28221 | else | |
28222 | ac_cv_type_uid_t=no | |
28223 | fi | |
28224 | rm -f conftest* | |
28225 | ||
28226 | fi | |
28227 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28228 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28229 | if test $ac_cv_type_uid_t = no; then | |
28230 | ||
28231 | cat >>confdefs.h <<\_ACEOF | |
28232 | #define uid_t int | |
28233 | _ACEOF | |
28234 | ||
28235 | ||
28236 | cat >>confdefs.h <<\_ACEOF | |
28237 | #define gid_t int | |
28238 | _ACEOF | |
28239 | ||
28240 | fi | |
28241 | ||
28242 | ||
28243 | ||
28244 | ||
28245 | ac_ext=cc | |
28246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28250 | ||
28251 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28252 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28253 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28255 | else | |
28256 | ||
28257 | cat >conftest.$ac_ext <<_ACEOF | |
28258 | /* confdefs.h. */ | |
28259 | _ACEOF | |
28260 | cat confdefs.h >>conftest.$ac_ext | |
28261 | cat >>conftest.$ac_ext <<_ACEOF | |
28262 | /* end confdefs.h. */ | |
28263 | #include <stddef.h> | |
28264 | int | |
28265 | main () | |
28266 | { | |
28267 | ||
28268 | return 0; } | |
28269 | ||
28270 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28271 | ||
28272 | int bar() { | |
28273 | ||
28274 | ; | |
28275 | return 0; | |
28276 | } | |
28277 | _ACEOF | |
28278 | rm -f conftest.$ac_objext | |
28279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28281 | ac_status=$? |
ac1cb8d3 VS |
28282 | grep -v '^ *+' conftest.er1 >conftest.err |
28283 | rm -f conftest.er1 | |
28284 | cat conftest.err >&5 | |
a848cd7e SC |
28285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28286 | (exit $ac_status); } && | |
7714864e | 28287 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28289 | (eval $ac_try) 2>&5 | |
28290 | ac_status=$? | |
28291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28292 | (exit $ac_status); }; } && | |
28293 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28295 | (eval $ac_try) 2>&5 | |
28296 | ac_status=$? | |
28297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28298 | (exit $ac_status); }; }; then | |
28299 | wx_cv_size_t_is_uint=no | |
28300 | else | |
28301 | echo "$as_me: failed program was:" >&5 | |
28302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28303 | ||
28304 | wx_cv_size_t_is_uint=yes | |
28305 | ||
28306 | fi | |
ac1cb8d3 | 28307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28308 | |
28309 | ||
28310 | fi | |
28311 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28312 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28313 | ||
28314 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28315 | cat >>confdefs.h <<\_ACEOF | |
28316 | #define wxSIZE_T_IS_UINT 1 | |
28317 | _ACEOF | |
28318 | ||
28319 | else | |
28320 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28321 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28322 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28324 | else | |
28325 | cat >conftest.$ac_ext <<_ACEOF | |
28326 | /* confdefs.h. */ | |
28327 | _ACEOF | |
28328 | cat confdefs.h >>conftest.$ac_ext | |
28329 | cat >>conftest.$ac_ext <<_ACEOF | |
28330 | /* end confdefs.h. */ | |
28331 | #include <stddef.h> | |
28332 | int | |
28333 | main () | |
28334 | { | |
28335 | ||
28336 | return 0; } | |
28337 | ||
28338 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28339 | ||
28340 | int bar() { | |
28341 | ||
28342 | ; | |
28343 | return 0; | |
28344 | } | |
28345 | _ACEOF | |
28346 | rm -f conftest.$ac_objext | |
28347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28349 | ac_status=$? |
ac1cb8d3 VS |
28350 | grep -v '^ *+' conftest.er1 >conftest.err |
28351 | rm -f conftest.er1 | |
28352 | cat conftest.err >&5 | |
a848cd7e SC |
28353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28354 | (exit $ac_status); } && | |
7714864e | 28355 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28357 | (eval $ac_try) 2>&5 | |
28358 | ac_status=$? | |
28359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28360 | (exit $ac_status); }; } && | |
28361 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28363 | (eval $ac_try) 2>&5 | |
28364 | ac_status=$? | |
28365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28366 | (exit $ac_status); }; }; then | |
28367 | wx_cv_size_t_is_ulong=no | |
28368 | else | |
28369 | echo "$as_me: failed program was:" >&5 | |
28370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28371 | ||
28372 | wx_cv_size_t_is_ulong=yes | |
28373 | ||
28374 | fi | |
ac1cb8d3 | 28375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28376 | |
28377 | fi | |
28378 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28379 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28380 | ||
28381 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28382 | cat >>confdefs.h <<\_ACEOF | |
28383 | #define wxSIZE_T_IS_ULONG 1 | |
28384 | _ACEOF | |
28385 | ||
28386 | fi | |
28387 | fi | |
28388 | ||
28389 | ac_ext=c | |
28390 | ac_cpp='$CPP $CPPFLAGS' | |
28391 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28392 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28393 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28394 | ||
28395 | ||
28396 | ||
28397 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28398 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28399 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28401 | else | |
28402 | ||
28403 | cat >conftest.$ac_ext <<_ACEOF | |
28404 | /* confdefs.h. */ | |
28405 | _ACEOF | |
28406 | cat confdefs.h >>conftest.$ac_ext | |
28407 | cat >>conftest.$ac_ext <<_ACEOF | |
28408 | /* end confdefs.h. */ | |
28409 | #include <pwd.h> | |
28410 | int | |
28411 | main () | |
28412 | { | |
28413 | ||
28414 | char *p; | |
28415 | struct passwd *pw; | |
28416 | p = pw->pw_gecos; | |
28417 | ||
28418 | ; | |
28419 | return 0; | |
28420 | } | |
28421 | _ACEOF | |
28422 | rm -f conftest.$ac_objext | |
28423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28425 | ac_status=$? |
ac1cb8d3 VS |
28426 | grep -v '^ *+' conftest.er1 >conftest.err |
28427 | rm -f conftest.er1 | |
28428 | cat conftest.err >&5 | |
a848cd7e SC |
28429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28430 | (exit $ac_status); } && | |
7714864e | 28431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28433 | (eval $ac_try) 2>&5 | |
28434 | ac_status=$? | |
28435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28436 | (exit $ac_status); }; } && | |
28437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28439 | (eval $ac_try) 2>&5 | |
28440 | ac_status=$? | |
28441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28442 | (exit $ac_status); }; }; then | |
28443 | ||
28444 | wx_cv_struct_pw_gecos=yes | |
28445 | ||
28446 | else | |
28447 | echo "$as_me: failed program was:" >&5 | |
28448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28449 | ||
28450 | ||
28451 | wx_cv_struct_pw_gecos=no | |
28452 | ||
28453 | ||
28454 | fi | |
ac1cb8d3 | 28455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28456 | |
28457 | ||
28458 | fi | |
28459 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28460 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28461 | ||
28462 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28463 | cat >>confdefs.h <<\_ACEOF | |
28464 | #define HAVE_PW_GECOS 1 | |
28465 | _ACEOF | |
28466 | ||
28467 | fi | |
28468 | ||
28469 | ||
28470 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28471 | cat >>confdefs.h <<\_ACEOF | |
28472 | #define wxUSE_WCHAR_T 1 | |
28473 | _ACEOF | |
28474 | ||
28475 | ||
28476 | WCSLEN_FOUND=0 | |
28477 | WCHAR_LINK= | |
28478 | ||
28479 | for ac_func in wcslen | |
28480 | do | |
28481 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28482 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28483 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28484 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28486 | else | |
28487 | cat >conftest.$ac_ext <<_ACEOF | |
28488 | /* confdefs.h. */ | |
28489 | _ACEOF | |
28490 | cat confdefs.h >>conftest.$ac_ext | |
28491 | cat >>conftest.$ac_ext <<_ACEOF | |
28492 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28493 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28494 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28495 | #define $ac_func innocuous_$ac_func | |
28496 | ||
a848cd7e SC |
28497 | /* System header to define __stub macros and hopefully few prototypes, |
28498 | which can conflict with char $ac_func (); below. | |
28499 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28500 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28501 | |
a848cd7e SC |
28502 | #ifdef __STDC__ |
28503 | # include <limits.h> | |
28504 | #else | |
28505 | # include <assert.h> | |
28506 | #endif | |
ac1cb8d3 VS |
28507 | |
28508 | #undef $ac_func | |
28509 | ||
a848cd7e SC |
28510 | /* Override any gcc2 internal prototype to avoid an error. */ |
28511 | #ifdef __cplusplus | |
28512 | extern "C" | |
28513 | { | |
28514 | #endif | |
28515 | /* We use char because int might match the return type of a gcc2 | |
28516 | builtin and then its argument prototype would still apply. */ | |
28517 | char $ac_func (); | |
28518 | /* The GNU C library defines this for functions which it implements | |
28519 | to always fail with ENOSYS. Some functions are actually named | |
28520 | something starting with __ and the normal name is an alias. */ | |
28521 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28522 | choke me | |
28523 | #else | |
28524 | char (*f) () = $ac_func; | |
28525 | #endif | |
28526 | #ifdef __cplusplus | |
28527 | } | |
28528 | #endif | |
28529 | ||
28530 | int | |
28531 | main () | |
28532 | { | |
28533 | return f != $ac_func; | |
28534 | ; | |
28535 | return 0; | |
28536 | } | |
28537 | _ACEOF | |
28538 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28540 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28541 | ac_status=$? |
ac1cb8d3 VS |
28542 | grep -v '^ *+' conftest.er1 >conftest.err |
28543 | rm -f conftest.er1 | |
28544 | cat conftest.err >&5 | |
a848cd7e SC |
28545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28546 | (exit $ac_status); } && | |
7714864e | 28547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28549 | (eval $ac_try) 2>&5 | |
28550 | ac_status=$? | |
28551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28552 | (exit $ac_status); }; } && | |
28553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28555 | (eval $ac_try) 2>&5 | |
28556 | ac_status=$? | |
28557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28558 | (exit $ac_status); }; }; then | |
28559 | eval "$as_ac_var=yes" | |
28560 | else | |
28561 | echo "$as_me: failed program was:" >&5 | |
28562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28563 | ||
28564 | eval "$as_ac_var=no" | |
28565 | fi | |
ac1cb8d3 VS |
28566 | rm -f conftest.err conftest.$ac_objext \ |
28567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28568 | fi |
28569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28570 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28571 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28572 | cat >>confdefs.h <<_ACEOF | |
28573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28574 | _ACEOF | |
28575 | WCSLEN_FOUND=1 | |
28576 | fi | |
28577 | done | |
28578 | ||
28579 | ||
28580 | if test "$WCSLEN_FOUND" = 0; then | |
28581 | if test "$TOOLKIT" = "MSW"; then | |
28582 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28583 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28584 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28586 | else | |
28587 | ac_check_lib_save_LIBS=$LIBS | |
28588 | LIBS="-lmsvcrt $LIBS" | |
28589 | cat >conftest.$ac_ext <<_ACEOF | |
28590 | /* confdefs.h. */ | |
28591 | _ACEOF | |
28592 | cat confdefs.h >>conftest.$ac_ext | |
28593 | cat >>conftest.$ac_ext <<_ACEOF | |
28594 | /* end confdefs.h. */ | |
28595 | ||
28596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28597 | #ifdef __cplusplus | |
28598 | extern "C" | |
28599 | #endif | |
28600 | /* We use char because int might match the return type of a gcc2 | |
28601 | builtin and then its argument prototype would still apply. */ | |
28602 | char wcslen (); | |
28603 | int | |
28604 | main () | |
28605 | { | |
28606 | wcslen (); | |
28607 | ; | |
28608 | return 0; | |
28609 | } | |
28610 | _ACEOF | |
28611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28613 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28614 | ac_status=$? |
ac1cb8d3 VS |
28615 | grep -v '^ *+' conftest.er1 >conftest.err |
28616 | rm -f conftest.er1 | |
28617 | cat conftest.err >&5 | |
a848cd7e SC |
28618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28619 | (exit $ac_status); } && | |
7714864e | 28620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28622 | (eval $ac_try) 2>&5 | |
28623 | ac_status=$? | |
28624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28625 | (exit $ac_status); }; } && | |
28626 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28628 | (eval $ac_try) 2>&5 | |
28629 | ac_status=$? | |
28630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28631 | (exit $ac_status); }; }; then | |
28632 | ac_cv_lib_msvcrt_wcslen=yes | |
28633 | else | |
28634 | echo "$as_me: failed program was:" >&5 | |
28635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28636 | ||
28637 | ac_cv_lib_msvcrt_wcslen=no | |
28638 | fi | |
ac1cb8d3 VS |
28639 | rm -f conftest.err conftest.$ac_objext \ |
28640 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28641 | LIBS=$ac_check_lib_save_LIBS |
28642 | fi | |
28643 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28644 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28645 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28646 | WCHAR_OK=1 | |
28647 | fi | |
28648 | ||
28649 | else | |
28650 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28651 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28652 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28654 | else | |
28655 | ac_check_lib_save_LIBS=$LIBS | |
28656 | LIBS="-lw $LIBS" | |
28657 | cat >conftest.$ac_ext <<_ACEOF | |
28658 | /* confdefs.h. */ | |
28659 | _ACEOF | |
28660 | cat confdefs.h >>conftest.$ac_ext | |
28661 | cat >>conftest.$ac_ext <<_ACEOF | |
28662 | /* end confdefs.h. */ | |
28663 | ||
28664 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28665 | #ifdef __cplusplus | |
28666 | extern "C" | |
28667 | #endif | |
28668 | /* We use char because int might match the return type of a gcc2 | |
28669 | builtin and then its argument prototype would still apply. */ | |
28670 | char wcslen (); | |
28671 | int | |
28672 | main () | |
28673 | { | |
28674 | wcslen (); | |
28675 | ; | |
28676 | return 0; | |
28677 | } | |
28678 | _ACEOF | |
28679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28681 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28682 | ac_status=$? |
ac1cb8d3 VS |
28683 | grep -v '^ *+' conftest.er1 >conftest.err |
28684 | rm -f conftest.er1 | |
28685 | cat conftest.err >&5 | |
a848cd7e SC |
28686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28687 | (exit $ac_status); } && | |
7714864e | 28688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28690 | (eval $ac_try) 2>&5 | |
28691 | ac_status=$? | |
28692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28693 | (exit $ac_status); }; } && | |
28694 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28696 | (eval $ac_try) 2>&5 | |
28697 | ac_status=$? | |
28698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28699 | (exit $ac_status); }; }; then | |
28700 | ac_cv_lib_w_wcslen=yes | |
28701 | else | |
28702 | echo "$as_me: failed program was:" >&5 | |
28703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28704 | ||
28705 | ac_cv_lib_w_wcslen=no | |
28706 | fi | |
ac1cb8d3 VS |
28707 | rm -f conftest.err conftest.$ac_objext \ |
28708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28709 | LIBS=$ac_check_lib_save_LIBS |
28710 | fi | |
28711 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28712 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28713 | if test $ac_cv_lib_w_wcslen = yes; then | |
28714 | ||
28715 | WCHAR_LINK=" -lw" | |
28716 | WCSLEN_FOUND=1 | |
28717 | ||
28718 | fi | |
28719 | ||
28720 | fi | |
28721 | fi | |
28722 | ||
28723 | if test "$WCSLEN_FOUND" = 1; then | |
28724 | cat >>confdefs.h <<\_ACEOF | |
28725 | #define HAVE_WCSLEN 1 | |
28726 | _ACEOF | |
28727 | ||
28728 | fi | |
28729 | ||
473276a9 VS |
28730 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28731 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28732 | fi | |
28733 | ||
a848cd7e SC |
28734 | |
28735 | for ac_func in wcsrtombs | |
28736 | do | |
28737 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28738 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28739 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28740 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28742 | else | |
28743 | cat >conftest.$ac_ext <<_ACEOF | |
28744 | /* confdefs.h. */ | |
28745 | _ACEOF | |
28746 | cat confdefs.h >>conftest.$ac_ext | |
28747 | cat >>conftest.$ac_ext <<_ACEOF | |
28748 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28749 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28750 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28751 | #define $ac_func innocuous_$ac_func | |
28752 | ||
a848cd7e SC |
28753 | /* System header to define __stub macros and hopefully few prototypes, |
28754 | which can conflict with char $ac_func (); below. | |
28755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28756 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28757 | |
a848cd7e SC |
28758 | #ifdef __STDC__ |
28759 | # include <limits.h> | |
28760 | #else | |
28761 | # include <assert.h> | |
28762 | #endif | |
ac1cb8d3 VS |
28763 | |
28764 | #undef $ac_func | |
28765 | ||
a848cd7e SC |
28766 | /* Override any gcc2 internal prototype to avoid an error. */ |
28767 | #ifdef __cplusplus | |
28768 | extern "C" | |
28769 | { | |
28770 | #endif | |
28771 | /* We use char because int might match the return type of a gcc2 | |
28772 | builtin and then its argument prototype would still apply. */ | |
28773 | char $ac_func (); | |
28774 | /* The GNU C library defines this for functions which it implements | |
28775 | to always fail with ENOSYS. Some functions are actually named | |
28776 | something starting with __ and the normal name is an alias. */ | |
28777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28778 | choke me | |
28779 | #else | |
28780 | char (*f) () = $ac_func; | |
28781 | #endif | |
28782 | #ifdef __cplusplus | |
28783 | } | |
28784 | #endif | |
28785 | ||
28786 | int | |
28787 | main () | |
28788 | { | |
28789 | return f != $ac_func; | |
28790 | ; | |
28791 | return 0; | |
28792 | } | |
28793 | _ACEOF | |
28794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28796 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28797 | ac_status=$? |
ac1cb8d3 VS |
28798 | grep -v '^ *+' conftest.er1 >conftest.err |
28799 | rm -f conftest.er1 | |
28800 | cat conftest.err >&5 | |
a848cd7e SC |
28801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28802 | (exit $ac_status); } && | |
7714864e | 28803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 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); }; } && | |
28809 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28811 | (eval $ac_try) 2>&5 | |
28812 | ac_status=$? | |
28813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28814 | (exit $ac_status); }; }; then | |
28815 | eval "$as_ac_var=yes" | |
28816 | else | |
28817 | echo "$as_me: failed program was:" >&5 | |
28818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28819 | ||
28820 | eval "$as_ac_var=no" | |
28821 | fi | |
ac1cb8d3 VS |
28822 | rm -f conftest.err conftest.$ac_objext \ |
28823 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28824 | fi |
28825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28826 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28827 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28828 | cat >>confdefs.h <<_ACEOF | |
28829 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28830 | _ACEOF | |
28831 | ||
28832 | fi | |
28833 | done | |
28834 | ||
28835 | else | |
28836 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28837 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28838 | fi | |
28839 | ||
28840 | ||
28841 | ||
28842 | ac_ext=cc | |
28843 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28847 | ||
28848 | ||
28849 | ||
28850 | for ac_func in vsnprintf | |
28851 | do | |
28852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28855 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28857 | else | |
28858 | cat >conftest.$ac_ext <<_ACEOF | |
28859 | /* confdefs.h. */ | |
28860 | _ACEOF | |
28861 | cat confdefs.h >>conftest.$ac_ext | |
28862 | cat >>conftest.$ac_ext <<_ACEOF | |
28863 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28866 | #define $ac_func innocuous_$ac_func | |
28867 | ||
a848cd7e SC |
28868 | /* System header to define __stub macros and hopefully few prototypes, |
28869 | which can conflict with char $ac_func (); below. | |
28870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28871 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28872 | |
a848cd7e SC |
28873 | #ifdef __STDC__ |
28874 | # include <limits.h> | |
28875 | #else | |
28876 | # include <assert.h> | |
28877 | #endif | |
ac1cb8d3 VS |
28878 | |
28879 | #undef $ac_func | |
28880 | ||
a848cd7e SC |
28881 | /* Override any gcc2 internal prototype to avoid an error. */ |
28882 | #ifdef __cplusplus | |
28883 | extern "C" | |
28884 | { | |
28885 | #endif | |
28886 | /* We use char because int might match the return type of a gcc2 | |
28887 | builtin and then its argument prototype would still apply. */ | |
28888 | char $ac_func (); | |
28889 | /* The GNU C library defines this for functions which it implements | |
28890 | to always fail with ENOSYS. Some functions are actually named | |
28891 | something starting with __ and the normal name is an alias. */ | |
28892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28893 | choke me | |
28894 | #else | |
28895 | char (*f) () = $ac_func; | |
28896 | #endif | |
28897 | #ifdef __cplusplus | |
28898 | } | |
28899 | #endif | |
28900 | ||
28901 | int | |
28902 | main () | |
28903 | { | |
28904 | return f != $ac_func; | |
28905 | ; | |
28906 | return 0; | |
28907 | } | |
28908 | _ACEOF | |
28909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28911 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28912 | ac_status=$? |
ac1cb8d3 VS |
28913 | grep -v '^ *+' conftest.er1 >conftest.err |
28914 | rm -f conftest.er1 | |
28915 | cat conftest.err >&5 | |
a848cd7e SC |
28916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28917 | (exit $ac_status); } && | |
7714864e | 28918 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28920 | (eval $ac_try) 2>&5 | |
28921 | ac_status=$? | |
28922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28923 | (exit $ac_status); }; } && | |
28924 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28926 | (eval $ac_try) 2>&5 | |
28927 | ac_status=$? | |
28928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28929 | (exit $ac_status); }; }; then | |
28930 | eval "$as_ac_var=yes" | |
28931 | else | |
28932 | echo "$as_me: failed program was:" >&5 | |
28933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28934 | ||
28935 | eval "$as_ac_var=no" | |
28936 | fi | |
ac1cb8d3 VS |
28937 | rm -f conftest.err conftest.$ac_objext \ |
28938 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28939 | fi |
28940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28941 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28942 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28943 | cat >>confdefs.h <<_ACEOF | |
28944 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28945 | _ACEOF | |
28946 | ||
28947 | fi | |
28948 | done | |
28949 | ||
28950 | ||
28951 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28952 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28953 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28954 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28956 | else | |
28957 | ||
28958 | cat >conftest.$ac_ext <<_ACEOF | |
28959 | /* confdefs.h. */ | |
28960 | _ACEOF | |
28961 | cat confdefs.h >>conftest.$ac_ext | |
28962 | cat >>conftest.$ac_ext <<_ACEOF | |
28963 | /* end confdefs.h. */ | |
28964 | ||
28965 | #include <stdio.h> | |
28966 | #include <stdarg.h> | |
28967 | ||
28968 | int | |
28969 | main () | |
28970 | { | |
28971 | ||
28972 | char *buf; | |
28973 | va_list ap; | |
28974 | vsnprintf(buf, 10u, "%s", ap); | |
28975 | ||
28976 | ; | |
28977 | return 0; | |
28978 | } | |
28979 | _ACEOF | |
28980 | rm -f conftest.$ac_objext | |
28981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28982 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28983 | ac_status=$? |
ac1cb8d3 VS |
28984 | grep -v '^ *+' conftest.er1 >conftest.err |
28985 | rm -f conftest.er1 | |
28986 | cat conftest.err >&5 | |
a848cd7e SC |
28987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28988 | (exit $ac_status); } && | |
7714864e | 28989 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28991 | (eval $ac_try) 2>&5 | |
28992 | ac_status=$? | |
28993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28994 | (exit $ac_status); }; } && | |
28995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28997 | (eval $ac_try) 2>&5 | |
28998 | ac_status=$? | |
28999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29000 | (exit $ac_status); }; }; then | |
29001 | wx_cv_func_vsnprintf_decl=yes | |
29002 | else | |
29003 | echo "$as_me: failed program was:" >&5 | |
29004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29005 | ||
29006 | wx_cv_func_vsnprintf_decl=no | |
29007 | ||
29008 | fi | |
ac1cb8d3 | 29009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29010 | |
29011 | ||
29012 | fi | |
29013 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29014 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29015 | ||
29016 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29017 | cat >>confdefs.h <<\_ACEOF | |
29018 | #define HAVE_VSNPRINTF_DECL 1 | |
29019 | _ACEOF | |
29020 | ||
29021 | fi | |
29022 | fi | |
29023 | ||
29024 | if test "$wxUSE_UNICODE" = yes; then | |
29025 | ||
29026 | ||
29027 | ||
fbe47c7b VS |
29028 | |
29029 | ||
29030 | ||
29031 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29032 | do |
29033 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29034 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29035 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29036 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29038 | else | |
29039 | cat >conftest.$ac_ext <<_ACEOF | |
29040 | /* confdefs.h. */ | |
29041 | _ACEOF | |
29042 | cat confdefs.h >>conftest.$ac_ext | |
29043 | cat >>conftest.$ac_ext <<_ACEOF | |
29044 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29047 | #define $ac_func innocuous_$ac_func | |
29048 | ||
a848cd7e SC |
29049 | /* System header to define __stub macros and hopefully few prototypes, |
29050 | which can conflict with char $ac_func (); below. | |
29051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29052 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29053 | |
a848cd7e SC |
29054 | #ifdef __STDC__ |
29055 | # include <limits.h> | |
29056 | #else | |
29057 | # include <assert.h> | |
29058 | #endif | |
ac1cb8d3 VS |
29059 | |
29060 | #undef $ac_func | |
29061 | ||
a848cd7e SC |
29062 | /* Override any gcc2 internal prototype to avoid an error. */ |
29063 | #ifdef __cplusplus | |
29064 | extern "C" | |
29065 | { | |
29066 | #endif | |
29067 | /* We use char because int might match the return type of a gcc2 | |
29068 | builtin and then its argument prototype would still apply. */ | |
29069 | char $ac_func (); | |
29070 | /* The GNU C library defines this for functions which it implements | |
29071 | to always fail with ENOSYS. Some functions are actually named | |
29072 | something starting with __ and the normal name is an alias. */ | |
29073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29074 | choke me | |
29075 | #else | |
29076 | char (*f) () = $ac_func; | |
29077 | #endif | |
29078 | #ifdef __cplusplus | |
29079 | } | |
29080 | #endif | |
29081 | ||
29082 | int | |
29083 | main () | |
29084 | { | |
29085 | return f != $ac_func; | |
29086 | ; | |
29087 | return 0; | |
29088 | } | |
29089 | _ACEOF | |
29090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29092 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29093 | ac_status=$? |
ac1cb8d3 VS |
29094 | grep -v '^ *+' conftest.er1 >conftest.err |
29095 | rm -f conftest.er1 | |
29096 | cat conftest.err >&5 | |
a848cd7e SC |
29097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29098 | (exit $ac_status); } && | |
7714864e | 29099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29101 | (eval $ac_try) 2>&5 | |
29102 | ac_status=$? | |
29103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29104 | (exit $ac_status); }; } && | |
29105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29107 | (eval $ac_try) 2>&5 | |
29108 | ac_status=$? | |
29109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29110 | (exit $ac_status); }; }; then | |
29111 | eval "$as_ac_var=yes" | |
29112 | else | |
29113 | echo "$as_me: failed program was:" >&5 | |
29114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29115 | ||
29116 | eval "$as_ac_var=no" | |
29117 | fi | |
ac1cb8d3 VS |
29118 | rm -f conftest.err conftest.$ac_objext \ |
29119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29120 | fi |
29121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29124 | cat >>confdefs.h <<_ACEOF | |
29125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29126 | _ACEOF | |
29127 | ||
29128 | fi | |
29129 | done | |
29130 | ||
29131 | ||
29132 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29133 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29134 | cat >conftest.$ac_ext <<_ACEOF | |
29135 | /* confdefs.h. */ | |
29136 | _ACEOF | |
29137 | cat confdefs.h >>conftest.$ac_ext | |
29138 | cat >>conftest.$ac_ext <<_ACEOF | |
29139 | /* end confdefs.h. */ | |
29140 | #include <wchar.h> | |
29141 | int | |
29142 | main () | |
29143 | { | |
29144 | &_vsnwprintf; | |
29145 | ; | |
29146 | return 0; | |
29147 | } | |
29148 | _ACEOF | |
29149 | rm -f conftest.$ac_objext | |
29150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29151 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29152 | ac_status=$? |
ac1cb8d3 VS |
29153 | grep -v '^ *+' conftest.er1 >conftest.err |
29154 | rm -f conftest.er1 | |
29155 | cat conftest.err >&5 | |
a848cd7e SC |
29156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29157 | (exit $ac_status); } && | |
7714864e | 29158 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29160 | (eval $ac_try) 2>&5 | |
29161 | ac_status=$? | |
29162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29163 | (exit $ac_status); }; } && | |
29164 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29166 | (eval $ac_try) 2>&5 | |
29167 | ac_status=$? | |
29168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29169 | (exit $ac_status); }; }; then | |
29170 | echo "$as_me:$LINENO: result: yes" >&5 | |
29171 | echo "${ECHO_T}yes" >&6 | |
29172 | cat >>confdefs.h <<\_ACEOF | |
29173 | #define HAVE__VSNWPRINTF 1 | |
29174 | _ACEOF | |
29175 | ||
29176 | else | |
29177 | echo "$as_me: failed program was:" >&5 | |
29178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29179 | ||
29180 | echo "$as_me:$LINENO: result: no" >&5 | |
29181 | echo "${ECHO_T}no" >&6 | |
29182 | fi | |
ac1cb8d3 | 29183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29184 | fi |
29185 | ||
29186 | ac_ext=c | |
29187 | ac_cpp='$CPP $CPPFLAGS' | |
29188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29191 | ||
29192 | ||
29193 | ||
29194 | ||
29195 | if test "$TOOLKIT" != "MSW"; then | |
29196 | ||
29197 | ||
29198 | ||
29199 | ||
29200 | ac_ext=cc | |
29201 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29205 | ||
29206 | ||
29207 | ||
29208 | ||
29209 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29210 | if test "${with_libiconv_prefix+set}" = set; then | |
29211 | withval="$with_libiconv_prefix" | |
29212 | ||
29213 | for dir in `echo "$withval" | tr : ' '`; do | |
29214 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29215 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29216 | done | |
29217 | ||
29218 | fi; | |
29219 | ||
29220 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29221 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29222 | if test "${am_cv_func_iconv+set}" = set; then | |
29223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29224 | else | |
29225 | ||
29226 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29227 | am_cv_lib_iconv=no | |
29228 | cat >conftest.$ac_ext <<_ACEOF | |
29229 | /* confdefs.h. */ | |
29230 | _ACEOF | |
29231 | cat confdefs.h >>conftest.$ac_ext | |
29232 | cat >>conftest.$ac_ext <<_ACEOF | |
29233 | /* end confdefs.h. */ | |
29234 | #include <stdlib.h> | |
29235 | #include <iconv.h> | |
29236 | int | |
29237 | main () | |
29238 | { | |
29239 | iconv_t cd = iconv_open("",""); | |
29240 | iconv(cd,NULL,NULL,NULL,NULL); | |
29241 | iconv_close(cd); | |
29242 | ; | |
29243 | return 0; | |
29244 | } | |
29245 | _ACEOF | |
29246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29248 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29249 | ac_status=$? |
ac1cb8d3 VS |
29250 | grep -v '^ *+' conftest.er1 >conftest.err |
29251 | rm -f conftest.er1 | |
29252 | cat conftest.err >&5 | |
a848cd7e SC |
29253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29254 | (exit $ac_status); } && | |
7714864e | 29255 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29257 | (eval $ac_try) 2>&5 | |
29258 | ac_status=$? | |
29259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29260 | (exit $ac_status); }; } && | |
29261 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29263 | (eval $ac_try) 2>&5 | |
29264 | ac_status=$? | |
29265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29266 | (exit $ac_status); }; }; then | |
29267 | am_cv_func_iconv=yes | |
29268 | else | |
29269 | echo "$as_me: failed program was:" >&5 | |
29270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29271 | ||
29272 | fi | |
ac1cb8d3 VS |
29273 | rm -f conftest.err conftest.$ac_objext \ |
29274 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29275 | if test "$am_cv_func_iconv" != yes; then |
29276 | am_save_LIBS="$LIBS" | |
29277 | LIBS="$LIBS -liconv" | |
29278 | cat >conftest.$ac_ext <<_ACEOF | |
29279 | /* confdefs.h. */ | |
29280 | _ACEOF | |
29281 | cat confdefs.h >>conftest.$ac_ext | |
29282 | cat >>conftest.$ac_ext <<_ACEOF | |
29283 | /* end confdefs.h. */ | |
29284 | #include <stdlib.h> | |
29285 | #include <iconv.h> | |
29286 | int | |
29287 | main () | |
29288 | { | |
29289 | iconv_t cd = iconv_open("",""); | |
29290 | iconv(cd,NULL,NULL,NULL,NULL); | |
29291 | iconv_close(cd); | |
29292 | ; | |
29293 | return 0; | |
29294 | } | |
29295 | _ACEOF | |
29296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29299 | ac_status=$? |
ac1cb8d3 VS |
29300 | grep -v '^ *+' conftest.er1 >conftest.err |
29301 | rm -f conftest.er1 | |
29302 | cat conftest.err >&5 | |
a848cd7e SC |
29303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29304 | (exit $ac_status); } && | |
7714864e | 29305 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29307 | (eval $ac_try) 2>&5 | |
29308 | ac_status=$? | |
29309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29310 | (exit $ac_status); }; } && | |
29311 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29313 | (eval $ac_try) 2>&5 | |
29314 | ac_status=$? | |
29315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29316 | (exit $ac_status); }; }; then | |
29317 | am_cv_lib_iconv=yes | |
29318 | am_cv_func_iconv=yes | |
29319 | else | |
29320 | echo "$as_me: failed program was:" >&5 | |
29321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29322 | ||
29323 | fi | |
ac1cb8d3 VS |
29324 | rm -f conftest.err conftest.$ac_objext \ |
29325 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29326 | LIBS="$am_save_LIBS" |
29327 | fi | |
29328 | ||
29329 | fi | |
29330 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29331 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29332 | if test "$am_cv_func_iconv" = yes; then | |
29333 | ||
29334 | cat >>confdefs.h <<\_ACEOF | |
29335 | #define HAVE_ICONV 1 | |
29336 | _ACEOF | |
29337 | ||
29338 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29339 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29340 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29342 | else | |
29343 | cat >conftest.$ac_ext <<_ACEOF | |
29344 | /* confdefs.h. */ | |
29345 | _ACEOF | |
29346 | cat confdefs.h >>conftest.$ac_ext | |
29347 | cat >>conftest.$ac_ext <<_ACEOF | |
29348 | /* end confdefs.h. */ | |
29349 | ||
29350 | #include <stdlib.h> | |
29351 | #include <iconv.h> | |
29352 | extern | |
29353 | #ifdef __cplusplus | |
29354 | "C" | |
29355 | #endif | |
29356 | #if defined(__STDC__) || defined(__cplusplus) | |
29357 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29358 | #else | |
29359 | size_t iconv(); | |
29360 | #endif | |
29361 | ||
29362 | int | |
29363 | main () | |
29364 | { | |
29365 | ||
29366 | ; | |
29367 | return 0; | |
29368 | } | |
29369 | _ACEOF | |
29370 | rm -f conftest.$ac_objext | |
29371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29372 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29373 | ac_status=$? |
ac1cb8d3 VS |
29374 | grep -v '^ *+' conftest.er1 >conftest.err |
29375 | rm -f conftest.er1 | |
29376 | cat conftest.err >&5 | |
a848cd7e SC |
29377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29378 | (exit $ac_status); } && | |
7714864e | 29379 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29381 | (eval $ac_try) 2>&5 | |
29382 | ac_status=$? | |
29383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29384 | (exit $ac_status); }; } && | |
29385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29387 | (eval $ac_try) 2>&5 | |
29388 | ac_status=$? | |
29389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29390 | (exit $ac_status); }; }; then | |
29391 | wx_cv_func_iconv_const="no" | |
29392 | else | |
29393 | echo "$as_me: failed program was:" >&5 | |
29394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29395 | ||
29396 | wx_cv_func_iconv_const="yes" | |
29397 | ||
29398 | fi | |
ac1cb8d3 | 29399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29400 | |
29401 | fi | |
29402 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29403 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29404 | ||
29405 | iconv_const= | |
29406 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29407 | iconv_const="const" | |
29408 | fi | |
29409 | ||
29410 | ||
29411 | cat >>confdefs.h <<_ACEOF | |
29412 | #define ICONV_CONST $iconv_const | |
29413 | _ACEOF | |
29414 | ||
29415 | fi | |
29416 | LIBICONV= | |
29417 | if test "$am_cv_lib_iconv" = yes; then | |
29418 | LIBICONV="-liconv" | |
29419 | fi | |
29420 | ||
29421 | ||
29422 | LIBS="$LIBICONV $LIBS" | |
29423 | ac_ext=c | |
29424 | ac_cpp='$CPP $CPPFLAGS' | |
29425 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29426 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29427 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29428 | ||
29429 | ||
29430 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29431 | ||
29432 | for ac_func in sigaction | |
29433 | do | |
29434 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29435 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29436 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29437 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29439 | else | |
29440 | cat >conftest.$ac_ext <<_ACEOF | |
29441 | /* confdefs.h. */ | |
29442 | _ACEOF | |
29443 | cat confdefs.h >>conftest.$ac_ext | |
29444 | cat >>conftest.$ac_ext <<_ACEOF | |
29445 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29446 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29447 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29448 | #define $ac_func innocuous_$ac_func | |
29449 | ||
a848cd7e SC |
29450 | /* System header to define __stub macros and hopefully few prototypes, |
29451 | which can conflict with char $ac_func (); below. | |
29452 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29453 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29454 | |
a848cd7e SC |
29455 | #ifdef __STDC__ |
29456 | # include <limits.h> | |
29457 | #else | |
29458 | # include <assert.h> | |
29459 | #endif | |
ac1cb8d3 VS |
29460 | |
29461 | #undef $ac_func | |
29462 | ||
a848cd7e SC |
29463 | /* Override any gcc2 internal prototype to avoid an error. */ |
29464 | #ifdef __cplusplus | |
29465 | extern "C" | |
29466 | { | |
29467 | #endif | |
29468 | /* We use char because int might match the return type of a gcc2 | |
29469 | builtin and then its argument prototype would still apply. */ | |
29470 | char $ac_func (); | |
29471 | /* The GNU C library defines this for functions which it implements | |
29472 | to always fail with ENOSYS. Some functions are actually named | |
29473 | something starting with __ and the normal name is an alias. */ | |
29474 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29475 | choke me | |
29476 | #else | |
29477 | char (*f) () = $ac_func; | |
29478 | #endif | |
29479 | #ifdef __cplusplus | |
29480 | } | |
29481 | #endif | |
29482 | ||
29483 | int | |
29484 | main () | |
29485 | { | |
29486 | return f != $ac_func; | |
29487 | ; | |
29488 | return 0; | |
29489 | } | |
29490 | _ACEOF | |
29491 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29493 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29494 | ac_status=$? |
ac1cb8d3 VS |
29495 | grep -v '^ *+' conftest.er1 >conftest.err |
29496 | rm -f conftest.er1 | |
29497 | cat conftest.err >&5 | |
a848cd7e SC |
29498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29499 | (exit $ac_status); } && | |
7714864e | 29500 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29502 | (eval $ac_try) 2>&5 | |
29503 | ac_status=$? | |
29504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29505 | (exit $ac_status); }; } && | |
29506 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
29512 | eval "$as_ac_var=yes" | |
29513 | else | |
29514 | echo "$as_me: failed program was:" >&5 | |
29515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29516 | ||
29517 | eval "$as_ac_var=no" | |
29518 | fi | |
ac1cb8d3 VS |
29519 | rm -f conftest.err conftest.$ac_objext \ |
29520 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29521 | fi |
29522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29523 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29524 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29525 | cat >>confdefs.h <<_ACEOF | |
29526 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29527 | _ACEOF | |
29528 | ||
29529 | fi | |
29530 | done | |
29531 | ||
29532 | ||
29533 | if test "$ac_cv_func_sigaction" = "no"; then | |
29534 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29535 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29536 | wxUSE_ON_FATAL_EXCEPTION=no | |
29537 | fi | |
29538 | ||
29539 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29540 | ||
29541 | ||
29542 | ac_ext=cc | |
29543 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29547 | ||
29548 | ||
29549 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29550 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29551 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29553 | else | |
29554 | ||
29555 | cat >conftest.$ac_ext <<_ACEOF | |
29556 | /* confdefs.h. */ | |
29557 | _ACEOF | |
29558 | cat confdefs.h >>conftest.$ac_ext | |
29559 | cat >>conftest.$ac_ext <<_ACEOF | |
29560 | /* end confdefs.h. */ | |
29561 | #include <signal.h> | |
29562 | int | |
29563 | main () | |
29564 | { | |
29565 | ||
29566 | extern void testSigHandler(int); | |
29567 | ||
29568 | struct sigaction sa; | |
29569 | sa.sa_handler = testSigHandler; | |
29570 | ||
29571 | ; | |
29572 | return 0; | |
29573 | } | |
29574 | _ACEOF | |
29575 | rm -f conftest.$ac_objext | |
29576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29578 | ac_status=$? |
ac1cb8d3 VS |
29579 | grep -v '^ *+' conftest.er1 >conftest.err |
29580 | rm -f conftest.er1 | |
29581 | cat conftest.err >&5 | |
a848cd7e SC |
29582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29583 | (exit $ac_status); } && | |
7714864e | 29584 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29586 | (eval $ac_try) 2>&5 | |
29587 | ac_status=$? | |
29588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29589 | (exit $ac_status); }; } && | |
29590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29592 | (eval $ac_try) 2>&5 | |
29593 | ac_status=$? | |
29594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29595 | (exit $ac_status); }; }; then | |
29596 | ||
29597 | wx_cv_type_sa_handler=int | |
29598 | ||
29599 | else | |
29600 | echo "$as_me: failed program was:" >&5 | |
29601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29602 | ||
29603 | ||
29604 | wx_cv_type_sa_handler=void | |
29605 | ||
29606 | fi | |
ac1cb8d3 | 29607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29608 | |
29609 | fi | |
29610 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29611 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29612 | ||
29613 | ac_ext=c | |
29614 | ac_cpp='$CPP $CPPFLAGS' | |
29615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29618 | ||
29619 | ||
29620 | cat >>confdefs.h <<_ACEOF | |
29621 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29622 | _ACEOF | |
29623 | ||
29624 | fi | |
29625 | fi | |
29626 | ||
29627 | ||
29628 | ||
29629 | for ac_func in mkstemp mktemp | |
29630 | do | |
29631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29632 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29634 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29636 | else | |
29637 | cat >conftest.$ac_ext <<_ACEOF | |
29638 | /* confdefs.h. */ | |
29639 | _ACEOF | |
29640 | cat confdefs.h >>conftest.$ac_ext | |
29641 | cat >>conftest.$ac_ext <<_ACEOF | |
29642 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29645 | #define $ac_func innocuous_$ac_func | |
29646 | ||
a848cd7e SC |
29647 | /* System header to define __stub macros and hopefully few prototypes, |
29648 | which can conflict with char $ac_func (); below. | |
29649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29650 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29651 | |
a848cd7e SC |
29652 | #ifdef __STDC__ |
29653 | # include <limits.h> | |
29654 | #else | |
29655 | # include <assert.h> | |
29656 | #endif | |
ac1cb8d3 VS |
29657 | |
29658 | #undef $ac_func | |
29659 | ||
a848cd7e SC |
29660 | /* Override any gcc2 internal prototype to avoid an error. */ |
29661 | #ifdef __cplusplus | |
29662 | extern "C" | |
29663 | { | |
29664 | #endif | |
29665 | /* We use char because int might match the return type of a gcc2 | |
29666 | builtin and then its argument prototype would still apply. */ | |
29667 | char $ac_func (); | |
29668 | /* The GNU C library defines this for functions which it implements | |
29669 | to always fail with ENOSYS. Some functions are actually named | |
29670 | something starting with __ and the normal name is an alias. */ | |
29671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29672 | choke me | |
29673 | #else | |
29674 | char (*f) () = $ac_func; | |
29675 | #endif | |
29676 | #ifdef __cplusplus | |
29677 | } | |
29678 | #endif | |
29679 | ||
29680 | int | |
29681 | main () | |
29682 | { | |
29683 | return f != $ac_func; | |
29684 | ; | |
29685 | return 0; | |
29686 | } | |
29687 | _ACEOF | |
29688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29691 | ac_status=$? |
ac1cb8d3 VS |
29692 | grep -v '^ *+' conftest.er1 >conftest.err |
29693 | rm -f conftest.er1 | |
29694 | cat conftest.err >&5 | |
a848cd7e SC |
29695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29696 | (exit $ac_status); } && | |
7714864e | 29697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29699 | (eval $ac_try) 2>&5 | |
29700 | ac_status=$? | |
29701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29702 | (exit $ac_status); }; } && | |
29703 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29705 | (eval $ac_try) 2>&5 | |
29706 | ac_status=$? | |
29707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29708 | (exit $ac_status); }; }; then | |
29709 | eval "$as_ac_var=yes" | |
29710 | else | |
29711 | echo "$as_me: failed program was:" >&5 | |
29712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29713 | ||
29714 | eval "$as_ac_var=no" | |
29715 | fi | |
ac1cb8d3 VS |
29716 | rm -f conftest.err conftest.$ac_objext \ |
29717 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29718 | fi |
29719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29720 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29721 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29722 | cat >>confdefs.h <<_ACEOF | |
29723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29724 | _ACEOF | |
29725 | break | |
29726 | fi | |
29727 | done | |
29728 | ||
29729 | ||
29730 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29731 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29732 | if test "${wx_cv_func_statfs+set}" = set; then | |
29733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29734 | else | |
29735 | cat >conftest.$ac_ext <<_ACEOF | |
29736 | /* confdefs.h. */ | |
29737 | _ACEOF | |
29738 | cat confdefs.h >>conftest.$ac_ext | |
29739 | cat >>conftest.$ac_ext <<_ACEOF | |
29740 | /* end confdefs.h. */ | |
29741 | ||
29742 | #if defined(__BSD__) | |
29743 | #include <sys/param.h> | |
29744 | #include <sys/mount.h> | |
29745 | #else | |
29746 | #include <sys/vfs.h> | |
29747 | #endif | |
29748 | ||
29749 | int | |
29750 | main () | |
29751 | { | |
29752 | ||
29753 | long l; | |
29754 | struct statfs fs; | |
29755 | statfs("/", &fs); | |
29756 | l = fs.f_bsize; | |
29757 | l += fs.f_blocks; | |
29758 | l += fs.f_bavail; | |
29759 | ||
29760 | ; | |
29761 | return 0; | |
29762 | } | |
29763 | _ACEOF | |
29764 | rm -f conftest.$ac_objext | |
29765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29767 | ac_status=$? |
ac1cb8d3 VS |
29768 | grep -v '^ *+' conftest.er1 >conftest.err |
29769 | rm -f conftest.er1 | |
29770 | cat conftest.err >&5 | |
a848cd7e SC |
29771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29772 | (exit $ac_status); } && | |
7714864e | 29773 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29775 | (eval $ac_try) 2>&5 | |
29776 | ac_status=$? | |
29777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29778 | (exit $ac_status); }; } && | |
29779 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29781 | (eval $ac_try) 2>&5 | |
29782 | ac_status=$? | |
29783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29784 | (exit $ac_status); }; }; then | |
29785 | ||
29786 | wx_cv_func_statfs=yes | |
29787 | ||
29788 | else | |
29789 | echo "$as_me: failed program was:" >&5 | |
29790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29791 | ||
29792 | ||
29793 | wx_cv_func_statfs=no | |
29794 | ||
29795 | ||
29796 | fi | |
ac1cb8d3 | 29797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29798 | |
29799 | fi | |
29800 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29801 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29802 | ||
29803 | if test "$wx_cv_func_statfs" = "yes"; then | |
29804 | wx_cv_type_statvfs_t="struct statfs" | |
29805 | cat >>confdefs.h <<\_ACEOF | |
29806 | #define HAVE_STATFS 1 | |
29807 | _ACEOF | |
29808 | ||
29809 | else | |
29810 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29811 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29812 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29814 | else | |
29815 | cat >conftest.$ac_ext <<_ACEOF | |
29816 | /* confdefs.h. */ | |
29817 | _ACEOF | |
29818 | cat confdefs.h >>conftest.$ac_ext | |
29819 | cat >>conftest.$ac_ext <<_ACEOF | |
29820 | /* end confdefs.h. */ | |
29821 | ||
29822 | #include <stddef.h> | |
29823 | #include <sys/statvfs.h> | |
29824 | ||
29825 | int | |
29826 | main () | |
29827 | { | |
29828 | ||
29829 | statvfs("/", NULL); | |
29830 | ||
29831 | ; | |
29832 | return 0; | |
29833 | } | |
29834 | _ACEOF | |
29835 | rm -f conftest.$ac_objext | |
29836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29837 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29838 | ac_status=$? |
ac1cb8d3 VS |
29839 | grep -v '^ *+' conftest.er1 >conftest.err |
29840 | rm -f conftest.er1 | |
29841 | cat conftest.err >&5 | |
a848cd7e SC |
29842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29843 | (exit $ac_status); } && | |
7714864e | 29844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29846 | (eval $ac_try) 2>&5 | |
29847 | ac_status=$? | |
29848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29849 | (exit $ac_status); }; } && | |
29850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29852 | (eval $ac_try) 2>&5 | |
29853 | ac_status=$? | |
29854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29855 | (exit $ac_status); }; }; then | |
29856 | wx_cv_func_statvfs=yes | |
29857 | else | |
29858 | echo "$as_me: failed program was:" >&5 | |
29859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29860 | ||
29861 | wx_cv_func_statvfs=no | |
29862 | ||
29863 | fi | |
ac1cb8d3 | 29864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29865 | |
29866 | fi | |
29867 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29868 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29869 | ||
29870 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29871 | ||
29872 | ||
29873 | ac_ext=cc | |
29874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29878 | ||
29879 | ||
29880 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29881 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29882 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29884 | else | |
29885 | cat >conftest.$ac_ext <<_ACEOF | |
29886 | /* confdefs.h. */ | |
29887 | _ACEOF | |
29888 | cat confdefs.h >>conftest.$ac_ext | |
29889 | cat >>conftest.$ac_ext <<_ACEOF | |
29890 | /* end confdefs.h. */ | |
29891 | ||
29892 | #include <sys/statvfs.h> | |
29893 | ||
29894 | int | |
29895 | main () | |
29896 | { | |
29897 | ||
29898 | long l; | |
29899 | statvfs_t fs; | |
29900 | statvfs("/", &fs); | |
29901 | l = fs.f_bsize; | |
29902 | l += fs.f_blocks; | |
29903 | l += fs.f_bavail; | |
29904 | ||
29905 | ; | |
29906 | return 0; | |
29907 | } | |
29908 | _ACEOF | |
29909 | rm -f conftest.$ac_objext | |
29910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29911 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29912 | ac_status=$? |
ac1cb8d3 VS |
29913 | grep -v '^ *+' conftest.er1 >conftest.err |
29914 | rm -f conftest.er1 | |
29915 | cat conftest.err >&5 | |
a848cd7e SC |
29916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29917 | (exit $ac_status); } && | |
7714864e | 29918 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29920 | (eval $ac_try) 2>&5 | |
29921 | ac_status=$? | |
29922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29923 | (exit $ac_status); }; } && | |
29924 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29926 | (eval $ac_try) 2>&5 | |
29927 | ac_status=$? | |
29928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29929 | (exit $ac_status); }; }; then | |
29930 | wx_cv_type_statvfs_t=statvfs_t | |
29931 | else | |
29932 | echo "$as_me: failed program was:" >&5 | |
29933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29934 | ||
29935 | ||
29936 | cat >conftest.$ac_ext <<_ACEOF | |
29937 | /* confdefs.h. */ | |
29938 | _ACEOF | |
29939 | cat confdefs.h >>conftest.$ac_ext | |
29940 | cat >>conftest.$ac_ext <<_ACEOF | |
29941 | /* end confdefs.h. */ | |
29942 | ||
29943 | #include <sys/statvfs.h> | |
29944 | ||
29945 | int | |
29946 | main () | |
29947 | { | |
29948 | ||
29949 | long l; | |
29950 | struct statvfs fs; | |
29951 | statvfs("/", &fs); | |
29952 | l = fs.f_bsize; | |
29953 | l += fs.f_blocks; | |
29954 | l += fs.f_bavail; | |
29955 | ||
29956 | ; | |
29957 | return 0; | |
29958 | } | |
29959 | _ACEOF | |
29960 | rm -f conftest.$ac_objext | |
29961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29963 | ac_status=$? |
ac1cb8d3 VS |
29964 | grep -v '^ *+' conftest.er1 >conftest.err |
29965 | rm -f conftest.er1 | |
29966 | cat conftest.err >&5 | |
a848cd7e SC |
29967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29968 | (exit $ac_status); } && | |
7714864e | 29969 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29971 | (eval $ac_try) 2>&5 | |
29972 | ac_status=$? | |
29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29974 | (exit $ac_status); }; } && | |
29975 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29977 | (eval $ac_try) 2>&5 | |
29978 | ac_status=$? | |
29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29980 | (exit $ac_status); }; }; then | |
29981 | wx_cv_type_statvfs_t="struct statvfs" | |
29982 | else | |
29983 | echo "$as_me: failed program was:" >&5 | |
29984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29985 | ||
29986 | wx_cv_type_statvfs_t="unknown" | |
29987 | ||
29988 | fi | |
ac1cb8d3 | 29989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29990 | |
29991 | ||
29992 | fi | |
ac1cb8d3 | 29993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29994 | |
29995 | fi | |
29996 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29997 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
29998 | ||
29999 | ac_ext=c | |
30000 | ac_cpp='$CPP $CPPFLAGS' | |
30001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30004 | ||
30005 | ||
30006 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30007 | cat >>confdefs.h <<\_ACEOF | |
30008 | #define HAVE_STATVFS 1 | |
30009 | _ACEOF | |
30010 | ||
30011 | fi | |
30012 | else | |
30013 | wx_cv_type_statvfs_t="unknown" | |
30014 | fi | |
30015 | fi | |
30016 | ||
30017 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30018 | cat >>confdefs.h <<_ACEOF | |
30019 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30020 | _ACEOF | |
30021 | ||
30022 | else | |
30023 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30024 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30025 | fi | |
30026 | ||
30027 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30028 | ||
30029 | ||
30030 | for ac_func in fcntl flock | |
30031 | do | |
30032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30037 | else | |
30038 | cat >conftest.$ac_ext <<_ACEOF | |
30039 | /* confdefs.h. */ | |
30040 | _ACEOF | |
30041 | cat confdefs.h >>conftest.$ac_ext | |
30042 | cat >>conftest.$ac_ext <<_ACEOF | |
30043 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30046 | #define $ac_func innocuous_$ac_func | |
30047 | ||
a848cd7e SC |
30048 | /* System header to define __stub macros and hopefully few prototypes, |
30049 | which can conflict with char $ac_func (); below. | |
30050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30051 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30052 | |
a848cd7e SC |
30053 | #ifdef __STDC__ |
30054 | # include <limits.h> | |
30055 | #else | |
30056 | # include <assert.h> | |
30057 | #endif | |
ac1cb8d3 VS |
30058 | |
30059 | #undef $ac_func | |
30060 | ||
a848cd7e SC |
30061 | /* Override any gcc2 internal prototype to avoid an error. */ |
30062 | #ifdef __cplusplus | |
30063 | extern "C" | |
30064 | { | |
30065 | #endif | |
30066 | /* We use char because int might match the return type of a gcc2 | |
30067 | builtin and then its argument prototype would still apply. */ | |
30068 | char $ac_func (); | |
30069 | /* The GNU C library defines this for functions which it implements | |
30070 | to always fail with ENOSYS. Some functions are actually named | |
30071 | something starting with __ and the normal name is an alias. */ | |
30072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30073 | choke me | |
30074 | #else | |
30075 | char (*f) () = $ac_func; | |
30076 | #endif | |
30077 | #ifdef __cplusplus | |
30078 | } | |
30079 | #endif | |
30080 | ||
30081 | int | |
30082 | main () | |
30083 | { | |
30084 | return f != $ac_func; | |
30085 | ; | |
30086 | return 0; | |
30087 | } | |
30088 | _ACEOF | |
30089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30092 | ac_status=$? |
ac1cb8d3 VS |
30093 | grep -v '^ *+' conftest.er1 >conftest.err |
30094 | rm -f conftest.er1 | |
30095 | cat conftest.err >&5 | |
a848cd7e SC |
30096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30097 | (exit $ac_status); } && | |
7714864e | 30098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30100 | (eval $ac_try) 2>&5 | |
30101 | ac_status=$? | |
30102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30103 | (exit $ac_status); }; } && | |
30104 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30106 | (eval $ac_try) 2>&5 | |
30107 | ac_status=$? | |
30108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30109 | (exit $ac_status); }; }; then | |
30110 | eval "$as_ac_var=yes" | |
30111 | else | |
30112 | echo "$as_me: failed program was:" >&5 | |
30113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30114 | ||
30115 | eval "$as_ac_var=no" | |
30116 | fi | |
ac1cb8d3 VS |
30117 | rm -f conftest.err conftest.$ac_objext \ |
30118 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30119 | fi |
30120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30121 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30122 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30123 | cat >>confdefs.h <<_ACEOF | |
30124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30125 | _ACEOF | |
30126 | break | |
30127 | fi | |
30128 | done | |
30129 | ||
30130 | ||
30131 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30132 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30133 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30134 | wxUSE_SNGLINST_CHECKER=no | |
30135 | fi | |
30136 | fi | |
30137 | ||
30138 | ||
30139 | for ac_func in timegm | |
30140 | do | |
30141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30144 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30146 | else | |
30147 | cat >conftest.$ac_ext <<_ACEOF | |
30148 | /* confdefs.h. */ | |
30149 | _ACEOF | |
30150 | cat confdefs.h >>conftest.$ac_ext | |
30151 | cat >>conftest.$ac_ext <<_ACEOF | |
30152 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30155 | #define $ac_func innocuous_$ac_func | |
30156 | ||
a848cd7e SC |
30157 | /* System header to define __stub macros and hopefully few prototypes, |
30158 | which can conflict with char $ac_func (); below. | |
30159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30160 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30161 | |
a848cd7e SC |
30162 | #ifdef __STDC__ |
30163 | # include <limits.h> | |
30164 | #else | |
30165 | # include <assert.h> | |
30166 | #endif | |
ac1cb8d3 VS |
30167 | |
30168 | #undef $ac_func | |
30169 | ||
a848cd7e SC |
30170 | /* Override any gcc2 internal prototype to avoid an error. */ |
30171 | #ifdef __cplusplus | |
30172 | extern "C" | |
30173 | { | |
30174 | #endif | |
30175 | /* We use char because int might match the return type of a gcc2 | |
30176 | builtin and then its argument prototype would still apply. */ | |
30177 | char $ac_func (); | |
30178 | /* The GNU C library defines this for functions which it implements | |
30179 | to always fail with ENOSYS. Some functions are actually named | |
30180 | something starting with __ and the normal name is an alias. */ | |
30181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30182 | choke me | |
30183 | #else | |
30184 | char (*f) () = $ac_func; | |
30185 | #endif | |
30186 | #ifdef __cplusplus | |
30187 | } | |
30188 | #endif | |
30189 | ||
30190 | int | |
30191 | main () | |
30192 | { | |
30193 | return f != $ac_func; | |
30194 | ; | |
30195 | return 0; | |
30196 | } | |
30197 | _ACEOF | |
30198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30200 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30201 | ac_status=$? |
ac1cb8d3 VS |
30202 | grep -v '^ *+' conftest.er1 >conftest.err |
30203 | rm -f conftest.er1 | |
30204 | cat conftest.err >&5 | |
a848cd7e SC |
30205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30206 | (exit $ac_status); } && | |
7714864e | 30207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30209 | (eval $ac_try) 2>&5 | |
30210 | ac_status=$? | |
30211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30212 | (exit $ac_status); }; } && | |
30213 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30215 | (eval $ac_try) 2>&5 | |
30216 | ac_status=$? | |
30217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30218 | (exit $ac_status); }; }; then | |
30219 | eval "$as_ac_var=yes" | |
30220 | else | |
30221 | echo "$as_me: failed program was:" >&5 | |
30222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30223 | ||
30224 | eval "$as_ac_var=no" | |
30225 | fi | |
ac1cb8d3 VS |
30226 | rm -f conftest.err conftest.$ac_objext \ |
30227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30228 | fi |
30229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30232 | cat >>confdefs.h <<_ACEOF | |
30233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30234 | _ACEOF | |
30235 | ||
30236 | fi | |
30237 | done | |
30238 | ||
30239 | ||
30240 | ||
30241 | ||
30242 | for ac_func in putenv setenv | |
30243 | do | |
30244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30245 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30247 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30249 | else | |
30250 | cat >conftest.$ac_ext <<_ACEOF | |
30251 | /* confdefs.h. */ | |
30252 | _ACEOF | |
30253 | cat confdefs.h >>conftest.$ac_ext | |
30254 | cat >>conftest.$ac_ext <<_ACEOF | |
30255 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30258 | #define $ac_func innocuous_$ac_func | |
30259 | ||
a848cd7e SC |
30260 | /* System header to define __stub macros and hopefully few prototypes, |
30261 | which can conflict with char $ac_func (); below. | |
30262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30263 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30264 | |
a848cd7e SC |
30265 | #ifdef __STDC__ |
30266 | # include <limits.h> | |
30267 | #else | |
30268 | # include <assert.h> | |
30269 | #endif | |
ac1cb8d3 VS |
30270 | |
30271 | #undef $ac_func | |
30272 | ||
a848cd7e SC |
30273 | /* Override any gcc2 internal prototype to avoid an error. */ |
30274 | #ifdef __cplusplus | |
30275 | extern "C" | |
30276 | { | |
30277 | #endif | |
30278 | /* We use char because int might match the return type of a gcc2 | |
30279 | builtin and then its argument prototype would still apply. */ | |
30280 | char $ac_func (); | |
30281 | /* The GNU C library defines this for functions which it implements | |
30282 | to always fail with ENOSYS. Some functions are actually named | |
30283 | something starting with __ and the normal name is an alias. */ | |
30284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30285 | choke me | |
30286 | #else | |
30287 | char (*f) () = $ac_func; | |
30288 | #endif | |
30289 | #ifdef __cplusplus | |
30290 | } | |
30291 | #endif | |
30292 | ||
30293 | int | |
30294 | main () | |
30295 | { | |
30296 | return f != $ac_func; | |
30297 | ; | |
30298 | return 0; | |
30299 | } | |
30300 | _ACEOF | |
30301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30304 | ac_status=$? |
ac1cb8d3 VS |
30305 | grep -v '^ *+' conftest.er1 >conftest.err |
30306 | rm -f conftest.er1 | |
30307 | cat conftest.err >&5 | |
a848cd7e SC |
30308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30309 | (exit $ac_status); } && | |
7714864e | 30310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30312 | (eval $ac_try) 2>&5 | |
30313 | ac_status=$? | |
30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30315 | (exit $ac_status); }; } && | |
30316 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30318 | (eval $ac_try) 2>&5 | |
30319 | ac_status=$? | |
30320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30321 | (exit $ac_status); }; }; then | |
30322 | eval "$as_ac_var=yes" | |
30323 | else | |
30324 | echo "$as_me: failed program was:" >&5 | |
30325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30326 | ||
30327 | eval "$as_ac_var=no" | |
30328 | fi | |
ac1cb8d3 VS |
30329 | rm -f conftest.err conftest.$ac_objext \ |
30330 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30331 | fi |
30332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30335 | cat >>confdefs.h <<_ACEOF | |
30336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30337 | _ACEOF | |
30338 | break | |
30339 | fi | |
30340 | done | |
30341 | ||
30342 | ||
30343 | HAVE_SOME_SLEEP_FUNC=0 | |
30344 | if test "$USE_BEOS" = 1; then | |
30345 | cat >>confdefs.h <<\_ACEOF | |
30346 | #define HAVE_SLEEP 1 | |
30347 | _ACEOF | |
30348 | ||
30349 | HAVE_SOME_SLEEP_FUNC=1 | |
30350 | fi | |
30351 | ||
30352 | if test "$USE_DARWIN" = 1; then | |
30353 | cat >>confdefs.h <<\_ACEOF | |
30354 | #define HAVE_USLEEP 1 | |
30355 | _ACEOF | |
30356 | ||
30357 | HAVE_SOME_SLEEP_FUNC=1 | |
30358 | fi | |
30359 | ||
30360 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30361 | POSIX4_LINK= | |
30362 | ||
30363 | for ac_func in nanosleep | |
30364 | do | |
30365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30368 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30370 | else | |
30371 | cat >conftest.$ac_ext <<_ACEOF | |
30372 | /* confdefs.h. */ | |
30373 | _ACEOF | |
30374 | cat confdefs.h >>conftest.$ac_ext | |
30375 | cat >>conftest.$ac_ext <<_ACEOF | |
30376 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30379 | #define $ac_func innocuous_$ac_func | |
30380 | ||
a848cd7e SC |
30381 | /* System header to define __stub macros and hopefully few prototypes, |
30382 | which can conflict with char $ac_func (); below. | |
30383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30384 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30385 | |
a848cd7e SC |
30386 | #ifdef __STDC__ |
30387 | # include <limits.h> | |
30388 | #else | |
30389 | # include <assert.h> | |
30390 | #endif | |
ac1cb8d3 VS |
30391 | |
30392 | #undef $ac_func | |
30393 | ||
a848cd7e SC |
30394 | /* Override any gcc2 internal prototype to avoid an error. */ |
30395 | #ifdef __cplusplus | |
30396 | extern "C" | |
30397 | { | |
30398 | #endif | |
30399 | /* We use char because int might match the return type of a gcc2 | |
30400 | builtin and then its argument prototype would still apply. */ | |
30401 | char $ac_func (); | |
30402 | /* The GNU C library defines this for functions which it implements | |
30403 | to always fail with ENOSYS. Some functions are actually named | |
30404 | something starting with __ and the normal name is an alias. */ | |
30405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30406 | choke me | |
30407 | #else | |
30408 | char (*f) () = $ac_func; | |
30409 | #endif | |
30410 | #ifdef __cplusplus | |
30411 | } | |
30412 | #endif | |
30413 | ||
30414 | int | |
30415 | main () | |
30416 | { | |
30417 | return f != $ac_func; | |
30418 | ; | |
30419 | return 0; | |
30420 | } | |
30421 | _ACEOF | |
30422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30424 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30425 | ac_status=$? |
ac1cb8d3 VS |
30426 | grep -v '^ *+' conftest.er1 >conftest.err |
30427 | rm -f conftest.er1 | |
30428 | cat conftest.err >&5 | |
a848cd7e SC |
30429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30430 | (exit $ac_status); } && | |
7714864e | 30431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30433 | (eval $ac_try) 2>&5 | |
30434 | ac_status=$? | |
30435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30436 | (exit $ac_status); }; } && | |
30437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30439 | (eval $ac_try) 2>&5 | |
30440 | ac_status=$? | |
30441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30442 | (exit $ac_status); }; }; then | |
30443 | eval "$as_ac_var=yes" | |
30444 | else | |
30445 | echo "$as_me: failed program was:" >&5 | |
30446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30447 | ||
30448 | eval "$as_ac_var=no" | |
30449 | fi | |
ac1cb8d3 VS |
30450 | rm -f conftest.err conftest.$ac_objext \ |
30451 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30452 | fi |
30453 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30454 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30455 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30456 | cat >>confdefs.h <<_ACEOF | |
30457 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30458 | _ACEOF | |
30459 | cat >>confdefs.h <<\_ACEOF | |
30460 | #define HAVE_NANOSLEEP 1 | |
30461 | _ACEOF | |
30462 | ||
30463 | else | |
30464 | ||
30465 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30466 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30467 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30469 | else | |
30470 | ac_check_lib_save_LIBS=$LIBS | |
30471 | LIBS="-lposix4 $LIBS" | |
30472 | cat >conftest.$ac_ext <<_ACEOF | |
30473 | /* confdefs.h. */ | |
30474 | _ACEOF | |
30475 | cat confdefs.h >>conftest.$ac_ext | |
30476 | cat >>conftest.$ac_ext <<_ACEOF | |
30477 | /* end confdefs.h. */ | |
30478 | ||
30479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30480 | #ifdef __cplusplus | |
30481 | extern "C" | |
30482 | #endif | |
30483 | /* We use char because int might match the return type of a gcc2 | |
30484 | builtin and then its argument prototype would still apply. */ | |
30485 | char nanosleep (); | |
30486 | int | |
30487 | main () | |
30488 | { | |
30489 | nanosleep (); | |
30490 | ; | |
30491 | return 0; | |
30492 | } | |
30493 | _ACEOF | |
30494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30496 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30497 | ac_status=$? |
ac1cb8d3 VS |
30498 | grep -v '^ *+' conftest.er1 >conftest.err |
30499 | rm -f conftest.er1 | |
30500 | cat conftest.err >&5 | |
a848cd7e SC |
30501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30502 | (exit $ac_status); } && | |
7714864e | 30503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30505 | (eval $ac_try) 2>&5 | |
30506 | ac_status=$? | |
30507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30508 | (exit $ac_status); }; } && | |
30509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30511 | (eval $ac_try) 2>&5 | |
30512 | ac_status=$? | |
30513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30514 | (exit $ac_status); }; }; then | |
30515 | ac_cv_lib_posix4_nanosleep=yes | |
30516 | else | |
30517 | echo "$as_me: failed program was:" >&5 | |
30518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30519 | ||
30520 | ac_cv_lib_posix4_nanosleep=no | |
30521 | fi | |
ac1cb8d3 VS |
30522 | rm -f conftest.err conftest.$ac_objext \ |
30523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30524 | LIBS=$ac_check_lib_save_LIBS |
30525 | fi | |
30526 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30527 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30528 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30529 | ||
30530 | cat >>confdefs.h <<\_ACEOF | |
30531 | #define HAVE_NANOSLEEP 1 | |
30532 | _ACEOF | |
30533 | ||
30534 | POSIX4_LINK=" -lposix4" | |
30535 | ||
30536 | else | |
30537 | ||
30538 | ||
30539 | for ac_func in usleep | |
30540 | do | |
30541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30544 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30546 | else | |
30547 | cat >conftest.$ac_ext <<_ACEOF | |
30548 | /* confdefs.h. */ | |
30549 | _ACEOF | |
30550 | cat confdefs.h >>conftest.$ac_ext | |
30551 | cat >>conftest.$ac_ext <<_ACEOF | |
30552 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30553 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30555 | #define $ac_func innocuous_$ac_func | |
30556 | ||
a848cd7e SC |
30557 | /* System header to define __stub macros and hopefully few prototypes, |
30558 | which can conflict with char $ac_func (); below. | |
30559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30560 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30561 | |
a848cd7e SC |
30562 | #ifdef __STDC__ |
30563 | # include <limits.h> | |
30564 | #else | |
30565 | # include <assert.h> | |
30566 | #endif | |
ac1cb8d3 VS |
30567 | |
30568 | #undef $ac_func | |
30569 | ||
a848cd7e SC |
30570 | /* Override any gcc2 internal prototype to avoid an error. */ |
30571 | #ifdef __cplusplus | |
30572 | extern "C" | |
30573 | { | |
30574 | #endif | |
30575 | /* We use char because int might match the return type of a gcc2 | |
30576 | builtin and then its argument prototype would still apply. */ | |
30577 | char $ac_func (); | |
30578 | /* The GNU C library defines this for functions which it implements | |
30579 | to always fail with ENOSYS. Some functions are actually named | |
30580 | something starting with __ and the normal name is an alias. */ | |
30581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30582 | choke me | |
30583 | #else | |
30584 | char (*f) () = $ac_func; | |
30585 | #endif | |
30586 | #ifdef __cplusplus | |
30587 | } | |
30588 | #endif | |
30589 | ||
30590 | int | |
30591 | main () | |
30592 | { | |
30593 | return f != $ac_func; | |
30594 | ; | |
30595 | return 0; | |
30596 | } | |
30597 | _ACEOF | |
30598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30600 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30601 | ac_status=$? |
ac1cb8d3 VS |
30602 | grep -v '^ *+' conftest.er1 >conftest.err |
30603 | rm -f conftest.er1 | |
30604 | cat conftest.err >&5 | |
a848cd7e SC |
30605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30606 | (exit $ac_status); } && | |
7714864e | 30607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30609 | (eval $ac_try) 2>&5 | |
30610 | ac_status=$? | |
30611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30612 | (exit $ac_status); }; } && | |
30613 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30615 | (eval $ac_try) 2>&5 | |
30616 | ac_status=$? | |
30617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30618 | (exit $ac_status); }; }; then | |
30619 | eval "$as_ac_var=yes" | |
30620 | else | |
30621 | echo "$as_me: failed program was:" >&5 | |
30622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30623 | ||
30624 | eval "$as_ac_var=no" | |
30625 | fi | |
ac1cb8d3 VS |
30626 | rm -f conftest.err conftest.$ac_objext \ |
30627 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30628 | fi |
30629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30630 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30631 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30632 | cat >>confdefs.h <<_ACEOF | |
30633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30634 | _ACEOF | |
30635 | cat >>confdefs.h <<\_ACEOF | |
30636 | #define HAVE_USLEEP 1 | |
30637 | _ACEOF | |
30638 | ||
30639 | else | |
30640 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30641 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30642 | ||
30643 | fi | |
30644 | done | |
30645 | ||
30646 | ||
30647 | ||
30648 | fi | |
30649 | ||
30650 | ||
30651 | ||
30652 | fi | |
30653 | done | |
30654 | ||
30655 | fi | |
30656 | ||
30657 | ||
30658 | ||
30659 | for ac_func in uname gethostname | |
30660 | do | |
30661 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30662 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30663 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30664 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30666 | else | |
30667 | cat >conftest.$ac_ext <<_ACEOF | |
30668 | /* confdefs.h. */ | |
30669 | _ACEOF | |
30670 | cat confdefs.h >>conftest.$ac_ext | |
30671 | cat >>conftest.$ac_ext <<_ACEOF | |
30672 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30673 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30675 | #define $ac_func innocuous_$ac_func | |
30676 | ||
a848cd7e SC |
30677 | /* System header to define __stub macros and hopefully few prototypes, |
30678 | which can conflict with char $ac_func (); below. | |
30679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30680 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30681 | |
a848cd7e SC |
30682 | #ifdef __STDC__ |
30683 | # include <limits.h> | |
30684 | #else | |
30685 | # include <assert.h> | |
30686 | #endif | |
ac1cb8d3 VS |
30687 | |
30688 | #undef $ac_func | |
30689 | ||
a848cd7e SC |
30690 | /* Override any gcc2 internal prototype to avoid an error. */ |
30691 | #ifdef __cplusplus | |
30692 | extern "C" | |
30693 | { | |
30694 | #endif | |
30695 | /* We use char because int might match the return type of a gcc2 | |
30696 | builtin and then its argument prototype would still apply. */ | |
30697 | char $ac_func (); | |
30698 | /* The GNU C library defines this for functions which it implements | |
30699 | to always fail with ENOSYS. Some functions are actually named | |
30700 | something starting with __ and the normal name is an alias. */ | |
30701 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30702 | choke me | |
30703 | #else | |
30704 | char (*f) () = $ac_func; | |
30705 | #endif | |
30706 | #ifdef __cplusplus | |
30707 | } | |
30708 | #endif | |
30709 | ||
30710 | int | |
30711 | main () | |
30712 | { | |
30713 | return f != $ac_func; | |
30714 | ; | |
30715 | return 0; | |
30716 | } | |
30717 | _ACEOF | |
30718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30720 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30721 | ac_status=$? |
ac1cb8d3 VS |
30722 | grep -v '^ *+' conftest.er1 >conftest.err |
30723 | rm -f conftest.er1 | |
30724 | cat conftest.err >&5 | |
a848cd7e SC |
30725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30726 | (exit $ac_status); } && | |
7714864e | 30727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30729 | (eval $ac_try) 2>&5 | |
30730 | ac_status=$? | |
30731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30732 | (exit $ac_status); }; } && | |
30733 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30735 | (eval $ac_try) 2>&5 | |
30736 | ac_status=$? | |
30737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30738 | (exit $ac_status); }; }; then | |
30739 | eval "$as_ac_var=yes" | |
30740 | else | |
30741 | echo "$as_me: failed program was:" >&5 | |
30742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30743 | ||
30744 | eval "$as_ac_var=no" | |
30745 | fi | |
ac1cb8d3 VS |
30746 | rm -f conftest.err conftest.$ac_objext \ |
30747 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30748 | fi |
30749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30750 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30751 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30752 | cat >>confdefs.h <<_ACEOF | |
30753 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30754 | _ACEOF | |
30755 | break | |
30756 | fi | |
30757 | done | |
30758 | ||
30759 | ||
30760 | ||
30761 | ||
30762 | ac_ext=cc | |
30763 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30764 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30765 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30766 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30767 | ||
30768 | ||
30769 | ||
30770 | for ac_func in strtok_r | |
30771 | do | |
30772 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30773 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30774 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30775 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30777 | else | |
30778 | cat >conftest.$ac_ext <<_ACEOF | |
30779 | /* confdefs.h. */ | |
30780 | _ACEOF | |
30781 | cat confdefs.h >>conftest.$ac_ext | |
30782 | cat >>conftest.$ac_ext <<_ACEOF | |
30783 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30784 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30785 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30786 | #define $ac_func innocuous_$ac_func | |
30787 | ||
a848cd7e SC |
30788 | /* System header to define __stub macros and hopefully few prototypes, |
30789 | which can conflict with char $ac_func (); below. | |
30790 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30791 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30792 | |
a848cd7e SC |
30793 | #ifdef __STDC__ |
30794 | # include <limits.h> | |
30795 | #else | |
30796 | # include <assert.h> | |
30797 | #endif | |
ac1cb8d3 VS |
30798 | |
30799 | #undef $ac_func | |
30800 | ||
a848cd7e SC |
30801 | /* Override any gcc2 internal prototype to avoid an error. */ |
30802 | #ifdef __cplusplus | |
30803 | extern "C" | |
30804 | { | |
30805 | #endif | |
30806 | /* We use char because int might match the return type of a gcc2 | |
30807 | builtin and then its argument prototype would still apply. */ | |
30808 | char $ac_func (); | |
30809 | /* The GNU C library defines this for functions which it implements | |
30810 | to always fail with ENOSYS. Some functions are actually named | |
30811 | something starting with __ and the normal name is an alias. */ | |
30812 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30813 | choke me | |
30814 | #else | |
30815 | char (*f) () = $ac_func; | |
30816 | #endif | |
30817 | #ifdef __cplusplus | |
30818 | } | |
30819 | #endif | |
30820 | ||
30821 | int | |
30822 | main () | |
30823 | { | |
30824 | return f != $ac_func; | |
30825 | ; | |
30826 | return 0; | |
30827 | } | |
30828 | _ACEOF | |
30829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30831 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30832 | ac_status=$? |
ac1cb8d3 VS |
30833 | grep -v '^ *+' conftest.er1 >conftest.err |
30834 | rm -f conftest.er1 | |
30835 | cat conftest.err >&5 | |
a848cd7e SC |
30836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30837 | (exit $ac_status); } && | |
7714864e | 30838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30840 | (eval $ac_try) 2>&5 | |
30841 | ac_status=$? | |
30842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30843 | (exit $ac_status); }; } && | |
30844 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30846 | (eval $ac_try) 2>&5 | |
30847 | ac_status=$? | |
30848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30849 | (exit $ac_status); }; }; then | |
30850 | eval "$as_ac_var=yes" | |
30851 | else | |
30852 | echo "$as_me: failed program was:" >&5 | |
30853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30854 | ||
30855 | eval "$as_ac_var=no" | |
30856 | fi | |
ac1cb8d3 VS |
30857 | rm -f conftest.err conftest.$ac_objext \ |
30858 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30859 | fi |
30860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30862 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30863 | cat >>confdefs.h <<_ACEOF | |
30864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30865 | _ACEOF | |
30866 | ||
30867 | fi | |
30868 | done | |
30869 | ||
30870 | ||
30871 | ac_ext=c | |
30872 | ac_cpp='$CPP $CPPFLAGS' | |
30873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30876 | ||
30877 | ||
30878 | INET_LINK= | |
30879 | ||
30880 | for ac_func in inet_addr | |
30881 | do | |
30882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30887 | else | |
30888 | cat >conftest.$ac_ext <<_ACEOF | |
30889 | /* confdefs.h. */ | |
30890 | _ACEOF | |
30891 | cat confdefs.h >>conftest.$ac_ext | |
30892 | cat >>conftest.$ac_ext <<_ACEOF | |
30893 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30894 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30895 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30896 | #define $ac_func innocuous_$ac_func | |
30897 | ||
a848cd7e SC |
30898 | /* System header to define __stub macros and hopefully few prototypes, |
30899 | which can conflict with char $ac_func (); below. | |
30900 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30901 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30902 | |
a848cd7e SC |
30903 | #ifdef __STDC__ |
30904 | # include <limits.h> | |
30905 | #else | |
30906 | # include <assert.h> | |
30907 | #endif | |
ac1cb8d3 VS |
30908 | |
30909 | #undef $ac_func | |
30910 | ||
a848cd7e SC |
30911 | /* Override any gcc2 internal prototype to avoid an error. */ |
30912 | #ifdef __cplusplus | |
30913 | extern "C" | |
30914 | { | |
30915 | #endif | |
30916 | /* We use char because int might match the return type of a gcc2 | |
30917 | builtin and then its argument prototype would still apply. */ | |
30918 | char $ac_func (); | |
30919 | /* The GNU C library defines this for functions which it implements | |
30920 | to always fail with ENOSYS. Some functions are actually named | |
30921 | something starting with __ and the normal name is an alias. */ | |
30922 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30923 | choke me | |
30924 | #else | |
30925 | char (*f) () = $ac_func; | |
30926 | #endif | |
30927 | #ifdef __cplusplus | |
30928 | } | |
30929 | #endif | |
30930 | ||
30931 | int | |
30932 | main () | |
30933 | { | |
30934 | return f != $ac_func; | |
30935 | ; | |
30936 | return 0; | |
30937 | } | |
30938 | _ACEOF | |
30939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30941 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30942 | ac_status=$? |
ac1cb8d3 VS |
30943 | grep -v '^ *+' conftest.er1 >conftest.err |
30944 | rm -f conftest.er1 | |
30945 | cat conftest.err >&5 | |
a848cd7e SC |
30946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30947 | (exit $ac_status); } && | |
7714864e | 30948 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30950 | (eval $ac_try) 2>&5 | |
30951 | ac_status=$? | |
30952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30953 | (exit $ac_status); }; } && | |
30954 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30956 | (eval $ac_try) 2>&5 | |
30957 | ac_status=$? | |
30958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30959 | (exit $ac_status); }; }; then | |
30960 | eval "$as_ac_var=yes" | |
30961 | else | |
30962 | echo "$as_me: failed program was:" >&5 | |
30963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30964 | ||
30965 | eval "$as_ac_var=no" | |
30966 | fi | |
ac1cb8d3 VS |
30967 | rm -f conftest.err conftest.$ac_objext \ |
30968 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30969 | fi |
30970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30971 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30972 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30973 | cat >>confdefs.h <<_ACEOF | |
30974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30975 | _ACEOF | |
30976 | cat >>confdefs.h <<\_ACEOF | |
30977 | #define HAVE_INET_ADDR 1 | |
30978 | _ACEOF | |
30979 | ||
30980 | else | |
30981 | ||
30982 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30983 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30984 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30986 | else | |
30987 | ac_check_lib_save_LIBS=$LIBS | |
30988 | LIBS="-lnsl $LIBS" | |
30989 | cat >conftest.$ac_ext <<_ACEOF | |
30990 | /* confdefs.h. */ | |
30991 | _ACEOF | |
30992 | cat confdefs.h >>conftest.$ac_ext | |
30993 | cat >>conftest.$ac_ext <<_ACEOF | |
30994 | /* end confdefs.h. */ | |
30995 | ||
30996 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30997 | #ifdef __cplusplus | |
30998 | extern "C" | |
30999 | #endif | |
31000 | /* We use char because int might match the return type of a gcc2 | |
31001 | builtin and then its argument prototype would still apply. */ | |
31002 | char inet_addr (); | |
31003 | int | |
31004 | main () | |
31005 | { | |
31006 | inet_addr (); | |
31007 | ; | |
31008 | return 0; | |
31009 | } | |
31010 | _ACEOF | |
31011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31013 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31014 | ac_status=$? |
ac1cb8d3 VS |
31015 | grep -v '^ *+' conftest.er1 >conftest.err |
31016 | rm -f conftest.er1 | |
31017 | cat conftest.err >&5 | |
a848cd7e SC |
31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31019 | (exit $ac_status); } && | |
7714864e | 31020 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31022 | (eval $ac_try) 2>&5 | |
31023 | ac_status=$? | |
31024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31025 | (exit $ac_status); }; } && | |
31026 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31028 | (eval $ac_try) 2>&5 | |
31029 | ac_status=$? | |
31030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31031 | (exit $ac_status); }; }; then | |
31032 | ac_cv_lib_nsl_inet_addr=yes | |
31033 | else | |
31034 | echo "$as_me: failed program was:" >&5 | |
31035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31036 | ||
31037 | ac_cv_lib_nsl_inet_addr=no | |
31038 | fi | |
ac1cb8d3 VS |
31039 | rm -f conftest.err conftest.$ac_objext \ |
31040 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31041 | LIBS=$ac_check_lib_save_LIBS |
31042 | fi | |
31043 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31044 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31045 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31046 | INET_LINK="nsl" | |
31047 | else | |
31048 | ||
31049 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31050 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31051 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31053 | else | |
31054 | ac_check_lib_save_LIBS=$LIBS | |
31055 | LIBS="-lresolv $LIBS" | |
31056 | cat >conftest.$ac_ext <<_ACEOF | |
31057 | /* confdefs.h. */ | |
31058 | _ACEOF | |
31059 | cat confdefs.h >>conftest.$ac_ext | |
31060 | cat >>conftest.$ac_ext <<_ACEOF | |
31061 | /* end confdefs.h. */ | |
31062 | ||
31063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31064 | #ifdef __cplusplus | |
31065 | extern "C" | |
31066 | #endif | |
31067 | /* We use char because int might match the return type of a gcc2 | |
31068 | builtin and then its argument prototype would still apply. */ | |
31069 | char inet_addr (); | |
31070 | int | |
31071 | main () | |
31072 | { | |
31073 | inet_addr (); | |
31074 | ; | |
31075 | return 0; | |
31076 | } | |
31077 | _ACEOF | |
31078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31081 | ac_status=$? |
ac1cb8d3 VS |
31082 | grep -v '^ *+' conftest.er1 >conftest.err |
31083 | rm -f conftest.er1 | |
31084 | cat conftest.err >&5 | |
a848cd7e SC |
31085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31086 | (exit $ac_status); } && | |
7714864e | 31087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31089 | (eval $ac_try) 2>&5 | |
31090 | ac_status=$? | |
31091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31092 | (exit $ac_status); }; } && | |
31093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31095 | (eval $ac_try) 2>&5 | |
31096 | ac_status=$? | |
31097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31098 | (exit $ac_status); }; }; then | |
31099 | ac_cv_lib_resolv_inet_addr=yes | |
31100 | else | |
31101 | echo "$as_me: failed program was:" >&5 | |
31102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31103 | ||
31104 | ac_cv_lib_resolv_inet_addr=no | |
31105 | fi | |
ac1cb8d3 VS |
31106 | rm -f conftest.err conftest.$ac_objext \ |
31107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31108 | LIBS=$ac_check_lib_save_LIBS |
31109 | fi | |
31110 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31111 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31112 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31113 | INET_LINK="resolv" | |
31114 | else | |
31115 | ||
31116 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31117 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31118 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31120 | else | |
31121 | ac_check_lib_save_LIBS=$LIBS | |
31122 | LIBS="-lsocket $LIBS" | |
31123 | cat >conftest.$ac_ext <<_ACEOF | |
31124 | /* confdefs.h. */ | |
31125 | _ACEOF | |
31126 | cat confdefs.h >>conftest.$ac_ext | |
31127 | cat >>conftest.$ac_ext <<_ACEOF | |
31128 | /* end confdefs.h. */ | |
31129 | ||
31130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31131 | #ifdef __cplusplus | |
31132 | extern "C" | |
31133 | #endif | |
31134 | /* We use char because int might match the return type of a gcc2 | |
31135 | builtin and then its argument prototype would still apply. */ | |
31136 | char inet_addr (); | |
31137 | int | |
31138 | main () | |
31139 | { | |
31140 | inet_addr (); | |
31141 | ; | |
31142 | return 0; | |
31143 | } | |
31144 | _ACEOF | |
31145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31147 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31148 | ac_status=$? |
ac1cb8d3 VS |
31149 | grep -v '^ *+' conftest.er1 >conftest.err |
31150 | rm -f conftest.er1 | |
31151 | cat conftest.err >&5 | |
a848cd7e SC |
31152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31153 | (exit $ac_status); } && | |
7714864e | 31154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31156 | (eval $ac_try) 2>&5 | |
31157 | ac_status=$? | |
31158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31159 | (exit $ac_status); }; } && | |
31160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31162 | (eval $ac_try) 2>&5 | |
31163 | ac_status=$? | |
31164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31165 | (exit $ac_status); }; }; then | |
31166 | ac_cv_lib_socket_inet_addr=yes | |
31167 | else | |
31168 | echo "$as_me: failed program was:" >&5 | |
31169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31170 | ||
31171 | ac_cv_lib_socket_inet_addr=no | |
31172 | fi | |
ac1cb8d3 VS |
31173 | rm -f conftest.err conftest.$ac_objext \ |
31174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31175 | LIBS=$ac_check_lib_save_LIBS |
31176 | fi | |
31177 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31178 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31179 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31180 | INET_LINK="socket" | |
31181 | ||
31182 | fi | |
31183 | ||
31184 | ||
31185 | ||
31186 | fi | |
31187 | ||
31188 | ||
31189 | ||
31190 | fi | |
31191 | ||
31192 | ||
31193 | ||
31194 | fi | |
31195 | done | |
31196 | ||
31197 | ||
31198 | ||
31199 | for ac_func in inet_aton | |
31200 | do | |
31201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31204 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31206 | else | |
31207 | cat >conftest.$ac_ext <<_ACEOF | |
31208 | /* confdefs.h. */ | |
31209 | _ACEOF | |
31210 | cat confdefs.h >>conftest.$ac_ext | |
31211 | cat >>conftest.$ac_ext <<_ACEOF | |
31212 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31213 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31214 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31215 | #define $ac_func innocuous_$ac_func | |
31216 | ||
a848cd7e SC |
31217 | /* System header to define __stub macros and hopefully few prototypes, |
31218 | which can conflict with char $ac_func (); below. | |
31219 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31220 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31221 | |
a848cd7e SC |
31222 | #ifdef __STDC__ |
31223 | # include <limits.h> | |
31224 | #else | |
31225 | # include <assert.h> | |
31226 | #endif | |
ac1cb8d3 VS |
31227 | |
31228 | #undef $ac_func | |
31229 | ||
a848cd7e SC |
31230 | /* Override any gcc2 internal prototype to avoid an error. */ |
31231 | #ifdef __cplusplus | |
31232 | extern "C" | |
31233 | { | |
31234 | #endif | |
31235 | /* We use char because int might match the return type of a gcc2 | |
31236 | builtin and then its argument prototype would still apply. */ | |
31237 | char $ac_func (); | |
31238 | /* The GNU C library defines this for functions which it implements | |
31239 | to always fail with ENOSYS. Some functions are actually named | |
31240 | something starting with __ and the normal name is an alias. */ | |
31241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31242 | choke me | |
31243 | #else | |
31244 | char (*f) () = $ac_func; | |
31245 | #endif | |
31246 | #ifdef __cplusplus | |
31247 | } | |
31248 | #endif | |
31249 | ||
31250 | int | |
31251 | main () | |
31252 | { | |
31253 | return f != $ac_func; | |
31254 | ; | |
31255 | return 0; | |
31256 | } | |
31257 | _ACEOF | |
31258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31260 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31261 | ac_status=$? |
ac1cb8d3 VS |
31262 | grep -v '^ *+' conftest.er1 >conftest.err |
31263 | rm -f conftest.er1 | |
31264 | cat conftest.err >&5 | |
a848cd7e SC |
31265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31266 | (exit $ac_status); } && | |
7714864e | 31267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31269 | (eval $ac_try) 2>&5 | |
31270 | ac_status=$? | |
31271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31272 | (exit $ac_status); }; } && | |
31273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31275 | (eval $ac_try) 2>&5 | |
31276 | ac_status=$? | |
31277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31278 | (exit $ac_status); }; }; then | |
31279 | eval "$as_ac_var=yes" | |
31280 | else | |
31281 | echo "$as_me: failed program was:" >&5 | |
31282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31283 | ||
31284 | eval "$as_ac_var=no" | |
31285 | fi | |
ac1cb8d3 VS |
31286 | rm -f conftest.err conftest.$ac_objext \ |
31287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31288 | fi |
31289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31291 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31292 | cat >>confdefs.h <<_ACEOF | |
31293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31294 | _ACEOF | |
31295 | cat >>confdefs.h <<\_ACEOF | |
31296 | #define HAVE_INET_ATON 1 | |
31297 | _ACEOF | |
31298 | ||
31299 | else | |
31300 | ||
31301 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31302 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31303 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31304 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31306 | else | |
31307 | ac_check_lib_save_LIBS=$LIBS | |
31308 | LIBS="-l$INET_LINK $LIBS" | |
31309 | cat >conftest.$ac_ext <<_ACEOF | |
31310 | /* confdefs.h. */ | |
31311 | _ACEOF | |
31312 | cat confdefs.h >>conftest.$ac_ext | |
31313 | cat >>conftest.$ac_ext <<_ACEOF | |
31314 | /* end confdefs.h. */ | |
31315 | ||
31316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31317 | #ifdef __cplusplus | |
31318 | extern "C" | |
31319 | #endif | |
31320 | /* We use char because int might match the return type of a gcc2 | |
31321 | builtin and then its argument prototype would still apply. */ | |
31322 | char inet_aton (); | |
31323 | int | |
31324 | main () | |
31325 | { | |
31326 | inet_aton (); | |
31327 | ; | |
31328 | return 0; | |
31329 | } | |
31330 | _ACEOF | |
31331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31333 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31334 | ac_status=$? |
ac1cb8d3 VS |
31335 | grep -v '^ *+' conftest.er1 >conftest.err |
31336 | rm -f conftest.er1 | |
31337 | cat conftest.err >&5 | |
a848cd7e SC |
31338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31339 | (exit $ac_status); } && | |
7714864e | 31340 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31342 | (eval $ac_try) 2>&5 | |
31343 | ac_status=$? | |
31344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31345 | (exit $ac_status); }; } && | |
31346 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31348 | (eval $ac_try) 2>&5 | |
31349 | ac_status=$? | |
31350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31351 | (exit $ac_status); }; }; then | |
31352 | eval "$as_ac_Lib=yes" | |
31353 | else | |
31354 | echo "$as_me: failed program was:" >&5 | |
31355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31356 | ||
31357 | eval "$as_ac_Lib=no" | |
31358 | fi | |
ac1cb8d3 VS |
31359 | rm -f conftest.err conftest.$ac_objext \ |
31360 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31361 | LIBS=$ac_check_lib_save_LIBS |
31362 | fi | |
31363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31364 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31365 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31366 | cat >>confdefs.h <<\_ACEOF | |
31367 | #define HAVE_INET_ATON 1 | |
31368 | _ACEOF | |
31369 | ||
31370 | fi | |
31371 | ||
31372 | ||
31373 | fi | |
31374 | done | |
31375 | ||
31376 | ||
31377 | if test "x$INET_LINK" != "x"; then | |
31378 | cat >>confdefs.h <<\_ACEOF | |
31379 | #define HAVE_INET_ADDR 1 | |
31380 | _ACEOF | |
31381 | ||
31382 | INET_LINK=" -l$INET_LINK" | |
31383 | fi | |
31384 | ||
31385 | fi | |
31386 | ||
31387 | ||
31388 | ||
31389 | EXTRALIBS_ESD= | |
31390 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31391 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31392 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31394 | else | |
31395 | ac_check_lib_save_LIBS=$LIBS | |
31396 | LIBS="-lesd $LIBS" | |
31397 | cat >conftest.$ac_ext <<_ACEOF | |
31398 | /* confdefs.h. */ | |
31399 | _ACEOF | |
31400 | cat confdefs.h >>conftest.$ac_ext | |
31401 | cat >>conftest.$ac_ext <<_ACEOF | |
31402 | /* end confdefs.h. */ | |
31403 | ||
31404 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31405 | #ifdef __cplusplus | |
31406 | extern "C" | |
31407 | #endif | |
31408 | /* We use char because int might match the return type of a gcc2 | |
31409 | builtin and then its argument prototype would still apply. */ | |
31410 | char esd_close (); | |
31411 | int | |
31412 | main () | |
31413 | { | |
31414 | esd_close (); | |
31415 | ; | |
31416 | return 0; | |
31417 | } | |
31418 | _ACEOF | |
31419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31421 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31422 | ac_status=$? |
ac1cb8d3 VS |
31423 | grep -v '^ *+' conftest.er1 >conftest.err |
31424 | rm -f conftest.er1 | |
31425 | cat conftest.err >&5 | |
a848cd7e SC |
31426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31427 | (exit $ac_status); } && | |
7714864e | 31428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31430 | (eval $ac_try) 2>&5 | |
31431 | ac_status=$? | |
31432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31433 | (exit $ac_status); }; } && | |
31434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31436 | (eval $ac_try) 2>&5 | |
31437 | ac_status=$? | |
31438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31439 | (exit $ac_status); }; }; then | |
31440 | ac_cv_lib_esd_esd_close=yes | |
31441 | else | |
31442 | echo "$as_me: failed program was:" >&5 | |
31443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31444 | ||
31445 | ac_cv_lib_esd_esd_close=no | |
31446 | fi | |
ac1cb8d3 VS |
31447 | rm -f conftest.err conftest.$ac_objext \ |
31448 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31449 | LIBS=$ac_check_lib_save_LIBS |
31450 | fi | |
31451 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31452 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31453 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31454 | ||
31455 | ||
31456 | for ac_header in esd.h | |
31457 | do | |
31458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31464 | fi | |
31465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31467 | else | |
31468 | # Is the header compilable? | |
31469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31471 | cat >conftest.$ac_ext <<_ACEOF | |
31472 | /* confdefs.h. */ | |
31473 | _ACEOF | |
31474 | cat confdefs.h >>conftest.$ac_ext | |
31475 | cat >>conftest.$ac_ext <<_ACEOF | |
31476 | /* end confdefs.h. */ | |
31477 | $ac_includes_default | |
31478 | #include <$ac_header> | |
31479 | _ACEOF | |
31480 | rm -f conftest.$ac_objext | |
31481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31482 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31483 | ac_status=$? |
ac1cb8d3 VS |
31484 | grep -v '^ *+' conftest.er1 >conftest.err |
31485 | rm -f conftest.er1 | |
31486 | cat conftest.err >&5 | |
a848cd7e SC |
31487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31488 | (exit $ac_status); } && | |
7714864e | 31489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31491 | (eval $ac_try) 2>&5 | |
31492 | ac_status=$? | |
31493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31494 | (exit $ac_status); }; } && | |
31495 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31497 | (eval $ac_try) 2>&5 | |
31498 | ac_status=$? | |
31499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31500 | (exit $ac_status); }; }; then | |
31501 | ac_header_compiler=yes | |
31502 | else | |
31503 | echo "$as_me: failed program was:" >&5 | |
31504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31505 | ||
31506 | ac_header_compiler=no | |
31507 | fi | |
ac1cb8d3 | 31508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31509 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31510 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31511 | ||
31512 | # Is the header present? | |
31513 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31514 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31515 | cat >conftest.$ac_ext <<_ACEOF | |
31516 | /* confdefs.h. */ | |
31517 | _ACEOF | |
31518 | cat confdefs.h >>conftest.$ac_ext | |
31519 | cat >>conftest.$ac_ext <<_ACEOF | |
31520 | /* end confdefs.h. */ | |
31521 | #include <$ac_header> | |
31522 | _ACEOF | |
31523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31525 | ac_status=$? | |
31526 | grep -v '^ *+' conftest.er1 >conftest.err | |
31527 | rm -f conftest.er1 | |
31528 | cat conftest.err >&5 | |
31529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31530 | (exit $ac_status); } >/dev/null; then | |
31531 | if test -s conftest.err; then | |
31532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31533 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31534 | else |
31535 | ac_cpp_err= | |
31536 | fi | |
31537 | else | |
31538 | ac_cpp_err=yes | |
31539 | fi | |
31540 | if test -z "$ac_cpp_err"; then | |
31541 | ac_header_preproc=yes | |
31542 | else | |
31543 | echo "$as_me: failed program was:" >&5 | |
31544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31545 | ||
31546 | ac_header_preproc=no | |
31547 | fi | |
31548 | rm -f conftest.err conftest.$ac_ext | |
31549 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31550 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31551 | ||
31552 | # So? What about this header? | |
ac1cb8d3 VS |
31553 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31554 | yes:no: ) | |
a848cd7e SC |
31555 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31556 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31558 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31559 | ac_header_preproc=yes | |
a848cd7e | 31560 | ;; |
ac1cb8d3 | 31561 | no:yes:* ) |
a848cd7e SC |
31562 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31563 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31564 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31565 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31566 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31567 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31568 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31569 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31571 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31572 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31573 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31574 | ( |
31575 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31576 | ## ----------------------------------------- ## |
31577 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31578 | ## ----------------------------------------- ## | |
a848cd7e SC |
31579 | _ASBOX |
31580 | ) | | |
31581 | sed "s/^/$as_me: WARNING: /" >&2 | |
31582 | ;; | |
31583 | esac | |
31584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31588 | else | |
ac1cb8d3 | 31589 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31590 | fi |
31591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31593 | ||
31594 | fi | |
31595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31596 | cat >>confdefs.h <<_ACEOF | |
31597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31598 | _ACEOF | |
31599 | ||
31600 | EXTRALIBS_ESD="-lesd" | |
31601 | ||
31602 | fi | |
31603 | ||
31604 | done | |
31605 | ||
31606 | ||
31607 | fi | |
31608 | ||
31609 | ||
31610 | ||
31611 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31612 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31613 | cat >conftest.$ac_ext <<_ACEOF | |
31614 | /* confdefs.h. */ | |
31615 | _ACEOF | |
31616 | cat confdefs.h >>conftest.$ac_ext | |
31617 | cat >>conftest.$ac_ext <<_ACEOF | |
31618 | /* end confdefs.h. */ | |
31619 | #ifdef __linux__ | |
31620 | #include <linux/cdrom.h> | |
31621 | #else | |
31622 | /* For Solaris */ | |
31623 | #include <sys/cdio.h> | |
31624 | #endif | |
31625 | ||
31626 | int | |
31627 | main () | |
31628 | { | |
31629 | struct cdrom_tocentry entry, old_entry; | |
31630 | ; | |
31631 | return 0; | |
31632 | } | |
31633 | _ACEOF | |
31634 | rm -f conftest.$ac_objext | |
31635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31636 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31637 | ac_status=$? |
ac1cb8d3 VS |
31638 | grep -v '^ *+' conftest.er1 >conftest.err |
31639 | rm -f conftest.er1 | |
31640 | cat conftest.err >&5 | |
a848cd7e SC |
31641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31642 | (exit $ac_status); } && | |
7714864e | 31643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31645 | (eval $ac_try) 2>&5 | |
31646 | ac_status=$? | |
31647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31648 | (exit $ac_status); }; } && | |
31649 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31651 | (eval $ac_try) 2>&5 | |
31652 | ac_status=$? | |
31653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31654 | (exit $ac_status); }; }; then | |
31655 | echo "$as_me:$LINENO: result: yes" >&5 | |
31656 | echo "${ECHO_T}yes" >&6 | |
31657 | cat >>confdefs.h <<\_ACEOF | |
31658 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31659 | _ACEOF | |
31660 | ||
31661 | else | |
31662 | echo "$as_me: failed program was:" >&5 | |
31663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31664 | ||
31665 | echo "$as_me:$LINENO: result: no" >&5 | |
31666 | echo "${ECHO_T}no" >&6 | |
31667 | fi | |
ac1cb8d3 | 31668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31669 | |
31670 | ||
31671 | cat >confcache <<\_ACEOF | |
31672 | # This file is a shell script that caches the results of configure | |
31673 | # tests run on this system so they can be shared between configure | |
31674 | # scripts and configure runs, see configure's option --config-cache. | |
31675 | # It is not useful on other systems. If it contains results you don't | |
31676 | # want to keep, you may remove or edit it. | |
31677 | # | |
31678 | # config.status only pays attention to the cache file if you give it | |
31679 | # the --recheck option to rerun configure. | |
31680 | # | |
31681 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31682 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31683 | # following values. | |
31684 | ||
31685 | _ACEOF | |
31686 | ||
31687 | # The following way of writing the cache mishandles newlines in values, | |
31688 | # but we know of no workaround that is simple, portable, and efficient. | |
31689 | # So, don't put newlines in cache variables' values. | |
31690 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31691 | # and sets the high bit in the cache file unless we assign to the vars. | |
31692 | { | |
31693 | (set) 2>&1 | | |
31694 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31695 | *ac_space=\ *) | |
31696 | # `set' does not quote correctly, so add quotes (double-quote | |
31697 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31698 | sed -n \ | |
ac1cb8d3 VS |
31699 | "s/'/'\\\\''/g; |
31700 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31701 | ;; |
31702 | *) | |
31703 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31704 | sed -n \ | |
ac1cb8d3 | 31705 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31706 | ;; |
31707 | esac; | |
31708 | } | | |
31709 | sed ' | |
31710 | t clear | |
31711 | : clear | |
31712 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31713 | t end | |
31714 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31715 | : end' >>confcache | |
31716 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31717 | if test -w $cache_file; then | |
31718 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31719 | cat confcache >$cache_file | |
31720 | else | |
31721 | echo "not updating unwritable cache $cache_file" | |
31722 | fi | |
31723 | fi | |
31724 | rm -f confcache | |
31725 | ||
31726 | ||
31727 | CPP_MT_FLAG= | |
31728 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31729 | ||
31730 | ||
31731 | THREADS_LINK= | |
31732 | THREADS_CFLAGS= | |
31733 | ||
31734 | if test "$wxUSE_THREADS" = "yes" ; then | |
31735 | if test "$USE_BEOS" = 1; then | |
31736 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31737 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31738 | wxUSE_THREADS="no" | |
31739 | fi | |
31740 | fi | |
31741 | ||
31742 | if test "$wxUSE_THREADS" = "yes" ; then | |
31743 | ||
31744 | ||
31745 | THREAD_OPTS="-pthread" | |
31746 | case "${host}" in | |
31747 | *-*-solaris2* | *-*-sunos4* ) | |
31748 | if test "x$GCC" = "xyes"; then | |
31749 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31750 | else | |
31751 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31752 | fi | |
31753 | ;; | |
31754 | *-*-freebsd*) | |
31755 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31756 | ;; | |
31757 | *-*-darwin* | *-*-cygwin* ) | |
31758 | THREAD_OPTS="" | |
31759 | ;; | |
31760 | *-*-aix*) | |
31761 | THREAD_OPTS="pthreads" | |
31762 | ;; | |
31763 | *-hp-hpux* ) | |
31764 | if test "x$GCC" != "xyes"; then | |
31765 | THREAD_OPTS="" | |
31766 | fi | |
31767 | ;; | |
31768 | ||
31769 | *-*-irix* ) | |
31770 | if test "x$GCC" = "xyes"; then | |
31771 | THREAD_OPTS="" | |
31772 | fi | |
31773 | ;; | |
31774 | ||
31775 | *-*-*UnixWare*) | |
31776 | if test "x$GCC" != "xyes"; then | |
31777 | THREAD_OPTS="-Ethread" | |
31778 | fi | |
31779 | ;; | |
31780 | esac | |
31781 | ||
31782 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31783 | ||
31784 | THREADS_OK=no | |
31785 | for flag in $THREAD_OPTS; do | |
31786 | case $flag in | |
31787 | none) | |
31788 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31789 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31790 | ;; | |
31791 | ||
31792 | -*) | |
31793 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31794 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31795 | THREADS_CFLAGS="$flag" | |
31796 | ;; | |
31797 | ||
31798 | *) | |
31799 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31800 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31801 | THREADS_LINK="-l$flag" | |
31802 | ;; | |
31803 | esac | |
31804 | ||
31805 | save_LIBS="$LIBS" | |
31806 | save_CFLAGS="$CFLAGS" | |
31807 | LIBS="$THREADS_LINK $LIBS" | |
31808 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31809 | ||
31810 | cat >conftest.$ac_ext <<_ACEOF | |
31811 | /* confdefs.h. */ | |
31812 | _ACEOF | |
31813 | cat confdefs.h >>conftest.$ac_ext | |
31814 | cat >>conftest.$ac_ext <<_ACEOF | |
31815 | /* end confdefs.h. */ | |
31816 | #include <pthread.h> | |
31817 | int | |
31818 | main () | |
31819 | { | |
31820 | pthread_create(0,0,0,0); | |
31821 | ; | |
31822 | return 0; | |
31823 | } | |
31824 | _ACEOF | |
31825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31827 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31828 | ac_status=$? |
ac1cb8d3 VS |
31829 | grep -v '^ *+' conftest.er1 >conftest.err |
31830 | rm -f conftest.er1 | |
31831 | cat conftest.err >&5 | |
a848cd7e SC |
31832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31833 | (exit $ac_status); } && | |
7714864e | 31834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31836 | (eval $ac_try) 2>&5 | |
31837 | ac_status=$? | |
31838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31839 | (exit $ac_status); }; } && | |
31840 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31842 | (eval $ac_try) 2>&5 | |
31843 | ac_status=$? | |
31844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31845 | (exit $ac_status); }; }; then | |
31846 | THREADS_OK=yes | |
31847 | else | |
31848 | echo "$as_me: failed program was:" >&5 | |
31849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31850 | ||
31851 | fi | |
ac1cb8d3 VS |
31852 | rm -f conftest.err conftest.$ac_objext \ |
31853 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31854 | |
31855 | LIBS="$save_LIBS" | |
31856 | CFLAGS="$save_CFLAGS" | |
31857 | ||
31858 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31859 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31860 | if test "x$THREADS_OK" = "xyes"; then | |
31861 | break; | |
31862 | fi | |
31863 | ||
31864 | THREADS_LINK="" | |
31865 | THREADS_CFLAGS="" | |
31866 | done | |
31867 | ||
31868 | if test "x$THREADS_OK" != "xyes"; then | |
31869 | wxUSE_THREADS=no | |
31870 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31871 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31872 | else | |
31873 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31874 | LIBS="$THREADS_LINK $LIBS" | |
31875 | ||
31876 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31877 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31878 | flag=no | |
31879 | case "${host}" in | |
31880 | *-aix*) | |
31881 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31882 | flag="-D_THREAD_SAFE" | |
31883 | ;; | |
31884 | *-freebsd*) | |
31885 | flag="-D_THREAD_SAFE" | |
31886 | ;; | |
31887 | *-hp-hpux* ) | |
31888 | flag="-D_REENTRANT" | |
31889 | if test "x$GCC" != "xyes"; then | |
31890 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31891 | |
31892 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31893 | fi |
31894 | ;; | |
31895 | *solaris* | alpha*-osf*) | |
31896 | flag="-D_REENTRANT" | |
31897 | ;; | |
31898 | esac | |
31899 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31900 | echo "${ECHO_T}${flag}" >&6 | |
31901 | if test "x$flag" != xno; then | |
31902 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31903 | fi | |
31904 | ||
31905 | if test "x$THREADS_CFLAGS" != "x"; then | |
31906 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31907 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31908 | fi | |
31909 | fi | |
31910 | fi | |
31911 | ||
31912 | if test "$wxUSE_THREADS" = "yes" ; then | |
31913 | ||
31914 | for ac_func in thr_setconcurrency | |
31915 | do | |
31916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31917 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31919 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31921 | else | |
31922 | cat >conftest.$ac_ext <<_ACEOF | |
31923 | /* confdefs.h. */ | |
31924 | _ACEOF | |
31925 | cat confdefs.h >>conftest.$ac_ext | |
31926 | cat >>conftest.$ac_ext <<_ACEOF | |
31927 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31930 | #define $ac_func innocuous_$ac_func | |
31931 | ||
a848cd7e SC |
31932 | /* System header to define __stub macros and hopefully few prototypes, |
31933 | which can conflict with char $ac_func (); below. | |
31934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31935 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31936 | |
a848cd7e SC |
31937 | #ifdef __STDC__ |
31938 | # include <limits.h> | |
31939 | #else | |
31940 | # include <assert.h> | |
31941 | #endif | |
ac1cb8d3 VS |
31942 | |
31943 | #undef $ac_func | |
31944 | ||
a848cd7e SC |
31945 | /* Override any gcc2 internal prototype to avoid an error. */ |
31946 | #ifdef __cplusplus | |
31947 | extern "C" | |
31948 | { | |
31949 | #endif | |
31950 | /* We use char because int might match the return type of a gcc2 | |
31951 | builtin and then its argument prototype would still apply. */ | |
31952 | char $ac_func (); | |
31953 | /* The GNU C library defines this for functions which it implements | |
31954 | to always fail with ENOSYS. Some functions are actually named | |
31955 | something starting with __ and the normal name is an alias. */ | |
31956 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31957 | choke me | |
31958 | #else | |
31959 | char (*f) () = $ac_func; | |
31960 | #endif | |
31961 | #ifdef __cplusplus | |
31962 | } | |
31963 | #endif | |
31964 | ||
31965 | int | |
31966 | main () | |
31967 | { | |
31968 | return f != $ac_func; | |
31969 | ; | |
31970 | return 0; | |
31971 | } | |
31972 | _ACEOF | |
31973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31975 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31976 | ac_status=$? |
ac1cb8d3 VS |
31977 | grep -v '^ *+' conftest.er1 >conftest.err |
31978 | rm -f conftest.er1 | |
31979 | cat conftest.err >&5 | |
a848cd7e SC |
31980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31981 | (exit $ac_status); } && | |
7714864e | 31982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31984 | (eval $ac_try) 2>&5 | |
31985 | ac_status=$? | |
31986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31987 | (exit $ac_status); }; } && | |
31988 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31990 | (eval $ac_try) 2>&5 | |
31991 | ac_status=$? | |
31992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31993 | (exit $ac_status); }; }; then | |
31994 | eval "$as_ac_var=yes" | |
31995 | else | |
31996 | echo "$as_me: failed program was:" >&5 | |
31997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31998 | ||
31999 | eval "$as_ac_var=no" | |
32000 | fi | |
ac1cb8d3 VS |
32001 | rm -f conftest.err conftest.$ac_objext \ |
32002 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32003 | fi |
32004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32005 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32006 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32007 | cat >>confdefs.h <<_ACEOF | |
32008 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32009 | _ACEOF | |
32010 | ||
32011 | fi | |
32012 | done | |
32013 | ||
32014 | ||
32015 | ||
32016 | for ac_header in sched.h | |
32017 | do | |
32018 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32020 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32024 | fi | |
32025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32027 | else | |
32028 | # Is the header compilable? | |
32029 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32030 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32031 | cat >conftest.$ac_ext <<_ACEOF | |
32032 | /* confdefs.h. */ | |
32033 | _ACEOF | |
32034 | cat confdefs.h >>conftest.$ac_ext | |
32035 | cat >>conftest.$ac_ext <<_ACEOF | |
32036 | /* end confdefs.h. */ | |
32037 | $ac_includes_default | |
32038 | #include <$ac_header> | |
32039 | _ACEOF | |
32040 | rm -f conftest.$ac_objext | |
32041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32042 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32043 | ac_status=$? |
ac1cb8d3 VS |
32044 | grep -v '^ *+' conftest.er1 >conftest.err |
32045 | rm -f conftest.er1 | |
32046 | cat conftest.err >&5 | |
a848cd7e SC |
32047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32048 | (exit $ac_status); } && | |
7714864e | 32049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32051 | (eval $ac_try) 2>&5 | |
32052 | ac_status=$? | |
32053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32054 | (exit $ac_status); }; } && | |
32055 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32057 | (eval $ac_try) 2>&5 | |
32058 | ac_status=$? | |
32059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32060 | (exit $ac_status); }; }; then | |
32061 | ac_header_compiler=yes | |
32062 | else | |
32063 | echo "$as_me: failed program was:" >&5 | |
32064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32065 | ||
32066 | ac_header_compiler=no | |
32067 | fi | |
ac1cb8d3 | 32068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32069 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32070 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32071 | ||
32072 | # Is the header present? | |
32073 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32074 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32075 | cat >conftest.$ac_ext <<_ACEOF | |
32076 | /* confdefs.h. */ | |
32077 | _ACEOF | |
32078 | cat confdefs.h >>conftest.$ac_ext | |
32079 | cat >>conftest.$ac_ext <<_ACEOF | |
32080 | /* end confdefs.h. */ | |
32081 | #include <$ac_header> | |
32082 | _ACEOF | |
32083 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32084 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32085 | ac_status=$? | |
32086 | grep -v '^ *+' conftest.er1 >conftest.err | |
32087 | rm -f conftest.er1 | |
32088 | cat conftest.err >&5 | |
32089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32090 | (exit $ac_status); } >/dev/null; then | |
32091 | if test -s conftest.err; then | |
32092 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32093 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32094 | else |
32095 | ac_cpp_err= | |
32096 | fi | |
32097 | else | |
32098 | ac_cpp_err=yes | |
32099 | fi | |
32100 | if test -z "$ac_cpp_err"; then | |
32101 | ac_header_preproc=yes | |
32102 | else | |
32103 | echo "$as_me: failed program was:" >&5 | |
32104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32105 | ||
32106 | ac_header_preproc=no | |
32107 | fi | |
32108 | rm -f conftest.err conftest.$ac_ext | |
32109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32110 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32111 | ||
32112 | # So? What about this header? | |
ac1cb8d3 VS |
32113 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32114 | yes:no: ) | |
a848cd7e SC |
32115 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32116 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32118 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32119 | ac_header_preproc=yes | |
a848cd7e | 32120 | ;; |
ac1cb8d3 | 32121 | no:yes:* ) |
a848cd7e SC |
32122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32126 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32127 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32128 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32129 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32132 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32133 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32134 | ( |
32135 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32136 | ## ----------------------------------------- ## |
32137 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32138 | ## ----------------------------------------- ## | |
a848cd7e SC |
32139 | _ASBOX |
32140 | ) | | |
32141 | sed "s/^/$as_me: WARNING: /" >&2 | |
32142 | ;; | |
32143 | esac | |
32144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32148 | else | |
ac1cb8d3 | 32149 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32150 | fi |
32151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32153 | ||
32154 | fi | |
32155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32156 | cat >>confdefs.h <<_ACEOF | |
32157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32158 | _ACEOF | |
32159 | ||
32160 | fi | |
32161 | ||
32162 | done | |
32163 | ||
32164 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32165 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32166 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32167 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32169 | else | |
32170 | cat >conftest.$ac_ext <<_ACEOF | |
32171 | /* confdefs.h. */ | |
32172 | _ACEOF | |
32173 | cat confdefs.h >>conftest.$ac_ext | |
32174 | cat >>conftest.$ac_ext <<_ACEOF | |
32175 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32176 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32177 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32178 | #define sched_yield innocuous_sched_yield | |
32179 | ||
a848cd7e SC |
32180 | /* System header to define __stub macros and hopefully few prototypes, |
32181 | which can conflict with char sched_yield (); below. | |
32182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32183 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32184 | |
a848cd7e SC |
32185 | #ifdef __STDC__ |
32186 | # include <limits.h> | |
32187 | #else | |
32188 | # include <assert.h> | |
32189 | #endif | |
ac1cb8d3 VS |
32190 | |
32191 | #undef sched_yield | |
32192 | ||
a848cd7e SC |
32193 | /* Override any gcc2 internal prototype to avoid an error. */ |
32194 | #ifdef __cplusplus | |
32195 | extern "C" | |
32196 | { | |
32197 | #endif | |
32198 | /* We use char because int might match the return type of a gcc2 | |
32199 | builtin and then its argument prototype would still apply. */ | |
32200 | char sched_yield (); | |
32201 | /* The GNU C library defines this for functions which it implements | |
32202 | to always fail with ENOSYS. Some functions are actually named | |
32203 | something starting with __ and the normal name is an alias. */ | |
32204 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32205 | choke me | |
32206 | #else | |
32207 | char (*f) () = sched_yield; | |
32208 | #endif | |
32209 | #ifdef __cplusplus | |
32210 | } | |
32211 | #endif | |
32212 | ||
32213 | int | |
32214 | main () | |
32215 | { | |
32216 | return f != sched_yield; | |
32217 | ; | |
32218 | return 0; | |
32219 | } | |
32220 | _ACEOF | |
32221 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32223 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32224 | ac_status=$? |
ac1cb8d3 VS |
32225 | grep -v '^ *+' conftest.er1 >conftest.err |
32226 | rm -f conftest.er1 | |
32227 | cat conftest.err >&5 | |
a848cd7e SC |
32228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32229 | (exit $ac_status); } && | |
7714864e | 32230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32232 | (eval $ac_try) 2>&5 | |
32233 | ac_status=$? | |
32234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32235 | (exit $ac_status); }; } && | |
32236 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32238 | (eval $ac_try) 2>&5 | |
32239 | ac_status=$? | |
32240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32241 | (exit $ac_status); }; }; then | |
32242 | ac_cv_func_sched_yield=yes | |
32243 | else | |
32244 | echo "$as_me: failed program was:" >&5 | |
32245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32246 | ||
32247 | ac_cv_func_sched_yield=no | |
32248 | fi | |
ac1cb8d3 VS |
32249 | rm -f conftest.err conftest.$ac_objext \ |
32250 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32251 | fi |
32252 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32253 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32254 | if test $ac_cv_func_sched_yield = yes; then | |
32255 | cat >>confdefs.h <<\_ACEOF | |
32256 | #define HAVE_SCHED_YIELD 1 | |
32257 | _ACEOF | |
32258 | ||
32259 | else | |
32260 | ||
32261 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32262 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32263 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32265 | else | |
32266 | ac_check_lib_save_LIBS=$LIBS | |
32267 | LIBS="-lposix4 $LIBS" | |
32268 | cat >conftest.$ac_ext <<_ACEOF | |
32269 | /* confdefs.h. */ | |
32270 | _ACEOF | |
32271 | cat confdefs.h >>conftest.$ac_ext | |
32272 | cat >>conftest.$ac_ext <<_ACEOF | |
32273 | /* end confdefs.h. */ | |
32274 | ||
32275 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32276 | #ifdef __cplusplus | |
32277 | extern "C" | |
32278 | #endif | |
32279 | /* We use char because int might match the return type of a gcc2 | |
32280 | builtin and then its argument prototype would still apply. */ | |
32281 | char sched_yield (); | |
32282 | int | |
32283 | main () | |
32284 | { | |
32285 | sched_yield (); | |
32286 | ; | |
32287 | return 0; | |
32288 | } | |
32289 | _ACEOF | |
32290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32293 | ac_status=$? |
ac1cb8d3 VS |
32294 | grep -v '^ *+' conftest.er1 >conftest.err |
32295 | rm -f conftest.er1 | |
32296 | cat conftest.err >&5 | |
a848cd7e SC |
32297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32298 | (exit $ac_status); } && | |
7714864e | 32299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32301 | (eval $ac_try) 2>&5 | |
32302 | ac_status=$? | |
32303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32304 | (exit $ac_status); }; } && | |
32305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32307 | (eval $ac_try) 2>&5 | |
32308 | ac_status=$? | |
32309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32310 | (exit $ac_status); }; }; then | |
32311 | ac_cv_lib_posix4_sched_yield=yes | |
32312 | else | |
32313 | echo "$as_me: failed program was:" >&5 | |
32314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32315 | ||
32316 | ac_cv_lib_posix4_sched_yield=no | |
32317 | fi | |
ac1cb8d3 VS |
32318 | rm -f conftest.err conftest.$ac_objext \ |
32319 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32320 | LIBS=$ac_check_lib_save_LIBS |
32321 | fi | |
32322 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32323 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32324 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32325 | cat >>confdefs.h <<\_ACEOF | |
32326 | #define HAVE_SCHED_YIELD 1 | |
32327 | _ACEOF | |
32328 | POSIX4_LINK=" -lposix4" | |
32329 | else | |
32330 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32331 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32332 | ||
32333 | fi | |
32334 | ||
32335 | ||
32336 | ||
32337 | fi | |
32338 | ||
32339 | fi | |
32340 | ||
32341 | HAVE_PRIOR_FUNCS=0 | |
32342 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32343 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32344 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32346 | else | |
32347 | cat >conftest.$ac_ext <<_ACEOF | |
32348 | /* confdefs.h. */ | |
32349 | _ACEOF | |
32350 | cat confdefs.h >>conftest.$ac_ext | |
32351 | cat >>conftest.$ac_ext <<_ACEOF | |
32352 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32353 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32355 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32356 | ||
a848cd7e SC |
32357 | /* System header to define __stub macros and hopefully few prototypes, |
32358 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32360 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32361 | |
a848cd7e SC |
32362 | #ifdef __STDC__ |
32363 | # include <limits.h> | |
32364 | #else | |
32365 | # include <assert.h> | |
32366 | #endif | |
ac1cb8d3 VS |
32367 | |
32368 | #undef pthread_attr_getschedpolicy | |
32369 | ||
a848cd7e SC |
32370 | /* Override any gcc2 internal prototype to avoid an error. */ |
32371 | #ifdef __cplusplus | |
32372 | extern "C" | |
32373 | { | |
32374 | #endif | |
32375 | /* We use char because int might match the return type of a gcc2 | |
32376 | builtin and then its argument prototype would still apply. */ | |
32377 | char pthread_attr_getschedpolicy (); | |
32378 | /* The GNU C library defines this for functions which it implements | |
32379 | to always fail with ENOSYS. Some functions are actually named | |
32380 | something starting with __ and the normal name is an alias. */ | |
32381 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32382 | choke me | |
32383 | #else | |
32384 | char (*f) () = pthread_attr_getschedpolicy; | |
32385 | #endif | |
32386 | #ifdef __cplusplus | |
32387 | } | |
32388 | #endif | |
32389 | ||
32390 | int | |
32391 | main () | |
32392 | { | |
32393 | return f != pthread_attr_getschedpolicy; | |
32394 | ; | |
32395 | return 0; | |
32396 | } | |
32397 | _ACEOF | |
32398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32400 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32401 | ac_status=$? |
ac1cb8d3 VS |
32402 | grep -v '^ *+' conftest.er1 >conftest.err |
32403 | rm -f conftest.er1 | |
32404 | cat conftest.err >&5 | |
a848cd7e SC |
32405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32406 | (exit $ac_status); } && | |
7714864e | 32407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32409 | (eval $ac_try) 2>&5 | |
32410 | ac_status=$? | |
32411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32412 | (exit $ac_status); }; } && | |
32413 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32415 | (eval $ac_try) 2>&5 | |
32416 | ac_status=$? | |
32417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32418 | (exit $ac_status); }; }; then | |
32419 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32420 | else | |
32421 | echo "$as_me: failed program was:" >&5 | |
32422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32423 | ||
32424 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32425 | fi | |
ac1cb8d3 VS |
32426 | rm -f conftest.err conftest.$ac_objext \ |
32427 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32428 | fi |
32429 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32430 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32431 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32432 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32433 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32434 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32436 | else | |
32437 | cat >conftest.$ac_ext <<_ACEOF | |
32438 | /* confdefs.h. */ | |
32439 | _ACEOF | |
32440 | cat confdefs.h >>conftest.$ac_ext | |
32441 | cat >>conftest.$ac_ext <<_ACEOF | |
32442 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32443 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32444 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32445 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32446 | ||
a848cd7e SC |
32447 | /* System header to define __stub macros and hopefully few prototypes, |
32448 | which can conflict with char pthread_attr_setschedparam (); below. | |
32449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32450 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32451 | |
a848cd7e SC |
32452 | #ifdef __STDC__ |
32453 | # include <limits.h> | |
32454 | #else | |
32455 | # include <assert.h> | |
32456 | #endif | |
ac1cb8d3 VS |
32457 | |
32458 | #undef pthread_attr_setschedparam | |
32459 | ||
a848cd7e SC |
32460 | /* Override any gcc2 internal prototype to avoid an error. */ |
32461 | #ifdef __cplusplus | |
32462 | extern "C" | |
32463 | { | |
32464 | #endif | |
32465 | /* We use char because int might match the return type of a gcc2 | |
32466 | builtin and then its argument prototype would still apply. */ | |
32467 | char pthread_attr_setschedparam (); | |
32468 | /* The GNU C library defines this for functions which it implements | |
32469 | to always fail with ENOSYS. Some functions are actually named | |
32470 | something starting with __ and the normal name is an alias. */ | |
32471 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32472 | choke me | |
32473 | #else | |
32474 | char (*f) () = pthread_attr_setschedparam; | |
32475 | #endif | |
32476 | #ifdef __cplusplus | |
32477 | } | |
32478 | #endif | |
32479 | ||
32480 | int | |
32481 | main () | |
32482 | { | |
32483 | return f != pthread_attr_setschedparam; | |
32484 | ; | |
32485 | return 0; | |
32486 | } | |
32487 | _ACEOF | |
32488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32490 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32491 | ac_status=$? |
ac1cb8d3 VS |
32492 | grep -v '^ *+' conftest.er1 >conftest.err |
32493 | rm -f conftest.er1 | |
32494 | cat conftest.err >&5 | |
a848cd7e SC |
32495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32496 | (exit $ac_status); } && | |
7714864e | 32497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32499 | (eval $ac_try) 2>&5 | |
32500 | ac_status=$? | |
32501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32502 | (exit $ac_status); }; } && | |
32503 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32505 | (eval $ac_try) 2>&5 | |
32506 | ac_status=$? | |
32507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32508 | (exit $ac_status); }; }; then | |
32509 | ac_cv_func_pthread_attr_setschedparam=yes | |
32510 | else | |
32511 | echo "$as_me: failed program was:" >&5 | |
32512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32513 | ||
32514 | ac_cv_func_pthread_attr_setschedparam=no | |
32515 | fi | |
ac1cb8d3 VS |
32516 | rm -f conftest.err conftest.$ac_objext \ |
32517 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32518 | fi |
32519 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32520 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32521 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32522 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32523 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32524 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32526 | else | |
32527 | cat >conftest.$ac_ext <<_ACEOF | |
32528 | /* confdefs.h. */ | |
32529 | _ACEOF | |
32530 | cat confdefs.h >>conftest.$ac_ext | |
32531 | cat >>conftest.$ac_ext <<_ACEOF | |
32532 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32533 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32535 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32536 | ||
a848cd7e SC |
32537 | /* System header to define __stub macros and hopefully few prototypes, |
32538 | which can conflict with char sched_get_priority_max (); below. | |
32539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32540 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32541 | |
a848cd7e SC |
32542 | #ifdef __STDC__ |
32543 | # include <limits.h> | |
32544 | #else | |
32545 | # include <assert.h> | |
32546 | #endif | |
ac1cb8d3 VS |
32547 | |
32548 | #undef sched_get_priority_max | |
32549 | ||
a848cd7e SC |
32550 | /* Override any gcc2 internal prototype to avoid an error. */ |
32551 | #ifdef __cplusplus | |
32552 | extern "C" | |
32553 | { | |
32554 | #endif | |
32555 | /* We use char because int might match the return type of a gcc2 | |
32556 | builtin and then its argument prototype would still apply. */ | |
32557 | char sched_get_priority_max (); | |
32558 | /* The GNU C library defines this for functions which it implements | |
32559 | to always fail with ENOSYS. Some functions are actually named | |
32560 | something starting with __ and the normal name is an alias. */ | |
32561 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32562 | choke me | |
32563 | #else | |
32564 | char (*f) () = sched_get_priority_max; | |
32565 | #endif | |
32566 | #ifdef __cplusplus | |
32567 | } | |
32568 | #endif | |
32569 | ||
32570 | int | |
32571 | main () | |
32572 | { | |
32573 | return f != sched_get_priority_max; | |
32574 | ; | |
32575 | return 0; | |
32576 | } | |
32577 | _ACEOF | |
32578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32580 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32581 | ac_status=$? |
ac1cb8d3 VS |
32582 | grep -v '^ *+' conftest.er1 >conftest.err |
32583 | rm -f conftest.er1 | |
32584 | cat conftest.err >&5 | |
a848cd7e SC |
32585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32586 | (exit $ac_status); } && | |
7714864e | 32587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32589 | (eval $ac_try) 2>&5 | |
32590 | ac_status=$? | |
32591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32592 | (exit $ac_status); }; } && | |
32593 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32595 | (eval $ac_try) 2>&5 | |
32596 | ac_status=$? | |
32597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32598 | (exit $ac_status); }; }; then | |
32599 | ac_cv_func_sched_get_priority_max=yes | |
32600 | else | |
32601 | echo "$as_me: failed program was:" >&5 | |
32602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32603 | ||
32604 | ac_cv_func_sched_get_priority_max=no | |
32605 | fi | |
ac1cb8d3 VS |
32606 | rm -f conftest.err conftest.$ac_objext \ |
32607 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32608 | fi |
32609 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32610 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32611 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32612 | HAVE_PRIOR_FUNCS=1 | |
32613 | else | |
32614 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32615 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32616 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32618 | else | |
32619 | ac_check_lib_save_LIBS=$LIBS | |
32620 | LIBS="-lposix4 $LIBS" | |
32621 | cat >conftest.$ac_ext <<_ACEOF | |
32622 | /* confdefs.h. */ | |
32623 | _ACEOF | |
32624 | cat confdefs.h >>conftest.$ac_ext | |
32625 | cat >>conftest.$ac_ext <<_ACEOF | |
32626 | /* end confdefs.h. */ | |
32627 | ||
32628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32629 | #ifdef __cplusplus | |
32630 | extern "C" | |
32631 | #endif | |
32632 | /* We use char because int might match the return type of a gcc2 | |
32633 | builtin and then its argument prototype would still apply. */ | |
32634 | char sched_get_priority_max (); | |
32635 | int | |
32636 | main () | |
32637 | { | |
32638 | sched_get_priority_max (); | |
32639 | ; | |
32640 | return 0; | |
32641 | } | |
32642 | _ACEOF | |
32643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32646 | ac_status=$? |
ac1cb8d3 VS |
32647 | grep -v '^ *+' conftest.er1 >conftest.err |
32648 | rm -f conftest.er1 | |
32649 | cat conftest.err >&5 | |
a848cd7e SC |
32650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32651 | (exit $ac_status); } && | |
7714864e | 32652 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32654 | (eval $ac_try) 2>&5 | |
32655 | ac_status=$? | |
32656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32657 | (exit $ac_status); }; } && | |
32658 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32660 | (eval $ac_try) 2>&5 | |
32661 | ac_status=$? | |
32662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32663 | (exit $ac_status); }; }; then | |
32664 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32665 | else | |
32666 | echo "$as_me: failed program was:" >&5 | |
32667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32668 | ||
32669 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32670 | fi | |
ac1cb8d3 VS |
32671 | rm -f conftest.err conftest.$ac_objext \ |
32672 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32673 | LIBS=$ac_check_lib_save_LIBS |
32674 | fi | |
32675 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32676 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32677 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32678 | ||
32679 | HAVE_PRIOR_FUNCS=1 | |
32680 | POSIX4_LINK=" -lposix4" | |
32681 | ||
32682 | fi | |
32683 | ||
32684 | ||
32685 | fi | |
32686 | ||
32687 | ||
32688 | fi | |
32689 | ||
32690 | ||
32691 | fi | |
32692 | ||
32693 | ||
32694 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32695 | cat >>confdefs.h <<\_ACEOF | |
32696 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32697 | _ACEOF | |
32698 | ||
32699 | else | |
32700 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32701 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32702 | fi | |
32703 | ||
32704 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32705 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32706 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32708 | else | |
32709 | cat >conftest.$ac_ext <<_ACEOF | |
32710 | /* confdefs.h. */ | |
32711 | _ACEOF | |
32712 | cat confdefs.h >>conftest.$ac_ext | |
32713 | cat >>conftest.$ac_ext <<_ACEOF | |
32714 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32715 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32716 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32717 | #define pthread_cancel innocuous_pthread_cancel | |
32718 | ||
a848cd7e SC |
32719 | /* System header to define __stub macros and hopefully few prototypes, |
32720 | which can conflict with char pthread_cancel (); below. | |
32721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32722 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32723 | |
a848cd7e SC |
32724 | #ifdef __STDC__ |
32725 | # include <limits.h> | |
32726 | #else | |
32727 | # include <assert.h> | |
32728 | #endif | |
ac1cb8d3 VS |
32729 | |
32730 | #undef pthread_cancel | |
32731 | ||
a848cd7e SC |
32732 | /* Override any gcc2 internal prototype to avoid an error. */ |
32733 | #ifdef __cplusplus | |
32734 | extern "C" | |
32735 | { | |
32736 | #endif | |
32737 | /* We use char because int might match the return type of a gcc2 | |
32738 | builtin and then its argument prototype would still apply. */ | |
32739 | char pthread_cancel (); | |
32740 | /* The GNU C library defines this for functions which it implements | |
32741 | to always fail with ENOSYS. Some functions are actually named | |
32742 | something starting with __ and the normal name is an alias. */ | |
32743 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32744 | choke me | |
32745 | #else | |
32746 | char (*f) () = pthread_cancel; | |
32747 | #endif | |
32748 | #ifdef __cplusplus | |
32749 | } | |
32750 | #endif | |
32751 | ||
32752 | int | |
32753 | main () | |
32754 | { | |
32755 | return f != pthread_cancel; | |
32756 | ; | |
32757 | return 0; | |
32758 | } | |
32759 | _ACEOF | |
32760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32762 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32763 | ac_status=$? |
ac1cb8d3 VS |
32764 | grep -v '^ *+' conftest.er1 >conftest.err |
32765 | rm -f conftest.er1 | |
32766 | cat conftest.err >&5 | |
a848cd7e SC |
32767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32768 | (exit $ac_status); } && | |
7714864e | 32769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32771 | (eval $ac_try) 2>&5 | |
32772 | ac_status=$? | |
32773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32774 | (exit $ac_status); }; } && | |
32775 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32777 | (eval $ac_try) 2>&5 | |
32778 | ac_status=$? | |
32779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32780 | (exit $ac_status); }; }; then | |
32781 | ac_cv_func_pthread_cancel=yes | |
32782 | else | |
32783 | echo "$as_me: failed program was:" >&5 | |
32784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32785 | ||
32786 | ac_cv_func_pthread_cancel=no | |
32787 | fi | |
ac1cb8d3 VS |
32788 | rm -f conftest.err conftest.$ac_objext \ |
32789 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32790 | fi |
32791 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32792 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32793 | if test $ac_cv_func_pthread_cancel = yes; then | |
32794 | cat >>confdefs.h <<\_ACEOF | |
32795 | #define HAVE_PTHREAD_CANCEL 1 | |
32796 | _ACEOF | |
32797 | ||
32798 | else | |
32799 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32800 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32801 | fi | |
32802 | ||
32803 | ||
32804 | ||
32805 | ||
32806 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32807 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32808 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32810 | else | |
32811 | ||
32812 | cat >conftest.$ac_ext <<_ACEOF | |
32813 | /* confdefs.h. */ | |
32814 | _ACEOF | |
32815 | cat confdefs.h >>conftest.$ac_ext | |
32816 | cat >>conftest.$ac_ext <<_ACEOF | |
32817 | /* end confdefs.h. */ | |
32818 | #include <pthread.h> | |
32819 | int | |
32820 | main () | |
32821 | { | |
32822 | ||
32823 | pthread_mutexattr_t attr; | |
32824 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32825 | ||
32826 | ; | |
32827 | return 0; | |
32828 | } | |
32829 | _ACEOF | |
32830 | rm -f conftest.$ac_objext | |
32831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32833 | ac_status=$? |
ac1cb8d3 VS |
32834 | grep -v '^ *+' conftest.er1 >conftest.err |
32835 | rm -f conftest.er1 | |
32836 | cat conftest.err >&5 | |
a848cd7e SC |
32837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32838 | (exit $ac_status); } && | |
7714864e | 32839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32841 | (eval $ac_try) 2>&5 | |
32842 | ac_status=$? | |
32843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32844 | (exit $ac_status); }; } && | |
32845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32847 | (eval $ac_try) 2>&5 | |
32848 | ac_status=$? | |
32849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32850 | (exit $ac_status); }; }; then | |
32851 | ||
32852 | wx_cv_type_pthread_mutexattr_t=yes | |
32853 | ||
32854 | else | |
32855 | echo "$as_me: failed program was:" >&5 | |
32856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32857 | ||
32858 | ||
32859 | wx_cv_type_pthread_mutexattr_t=no | |
32860 | ||
32861 | ||
32862 | fi | |
ac1cb8d3 | 32863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32864 | |
32865 | fi | |
32866 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32867 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32868 | ||
32869 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32870 | cat >>confdefs.h <<\_ACEOF | |
32871 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32872 | _ACEOF | |
32873 | ||
32874 | else | |
32875 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32876 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32877 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32879 | else | |
32880 | ||
32881 | cat >conftest.$ac_ext <<_ACEOF | |
32882 | /* confdefs.h. */ | |
32883 | _ACEOF | |
32884 | cat confdefs.h >>conftest.$ac_ext | |
32885 | cat >>conftest.$ac_ext <<_ACEOF | |
32886 | /* end confdefs.h. */ | |
32887 | #include <pthread.h> | |
32888 | int | |
32889 | main () | |
32890 | { | |
32891 | ||
32892 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32893 | ||
32894 | ; | |
32895 | return 0; | |
32896 | } | |
32897 | _ACEOF | |
32898 | rm -f conftest.$ac_objext | |
32899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32901 | ac_status=$? |
ac1cb8d3 VS |
32902 | grep -v '^ *+' conftest.er1 >conftest.err |
32903 | rm -f conftest.er1 | |
32904 | cat conftest.err >&5 | |
a848cd7e SC |
32905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32906 | (exit $ac_status); } && | |
7714864e | 32907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32909 | (eval $ac_try) 2>&5 | |
32910 | ac_status=$? | |
32911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32912 | (exit $ac_status); }; } && | |
32913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32915 | (eval $ac_try) 2>&5 | |
32916 | ac_status=$? | |
32917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32918 | (exit $ac_status); }; }; then | |
32919 | ||
32920 | wx_cv_type_pthread_rec_mutex_init=yes | |
32921 | ||
32922 | else | |
32923 | echo "$as_me: failed program was:" >&5 | |
32924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32925 | ||
32926 | ||
32927 | wx_cv_type_pthread_rec_mutex_init=no | |
32928 | ||
32929 | ||
32930 | fi | |
ac1cb8d3 | 32931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32932 | |
32933 | fi | |
32934 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32935 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
32936 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
32937 | cat >>confdefs.h <<\_ACEOF | |
32938 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
32939 | _ACEOF | |
32940 | ||
32941 | else | |
32942 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
32943 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
32944 | fi | |
32945 | fi | |
32946 | fi | |
32947 | ||
32948 | else | |
32949 | if test "$wxUSE_THREADS" = "yes" ; then | |
32950 | case "${host}" in | |
32951 | *-*-mingw32* ) | |
32952 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
32953 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32954 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32956 | else | |
32957 | ||
32958 | CFLAGS_OLD="$CFLAGS" | |
32959 | CFLAGS="$CFLAGS -mthreads" | |
32960 | cat >conftest.$ac_ext <<_ACEOF | |
32961 | /* confdefs.h. */ | |
32962 | _ACEOF | |
32963 | cat confdefs.h >>conftest.$ac_ext | |
32964 | cat >>conftest.$ac_ext <<_ACEOF | |
32965 | /* end confdefs.h. */ | |
32966 | ||
32967 | int | |
32968 | main () | |
32969 | { | |
32970 | ||
32971 | ; | |
32972 | return 0; | |
32973 | } | |
32974 | _ACEOF | |
32975 | rm -f conftest.$ac_objext | |
32976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32978 | ac_status=$? |
ac1cb8d3 VS |
32979 | grep -v '^ *+' conftest.er1 >conftest.err |
32980 | rm -f conftest.er1 | |
32981 | cat conftest.err >&5 | |
a848cd7e SC |
32982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32983 | (exit $ac_status); } && | |
7714864e | 32984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32986 | (eval $ac_try) 2>&5 | |
32987 | ac_status=$? | |
32988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32989 | (exit $ac_status); }; } && | |
32990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32992 | (eval $ac_try) 2>&5 | |
32993 | ac_status=$? | |
32994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32995 | (exit $ac_status); }; }; then | |
32996 | wx_cv_cflags_mthread=yes | |
32997 | else | |
32998 | echo "$as_me: failed program was:" >&5 | |
32999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33000 | ||
33001 | wx_cv_cflags_mthread=no | |
33002 | ||
33003 | fi | |
ac1cb8d3 | 33004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33005 | |
33006 | ||
33007 | fi | |
33008 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
33009 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
33010 | ||
33011 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33012 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33013 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33014 | LDFLAGS="$LDFLAGS -mthreads" | |
33015 | else | |
33016 | CFLAGS="$CFLAGS_OLD" | |
33017 | fi | |
33018 | ;; | |
33019 | *-pc-os2*emx ) | |
33020 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33021 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33022 | LDFLAGS="$LDFLAGS -Zmt" | |
33023 | ;; | |
33024 | esac | |
33025 | fi | |
33026 | fi | |
33027 | ||
33028 | if test "$wxUSE_THREADS" = "yes"; then | |
33029 | cat >>confdefs.h <<\_ACEOF | |
33030 | #define wxUSE_THREADS 1 | |
33031 | _ACEOF | |
33032 | ||
33033 | ||
33034 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33035 | else | |
33036 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33037 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33038 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33039 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33040 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33041 | echo "$as_me:$LINENO: result: yes" >&5 | |
33042 | echo "${ECHO_T}yes" >&6 | |
33043 | else | |
33044 | echo "$as_me:$LINENO: result: no" >&5 | |
33045 | echo "${ECHO_T}no" >&6 | |
33046 | fi | |
33047 | fi | |
33048 | fi | |
33049 | ||
33050 | if test "$WXGTK20" = 1 ; then | |
33051 | cat >>confdefs.h <<_ACEOF | |
33052 | #define __WXGTK20__ $WXGTK20 | |
33053 | _ACEOF | |
33054 | ||
33055 | WXGTK12=1 | |
33056 | fi | |
33057 | ||
33058 | if test "$WXGTK12" = 1 ; then | |
33059 | cat >>confdefs.h <<_ACEOF | |
33060 | #define __WXGTK12__ $WXGTK12 | |
33061 | _ACEOF | |
33062 | ||
33063 | fi | |
33064 | ||
33065 | if test "$WXGTK127" = 1 ; then | |
33066 | cat >>confdefs.h <<_ACEOF | |
33067 | #define __WXGTK127__ $WXGTK127 | |
33068 | _ACEOF | |
33069 | ||
33070 | fi | |
33071 | ||
33072 | if test "$WXGPE" = 1 ; then | |
33073 | cat >>confdefs.h <<_ACEOF | |
33074 | #define __WXGPE__ $WXGPE | |
33075 | _ACEOF | |
33076 | ||
33077 | fi | |
33078 | ||
33079 | WXDEBUG= | |
33080 | ||
33081 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33082 | WXDEBUG="-g" | |
33083 | wxUSE_OPTIMISE=no | |
33084 | fi | |
33085 | ||
33086 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33087 | wxUSE_DEBUG_INFO=yes | |
33088 | WXDEBUG="-ggdb" | |
33089 | fi | |
33090 | ||
33091 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33092 | cat >>confdefs.h <<\_ACEOF | |
33093 | #define WXDEBUG 1 | |
33094 | _ACEOF | |
33095 | ||
33096 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33097 | else | |
33098 | if test "$wxUSE_GTK" = 1 ; then | |
33099 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33100 | fi | |
33101 | fi | |
33102 | ||
33103 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33104 | cat >>confdefs.h <<\_ACEOF | |
33105 | #define wxUSE_MEMORY_TRACING 1 | |
33106 | _ACEOF | |
33107 | ||
33108 | cat >>confdefs.h <<\_ACEOF | |
33109 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33110 | _ACEOF | |
33111 | ||
33112 | cat >>confdefs.h <<\_ACEOF | |
33113 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33114 | _ACEOF | |
33115 | ||
33116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33117 | fi | |
33118 | ||
33119 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33120 | DMALLOC_LIBS="-ldmalloc" | |
33121 | fi | |
33122 | ||
33123 | PROFILE= | |
33124 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33125 | PROFILE=" -pg" | |
33126 | fi | |
33127 | ||
33128 | CODE_GEN_FLAGS= | |
33129 | CODE_GEN_FLAGS_CXX= | |
33130 | if test "$GCC" = "yes" ; then | |
33131 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33132 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33133 | fi | |
33134 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33135 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33136 | fi | |
33137 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33138 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33139 | fi | |
33140 | ||
33141 | case "${host}" in | |
33142 | powerpc*-*-aix* ) | |
33143 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33144 | ;; | |
33145 | *-hppa* ) | |
33146 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33147 | ;; | |
33148 | esac | |
33149 | fi | |
33150 | ||
33151 | OPTIMISE= | |
33152 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33153 | if test "$GCC" = yes ; then | |
33154 | OPTIMISE="-O0" | |
33155 | fi | |
33156 | else | |
33157 | if test "$GCC" = yes ; then | |
33158 | OPTIMISE="-O2" | |
33159 | ||
33160 | case "${host}" in | |
33161 | i586-*-*|i686-*-* ) | |
33162 | OPTIMISE="${OPTIMISE} " | |
33163 | ;; | |
33164 | esac | |
33165 | else | |
33166 | OPTIMISE="-O" | |
33167 | fi | |
33168 | fi | |
33169 | ||
33170 | ||
33171 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33172 | cat >>confdefs.h <<\_ACEOF | |
33173 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33174 | _ACEOF | |
33175 | ||
33176 | ||
33177 | WXWIN_COMPATIBILITY_2_4="yes" | |
33178 | fi | |
33179 | ||
33180 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33181 | cat >>confdefs.h <<\_ACEOF | |
33182 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33183 | _ACEOF | |
33184 | ||
33185 | fi | |
33186 | ||
33187 | ||
33188 | if test "$wxUSE_GUI" = "yes"; then | |
33189 | cat >>confdefs.h <<\_ACEOF | |
33190 | #define wxUSE_GUI 1 | |
33191 | _ACEOF | |
33192 | ||
33193 | ||
33194 | else | |
33195 | cat >>confdefs.h <<\_ACEOF | |
33196 | #define wxUSE_NOGUI 1 | |
33197 | _ACEOF | |
33198 | ||
33199 | fi | |
33200 | ||
33201 | ||
33202 | if test "$wxUSE_UNIX" = "yes"; then | |
33203 | cat >>confdefs.h <<\_ACEOF | |
33204 | #define wxUSE_UNIX 1 | |
33205 | _ACEOF | |
33206 | ||
33207 | fi | |
33208 | ||
33209 | ||
33210 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33211 | ||
33212 | HAVE_DL_FUNCS=0 | |
33213 | HAVE_SHL_FUNCS=0 | |
33214 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33215 | if test "$USE_DARWIN" = 1; then | |
33216 | HAVE_DL_FUNCS=1 | |
33217 | else | |
33218 | ||
33219 | for ac_func in dlopen | |
33220 | do | |
33221 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33222 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33223 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33224 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33226 | else | |
33227 | cat >conftest.$ac_ext <<_ACEOF | |
33228 | /* confdefs.h. */ | |
33229 | _ACEOF | |
33230 | cat confdefs.h >>conftest.$ac_ext | |
33231 | cat >>conftest.$ac_ext <<_ACEOF | |
33232 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33233 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33234 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33235 | #define $ac_func innocuous_$ac_func | |
33236 | ||
a848cd7e SC |
33237 | /* System header to define __stub macros and hopefully few prototypes, |
33238 | which can conflict with char $ac_func (); below. | |
33239 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33240 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33241 | |
a848cd7e SC |
33242 | #ifdef __STDC__ |
33243 | # include <limits.h> | |
33244 | #else | |
33245 | # include <assert.h> | |
33246 | #endif | |
ac1cb8d3 VS |
33247 | |
33248 | #undef $ac_func | |
33249 | ||
a848cd7e SC |
33250 | /* Override any gcc2 internal prototype to avoid an error. */ |
33251 | #ifdef __cplusplus | |
33252 | extern "C" | |
33253 | { | |
33254 | #endif | |
33255 | /* We use char because int might match the return type of a gcc2 | |
33256 | builtin and then its argument prototype would still apply. */ | |
33257 | char $ac_func (); | |
33258 | /* The GNU C library defines this for functions which it implements | |
33259 | to always fail with ENOSYS. Some functions are actually named | |
33260 | something starting with __ and the normal name is an alias. */ | |
33261 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33262 | choke me | |
33263 | #else | |
33264 | char (*f) () = $ac_func; | |
33265 | #endif | |
33266 | #ifdef __cplusplus | |
33267 | } | |
33268 | #endif | |
33269 | ||
33270 | int | |
33271 | main () | |
33272 | { | |
33273 | return f != $ac_func; | |
33274 | ; | |
33275 | return 0; | |
33276 | } | |
33277 | _ACEOF | |
33278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33280 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33281 | ac_status=$? |
ac1cb8d3 VS |
33282 | grep -v '^ *+' conftest.er1 >conftest.err |
33283 | rm -f conftest.er1 | |
33284 | cat conftest.err >&5 | |
a848cd7e SC |
33285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33286 | (exit $ac_status); } && | |
7714864e | 33287 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33289 | (eval $ac_try) 2>&5 | |
33290 | ac_status=$? | |
33291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33292 | (exit $ac_status); }; } && | |
33293 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33295 | (eval $ac_try) 2>&5 | |
33296 | ac_status=$? | |
33297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33298 | (exit $ac_status); }; }; then | |
33299 | eval "$as_ac_var=yes" | |
33300 | else | |
33301 | echo "$as_me: failed program was:" >&5 | |
33302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33303 | ||
33304 | eval "$as_ac_var=no" | |
33305 | fi | |
ac1cb8d3 VS |
33306 | rm -f conftest.err conftest.$ac_objext \ |
33307 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33308 | fi |
33309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33311 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33312 | cat >>confdefs.h <<_ACEOF | |
33313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33314 | _ACEOF | |
33315 | ||
33316 | cat >>confdefs.h <<\_ACEOF | |
33317 | #define HAVE_DLOPEN 1 | |
33318 | _ACEOF | |
33319 | ||
33320 | HAVE_DL_FUNCS=1 | |
33321 | ||
33322 | else | |
33323 | ||
33324 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33325 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33326 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33328 | else | |
33329 | ac_check_lib_save_LIBS=$LIBS | |
33330 | LIBS="-ldl $LIBS" | |
33331 | cat >conftest.$ac_ext <<_ACEOF | |
33332 | /* confdefs.h. */ | |
33333 | _ACEOF | |
33334 | cat confdefs.h >>conftest.$ac_ext | |
33335 | cat >>conftest.$ac_ext <<_ACEOF | |
33336 | /* end confdefs.h. */ | |
33337 | ||
33338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33339 | #ifdef __cplusplus | |
33340 | extern "C" | |
33341 | #endif | |
33342 | /* We use char because int might match the return type of a gcc2 | |
33343 | builtin and then its argument prototype would still apply. */ | |
33344 | char dlopen (); | |
33345 | int | |
33346 | main () | |
33347 | { | |
33348 | dlopen (); | |
33349 | ; | |
33350 | return 0; | |
33351 | } | |
33352 | _ACEOF | |
33353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33355 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33356 | ac_status=$? |
ac1cb8d3 VS |
33357 | grep -v '^ *+' conftest.er1 >conftest.err |
33358 | rm -f conftest.er1 | |
33359 | cat conftest.err >&5 | |
a848cd7e SC |
33360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33361 | (exit $ac_status); } && | |
7714864e | 33362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33364 | (eval $ac_try) 2>&5 | |
33365 | ac_status=$? | |
33366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33367 | (exit $ac_status); }; } && | |
33368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33370 | (eval $ac_try) 2>&5 | |
33371 | ac_status=$? | |
33372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33373 | (exit $ac_status); }; }; then | |
33374 | ac_cv_lib_dl_dlopen=yes | |
33375 | else | |
33376 | echo "$as_me: failed program was:" >&5 | |
33377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33378 | ||
33379 | ac_cv_lib_dl_dlopen=no | |
33380 | fi | |
ac1cb8d3 VS |
33381 | rm -f conftest.err conftest.$ac_objext \ |
33382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33383 | LIBS=$ac_check_lib_save_LIBS |
33384 | fi | |
33385 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33386 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33387 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33388 | ||
33389 | cat >>confdefs.h <<\_ACEOF | |
33390 | #define HAVE_DLOPEN 1 | |
33391 | _ACEOF | |
33392 | ||
33393 | HAVE_DL_FUNCS=1 | |
33394 | DL_LINK=" -ldl$DL_LINK" | |
33395 | ||
33396 | else | |
33397 | ||
33398 | ||
33399 | for ac_func in shl_load | |
33400 | do | |
33401 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33402 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33403 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33404 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33406 | else | |
33407 | cat >conftest.$ac_ext <<_ACEOF | |
33408 | /* confdefs.h. */ | |
33409 | _ACEOF | |
33410 | cat confdefs.h >>conftest.$ac_ext | |
33411 | cat >>conftest.$ac_ext <<_ACEOF | |
33412 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33413 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33414 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33415 | #define $ac_func innocuous_$ac_func | |
33416 | ||
a848cd7e SC |
33417 | /* System header to define __stub macros and hopefully few prototypes, |
33418 | which can conflict with char $ac_func (); below. | |
33419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33420 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33421 | |
a848cd7e SC |
33422 | #ifdef __STDC__ |
33423 | # include <limits.h> | |
33424 | #else | |
33425 | # include <assert.h> | |
33426 | #endif | |
ac1cb8d3 VS |
33427 | |
33428 | #undef $ac_func | |
33429 | ||
a848cd7e SC |
33430 | /* Override any gcc2 internal prototype to avoid an error. */ |
33431 | #ifdef __cplusplus | |
33432 | extern "C" | |
33433 | { | |
33434 | #endif | |
33435 | /* We use char because int might match the return type of a gcc2 | |
33436 | builtin and then its argument prototype would still apply. */ | |
33437 | char $ac_func (); | |
33438 | /* The GNU C library defines this for functions which it implements | |
33439 | to always fail with ENOSYS. Some functions are actually named | |
33440 | something starting with __ and the normal name is an alias. */ | |
33441 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33442 | choke me | |
33443 | #else | |
33444 | char (*f) () = $ac_func; | |
33445 | #endif | |
33446 | #ifdef __cplusplus | |
33447 | } | |
33448 | #endif | |
33449 | ||
33450 | int | |
33451 | main () | |
33452 | { | |
33453 | return f != $ac_func; | |
33454 | ; | |
33455 | return 0; | |
33456 | } | |
33457 | _ACEOF | |
33458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33460 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33461 | ac_status=$? |
ac1cb8d3 VS |
33462 | grep -v '^ *+' conftest.er1 >conftest.err |
33463 | rm -f conftest.er1 | |
33464 | cat conftest.err >&5 | |
a848cd7e SC |
33465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33466 | (exit $ac_status); } && | |
7714864e | 33467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33469 | (eval $ac_try) 2>&5 | |
33470 | ac_status=$? | |
33471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33472 | (exit $ac_status); }; } && | |
33473 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33475 | (eval $ac_try) 2>&5 | |
33476 | ac_status=$? | |
33477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33478 | (exit $ac_status); }; }; then | |
33479 | eval "$as_ac_var=yes" | |
33480 | else | |
33481 | echo "$as_me: failed program was:" >&5 | |
33482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33483 | ||
33484 | eval "$as_ac_var=no" | |
33485 | fi | |
ac1cb8d3 VS |
33486 | rm -f conftest.err conftest.$ac_objext \ |
33487 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33488 | fi |
33489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33490 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33491 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33492 | cat >>confdefs.h <<_ACEOF | |
33493 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33494 | _ACEOF | |
33495 | ||
33496 | cat >>confdefs.h <<\_ACEOF | |
33497 | #define HAVE_SHL_LOAD 1 | |
33498 | _ACEOF | |
33499 | ||
33500 | HAVE_SHL_FUNCS=1 | |
33501 | ||
33502 | else | |
33503 | ||
33504 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33505 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33506 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33508 | else | |
33509 | ac_check_lib_save_LIBS=$LIBS | |
33510 | LIBS="-lshl_load $LIBS" | |
33511 | cat >conftest.$ac_ext <<_ACEOF | |
33512 | /* confdefs.h. */ | |
33513 | _ACEOF | |
33514 | cat confdefs.h >>conftest.$ac_ext | |
33515 | cat >>conftest.$ac_ext <<_ACEOF | |
33516 | /* end confdefs.h. */ | |
33517 | ||
33518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33519 | #ifdef __cplusplus | |
33520 | extern "C" | |
33521 | #endif | |
33522 | /* We use char because int might match the return type of a gcc2 | |
33523 | builtin and then its argument prototype would still apply. */ | |
33524 | char dld (); | |
33525 | int | |
33526 | main () | |
33527 | { | |
33528 | dld (); | |
33529 | ; | |
33530 | return 0; | |
33531 | } | |
33532 | _ACEOF | |
33533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33535 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33536 | ac_status=$? |
ac1cb8d3 VS |
33537 | grep -v '^ *+' conftest.er1 >conftest.err |
33538 | rm -f conftest.er1 | |
33539 | cat conftest.err >&5 | |
a848cd7e SC |
33540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33541 | (exit $ac_status); } && | |
7714864e | 33542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33544 | (eval $ac_try) 2>&5 | |
33545 | ac_status=$? | |
33546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33547 | (exit $ac_status); }; } && | |
33548 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33550 | (eval $ac_try) 2>&5 | |
33551 | ac_status=$? | |
33552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33553 | (exit $ac_status); }; }; then | |
33554 | ac_cv_lib_shl_load_dld=yes | |
33555 | else | |
33556 | echo "$as_me: failed program was:" >&5 | |
33557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33558 | ||
33559 | ac_cv_lib_shl_load_dld=no | |
33560 | fi | |
ac1cb8d3 VS |
33561 | rm -f conftest.err conftest.$ac_objext \ |
33562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33563 | LIBS=$ac_check_lib_save_LIBS |
33564 | fi | |
33565 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33566 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33567 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33568 | ||
33569 | HAVE_SHL_FUNCS=1 | |
33570 | DL_LINK=" -ldld$DL_LINK" | |
33571 | ||
33572 | fi | |
33573 | ||
33574 | ||
33575 | fi | |
33576 | done | |
33577 | ||
33578 | ||
33579 | fi | |
33580 | ||
33581 | ||
33582 | fi | |
33583 | done | |
33584 | ||
33585 | ||
33586 | if test "$HAVE_DL_FUNCS" = 1; then | |
33587 | ||
33588 | for ac_func in dlerror | |
33589 | do | |
33590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33593 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33595 | else | |
33596 | cat >conftest.$ac_ext <<_ACEOF | |
33597 | /* confdefs.h. */ | |
33598 | _ACEOF | |
33599 | cat confdefs.h >>conftest.$ac_ext | |
33600 | cat >>conftest.$ac_ext <<_ACEOF | |
33601 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33604 | #define $ac_func innocuous_$ac_func | |
33605 | ||
a848cd7e SC |
33606 | /* System header to define __stub macros and hopefully few prototypes, |
33607 | which can conflict with char $ac_func (); below. | |
33608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33609 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33610 | |
a848cd7e SC |
33611 | #ifdef __STDC__ |
33612 | # include <limits.h> | |
33613 | #else | |
33614 | # include <assert.h> | |
33615 | #endif | |
ac1cb8d3 VS |
33616 | |
33617 | #undef $ac_func | |
33618 | ||
a848cd7e SC |
33619 | /* Override any gcc2 internal prototype to avoid an error. */ |
33620 | #ifdef __cplusplus | |
33621 | extern "C" | |
33622 | { | |
33623 | #endif | |
33624 | /* We use char because int might match the return type of a gcc2 | |
33625 | builtin and then its argument prototype would still apply. */ | |
33626 | char $ac_func (); | |
33627 | /* The GNU C library defines this for functions which it implements | |
33628 | to always fail with ENOSYS. Some functions are actually named | |
33629 | something starting with __ and the normal name is an alias. */ | |
33630 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33631 | choke me | |
33632 | #else | |
33633 | char (*f) () = $ac_func; | |
33634 | #endif | |
33635 | #ifdef __cplusplus | |
33636 | } | |
33637 | #endif | |
33638 | ||
33639 | int | |
33640 | main () | |
33641 | { | |
33642 | return f != $ac_func; | |
33643 | ; | |
33644 | return 0; | |
33645 | } | |
33646 | _ACEOF | |
33647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33650 | ac_status=$? |
ac1cb8d3 VS |
33651 | grep -v '^ *+' conftest.er1 >conftest.err |
33652 | rm -f conftest.er1 | |
33653 | cat conftest.err >&5 | |
a848cd7e SC |
33654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33655 | (exit $ac_status); } && | |
7714864e | 33656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33658 | (eval $ac_try) 2>&5 | |
33659 | ac_status=$? | |
33660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33661 | (exit $ac_status); }; } && | |
33662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33664 | (eval $ac_try) 2>&5 | |
33665 | ac_status=$? | |
33666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33667 | (exit $ac_status); }; }; then | |
33668 | eval "$as_ac_var=yes" | |
33669 | else | |
33670 | echo "$as_me: failed program was:" >&5 | |
33671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33672 | ||
33673 | eval "$as_ac_var=no" | |
33674 | fi | |
ac1cb8d3 VS |
33675 | rm -f conftest.err conftest.$ac_objext \ |
33676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33677 | fi |
33678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33679 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33680 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33681 | cat >>confdefs.h <<_ACEOF | |
33682 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33683 | _ACEOF | |
33684 | cat >>confdefs.h <<\_ACEOF | |
33685 | #define HAVE_DLERROR 1 | |
33686 | _ACEOF | |
33687 | ||
33688 | else | |
33689 | ||
33690 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33691 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33692 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33694 | else | |
33695 | ac_check_lib_save_LIBS=$LIBS | |
33696 | LIBS="-ldl $LIBS" | |
33697 | cat >conftest.$ac_ext <<_ACEOF | |
33698 | /* confdefs.h. */ | |
33699 | _ACEOF | |
33700 | cat confdefs.h >>conftest.$ac_ext | |
33701 | cat >>conftest.$ac_ext <<_ACEOF | |
33702 | /* end confdefs.h. */ | |
33703 | ||
33704 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33705 | #ifdef __cplusplus | |
33706 | extern "C" | |
33707 | #endif | |
33708 | /* We use char because int might match the return type of a gcc2 | |
33709 | builtin and then its argument prototype would still apply. */ | |
33710 | char dlerror (); | |
33711 | int | |
33712 | main () | |
33713 | { | |
33714 | dlerror (); | |
33715 | ; | |
33716 | return 0; | |
33717 | } | |
33718 | _ACEOF | |
33719 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33721 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33722 | ac_status=$? |
ac1cb8d3 VS |
33723 | grep -v '^ *+' conftest.er1 >conftest.err |
33724 | rm -f conftest.er1 | |
33725 | cat conftest.err >&5 | |
a848cd7e SC |
33726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33727 | (exit $ac_status); } && | |
7714864e | 33728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33730 | (eval $ac_try) 2>&5 | |
33731 | ac_status=$? | |
33732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33733 | (exit $ac_status); }; } && | |
33734 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33736 | (eval $ac_try) 2>&5 | |
33737 | ac_status=$? | |
33738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33739 | (exit $ac_status); }; }; then | |
33740 | ac_cv_lib_dl_dlerror=yes | |
33741 | else | |
33742 | echo "$as_me: failed program was:" >&5 | |
33743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33744 | ||
33745 | ac_cv_lib_dl_dlerror=no | |
33746 | fi | |
ac1cb8d3 VS |
33747 | rm -f conftest.err conftest.$ac_objext \ |
33748 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33749 | LIBS=$ac_check_lib_save_LIBS |
33750 | fi | |
33751 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33752 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33753 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33754 | cat >>confdefs.h <<\_ACEOF | |
33755 | #define HAVE_DLERROR 1 | |
33756 | _ACEOF | |
33757 | ||
33758 | fi | |
33759 | ||
33760 | ||
33761 | ||
33762 | fi | |
33763 | done | |
33764 | ||
33765 | fi | |
33766 | fi | |
33767 | ||
33768 | if test "$HAVE_DL_FUNCS" = 0; then | |
33769 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33770 | if test "$USE_UNIX" = 1; then | |
33771 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33772 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33773 | wxUSE_DYNAMIC_LOADER=no | |
33774 | wxUSE_DYNLIB_CLASS=no | |
33775 | else | |
33776 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33777 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33778 | fi | |
33779 | fi | |
33780 | fi | |
33781 | fi | |
33782 | fi | |
33783 | ||
33784 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33785 | cat >>confdefs.h <<\_ACEOF | |
33786 | #define wxUSE_DYNAMIC_LOADER 1 | |
33787 | _ACEOF | |
33788 | ||
33789 | fi | |
33790 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33791 | cat >>confdefs.h <<\_ACEOF | |
33792 | #define wxUSE_DYNLIB_CLASS 1 | |
33793 | _ACEOF | |
33794 | ||
33795 | fi | |
33796 | ||
33797 | ||
33798 | ||
33799 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33800 | if test "$wxUSE_SHARED" = "no" ; then | |
33801 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33802 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33803 | wxUSE_PLUGINS=no | |
33804 | fi | |
33805 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33806 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33807 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33808 | wxUSE_PLUGINS=no | |
33809 | fi | |
33810 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33811 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33812 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33813 | wxUSE_PLUGINS=no | |
33814 | fi | |
33815 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33816 | cat >>confdefs.h <<\_ACEOF | |
33817 | #define wxUSE_PLUGINS 1 | |
33818 | _ACEOF | |
33819 | ||
33820 | fi | |
33821 | fi | |
33822 | ||
33823 | ||
33824 | if test "$wxUSE_STL" = "yes"; then | |
33825 | cat >>confdefs.h <<\_ACEOF | |
33826 | #define wxUSE_STL 1 | |
33827 | _ACEOF | |
33828 | ||
33829 | fi | |
33830 | ||
33831 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33832 | cat >>confdefs.h <<\_ACEOF | |
33833 | #define wxUSE_APPLE_IEEE 1 | |
33834 | _ACEOF | |
33835 | ||
33836 | fi | |
33837 | ||
33838 | if test "$wxUSE_TIMER" = "yes"; then | |
33839 | cat >>confdefs.h <<\_ACEOF | |
33840 | #define wxUSE_TIMER 1 | |
33841 | _ACEOF | |
33842 | ||
33843 | fi | |
33844 | ||
33845 | WITH_PLUGIN_SDL=0 | |
33846 | if test "$wxUSE_SOUND" = "yes"; then | |
33847 | if test "$USE_UNIX" = "1" ; then | |
33848 | ||
33849 | for ac_header in sys/soundcard.h | |
33850 | do | |
33851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33857 | fi | |
33858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33859 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33860 | else | |
33861 | # Is the header compilable? | |
33862 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33863 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33864 | cat >conftest.$ac_ext <<_ACEOF | |
33865 | /* confdefs.h. */ | |
33866 | _ACEOF | |
33867 | cat confdefs.h >>conftest.$ac_ext | |
33868 | cat >>conftest.$ac_ext <<_ACEOF | |
33869 | /* end confdefs.h. */ | |
33870 | $ac_includes_default | |
33871 | #include <$ac_header> | |
33872 | _ACEOF | |
33873 | rm -f conftest.$ac_objext | |
33874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33876 | ac_status=$? |
ac1cb8d3 VS |
33877 | grep -v '^ *+' conftest.er1 >conftest.err |
33878 | rm -f conftest.er1 | |
33879 | cat conftest.err >&5 | |
a848cd7e SC |
33880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33881 | (exit $ac_status); } && | |
7714864e | 33882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33884 | (eval $ac_try) 2>&5 | |
33885 | ac_status=$? | |
33886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33887 | (exit $ac_status); }; } && | |
33888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33890 | (eval $ac_try) 2>&5 | |
33891 | ac_status=$? | |
33892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33893 | (exit $ac_status); }; }; then | |
33894 | ac_header_compiler=yes | |
33895 | else | |
33896 | echo "$as_me: failed program was:" >&5 | |
33897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33898 | ||
33899 | ac_header_compiler=no | |
33900 | fi | |
ac1cb8d3 | 33901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33902 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33903 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33904 | ||
33905 | # Is the header present? | |
33906 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33907 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33908 | cat >conftest.$ac_ext <<_ACEOF | |
33909 | /* confdefs.h. */ | |
33910 | _ACEOF | |
33911 | cat confdefs.h >>conftest.$ac_ext | |
33912 | cat >>conftest.$ac_ext <<_ACEOF | |
33913 | /* end confdefs.h. */ | |
33914 | #include <$ac_header> | |
33915 | _ACEOF | |
33916 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33917 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33918 | ac_status=$? | |
33919 | grep -v '^ *+' conftest.er1 >conftest.err | |
33920 | rm -f conftest.er1 | |
33921 | cat conftest.err >&5 | |
33922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33923 | (exit $ac_status); } >/dev/null; then | |
33924 | if test -s conftest.err; then | |
33925 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33926 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33927 | else |
33928 | ac_cpp_err= | |
33929 | fi | |
33930 | else | |
33931 | ac_cpp_err=yes | |
33932 | fi | |
33933 | if test -z "$ac_cpp_err"; then | |
33934 | ac_header_preproc=yes | |
33935 | else | |
33936 | echo "$as_me: failed program was:" >&5 | |
33937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33938 | ||
33939 | ac_header_preproc=no | |
33940 | fi | |
33941 | rm -f conftest.err conftest.$ac_ext | |
33942 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33943 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33944 | ||
33945 | # So? What about this header? | |
ac1cb8d3 VS |
33946 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33947 | yes:no: ) | |
a848cd7e SC |
33948 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33949 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33951 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33952 | ac_header_preproc=yes | |
a848cd7e | 33953 | ;; |
ac1cb8d3 | 33954 | no:yes:* ) |
a848cd7e SC |
33955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33959 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33960 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33961 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33962 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33965 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33966 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33967 | ( |
33968 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33969 | ## ----------------------------------------- ## |
33970 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33971 | ## ----------------------------------------- ## | |
a848cd7e SC |
33972 | _ASBOX |
33973 | ) | | |
33974 | sed "s/^/$as_me: WARNING: /" >&2 | |
33975 | ;; | |
33976 | esac | |
33977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33981 | else | |
ac1cb8d3 | 33982 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33983 | fi |
33984 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33985 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33986 | ||
33987 | fi | |
33988 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33989 | cat >>confdefs.h <<_ACEOF | |
33990 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33991 | _ACEOF | |
33992 | ||
33993 | fi | |
33994 | ||
33995 | done | |
33996 | ||
33997 | ||
33998 | if test "$wxUSE_LIBSDL" != "no"; then | |
33999 | ||
34000 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
34001 | if test "${with_sdl_prefix+set}" = set; then | |
34002 | withval="$with_sdl_prefix" | |
34003 | sdl_prefix="$withval" | |
34004 | else | |
34005 | sdl_prefix="" | |
34006 | fi; | |
34007 | ||
34008 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
34009 | if test "${with_sdl_exec_prefix+set}" = set; then | |
34010 | withval="$with_sdl_exec_prefix" | |
34011 | sdl_exec_prefix="$withval" | |
34012 | else | |
34013 | sdl_exec_prefix="" | |
34014 | fi; | |
34015 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34016 | if test "${enable_sdltest+set}" = set; then | |
34017 | enableval="$enable_sdltest" | |
34018 | ||
34019 | else | |
34020 | enable_sdltest=yes | |
34021 | fi; | |
34022 | ||
34023 | if test x$sdl_exec_prefix != x ; then | |
34024 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34025 | if test x${SDL_CONFIG+set} != xset ; then | |
34026 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34027 | fi | |
34028 | fi | |
34029 | if test x$sdl_prefix != x ; then | |
34030 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34031 | if test x${SDL_CONFIG+set} != xset ; then | |
34032 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34033 | fi | |
34034 | fi | |
34035 | ||
34036 | ||
34037 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34038 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34039 | set dummy sdl-config; ac_word=$2 | |
34040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34042 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34044 | else | |
34045 | case $SDL_CONFIG in | |
34046 | [\\/]* | ?:[\\/]*) | |
34047 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34048 | ;; | |
34049 | *) | |
34050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34051 | for as_dir in $PATH | |
34052 | do | |
34053 | IFS=$as_save_IFS | |
34054 | test -z "$as_dir" && as_dir=. | |
34055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34056 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34057 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34059 | break 2 | |
34060 | fi | |
34061 | done | |
34062 | done | |
34063 | ||
34064 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34065 | ;; | |
34066 | esac | |
34067 | fi | |
34068 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34069 | ||
34070 | if test -n "$SDL_CONFIG"; then | |
34071 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34072 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34073 | else | |
34074 | echo "$as_me:$LINENO: result: no" >&5 | |
34075 | echo "${ECHO_T}no" >&6 | |
34076 | fi | |
34077 | ||
34078 | min_sdl_version=1.2.0 | |
34079 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34080 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34081 | no_sdl="" | |
34082 | if test "$SDL_CONFIG" = "no" ; then | |
34083 | no_sdl=yes | |
34084 | else | |
34085 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34086 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34087 | ||
34088 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34089 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34090 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34091 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34092 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34093 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34094 | if test "x$enable_sdltest" = "xyes" ; then | |
34095 | ac_save_CFLAGS="$CFLAGS" | |
34096 | ac_save_LIBS="$LIBS" | |
34097 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34098 | LIBS="$LIBS $SDL_LIBS" | |
34099 | rm -f conf.sdltest | |
34100 | if test "$cross_compiling" = yes; then | |
34101 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34102 | else | |
34103 | cat >conftest.$ac_ext <<_ACEOF | |
34104 | /* confdefs.h. */ | |
34105 | _ACEOF | |
34106 | cat confdefs.h >>conftest.$ac_ext | |
34107 | cat >>conftest.$ac_ext <<_ACEOF | |
34108 | /* end confdefs.h. */ | |
34109 | ||
34110 | #include <stdio.h> | |
34111 | #include <stdlib.h> | |
34112 | #include <string.h> | |
34113 | #include "SDL.h" | |
34114 | ||
34115 | char* | |
34116 | my_strdup (char *str) | |
34117 | { | |
34118 | char *new_str; | |
34119 | ||
34120 | if (str) | |
34121 | { | |
34122 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34123 | strcpy (new_str, str); | |
34124 | } | |
34125 | else | |
34126 | new_str = NULL; | |
34127 | ||
34128 | return new_str; | |
34129 | } | |
34130 | ||
34131 | int main (int argc, char *argv[]) | |
34132 | { | |
34133 | int major, minor, micro; | |
34134 | char *tmp_version; | |
34135 | ||
34136 | /* This hangs on some systems (?) | |
34137 | system ("touch conf.sdltest"); | |
34138 | */ | |
34139 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34140 | ||
34141 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34142 | tmp_version = my_strdup("$min_sdl_version"); | |
34143 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34144 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34145 | exit(1); | |
34146 | } | |
34147 | ||
34148 | if (($sdl_major_version > major) || | |
34149 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34150 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34151 | { | |
34152 | return 0; | |
34153 | } | |
34154 | else | |
34155 | { | |
34156 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34157 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34158 | printf("*** best to upgrade to the required version.\n"); | |
34159 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34160 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34161 | printf("*** config.cache before re-running configure\n"); | |
34162 | return 1; | |
34163 | } | |
34164 | } | |
34165 | ||
34166 | ||
34167 | _ACEOF | |
34168 | rm -f conftest$ac_exeext | |
34169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34170 | (eval $ac_link) 2>&5 | |
34171 | ac_status=$? | |
34172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34173 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34175 | (eval $ac_try) 2>&5 | |
34176 | ac_status=$? | |
34177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34178 | (exit $ac_status); }; }; then | |
34179 | : | |
34180 | else | |
34181 | echo "$as_me: program exited with status $ac_status" >&5 | |
34182 | echo "$as_me: failed program was:" >&5 | |
34183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34184 | ||
34185 | ( exit $ac_status ) | |
34186 | no_sdl=yes | |
34187 | fi | |
ac1cb8d3 | 34188 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34189 | fi |
34190 | CFLAGS="$ac_save_CFLAGS" | |
34191 | LIBS="$ac_save_LIBS" | |
34192 | fi | |
34193 | fi | |
34194 | if test "x$no_sdl" = x ; then | |
34195 | echo "$as_me:$LINENO: result: yes" >&5 | |
34196 | echo "${ECHO_T}yes" >&6 | |
34197 | ||
34198 | EXTRALIBS_SDL="$SDL_LIBS" | |
34199 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34200 | cat >>confdefs.h <<\_ACEOF | |
34201 | #define wxUSE_LIBSDL 1 | |
34202 | _ACEOF | |
34203 | ||
34204 | ||
34205 | else | |
34206 | echo "$as_me:$LINENO: result: no" >&5 | |
34207 | echo "${ECHO_T}no" >&6 | |
34208 | if test "$SDL_CONFIG" = "no" ; then | |
34209 | echo "*** The sdl-config script installed by SDL could not be found" | |
34210 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34211 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34212 | echo "*** full path to sdl-config." | |
34213 | else | |
34214 | if test -f conf.sdltest ; then | |
34215 | : | |
34216 | else | |
34217 | echo "*** Could not run SDL test program, checking why..." | |
34218 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34219 | LIBS="$LIBS $SDL_LIBS" | |
34220 | cat >conftest.$ac_ext <<_ACEOF | |
34221 | /* confdefs.h. */ | |
34222 | _ACEOF | |
34223 | cat confdefs.h >>conftest.$ac_ext | |
34224 | cat >>conftest.$ac_ext <<_ACEOF | |
34225 | /* end confdefs.h. */ | |
34226 | ||
34227 | #include <stdio.h> | |
34228 | #include "SDL.h" | |
34229 | ||
34230 | int main(int argc, char *argv[]) | |
34231 | { return 0; } | |
34232 | #undef main | |
34233 | #define main K_and_R_C_main | |
34234 | ||
34235 | int | |
34236 | main () | |
34237 | { | |
34238 | return 0; | |
34239 | ; | |
34240 | return 0; | |
34241 | } | |
34242 | _ACEOF | |
34243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34245 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34246 | ac_status=$? |
ac1cb8d3 VS |
34247 | grep -v '^ *+' conftest.er1 >conftest.err |
34248 | rm -f conftest.er1 | |
34249 | cat conftest.err >&5 | |
a848cd7e SC |
34250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34251 | (exit $ac_status); } && | |
7714864e | 34252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34254 | (eval $ac_try) 2>&5 | |
34255 | ac_status=$? | |
34256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34257 | (exit $ac_status); }; } && | |
34258 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34260 | (eval $ac_try) 2>&5 | |
34261 | ac_status=$? | |
34262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34263 | (exit $ac_status); }; }; then | |
34264 | echo "*** The test program compiled, but did not run. This usually means" | |
34265 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34266 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34267 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34268 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34269 | echo "*** is required on your system" | |
34270 | echo "***" | |
34271 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34272 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34273 | else | |
34274 | echo "$as_me: failed program was:" >&5 | |
34275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34276 | ||
34277 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34278 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34279 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34280 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34281 | fi | |
ac1cb8d3 VS |
34282 | rm -f conftest.err conftest.$ac_objext \ |
34283 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34284 | CFLAGS="$ac_save_CFLAGS" |
34285 | LIBS="$ac_save_LIBS" | |
34286 | fi | |
34287 | fi | |
34288 | SDL_CFLAGS="" | |
34289 | SDL_LIBS="" | |
34290 | wxUSE_LIBSDL="no" | |
34291 | fi | |
34292 | ||
34293 | ||
34294 | rm -f conf.sdltest | |
34295 | ||
34296 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34297 | WITH_PLUGIN_SDL=1 | |
34298 | fi | |
34299 | fi | |
34300 | fi | |
34301 | ||
34302 | cat >>confdefs.h <<\_ACEOF | |
34303 | #define wxUSE_SOUND 1 | |
34304 | _ACEOF | |
34305 | ||
34306 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34307 | fi | |
34308 | ||
34309 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
34310 | cat >>confdefs.h <<\_ACEOF | |
34311 | #define wxUSE_CMDLINE_PARSER 1 | |
34312 | _ACEOF | |
34313 | ||
34314 | fi | |
34315 | ||
34316 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34317 | cat >>confdefs.h <<\_ACEOF | |
34318 | #define wxUSE_STOPWATCH 1 | |
34319 | _ACEOF | |
34320 | ||
34321 | fi | |
34322 | ||
34323 | if test "$wxUSE_DATETIME" = "yes"; then | |
34324 | cat >>confdefs.h <<\_ACEOF | |
34325 | #define wxUSE_DATETIME 1 | |
34326 | _ACEOF | |
34327 | ||
34328 | fi | |
34329 | ||
34330 | if test "$wxUSE_FILE" = "yes"; then | |
34331 | cat >>confdefs.h <<\_ACEOF | |
34332 | #define wxUSE_FILE 1 | |
34333 | _ACEOF | |
34334 | ||
34335 | fi | |
34336 | ||
34337 | if test "$wxUSE_FFILE" = "yes"; then | |
34338 | cat >>confdefs.h <<\_ACEOF | |
34339 | #define wxUSE_FFILE 1 | |
34340 | _ACEOF | |
34341 | ||
34342 | fi | |
34343 | ||
34344 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34345 | cat >>confdefs.h <<\_ACEOF | |
34346 | #define wxUSE_FILESYSTEM 1 | |
34347 | _ACEOF | |
34348 | ||
34349 | fi | |
34350 | ||
34351 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34352 | cat >>confdefs.h <<\_ACEOF | |
34353 | #define wxUSE_FS_ZIP 1 | |
34354 | _ACEOF | |
34355 | ||
34356 | fi | |
34357 | ||
34358 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34359 | cat >>confdefs.h <<\_ACEOF | |
34360 | #define wxUSE_ZIPSTREAM 1 | |
34361 | _ACEOF | |
34362 | ||
34363 | fi | |
34364 | ||
a848cd7e SC |
34365 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34366 | cat >>confdefs.h <<\_ACEOF | |
34367 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34368 | _ACEOF | |
34369 | ||
34370 | fi | |
34371 | ||
34372 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34373 | cat >>confdefs.h <<\_ACEOF | |
34374 | #define wxUSE_SNGLINST_CHECKER 1 | |
34375 | _ACEOF | |
34376 | ||
34377 | fi | |
34378 | ||
34379 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34380 | cat >>confdefs.h <<\_ACEOF | |
34381 | #define wxUSE_BUSYINFO 1 | |
34382 | _ACEOF | |
34383 | ||
34384 | fi | |
34385 | ||
34386 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34387 | cat >>confdefs.h <<\_ACEOF | |
34388 | #define wxUSE_STD_IOSTREAM 1 | |
34389 | _ACEOF | |
34390 | ||
34391 | fi | |
34392 | ||
34393 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34394 | cat >>confdefs.h <<\_ACEOF | |
34395 | #define wxUSE_TEXTBUFFER 1 | |
34396 | _ACEOF | |
34397 | ||
34398 | fi | |
34399 | ||
34400 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34401 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34402 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34403 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34404 | else | |
34405 | cat >>confdefs.h <<\_ACEOF | |
34406 | #define wxUSE_TEXTFILE 1 | |
34407 | _ACEOF | |
34408 | ||
34409 | fi | |
34410 | fi | |
34411 | ||
34412 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34413 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34414 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34415 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34416 | else | |
34417 | cat >>confdefs.h <<\_ACEOF | |
34418 | #define wxUSE_CONFIG 1 | |
34419 | _ACEOF | |
34420 | ||
34421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34422 | fi | |
34423 | fi | |
34424 | ||
34425 | if test "$wxUSE_INTL" = "yes" ; then | |
34426 | if test "$wxUSE_FILE" != "yes"; then | |
34427 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34428 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34429 | else | |
34430 | cat >>confdefs.h <<\_ACEOF | |
34431 | #define wxUSE_INTL 1 | |
34432 | _ACEOF | |
34433 | ||
34434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34435 | GUIDIST="$GUIDIST INTL_DIST" | |
34436 | fi | |
34437 | fi | |
34438 | ||
34439 | if test "$wxUSE_LOG" = "yes"; then | |
34440 | cat >>confdefs.h <<\_ACEOF | |
34441 | #define wxUSE_LOG 1 | |
34442 | _ACEOF | |
34443 | ||
34444 | ||
34445 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34446 | cat >>confdefs.h <<\_ACEOF | |
34447 | #define wxUSE_LOGGUI 1 | |
34448 | _ACEOF | |
34449 | ||
34450 | fi | |
34451 | ||
34452 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34453 | cat >>confdefs.h <<\_ACEOF | |
34454 | #define wxUSE_LOGWINDOW 1 | |
34455 | _ACEOF | |
34456 | ||
34457 | fi | |
34458 | ||
34459 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34460 | cat >>confdefs.h <<\_ACEOF | |
34461 | #define wxUSE_LOG_DIALOG 1 | |
34462 | _ACEOF | |
34463 | ||
34464 | fi | |
34465 | fi | |
34466 | ||
34467 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34468 | cat >>confdefs.h <<\_ACEOF | |
34469 | #define wxUSE_LONGLONG 1 | |
34470 | _ACEOF | |
34471 | ||
34472 | fi | |
34473 | ||
34474 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34475 | cat >>confdefs.h <<\_ACEOF | |
34476 | #define wxUSE_GEOMETRY 1 | |
34477 | _ACEOF | |
34478 | ||
34479 | fi | |
34480 | ||
34481 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34482 | cat >>confdefs.h <<\_ACEOF | |
34483 | #define wxUSE_DIALUP_MANAGER 1 | |
34484 | _ACEOF | |
34485 | ||
34486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34487 | fi | |
34488 | ||
34489 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34490 | cat >>confdefs.h <<\_ACEOF | |
34491 | #define wxUSE_STREAMS 1 | |
34492 | _ACEOF | |
34493 | ||
34494 | fi | |
34495 | ||
34496 | ||
34497 | if test "$wxUSE_DATETIME" = "yes"; then | |
34498 | ||
34499 | for ac_func in strptime | |
34500 | do | |
34501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34502 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34504 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34506 | else | |
34507 | cat >conftest.$ac_ext <<_ACEOF | |
34508 | /* confdefs.h. */ | |
34509 | _ACEOF | |
34510 | cat confdefs.h >>conftest.$ac_ext | |
34511 | cat >>conftest.$ac_ext <<_ACEOF | |
34512 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34513 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34514 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34515 | #define $ac_func innocuous_$ac_func | |
34516 | ||
a848cd7e SC |
34517 | /* System header to define __stub macros and hopefully few prototypes, |
34518 | which can conflict with char $ac_func (); below. | |
34519 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34520 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34521 | |
a848cd7e SC |
34522 | #ifdef __STDC__ |
34523 | # include <limits.h> | |
34524 | #else | |
34525 | # include <assert.h> | |
34526 | #endif | |
ac1cb8d3 VS |
34527 | |
34528 | #undef $ac_func | |
34529 | ||
a848cd7e SC |
34530 | /* Override any gcc2 internal prototype to avoid an error. */ |
34531 | #ifdef __cplusplus | |
34532 | extern "C" | |
34533 | { | |
34534 | #endif | |
34535 | /* We use char because int might match the return type of a gcc2 | |
34536 | builtin and then its argument prototype would still apply. */ | |
34537 | char $ac_func (); | |
34538 | /* The GNU C library defines this for functions which it implements | |
34539 | to always fail with ENOSYS. Some functions are actually named | |
34540 | something starting with __ and the normal name is an alias. */ | |
34541 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34542 | choke me | |
34543 | #else | |
34544 | char (*f) () = $ac_func; | |
34545 | #endif | |
34546 | #ifdef __cplusplus | |
34547 | } | |
34548 | #endif | |
34549 | ||
34550 | int | |
34551 | main () | |
34552 | { | |
34553 | return f != $ac_func; | |
34554 | ; | |
34555 | return 0; | |
34556 | } | |
34557 | _ACEOF | |
34558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34560 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34561 | ac_status=$? |
ac1cb8d3 VS |
34562 | grep -v '^ *+' conftest.er1 >conftest.err |
34563 | rm -f conftest.er1 | |
34564 | cat conftest.err >&5 | |
a848cd7e SC |
34565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34566 | (exit $ac_status); } && | |
7714864e | 34567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34569 | (eval $ac_try) 2>&5 | |
34570 | ac_status=$? | |
34571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34572 | (exit $ac_status); }; } && | |
34573 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34575 | (eval $ac_try) 2>&5 | |
34576 | ac_status=$? | |
34577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34578 | (exit $ac_status); }; }; then | |
34579 | eval "$as_ac_var=yes" | |
34580 | else | |
34581 | echo "$as_me: failed program was:" >&5 | |
34582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34583 | ||
34584 | eval "$as_ac_var=no" | |
34585 | fi | |
ac1cb8d3 VS |
34586 | rm -f conftest.err conftest.$ac_objext \ |
34587 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34588 | fi |
34589 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34590 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34591 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34592 | cat >>confdefs.h <<_ACEOF | |
34593 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34594 | _ACEOF | |
34595 | ||
34596 | fi | |
34597 | done | |
34598 | ||
34599 | ||
34600 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34601 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34602 | if test "${wx_cv_var_timezone+set}" = set; then | |
34603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34604 | else | |
34605 | ||
34606 | cat >conftest.$ac_ext <<_ACEOF | |
34607 | /* confdefs.h. */ | |
34608 | _ACEOF | |
34609 | cat confdefs.h >>conftest.$ac_ext | |
34610 | cat >>conftest.$ac_ext <<_ACEOF | |
34611 | /* end confdefs.h. */ | |
34612 | ||
34613 | #include <time.h> | |
34614 | ||
34615 | int | |
34616 | main () | |
34617 | { | |
34618 | ||
34619 | int tz; | |
34620 | tz = timezone; | |
34621 | ||
34622 | ; | |
34623 | return 0; | |
34624 | } | |
34625 | _ACEOF | |
34626 | rm -f conftest.$ac_objext | |
34627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34628 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34629 | ac_status=$? |
ac1cb8d3 VS |
34630 | grep -v '^ *+' conftest.er1 >conftest.err |
34631 | rm -f conftest.er1 | |
34632 | cat conftest.err >&5 | |
a848cd7e SC |
34633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34634 | (exit $ac_status); } && | |
7714864e | 34635 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34637 | (eval $ac_try) 2>&5 | |
34638 | ac_status=$? | |
34639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34640 | (exit $ac_status); }; } && | |
34641 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34643 | (eval $ac_try) 2>&5 | |
34644 | ac_status=$? | |
34645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34646 | (exit $ac_status); }; }; then | |
34647 | ||
34648 | wx_cv_var_timezone=timezone | |
34649 | ||
34650 | else | |
34651 | echo "$as_me: failed program was:" >&5 | |
34652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34653 | ||
34654 | ||
34655 | cat >conftest.$ac_ext <<_ACEOF | |
34656 | /* confdefs.h. */ | |
34657 | _ACEOF | |
34658 | cat confdefs.h >>conftest.$ac_ext | |
34659 | cat >>conftest.$ac_ext <<_ACEOF | |
34660 | /* end confdefs.h. */ | |
34661 | ||
34662 | #include <time.h> | |
34663 | ||
34664 | int | |
34665 | main () | |
34666 | { | |
34667 | ||
34668 | int tz; | |
34669 | tz = _timezone; | |
34670 | ||
34671 | ; | |
34672 | return 0; | |
34673 | } | |
34674 | _ACEOF | |
34675 | rm -f conftest.$ac_objext | |
34676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34678 | ac_status=$? |
ac1cb8d3 VS |
34679 | grep -v '^ *+' conftest.er1 >conftest.err |
34680 | rm -f conftest.er1 | |
34681 | cat conftest.err >&5 | |
a848cd7e SC |
34682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34683 | (exit $ac_status); } && | |
7714864e | 34684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34686 | (eval $ac_try) 2>&5 | |
34687 | ac_status=$? | |
34688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34689 | (exit $ac_status); }; } && | |
34690 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34692 | (eval $ac_try) 2>&5 | |
34693 | ac_status=$? | |
34694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34695 | (exit $ac_status); }; }; then | |
34696 | ||
34697 | wx_cv_var_timezone=_timezone | |
34698 | ||
34699 | else | |
34700 | echo "$as_me: failed program was:" >&5 | |
34701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34702 | ||
34703 | ||
34704 | cat >conftest.$ac_ext <<_ACEOF | |
34705 | /* confdefs.h. */ | |
34706 | _ACEOF | |
34707 | cat confdefs.h >>conftest.$ac_ext | |
34708 | cat >>conftest.$ac_ext <<_ACEOF | |
34709 | /* end confdefs.h. */ | |
34710 | ||
34711 | #include <time.h> | |
34712 | ||
34713 | int | |
34714 | main () | |
34715 | { | |
34716 | ||
34717 | int tz; | |
34718 | tz = __timezone; | |
34719 | ||
34720 | ; | |
34721 | return 0; | |
34722 | } | |
34723 | _ACEOF | |
34724 | rm -f conftest.$ac_objext | |
34725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34726 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34727 | ac_status=$? |
ac1cb8d3 VS |
34728 | grep -v '^ *+' conftest.er1 >conftest.err |
34729 | rm -f conftest.er1 | |
34730 | cat conftest.err >&5 | |
a848cd7e SC |
34731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34732 | (exit $ac_status); } && | |
7714864e | 34733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34735 | (eval $ac_try) 2>&5 | |
34736 | ac_status=$? | |
34737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34738 | (exit $ac_status); }; } && | |
34739 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34741 | (eval $ac_try) 2>&5 | |
34742 | ac_status=$? | |
34743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34744 | (exit $ac_status); }; }; then | |
34745 | ||
34746 | wx_cv_var_timezone=__timezone | |
34747 | ||
34748 | else | |
34749 | echo "$as_me: failed program was:" >&5 | |
34750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34751 | ||
34752 | ||
34753 | if test "$USE_DOS" = 0 ; then | |
34754 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34755 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34756 | fi | |
34757 | ||
34758 | ||
34759 | fi | |
ac1cb8d3 | 34760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34761 | |
34762 | ||
34763 | fi | |
ac1cb8d3 | 34764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34765 | |
34766 | ||
34767 | fi | |
ac1cb8d3 | 34768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34769 | |
34770 | ||
34771 | fi | |
34772 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34773 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34774 | ||
34775 | if test "x$wx_cv_var_timezone" != x ; then | |
34776 | cat >>confdefs.h <<_ACEOF | |
34777 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34778 | _ACEOF | |
34779 | ||
34780 | fi | |
34781 | ||
34782 | ||
34783 | for ac_func in localtime | |
34784 | do | |
34785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34786 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34788 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34790 | else | |
34791 | cat >conftest.$ac_ext <<_ACEOF | |
34792 | /* confdefs.h. */ | |
34793 | _ACEOF | |
34794 | cat confdefs.h >>conftest.$ac_ext | |
34795 | cat >>conftest.$ac_ext <<_ACEOF | |
34796 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34799 | #define $ac_func innocuous_$ac_func | |
34800 | ||
a848cd7e SC |
34801 | /* System header to define __stub macros and hopefully few prototypes, |
34802 | which can conflict with char $ac_func (); below. | |
34803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34804 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34805 | |
a848cd7e SC |
34806 | #ifdef __STDC__ |
34807 | # include <limits.h> | |
34808 | #else | |
34809 | # include <assert.h> | |
34810 | #endif | |
ac1cb8d3 VS |
34811 | |
34812 | #undef $ac_func | |
34813 | ||
a848cd7e SC |
34814 | /* Override any gcc2 internal prototype to avoid an error. */ |
34815 | #ifdef __cplusplus | |
34816 | extern "C" | |
34817 | { | |
34818 | #endif | |
34819 | /* We use char because int might match the return type of a gcc2 | |
34820 | builtin and then its argument prototype would still apply. */ | |
34821 | char $ac_func (); | |
34822 | /* The GNU C library defines this for functions which it implements | |
34823 | to always fail with ENOSYS. Some functions are actually named | |
34824 | something starting with __ and the normal name is an alias. */ | |
34825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34826 | choke me | |
34827 | #else | |
34828 | char (*f) () = $ac_func; | |
34829 | #endif | |
34830 | #ifdef __cplusplus | |
34831 | } | |
34832 | #endif | |
34833 | ||
34834 | int | |
34835 | main () | |
34836 | { | |
34837 | return f != $ac_func; | |
34838 | ; | |
34839 | return 0; | |
34840 | } | |
34841 | _ACEOF | |
34842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34844 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34845 | ac_status=$? |
ac1cb8d3 VS |
34846 | grep -v '^ *+' conftest.er1 >conftest.err |
34847 | rm -f conftest.er1 | |
34848 | cat conftest.err >&5 | |
a848cd7e SC |
34849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34850 | (exit $ac_status); } && | |
7714864e | 34851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34853 | (eval $ac_try) 2>&5 | |
34854 | ac_status=$? | |
34855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34856 | (exit $ac_status); }; } && | |
34857 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34859 | (eval $ac_try) 2>&5 | |
34860 | ac_status=$? | |
34861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34862 | (exit $ac_status); }; }; then | |
34863 | eval "$as_ac_var=yes" | |
34864 | else | |
34865 | echo "$as_me: failed program was:" >&5 | |
34866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34867 | ||
34868 | eval "$as_ac_var=no" | |
34869 | fi | |
ac1cb8d3 VS |
34870 | rm -f conftest.err conftest.$ac_objext \ |
34871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34872 | fi |
34873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34874 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34875 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34876 | cat >>confdefs.h <<_ACEOF | |
34877 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34878 | _ACEOF | |
34879 | ||
34880 | fi | |
34881 | done | |
34882 | ||
34883 | ||
34884 | if test "$ac_cv_func_localtime" = "yes"; then | |
34885 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34886 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34887 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34889 | else | |
34890 | ||
34891 | cat >conftest.$ac_ext <<_ACEOF | |
34892 | /* confdefs.h. */ | |
34893 | _ACEOF | |
34894 | cat confdefs.h >>conftest.$ac_ext | |
34895 | cat >>conftest.$ac_ext <<_ACEOF | |
34896 | /* end confdefs.h. */ | |
34897 | ||
34898 | #include <time.h> | |
34899 | ||
34900 | int | |
34901 | main () | |
34902 | { | |
34903 | ||
34904 | struct tm tm; | |
34905 | tm.tm_gmtoff++; | |
34906 | ||
34907 | ; | |
34908 | return 0; | |
34909 | } | |
34910 | _ACEOF | |
34911 | rm -f conftest.$ac_objext | |
34912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34914 | ac_status=$? |
ac1cb8d3 VS |
34915 | grep -v '^ *+' conftest.er1 >conftest.err |
34916 | rm -f conftest.er1 | |
34917 | cat conftest.err >&5 | |
a848cd7e SC |
34918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34919 | (exit $ac_status); } && | |
7714864e | 34920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34922 | (eval $ac_try) 2>&5 | |
34923 | ac_status=$? | |
34924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34925 | (exit $ac_status); }; } && | |
34926 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34928 | (eval $ac_try) 2>&5 | |
34929 | ac_status=$? | |
34930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34931 | (exit $ac_status); }; }; then | |
34932 | ||
34933 | wx_cv_struct_tm_has_gmtoff=yes | |
34934 | ||
34935 | else | |
34936 | echo "$as_me: failed program was:" >&5 | |
34937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34938 | ||
34939 | wx_cv_struct_tm_has_gmtoff=no | |
34940 | ||
34941 | fi | |
ac1cb8d3 | 34942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34943 | |
34944 | fi | |
34945 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
34946 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
34947 | fi | |
34948 | ||
34949 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
34950 | cat >>confdefs.h <<\_ACEOF | |
34951 | #define WX_GMTOFF_IN_TM 1 | |
34952 | _ACEOF | |
34953 | ||
34954 | fi | |
34955 | ||
34956 | ||
34957 | ||
34958 | for ac_func in gettimeofday ftime | |
34959 | do | |
34960 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34961 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34963 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34965 | else | |
34966 | cat >conftest.$ac_ext <<_ACEOF | |
34967 | /* confdefs.h. */ | |
34968 | _ACEOF | |
34969 | cat confdefs.h >>conftest.$ac_ext | |
34970 | cat >>conftest.$ac_ext <<_ACEOF | |
34971 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34972 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34974 | #define $ac_func innocuous_$ac_func | |
34975 | ||
a848cd7e SC |
34976 | /* System header to define __stub macros and hopefully few prototypes, |
34977 | which can conflict with char $ac_func (); below. | |
34978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34979 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34980 | |
a848cd7e SC |
34981 | #ifdef __STDC__ |
34982 | # include <limits.h> | |
34983 | #else | |
34984 | # include <assert.h> | |
34985 | #endif | |
ac1cb8d3 VS |
34986 | |
34987 | #undef $ac_func | |
34988 | ||
a848cd7e SC |
34989 | /* Override any gcc2 internal prototype to avoid an error. */ |
34990 | #ifdef __cplusplus | |
34991 | extern "C" | |
34992 | { | |
34993 | #endif | |
34994 | /* We use char because int might match the return type of a gcc2 | |
34995 | builtin and then its argument prototype would still apply. */ | |
34996 | char $ac_func (); | |
34997 | /* The GNU C library defines this for functions which it implements | |
34998 | to always fail with ENOSYS. Some functions are actually named | |
34999 | something starting with __ and the normal name is an alias. */ | |
35000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35001 | choke me | |
35002 | #else | |
35003 | char (*f) () = $ac_func; | |
35004 | #endif | |
35005 | #ifdef __cplusplus | |
35006 | } | |
35007 | #endif | |
35008 | ||
35009 | int | |
35010 | main () | |
35011 | { | |
35012 | return f != $ac_func; | |
35013 | ; | |
35014 | return 0; | |
35015 | } | |
35016 | _ACEOF | |
35017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35019 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35020 | ac_status=$? |
ac1cb8d3 VS |
35021 | grep -v '^ *+' conftest.er1 >conftest.err |
35022 | rm -f conftest.er1 | |
35023 | cat conftest.err >&5 | |
a848cd7e SC |
35024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35025 | (exit $ac_status); } && | |
7714864e | 35026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35028 | (eval $ac_try) 2>&5 | |
35029 | ac_status=$? | |
35030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35031 | (exit $ac_status); }; } && | |
35032 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35034 | (eval $ac_try) 2>&5 | |
35035 | ac_status=$? | |
35036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35037 | (exit $ac_status); }; }; then | |
35038 | eval "$as_ac_var=yes" | |
35039 | else | |
35040 | echo "$as_me: failed program was:" >&5 | |
35041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35042 | ||
35043 | eval "$as_ac_var=no" | |
35044 | fi | |
ac1cb8d3 VS |
35045 | rm -f conftest.err conftest.$ac_objext \ |
35046 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35047 | fi |
35048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35051 | cat >>confdefs.h <<_ACEOF | |
35052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35053 | _ACEOF | |
35054 | break | |
35055 | fi | |
35056 | done | |
35057 | ||
35058 | ||
35059 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35060 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35061 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35062 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35064 | else | |
35065 | ||
35066 | ||
35067 | ||
35068 | ac_ext=cc | |
35069 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35070 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35071 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35072 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35073 | ||
35074 | ||
35075 | cat >conftest.$ac_ext <<_ACEOF | |
35076 | /* confdefs.h. */ | |
35077 | _ACEOF | |
35078 | cat confdefs.h >>conftest.$ac_ext | |
35079 | cat >>conftest.$ac_ext <<_ACEOF | |
35080 | /* end confdefs.h. */ | |
35081 | ||
35082 | #include <sys/time.h> | |
35083 | #include <unistd.h> | |
35084 | ||
35085 | int | |
35086 | main () | |
35087 | { | |
35088 | ||
35089 | struct timeval tv; | |
35090 | gettimeofday(&tv, NULL); | |
35091 | ||
35092 | ; | |
35093 | return 0; | |
35094 | } | |
35095 | _ACEOF | |
35096 | rm -f conftest.$ac_objext | |
35097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35098 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35099 | ac_status=$? |
ac1cb8d3 VS |
35100 | grep -v '^ *+' conftest.er1 >conftest.err |
35101 | rm -f conftest.er1 | |
35102 | cat conftest.err >&5 | |
a848cd7e SC |
35103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35104 | (exit $ac_status); } && | |
7714864e | 35105 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35107 | (eval $ac_try) 2>&5 | |
35108 | ac_status=$? | |
35109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35110 | (exit $ac_status); }; } && | |
35111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35113 | (eval $ac_try) 2>&5 | |
35114 | ac_status=$? | |
35115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35116 | (exit $ac_status); }; }; then | |
35117 | wx_cv_func_gettimeofday_has_2_args=yes | |
35118 | else | |
35119 | echo "$as_me: failed program was:" >&5 | |
35120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35121 | ||
35122 | cat >conftest.$ac_ext <<_ACEOF | |
35123 | /* confdefs.h. */ | |
35124 | _ACEOF | |
35125 | cat confdefs.h >>conftest.$ac_ext | |
35126 | cat >>conftest.$ac_ext <<_ACEOF | |
35127 | /* end confdefs.h. */ | |
35128 | ||
35129 | #include <sys/time.h> | |
35130 | #include <unistd.h> | |
35131 | ||
35132 | int | |
35133 | main () | |
35134 | { | |
35135 | ||
35136 | struct timeval tv; | |
35137 | gettimeofday(&tv); | |
35138 | ||
35139 | ; | |
35140 | return 0; | |
35141 | } | |
35142 | _ACEOF | |
35143 | rm -f conftest.$ac_objext | |
35144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35146 | ac_status=$? |
ac1cb8d3 VS |
35147 | grep -v '^ *+' conftest.er1 >conftest.err |
35148 | rm -f conftest.er1 | |
35149 | cat conftest.err >&5 | |
a848cd7e SC |
35150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35151 | (exit $ac_status); } && | |
7714864e | 35152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35154 | (eval $ac_try) 2>&5 | |
35155 | ac_status=$? | |
35156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35157 | (exit $ac_status); }; } && | |
35158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35160 | (eval $ac_try) 2>&5 | |
35161 | ac_status=$? | |
35162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35163 | (exit $ac_status); }; }; then | |
35164 | wx_cv_func_gettimeofday_has_2_args=no | |
35165 | else | |
35166 | echo "$as_me: failed program was:" >&5 | |
35167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35168 | ||
35169 | ||
35170 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35171 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35172 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35173 | ||
35174 | ||
35175 | fi | |
ac1cb8d3 | 35176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35177 | |
35178 | fi | |
ac1cb8d3 | 35179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35180 | ac_ext=c |
35181 | ac_cpp='$CPP $CPPFLAGS' | |
35182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35185 | ||
35186 | ||
35187 | fi | |
35188 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35189 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35190 | ||
35191 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35192 | cat >>confdefs.h <<\_ACEOF | |
35193 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35194 | _ACEOF | |
35195 | ||
35196 | fi | |
35197 | fi | |
35198 | ||
35199 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35200 | fi | |
35201 | ||
35202 | ||
35203 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35204 | if test "$wxUSE_MGL" = "1"; then | |
35205 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35206 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35207 | wxUSE_SOCKETS="no" | |
35208 | fi | |
35209 | fi | |
35210 | ||
35211 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35212 | if test "$TOOLKIT" != "MSW"; then | |
35213 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35214 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35215 | if test "${ac_cv_func_socket+set}" = set; then | |
35216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35217 | else | |
35218 | cat >conftest.$ac_ext <<_ACEOF | |
35219 | /* confdefs.h. */ | |
35220 | _ACEOF | |
35221 | cat confdefs.h >>conftest.$ac_ext | |
35222 | cat >>conftest.$ac_ext <<_ACEOF | |
35223 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35224 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35225 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35226 | #define socket innocuous_socket | |
35227 | ||
a848cd7e SC |
35228 | /* System header to define __stub macros and hopefully few prototypes, |
35229 | which can conflict with char socket (); below. | |
35230 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35231 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35232 | |
a848cd7e SC |
35233 | #ifdef __STDC__ |
35234 | # include <limits.h> | |
35235 | #else | |
35236 | # include <assert.h> | |
35237 | #endif | |
ac1cb8d3 VS |
35238 | |
35239 | #undef socket | |
35240 | ||
a848cd7e SC |
35241 | /* Override any gcc2 internal prototype to avoid an error. */ |
35242 | #ifdef __cplusplus | |
35243 | extern "C" | |
35244 | { | |
35245 | #endif | |
35246 | /* We use char because int might match the return type of a gcc2 | |
35247 | builtin and then its argument prototype would still apply. */ | |
35248 | char socket (); | |
35249 | /* The GNU C library defines this for functions which it implements | |
35250 | to always fail with ENOSYS. Some functions are actually named | |
35251 | something starting with __ and the normal name is an alias. */ | |
35252 | #if defined (__stub_socket) || defined (__stub___socket) | |
35253 | choke me | |
35254 | #else | |
35255 | char (*f) () = socket; | |
35256 | #endif | |
35257 | #ifdef __cplusplus | |
35258 | } | |
35259 | #endif | |
35260 | ||
35261 | int | |
35262 | main () | |
35263 | { | |
35264 | return f != socket; | |
35265 | ; | |
35266 | return 0; | |
35267 | } | |
35268 | _ACEOF | |
35269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35271 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35272 | ac_status=$? |
ac1cb8d3 VS |
35273 | grep -v '^ *+' conftest.er1 >conftest.err |
35274 | rm -f conftest.er1 | |
35275 | cat conftest.err >&5 | |
a848cd7e SC |
35276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35277 | (exit $ac_status); } && | |
7714864e | 35278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35280 | (eval $ac_try) 2>&5 | |
35281 | ac_status=$? | |
35282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35283 | (exit $ac_status); }; } && | |
35284 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35286 | (eval $ac_try) 2>&5 | |
35287 | ac_status=$? | |
35288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35289 | (exit $ac_status); }; }; then | |
35290 | ac_cv_func_socket=yes | |
35291 | else | |
35292 | echo "$as_me: failed program was:" >&5 | |
35293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35294 | ||
35295 | ac_cv_func_socket=no | |
35296 | fi | |
ac1cb8d3 VS |
35297 | rm -f conftest.err conftest.$ac_objext \ |
35298 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35299 | fi |
35300 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35301 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35302 | if test $ac_cv_func_socket = yes; then | |
35303 | : | |
35304 | else | |
35305 | ||
35306 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35307 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35308 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35310 | else | |
35311 | ac_check_lib_save_LIBS=$LIBS | |
35312 | LIBS="-lsocket $LIBS" | |
35313 | cat >conftest.$ac_ext <<_ACEOF | |
35314 | /* confdefs.h. */ | |
35315 | _ACEOF | |
35316 | cat confdefs.h >>conftest.$ac_ext | |
35317 | cat >>conftest.$ac_ext <<_ACEOF | |
35318 | /* end confdefs.h. */ | |
35319 | ||
35320 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35321 | #ifdef __cplusplus | |
35322 | extern "C" | |
35323 | #endif | |
35324 | /* We use char because int might match the return type of a gcc2 | |
35325 | builtin and then its argument prototype would still apply. */ | |
35326 | char socket (); | |
35327 | int | |
35328 | main () | |
35329 | { | |
35330 | socket (); | |
35331 | ; | |
35332 | return 0; | |
35333 | } | |
35334 | _ACEOF | |
35335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35337 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35338 | ac_status=$? |
ac1cb8d3 VS |
35339 | grep -v '^ *+' conftest.er1 >conftest.err |
35340 | rm -f conftest.er1 | |
35341 | cat conftest.err >&5 | |
a848cd7e SC |
35342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35343 | (exit $ac_status); } && | |
7714864e | 35344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35346 | (eval $ac_try) 2>&5 | |
35347 | ac_status=$? | |
35348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35349 | (exit $ac_status); }; } && | |
35350 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35352 | (eval $ac_try) 2>&5 | |
35353 | ac_status=$? | |
35354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35355 | (exit $ac_status); }; }; then | |
35356 | ac_cv_lib_socket_socket=yes | |
35357 | else | |
35358 | echo "$as_me: failed program was:" >&5 | |
35359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35360 | ||
35361 | ac_cv_lib_socket_socket=no | |
35362 | fi | |
ac1cb8d3 VS |
35363 | rm -f conftest.err conftest.$ac_objext \ |
35364 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35365 | LIBS=$ac_check_lib_save_LIBS |
35366 | fi | |
35367 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35368 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35369 | if test $ac_cv_lib_socket_socket = yes; then | |
35370 | if test "$INET_LINK" != " -lsocket"; then | |
35371 | INET_LINK="$INET_LINK -lsocket" | |
35372 | fi | |
35373 | else | |
35374 | ||
35375 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35376 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35377 | wxUSE_SOCKETS=no | |
35378 | ||
35379 | ||
35380 | fi | |
35381 | ||
35382 | ||
35383 | ||
35384 | fi | |
35385 | ||
35386 | fi | |
35387 | fi | |
35388 | ||
35389 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35390 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35391 | ac_ext=cc |
35392 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35393 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35394 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35395 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35396 | ||
35397 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35398 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35399 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35401 | else | |
35402 | ||
35403 | cat >conftest.$ac_ext <<_ACEOF | |
35404 | /* confdefs.h. */ | |
35405 | _ACEOF | |
35406 | cat confdefs.h >>conftest.$ac_ext | |
35407 | cat >>conftest.$ac_ext <<_ACEOF | |
35408 | /* end confdefs.h. */ | |
35409 | ||
35410 | #include <sys/types.h> | |
35411 | #include <sys/socket.h> | |
35412 | ||
35413 | int | |
35414 | main () | |
35415 | { | |
35416 | ||
35417 | socklen_t len; | |
35418 | getsockname(0, 0, &len); | |
35419 | ||
35420 | ; | |
35421 | return 0; | |
35422 | } | |
35423 | _ACEOF | |
35424 | rm -f conftest.$ac_objext | |
35425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35427 | ac_status=$? |
ac1cb8d3 VS |
35428 | grep -v '^ *+' conftest.er1 >conftest.err |
35429 | rm -f conftest.er1 | |
35430 | cat conftest.err >&5 | |
a848cd7e SC |
35431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35432 | (exit $ac_status); } && | |
7714864e | 35433 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35435 | (eval $ac_try) 2>&5 | |
35436 | ac_status=$? | |
35437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35438 | (exit $ac_status); }; } && | |
35439 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35441 | (eval $ac_try) 2>&5 | |
35442 | ac_status=$? | |
35443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35444 | (exit $ac_status); }; }; then | |
35445 | wx_cv_type_getsockname3=socklen_t | |
35446 | else | |
35447 | echo "$as_me: failed program was:" >&5 | |
35448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35449 | ||
35450 | ||
35451 | CFLAGS_OLD="$CFLAGS" | |
35452 | if test "$GCC" = yes ; then | |
35453 | CFLAGS="$CFLAGS -Werror" | |
35454 | fi | |
35455 | ||
35456 | cat >conftest.$ac_ext <<_ACEOF | |
35457 | /* confdefs.h. */ | |
35458 | _ACEOF | |
35459 | cat confdefs.h >>conftest.$ac_ext | |
35460 | cat >>conftest.$ac_ext <<_ACEOF | |
35461 | /* end confdefs.h. */ | |
35462 | ||
35463 | #include <sys/types.h> | |
35464 | #include <sys/socket.h> | |
35465 | ||
35466 | int | |
35467 | main () | |
35468 | { | |
35469 | ||
35470 | size_t len; | |
35471 | getsockname(0, 0, &len); | |
35472 | ||
35473 | ; | |
35474 | return 0; | |
35475 | } | |
35476 | _ACEOF | |
35477 | rm -f conftest.$ac_objext | |
35478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35479 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35480 | ac_status=$? |
ac1cb8d3 VS |
35481 | grep -v '^ *+' conftest.er1 >conftest.err |
35482 | rm -f conftest.er1 | |
35483 | cat conftest.err >&5 | |
a848cd7e SC |
35484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35485 | (exit $ac_status); } && | |
7714864e | 35486 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35488 | (eval $ac_try) 2>&5 | |
35489 | ac_status=$? | |
35490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35491 | (exit $ac_status); }; } && | |
35492 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35494 | (eval $ac_try) 2>&5 | |
35495 | ac_status=$? | |
35496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35497 | (exit $ac_status); }; }; then | |
35498 | wx_cv_type_getsockname3=size_t | |
35499 | else | |
35500 | echo "$as_me: failed program was:" >&5 | |
35501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35502 | ||
35503 | cat >conftest.$ac_ext <<_ACEOF | |
35504 | /* confdefs.h. */ | |
35505 | _ACEOF | |
35506 | cat confdefs.h >>conftest.$ac_ext | |
35507 | cat >>conftest.$ac_ext <<_ACEOF | |
35508 | /* end confdefs.h. */ | |
35509 | ||
35510 | #include <sys/types.h> | |
35511 | #include <sys/socket.h> | |
35512 | ||
35513 | int | |
35514 | main () | |
35515 | { | |
35516 | ||
35517 | int len; | |
35518 | getsockname(0, 0, &len); | |
35519 | ||
35520 | ; | |
35521 | return 0; | |
35522 | } | |
35523 | _ACEOF | |
35524 | rm -f conftest.$ac_objext | |
35525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35527 | ac_status=$? |
ac1cb8d3 VS |
35528 | grep -v '^ *+' conftest.er1 >conftest.err |
35529 | rm -f conftest.er1 | |
35530 | cat conftest.err >&5 | |
a848cd7e SC |
35531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35532 | (exit $ac_status); } && | |
7714864e | 35533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35535 | (eval $ac_try) 2>&5 | |
35536 | ac_status=$? | |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35538 | (exit $ac_status); }; } && | |
35539 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35541 | (eval $ac_try) 2>&5 | |
35542 | ac_status=$? | |
35543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35544 | (exit $ac_status); }; }; then | |
35545 | wx_cv_type_getsockname3=int | |
35546 | else | |
35547 | echo "$as_me: failed program was:" >&5 | |
35548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35549 | ||
35550 | wx_cv_type_getsockname3=unknown | |
35551 | ||
35552 | fi | |
ac1cb8d3 | 35553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35554 | |
35555 | fi | |
ac1cb8d3 | 35556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35557 | |
35558 | CFLAGS="$CFLAGS_OLD" | |
35559 | ||
35560 | ||
35561 | fi | |
ac1cb8d3 | 35562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35563 | |
35564 | fi | |
35565 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35566 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35567 | ||
35568 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35569 | wxUSE_SOCKETS=no | |
35570 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35571 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35572 | else | |
35573 | cat >>confdefs.h <<_ACEOF | |
35574 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35575 | _ACEOF | |
35576 | ||
35577 | fi | |
4d4ff94c VZ |
35578 | ac_ext=c |
35579 | ac_cpp='$CPP $CPPFLAGS' | |
35580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35583 | ||
a848cd7e SC |
35584 | fi |
35585 | fi | |
35586 | ||
35587 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35588 | cat >>confdefs.h <<\_ACEOF | |
35589 | #define wxUSE_SOCKETS 1 | |
35590 | _ACEOF | |
35591 | ||
35592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35593 | fi | |
35594 | ||
35595 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35596 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35597 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35598 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35599 | wxUSE_PROTOCOL=no | |
35600 | fi | |
35601 | fi | |
35602 | ||
35603 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35604 | cat >>confdefs.h <<\_ACEOF | |
35605 | #define wxUSE_PROTOCOL 1 | |
35606 | _ACEOF | |
35607 | ||
35608 | ||
35609 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35610 | cat >>confdefs.h <<\_ACEOF | |
35611 | #define wxUSE_PROTOCOL_HTTP 1 | |
35612 | _ACEOF | |
35613 | ||
35614 | fi | |
35615 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35616 | cat >>confdefs.h <<\_ACEOF | |
35617 | #define wxUSE_PROTOCOL_FTP 1 | |
35618 | _ACEOF | |
35619 | ||
35620 | fi | |
35621 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35622 | cat >>confdefs.h <<\_ACEOF | |
35623 | #define wxUSE_PROTOCOL_FILE 1 | |
35624 | _ACEOF | |
35625 | ||
35626 | fi | |
35627 | else | |
35628 | if test "$wxUSE_FS_INET" = "yes"; then | |
35629 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35630 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35631 | wxUSE_FS_INET="no" | |
35632 | fi | |
35633 | fi | |
35634 | ||
35635 | if test "$wxUSE_URL" = "yes"; then | |
35636 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35637 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35638 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35639 | wxUSE_URL=no | |
35640 | fi | |
35641 | if test "$wxUSE_URL" = "yes"; then | |
35642 | cat >>confdefs.h <<\_ACEOF | |
35643 | #define wxUSE_URL 1 | |
35644 | _ACEOF | |
35645 | ||
35646 | fi | |
35647 | fi | |
35648 | ||
35649 | if test "$wxUSE_FS_INET" = "yes"; then | |
35650 | cat >>confdefs.h <<\_ACEOF | |
35651 | #define wxUSE_FS_INET 1 | |
35652 | _ACEOF | |
35653 | ||
35654 | fi | |
35655 | ||
35656 | ||
35657 | if test "$wxUSE_GUI" = "yes"; then | |
35658 | ||
35659 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35660 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35661 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35662 | wxUSE_JOYSTICK=no | |
35663 | fi | |
35664 | ||
35665 | if test "$TOOLKIT" != "MSW"; then | |
35666 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35667 | ||
35668 | for ac_header in linux/joystick.h | |
35669 | do | |
35670 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35671 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35676 | fi | |
35677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35679 | else | |
35680 | # Is the header compilable? | |
35681 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35682 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35683 | cat >conftest.$ac_ext <<_ACEOF | |
35684 | /* confdefs.h. */ | |
35685 | _ACEOF | |
35686 | cat confdefs.h >>conftest.$ac_ext | |
35687 | cat >>conftest.$ac_ext <<_ACEOF | |
35688 | /* end confdefs.h. */ | |
35689 | $ac_includes_default | |
35690 | #include <$ac_header> | |
35691 | _ACEOF | |
35692 | rm -f conftest.$ac_objext | |
35693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35694 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35695 | ac_status=$? |
ac1cb8d3 VS |
35696 | grep -v '^ *+' conftest.er1 >conftest.err |
35697 | rm -f conftest.er1 | |
35698 | cat conftest.err >&5 | |
a848cd7e SC |
35699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35700 | (exit $ac_status); } && | |
7714864e | 35701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35703 | (eval $ac_try) 2>&5 | |
35704 | ac_status=$? | |
35705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35706 | (exit $ac_status); }; } && | |
35707 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35709 | (eval $ac_try) 2>&5 | |
35710 | ac_status=$? | |
35711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35712 | (exit $ac_status); }; }; then | |
35713 | ac_header_compiler=yes | |
35714 | else | |
35715 | echo "$as_me: failed program was:" >&5 | |
35716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35717 | ||
35718 | ac_header_compiler=no | |
35719 | fi | |
ac1cb8d3 | 35720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35721 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35722 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35723 | ||
35724 | # Is the header present? | |
35725 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35726 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35727 | cat >conftest.$ac_ext <<_ACEOF | |
35728 | /* confdefs.h. */ | |
35729 | _ACEOF | |
35730 | cat confdefs.h >>conftest.$ac_ext | |
35731 | cat >>conftest.$ac_ext <<_ACEOF | |
35732 | /* end confdefs.h. */ | |
35733 | #include <$ac_header> | |
35734 | _ACEOF | |
35735 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35736 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35737 | ac_status=$? | |
35738 | grep -v '^ *+' conftest.er1 >conftest.err | |
35739 | rm -f conftest.er1 | |
35740 | cat conftest.err >&5 | |
35741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35742 | (exit $ac_status); } >/dev/null; then | |
35743 | if test -s conftest.err; then | |
35744 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35745 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35746 | else |
35747 | ac_cpp_err= | |
35748 | fi | |
35749 | else | |
35750 | ac_cpp_err=yes | |
35751 | fi | |
35752 | if test -z "$ac_cpp_err"; then | |
35753 | ac_header_preproc=yes | |
35754 | else | |
35755 | echo "$as_me: failed program was:" >&5 | |
35756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35757 | ||
35758 | ac_header_preproc=no | |
35759 | fi | |
35760 | rm -f conftest.err conftest.$ac_ext | |
35761 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35762 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35763 | ||
35764 | # So? What about this header? | |
ac1cb8d3 VS |
35765 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35766 | yes:no: ) | |
a848cd7e SC |
35767 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35768 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35769 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35770 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35771 | ac_header_preproc=yes | |
a848cd7e | 35772 | ;; |
ac1cb8d3 | 35773 | no:yes:* ) |
a848cd7e SC |
35774 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35775 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35776 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35777 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35778 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35779 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35780 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35781 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35782 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35783 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35784 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35785 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35786 | ( |
35787 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35788 | ## ----------------------------------------- ## |
35789 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35790 | ## ----------------------------------------- ## | |
a848cd7e SC |
35791 | _ASBOX |
35792 | ) | | |
35793 | sed "s/^/$as_me: WARNING: /" >&2 | |
35794 | ;; | |
35795 | esac | |
35796 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35797 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35798 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35800 | else | |
ac1cb8d3 | 35801 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35802 | fi |
35803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35805 | ||
35806 | fi | |
35807 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35808 | cat >>confdefs.h <<_ACEOF | |
35809 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35810 | _ACEOF | |
35811 | ||
35812 | fi | |
35813 | ||
35814 | done | |
35815 | ||
35816 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35817 | wxUSE_JOYSTICK=no | |
35818 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35819 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35820 | fi | |
35821 | fi | |
35822 | fi | |
35823 | ||
35824 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35825 | cat >>confdefs.h <<\_ACEOF | |
35826 | #define wxUSE_JOYSTICK 1 | |
35827 | _ACEOF | |
35828 | ||
35829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35830 | fi | |
35831 | fi | |
35832 | ||
35833 | ||
35834 | ||
35835 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35836 | cat >>confdefs.h <<\_ACEOF | |
35837 | #define wxUSE_FONTMAP 1 | |
35838 | _ACEOF | |
35839 | ||
35840 | fi | |
35841 | ||
35842 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35843 | cat >>confdefs.h <<\_ACEOF | |
35844 | #define wxUSE_UNICODE 1 | |
35845 | _ACEOF | |
35846 | ||
35847 | ||
35848 | if test "$USE_WIN32" != 1; then | |
35849 | wxUSE_UNICODE_MSLU=no | |
35850 | fi | |
35851 | ||
35852 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35853 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35854 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35855 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35857 | else | |
35858 | ac_check_lib_save_LIBS=$LIBS | |
35859 | LIBS="-lunicows $LIBS" | |
35860 | cat >conftest.$ac_ext <<_ACEOF | |
35861 | /* confdefs.h. */ | |
35862 | _ACEOF | |
35863 | cat confdefs.h >>conftest.$ac_ext | |
35864 | cat >>conftest.$ac_ext <<_ACEOF | |
35865 | /* end confdefs.h. */ | |
35866 | ||
35867 | ||
35868 | int | |
35869 | main () | |
35870 | { | |
35871 | main (); | |
35872 | ; | |
35873 | return 0; | |
35874 | } | |
35875 | _ACEOF | |
35876 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35878 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35879 | ac_status=$? |
ac1cb8d3 VS |
35880 | grep -v '^ *+' conftest.er1 >conftest.err |
35881 | rm -f conftest.er1 | |
35882 | cat conftest.err >&5 | |
a848cd7e SC |
35883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35884 | (exit $ac_status); } && | |
7714864e | 35885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35887 | (eval $ac_try) 2>&5 | |
35888 | ac_status=$? | |
35889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35890 | (exit $ac_status); }; } && | |
35891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35893 | (eval $ac_try) 2>&5 | |
35894 | ac_status=$? | |
35895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35896 | (exit $ac_status); }; }; then | |
35897 | ac_cv_lib_unicows_main=yes | |
35898 | else | |
35899 | echo "$as_me: failed program was:" >&5 | |
35900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35901 | ||
35902 | ac_cv_lib_unicows_main=no | |
35903 | fi | |
ac1cb8d3 VS |
35904 | rm -f conftest.err conftest.$ac_objext \ |
35905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35906 | LIBS=$ac_check_lib_save_LIBS |
35907 | fi | |
35908 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
35909 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
35910 | if test $ac_cv_lib_unicows_main = yes; then | |
35911 | ||
35912 | cat >>confdefs.h <<\_ACEOF | |
35913 | #define wxUSE_UNICODE_MSLU 1 | |
35914 | _ACEOF | |
35915 | ||
35916 | ||
35917 | else | |
35918 | ||
35919 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35920 | Applications will only run on Windows NT/2000/XP!" >&5 | |
35921 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
35922 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
35923 | wxUSE_UNICODE_MSLU=no | |
35924 | ||
35925 | fi | |
35926 | ||
35927 | fi | |
35928 | fi | |
35929 | ||
35930 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
35931 | cat >>confdefs.h <<\_ACEOF | |
35932 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
35933 | _ACEOF | |
35934 | ||
35935 | fi | |
35936 | ||
35937 | ||
35938 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
35939 | cat >>confdefs.h <<\_ACEOF | |
35940 | #define wxUSE_POSTSCRIPT 1 | |
35941 | _ACEOF | |
35942 | ||
35943 | fi | |
35944 | ||
35945 | cat >>confdefs.h <<\_ACEOF | |
35946 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
35947 | _ACEOF | |
35948 | ||
35949 | ||
35950 | cat >>confdefs.h <<\_ACEOF | |
35951 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
35952 | _ACEOF | |
35953 | ||
35954 | ||
35955 | ||
35956 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
35957 | cat >>confdefs.h <<\_ACEOF | |
35958 | #define wxUSE_CONSTRAINTS 1 | |
35959 | _ACEOF | |
35960 | ||
35961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35962 | fi | |
35963 | ||
8a7b1113 VZ |
35964 | if test "$wxUSE_MDI" = "yes"; then |
35965 | cat >>confdefs.h <<\_ACEOF | |
35966 | #define wxUSE_MDI 1 | |
35967 | _ACEOF | |
35968 | ||
35969 | ||
35970 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35971 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
35972 | #define wxUSE_MDI_ARCHITECTURE 1 |
35973 | _ACEOF | |
35974 | ||
8a7b1113 VZ |
35975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
35976 | fi | |
a848cd7e SC |
35977 | fi |
35978 | ||
35979 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
35980 | cat >>confdefs.h <<\_ACEOF | |
35981 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
35982 | _ACEOF | |
35983 | ||
35984 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
35985 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
35986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
35987 | fi | |
35988 | fi | |
35989 | ||
35990 | if test "$wxUSE_HELP" = "yes"; then | |
35991 | cat >>confdefs.h <<\_ACEOF | |
35992 | #define wxUSE_HELP 1 | |
35993 | _ACEOF | |
35994 | ||
35995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
35996 | ||
35997 | if test "$wxUSE_MSW" = 1; then | |
35998 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
35999 | cat >>confdefs.h <<\_ACEOF | |
36000 | #define wxUSE_MS_HTML_HELP 1 | |
36001 | _ACEOF | |
36002 | ||
36003 | fi | |
36004 | fi | |
36005 | ||
36006 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36007 | if test "$wxUSE_HTML" = "yes"; then | |
36008 | cat >>confdefs.h <<\_ACEOF | |
36009 | #define wxUSE_WXHTML_HELP 1 | |
36010 | _ACEOF | |
36011 | ||
36012 | else | |
36013 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36014 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36015 | wxUSE_WXHTML_HELP=no | |
36016 | fi | |
36017 | fi | |
36018 | fi | |
36019 | ||
36020 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36021 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36022 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36023 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36024 | else | |
36025 | cat >>confdefs.h <<\_ACEOF | |
36026 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36027 | _ACEOF | |
36028 | ||
36029 | fi | |
36030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36031 | fi | |
36032 | ||
36033 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36034 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36035 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36036 | { (exit 1); exit 1; }; } | |
36037 | fi | |
36038 | ||
36039 | ||
36040 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36041 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36042 | -o "$wxUSE_OLE" = "yes" \ | |
36043 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36044 | ||
36045 | for ac_header in ole2.h | |
36046 | do | |
36047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36053 | fi | |
36054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36056 | else | |
36057 | # Is the header compilable? | |
36058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36060 | cat >conftest.$ac_ext <<_ACEOF | |
36061 | /* confdefs.h. */ | |
36062 | _ACEOF | |
36063 | cat confdefs.h >>conftest.$ac_ext | |
36064 | cat >>conftest.$ac_ext <<_ACEOF | |
36065 | /* end confdefs.h. */ | |
36066 | $ac_includes_default | |
36067 | #include <$ac_header> | |
36068 | _ACEOF | |
36069 | rm -f conftest.$ac_objext | |
36070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36072 | ac_status=$? |
ac1cb8d3 VS |
36073 | grep -v '^ *+' conftest.er1 >conftest.err |
36074 | rm -f conftest.er1 | |
36075 | cat conftest.err >&5 | |
a848cd7e SC |
36076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36077 | (exit $ac_status); } && | |
7714864e | 36078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36080 | (eval $ac_try) 2>&5 | |
36081 | ac_status=$? | |
36082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36083 | (exit $ac_status); }; } && | |
36084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36086 | (eval $ac_try) 2>&5 | |
36087 | ac_status=$? | |
36088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36089 | (exit $ac_status); }; }; then | |
36090 | ac_header_compiler=yes | |
36091 | else | |
36092 | echo "$as_me: failed program was:" >&5 | |
36093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36094 | ||
36095 | ac_header_compiler=no | |
36096 | fi | |
ac1cb8d3 | 36097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36098 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36099 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36100 | ||
36101 | # Is the header present? | |
36102 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36103 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36104 | cat >conftest.$ac_ext <<_ACEOF | |
36105 | /* confdefs.h. */ | |
36106 | _ACEOF | |
36107 | cat confdefs.h >>conftest.$ac_ext | |
36108 | cat >>conftest.$ac_ext <<_ACEOF | |
36109 | /* end confdefs.h. */ | |
36110 | #include <$ac_header> | |
36111 | _ACEOF | |
36112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36114 | ac_status=$? | |
36115 | grep -v '^ *+' conftest.er1 >conftest.err | |
36116 | rm -f conftest.er1 | |
36117 | cat conftest.err >&5 | |
36118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36119 | (exit $ac_status); } >/dev/null; then | |
36120 | if test -s conftest.err; then | |
36121 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36122 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36123 | else |
36124 | ac_cpp_err= | |
36125 | fi | |
36126 | else | |
36127 | ac_cpp_err=yes | |
36128 | fi | |
36129 | if test -z "$ac_cpp_err"; then | |
36130 | ac_header_preproc=yes | |
36131 | else | |
36132 | echo "$as_me: failed program was:" >&5 | |
36133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36134 | ||
36135 | ac_header_preproc=no | |
36136 | fi | |
36137 | rm -f conftest.err conftest.$ac_ext | |
36138 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36139 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36140 | ||
36141 | # So? What about this header? | |
ac1cb8d3 VS |
36142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36143 | yes:no: ) | |
a848cd7e SC |
36144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36148 | ac_header_preproc=yes | |
a848cd7e | 36149 | ;; |
ac1cb8d3 | 36150 | no:yes:* ) |
a848cd7e SC |
36151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36163 | ( |
36164 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36165 | ## ----------------------------------------- ## |
36166 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36167 | ## ----------------------------------------- ## | |
a848cd7e SC |
36168 | _ASBOX |
36169 | ) | | |
36170 | sed "s/^/$as_me: WARNING: /" >&2 | |
36171 | ;; | |
36172 | esac | |
36173 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36174 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36177 | else | |
ac1cb8d3 | 36178 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36179 | fi |
36180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36182 | ||
36183 | fi | |
36184 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36185 | cat >>confdefs.h <<_ACEOF | |
36186 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36187 | _ACEOF | |
36188 | ||
36189 | fi | |
36190 | ||
36191 | done | |
36192 | ||
36193 | ||
36194 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36195 | if test "$GCC" = yes ; then | |
36196 | ||
36197 | ||
36198 | ac_ext=cc | |
36199 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36200 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36201 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36202 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36203 | ||
36204 | ||
36205 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36206 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36207 | cat >conftest.$ac_ext <<_ACEOF | |
36208 | /* confdefs.h. */ | |
36209 | _ACEOF | |
36210 | cat confdefs.h >>conftest.$ac_ext | |
36211 | cat >>conftest.$ac_ext <<_ACEOF | |
36212 | /* end confdefs.h. */ | |
36213 | #include <windows.h> | |
36214 | #include <ole2.h> | |
36215 | int | |
36216 | main () | |
36217 | { | |
36218 | ||
36219 | ; | |
36220 | return 0; | |
36221 | } | |
36222 | _ACEOF | |
36223 | rm -f conftest.$ac_objext | |
36224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36225 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36226 | ac_status=$? |
ac1cb8d3 VS |
36227 | grep -v '^ *+' conftest.er1 >conftest.err |
36228 | rm -f conftest.er1 | |
36229 | cat conftest.err >&5 | |
a848cd7e SC |
36230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36231 | (exit $ac_status); } && | |
7714864e | 36232 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36234 | (eval $ac_try) 2>&5 | |
36235 | ac_status=$? | |
36236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36237 | (exit $ac_status); }; } && | |
36238 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36240 | (eval $ac_try) 2>&5 | |
36241 | ac_status=$? | |
36242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36243 | (exit $ac_status); }; }; then | |
36244 | echo "$as_me:$LINENO: result: no" >&5 | |
36245 | echo "${ECHO_T}no" >&6 | |
36246 | else | |
36247 | echo "$as_me: failed program was:" >&5 | |
36248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36249 | ||
36250 | echo "$as_me:$LINENO: result: yes" >&5 | |
36251 | echo "${ECHO_T}yes" >&6 | |
36252 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36253 | fi | |
ac1cb8d3 | 36254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36255 | ac_ext=c |
36256 | ac_cpp='$CPP $CPPFLAGS' | |
36257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36260 | ||
a848cd7e SC |
36261 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36262 | if test "$wxUSE_OLE" = "yes" ; then | |
36263 | cat >>confdefs.h <<\_ACEOF | |
36264 | #define wxUSE_OLE 1 | |
36265 | _ACEOF | |
36266 | ||
36267 | fi | |
36268 | fi | |
36269 | ||
36270 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36271 | cat >>confdefs.h <<\_ACEOF | |
36272 | #define wxUSE_DATAOBJ 1 | |
36273 | _ACEOF | |
36274 | ||
36275 | fi | |
36276 | else | |
36277 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36278 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36279 | ||
36280 | wxUSE_CLIPBOARD=no | |
36281 | wxUSE_DRAG_AND_DROP=no | |
36282 | wxUSE_DATAOBJ=no | |
36283 | wxUSE_OLE=no | |
36284 | fi | |
36285 | ||
36286 | if test "$wxUSE_METAFILE" = "yes"; then | |
36287 | cat >>confdefs.h <<\_ACEOF | |
36288 | #define wxUSE_METAFILE 1 | |
36289 | _ACEOF | |
36290 | ||
36291 | ||
36292 | cat >>confdefs.h <<\_ACEOF | |
36293 | #define wxUSE_ENH_METAFILE 1 | |
36294 | _ACEOF | |
36295 | ||
36296 | fi | |
36297 | fi | |
36298 | ||
36299 | if test "$wxUSE_IPC" = "yes"; then | |
36300 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36301 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36302 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36303 | fi |
36304 | ||
36305 | cat >>confdefs.h <<\_ACEOF | |
36306 | #define wxUSE_IPC 1 | |
36307 | _ACEOF | |
36308 | ||
36309 | fi | |
36310 | ||
36311 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36312 | if test "$wxUSE_MGL" = 1; then | |
36313 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36314 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36315 | wxUSE_CLIPBOARD=no | |
36316 | fi | |
36317 | ||
36318 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36319 | cat >>confdefs.h <<\_ACEOF | |
36320 | #define wxUSE_CLIPBOARD 1 | |
36321 | _ACEOF | |
36322 | ||
36323 | ||
36324 | cat >>confdefs.h <<\_ACEOF | |
36325 | #define wxUSE_DATAOBJ 1 | |
36326 | _ACEOF | |
36327 | ||
36328 | fi | |
36329 | fi | |
36330 | ||
36331 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36332 | if test "$wxUSE_GTK" = 1; then | |
36333 | if test "$WXGTK12" != 1; then | |
36334 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36335 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36336 | wxUSE_DRAG_AND_DROP=no | |
36337 | fi | |
36338 | fi | |
36339 | ||
36340 | if test "$wxUSE_MOTIF" = 1; then | |
36341 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36342 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36343 | wxUSE_DRAG_AND_DROP=no | |
36344 | fi | |
36345 | ||
36346 | if test "$wxUSE_X11" = 1; then | |
36347 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36348 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36349 | wxUSE_DRAG_AND_DROP=no | |
36350 | fi | |
36351 | ||
36352 | if test "$wxUSE_MGL" = 1; then | |
36353 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36354 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36355 | wxUSE_DRAG_AND_DROP=no | |
36356 | fi | |
36357 | ||
36358 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36359 | cat >>confdefs.h <<\_ACEOF | |
36360 | #define wxUSE_DRAG_AND_DROP 1 | |
36361 | _ACEOF | |
36362 | ||
36363 | fi | |
36364 | ||
36365 | fi | |
36366 | ||
36367 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36368 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36369 | fi | |
36370 | ||
36371 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36372 | cat >>confdefs.h <<\_ACEOF | |
36373 | #define wxUSE_SPLINES 1 | |
36374 | _ACEOF | |
36375 | ||
36376 | fi | |
36377 | ||
36378 | ||
36379 | USES_CONTROLS=0 | |
36380 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36381 | USES_CONTROLS=1 | |
36382 | fi | |
36383 | ||
36384 | if test "$wxUSE_ACCEL" = "yes"; then | |
36385 | cat >>confdefs.h <<\_ACEOF | |
36386 | #define wxUSE_ACCEL 1 | |
36387 | _ACEOF | |
36388 | ||
36389 | USES_CONTROLS=1 | |
36390 | fi | |
36391 | ||
36392 | if test "$wxUSE_BUTTON" = "yes"; then | |
36393 | cat >>confdefs.h <<\_ACEOF | |
36394 | #define wxUSE_BUTTON 1 | |
36395 | _ACEOF | |
36396 | ||
36397 | USES_CONTROLS=1 | |
36398 | fi | |
36399 | ||
36400 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36401 | cat >>confdefs.h <<\_ACEOF | |
36402 | #define wxUSE_BMPBUTTON 1 | |
36403 | _ACEOF | |
36404 | ||
36405 | USES_CONTROLS=1 | |
36406 | fi | |
36407 | ||
36408 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36409 | cat >>confdefs.h <<\_ACEOF | |
36410 | #define wxUSE_CALENDARCTRL 1 | |
36411 | _ACEOF | |
36412 | ||
36413 | USES_CONTROLS=1 | |
36414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36415 | fi | |
36416 | ||
36417 | if test "$wxUSE_CARET" = "yes"; then | |
36418 | cat >>confdefs.h <<\_ACEOF | |
36419 | #define wxUSE_CARET 1 | |
36420 | _ACEOF | |
36421 | ||
36422 | USES_CONTROLS=1 | |
36423 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36424 | fi | |
36425 | ||
36426 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36427 | cat >>confdefs.h <<\_ACEOF | |
36428 | #define wxUSE_COMBOBOX 1 | |
36429 | _ACEOF | |
36430 | ||
36431 | USES_CONTROLS=1 | |
36432 | fi | |
36433 | ||
36434 | if test "$wxUSE_CHOICE" = "yes"; then | |
36435 | cat >>confdefs.h <<\_ACEOF | |
36436 | #define wxUSE_CHOICE 1 | |
36437 | _ACEOF | |
36438 | ||
36439 | USES_CONTROLS=1 | |
36440 | fi | |
36441 | ||
92bbdbcd WS |
36442 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36443 | cat >>confdefs.h <<\_ACEOF | |
36444 | #define wxUSE_CHOICEBOOK 1 | |
36445 | _ACEOF | |
36446 | ||
36447 | USES_CONTROLS=1 | |
36448 | fi | |
36449 | ||
a848cd7e SC |
36450 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36451 | cat >>confdefs.h <<\_ACEOF | |
36452 | #define wxUSE_CHECKBOX 1 | |
36453 | _ACEOF | |
36454 | ||
36455 | USES_CONTROLS=1 | |
36456 | fi | |
36457 | ||
36458 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36459 | cat >>confdefs.h <<\_ACEOF | |
36460 | #define wxUSE_CHECKLISTBOX 1 | |
36461 | _ACEOF | |
36462 | ||
36463 | USES_CONTROLS=1 | |
36464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36465 | fi | |
36466 | ||
36467 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36468 | cat >>confdefs.h <<\_ACEOF | |
36469 | #define wxUSE_DISPLAY 1 | |
36470 | _ACEOF | |
36471 | ||
36472 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36473 | fi | |
36474 | ||
36475 | if test "$wxUSE_GAUGE" = "yes"; then | |
36476 | cat >>confdefs.h <<\_ACEOF | |
36477 | #define wxUSE_GAUGE 1 | |
36478 | _ACEOF | |
36479 | ||
36480 | USES_CONTROLS=1 | |
36481 | fi | |
36482 | ||
36483 | if test "$wxUSE_GRID" = "yes"; then | |
36484 | cat >>confdefs.h <<\_ACEOF | |
36485 | #define wxUSE_GRID 1 | |
36486 | _ACEOF | |
36487 | ||
36488 | USES_CONTROLS=1 | |
36489 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36490 | fi | |
36491 | ||
36492 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36493 | cat >>confdefs.h <<\_ACEOF | |
36494 | #define wxUSE_IMAGLIST 1 | |
36495 | _ACEOF | |
36496 | ||
36497 | fi | |
36498 | ||
36499 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36500 | cat >>confdefs.h <<\_ACEOF | |
36501 | #define wxUSE_LISTBOOK 1 | |
36502 | _ACEOF | |
36503 | ||
36504 | USES_CONTROLS=1 | |
36505 | fi | |
36506 | ||
36507 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36508 | cat >>confdefs.h <<\_ACEOF | |
36509 | #define wxUSE_LISTBOX 1 | |
36510 | _ACEOF | |
36511 | ||
36512 | USES_CONTROLS=1 | |
36513 | fi | |
36514 | ||
36515 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36516 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36517 | cat >>confdefs.h <<\_ACEOF | |
36518 | #define wxUSE_LISTCTRL 1 | |
36519 | _ACEOF | |
36520 | ||
36521 | USES_CONTROLS=1 | |
36522 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36523 | else | |
36524 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36525 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36526 | fi | |
36527 | fi | |
36528 | ||
36529 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36530 | cat >>confdefs.h <<\_ACEOF | |
36531 | #define wxUSE_NOTEBOOK 1 | |
36532 | _ACEOF | |
36533 | ||
36534 | USES_CONTROLS=1 | |
36535 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36536 | fi | |
36537 | ||
36538 | ||
36539 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36540 | cat >>confdefs.h <<\_ACEOF | |
36541 | #define wxUSE_RADIOBOX 1 | |
36542 | _ACEOF | |
36543 | ||
36544 | USES_CONTROLS=1 | |
36545 | fi | |
36546 | ||
36547 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36548 | cat >>confdefs.h <<\_ACEOF | |
36549 | #define wxUSE_RADIOBTN 1 | |
36550 | _ACEOF | |
36551 | ||
36552 | USES_CONTROLS=1 | |
36553 | fi | |
36554 | ||
36555 | if test "$wxUSE_SASH" = "yes"; then | |
36556 | cat >>confdefs.h <<\_ACEOF | |
36557 | #define wxUSE_SASH 1 | |
36558 | _ACEOF | |
36559 | ||
36560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36561 | fi | |
36562 | ||
36563 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36564 | cat >>confdefs.h <<\_ACEOF | |
36565 | #define wxUSE_SCROLLBAR 1 | |
36566 | _ACEOF | |
36567 | ||
36568 | USES_CONTROLS=1 | |
36569 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36570 | fi | |
36571 | ||
36572 | if test "$wxUSE_SLIDER" = "yes"; then | |
36573 | cat >>confdefs.h <<\_ACEOF | |
36574 | #define wxUSE_SLIDER 1 | |
36575 | _ACEOF | |
36576 | ||
36577 | USES_CONTROLS=1 | |
36578 | fi | |
36579 | ||
36580 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36581 | cat >>confdefs.h <<\_ACEOF | |
36582 | #define wxUSE_SPINBTN 1 | |
36583 | _ACEOF | |
36584 | ||
36585 | USES_CONTROLS=1 | |
36586 | fi | |
36587 | ||
36588 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36589 | cat >>confdefs.h <<\_ACEOF | |
36590 | #define wxUSE_SPINCTRL 1 | |
36591 | _ACEOF | |
36592 | ||
36593 | USES_CONTROLS=1 | |
36594 | fi | |
36595 | ||
36596 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36597 | cat >>confdefs.h <<\_ACEOF | |
36598 | #define wxUSE_SPLITTER 1 | |
36599 | _ACEOF | |
36600 | ||
36601 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36602 | fi | |
36603 | ||
36604 | if test "$wxUSE_STATBMP" = "yes"; then | |
36605 | cat >>confdefs.h <<\_ACEOF | |
36606 | #define wxUSE_STATBMP 1 | |
36607 | _ACEOF | |
36608 | ||
36609 | USES_CONTROLS=1 | |
36610 | fi | |
36611 | ||
36612 | if test "$wxUSE_STATBOX" = "yes"; then | |
36613 | cat >>confdefs.h <<\_ACEOF | |
36614 | #define wxUSE_STATBOX 1 | |
36615 | _ACEOF | |
36616 | ||
36617 | USES_CONTROLS=1 | |
36618 | fi | |
36619 | ||
36620 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36621 | cat >>confdefs.h <<\_ACEOF | |
36622 | #define wxUSE_STATTEXT 1 | |
36623 | _ACEOF | |
36624 | ||
36625 | USES_CONTROLS=1 | |
36626 | fi | |
36627 | ||
36628 | if test "$wxUSE_STATLINE" = "yes"; then | |
36629 | cat >>confdefs.h <<\_ACEOF | |
36630 | #define wxUSE_STATLINE 1 | |
36631 | _ACEOF | |
36632 | ||
36633 | USES_CONTROLS=1 | |
36634 | fi | |
36635 | ||
36636 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36637 | cat >>confdefs.h <<\_ACEOF | |
36638 | #define wxUSE_STATUSBAR 1 | |
36639 | _ACEOF | |
36640 | ||
36641 | USES_CONTROLS=1 | |
36642 | ||
36643 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36644 | fi | |
36645 | ||
36646 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36647 | cat >>confdefs.h <<\_ACEOF | |
36648 | #define wxUSE_TAB_DIALOG 1 | |
36649 | _ACEOF | |
36650 | ||
36651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36652 | fi | |
36653 | ||
36654 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36655 | cat >>confdefs.h <<\_ACEOF | |
36656 | #define wxUSE_TEXTCTRL 1 | |
36657 | _ACEOF | |
36658 | ||
36659 | USES_CONTROLS=1 | |
36660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36661 | fi | |
36662 | ||
36663 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36664 | if test "$wxUSE_COCOA" = 1 ; then | |
36665 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36666 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36667 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36668 | else |
36669 | if test "$wxUSE_PM" = 1; then | |
36670 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36671 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36672 | wxUSE_TOGGLEBTN=no | |
36673 | fi | |
a848cd7e SC |
36674 | fi |
36675 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36676 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36677 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36678 | wxUSE_TOGGLEBTN=no | |
36679 | fi | |
36680 | ||
36681 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36682 | cat >>confdefs.h <<\_ACEOF | |
36683 | #define wxUSE_TOGGLEBTN 1 | |
36684 | _ACEOF | |
36685 | ||
36686 | USES_CONTROLS=1 | |
36687 | fi | |
36688 | fi | |
36689 | ||
36690 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36691 | cat >>confdefs.h <<\_ACEOF | |
36692 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36693 | _ACEOF | |
36694 | ||
36695 | wxUSE_TOOLBAR="yes" | |
36696 | USES_CONTROLS=1 | |
36697 | fi | |
36698 | ||
36699 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36700 | cat >>confdefs.h <<\_ACEOF | |
36701 | #define wxUSE_TOOLBAR 1 | |
36702 | _ACEOF | |
36703 | ||
36704 | USES_CONTROLS=1 | |
36705 | ||
36706 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36707 | wxUSE_TOOLBAR_NATIVE="yes" | |
36708 | fi | |
36709 | ||
36710 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | USES_CONTROLS=1 | |
36716 | fi | |
36717 | ||
36718 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36719 | fi | |
36720 | ||
36721 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36722 | if test "$wxUSE_MOTIF" = 1; then | |
36723 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36724 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36725 | else | |
36726 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36727 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36728 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36729 | else | |
36730 | cat >>confdefs.h <<\_ACEOF | |
36731 | #define wxUSE_TOOLTIPS 1 | |
36732 | _ACEOF | |
36733 | ||
36734 | fi | |
36735 | fi | |
36736 | fi | |
36737 | ||
36738 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36739 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36740 | cat >>confdefs.h <<\_ACEOF | |
36741 | #define wxUSE_TREECTRL 1 | |
36742 | _ACEOF | |
36743 | ||
36744 | USES_CONTROLS=1 | |
36745 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36746 | else | |
36747 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36748 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36749 | fi | |
36750 | fi | |
36751 | ||
36752 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36753 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36754 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36755 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36756 | else | |
36757 | if test "$wxUSE_PM" = 1; then | |
36758 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36759 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36760 | else | |
36761 | cat >>confdefs.h <<\_ACEOF | |
36762 | #define wxUSE_POPUPWIN 1 | |
36763 | _ACEOF | |
36764 | ||
36765 | ||
36766 | USES_CONTROLS=1 | |
36767 | fi | |
36768 | fi | |
36769 | fi | |
36770 | ||
36771 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36772 | if test "$wxUSE_PM" = 1; then | |
36773 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36774 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36775 | else | |
36776 | cat >>confdefs.h <<\_ACEOF | |
36777 | #define wxUSE_TIPWINDOW 1 | |
36778 | _ACEOF | |
36779 | ||
36780 | fi | |
36781 | fi | |
36782 | ||
36783 | if test "$USES_CONTROLS" = 1; then | |
36784 | cat >>confdefs.h <<\_ACEOF | |
36785 | #define wxUSE_CONTROLS 1 | |
36786 | _ACEOF | |
36787 | ||
36788 | fi | |
36789 | ||
36790 | ||
36791 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36792 | cat >>confdefs.h <<\_ACEOF | |
36793 | #define wxUSE_ACCESSIBILITY 1 | |
36794 | _ACEOF | |
36795 | ||
36796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36797 | fi | |
36798 | ||
36799 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36800 | cat >>confdefs.h <<\_ACEOF | |
36801 | #define wxUSE_DRAGIMAGE 1 | |
36802 | _ACEOF | |
36803 | ||
36804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36805 | fi | |
36806 | ||
36807 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36808 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36809 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36810 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36811 | else | |
36812 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36813 | #define wxUSE_EXCEPTIONS 1 |
36814 | _ACEOF | |
36815 | ||
07bea8f0 VS |
36816 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36817 | fi | |
a848cd7e SC |
36818 | fi |
36819 | ||
36820 | USE_HTML=0 | |
36821 | if test "$wxUSE_HTML" = "yes"; then | |
36822 | cat >>confdefs.h <<\_ACEOF | |
36823 | #define wxUSE_HTML 1 | |
36824 | _ACEOF | |
36825 | ||
36826 | USE_HTML=1 | |
36827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36828 | if test "$wxUSE_MAC" = 1; then |
36829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36830 | fi | |
a848cd7e | 36831 | fi |
646b6ec1 | 36832 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36833 | if test "$wxUSE_MAC" = 1; then |
36834 | old_CPPFLAGS="$CPPFLAGS" | |
36835 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36836 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36837 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36838 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36840 | else | |
36841 | cat >conftest.$ac_ext <<_ACEOF | |
36842 | /* confdefs.h. */ | |
36843 | _ACEOF | |
36844 | cat confdefs.h >>conftest.$ac_ext | |
36845 | cat >>conftest.$ac_ext <<_ACEOF | |
36846 | /* end confdefs.h. */ | |
36847 | #include <Carbon/Carbon.h> | |
36848 | ||
36849 | #include <WebKit/HIWebView.h> | |
36850 | _ACEOF | |
36851 | rm -f conftest.$ac_objext | |
36852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36853 | (eval $ac_compile) 2>conftest.er1 | |
36854 | ac_status=$? | |
36855 | grep -v '^ *+' conftest.er1 >conftest.err | |
36856 | rm -f conftest.er1 | |
36857 | cat conftest.err >&5 | |
36858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36859 | (exit $ac_status); } && | |
7714864e | 36860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
36861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36862 | (eval $ac_try) 2>&5 | |
36863 | ac_status=$? | |
36864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36865 | (exit $ac_status); }; } && | |
36866 | { ac_try='test -s conftest.$ac_objext' | |
36867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36868 | (eval $ac_try) 2>&5 | |
36869 | ac_status=$? | |
36870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36871 | (exit $ac_status); }; }; then | |
36872 | ac_cv_header_WebKit_HIWebView_h=yes | |
36873 | else | |
36874 | echo "$as_me: failed program was:" >&5 | |
36875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36876 | ||
36877 | ac_cv_header_WebKit_HIWebView_h=no | |
36878 | fi | |
36879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36880 | fi | |
36881 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36882 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36883 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36884 | ||
36885 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36886 | #define wxUSE_WEBKIT 1 |
36887 | _ACEOF | |
36888 | ||
07bea8f0 VS |
36889 | WEBKIT_LINK="-framework WebKit" |
36890 | ||
36891 | else | |
36892 | ||
36893 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
36894 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
36895 | wxUSE_WEBKIT=no | |
36896 | ||
646b6ec1 VS |
36897 | fi |
36898 | ||
07bea8f0 VS |
36899 | |
36900 | CPPFLAGS="$old_CPPFLAGS" | |
36901 | elif test "$wxUSE_COCOA" = 1; then | |
36902 | cat >>confdefs.h <<\_ACEOF | |
36903 | #define wxUSE_WEBKIT 1 | |
36904 | _ACEOF | |
36905 | ||
36906 | else | |
36907 | wxUSE_WEBKIT=no | |
36908 | fi | |
36909 | fi | |
36910 | ||
9a8f0513 VS |
36911 | USE_XRC=0 |
36912 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
36913 | if test "$wxUSE_XML" != "yes"; then |
36914 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
36915 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
36916 | wxUSE_XRC=no | |
36917 | else | |
36918 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
36919 | #define wxUSE_XRC 1 |
36920 | _ACEOF | |
36921 | ||
d2ebf0b7 VS |
36922 | USE_XRC=1 |
36923 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
36924 | fi | |
9a8f0513 | 36925 | fi |
07bea8f0 | 36926 | |
a848cd7e SC |
36927 | if test "$wxUSE_MENUS" = "yes"; then |
36928 | cat >>confdefs.h <<\_ACEOF | |
36929 | #define wxUSE_MENUS 1 | |
36930 | _ACEOF | |
36931 | ||
36932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36933 | fi | |
36934 | ||
36935 | if test "$wxUSE_METAFILE" = "yes"; then | |
36936 | cat >>confdefs.h <<\_ACEOF | |
36937 | #define wxUSE_METAFILE 1 | |
36938 | _ACEOF | |
36939 | ||
36940 | fi | |
36941 | ||
36942 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
36943 | cat >>confdefs.h <<\_ACEOF | |
36944 | #define wxUSE_MIMETYPE 1 | |
36945 | _ACEOF | |
36946 | ||
36947 | fi | |
36948 | ||
36949 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
36950 | cat >>confdefs.h <<\_ACEOF | |
36951 | #define wxUSE_MINIFRAME 1 | |
36952 | _ACEOF | |
36953 | ||
36954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
36955 | fi | |
36956 | ||
36957 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
36958 | cat >>confdefs.h <<\_ACEOF | |
36959 | #define wxUSE_SYSTEM_OPTIONS 1 | |
36960 | _ACEOF | |
36961 | ||
36962 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
36963 | "$TOOLKIT" = "MOTIF"; then | |
36964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
36965 | fi | |
36966 | fi | |
36967 | ||
36968 | ||
36969 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
36970 | cat >>confdefs.h <<\_ACEOF | |
36971 | #define wxUSE_VALIDATORS 1 | |
36972 | _ACEOF | |
36973 | ||
36974 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
36975 | fi | |
36976 | ||
36977 | if test "$wxUSE_PALETTE" = "yes" ; then | |
36978 | cat >>confdefs.h <<\_ACEOF | |
36979 | #define wxUSE_PALETTE 1 | |
36980 | _ACEOF | |
36981 | ||
36982 | fi | |
36983 | ||
36984 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
36985 | LIBS=" -lunicows $LIBS" | |
36986 | fi | |
36987 | ||
36988 | ||
36989 | if test "$wxUSE_IMAGE" = "yes" ; then | |
36990 | cat >>confdefs.h <<\_ACEOF | |
36991 | #define wxUSE_IMAGE 1 | |
36992 | _ACEOF | |
36993 | ||
36994 | ||
36995 | if test "$wxUSE_GIF" = "yes" ; then | |
36996 | cat >>confdefs.h <<\_ACEOF | |
36997 | #define wxUSE_GIF 1 | |
36998 | _ACEOF | |
36999 | ||
37000 | fi | |
37001 | ||
37002 | if test "$wxUSE_PCX" = "yes" ; then | |
37003 | cat >>confdefs.h <<\_ACEOF | |
37004 | #define wxUSE_PCX 1 | |
37005 | _ACEOF | |
37006 | ||
37007 | fi | |
37008 | ||
37009 | if test "$wxUSE_IFF" = "yes" ; then | |
37010 | cat >>confdefs.h <<\_ACEOF | |
37011 | #define wxUSE_IFF 1 | |
37012 | _ACEOF | |
37013 | ||
37014 | fi | |
37015 | ||
37016 | if test "$wxUSE_PNM" = "yes" ; then | |
37017 | cat >>confdefs.h <<\_ACEOF | |
37018 | #define wxUSE_PNM 1 | |
37019 | _ACEOF | |
37020 | ||
37021 | fi | |
37022 | ||
37023 | if test "$wxUSE_XPM" = "yes" ; then | |
37024 | cat >>confdefs.h <<\_ACEOF | |
37025 | #define wxUSE_XPM 1 | |
37026 | _ACEOF | |
37027 | ||
37028 | fi | |
37029 | ||
37030 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37031 | cat >>confdefs.h <<\_ACEOF | |
37032 | #define wxUSE_ICO_CUR 1 | |
37033 | _ACEOF | |
37034 | ||
37035 | fi | |
37036 | fi | |
37037 | ||
37038 | ||
37039 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37040 | cat >>confdefs.h <<\_ACEOF | |
37041 | #define wxUSE_CHOICEDLG 1 | |
37042 | _ACEOF | |
37043 | ||
37044 | fi | |
37045 | ||
37046 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37047 | cat >>confdefs.h <<\_ACEOF | |
37048 | #define wxUSE_COLOURDLG 1 | |
37049 | _ACEOF | |
37050 | ||
37051 | fi | |
37052 | ||
37053 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37054 | cat >>confdefs.h <<\_ACEOF | |
37055 | #define wxUSE_FILEDLG 1 | |
37056 | _ACEOF | |
37057 | ||
37058 | fi | |
37059 | ||
37060 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37061 | cat >>confdefs.h <<\_ACEOF | |
37062 | #define wxUSE_FINDREPLDLG 1 | |
37063 | _ACEOF | |
37064 | ||
37065 | fi | |
37066 | ||
37067 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37068 | cat >>confdefs.h <<\_ACEOF | |
37069 | #define wxUSE_FONTDLG 1 | |
37070 | _ACEOF | |
37071 | ||
37072 | fi | |
37073 | ||
37074 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37075 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37076 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37077 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37078 | else | |
37079 | cat >>confdefs.h <<\_ACEOF | |
37080 | #define wxUSE_DIRDLG 1 | |
37081 | _ACEOF | |
37082 | ||
37083 | fi | |
37084 | fi | |
37085 | ||
37086 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37087 | cat >>confdefs.h <<\_ACEOF | |
37088 | #define wxUSE_MSGDLG 1 | |
37089 | _ACEOF | |
37090 | ||
37091 | fi | |
37092 | ||
37093 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37094 | cat >>confdefs.h <<\_ACEOF | |
37095 | #define wxUSE_NUMBERDLG 1 | |
37096 | _ACEOF | |
37097 | ||
37098 | fi | |
37099 | ||
37100 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37101 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37102 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37103 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37104 | else | |
37105 | cat >>confdefs.h <<\_ACEOF | |
37106 | #define wxUSE_PROGRESSDLG 1 | |
37107 | _ACEOF | |
37108 | ||
37109 | fi | |
37110 | fi | |
37111 | ||
37112 | if test "$wxUSE_SPLASH" = "yes"; then | |
37113 | cat >>confdefs.h <<\_ACEOF | |
37114 | #define wxUSE_SPLASH 1 | |
37115 | _ACEOF | |
37116 | ||
2057db16 | 37117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37118 | fi |
37119 | ||
37120 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37121 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37122 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37123 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37124 | else | |
37125 | cat >>confdefs.h <<\_ACEOF | |
37126 | #define wxUSE_STARTUP_TIPS 1 | |
37127 | _ACEOF | |
37128 | ||
37129 | fi | |
37130 | fi | |
37131 | ||
37132 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37133 | cat >>confdefs.h <<\_ACEOF | |
37134 | #define wxUSE_TEXTDLG 1 | |
37135 | _ACEOF | |
37136 | ||
37137 | fi | |
37138 | ||
37139 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37140 | cat >>confdefs.h <<\_ACEOF | |
37141 | #define wxUSE_WIZARDDLG 1 | |
37142 | _ACEOF | |
37143 | ||
37144 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37145 | fi | |
37146 | ||
37147 | ||
37148 | if test "$cross_compiling" = "yes"; then | |
37149 | OSINFO="\"$host\"" | |
37150 | else | |
37151 | OSINFO=`uname -s -r -m` | |
37152 | OSINFO="\"$OSINFO\"" | |
37153 | fi | |
37154 | ||
37155 | cat >>confdefs.h <<_ACEOF | |
37156 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37157 | _ACEOF | |
37158 | ||
37159 | ||
37160 | ||
37161 | if test "x$prefix" != "xNONE"; then | |
37162 | wxPREFIX=$prefix | |
37163 | else | |
37164 | wxPREFIX=$ac_default_prefix | |
37165 | fi | |
37166 | ||
37167 | cat >>confdefs.h <<_ACEOF | |
37168 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37169 | _ACEOF | |
37170 | ||
37171 | ||
a848cd7e SC |
37172 | |
37173 | ||
37174 | CORE_BASE_LIBS="net base" | |
37175 | CORE_GUI_LIBS="adv core" | |
37176 | ||
37177 | if test "$wxUSE_XML" = "yes" ; then | |
37178 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37179 | fi | |
37180 | if test "$wxUSE_ODBC" != "no" ; then | |
37181 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37182 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37183 | fi | |
37184 | if test "$wxUSE_HTML" = "yes" ; then | |
37185 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37186 | fi | |
9a8f0513 VS |
37187 | if test "$wxUSE_XRC" = "yes" ; then |
37188 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37189 | fi | |
a848cd7e SC |
37190 | |
37191 | if test "$wxUSE_GUI" != "yes"; then | |
37192 | CORE_GUI_LIBS="" | |
37193 | fi | |
37194 | ||
37195 | ||
37196 | ||
37197 | ||
37198 | ||
37199 | ||
37200 | ||
37201 | ||
37202 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37203 | if test "$wxUSE_SOUND" = "yes"; then |
37204 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37205 | fi | |
5dcf30a0 RN |
37206 | if test "$USE_DARWIN" = 1; then |
37207 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37208 | fi | |
07bea8f0 | 37209 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37210 | fi |
37211 | if test "$wxUSE_COCOA" = 1 ; then | |
37212 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
37213 | fi | |
37214 | ||
37215 | ||
37216 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37217 | ||
37218 | have_cos=0 | |
37219 | have_floor=0 | |
37220 | ||
37221 | for ac_func in cos | |
37222 | do | |
37223 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37224 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37225 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37226 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37228 | else | |
37229 | cat >conftest.$ac_ext <<_ACEOF | |
37230 | /* confdefs.h. */ | |
37231 | _ACEOF | |
37232 | cat confdefs.h >>conftest.$ac_ext | |
37233 | cat >>conftest.$ac_ext <<_ACEOF | |
37234 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37237 | #define $ac_func innocuous_$ac_func | |
37238 | ||
a848cd7e SC |
37239 | /* System header to define __stub macros and hopefully few prototypes, |
37240 | which can conflict with char $ac_func (); below. | |
37241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37242 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37243 | |
a848cd7e SC |
37244 | #ifdef __STDC__ |
37245 | # include <limits.h> | |
37246 | #else | |
37247 | # include <assert.h> | |
37248 | #endif | |
ac1cb8d3 VS |
37249 | |
37250 | #undef $ac_func | |
37251 | ||
a848cd7e SC |
37252 | /* Override any gcc2 internal prototype to avoid an error. */ |
37253 | #ifdef __cplusplus | |
37254 | extern "C" | |
37255 | { | |
37256 | #endif | |
37257 | /* We use char because int might match the return type of a gcc2 | |
37258 | builtin and then its argument prototype would still apply. */ | |
37259 | char $ac_func (); | |
37260 | /* The GNU C library defines this for functions which it implements | |
37261 | to always fail with ENOSYS. Some functions are actually named | |
37262 | something starting with __ and the normal name is an alias. */ | |
37263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37264 | choke me | |
37265 | #else | |
37266 | char (*f) () = $ac_func; | |
37267 | #endif | |
37268 | #ifdef __cplusplus | |
37269 | } | |
37270 | #endif | |
37271 | ||
37272 | int | |
37273 | main () | |
37274 | { | |
37275 | return f != $ac_func; | |
37276 | ; | |
37277 | return 0; | |
37278 | } | |
37279 | _ACEOF | |
37280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37282 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37283 | ac_status=$? |
ac1cb8d3 VS |
37284 | grep -v '^ *+' conftest.er1 >conftest.err |
37285 | rm -f conftest.er1 | |
37286 | cat conftest.err >&5 | |
a848cd7e SC |
37287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37288 | (exit $ac_status); } && | |
7714864e | 37289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37291 | (eval $ac_try) 2>&5 | |
37292 | ac_status=$? | |
37293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37294 | (exit $ac_status); }; } && | |
37295 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37297 | (eval $ac_try) 2>&5 | |
37298 | ac_status=$? | |
37299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37300 | (exit $ac_status); }; }; then | |
37301 | eval "$as_ac_var=yes" | |
37302 | else | |
37303 | echo "$as_me: failed program was:" >&5 | |
37304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37305 | ||
37306 | eval "$as_ac_var=no" | |
37307 | fi | |
ac1cb8d3 VS |
37308 | rm -f conftest.err conftest.$ac_objext \ |
37309 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37310 | fi |
37311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37312 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37313 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37314 | cat >>confdefs.h <<_ACEOF | |
37315 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37316 | _ACEOF | |
37317 | have_cos=1 | |
37318 | fi | |
37319 | done | |
37320 | ||
37321 | ||
37322 | for ac_func in floor | |
37323 | do | |
37324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37325 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37327 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37329 | else | |
37330 | cat >conftest.$ac_ext <<_ACEOF | |
37331 | /* confdefs.h. */ | |
37332 | _ACEOF | |
37333 | cat confdefs.h >>conftest.$ac_ext | |
37334 | cat >>conftest.$ac_ext <<_ACEOF | |
37335 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37338 | #define $ac_func innocuous_$ac_func | |
37339 | ||
a848cd7e SC |
37340 | /* System header to define __stub macros and hopefully few prototypes, |
37341 | which can conflict with char $ac_func (); below. | |
37342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37343 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37344 | |
a848cd7e SC |
37345 | #ifdef __STDC__ |
37346 | # include <limits.h> | |
37347 | #else | |
37348 | # include <assert.h> | |
37349 | #endif | |
ac1cb8d3 VS |
37350 | |
37351 | #undef $ac_func | |
37352 | ||
a848cd7e SC |
37353 | /* Override any gcc2 internal prototype to avoid an error. */ |
37354 | #ifdef __cplusplus | |
37355 | extern "C" | |
37356 | { | |
37357 | #endif | |
37358 | /* We use char because int might match the return type of a gcc2 | |
37359 | builtin and then its argument prototype would still apply. */ | |
37360 | char $ac_func (); | |
37361 | /* The GNU C library defines this for functions which it implements | |
37362 | to always fail with ENOSYS. Some functions are actually named | |
37363 | something starting with __ and the normal name is an alias. */ | |
37364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37365 | choke me | |
37366 | #else | |
37367 | char (*f) () = $ac_func; | |
37368 | #endif | |
37369 | #ifdef __cplusplus | |
37370 | } | |
37371 | #endif | |
37372 | ||
37373 | int | |
37374 | main () | |
37375 | { | |
37376 | return f != $ac_func; | |
37377 | ; | |
37378 | return 0; | |
37379 | } | |
37380 | _ACEOF | |
37381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37383 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37384 | ac_status=$? |
ac1cb8d3 VS |
37385 | grep -v '^ *+' conftest.er1 >conftest.err |
37386 | rm -f conftest.er1 | |
37387 | cat conftest.err >&5 | |
a848cd7e SC |
37388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37389 | (exit $ac_status); } && | |
7714864e | 37390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37392 | (eval $ac_try) 2>&5 | |
37393 | ac_status=$? | |
37394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37395 | (exit $ac_status); }; } && | |
37396 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37398 | (eval $ac_try) 2>&5 | |
37399 | ac_status=$? | |
37400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37401 | (exit $ac_status); }; }; then | |
37402 | eval "$as_ac_var=yes" | |
37403 | else | |
37404 | echo "$as_me: failed program was:" >&5 | |
37405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37406 | ||
37407 | eval "$as_ac_var=no" | |
37408 | fi | |
ac1cb8d3 VS |
37409 | rm -f conftest.err conftest.$ac_objext \ |
37410 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37411 | fi |
37412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37413 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37414 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37415 | cat >>confdefs.h <<_ACEOF | |
37416 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37417 | _ACEOF | |
37418 | have_floor=1 | |
37419 | fi | |
37420 | done | |
37421 | ||
37422 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37423 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37424 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37425 | echo "$as_me:$LINENO: result: yes" >&5 | |
37426 | echo "${ECHO_T}yes" >&6 | |
37427 | else | |
37428 | echo "$as_me:$LINENO: result: no" >&5 | |
37429 | echo "${ECHO_T}no" >&6 | |
37430 | LIBS="$LIBS -lm" | |
37431 | # use different functions to avoid configure caching | |
37432 | have_sin=0 | |
37433 | have_ceil=0 | |
37434 | ||
37435 | for ac_func in sin | |
37436 | do | |
37437 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37438 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37439 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37440 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37442 | else | |
37443 | cat >conftest.$ac_ext <<_ACEOF | |
37444 | /* confdefs.h. */ | |
37445 | _ACEOF | |
37446 | cat confdefs.h >>conftest.$ac_ext | |
37447 | cat >>conftest.$ac_ext <<_ACEOF | |
37448 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37449 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37450 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37451 | #define $ac_func innocuous_$ac_func | |
37452 | ||
a848cd7e SC |
37453 | /* System header to define __stub macros and hopefully few prototypes, |
37454 | which can conflict with char $ac_func (); below. | |
37455 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37456 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37457 | |
a848cd7e SC |
37458 | #ifdef __STDC__ |
37459 | # include <limits.h> | |
37460 | #else | |
37461 | # include <assert.h> | |
37462 | #endif | |
ac1cb8d3 VS |
37463 | |
37464 | #undef $ac_func | |
37465 | ||
a848cd7e SC |
37466 | /* Override any gcc2 internal prototype to avoid an error. */ |
37467 | #ifdef __cplusplus | |
37468 | extern "C" | |
37469 | { | |
37470 | #endif | |
37471 | /* We use char because int might match the return type of a gcc2 | |
37472 | builtin and then its argument prototype would still apply. */ | |
37473 | char $ac_func (); | |
37474 | /* The GNU C library defines this for functions which it implements | |
37475 | to always fail with ENOSYS. Some functions are actually named | |
37476 | something starting with __ and the normal name is an alias. */ | |
37477 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37478 | choke me | |
37479 | #else | |
37480 | char (*f) () = $ac_func; | |
37481 | #endif | |
37482 | #ifdef __cplusplus | |
37483 | } | |
37484 | #endif | |
37485 | ||
37486 | int | |
37487 | main () | |
37488 | { | |
37489 | return f != $ac_func; | |
37490 | ; | |
37491 | return 0; | |
37492 | } | |
37493 | _ACEOF | |
37494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37496 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37497 | ac_status=$? |
ac1cb8d3 VS |
37498 | grep -v '^ *+' conftest.er1 >conftest.err |
37499 | rm -f conftest.er1 | |
37500 | cat conftest.err >&5 | |
a848cd7e SC |
37501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37502 | (exit $ac_status); } && | |
7714864e | 37503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37505 | (eval $ac_try) 2>&5 | |
37506 | ac_status=$? | |
37507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37508 | (exit $ac_status); }; } && | |
37509 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37511 | (eval $ac_try) 2>&5 | |
37512 | ac_status=$? | |
37513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37514 | (exit $ac_status); }; }; then | |
37515 | eval "$as_ac_var=yes" | |
37516 | else | |
37517 | echo "$as_me: failed program was:" >&5 | |
37518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37519 | ||
37520 | eval "$as_ac_var=no" | |
37521 | fi | |
ac1cb8d3 VS |
37522 | rm -f conftest.err conftest.$ac_objext \ |
37523 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37524 | fi |
37525 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37526 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37527 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37528 | cat >>confdefs.h <<_ACEOF | |
37529 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37530 | _ACEOF | |
37531 | have_sin=1 | |
37532 | fi | |
37533 | done | |
37534 | ||
37535 | ||
37536 | for ac_func in ceil | |
37537 | do | |
37538 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37539 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37540 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37541 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37543 | else | |
37544 | cat >conftest.$ac_ext <<_ACEOF | |
37545 | /* confdefs.h. */ | |
37546 | _ACEOF | |
37547 | cat confdefs.h >>conftest.$ac_ext | |
37548 | cat >>conftest.$ac_ext <<_ACEOF | |
37549 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37550 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37552 | #define $ac_func innocuous_$ac_func | |
37553 | ||
a848cd7e SC |
37554 | /* System header to define __stub macros and hopefully few prototypes, |
37555 | which can conflict with char $ac_func (); below. | |
37556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37557 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37558 | |
a848cd7e SC |
37559 | #ifdef __STDC__ |
37560 | # include <limits.h> | |
37561 | #else | |
37562 | # include <assert.h> | |
37563 | #endif | |
ac1cb8d3 VS |
37564 | |
37565 | #undef $ac_func | |
37566 | ||
a848cd7e SC |
37567 | /* Override any gcc2 internal prototype to avoid an error. */ |
37568 | #ifdef __cplusplus | |
37569 | extern "C" | |
37570 | { | |
37571 | #endif | |
37572 | /* We use char because int might match the return type of a gcc2 | |
37573 | builtin and then its argument prototype would still apply. */ | |
37574 | char $ac_func (); | |
37575 | /* The GNU C library defines this for functions which it implements | |
37576 | to always fail with ENOSYS. Some functions are actually named | |
37577 | something starting with __ and the normal name is an alias. */ | |
37578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37579 | choke me | |
37580 | #else | |
37581 | char (*f) () = $ac_func; | |
37582 | #endif | |
37583 | #ifdef __cplusplus | |
37584 | } | |
37585 | #endif | |
37586 | ||
37587 | int | |
37588 | main () | |
37589 | { | |
37590 | return f != $ac_func; | |
37591 | ; | |
37592 | return 0; | |
37593 | } | |
37594 | _ACEOF | |
37595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37598 | ac_status=$? |
ac1cb8d3 VS |
37599 | grep -v '^ *+' conftest.er1 >conftest.err |
37600 | rm -f conftest.er1 | |
37601 | cat conftest.err >&5 | |
a848cd7e SC |
37602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37603 | (exit $ac_status); } && | |
7714864e | 37604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37606 | (eval $ac_try) 2>&5 | |
37607 | ac_status=$? | |
37608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37609 | (exit $ac_status); }; } && | |
37610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37612 | (eval $ac_try) 2>&5 | |
37613 | ac_status=$? | |
37614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37615 | (exit $ac_status); }; }; then | |
37616 | eval "$as_ac_var=yes" | |
37617 | else | |
37618 | echo "$as_me: failed program was:" >&5 | |
37619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37620 | ||
37621 | eval "$as_ac_var=no" | |
37622 | fi | |
ac1cb8d3 VS |
37623 | rm -f conftest.err conftest.$ac_objext \ |
37624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37625 | fi |
37626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37628 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37629 | cat >>confdefs.h <<_ACEOF | |
37630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37631 | _ACEOF | |
37632 | have_ceil=1 | |
37633 | fi | |
37634 | done | |
37635 | ||
37636 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37637 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37638 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37639 | echo "$as_me:$LINENO: result: yes" >&5 | |
37640 | echo "${ECHO_T}yes" >&6 | |
37641 | else | |
37642 | echo "$as_me:$LINENO: result: no" >&5 | |
37643 | echo "${ECHO_T}no" >&6 | |
37644 | # not sure we should warn the user, crash, etc. | |
37645 | fi | |
37646 | fi | |
37647 | ||
37648 | if test "$wxUSE_GUI" = "yes"; then | |
37649 | ||
37650 | ||
37651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37652 | drawing dynamic erase event exec font image \ | |
37653 | minimal propsize rotate shaped widgets render" | |
37654 | ||
37655 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37657 | fi | |
37658 | else | |
37659 | SAMPLES_SUBDIRS="console" | |
37660 | fi | |
37661 | ||
37662 | ||
ceec2216 | 37663 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
37664 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
37665 | ||
37666 | if test "$GXX" = yes ; then | |
37667 | CXXWARNINGS="-Wall" | |
37668 | fi | |
37669 | ||
37670 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37671 | ||
0c3c69fc VS |
37672 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37673 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37674 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37675 | |
37676 | ||
0c3c69fc | 37677 | LIBS=`echo $LIBS` |
a848cd7e SC |
37678 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37679 | EXTRALIBS_XML="$EXPAT_LINK" | |
37680 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37681 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37682 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37683 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37684 | fi |
37685 | if test "$wxUSE_OPENGL" = "yes"; then | |
37686 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37687 | fi | |
37688 | ||
37689 | LDFLAGS="$LDFLAGS $PROFILE" | |
37690 | ||
37691 | if test "$wxUSE_GTK" = 1; then | |
37692 | WXCONFIG_INCLUDE= | |
37693 | else | |
37694 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37695 | fi | |
37696 | ||
37697 | WXCONFIG_EXTRALIBS="$LIBS" | |
37698 | ||
37699 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37700 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37701 | fi | |
37702 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37703 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37704 | fi | |
37705 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37706 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37707 | fi | |
37708 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37709 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37710 | fi | |
37711 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37712 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37713 | fi | |
37714 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37715 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37716 | fi | |
37717 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37718 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37719 | fi | |
37720 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37721 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37722 | fi | |
37723 | ||
37724 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 37725 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
37726 | done |
37727 | ||
37728 | ||
37729 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37730 | WXUNIV=1 | |
37731 | else | |
37732 | WXUNIV=0 | |
37733 | fi | |
37734 | ||
37735 | ||
37736 | ||
37737 | ||
37738 | ||
37739 | ||
37740 | ||
37741 | ||
37742 | ||
37743 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37744 | MONOLITHIC=1 | |
37745 | else | |
37746 | MONOLITHIC=0 | |
37747 | fi | |
37748 | ||
37749 | if test $wxUSE_PLUGINS = "yes" ; then | |
37750 | USE_PLUGINS=1 | |
37751 | else | |
37752 | USE_PLUGINS=0 | |
37753 | fi | |
37754 | ||
37755 | if test $wxUSE_ODBC != "no" ; then | |
37756 | USE_ODBC=1 | |
37757 | else | |
37758 | USE_ODBC=0 | |
37759 | fi | |
37760 | ||
37761 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37762 | OFFICIAL_BUILD=1 | |
37763 | else | |
37764 | OFFICIAL_BUILD=0 | |
37765 | fi | |
37766 | ||
37767 | ||
37768 | ||
37769 | ||
37770 | ||
37771 | ||
37772 | ||
37773 | ||
37774 | ||
37775 | ||
37776 | ||
37777 | ||
37778 | ||
37779 | ||
37780 | ||
37781 | ||
37782 | ||
37783 | ||
37784 | ||
ceec2216 | 37785 | |
a848cd7e SC |
37786 | |
37787 | ||
37788 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37789 | ||
37790 | ||
37791 | ||
37792 | ||
37793 | ||
37794 | ||
37795 | ||
37796 | ||
4d4ff94c VZ |
37797 | case "$TOOLKIT" in |
37798 | GTK) | |
37799 | TOOLKIT_USER="GTK+" | |
37800 | if test "$WXGTK20" = 1; then | |
37801 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
37802 | fi | |
9a8f0513 | 37803 | ;; |
4d4ff94c VZ |
37804 | |
37805 | *) | |
37806 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 37807 | ;; |
4d4ff94c | 37808 | esac |
a848cd7e | 37809 | |
9a8f0513 | 37810 | |
a848cd7e SC |
37811 | if test "x$BAKEFILE_HOST" = "x"; then |
37812 | BAKEFILE_HOST="${host}" | |
37813 | fi | |
37814 | ||
37815 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37816 | ||
37817 | if test -n "$ac_tool_prefix"; then | |
37818 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37819 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37822 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37824 | else | |
37825 | if test -n "$RANLIB"; then | |
37826 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37827 | else | |
37828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37829 | for as_dir in $PATH | |
37830 | do | |
37831 | IFS=$as_save_IFS | |
37832 | test -z "$as_dir" && as_dir=. | |
37833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37835 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37837 | break 2 | |
37838 | fi | |
37839 | done | |
37840 | done | |
37841 | ||
37842 | fi | |
37843 | fi | |
37844 | RANLIB=$ac_cv_prog_RANLIB | |
37845 | if test -n "$RANLIB"; then | |
37846 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37847 | echo "${ECHO_T}$RANLIB" >&6 | |
37848 | else | |
37849 | echo "$as_me:$LINENO: result: no" >&5 | |
37850 | echo "${ECHO_T}no" >&6 | |
37851 | fi | |
37852 | ||
37853 | fi | |
37854 | if test -z "$ac_cv_prog_RANLIB"; then | |
37855 | ac_ct_RANLIB=$RANLIB | |
37856 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37857 | set dummy ranlib; ac_word=$2 | |
37858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37860 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37862 | else | |
37863 | if test -n "$ac_ct_RANLIB"; then | |
37864 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37865 | else | |
37866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37867 | for as_dir in $PATH | |
37868 | do | |
37869 | IFS=$as_save_IFS | |
37870 | test -z "$as_dir" && as_dir=. | |
37871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37873 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37875 | break 2 | |
37876 | fi | |
37877 | done | |
37878 | done | |
37879 | ||
37880 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37881 | fi | |
37882 | fi | |
37883 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37884 | if test -n "$ac_ct_RANLIB"; then | |
37885 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37886 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37887 | else | |
37888 | echo "$as_me:$LINENO: result: no" >&5 | |
37889 | echo "${ECHO_T}no" >&6 | |
37890 | fi | |
37891 | ||
37892 | RANLIB=$ac_ct_RANLIB | |
37893 | else | |
37894 | RANLIB="$ac_cv_prog_RANLIB" | |
37895 | fi | |
37896 | ||
37897 | # Find a good install program. We prefer a C program (faster), | |
37898 | # so one script is as good as another. But avoid the broken or | |
37899 | # incompatible versions: | |
37900 | # SysV /etc/install, /usr/sbin/install | |
37901 | # SunOS /usr/etc/install | |
37902 | # IRIX /sbin/install | |
37903 | # AIX /bin/install | |
37904 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37905 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37906 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37907 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 37908 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
37909 | # ./install, which can be erroneously created by make from ./install.sh. |
37910 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
37911 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
37912 | if test -z "$INSTALL"; then | |
37913 | if test "${ac_cv_path_install+set}" = set; then | |
37914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37915 | else | |
37916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37917 | for as_dir in $PATH | |
37918 | do | |
37919 | IFS=$as_save_IFS | |
37920 | test -z "$as_dir" && as_dir=. | |
37921 | # Account for people who put trailing slashes in PATH elements. | |
37922 | case $as_dir/ in | |
37923 | ./ | .// | /cC/* | \ | |
37924 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 37925 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
37926 | /usr/ucb/* ) ;; |
37927 | *) | |
37928 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37929 | # Don't use installbsd from OSF since it installs stuff as root | |
37930 | # by default. | |
37931 | for ac_prog in ginstall scoinst install; do | |
37932 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
37933 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
37934 | if test $ac_prog = install && | |
37935 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37936 | # AIX install. It has an incompatible calling convention. | |
37937 | : | |
37938 | elif test $ac_prog = install && | |
37939 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37940 | # program-specific install script used by HP pwplus--don't use. | |
37941 | : | |
37942 | else | |
37943 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37944 | break 3 | |
37945 | fi | |
37946 | fi | |
a848cd7e SC |
37947 | done |
37948 | done | |
37949 | ;; | |
37950 | esac | |
37951 | done | |
37952 | ||
37953 | ||
37954 | fi | |
37955 | if test "${ac_cv_path_install+set}" = set; then | |
37956 | INSTALL=$ac_cv_path_install | |
37957 | else | |
37958 | # As a last resort, use the slow shell script. We don't cache a | |
37959 | # path for INSTALL within a source directory, because that will | |
37960 | # break other packages using the cache if that directory is | |
37961 | # removed, or if the path is relative. | |
37962 | INSTALL=$ac_install_sh | |
37963 | fi | |
37964 | fi | |
37965 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
37966 | echo "${ECHO_T}$INSTALL" >&6 | |
37967 | ||
37968 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37969 | # It thinks the first close brace ends the variable substitution. | |
37970 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37971 | ||
37972 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
37973 | ||
37974 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37975 | ||
37976 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
37977 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
37978 | LN_S=$as_ln_s | |
37979 | if test "$LN_S" = "ln -s"; then | |
37980 | echo "$as_me:$LINENO: result: yes" >&5 | |
37981 | echo "${ECHO_T}yes" >&6 | |
37982 | else | |
37983 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
37984 | echo "${ECHO_T}no, using $LN_S" >&6 | |
37985 | fi | |
37986 | ||
37987 | ||
37988 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
37989 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 37990 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
37991 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
37992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37993 | else | |
37994 | cat >conftest.make <<\_ACEOF | |
37995 | all: | |
37996 | @echo 'ac_maketemp="$(MAKE)"' | |
37997 | _ACEOF | |
37998 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
37999 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38000 | if test -n "$ac_maketemp"; then | |
38001 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38002 | else | |
38003 | eval ac_cv_prog_make_${ac_make}_set=no | |
38004 | fi | |
38005 | rm -f conftest.make | |
38006 | fi | |
38007 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38008 | echo "$as_me:$LINENO: result: yes" >&5 | |
38009 | echo "${ECHO_T}yes" >&6 | |
38010 | SET_MAKE= | |
38011 | else | |
38012 | echo "$as_me:$LINENO: result: no" >&5 | |
38013 | echo "${ECHO_T}no" >&6 | |
38014 | SET_MAKE="MAKE=${MAKE-make}" | |
38015 | fi | |
38016 | ||
38017 | ||
38018 | ||
38019 | if test -n "$ac_tool_prefix"; then | |
38020 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38021 | set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then | |
38025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38026 | else | |
38027 | if test -n "$AR"; then | |
38028 | ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar" | |
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 | fi | |
38045 | fi | |
38046 | AR=$ac_cv_prog_AR | |
38047 | if test -n "$AR"; then | |
38048 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38049 | echo "${ECHO_T}$AR" >&6 | |
38050 | else | |
38051 | echo "$as_me:$LINENO: result: no" >&5 | |
38052 | echo "${ECHO_T}no" >&6 | |
38053 | fi | |
38054 | ||
38055 | fi | |
38056 | if test -z "$ac_cv_prog_AR"; then | |
38057 | ac_ct_AR=$AR | |
38058 | # Extract the first word of "ar", so it can be a program name with args. | |
38059 | set dummy ar; ac_word=$2 | |
38060 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38062 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38064 | else | |
38065 | if test -n "$ac_ct_AR"; then | |
38066 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38067 | else | |
38068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38069 | for as_dir in $PATH | |
38070 | do | |
38071 | IFS=$as_save_IFS | |
38072 | test -z "$as_dir" && as_dir=. | |
38073 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38074 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38075 | ac_cv_prog_ac_ct_AR="ar" | |
38076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38077 | break 2 | |
38078 | fi | |
38079 | done | |
38080 | done | |
38081 | ||
38082 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38083 | fi | |
38084 | fi | |
38085 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38086 | if test -n "$ac_ct_AR"; then | |
38087 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38088 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38089 | else | |
38090 | echo "$as_me:$LINENO: result: no" >&5 | |
38091 | echo "${ECHO_T}no" >&6 | |
38092 | fi | |
38093 | ||
38094 | AR=$ac_ct_AR | |
38095 | else | |
38096 | AR="$ac_cv_prog_AR" | |
38097 | fi | |
38098 | ||
38099 | if test -n "$ac_tool_prefix"; then | |
38100 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38101 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38104 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38106 | else | |
38107 | if test -n "$STRIP"; then | |
38108 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38109 | else | |
38110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38111 | for as_dir in $PATH | |
38112 | do | |
38113 | IFS=$as_save_IFS | |
38114 | test -z "$as_dir" && as_dir=. | |
38115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38116 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38117 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38118 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38119 | break 2 | |
38120 | fi | |
38121 | done | |
38122 | done | |
38123 | ||
38124 | fi | |
38125 | fi | |
38126 | STRIP=$ac_cv_prog_STRIP | |
38127 | if test -n "$STRIP"; then | |
38128 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38129 | echo "${ECHO_T}$STRIP" >&6 | |
38130 | else | |
38131 | echo "$as_me:$LINENO: result: no" >&5 | |
38132 | echo "${ECHO_T}no" >&6 | |
38133 | fi | |
38134 | ||
38135 | fi | |
38136 | if test -z "$ac_cv_prog_STRIP"; then | |
38137 | ac_ct_STRIP=$STRIP | |
38138 | # Extract the first word of "strip", so it can be a program name with args. | |
38139 | set dummy strip; ac_word=$2 | |
38140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38142 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38144 | else | |
38145 | if test -n "$ac_ct_STRIP"; then | |
38146 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38147 | else | |
38148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38149 | for as_dir in $PATH | |
38150 | do | |
38151 | IFS=$as_save_IFS | |
38152 | test -z "$as_dir" && as_dir=. | |
38153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38154 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38155 | ac_cv_prog_ac_ct_STRIP="strip" | |
38156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38157 | break 2 | |
38158 | fi | |
38159 | done | |
38160 | done | |
38161 | ||
38162 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38163 | fi | |
38164 | fi | |
38165 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38166 | if test -n "$ac_ct_STRIP"; then | |
38167 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38168 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38169 | else | |
38170 | echo "$as_me:$LINENO: result: no" >&5 | |
38171 | echo "${ECHO_T}no" >&6 | |
38172 | fi | |
38173 | ||
38174 | STRIP=$ac_ct_STRIP | |
38175 | else | |
38176 | STRIP="$ac_cv_prog_STRIP" | |
38177 | fi | |
38178 | ||
38179 | if test -n "$ac_tool_prefix"; then | |
38180 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38181 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38184 | if test "${ac_cv_prog_NM+set}" = set; then | |
38185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38186 | else | |
38187 | if test -n "$NM"; then | |
38188 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38189 | else | |
38190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38191 | for as_dir in $PATH | |
38192 | do | |
38193 | IFS=$as_save_IFS | |
38194 | test -z "$as_dir" && as_dir=. | |
38195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38197 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38199 | break 2 | |
38200 | fi | |
38201 | done | |
38202 | done | |
38203 | ||
38204 | fi | |
38205 | fi | |
38206 | NM=$ac_cv_prog_NM | |
38207 | if test -n "$NM"; then | |
38208 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38209 | echo "${ECHO_T}$NM" >&6 | |
38210 | else | |
38211 | echo "$as_me:$LINENO: result: no" >&5 | |
38212 | echo "${ECHO_T}no" >&6 | |
38213 | fi | |
38214 | ||
38215 | fi | |
38216 | if test -z "$ac_cv_prog_NM"; then | |
38217 | ac_ct_NM=$NM | |
38218 | # Extract the first word of "nm", so it can be a program name with args. | |
38219 | set dummy nm; ac_word=$2 | |
38220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38222 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38224 | else | |
38225 | if test -n "$ac_ct_NM"; then | |
38226 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38227 | else | |
38228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38229 | for as_dir in $PATH | |
38230 | do | |
38231 | IFS=$as_save_IFS | |
38232 | test -z "$as_dir" && as_dir=. | |
38233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38235 | ac_cv_prog_ac_ct_NM="nm" | |
38236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38237 | break 2 | |
38238 | fi | |
38239 | done | |
38240 | done | |
38241 | ||
38242 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38243 | fi | |
38244 | fi | |
38245 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38246 | if test -n "$ac_ct_NM"; then | |
38247 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38248 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38249 | else | |
38250 | echo "$as_me:$LINENO: result: no" >&5 | |
38251 | echo "${ECHO_T}no" >&6 | |
38252 | fi | |
38253 | ||
38254 | NM=$ac_ct_NM | |
38255 | else | |
38256 | NM="$ac_cv_prog_NM" | |
38257 | fi | |
38258 | ||
38259 | ||
38260 | case ${BAKEFILE_HOST} in | |
38261 | *-hp-hpux* ) | |
ecd16d74 | 38262 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38263 | ;; |
38264 | *) INSTALL_DIR="$INSTALL -d" | |
38265 | ;; | |
38266 | esac | |
38267 | ||
38268 | ||
38269 | LDFLAGS_GUI= | |
38270 | case ${BAKEFILE_HOST} in | |
38271 | *-*-cygwin* | *-*-mingw32* ) | |
38272 | LDFLAGS_GUI="-mwindows" | |
38273 | esac | |
38274 | ||
38275 | ||
38276 | fi | |
38277 | ||
38278 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38279 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38280 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38282 | else | |
38283 | ||
38284 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38285 | egrep -s GNU > /dev/null); then | |
38286 | bakefile_cv_prog_makeisgnu="yes" | |
38287 | else | |
38288 | bakefile_cv_prog_makeisgnu="no" | |
38289 | fi | |
38290 | ||
38291 | fi | |
38292 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38293 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38294 | ||
38295 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38296 | IF_GNU_MAKE="" | |
38297 | else | |
38298 | IF_GNU_MAKE="#" | |
38299 | fi | |
38300 | ||
38301 | ||
38302 | ||
38303 | PLATFORM_UNIX=0 | |
38304 | PLATFORM_WIN32=0 | |
38305 | PLATFORM_MSDOS=0 | |
38306 | PLATFORM_MAC=0 | |
38307 | PLATFORM_MACOSX=0 | |
38308 | PLATFORM_OS2=0 | |
38309 | ||
38310 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38311 | case "${BAKEFILE_HOST}" in | |
38312 | *-*-cygwin* | *-*-mingw32* ) | |
38313 | PLATFORM_WIN32=1 | |
38314 | ;; | |
38315 | *-pc-msdosdjgpp ) | |
38316 | PLATFORM_MSDOS=1 | |
38317 | ;; | |
38318 | *-pc-os2_emx | *-pc-os2-emx ) | |
38319 | PLATFORM_OS2=1 | |
38320 | ;; | |
38321 | powerpc-*-darwin* ) | |
38322 | PLATFORM_MAC=1 | |
38323 | PLATFORM_MACOSX=1 | |
38324 | ;; | |
38325 | * ) | |
38326 | PLATFORM_UNIX=1 | |
38327 | ;; | |
38328 | esac | |
38329 | else | |
38330 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38331 | win32 ) | |
38332 | PLATFORM_WIN32=1 | |
38333 | ;; | |
38334 | msdos ) | |
38335 | PLATFORM_MSDOS=1 | |
38336 | ;; | |
38337 | os2 ) | |
38338 | PLATFORM_OS2=1 | |
38339 | ;; | |
38340 | darwin ) | |
38341 | PLATFORM_MAC=1 | |
38342 | PLATFORM_MACOSX=1 | |
38343 | ;; | |
38344 | unix ) | |
38345 | PLATFORM_UNIX=1 | |
38346 | ;; | |
38347 | * ) | |
38348 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38349 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38350 | { (exit 1); exit 1; }; } | |
38351 | ;; | |
38352 | esac | |
38353 | fi | |
38354 | ||
38355 | ||
38356 | ||
38357 | ||
38358 | ||
38359 | ||
38360 | ||
38361 | ||
38362 | ||
38363 | # Check whether --enable-omf or --disable-omf was given. | |
38364 | if test "${enable_omf+set}" = set; then | |
38365 | enableval="$enable_omf" | |
38366 | bk_os2_use_omf="$enableval" | |
38367 | fi; | |
38368 | ||
38369 | case "${BAKEFILE_HOST}" in | |
38370 | *-*-darwin* ) | |
38371 | CFLAGS="$CFLAGS -fno-common" | |
38372 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38373 | ;; | |
38374 | ||
38375 | *-pc-os2_emx | *-pc-os2-emx ) | |
38376 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38377 | AR=emxomfar | |
38378 | RANLIB=: | |
38379 | LDFLAGS="-Zomf $LDFLAGS" | |
38380 | CFLAGS="-Zomf $CFLAGS" | |
38381 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38382 | OS2_LIBEXT="lib" | |
38383 | else | |
38384 | OS2_LIBEXT="a" | |
38385 | fi | |
38386 | ;; | |
38387 | esac | |
38388 | ||
38389 | ||
38390 | SO_SUFFIX="so" | |
38391 | SO_SUFFIX_MODULE="so" | |
38392 | EXEEXT="" | |
38393 | LIBPREFIX="lib" | |
38394 | LIBEXT=".a" | |
38395 | DLLPREFIX="lib" | |
38396 | DLLPREFIX_MODULE="" | |
38397 | DLLIMP_SUFFIX="" | |
38398 | ||
38399 | case "${BAKEFILE_HOST}" in | |
38400 | *-hp-hpux* ) | |
38401 | SO_SUFFIX="sl" | |
38402 | SO_SUFFIX_MODULE="sl" | |
38403 | ;; | |
38404 | *-*-aix* ) | |
38405 | SO_SUFFIX="a" | |
38406 | SO_SUFFIX_MODULE="a" | |
38407 | ;; | |
38408 | *-*-cygwin* | *-*-mingw32* ) | |
38409 | SO_SUFFIX="dll" | |
38410 | SO_SUFFIX_MODULE="dll" | |
38411 | DLLIMP_SUFFIX="dll.a" | |
38412 | EXEEXT=".exe" | |
38413 | DLLPREFIX="" | |
38414 | ;; | |
38415 | *-pc-msdosdjgpp ) | |
38416 | EXEEXT=".exe" | |
38417 | DLLPREFIX="" | |
38418 | ;; | |
38419 | *-pc-os2_emx | *-pc-os2-emx ) | |
38420 | SO_SUFFIX="dll" | |
38421 | SO_SUFFIX_MODULE="dll" | |
38422 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38423 | EXEEXT=".exe" | |
38424 | DLLPREFIX="" | |
38425 | LIBPREFIX="" | |
38426 | LIBEXT=".$OS2_LIBEXT" | |
38427 | ;; | |
38428 | powerpc-*-darwin* ) | |
38429 | SO_SUFFIX="dylib" | |
38430 | SO_SUFFIX_MODULE="bundle" | |
38431 | ;; | |
38432 | esac | |
38433 | ||
38434 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38435 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38436 | fi | |
38437 | ||
38438 | ||
38439 | ||
38440 | ||
38441 | ||
38442 | ||
38443 | ||
38444 | ||
38445 | ||
38446 | ||
38447 | ||
38448 | SHARED_LD_CC="\$(CC) -shared -o" | |
38449 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38450 | ||
38451 | if test "x$GCC" = "xyes"; then | |
38452 | PIC_FLAG="-fPIC" | |
38453 | fi | |
38454 | ||
38455 | case "${BAKEFILE_HOST}" in | |
38456 | *-hp-hpux* ) | |
38457 | if test "x$GCC" = "xyes"; then | |
38458 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38459 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38460 | else | |
38461 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38462 | ||
38463 | SHARED_LD_CC="${CC} -b -o" | |
38464 | SHARED_LD_CXX="${CXX} -b -o" | |
38465 | PIC_FLAG="+Z" | |
38466 | fi | |
38467 | ;; | |
38468 | ||
38469 | *-*-linux* ) | |
38470 | if test "x$GCC" != "xyes"; then | |
38471 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38472 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38473 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38475 | else | |
38476 | ||
38477 | cat >conftest.$ac_ext <<_ACEOF | |
38478 | /* confdefs.h. */ | |
38479 | _ACEOF | |
38480 | cat confdefs.h >>conftest.$ac_ext | |
38481 | cat >>conftest.$ac_ext <<_ACEOF | |
38482 | /* end confdefs.h. */ | |
38483 | ||
38484 | int | |
38485 | main () | |
38486 | { | |
38487 | ||
38488 | #ifndef __INTEL_COMPILER | |
38489 | #error Not icc | |
38490 | #endif | |
38491 | ||
38492 | ; | |
38493 | return 0; | |
38494 | } | |
38495 | _ACEOF | |
38496 | rm -f conftest.$ac_objext | |
38497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38498 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38499 | ac_status=$? |
ac1cb8d3 VS |
38500 | grep -v '^ *+' conftest.er1 >conftest.err |
38501 | rm -f conftest.er1 | |
38502 | cat conftest.err >&5 | |
a848cd7e SC |
38503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38504 | (exit $ac_status); } && | |
7714864e | 38505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38507 | (eval $ac_try) 2>&5 | |
38508 | ac_status=$? | |
38509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38510 | (exit $ac_status); }; } && | |
38511 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38513 | (eval $ac_try) 2>&5 | |
38514 | ac_status=$? | |
38515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38516 | (exit $ac_status); }; }; then | |
38517 | bakefile_cv_prog_icc=yes | |
38518 | else | |
38519 | echo "$as_me: failed program was:" >&5 | |
38520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38521 | ||
38522 | bakefile_cv_prog_icc=no | |
38523 | ||
38524 | fi | |
ac1cb8d3 | 38525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38526 | |
38527 | fi | |
38528 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38529 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38530 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38531 | PIC_FLAG="-KPIC" | |
38532 | fi | |
38533 | fi | |
38534 | ;; | |
38535 | ||
38536 | *-*-solaris2* ) | |
38537 | if test "x$GCC" != xyes ; then | |
38538 | SHARED_LD_CC="${CC} -G -o" | |
38539 | SHARED_LD_CXX="${CXX} -G -o" | |
38540 | PIC_FLAG="-KPIC" | |
38541 | fi | |
38542 | ;; | |
38543 | ||
38544 | *-*-darwin* ) | |
38545 | ||
38546 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38547 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38548 | if test "${wx_cv_gcc31+set}" = set; then | |
38549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38550 | else | |
38551 | ||
38552 | cat >conftest.$ac_ext <<_ACEOF | |
38553 | /* confdefs.h. */ | |
38554 | _ACEOF | |
38555 | cat confdefs.h >>conftest.$ac_ext | |
38556 | cat >>conftest.$ac_ext <<_ACEOF | |
38557 | /* end confdefs.h. */ | |
38558 | ||
38559 | int | |
38560 | main () | |
38561 | { | |
38562 | ||
38563 | #if (__GNUC__ < 3) || \ | |
38564 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38565 | #error old gcc | |
38566 | #endif | |
38567 | ||
38568 | ; | |
38569 | return 0; | |
38570 | } | |
38571 | _ACEOF | |
38572 | rm -f conftest.$ac_objext | |
38573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38574 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38575 | ac_status=$? |
ac1cb8d3 VS |
38576 | grep -v '^ *+' conftest.er1 >conftest.err |
38577 | rm -f conftest.er1 | |
38578 | cat conftest.err >&5 | |
a848cd7e SC |
38579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38580 | (exit $ac_status); } && | |
7714864e | 38581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38583 | (eval $ac_try) 2>&5 | |
38584 | ac_status=$? | |
38585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38586 | (exit $ac_status); }; } && | |
38587 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38589 | (eval $ac_try) 2>&5 | |
38590 | ac_status=$? | |
38591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38592 | (exit $ac_status); }; }; then | |
38593 | ||
38594 | wx_cv_gcc31=yes | |
38595 | ||
38596 | else | |
38597 | echo "$as_me: failed program was:" >&5 | |
38598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38599 | ||
38600 | ||
38601 | wx_cv_gcc31=no | |
38602 | ||
38603 | ||
38604 | fi | |
ac1cb8d3 | 38605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38606 | |
38607 | fi | |
38608 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38609 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38610 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38611 | |
38612 | D='$' | |
38613 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38614 | #!/bin/sh |
38615 | #----------------------------------------------------------------------------- | |
38616 | #-- Name: distrib/mac/shared-ld-sh | |
38617 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38618 | #-- Author: Gilles Depeyrot | |
38619 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38620 | #-- Licence: any use permitted | |
38621 | #----------------------------------------------------------------------------- | |
38622 | ||
38623 | verbose=0 | |
38624 | args="" | |
38625 | objects="" | |
38626 | linking_flag="-dynamiclib" | |
38627 | ||
473276a9 VS |
38628 | while test ${D}# -gt 0; do |
38629 | case ${D}1 in | |
a848cd7e SC |
38630 | |
38631 | -v) | |
38632 | verbose=1 | |
38633 | ;; | |
38634 | ||
38635 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38636 | # collect these options and values | |
473276a9 | 38637 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38638 | shift |
38639 | ;; | |
38640 | ||
38641 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38642 | # collect these options | |
473276a9 | 38643 | args="${D}{args} ${D}1" |
a848cd7e SC |
38644 | ;; |
38645 | ||
38646 | -dynamiclib|-bundle) | |
473276a9 | 38647 | linking_flag="${D}1" |
a848cd7e SC |
38648 | ;; |
38649 | ||
38650 | -*) | |
473276a9 | 38651 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38652 | exit 1 |
38653 | ;; | |
38654 | ||
38655 | *.o | *.a | *.dylib) | |
38656 | # collect object files | |
473276a9 | 38657 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38658 | ;; |
38659 | ||
38660 | *) | |
473276a9 | 38661 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38662 | exit 1 |
38663 | ;; | |
38664 | ||
38665 | esac | |
38666 | shift | |
38667 | done | |
38668 | ||
38669 | # | |
38670 | # Link one module containing all the others | |
38671 | # | |
473276a9 VS |
38672 | if test ${D}{verbose} = 1; then |
38673 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38674 | fi |
473276a9 VS |
38675 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38676 | status=${D}? | |
38677 | if test ${D}{status} != 0; then | |
38678 | exit ${D}{status} | |
a848cd7e SC |
38679 | fi |
38680 | ||
38681 | # | |
38682 | # Link the shared library from the single module created | |
38683 | # | |
473276a9 VS |
38684 | if test ${D}{verbose} = 1; then |
38685 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38686 | fi |
473276a9 VS |
38687 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38688 | status=${D}? | |
38689 | if test ${D}{status} != 0; then | |
38690 | exit ${D}{status} | |
a848cd7e SC |
38691 | fi |
38692 | ||
38693 | # | |
38694 | # Remove intermediate module | |
38695 | # | |
473276a9 | 38696 | rm -f master.${D}${D}.o |
a848cd7e SC |
38697 | |
38698 | exit 0 | |
38699 | EOF | |
473276a9 | 38700 | |
a848cd7e SC |
38701 | chmod +x shared-ld-sh |
38702 | ||
38703 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38704 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38705 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38706 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38707 | else | |
38708 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38709 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38710 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38711 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38712 | fi | |
38713 | ||
38714 | PIC_FLAG="-dynamic -fPIC" | |
38715 | ;; | |
38716 | ||
38717 | *-*-aix* ) | |
38718 | if test "x$GCC" != "xyes"; then | |
38719 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38720 | set dummy makeC++SharedLib; ac_word=$2 | |
38721 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38722 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38723 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38725 | else | |
38726 | if test -n "$AIX_CXX_LD"; then | |
38727 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38728 | else | |
38729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38730 | for as_dir in $PATH | |
38731 | do | |
38732 | IFS=$as_save_IFS | |
38733 | test -z "$as_dir" && as_dir=. | |
38734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38735 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38736 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38737 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38738 | break 2 | |
38739 | fi | |
38740 | done | |
38741 | done | |
38742 | ||
38743 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38744 | fi | |
38745 | fi | |
38746 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38747 | if test -n "$AIX_CXX_LD"; then | |
38748 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38749 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38750 | else | |
38751 | echo "$as_me:$LINENO: result: no" >&5 | |
38752 | echo "${ECHO_T}no" >&6 | |
38753 | fi | |
38754 | ||
38755 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38756 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38757 | fi | |
38758 | ;; | |
38759 | ||
38760 | *-*-beos* ) | |
38761 | SHARED_LD_CC="${LD} -shared -o" | |
38762 | SHARED_LD_CXX="${LD} -shared -o" | |
38763 | ;; | |
38764 | ||
38765 | *-*-irix* ) | |
38766 | if test "x$GCC" != "xyes"; then | |
38767 | PIC_FLAG="-KPIC" | |
38768 | fi | |
38769 | ;; | |
38770 | ||
38771 | *-*-cygwin* | *-*-mingw32* ) | |
38772 | PIC_FLAG="" | |
38773 | ;; | |
38774 | ||
38775 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38776 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38777 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38778 | PIC_FLAG="" |
473276a9 VS |
38779 | |
38780 | D='$' | |
38781 | cat <<EOF >dllar.sh | |
38782 | #!/bin/sh | |
38783 | # | |
38784 | # dllar - a tool to build both a .dll and an .a file | |
38785 | # from a set of object (.o) files for EMX/OS2. | |
38786 | # | |
38787 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38788 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38789 | # | |
38790 | # This script will accept a set of files on the command line. | |
38791 | # All the public symbols from the .o files will be exported into | |
38792 | # a .DEF file, then linker will be run (through gcc) against them to | |
38793 | # build a shared library consisting of all given .o files. All libraries | |
38794 | # (.a) will be first decompressed into component .o files then act as | |
38795 | # described above. You can optionally give a description (-d "description") | |
38796 | # which will be put into .DLL. To see the list of accepted options (as well | |
38797 | # as command-line format) simply run this program without options. The .DLL | |
38798 | # is built to be imported by name (there is no guarantee that new versions | |
38799 | # of the library you build will have same ordinals for same symbols). | |
38800 | # | |
38801 | # dllar is free software; you can redistribute it and/or modify | |
38802 | # it under the terms of the GNU General Public License as published by | |
38803 | # the Free Software Foundation; either version 2, or (at your option) | |
38804 | # any later version. | |
38805 | # | |
38806 | # dllar is distributed in the hope that it will be useful, | |
38807 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38808 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38809 | # GNU General Public License for more details. | |
38810 | # | |
38811 | # You should have received a copy of the GNU General Public License | |
38812 | # along with dllar; see the file COPYING. If not, write to the Free | |
38813 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38814 | # 02111-1307, USA. | |
38815 | ||
38816 | # To successfuly run this program you will need: | |
38817 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38818 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38819 | # - gcc | |
38820 | # (used to build the .dll) | |
38821 | # - emxexp | |
38822 | # (used to create .def file from .o files) | |
38823 | # - emximp | |
38824 | # (used to create .a file from .def file) | |
38825 | # - GNU text utilites (cat, sort, uniq) | |
38826 | # used to process emxexp output | |
38827 | # - GNU file utilities (mv, rm) | |
38828 | # - GNU sed | |
38829 | # - lxlite (optional, see flag below) | |
38830 | # (used for general .dll cleanup) | |
38831 | # | |
38832 | ||
38833 | flag_USE_LXLITE=1; | |
38834 | ||
38835 | # | |
38836 | # helper functions | |
38837 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38838 | # second argument (suffix to remove) is given | |
38839 | basnam(){ | |
38840 | case ${D}# in | |
38841 | 1) | |
38842 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38843 | ;; | |
38844 | 2) | |
38845 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38846 | ;; | |
38847 | *) | |
38848 | echo "error in basnam ${D}*" | |
38849 | exit 8 | |
38850 | ;; | |
38851 | esac | |
38852 | } | |
38853 | ||
38854 | # Cleanup temporary files and output | |
38855 | CleanUp() { | |
38856 | cd ${D}curDir | |
38857 | for i in ${D}inputFiles ; do | |
38858 | case ${D}i in | |
38859 | *!) | |
38860 | rm -rf \`basnam ${D}i !\` | |
38861 | ;; | |
38862 | *) | |
38863 | ;; | |
38864 | esac | |
38865 | done | |
38866 | ||
38867 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38868 | # things out there which doesn't do this. | |
2057db16 | 38869 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38870 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38871 | fi | |
38872 | } | |
38873 | ||
38874 | # Print usage and exit script with rc=1. | |
38875 | PrintHelp() { | |
2057db16 VS |
38876 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38877 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38878 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38879 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38880 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38881 | echo '*> "output_file" should have no extension.' |
38882 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38883 | echo ' The import library name is derived from this and is set to "name".a,' | |
38884 | echo ' unless overridden by -import' | |
38885 | echo '*> "importlib_name" should have no extension.' | |
38886 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38887 | echo ' This name is used as the import library name and may be longer and' | |
38888 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38889 | echo ' 8.3 convention of FAT.' | |
38890 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38891 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38892 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
38893 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
38894 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
38895 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
38896 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
38897 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 38898 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 38899 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 38900 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 38901 | echo ' C runtime DLLs.' |
2057db16 | 38902 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
38903 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
38904 | echo ' unchanged to GCC at the end of command line.' | |
38905 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
38906 | echo ' the basename for DLL and import library will be set to library name,' | |
38907 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
38908 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
38909 | echo ' library will be renamed into gcc_s.a.' | |
38910 | echo '--------' | |
38911 | echo 'Example:' | |
38912 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
38913 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
38914 | CleanUp | |
38915 | exit 1 | |
38916 | } | |
38917 | ||
38918 | # Execute a command. | |
38919 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
38920 | # @Uses Whatever CleanUp() uses. | |
38921 | doCommand() { | |
38922 | echo "${D}*" | |
38923 | eval ${D}* | |
38924 | rcCmd=${D}? | |
38925 | ||
2057db16 | 38926 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
38927 | echo "command failed, exit code="${D}rcCmd |
38928 | CleanUp | |
38929 | exit ${D}rcCmd | |
38930 | fi | |
38931 | } | |
38932 | ||
38933 | # main routine | |
38934 | # setup globals | |
38935 | cmdLine=${D}* | |
38936 | outFile="" | |
38937 | outimpFile="" | |
38938 | inputFiles="" | |
38939 | description="" | |
38940 | CC=gcc.exe | |
38941 | CFLAGS="-s -Zcrtdll" | |
38942 | EXTRA_CFLAGS="" | |
38943 | EXPORT_BY_ORDINALS=0 | |
38944 | exclude_symbols="" | |
38945 | library_flags="" | |
38946 | curDir=\`pwd\` | |
38947 | curDirS=curDir | |
38948 | case ${D}curDirS in | |
38949 | */) | |
38950 | ;; | |
38951 | *) | |
38952 | curDirS=${D}{curDirS}"/" | |
38953 | ;; | |
38954 | esac | |
38955 | # Parse commandline | |
38956 | libsToLink=0 | |
2057db16 | 38957 | while [] ${D}1 []; do |
473276a9 VS |
38958 | case ${D}1 in |
38959 | -ord*) | |
38960 | EXPORT_BY_ORDINALS=1; | |
38961 | ;; | |
38962 | -o*) | |
38963 | shift | |
38964 | outFile=${D}1 | |
38965 | ;; | |
38966 | -i*) | |
38967 | shift | |
38968 | outimpFile=${D}1 | |
38969 | ;; | |
38970 | -d*) | |
38971 | shift | |
38972 | description=${D}1 | |
38973 | ;; | |
38974 | -f*) | |
38975 | shift | |
38976 | CFLAGS=${D}1 | |
38977 | ;; | |
38978 | -c*) | |
38979 | shift | |
38980 | CC=${D}1 | |
38981 | ;; | |
38982 | -h*) | |
38983 | PrintHelp | |
38984 | ;; | |
38985 | -ex*) | |
38986 | shift | |
38987 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
38988 | ;; | |
38989 | -libf*) | |
38990 | shift | |
38991 | library_flags=${D}{library_flags}${D}1" " | |
38992 | ;; | |
38993 | -nocrt*) | |
38994 | CFLAGS="-s" | |
38995 | ;; | |
38996 | -nolxl*) | |
38997 | flag_USE_LXLITE=0 | |
38998 | ;; | |
38999 | -* | /*) | |
39000 | case ${D}1 in | |
39001 | -L* | -l*) | |
39002 | libsToLink=1 | |
39003 | ;; | |
39004 | *) | |
39005 | ;; | |
39006 | esac | |
39007 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39008 | ;; | |
39009 | *) | |
39010 | found=0; | |
2057db16 | 39011 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39012 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39013 | else | |
39014 | for file in ${D}1 ; do | |
2057db16 | 39015 | if [] -f ${D}file []; then |
473276a9 VS |
39016 | inputFiles="${D}{inputFiles} ${D}file" |
39017 | found=1 | |
39018 | fi | |
39019 | done | |
2057db16 | 39020 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39021 | echo "ERROR: No file(s) found: "${D}1 |
39022 | exit 8 | |
39023 | fi | |
39024 | fi | |
39025 | ;; | |
39026 | esac | |
39027 | shift | |
39028 | done # iterate cmdline words | |
39029 | ||
39030 | # | |
2057db16 | 39031 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39032 | echo "dllar: no input files" |
39033 | PrintHelp | |
39034 | fi | |
39035 | ||
39036 | # Now extract all .o files from .a files | |
39037 | newInputFiles="" | |
39038 | for file in ${D}inputFiles ; do | |
39039 | case ${D}file in | |
39040 | *.a | *.lib) | |
39041 | case ${D}file in | |
39042 | *.a) | |
39043 | suffix=".a" | |
39044 | AR="ar" | |
39045 | ;; | |
39046 | *.lib) | |
39047 | suffix=".lib" | |
39048 | AR="emxomfar" | |
39049 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39050 | ;; | |
39051 | *) | |
39052 | ;; | |
39053 | esac | |
39054 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39055 | mkdir ${D}dirname | |
2057db16 | 39056 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39057 | echo "Failed to create subdirectory ./${D}dirname" |
39058 | CleanUp | |
39059 | exit 8; | |
39060 | fi | |
39061 | # Append '!' to indicate archive | |
39062 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39063 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39064 | cd ${D}curDir | |
39065 | found=0; | |
39066 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39067 | if [] -f ${D}subfile []; then |
473276a9 | 39068 | found=1 |
2057db16 | 39069 | if [] -s ${D}subfile []; then |
473276a9 VS |
39070 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39071 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39072 | fi | |
39073 | fi | |
39074 | done | |
2057db16 | 39075 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39076 | echo "WARNING: there are no files in archive \'${D}file\'" |
39077 | fi | |
39078 | ;; | |
39079 | *) | |
39080 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39081 | ;; | |
39082 | esac | |
39083 | done | |
39084 | inputFiles="${D}newInputFiles" | |
39085 | ||
39086 | # Output filename(s). | |
39087 | do_backup=0; | |
2057db16 | 39088 | if [] -z ${D}outFile []; then |
473276a9 VS |
39089 | do_backup=1; |
39090 | set outFile ${D}inputFiles; outFile=${D}2 | |
39091 | fi | |
39092 | ||
39093 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39094 | case ${D}outFile in | |
39095 | *_%!) | |
39096 | outFile=\`basnam ${D}outFile _%!\` | |
39097 | ;; | |
39098 | *) | |
39099 | ;; | |
39100 | esac | |
39101 | case ${D}outFile in | |
39102 | *.dll) | |
39103 | outFile=\`basnam ${D}outFile .dll\` | |
39104 | ;; | |
39105 | *.DLL) | |
39106 | outFile=\`basnam ${D}outFile .DLL\` | |
39107 | ;; | |
39108 | *.o) | |
39109 | outFile=\`basnam ${D}outFile .o\` | |
39110 | ;; | |
39111 | *.obj) | |
39112 | outFile=\`basnam ${D}outFile .obj\` | |
39113 | ;; | |
39114 | *.a) | |
39115 | outFile=\`basnam ${D}outFile .a\` | |
39116 | ;; | |
39117 | *.lib) | |
39118 | outFile=\`basnam ${D}outFile .lib\` | |
39119 | ;; | |
39120 | *) | |
39121 | ;; | |
39122 | esac | |
39123 | case ${D}outimpFile in | |
39124 | *.a) | |
39125 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39126 | ;; | |
39127 | *.lib) | |
39128 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39129 | ;; | |
39130 | *) | |
39131 | ;; | |
39132 | esac | |
2057db16 | 39133 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39134 | outimpFile=${D}outFile |
39135 | fi | |
39136 | defFile="${D}{outFile}.def" | |
39137 | arcFile="${D}{outimpFile}.a" | |
39138 | arcFile2="${D}{outimpFile}.lib" | |
39139 | dllFile="${D}outFile" | |
39140 | # Add suffix to dllFile later, first we need a version to use as | |
39141 | # name in .def file. | |
39142 | ||
2057db16 VS |
39143 | if [] ${D}do_backup -ne 0 [] ; then |
39144 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39145 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39146 | fi | |
2057db16 | 39147 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39148 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39149 | fi | |
39150 | fi | |
39151 | ||
39152 | # Extract public symbols from all the object files. | |
39153 | tmpdefFile=${D}{defFile}_% | |
39154 | rm -f ${D}tmpdefFile | |
39155 | for file in ${D}inputFiles ; do | |
39156 | case ${D}file in | |
39157 | *!) | |
39158 | ;; | |
39159 | *) | |
39160 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39161 | ;; | |
39162 | esac | |
39163 | done | |
39164 | ||
39165 | # Create the def file. | |
39166 | rm -f ${D}defFile | |
39167 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39168 | dllFile="${D}dllFile.dll" | |
2057db16 | 39169 | if [] -n ${D}description []; then |
473276a9 VS |
39170 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39171 | fi | |
39172 | echo "EXPORTS" >> ${D}defFile | |
39173 | ||
39174 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39175 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39176 | ||
39177 | # Checks if the export is ok or not. | |
39178 | for word in ${D}exclude_symbols; do | |
39179 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39180 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39181 | done | |
39182 | ||
39183 | ||
2057db16 | 39184 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39185 | sed "=" < ${D}tmpdefFile | \ |
39186 | sed ' | |
39187 | N | |
39188 | : loop | |
2057db16 | 39189 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39190 | t loop |
39191 | ' > ${D}{tmpdefFile}% | |
39192 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39193 | else | |
39194 | rm -f ${D}{tmpdefFile}% | |
39195 | fi | |
39196 | cat ${D}tmpdefFile >> ${D}defFile | |
39197 | rm -f ${D}tmpdefFile | |
39198 | ||
39199 | # Do linking, create implib, and apply lxlite. | |
39200 | gccCmdl=""; | |
39201 | for file in ${D}inputFiles ; do | |
39202 | case ${D}file in | |
39203 | *!) | |
39204 | ;; | |
39205 | *) | |
39206 | gccCmdl="${D}gccCmdl ${D}file" | |
39207 | ;; | |
39208 | esac | |
39209 | done | |
39210 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39211 | touch "${D}{outFile}.dll" | |
39212 | ||
39213 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39214 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39215 | add_flags=""; |
2057db16 | 39216 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39217 | add_flags="-ynd" |
39218 | fi | |
39219 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39220 | fi | |
39221 | doCommand "emxomf -s -l ${D}arcFile" | |
39222 | ||
39223 | # Successful exit. | |
39224 | CleanUp 1 | |
39225 | exit 0 | |
39226 | EOF | |
39227 | ||
39228 | chmod +x dllar.sh | |
a848cd7e SC |
39229 | ;; |
39230 | ||
39231 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39232 | *-*-sunos4* | \ | |
39233 | *-*-osf* | \ | |
39234 | *-*-dgux5* | \ | |
39235 | *-*-sysv5* ) | |
39236 | ;; | |
39237 | ||
39238 | *) | |
39239 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39240 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39241 | { (exit 1); exit 1; }; } | |
39242 | esac | |
39243 | ||
2057db16 VS |
39244 | if test "x$PIC_FLAG" != "x" ; then |
39245 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39246 | fi | |
39247 | ||
a848cd7e SC |
39248 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39249 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39250 | fi | |
39251 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39252 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39253 | fi | |
39254 | ||
39255 | ||
39256 | ||
39257 | ||
39258 | ||
39259 | ||
39260 | ||
39261 | ||
39262 | USE_SOVERSION=0 | |
39263 | USE_SOVERLINUX=0 | |
39264 | USE_SOVERSOLARIS=0 | |
39265 | USE_SOSYMLINKS=0 | |
39266 | USE_MACVERSION=0 | |
39267 | SONAME_FLAG= | |
39268 | ||
39269 | case "${BAKEFILE_HOST}" in | |
39270 | *-*-linux* ) | |
39271 | SONAME_FLAG="-Wl,-soname," | |
39272 | USE_SOVERSION=1 | |
39273 | USE_SOVERLINUX=1 | |
39274 | USE_SOSYMLINKS=1 | |
39275 | ;; | |
39276 | ||
39277 | *-*-solaris2* ) | |
39278 | SONAME_FLAG="-h " | |
39279 | USE_SOVERSION=1 | |
39280 | USE_SOVERSOLARIS=1 | |
39281 | USE_SOSYMLINKS=1 | |
39282 | ;; | |
39283 | ||
39284 | *-*-darwin* ) | |
39285 | USE_MACVERSION=1 | |
39286 | USE_SOVERSION=1 | |
39287 | USE_SOSYMLINKS=1 | |
39288 | ;; | |
39289 | esac | |
39290 | ||
39291 | ||
39292 | ||
39293 | ||
39294 | ||
39295 | ||
39296 | ||
39297 | ||
39298 | ||
39299 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39300 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39301 | DEPS_TRACKING=0 | |
39302 | ||
39303 | if test "x$GCC" = "xyes"; then | |
39304 | DEPSMODE=gcc | |
39305 | DEPS_TRACKING=1 | |
39306 | case "${BAKEFILE_HOST}" in | |
39307 | powerpc-*-darwin* ) | |
39308 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39309 | ;; | |
39310 | * ) | |
39311 | DEPSFLAG_GCC="-MMD" | |
39312 | ;; | |
39313 | esac | |
39314 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39315 | echo "${ECHO_T}gcc" >&6 | |
39316 | else | |
39317 | echo "$as_me:$LINENO: result: none" >&5 | |
39318 | echo "${ECHO_T}none" >&6 | |
39319 | fi | |
39320 | ||
39321 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39322 | |
39323 | D='$' | |
39324 | cat <<EOF >bk-deps | |
a848cd7e SC |
39325 | #!/bin/sh |
39326 | ||
39327 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39328 | # script. It is used to track C/C++ files dependencies in portable way. | |
39329 | # | |
39330 | # Permission is given to use this file in any way. | |
39331 | ||
473276a9 | 39332 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39333 | DEPSDIR=.deps |
473276a9 | 39334 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39335 | |
473276a9 | 39336 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39337 | |
473276a9 VS |
39338 | if test ${D}DEPSMODE = gcc ; then |
39339 | ${D}* ${D}{DEPSFLAG_GCC} | |
39340 | status=${D}? | |
39341 | if test ${D}{status} != 0 ; then | |
39342 | exit ${D}{status} | |
a848cd7e SC |
39343 | fi |
39344 | # move created file to the location we want it in: | |
473276a9 VS |
39345 | while test ${D}# -gt 0; do |
39346 | case "${D}1" in | |
a848cd7e SC |
39347 | -o ) |
39348 | shift | |
473276a9 | 39349 | objfile=${D}1 |
a848cd7e SC |
39350 | ;; |
39351 | -* ) | |
39352 | ;; | |
39353 | * ) | |
473276a9 | 39354 | srcfile=${D}1 |
a848cd7e SC |
39355 | ;; |
39356 | esac | |
39357 | shift | |
39358 | done | |
473276a9 VS |
39359 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39360 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39361 | if test -f ${D}depfile ; then | |
39362 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39363 | rm -f ${D}depfile | |
a848cd7e | 39364 | else |
473276a9 VS |
39365 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39366 | if test -f ${D}depfile ; then | |
39367 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39368 | rm -f ${D}depfile | |
a848cd7e SC |
39369 | fi |
39370 | fi | |
39371 | exit 0 | |
39372 | else | |
473276a9 VS |
39373 | ${D}* |
39374 | exit ${D}? | |
a848cd7e SC |
39375 | fi |
39376 | EOF | |
473276a9 | 39377 | |
a848cd7e SC |
39378 | chmod +x bk-deps |
39379 | fi | |
39380 | ||
39381 | ||
39382 | ||
39383 | ||
39384 | RESCOMP= | |
39385 | SETFILE= | |
39386 | ||
39387 | case ${BAKEFILE_HOST} in | |
39388 | *-*-cygwin* | *-*-mingw32* ) | |
39389 | if test "$build" != "$host" ; then | |
39390 | RESCOMP=$host_alias-windres | |
39391 | else | |
39392 | # Extract the first word of "windres", so it can be a program name with args. | |
39393 | set dummy windres; ac_word=$2 | |
39394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39396 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39398 | else | |
39399 | if test -n "$RESCOMP"; then | |
39400 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39401 | else | |
39402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39403 | for as_dir in $PATH | |
39404 | do | |
39405 | IFS=$as_save_IFS | |
39406 | test -z "$as_dir" && as_dir=. | |
39407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39409 | ac_cv_prog_RESCOMP="windres" | |
39410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39411 | break 2 | |
39412 | fi | |
39413 | done | |
39414 | done | |
39415 | ||
39416 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39417 | fi | |
39418 | fi | |
39419 | RESCOMP=$ac_cv_prog_RESCOMP | |
39420 | if test -n "$RESCOMP"; then | |
39421 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39422 | echo "${ECHO_T}$RESCOMP" >&6 | |
39423 | else | |
39424 | echo "$as_me:$LINENO: result: no" >&5 | |
39425 | echo "${ECHO_T}no" >&6 | |
39426 | fi | |
39427 | ||
39428 | fi | |
39429 | ;; | |
39430 | ||
39431 | *-*-darwin* ) | |
39432 | # Extract the first word of "Rez", so it can be a program name with args. | |
39433 | set dummy Rez; ac_word=$2 | |
39434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39436 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39438 | else | |
39439 | if test -n "$RESCOMP"; then | |
39440 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39441 | else | |
39442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39443 | for as_dir in $PATH | |
39444 | do | |
39445 | IFS=$as_save_IFS | |
39446 | test -z "$as_dir" && as_dir=. | |
39447 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39448 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39449 | ac_cv_prog_RESCOMP="Rez" | |
39450 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39451 | break 2 | |
39452 | fi | |
39453 | done | |
39454 | done | |
39455 | ||
39456 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39457 | fi | |
39458 | fi | |
39459 | RESCOMP=$ac_cv_prog_RESCOMP | |
39460 | if test -n "$RESCOMP"; then | |
39461 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39462 | echo "${ECHO_T}$RESCOMP" >&6 | |
39463 | else | |
39464 | echo "$as_me:$LINENO: result: no" >&5 | |
39465 | echo "${ECHO_T}no" >&6 | |
39466 | fi | |
39467 | ||
39468 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39469 | set dummy SetFile; ac_word=$2 | |
39470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39472 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39474 | else | |
39475 | if test -n "$SETFILE"; then | |
39476 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39477 | else | |
39478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39479 | for as_dir in $PATH | |
39480 | do | |
39481 | IFS=$as_save_IFS | |
39482 | test -z "$as_dir" && as_dir=. | |
39483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39484 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39485 | ac_cv_prog_SETFILE="SetFile" | |
39486 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39487 | break 2 | |
39488 | fi | |
39489 | done | |
39490 | done | |
39491 | ||
39492 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39493 | fi | |
39494 | fi | |
39495 | SETFILE=$ac_cv_prog_SETFILE | |
39496 | if test -n "$SETFILE"; then | |
39497 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39498 | echo "${ECHO_T}$SETFILE" >&6 | |
39499 | else | |
39500 | echo "$as_me:$LINENO: result: no" >&5 | |
39501 | echo "${ECHO_T}no" >&6 | |
39502 | fi | |
39503 | ||
39504 | ;; | |
39505 | esac | |
39506 | ||
39507 | ||
39508 | ||
39509 | ||
39510 | ||
2057db16 | 39511 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39512 | |
dcc1b6ad | 39513 | |
ceec2216 | 39514 | |
9f45f08e | 39515 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39516 | |
646b6ec1 | 39517 | |
74b84332 | 39518 | |
a848cd7e SC |
39519 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39520 | if test "${enable_precomp_headers+set}" = set; then | |
39521 | enableval="$enable_precomp_headers" | |
39522 | bk_use_pch="$enableval" | |
39523 | fi; | |
39524 | ||
39525 | GCC_PCH=0 | |
39526 | ||
39527 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39528 | if test "x$GCC" = "xyes"; then | |
39529 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39530 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39531 | cat >conftest.$ac_ext <<_ACEOF | |
39532 | /* confdefs.h. */ | |
39533 | _ACEOF | |
39534 | cat confdefs.h >>conftest.$ac_ext | |
39535 | cat >>conftest.$ac_ext <<_ACEOF | |
39536 | /* end confdefs.h. */ | |
39537 | ||
39538 | int | |
39539 | main () | |
39540 | { | |
39541 | ||
39542 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39543 | #error "no pch support" | |
39544 | #endif | |
39545 | #if (__GNUC__ < 3) | |
39546 | #error "no pch support" | |
39547 | #endif | |
39548 | #if (__GNUC__ == 3) && \ | |
39549 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39550 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39551 | #error "no pch support" | |
39552 | #endif | |
39553 | ||
39554 | ; | |
39555 | return 0; | |
39556 | } | |
39557 | _ACEOF | |
39558 | rm -f conftest.$ac_objext | |
39559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39560 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39561 | ac_status=$? |
ac1cb8d3 VS |
39562 | grep -v '^ *+' conftest.er1 >conftest.err |
39563 | rm -f conftest.er1 | |
39564 | cat conftest.err >&5 | |
a848cd7e SC |
39565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39566 | (exit $ac_status); } && | |
7714864e | 39567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39569 | (eval $ac_try) 2>&5 | |
39570 | ac_status=$? | |
39571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39572 | (exit $ac_status); }; } && | |
39573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39575 | (eval $ac_try) 2>&5 | |
39576 | ac_status=$? | |
39577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39578 | (exit $ac_status); }; }; then | |
39579 | ||
39580 | echo "$as_me:$LINENO: result: yes" >&5 | |
39581 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39582 | GCC_PCH=1 |
39583 | ||
39584 | else | |
39585 | echo "$as_me: failed program was:" >&5 | |
39586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39587 | ||
39588 | ||
39589 | echo "$as_me:$LINENO: result: no" >&5 | |
39590 | echo "${ECHO_T}no" >&6 | |
39591 | ||
39592 | fi | |
ac1cb8d3 | 39593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39594 | if test $GCC_PCH = 1 ; then |
39595 | cat <<EOF >bk-make-pch | |
39596 | #!/bin/sh | |
39597 | ||
39598 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39599 | # script. It is used to generated precompiled headers. | |
39600 | # | |
39601 | # Permission is given to use this file in any way. | |
39602 | ||
39603 | outfile="\${1}" | |
39604 | header="\${2}" | |
39605 | shift | |
39606 | shift | |
39607 | ||
39608 | compiler= | |
39609 | headerfile= | |
39610 | while test \${#} -gt 0; do | |
39611 | case "\${1}" in | |
39612 | -I* ) | |
39613 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39614 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39615 | headerfile="\${incdir}/\${header}" | |
39616 | fi | |
39617 | ;; | |
39618 | esac | |
39619 | compiler="\${compiler} \${1}" | |
39620 | shift | |
39621 | done | |
39622 | ||
39623 | if test "x\${headerfile}" = "x" ; then | |
39624 | echo "error: can't find header \${header} in include paths" >2 | |
39625 | else | |
39626 | if test -f \${outfile} ; then | |
39627 | rm -f \${outfile} | |
39628 | else | |
39629 | mkdir -p \`dirname \${outfile}\` | |
39630 | fi | |
39631 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39632 | mkdir -p .deps | |
39633 | # can do this because gcc is >= 3.4: | |
39634 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39635 | exit \${?} | |
39636 | fi | |
39637 | EOF | |
39638 | chmod +x bk-make-pch | |
39639 | fi | |
39640 | fi | |
39641 | fi | |
39642 | ||
39643 | ||
39644 | ||
39645 | ||
39646 | ||
dcc1b6ad VS |
39647 | |
39648 | ||
39649 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39650 | if test "${enable_precomp_headers+set}" = set; then | |
39651 | enableval="$enable_precomp_headers" | |
39652 | bk_use_pch="$enableval" | |
39653 | fi; | |
39654 | ||
39655 | GCC_PCH=0 | |
39656 | ||
39657 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39658 | if test "x$GCC" = "xyes"; then | |
39659 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39660 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39661 | cat >conftest.$ac_ext <<_ACEOF | |
39662 | /* confdefs.h. */ | |
39663 | _ACEOF | |
39664 | cat confdefs.h >>conftest.$ac_ext | |
39665 | cat >>conftest.$ac_ext <<_ACEOF | |
39666 | /* end confdefs.h. */ | |
39667 | ||
39668 | int | |
39669 | main () | |
39670 | { | |
39671 | ||
39672 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39673 | #error "no pch support" | |
39674 | #endif | |
39675 | #if (__GNUC__ < 3) | |
39676 | #error "no pch support" | |
39677 | #endif | |
39678 | #if (__GNUC__ == 3) && \ | |
39679 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39680 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39681 | #error "no pch support" | |
39682 | #endif | |
39683 | ||
39684 | ; | |
39685 | return 0; | |
39686 | } | |
39687 | _ACEOF | |
39688 | rm -f conftest.$ac_objext | |
39689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39690 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39691 | ac_status=$? |
ac1cb8d3 VS |
39692 | grep -v '^ *+' conftest.er1 >conftest.err |
39693 | rm -f conftest.er1 | |
39694 | cat conftest.err >&5 | |
dcc1b6ad VS |
39695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39696 | (exit $ac_status); } && | |
7714864e | 39697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39699 | (eval $ac_try) 2>&5 | |
39700 | ac_status=$? | |
39701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39702 | (exit $ac_status); }; } && | |
39703 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39705 | (eval $ac_try) 2>&5 | |
39706 | ac_status=$? | |
39707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39708 | (exit $ac_status); }; }; then | |
39709 | ||
39710 | echo "$as_me:$LINENO: result: yes" >&5 | |
39711 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39712 | GCC_PCH=1 |
39713 | ||
39714 | else | |
39715 | echo "$as_me: failed program was:" >&5 | |
39716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39717 | ||
39718 | ||
39719 | echo "$as_me:$LINENO: result: no" >&5 | |
39720 | echo "${ECHO_T}no" >&6 | |
39721 | ||
39722 | fi | |
ac1cb8d3 | 39723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39724 | if test $GCC_PCH = 1 ; then |
39725 | cat <<EOF >bk-make-pch | |
39726 | #!/bin/sh | |
39727 | ||
39728 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39729 | # script. It is used to generated precompiled headers. | |
39730 | # | |
39731 | # Permission is given to use this file in any way. | |
39732 | ||
39733 | outfile="\${1}" | |
39734 | header="\${2}" | |
39735 | shift | |
39736 | shift | |
39737 | ||
39738 | compiler= | |
39739 | headerfile= | |
39740 | while test \${#} -gt 0; do | |
39741 | case "\${1}" in | |
39742 | -I* ) | |
39743 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39744 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39745 | headerfile="\${incdir}/\${header}" | |
39746 | fi | |
39747 | ;; | |
39748 | esac | |
39749 | compiler="\${compiler} \${1}" | |
39750 | shift | |
39751 | done | |
39752 | ||
39753 | if test "x\${headerfile}" = "x" ; then | |
39754 | echo "error: can't find header \${header} in include paths" >2 | |
39755 | else | |
39756 | if test -f \${outfile} ; then | |
39757 | rm -f \${outfile} | |
39758 | else | |
39759 | mkdir -p \`dirname \${outfile}\` | |
39760 | fi | |
39761 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39762 | mkdir -p .deps | |
39763 | # can do this because gcc is >= 3.4: | |
39764 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39765 | exit \${?} | |
39766 | fi | |
39767 | EOF | |
39768 | chmod +x bk-make-pch | |
39769 | fi | |
39770 | fi | |
39771 | fi | |
39772 | ||
39773 | ||
39774 | ||
a848cd7e SC |
39775 | COND_BUILD_DEBUG="#" |
39776 | if test "x$BUILD" = "xdebug" ; then | |
39777 | COND_BUILD_DEBUG="" | |
39778 | fi | |
39779 | ||
39780 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39781 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39782 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39783 | fi | |
39784 | ||
39785 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39786 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39787 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39788 | fi | |
39789 | ||
39790 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39791 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39792 | COND_BUILD_DEBUG_UNICODE_0="" | |
39793 | fi | |
39794 | ||
39795 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39796 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39797 | COND_BUILD_DEBUG_UNICODE_1="" | |
39798 | fi | |
39799 | ||
39800 | COND_BUILD_RELEASE="#" | |
39801 | if test "x$BUILD" = "xrelease" ; then | |
39802 | COND_BUILD_RELEASE="" | |
39803 | fi | |
39804 | ||
39805 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39806 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39807 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39808 | fi | |
39809 | ||
39810 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39811 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39812 | COND_BUILD_RELEASE_UNICODE_0="" | |
39813 | fi | |
39814 | ||
39815 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39816 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39817 | COND_BUILD_RELEASE_UNICODE_1="" | |
39818 | fi | |
39819 | ||
39820 | COND_DEBUG_FLAG_1="#" | |
39821 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39822 | COND_DEBUG_FLAG_1="" | |
39823 | fi | |
39824 | ||
39825 | COND_DEBUG_INFO_0="#" | |
39826 | if test "x$DEBUG_INFO" = "x0" ; then | |
39827 | COND_DEBUG_INFO_0="" | |
39828 | fi | |
39829 | ||
39830 | COND_DEBUG_INFO_1="#" | |
39831 | if test "x$DEBUG_INFO" = "x1" ; then | |
39832 | COND_DEBUG_INFO_1="" | |
39833 | fi | |
39834 | ||
39835 | COND_DEPS_TRACKING_0="#" | |
39836 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39837 | COND_DEPS_TRACKING_0="" | |
39838 | fi | |
39839 | ||
39840 | COND_DEPS_TRACKING_1="#" | |
39841 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39842 | COND_DEPS_TRACKING_1="" | |
39843 | fi | |
39844 | ||
39845 | COND_GCC_PCH_1="#" | |
39846 | if test "x$GCC_PCH" = "x1" ; then | |
39847 | COND_GCC_PCH_1="" | |
39848 | fi | |
39849 | ||
39850 | COND_MONOLITHIC_0="#" | |
39851 | if test "x$MONOLITHIC" = "x0" ; then | |
39852 | COND_MONOLITHIC_0="" | |
39853 | fi | |
39854 | ||
39855 | COND_MONOLITHIC_0_SHARED_0="#" | |
39856 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39857 | COND_MONOLITHIC_0_SHARED_0="" | |
39858 | fi | |
39859 | ||
39860 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39861 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39862 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39863 | fi | |
39864 | ||
39865 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39866 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39867 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39868 | fi | |
39869 | ||
39870 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39871 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39872 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39873 | fi | |
39874 | ||
39875 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39876 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39877 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39878 | fi | |
39879 | ||
ceec2216 RL |
39880 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
39881 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
39882 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
39883 | fi | |
39884 | ||
a848cd7e SC |
39885 | COND_MONOLITHIC_0_SHARED_1="#" |
39886 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39887 | COND_MONOLITHIC_0_SHARED_1="" | |
39888 | fi | |
39889 | ||
39890 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
39891 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39892 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
39893 | fi | |
39894 | ||
39895 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
39896 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39897 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
39898 | fi | |
39899 | ||
39900 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
39901 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
39902 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
39903 | fi | |
39904 | ||
39905 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
39906 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39907 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
39908 | fi | |
39909 | ||
ceec2216 RL |
39910 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
39911 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
39912 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
39913 | fi | |
39914 | ||
a848cd7e SC |
39915 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
39916 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39917 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
39918 | fi | |
39919 | ||
39920 | COND_MONOLITHIC_1="#" | |
39921 | if test "x$MONOLITHIC" = "x1" ; then | |
39922 | COND_MONOLITHIC_1="" | |
39923 | fi | |
39924 | ||
39925 | COND_MONOLITHIC_1_SHARED_0="#" | |
39926 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
39927 | COND_MONOLITHIC_1_SHARED_0="" | |
39928 | fi | |
39929 | ||
39930 | COND_MONOLITHIC_1_SHARED_1="#" | |
39931 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
39932 | COND_MONOLITHIC_1_SHARED_1="" | |
39933 | fi | |
39934 | ||
39935 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
39936 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39937 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
39938 | fi | |
39939 | ||
39940 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
39941 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
39942 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
39943 | fi | |
39944 | ||
39945 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
39946 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
39947 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
39948 | fi | |
39949 | ||
39950 | COND_PLATFORM_MACOSX_1="#" | |
39951 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
39952 | COND_PLATFORM_MACOSX_1="" | |
39953 | fi | |
39954 | ||
39955 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
39956 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
39957 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
39958 | fi | |
39959 | ||
39960 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
39961 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
39962 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
39963 | fi | |
39964 | ||
39965 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
39966 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
39967 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
39968 | fi | |
39969 | ||
ebee3cd0 VS |
39970 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
39971 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
39972 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
39973 | fi | |
39974 | ||
39975 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
39976 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
39977 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
39978 | fi | |
39979 | ||
a848cd7e SC |
39980 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
39981 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
39982 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
39983 | fi | |
39984 | ||
39985 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
39986 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
39987 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
39988 | fi | |
39989 | ||
39990 | COND_PLATFORM_MAC_1="#" | |
39991 | if test "x$PLATFORM_MAC" = "x1" ; then | |
39992 | COND_PLATFORM_MAC_1="" | |
39993 | fi | |
39994 | ||
39995 | COND_PLATFORM_OS2_1="#" | |
39996 | if test "x$PLATFORM_OS2" = "x1" ; then | |
39997 | COND_PLATFORM_OS2_1="" | |
39998 | fi | |
39999 | ||
40000 | COND_PLATFORM_UNIX_0="#" | |
40001 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40002 | COND_PLATFORM_UNIX_0="" | |
40003 | fi | |
40004 | ||
40005 | COND_PLATFORM_UNIX_1="#" | |
40006 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40007 | COND_PLATFORM_UNIX_1="" | |
40008 | fi | |
40009 | ||
40010 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40011 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40012 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40013 | fi | |
40014 | ||
40015 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40016 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40017 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40018 | fi | |
40019 | ||
40020 | COND_PLATFORM_WIN32_0="#" | |
40021 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40022 | COND_PLATFORM_WIN32_0="" | |
40023 | fi | |
40024 | ||
40025 | COND_PLATFORM_WIN32_1="#" | |
40026 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40027 | COND_PLATFORM_WIN32_1="" | |
40028 | fi | |
40029 | ||
40030 | COND_SHARED_0="#" | |
40031 | if test "x$SHARED" = "x0" ; then | |
40032 | COND_SHARED_0="" | |
40033 | fi | |
40034 | ||
ceec2216 RL |
40035 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40036 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40037 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40038 | fi | |
40039 | ||
40040 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40041 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40042 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40043 | fi | |
40044 | ||
40045 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40046 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40047 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40048 | fi | |
40049 | ||
a848cd7e SC |
40050 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40051 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40052 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40053 | fi | |
40054 | ||
40055 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40056 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40057 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40058 | fi | |
40059 | ||
40060 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40061 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40062 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40063 | fi | |
40064 | ||
40065 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40066 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40067 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40068 | fi | |
40069 | ||
40070 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40071 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40072 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40073 | fi | |
40074 | ||
40075 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40076 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40077 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40078 | fi | |
40079 | ||
40080 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40081 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40082 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40083 | fi | |
40084 | ||
40085 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40086 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40087 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40088 | fi | |
40089 | ||
40090 | COND_SHARED_1="#" | |
40091 | if test "x$SHARED" = "x1" ; then | |
40092 | COND_SHARED_1="" | |
40093 | fi | |
40094 | ||
40095 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40096 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40097 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40098 | fi | |
40099 | ||
40100 | COND_TOOLKIT_COCOA="#" | |
40101 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40102 | COND_TOOLKIT_COCOA="" | |
40103 | fi | |
40104 | ||
40105 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40106 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40107 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40108 | fi | |
40109 | ||
40110 | COND_TOOLKIT_GTK="#" | |
40111 | if test "x$TOOLKIT" = "xGTK" ; then | |
40112 | COND_TOOLKIT_GTK="" | |
40113 | fi | |
40114 | ||
40115 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40116 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40117 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40118 | fi | |
40119 | ||
40120 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40121 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40122 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40123 | fi | |
40124 | ||
40125 | COND_TOOLKIT_MAC="#" | |
40126 | if test "x$TOOLKIT" = "xMAC" ; then | |
40127 | COND_TOOLKIT_MAC="" | |
40128 | fi | |
40129 | ||
40130 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40131 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40132 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40133 | fi | |
40134 | ||
40135 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40136 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40137 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40138 | fi | |
40139 | ||
40140 | COND_TOOLKIT_MGL="#" | |
40141 | if test "x$TOOLKIT" = "xMGL" ; then | |
40142 | COND_TOOLKIT_MGL="" | |
40143 | fi | |
40144 | ||
40145 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40146 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40147 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40148 | fi | |
40149 | ||
40150 | COND_TOOLKIT_MOTIF="#" | |
40151 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40152 | COND_TOOLKIT_MOTIF="" | |
40153 | fi | |
40154 | ||
40155 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40156 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40157 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40158 | fi | |
40159 | ||
40160 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40161 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40162 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40163 | fi | |
40164 | ||
40165 | COND_TOOLKIT_MSW="#" | |
40166 | if test "x$TOOLKIT" = "xMSW" ; then | |
40167 | COND_TOOLKIT_MSW="" | |
40168 | fi | |
40169 | ||
40170 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40171 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40172 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40173 | fi | |
40174 | ||
40175 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40176 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40177 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40178 | fi | |
40179 | ||
40180 | COND_TOOLKIT_PM="#" | |
40181 | if test "x$TOOLKIT" = "xPM" ; then | |
40182 | COND_TOOLKIT_PM="" | |
40183 | fi | |
40184 | ||
40185 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40186 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40187 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40188 | fi | |
40189 | ||
40190 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40191 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40192 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40193 | fi | |
40194 | ||
3fd9c298 DE |
40195 | COND_TOOLKIT_WINCE="#" |
40196 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40197 | COND_TOOLKIT_WINCE="" | |
40198 | fi | |
40199 | ||
40200 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40201 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40202 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40203 | fi | |
40204 | ||
40205 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40206 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40207 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40208 | fi | |
40209 | ||
a848cd7e SC |
40210 | COND_TOOLKIT_X11="#" |
40211 | if test "x$TOOLKIT" = "xX11" ; then | |
40212 | COND_TOOLKIT_X11="" | |
40213 | fi | |
40214 | ||
40215 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40216 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40217 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40218 | fi | |
40219 | ||
40220 | COND_UNICODE_1="#" | |
40221 | if test "x$UNICODE" = "x1" ; then | |
40222 | COND_UNICODE_1="" | |
40223 | fi | |
40224 | ||
40225 | COND_USE_EXCEPTIONS_0="#" | |
40226 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40227 | COND_USE_EXCEPTIONS_0="" | |
40228 | fi | |
40229 | ||
40230 | COND_USE_EXCEPTIONS_1="#" | |
40231 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40232 | COND_USE_EXCEPTIONS_1="" | |
40233 | fi | |
40234 | ||
40235 | COND_USE_GUI_0="#" | |
40236 | if test "x$USE_GUI" = "x0" ; then | |
40237 | COND_USE_GUI_0="" | |
40238 | fi | |
40239 | ||
40240 | COND_USE_GUI_1="#" | |
40241 | if test "x$USE_GUI" = "x1" ; then | |
40242 | COND_USE_GUI_1="" | |
40243 | fi | |
40244 | ||
40245 | COND_USE_GUI_1_WXUNIV_0="#" | |
40246 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40247 | COND_USE_GUI_1_WXUNIV_0="" | |
40248 | fi | |
40249 | ||
40250 | COND_USE_GUI_1_WXUNIV_1="#" | |
40251 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40252 | COND_USE_GUI_1_WXUNIV_1="" | |
40253 | fi | |
40254 | ||
40255 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40256 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40257 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40258 | fi | |
40259 | ||
40260 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40261 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40262 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40263 | fi | |
40264 | ||
40265 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40266 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40267 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40268 | fi | |
40269 | ||
ceec2216 RL |
40270 | COND_USE_ODBC_1="#" |
40271 | if test "x$USE_ODBC" = "x1" ; then | |
40272 | COND_USE_ODBC_1="" | |
40273 | fi | |
40274 | ||
a848cd7e SC |
40275 | COND_USE_PLUGINS_0="#" |
40276 | if test "x$USE_PLUGINS" = "x0" ; then | |
40277 | COND_USE_PLUGINS_0="" | |
40278 | fi | |
40279 | ||
40280 | COND_USE_SOSYMLINKS_1="#" | |
40281 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40282 | COND_USE_SOSYMLINKS_1="" | |
40283 | fi | |
40284 | ||
40285 | COND_USE_SOVERLINUX_1="#" | |
40286 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40287 | COND_USE_SOVERLINUX_1="" | |
40288 | fi | |
40289 | ||
40290 | COND_USE_SOVERSION_0="#" | |
40291 | if test "x$USE_SOVERSION" = "x0" ; then | |
40292 | COND_USE_SOVERSION_0="" | |
40293 | fi | |
40294 | ||
40295 | COND_USE_SOVERSOLARIS_1="#" | |
40296 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40297 | COND_USE_SOVERSOLARIS_1="" | |
40298 | fi | |
40299 | ||
a13a7f89 RL |
40300 | COND_USE_XRC_1="#" |
40301 | if test "x$USE_XRC" = "x1" ; then | |
40302 | COND_USE_XRC_1="" | |
40303 | fi | |
40304 | ||
a848cd7e SC |
40305 | COND_WITH_PLUGIN_SDL_1="#" |
40306 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40307 | COND_WITH_PLUGIN_SDL_1="" | |
40308 | fi | |
40309 | ||
a848cd7e SC |
40310 | COND_WXUNIV_1="#" |
40311 | if test "x$WXUNIV" = "x1" ; then | |
40312 | COND_WXUNIV_1="" | |
40313 | fi | |
40314 | ||
40315 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40316 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40317 | COND_WXUSE_EXPAT_BUILTIN="" | |
40318 | fi | |
40319 | ||
40320 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40321 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40322 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40323 | fi | |
40324 | ||
40325 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40326 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40327 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40328 | fi | |
40329 | ||
40330 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40331 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40332 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40333 | fi | |
40334 | ||
40335 | COND_WXUSE_ODBC_BUILTIN="#" | |
40336 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40337 | COND_WXUSE_ODBC_BUILTIN="" | |
40338 | fi | |
40339 | ||
40340 | COND_WXUSE_REGEX_BUILTIN="#" | |
40341 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40342 | COND_WXUSE_REGEX_BUILTIN="" | |
40343 | fi | |
40344 | ||
40345 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40346 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40347 | COND_WXUSE_ZLIB_BUILTIN="" | |
40348 | fi | |
40349 | ||
dcc1b6ad VS |
40350 | COND_BUILD_DEBUG="#" |
40351 | if test "x$BUILD" = "xdebug" ; then | |
40352 | COND_BUILD_DEBUG="" | |
40353 | fi | |
40354 | ||
40355 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40356 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40357 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40358 | fi | |
40359 | ||
40360 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40361 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40362 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40363 | fi | |
40364 | ||
40365 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40366 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40367 | COND_BUILD_DEBUG_UNICODE_0="" | |
40368 | fi | |
40369 | ||
40370 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40371 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40372 | COND_BUILD_DEBUG_UNICODE_1="" | |
40373 | fi | |
40374 | ||
40375 | COND_BUILD_RELEASE="#" | |
40376 | if test "x$BUILD" = "xrelease" ; then | |
40377 | COND_BUILD_RELEASE="" | |
40378 | fi | |
40379 | ||
40380 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40381 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40382 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40383 | fi | |
40384 | ||
40385 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40386 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40387 | COND_BUILD_RELEASE_UNICODE_0="" | |
40388 | fi | |
40389 | ||
40390 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40391 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40392 | COND_BUILD_RELEASE_UNICODE_1="" | |
40393 | fi | |
40394 | ||
40395 | COND_DEBUG_FLAG_1="#" | |
40396 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40397 | COND_DEBUG_FLAG_1="" | |
40398 | fi | |
40399 | ||
40400 | COND_DEBUG_INFO_0="#" | |
40401 | if test "x$DEBUG_INFO" = "x0" ; then | |
40402 | COND_DEBUG_INFO_0="" | |
40403 | fi | |
40404 | ||
40405 | COND_DEBUG_INFO_1="#" | |
40406 | if test "x$DEBUG_INFO" = "x1" ; then | |
40407 | COND_DEBUG_INFO_1="" | |
40408 | fi | |
40409 | ||
40410 | COND_DEPS_TRACKING_0="#" | |
40411 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40412 | COND_DEPS_TRACKING_0="" | |
40413 | fi | |
40414 | ||
40415 | COND_DEPS_TRACKING_1="#" | |
40416 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40417 | COND_DEPS_TRACKING_1="" | |
40418 | fi | |
40419 | ||
40420 | COND_GCC_PCH_1="#" | |
40421 | if test "x$GCC_PCH" = "x1" ; then | |
40422 | COND_GCC_PCH_1="" | |
40423 | fi | |
40424 | ||
40425 | COND_MONOLITHIC_0="#" | |
40426 | if test "x$MONOLITHIC" = "x0" ; then | |
40427 | COND_MONOLITHIC_0="" | |
40428 | fi | |
40429 | ||
40430 | COND_MONOLITHIC_0_SHARED_0="#" | |
40431 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40432 | COND_MONOLITHIC_0_SHARED_0="" | |
40433 | fi | |
40434 | ||
40435 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40436 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40437 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40438 | fi | |
40439 | ||
40440 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40441 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40442 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40443 | fi | |
40444 | ||
40445 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40446 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40447 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40448 | fi | |
40449 | ||
40450 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40451 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40452 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40453 | fi | |
40454 | ||
9a8f0513 VS |
40455 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40456 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40457 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40458 | fi | |
40459 | ||
dcc1b6ad VS |
40460 | COND_MONOLITHIC_0_SHARED_1="#" |
40461 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40462 | COND_MONOLITHIC_0_SHARED_1="" | |
40463 | fi | |
40464 | ||
40465 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40466 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40467 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40468 | fi | |
40469 | ||
40470 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40471 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40472 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40473 | fi | |
40474 | ||
40475 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40476 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40477 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40478 | fi | |
40479 | ||
40480 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40481 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40482 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40483 | fi | |
40484 | ||
9a8f0513 VS |
40485 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40486 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40487 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40488 | fi | |
40489 | ||
dcc1b6ad VS |
40490 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40491 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40492 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40493 | fi | |
40494 | ||
40495 | COND_MONOLITHIC_1="#" | |
40496 | if test "x$MONOLITHIC" = "x1" ; then | |
40497 | COND_MONOLITHIC_1="" | |
40498 | fi | |
40499 | ||
40500 | COND_MONOLITHIC_1_SHARED_0="#" | |
40501 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40502 | COND_MONOLITHIC_1_SHARED_0="" | |
40503 | fi | |
40504 | ||
40505 | COND_MONOLITHIC_1_SHARED_1="#" | |
40506 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40507 | COND_MONOLITHIC_1_SHARED_1="" | |
40508 | fi | |
40509 | ||
40510 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40511 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40512 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40513 | fi | |
40514 | ||
40515 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40516 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40517 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40518 | fi | |
40519 | ||
40520 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40521 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40522 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40523 | fi | |
40524 | ||
40525 | COND_PLATFORM_MACOSX_1="#" | |
40526 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40527 | COND_PLATFORM_MACOSX_1="" | |
40528 | fi | |
40529 | ||
40530 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40531 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40532 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40533 | fi | |
40534 | ||
40535 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40536 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40537 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40538 | fi | |
40539 | ||
40540 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40541 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40542 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40543 | fi | |
40544 | ||
9a8f0513 VS |
40545 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40546 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40547 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40548 | fi | |
40549 | ||
40550 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40551 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40552 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40553 | fi | |
40554 | ||
dcc1b6ad VS |
40555 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40556 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40557 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40558 | fi | |
40559 | ||
40560 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40561 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40562 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40563 | fi | |
40564 | ||
40565 | COND_PLATFORM_MAC_1="#" | |
40566 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40567 | COND_PLATFORM_MAC_1="" | |
40568 | fi | |
40569 | ||
40570 | COND_PLATFORM_OS2_1="#" | |
40571 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40572 | COND_PLATFORM_OS2_1="" | |
40573 | fi | |
40574 | ||
40575 | COND_PLATFORM_UNIX_0="#" | |
40576 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40577 | COND_PLATFORM_UNIX_0="" | |
40578 | fi | |
40579 | ||
40580 | COND_PLATFORM_UNIX_1="#" | |
40581 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40582 | COND_PLATFORM_UNIX_1="" | |
40583 | fi | |
40584 | ||
40585 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40586 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40587 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40588 | fi | |
40589 | ||
40590 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40591 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40592 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40593 | fi | |
40594 | ||
40595 | COND_PLATFORM_WIN32_0="#" | |
40596 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40597 | COND_PLATFORM_WIN32_0="" | |
40598 | fi | |
40599 | ||
40600 | COND_PLATFORM_WIN32_1="#" | |
40601 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40602 | COND_PLATFORM_WIN32_1="" | |
40603 | fi | |
40604 | ||
40605 | COND_SHARED_0="#" | |
40606 | if test "x$SHARED" = "x0" ; then | |
40607 | COND_SHARED_0="" | |
40608 | fi | |
40609 | ||
40610 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40611 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40612 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40613 | fi | |
40614 | ||
40615 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40616 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40617 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40618 | fi | |
40619 | ||
40620 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40621 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40622 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40623 | fi | |
40624 | ||
40625 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40626 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40627 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40628 | fi | |
40629 | ||
40630 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40631 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40632 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40633 | fi | |
40634 | ||
40635 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40636 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40637 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40638 | fi | |
40639 | ||
40640 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40641 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40642 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40643 | fi | |
40644 | ||
40645 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40646 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40647 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40648 | fi | |
40649 | ||
40650 | COND_SHARED_1="#" | |
40651 | if test "x$SHARED" = "x1" ; then | |
40652 | COND_SHARED_1="" | |
40653 | fi | |
40654 | ||
40655 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40656 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40657 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40658 | fi | |
40659 | ||
40660 | COND_TOOLKIT_COCOA="#" | |
40661 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40662 | COND_TOOLKIT_COCOA="" | |
40663 | fi | |
40664 | ||
40665 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40666 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40667 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40668 | fi | |
40669 | ||
40670 | COND_TOOLKIT_GTK="#" | |
40671 | if test "x$TOOLKIT" = "xGTK" ; then | |
40672 | COND_TOOLKIT_GTK="" | |
40673 | fi | |
40674 | ||
40675 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40676 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40677 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40678 | fi | |
40679 | ||
40680 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40681 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40682 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40683 | fi | |
40684 | ||
40685 | COND_TOOLKIT_MAC="#" | |
40686 | if test "x$TOOLKIT" = "xMAC" ; then | |
40687 | COND_TOOLKIT_MAC="" | |
40688 | fi | |
40689 | ||
40690 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40691 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40692 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40693 | fi | |
40694 | ||
40695 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40696 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40697 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40698 | fi | |
40699 | ||
9a8f0513 VS |
40700 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40701 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40702 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40703 | fi | |
40704 | ||
dcc1b6ad VS |
40705 | COND_TOOLKIT_MGL="#" |
40706 | if test "x$TOOLKIT" = "xMGL" ; then | |
40707 | COND_TOOLKIT_MGL="" | |
40708 | fi | |
40709 | ||
40710 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40711 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40712 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40713 | fi | |
40714 | ||
40715 | COND_TOOLKIT_MOTIF="#" | |
40716 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40717 | COND_TOOLKIT_MOTIF="" | |
40718 | fi | |
40719 | ||
40720 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40721 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40722 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40723 | fi | |
40724 | ||
40725 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40726 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40727 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40728 | fi | |
40729 | ||
40730 | COND_TOOLKIT_MSW="#" | |
40731 | if test "x$TOOLKIT" = "xMSW" ; then | |
40732 | COND_TOOLKIT_MSW="" | |
40733 | fi | |
40734 | ||
40735 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40736 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40737 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40738 | fi | |
40739 | ||
40740 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40741 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40742 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40743 | fi | |
40744 | ||
9a8f0513 VS |
40745 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40746 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40747 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40748 | fi | |
40749 | ||
dcc1b6ad VS |
40750 | COND_TOOLKIT_PM="#" |
40751 | if test "x$TOOLKIT" = "xPM" ; then | |
40752 | COND_TOOLKIT_PM="" | |
40753 | fi | |
40754 | ||
40755 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40756 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40757 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40758 | fi | |
40759 | ||
40760 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40761 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40762 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40763 | fi | |
40764 | ||
9a8f0513 VS |
40765 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40766 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40767 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40768 | fi | |
40769 | ||
dcc1b6ad VS |
40770 | COND_TOOLKIT_WINCE="#" |
40771 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40772 | COND_TOOLKIT_WINCE="" | |
40773 | fi | |
40774 | ||
40775 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40776 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40777 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40778 | fi | |
40779 | ||
40780 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40781 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40782 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40783 | fi | |
40784 | ||
40785 | COND_TOOLKIT_X11="#" | |
40786 | if test "x$TOOLKIT" = "xX11" ; then | |
40787 | COND_TOOLKIT_X11="" | |
40788 | fi | |
40789 | ||
40790 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40791 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40792 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40793 | fi | |
40794 | ||
40795 | COND_UNICODE_1="#" | |
40796 | if test "x$UNICODE" = "x1" ; then | |
40797 | COND_UNICODE_1="" | |
40798 | fi | |
40799 | ||
40800 | COND_USE_EXCEPTIONS_0="#" | |
40801 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40802 | COND_USE_EXCEPTIONS_0="" | |
40803 | fi | |
40804 | ||
40805 | COND_USE_EXCEPTIONS_1="#" | |
40806 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40807 | COND_USE_EXCEPTIONS_1="" | |
40808 | fi | |
40809 | ||
40810 | COND_USE_GUI_0="#" | |
40811 | if test "x$USE_GUI" = "x0" ; then | |
40812 | COND_USE_GUI_0="" | |
40813 | fi | |
40814 | ||
40815 | COND_USE_GUI_1="#" | |
40816 | if test "x$USE_GUI" = "x1" ; then | |
40817 | COND_USE_GUI_1="" | |
40818 | fi | |
40819 | ||
40820 | COND_USE_GUI_1_WXUNIV_0="#" | |
40821 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40822 | COND_USE_GUI_1_WXUNIV_0="" | |
40823 | fi | |
40824 | ||
40825 | COND_USE_GUI_1_WXUNIV_1="#" | |
40826 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40827 | COND_USE_GUI_1_WXUNIV_1="" | |
40828 | fi | |
40829 | ||
40830 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40831 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40832 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40833 | fi | |
40834 | ||
40835 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40836 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40837 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40838 | fi | |
40839 | ||
40840 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40841 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40842 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40843 | fi | |
40844 | ||
40845 | COND_USE_ODBC_1="#" | |
40846 | if test "x$USE_ODBC" = "x1" ; then | |
40847 | COND_USE_ODBC_1="" | |
40848 | fi | |
40849 | ||
40850 | COND_USE_PLUGINS_0="#" | |
40851 | if test "x$USE_PLUGINS" = "x0" ; then | |
40852 | COND_USE_PLUGINS_0="" | |
40853 | fi | |
40854 | ||
40855 | COND_USE_SOSYMLINKS_1="#" | |
40856 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40857 | COND_USE_SOSYMLINKS_1="" | |
40858 | fi | |
40859 | ||
40860 | COND_USE_SOVERLINUX_1="#" | |
40861 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40862 | COND_USE_SOVERLINUX_1="" | |
40863 | fi | |
40864 | ||
40865 | COND_USE_SOVERSION_0="#" | |
40866 | if test "x$USE_SOVERSION" = "x0" ; then | |
40867 | COND_USE_SOVERSION_0="" | |
40868 | fi | |
40869 | ||
40870 | COND_USE_SOVERSOLARIS_1="#" | |
40871 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40872 | COND_USE_SOVERSOLARIS_1="" | |
40873 | fi | |
40874 | ||
40875 | COND_WITH_PLUGIN_SDL_1="#" | |
40876 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40877 | COND_WITH_PLUGIN_SDL_1="" | |
40878 | fi | |
40879 | ||
40880 | COND_WXUNIV_1="#" | |
40881 | if test "x$WXUNIV" = "x1" ; then | |
40882 | COND_WXUNIV_1="" | |
40883 | fi | |
40884 | ||
40885 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40886 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40887 | COND_WXUSE_EXPAT_BUILTIN="" | |
40888 | fi | |
40889 | ||
40890 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40891 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40892 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40893 | fi | |
40894 | ||
40895 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40896 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40897 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40898 | fi | |
40899 | ||
40900 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40901 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40902 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40903 | fi | |
40904 | ||
40905 | COND_WXUSE_ODBC_BUILTIN="#" | |
40906 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40907 | COND_WXUSE_ODBC_BUILTIN="" | |
40908 | fi | |
40909 | ||
40910 | COND_WXUSE_REGEX_BUILTIN="#" | |
40911 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40912 | COND_WXUSE_REGEX_BUILTIN="" | |
40913 | fi | |
40914 | ||
40915 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40916 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40917 | COND_WXUSE_ZLIB_BUILTIN="" | |
40918 | fi | |
40919 | ||
a848cd7e SC |
40920 | |
40921 | ||
2057db16 VS |
40922 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
40923 | { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5 | |
40924 | echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;} | |
40925 | { (exit 1); exit 1; }; } | |
40926 | fi | |
40927 | ||
a848cd7e | 40928 | |
ceec2216 RL |
40929 | if test "$wxUSE_SHARED" = "yes"; then |
40930 | ||
40931 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
40932 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
40933 | ||
40934 | else | |
40935 | ||
40936 | EXE_LINKER="$CXX -o" | |
40937 | ||
40938 | fi | |
a848cd7e | 40939 | |
74b84332 | 40940 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 40941 | if test $GCC_PCH = 1 ; then |
74b84332 | 40942 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
40943 | else |
40944 | case "${host}" in | |
40945 | powerpc-*-darwin* ) | |
74b84332 | 40946 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 40947 | ;; |
bea8e651 | 40948 | *-*-mingw32* ) |
1f344abf VS |
40949 | if test "$wxUSE_STL" = "yes" -o \ |
40950 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
40951 | "$wxUSE_NO_RTTI" != "yes"; then | |
40952 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
40953 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
40954 | cat >conftest.$ac_ext <<_ACEOF |
40955 | /* confdefs.h. */ | |
40956 | _ACEOF | |
40957 | cat confdefs.h >>conftest.$ac_ext | |
40958 | cat >>conftest.$ac_ext <<_ACEOF | |
40959 | /* end confdefs.h. */ | |
40960 | ||
40961 | int | |
40962 | main () | |
40963 | { | |
1f344abf | 40964 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
40965 | #error "Not GCC 3.2 or greater" |
40966 | #endif | |
40967 | ||
40968 | ; | |
40969 | return 0; | |
40970 | } | |
40971 | _ACEOF | |
40972 | rm -f conftest.$ac_objext | |
40973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40974 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 40975 | ac_status=$? |
ac1cb8d3 VS |
40976 | grep -v '^ *+' conftest.er1 >conftest.err |
40977 | rm -f conftest.er1 | |
40978 | cat conftest.err >&5 | |
bea8e651 MB |
40979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40980 | (exit $ac_status); } && | |
7714864e | 40981 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40983 | (eval $ac_try) 2>&5 | |
40984 | ac_status=$? | |
40985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40986 | (exit $ac_status); }; } && | |
40987 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
40988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40989 | (eval $ac_try) 2>&5 | |
40990 | ac_status=$? | |
40991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40992 | (exit $ac_status); }; }; then | |
74b84332 | 40993 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
40994 | echo "$as_me:$LINENO: result: yes" >&5 |
40995 | echo "${ECHO_T}yes" >&6 | |
40996 | else | |
40997 | echo "$as_me: failed program was:" >&5 | |
40998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40999 | ||
41000 | echo "$as_me:$LINENO: result: no" >&5 | |
41001 | echo "${ECHO_T}no" >&6 | |
41002 | fi | |
ac1cb8d3 | 41003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41004 | fi |
41005 | ;; | |
a848cd7e SC |
41006 | esac |
41007 | fi | |
74b84332 | 41008 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41009 | |
41010 | ||
41011 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41012 | ||
41013 | ||
41014 | ||
41015 | ||
41016 | ||
41017 | ||
41018 | ||
41019 | ||
41020 | ||
41021 | ||
41022 | ||
41023 | ||
41024 | ||
41025 | ||
41026 | ||
41027 | ||
41028 | ||
41029 | ||
41030 | ||
41031 | ||
41032 | ||
41033 | ||
41034 | ||
41035 | ||
41036 | ||
41037 | ||
41038 | ||
41039 | ||
41040 | ||
41041 | ||
41042 | ||
41043 | ||
41044 | ||
41045 | ||
41046 | ||
41047 | ||
41048 | ||
41049 | ||
41050 | ||
41051 | ||
41052 | ||
41053 | ||
a848cd7e SC |
41054 | |
41055 | ||
41056 | ||
41057 | ||
41058 | ||
41059 | ||
41060 | ||
41061 | ||
41062 | ||
41063 | ||
41064 | ||
41065 | ||
41066 | ||
41067 | ||
41068 | ||
41069 | ||
41070 | ||
41071 | ||
74b84332 | 41072 | |
a848cd7e SC |
41073 | |
41074 | ||
41075 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41076 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41077 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41078 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41080 | else | |
41081 | cat >conftest.make <<\_ACEOF | |
41082 | all: | |
41083 | @echo 'ac_maketemp="$(MAKE)"' | |
41084 | _ACEOF | |
41085 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41086 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41087 | if test -n "$ac_maketemp"; then | |
41088 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41089 | else | |
41090 | eval ac_cv_prog_make_${ac_make}_set=no | |
41091 | fi | |
41092 | rm -f conftest.make | |
41093 | fi | |
41094 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41095 | echo "$as_me:$LINENO: result: yes" >&5 | |
41096 | echo "${ECHO_T}yes" >&6 | |
41097 | SET_MAKE= | |
41098 | else | |
41099 | echo "$as_me:$LINENO: result: no" >&5 | |
41100 | echo "${ECHO_T}no" >&6 | |
41101 | SET_MAKE="MAKE=${MAKE-make}" | |
41102 | fi | |
41103 | ||
41104 | ||
a848cd7e | 41105 | |
ceec2216 RL |
41106 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41107 | ||
a848cd7e | 41108 | |
ceec2216 | 41109 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41110 | |
a848cd7e | 41111 | |
ceec2216 | 41112 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41113 | |
ceec2216 RL |
41114 | |
41115 | ac_config_files="$ac_config_files version-script Makefile" | |
41116 | ||
41117 | ||
41118 | ac_config_commands="$ac_config_commands wx-config | |
41119 | " | |
a848cd7e SC |
41120 | |
41121 | ||
9103d280 RL |
41122 | |
41123 | ||
a848cd7e SC |
41124 | if test "$wxUSE_GUI" = "yes"; then |
41125 | SUBDIRS="samples demos utils contrib" | |
41126 | else SUBDIRS="samples utils" | |
41127 | fi | |
41128 | ||
41129 | ||
41130 | ||
41131 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41132 | if test "${with_cppunit_prefix+set}" = set; then | |
41133 | withval="$with_cppunit_prefix" | |
41134 | cppunit_config_prefix="$withval" | |
41135 | else | |
41136 | cppunit_config_prefix="" | |
41137 | fi; | |
41138 | ||
41139 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41140 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41141 | withval="$with_cppunit_exec_prefix" | |
41142 | cppunit_config_exec_prefix="$withval" | |
41143 | else | |
41144 | cppunit_config_exec_prefix="" | |
41145 | fi; | |
41146 | ||
41147 | if test x$cppunit_config_exec_prefix != x ; then | |
41148 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41149 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41150 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41151 | fi | |
41152 | fi | |
41153 | if test x$cppunit_config_prefix != x ; then | |
41154 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41155 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41156 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41157 | fi | |
41158 | fi | |
41159 | ||
41160 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41161 | set dummy cppunit-config; ac_word=$2 | |
41162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41164 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41166 | else | |
41167 | case $CPPUNIT_CONFIG in | |
41168 | [\\/]* | ?:[\\/]*) | |
41169 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41170 | ;; | |
41171 | *) | |
41172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41173 | for as_dir in $PATH | |
41174 | do | |
41175 | IFS=$as_save_IFS | |
41176 | test -z "$as_dir" && as_dir=. | |
41177 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41178 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41179 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41180 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41181 | break 2 | |
41182 | fi | |
41183 | done | |
41184 | done | |
41185 | ||
41186 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41187 | ;; | |
41188 | esac | |
41189 | fi | |
41190 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41191 | ||
41192 | if test -n "$CPPUNIT_CONFIG"; then | |
41193 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41194 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41195 | else | |
41196 | echo "$as_me:$LINENO: result: no" >&5 | |
41197 | echo "${ECHO_T}no" >&6 | |
41198 | fi | |
41199 | ||
41200 | cppunit_version_min=1.8.0 | |
41201 | ||
41202 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41203 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41204 | no_cppunit="" | |
41205 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41206 | no_cppunit=yes | |
41207 | else | |
41208 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41209 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41210 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41211 | ||
41212 | cppunit_major_version=`echo $cppunit_version | \ | |
41213 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41214 | cppunit_minor_version=`echo $cppunit_version | \ | |
41215 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41216 | cppunit_micro_version=`echo $cppunit_version | \ | |
41217 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41218 | ||
41219 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41220 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41221 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41222 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41223 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41224 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41225 | ||
41226 | cppunit_version_proper=`expr \ | |
41227 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41228 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41229 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41230 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41231 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41232 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41233 | ||
41234 | if test "$cppunit_version_proper" = "1" ; then | |
41235 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41236 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41237 | else | |
41238 | echo "$as_me:$LINENO: result: no" >&5 | |
41239 | echo "${ECHO_T}no" >&6 | |
41240 | no_cppunit=yes | |
41241 | fi | |
41242 | fi | |
41243 | ||
41244 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41245 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41246 | else |
41247 | CPPUNIT_CFLAGS="" | |
41248 | CPPUNIT_LIBS="" | |
c2218763 | 41249 | : |
a848cd7e SC |
41250 | fi |
41251 | ||
41252 | ||
41253 | ||
41254 | ||
41255 | ||
41256 | for subdir in `echo $SUBDIRS`; do | |
41257 | if test -d ${srcdir}/${subdir} ; then | |
41258 | if test "$wxUSE_GUI" = "yes"; then | |
41259 | if test ${subdir} = "samples"; then | |
41260 | makefiles="samples/Makefile.in $makefiles" | |
41261 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41262 | if test -d $srcdir/samples/$sample; then | |
41263 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41264 | fi | |
41265 | done | |
41266 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41267 | fi | |
41268 | else if test ${subdir} = "samples"; then | |
41269 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41270 | elif test ${subdir} = "utils"; then | |
41271 | makefiles="utils/HelpGen/Makefile.in \ | |
41272 | utils/HelpGen/src/Makefile.in \ | |
41273 | utils/tex2rtf/Makefile.in \ | |
41274 | utils/tex2rtf/src/Makefile.in" | |
41275 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41276 | fi | |
41277 | fi | |
41278 | ||
41279 | for mkin in $makefiles ; do | |
41280 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41281 | ac_config_files="$ac_config_files $mk" | |
41282 | ||
41283 | done | |
41284 | fi | |
41285 | done | |
41286 | ||
41287 | ||
41288 | cat >confcache <<\_ACEOF | |
41289 | # This file is a shell script that caches the results of configure | |
41290 | # tests run on this system so they can be shared between configure | |
41291 | # scripts and configure runs, see configure's option --config-cache. | |
41292 | # It is not useful on other systems. If it contains results you don't | |
41293 | # want to keep, you may remove or edit it. | |
41294 | # | |
41295 | # config.status only pays attention to the cache file if you give it | |
41296 | # the --recheck option to rerun configure. | |
41297 | # | |
41298 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41299 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41300 | # following values. | |
41301 | ||
41302 | _ACEOF | |
41303 | ||
41304 | # The following way of writing the cache mishandles newlines in values, | |
41305 | # but we know of no workaround that is simple, portable, and efficient. | |
41306 | # So, don't put newlines in cache variables' values. | |
41307 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41308 | # and sets the high bit in the cache file unless we assign to the vars. | |
41309 | { | |
41310 | (set) 2>&1 | | |
41311 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41312 | *ac_space=\ *) | |
41313 | # `set' does not quote correctly, so add quotes (double-quote | |
41314 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41315 | sed -n \ | |
ac1cb8d3 VS |
41316 | "s/'/'\\\\''/g; |
41317 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41318 | ;; |
41319 | *) | |
41320 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41321 | sed -n \ | |
ac1cb8d3 | 41322 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41323 | ;; |
41324 | esac; | |
41325 | } | | |
41326 | sed ' | |
41327 | t clear | |
41328 | : clear | |
41329 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41330 | t end | |
41331 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41332 | : end' >>confcache | |
41333 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41334 | if test -w $cache_file; then | |
41335 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41336 | cat confcache >$cache_file | |
41337 | else | |
41338 | echo "not updating unwritable cache $cache_file" | |
41339 | fi | |
41340 | fi | |
41341 | rm -f confcache | |
41342 | ||
41343 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41344 | # Let make expand exec_prefix. | |
41345 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41346 | ||
41347 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41348 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41349 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41350 | # (actually we leave an empty line to preserve line numbers). | |
41351 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41352 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41353 | s/:*\$(srcdir):*/:/; |
41354 | s/:*\${srcdir}:*/:/; | |
41355 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41356 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41357 | s/:*$//; |
ac1cb8d3 | 41358 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41359 | }' |
41360 | fi | |
41361 | ||
41362 | DEFS=-DHAVE_CONFIG_H | |
41363 | ||
41364 | ac_libobjs= | |
41365 | ac_ltlibobjs= | |
41366 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41367 | # 1. Remove the extension, and $U if already installed. | |
41368 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41369 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41370 | # 2. Add them. |
41371 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41372 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41373 | done | |
41374 | LIBOBJS=$ac_libobjs | |
41375 | ||
41376 | LTLIBOBJS=$ac_ltlibobjs | |
41377 | ||
41378 | ||
41379 | ||
41380 | : ${CONFIG_STATUS=./config.status} | |
41381 | ac_clean_files_save=$ac_clean_files | |
41382 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41383 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41384 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41385 | cat >$CONFIG_STATUS <<_ACEOF | |
41386 | #! $SHELL | |
41387 | # Generated by $as_me. | |
41388 | # Run this file to recreate the current configuration. | |
41389 | # Compiler output produced by configure, useful for debugging | |
41390 | # configure, is in config.log if it exists. | |
41391 | ||
41392 | debug=false | |
41393 | ac_cs_recheck=false | |
41394 | ac_cs_silent=false | |
41395 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41396 | _ACEOF | |
41397 | ||
41398 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41399 | ## --------------------- ## | |
41400 | ## M4sh Initialization. ## | |
41401 | ## --------------------- ## | |
41402 | ||
41403 | # Be Bourne compatible | |
41404 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41405 | emulate sh | |
41406 | NULLCMD=: | |
41407 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41408 | # is contrary to our usage. Disable this feature. | |
41409 | alias -g '${1+"$@"}'='"$@"' | |
41410 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41411 | set -o posix | |
41412 | fi | |
ac1cb8d3 | 41413 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41414 | |
41415 | # Support unset when possible. | |
ac1cb8d3 | 41416 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41417 | as_unset=unset |
41418 | else | |
41419 | as_unset=false | |
41420 | fi | |
41421 | ||
41422 | ||
41423 | # Work around bugs in pre-3.0 UWIN ksh. | |
41424 | $as_unset ENV MAIL MAILPATH | |
41425 | PS1='$ ' | |
41426 | PS2='> ' | |
41427 | PS4='+ ' | |
41428 | ||
41429 | # NLS nuisances. | |
41430 | for as_var in \ | |
41431 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41432 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41433 | LC_TELEPHONE LC_TIME | |
41434 | do | |
ac1cb8d3 | 41435 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41436 | eval $as_var=C; export $as_var |
41437 | else | |
41438 | $as_unset $as_var | |
41439 | fi | |
41440 | done | |
41441 | ||
41442 | # Required to use basename. | |
41443 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41444 | as_expr=expr | |
41445 | else | |
41446 | as_expr=false | |
41447 | fi | |
41448 | ||
41449 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41450 | as_basename=basename | |
41451 | else | |
41452 | as_basename=false | |
41453 | fi | |
41454 | ||
41455 | ||
41456 | # Name of the executable. | |
41457 | as_me=`$as_basename "$0" || | |
41458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41459 | X"$0" : 'X\(//\)$' \| \ | |
41460 | X"$0" : 'X\(/\)$' \| \ | |
41461 | . : '\(.\)' 2>/dev/null || | |
41462 | echo X/"$0" | | |
41463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41464 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41465 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41466 | s/.*/./; q'` | |
41467 | ||
41468 | ||
41469 | # PATH needs CR, and LINENO needs CR and PATH. | |
41470 | # Avoid depending upon Character Ranges. | |
41471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41474 | as_cr_digits='0123456789' | |
41475 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41476 | ||
41477 | # The user is always right. | |
41478 | if test "${PATH_SEPARATOR+set}" != set; then | |
41479 | echo "#! /bin/sh" >conf$$.sh | |
41480 | echo "exit 0" >>conf$$.sh | |
41481 | chmod +x conf$$.sh | |
41482 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41483 | PATH_SEPARATOR=';' | |
41484 | else | |
41485 | PATH_SEPARATOR=: | |
41486 | fi | |
41487 | rm -f conf$$.sh | |
41488 | fi | |
41489 | ||
41490 | ||
41491 | as_lineno_1=$LINENO | |
41492 | as_lineno_2=$LINENO | |
41493 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41494 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41495 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41496 | # Find who we are. Look in the path if we contain no path at all | |
41497 | # relative or not. | |
41498 | case $0 in | |
41499 | *[\\/]* ) as_myself=$0 ;; | |
41500 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41501 | for as_dir in $PATH | |
41502 | do | |
41503 | IFS=$as_save_IFS | |
41504 | test -z "$as_dir" && as_dir=. | |
41505 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41506 | done | |
41507 | ||
41508 | ;; | |
41509 | esac | |
41510 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41511 | # in which case we are not to be found in the path. | |
41512 | if test "x$as_myself" = x; then | |
41513 | as_myself=$0 | |
41514 | fi | |
41515 | if test ! -f "$as_myself"; then | |
41516 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41517 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41518 | { (exit 1); exit 1; }; } | |
41519 | fi | |
41520 | case $CONFIG_SHELL in | |
41521 | '') | |
41522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41523 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41524 | do | |
41525 | IFS=$as_save_IFS | |
41526 | test -z "$as_dir" && as_dir=. | |
41527 | for as_base in sh bash ksh sh5; do | |
41528 | case $as_dir in | |
41529 | /*) | |
41530 | if ("$as_dir/$as_base" -c ' | |
41531 | as_lineno_1=$LINENO | |
41532 | as_lineno_2=$LINENO | |
41533 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41534 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41535 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41536 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41537 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41538 | CONFIG_SHELL=$as_dir/$as_base | |
41539 | export CONFIG_SHELL | |
41540 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41541 | fi;; | |
41542 | esac | |
41543 | done | |
41544 | done | |
41545 | ;; | |
41546 | esac | |
41547 | ||
41548 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41549 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41550 | # line-number line before each line; the second 'sed' does the real | |
41551 | # work. The second script uses 'N' to pair each line-number line | |
41552 | # with the numbered line, and appends trailing '-' during | |
41553 | # substitution so that $LINENO is not a special case at line end. | |
41554 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41555 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41556 | sed '=' <$as_myself | | |
41557 | sed ' | |
41558 | N | |
41559 | s,$,-, | |
41560 | : loop | |
41561 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41562 | t loop | |
41563 | s,-$,, | |
41564 | s,^['$as_cr_digits']*\n,, | |
41565 | ' >$as_me.lineno && | |
41566 | chmod +x $as_me.lineno || | |
41567 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41568 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41569 | { (exit 1); exit 1; }; } | |
41570 | ||
41571 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41572 | # (the dirname of $[0] is not the place where we might find the | |
41573 | # original and so on. Autoconf is especially sensible to this). | |
41574 | . ./$as_me.lineno | |
41575 | # Exit status is that of the last command. | |
41576 | exit | |
41577 | } | |
41578 | ||
41579 | ||
41580 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41581 | *c*,-n*) ECHO_N= ECHO_C=' | |
41582 | ' ECHO_T=' ' ;; | |
41583 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41584 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41585 | esac | |
41586 | ||
41587 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41588 | as_expr=expr | |
41589 | else | |
41590 | as_expr=false | |
41591 | fi | |
41592 | ||
41593 | rm -f conf$$ conf$$.exe conf$$.file | |
41594 | echo >conf$$.file | |
41595 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41596 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41597 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41598 | if test -f conf$$.exe; then | |
41599 | # Don't use ln at all; we don't have any links | |
41600 | as_ln_s='cp -p' | |
41601 | else | |
41602 | as_ln_s='ln -s' | |
41603 | fi | |
41604 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41605 | as_ln_s=ln | |
41606 | else | |
41607 | as_ln_s='cp -p' | |
41608 | fi | |
41609 | rm -f conf$$ conf$$.exe conf$$.file | |
41610 | ||
41611 | if mkdir -p . 2>/dev/null; then | |
41612 | as_mkdir_p=: | |
41613 | else | |
ac1cb8d3 | 41614 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41615 | as_mkdir_p=false |
41616 | fi | |
41617 | ||
41618 | as_executable_p="test -f" | |
41619 | ||
41620 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41621 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41622 | |
41623 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41624 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41625 | |
41626 | ||
41627 | # IFS | |
41628 | # We need space, tab and new line, in precisely that order. | |
41629 | as_nl=' | |
41630 | ' | |
41631 | IFS=" $as_nl" | |
41632 | ||
41633 | # CDPATH. | |
41634 | $as_unset CDPATH | |
41635 | ||
41636 | exec 6>&1 | |
41637 | ||
41638 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41639 | # report actual input values of CONFIG_FILES etc. instead of their | |
41640 | # values after options handling. Logging --version etc. is OK. | |
41641 | exec 5>>config.log | |
41642 | { | |
41643 | echo | |
41644 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41645 | ## Running $as_me. ## | |
41646 | _ASBOX | |
41647 | } >&5 | |
41648 | cat >&5 <<_CSEOF | |
41649 | ||
7714864e | 41650 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 41651 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41652 | |
41653 | CONFIG_FILES = $CONFIG_FILES | |
41654 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41655 | CONFIG_LINKS = $CONFIG_LINKS | |
41656 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41657 | $ $0 $@ | |
41658 | ||
41659 | _CSEOF | |
41660 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41661 | echo >&5 | |
41662 | _ACEOF | |
41663 | ||
41664 | # Files that config.status was made for. | |
41665 | if test -n "$ac_config_files"; then | |
41666 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41667 | fi | |
41668 | ||
41669 | if test -n "$ac_config_headers"; then | |
41670 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41671 | fi | |
41672 | ||
41673 | if test -n "$ac_config_links"; then | |
41674 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41675 | fi | |
41676 | ||
41677 | if test -n "$ac_config_commands"; then | |
41678 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41679 | fi | |
41680 | ||
41681 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41682 | ||
41683 | ac_cs_usage="\ | |
41684 | \`$as_me' instantiates files from templates according to the | |
41685 | current configuration. | |
41686 | ||
41687 | Usage: $0 [OPTIONS] [FILE]... | |
41688 | ||
41689 | -h, --help print this help, then exit | |
41690 | -V, --version print version number, then exit | |
41691 | -q, --quiet do not print progress messages | |
41692 | -d, --debug don't remove temporary files | |
41693 | --recheck update $as_me by reconfiguring in the same conditions | |
41694 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41695 | instantiate the configuration file FILE |
a848cd7e | 41696 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41697 | instantiate the configuration header FILE |
a848cd7e SC |
41698 | |
41699 | Configuration files: | |
41700 | $config_files | |
41701 | ||
41702 | Configuration headers: | |
41703 | $config_headers | |
41704 | ||
41705 | Configuration commands: | |
41706 | $config_commands | |
41707 | ||
41708 | Report bugs to <bug-autoconf@gnu.org>." | |
41709 | _ACEOF | |
41710 | ||
41711 | cat >>$CONFIG_STATUS <<_ACEOF | |
41712 | ac_cs_version="\\ | |
7714864e | 41713 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 41714 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41715 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41716 | ||
ac1cb8d3 | 41717 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41718 | This config.status script is free software; the Free Software Foundation |
41719 | gives unlimited permission to copy, distribute and modify it." | |
41720 | srcdir=$srcdir | |
41721 | INSTALL="$INSTALL" | |
41722 | _ACEOF | |
41723 | ||
41724 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41725 | # If no file are specified by the user, then we need to provide default | |
41726 | # value. By we need to know if files were specified by the user. | |
41727 | ac_need_defaults=: | |
41728 | while test $# != 0 | |
41729 | do | |
41730 | case $1 in | |
41731 | --*=*) | |
41732 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41733 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41734 | ac_shift=: | |
41735 | ;; | |
41736 | -*) | |
41737 | ac_option=$1 | |
41738 | ac_optarg=$2 | |
41739 | ac_shift=shift | |
41740 | ;; | |
41741 | *) # This is not an option, so the user has probably given explicit | |
41742 | # arguments. | |
41743 | ac_option=$1 | |
41744 | ac_need_defaults=false;; | |
41745 | esac | |
41746 | ||
41747 | case $ac_option in | |
41748 | # Handling of the options. | |
41749 | _ACEOF | |
41750 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41751 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41752 | ac_cs_recheck=: ;; | |
41753 | --version | --vers* | -V ) | |
41754 | echo "$ac_cs_version"; exit 0 ;; | |
41755 | --he | --h) | |
41756 | # Conflict between --help and --header | |
41757 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41758 | Try \`$0 --help' for more information." >&5 | |
41759 | echo "$as_me: error: ambiguous option: $1 | |
41760 | Try \`$0 --help' for more information." >&2;} | |
41761 | { (exit 1); exit 1; }; };; | |
41762 | --help | --hel | -h ) | |
41763 | echo "$ac_cs_usage"; exit 0 ;; | |
41764 | --debug | --d* | -d ) | |
41765 | debug=: ;; | |
41766 | --file | --fil | --fi | --f ) | |
41767 | $ac_shift | |
41768 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41769 | ac_need_defaults=false;; | |
41770 | --header | --heade | --head | --hea ) | |
41771 | $ac_shift | |
41772 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41773 | ac_need_defaults=false;; | |
41774 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41775 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41776 | ac_cs_silent=: ;; | |
41777 | ||
41778 | # This is an error. | |
41779 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41780 | Try \`$0 --help' for more information." >&5 | |
41781 | echo "$as_me: error: unrecognized option: $1 | |
41782 | Try \`$0 --help' for more information." >&2;} | |
41783 | { (exit 1); exit 1; }; } ;; | |
41784 | ||
41785 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41786 | ||
41787 | esac | |
41788 | shift | |
41789 | done | |
41790 | ||
41791 | ac_configure_extra_args= | |
41792 | ||
41793 | if $ac_cs_silent; then | |
41794 | exec 6>/dev/null | |
41795 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41796 | fi | |
41797 | ||
41798 | _ACEOF | |
41799 | cat >>$CONFIG_STATUS <<_ACEOF | |
41800 | if \$ac_cs_recheck; then | |
41801 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41802 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41803 | fi | |
41804 | ||
41805 | _ACEOF | |
41806 | ||
41807 | cat >>$CONFIG_STATUS <<_ACEOF | |
41808 | # | |
41809 | # INIT-COMMANDS section. | |
41810 | # | |
41811 | ||
ceec2216 RL |
41812 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
41813 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41814 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41815 | LN_S="${LN_S}" | |
a848cd7e SC |
41816 | |
41817 | ||
41818 | _ACEOF | |
41819 | ||
41820 | ||
41821 | ||
41822 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41823 | for ac_config_target in $ac_config_targets | |
41824 | do | |
41825 | case "$ac_config_target" in | |
41826 | # Handling of arguments. | |
ceec2216 RL |
41827 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
41828 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
41829 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41830 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41831 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
41832 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
41833 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
a848cd7e SC |
41834 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
41835 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41836 | { (exit 1); exit 1; }; };; | |
41837 | esac | |
41838 | done | |
41839 | ||
41840 | # If the user did not use the arguments to specify the items to instantiate, | |
41841 | # then the envvar interface is used. Set only those that are not. | |
41842 | # We use the long form for the default assignment because of an extremely | |
41843 | # bizarre bug on SunOS 4.1.3. | |
41844 | if $ac_need_defaults; then | |
41845 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41846 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41847 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41848 | fi | |
41849 | ||
41850 | # Have a temporary directory for convenience. Make it in the build tree | |
41851 | # simply because there is no reason to put it here, and in addition, | |
41852 | # creating and moving files from /tmp can sometimes cause problems. | |
41853 | # Create a temporary directory, and hook for its removal unless debugging. | |
41854 | $debug || | |
41855 | { | |
41856 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41857 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41858 | } | |
41859 | ||
41860 | # Create a (secure) tmp directory for tmp files. | |
41861 | ||
41862 | { | |
41863 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
41864 | test -n "$tmp" && test -d "$tmp" | |
41865 | } || | |
41866 | { | |
41867 | tmp=./confstat$$-$RANDOM | |
41868 | (umask 077 && mkdir $tmp) | |
41869 | } || | |
41870 | { | |
41871 | echo "$me: cannot create a temporary directory in ." >&2 | |
41872 | { (exit 1); exit 1; } | |
41873 | } | |
41874 | ||
41875 | _ACEOF | |
41876 | ||
41877 | cat >>$CONFIG_STATUS <<_ACEOF | |
41878 | ||
41879 | # | |
41880 | # CONFIG_FILES section. | |
41881 | # | |
41882 | ||
41883 | # No need to generate the scripts if there are no CONFIG_FILES. | |
41884 | # This happens for instance when ./config.status config.h | |
41885 | if test -n "\$CONFIG_FILES"; then | |
41886 | # Protect against being on the right side of a sed subst in config.status. | |
41887 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
41888 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
41889 | s,@SHELL@,$SHELL,;t t | |
41890 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
41891 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
41892 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
41893 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
41894 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
41895 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
41896 | s,@exec_prefix@,$exec_prefix,;t t | |
41897 | s,@prefix@,$prefix,;t t | |
41898 | s,@program_transform_name@,$program_transform_name,;t t | |
41899 | s,@bindir@,$bindir,;t t | |
41900 | s,@sbindir@,$sbindir,;t t | |
41901 | s,@libexecdir@,$libexecdir,;t t | |
41902 | s,@datadir@,$datadir,;t t | |
41903 | s,@sysconfdir@,$sysconfdir,;t t | |
41904 | s,@sharedstatedir@,$sharedstatedir,;t t | |
41905 | s,@localstatedir@,$localstatedir,;t t | |
41906 | s,@libdir@,$libdir,;t t | |
41907 | s,@includedir@,$includedir,;t t | |
41908 | s,@oldincludedir@,$oldincludedir,;t t | |
41909 | s,@infodir@,$infodir,;t t | |
41910 | s,@mandir@,$mandir,;t t | |
41911 | s,@build_alias@,$build_alias,;t t | |
41912 | s,@host_alias@,$host_alias,;t t | |
41913 | s,@target_alias@,$target_alias,;t t | |
41914 | s,@DEFS@,$DEFS,;t t | |
41915 | s,@ECHO_C@,$ECHO_C,;t t | |
41916 | s,@ECHO_N@,$ECHO_N,;t t | |
41917 | s,@ECHO_T@,$ECHO_T,;t t | |
41918 | s,@LIBS@,$LIBS,;t t | |
41919 | s,@build@,$build,;t t | |
41920 | s,@build_cpu@,$build_cpu,;t t | |
41921 | s,@build_vendor@,$build_vendor,;t t | |
41922 | s,@build_os@,$build_os,;t t | |
41923 | s,@host@,$host,;t t | |
41924 | s,@host_cpu@,$host_cpu,;t t | |
41925 | s,@host_vendor@,$host_vendor,;t t | |
41926 | s,@host_os@,$host_os,;t t | |
41927 | s,@target@,$target,;t t | |
41928 | s,@target_cpu@,$target_cpu,;t t | |
41929 | s,@target_vendor@,$target_vendor,;t t | |
41930 | s,@target_os@,$target_os,;t t | |
41931 | s,@CC@,$CC,;t t | |
41932 | s,@CFLAGS@,$CFLAGS,;t t | |
41933 | s,@LDFLAGS@,$LDFLAGS,;t t | |
41934 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
41935 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
41936 | s,@EXEEXT@,$EXEEXT,;t t | |
41937 | s,@OBJEXT@,$OBJEXT,;t t | |
41938 | s,@CPP@,$CPP,;t t | |
41939 | s,@EGREP@,$EGREP,;t t | |
41940 | s,@CXX@,$CXX,;t t | |
41941 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
41942 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
41943 | s,@RANLIB@,$RANLIB,;t t | |
41944 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
41945 | s,@AR@,$AR,;t t | |
41946 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
41947 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
41948 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
41949 | s,@STRIP@,$STRIP,;t t | |
41950 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
41951 | s,@LN_S@,$LN_S,;t t | |
41952 | s,@CXXCPP@,$CXXCPP,;t t | |
41953 | s,@subdirs@,$subdirs,;t t | |
41954 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
41955 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
41956 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
41957 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
41958 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
41959 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
41960 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
41961 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
41962 | s,@X_LIBS@,$X_LIBS,;t t | |
41963 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
41964 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
41965 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
41966 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
41967 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
41968 | s,@RESCOMP@,$RESCOMP,;t t | |
41969 | s,@DEREZ@,$DEREZ,;t t | |
41970 | s,@SETFILE@,$SETFILE,;t t | |
41971 | s,@LIBICONV@,$LIBICONV,;t t | |
41972 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
41973 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
41974 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
41975 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
41976 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
41977 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
41978 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
41979 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
41980 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
41981 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
41982 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
41983 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
41984 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
41985 | s,@VENDOR@,$VENDOR,;t t | |
41986 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
41987 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
41988 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
41989 | s,@WXUNIV@,$WXUNIV,;t t |
41990 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
41991 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
41992 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
41993 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
41994 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
41995 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
41996 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
41997 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
41998 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
41999 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
42000 | s,@UNICODE@,$UNICODE,;t t | |
42001 | s,@BUILD@,$BUILD,;t t | |
42002 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42003 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42004 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42005 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42006 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42007 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42008 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42009 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42010 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42011 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42012 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42013 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42014 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42015 | s,@NM@,$NM,;t t | |
42016 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42017 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42018 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42019 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42020 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42021 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42022 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42023 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42024 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42025 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42026 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42027 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42028 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42029 | s,@LIBEXT@,$LIBEXT,;t t | |
42030 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42031 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42032 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42033 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42034 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42035 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42036 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42037 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42038 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42039 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42040 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42041 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42042 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42043 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42044 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42045 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42046 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42047 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42048 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42049 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42050 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42051 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42052 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42053 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42054 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42055 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42056 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42057 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42058 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42059 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42060 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42061 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42062 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42063 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42064 | 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 | |
42065 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42066 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42067 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42068 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42069 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42070 | 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 | |
42071 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42072 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42073 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42074 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42075 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42076 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42077 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42078 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42079 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42080 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42081 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
42082 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
42083 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42084 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42085 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42086 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42087 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42088 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
42089 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
42090 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42091 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42092 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42093 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42094 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42095 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42096 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42097 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42098 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42099 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42100 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42101 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42102 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42103 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42104 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42105 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42106 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42107 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42108 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42109 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42110 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
42111 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
42112 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
42113 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42114 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42115 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42116 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42117 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42118 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42119 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42120 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42121 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42122 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42123 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42124 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42125 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42126 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42127 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42128 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42129 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42130 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42131 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42132 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42133 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42134 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42135 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42136 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42137 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42138 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42139 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42140 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42141 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42142 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42143 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42144 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42145 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
a848cd7e SC |
42146 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42147 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42148 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42149 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42150 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42151 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42152 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
42153 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42154 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42155 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42156 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42157 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42158 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42159 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42160 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42161 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42162 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42163 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42164 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42165 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42166 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42167 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42168 | s,@USE_GUI@,$USE_GUI,;t t | |
42169 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42170 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42171 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42172 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42173 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42174 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42175 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42176 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42177 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42178 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42179 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42180 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42181 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42182 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42183 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42184 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42185 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42186 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42187 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42188 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42189 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42190 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42191 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42192 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42193 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42194 | s,@DISTDIR@,$DISTDIR,;t t |
42195 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42196 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42197 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42198 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42199 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42200 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42201 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42202 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42203 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42204 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42205 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42206 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42207 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42208 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42209 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42210 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42211 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42212 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42213 | CEOF | |
42214 | ||
42215 | _ACEOF | |
42216 | ||
42217 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42218 | # Split the substitutions into bite-sized pieces for seds with | |
42219 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42220 | ac_max_sed_lines=48 | |
42221 | ac_sed_frag=1 # Number of current file. | |
42222 | ac_beg=1 # First line for current file. | |
42223 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42224 | ac_more_lines=: | |
42225 | ac_sed_cmds= | |
42226 | while $ac_more_lines; do | |
42227 | if test $ac_beg -gt 1; then | |
42228 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42229 | else | |
42230 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42231 | fi | |
42232 | if test ! -s $tmp/subs.frag; then | |
42233 | ac_more_lines=false | |
42234 | else | |
42235 | # The purpose of the label and of the branching condition is to | |
42236 | # speed up the sed processing (if there are no `@' at all, there | |
42237 | # is no need to browse any of the substitutions). | |
42238 | # These are the two extra sed commands mentioned above. | |
42239 | (echo ':t | |
42240 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42241 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42242 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42243 | else |
ac1cb8d3 | 42244 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42245 | fi |
42246 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42247 | ac_beg=$ac_end | |
42248 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42249 | fi | |
42250 | done | |
42251 | if test -z "$ac_sed_cmds"; then | |
42252 | ac_sed_cmds=cat | |
42253 | fi | |
42254 | fi # test -n "$CONFIG_FILES" | |
42255 | ||
42256 | _ACEOF | |
42257 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42258 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42259 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42260 | case $ac_file in | |
42261 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42262 | cat >$tmp/stdin |
42263 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42264 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42265 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42266 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42267 | * ) ac_file_in=$ac_file.in ;; |
42268 | esac | |
42269 | ||
42270 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42271 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42272 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42273 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42274 | X"$ac_file" : 'X\(//\)$' \| \ | |
42275 | X"$ac_file" : 'X\(/\)' \| \ | |
42276 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42277 | echo X"$ac_file" | |
42278 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42279 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42280 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42281 | /^X\(\/\).*/{ s//\1/; q; } | |
42282 | s/.*/./; q'` | |
42283 | { if $as_mkdir_p; then | |
42284 | mkdir -p "$ac_dir" | |
42285 | else | |
42286 | as_dir="$ac_dir" | |
42287 | as_dirs= | |
42288 | while test ! -d "$as_dir"; do | |
42289 | as_dirs="$as_dir $as_dirs" | |
42290 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42291 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42292 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42293 | X"$as_dir" : 'X\(//\)$' \| \ | |
42294 | X"$as_dir" : 'X\(/\)' \| \ | |
42295 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42296 | echo X"$as_dir" | |
42297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42298 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42299 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42300 | /^X\(\/\).*/{ s//\1/; q; } | |
42301 | s/.*/./; q'` | |
42302 | done | |
42303 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42304 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42305 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42306 | { (exit 1); exit 1; }; }; } | |
42307 | ||
42308 | ac_builddir=. | |
42309 | ||
42310 | if test "$ac_dir" != .; then | |
42311 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42312 | # A "../" for each directory in $ac_dir_suffix. | |
42313 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42314 | else | |
42315 | ac_dir_suffix= ac_top_builddir= | |
42316 | fi | |
42317 | ||
42318 | case $srcdir in | |
42319 | .) # No --srcdir option. We are building in place. | |
42320 | ac_srcdir=. | |
42321 | if test -z "$ac_top_builddir"; then | |
42322 | ac_top_srcdir=. | |
42323 | else | |
42324 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42325 | fi ;; | |
42326 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42327 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42328 | ac_top_srcdir=$srcdir ;; | |
42329 | *) # Relative path. | |
42330 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42331 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42332 | esac | |
ac1cb8d3 VS |
42333 | |
42334 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42335 | # the directories may not exist. | |
42336 | case `pwd` in | |
42337 | .) ac_abs_builddir="$ac_dir";; | |
42338 | *) | |
42339 | case "$ac_dir" in | |
42340 | .) ac_abs_builddir=`pwd`;; | |
42341 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42342 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42343 | esac;; | |
42344 | esac | |
42345 | case $ac_abs_builddir in | |
42346 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42347 | *) | |
42348 | case ${ac_top_builddir}. in | |
42349 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42350 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42351 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42352 | esac;; | |
42353 | esac | |
42354 | case $ac_abs_builddir in | |
42355 | .) ac_abs_srcdir=$ac_srcdir;; | |
42356 | *) | |
42357 | case $ac_srcdir in | |
42358 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42359 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42360 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42361 | esac;; | |
42362 | esac | |
42363 | case $ac_abs_builddir in | |
42364 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42365 | *) | |
42366 | case $ac_top_srcdir in | |
42367 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42368 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42369 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42370 | esac;; | |
42371 | esac | |
a848cd7e SC |
42372 | |
42373 | ||
42374 | case $INSTALL in | |
42375 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42376 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42377 | esac | |
42378 | ||
a848cd7e SC |
42379 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42380 | # use $as_me), people would be surprised to read: | |
42381 | # /* config.h. Generated by config.status. */ | |
42382 | if test x"$ac_file" = x-; then | |
42383 | configure_input= | |
42384 | else | |
42385 | configure_input="$ac_file. " | |
42386 | fi | |
42387 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42388 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42389 | |
42390 | # First look for the input files in the build tree, otherwise in the | |
42391 | # src tree. | |
42392 | ac_file_inputs=`IFS=: | |
42393 | for f in $ac_file_in; do | |
42394 | case $f in | |
42395 | -) echo $tmp/stdin ;; | |
42396 | [\\/$]*) | |
ac1cb8d3 VS |
42397 | # Absolute (can't be DOS-style, as IFS=:) |
42398 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42399 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42400 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42401 | echo "$f";; |
a848cd7e | 42402 | *) # Relative |
ac1cb8d3 VS |
42403 | if test -f "$f"; then |
42404 | # Build tree | |
42405 | echo "$f" | |
42406 | elif test -f "$srcdir/$f"; then | |
42407 | # Source tree | |
42408 | echo "$srcdir/$f" | |
42409 | else | |
42410 | # /dev/null tree | |
42411 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42412 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42413 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42414 | fi;; |
a848cd7e SC |
42415 | esac |
42416 | done` || { (exit 1); exit 1; } | |
7714864e RL |
42417 | |
42418 | if test x"$ac_file" != x-; then | |
42419 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42420 | echo "$as_me: creating $ac_file" >&6;} | |
42421 | rm -f "$ac_file" | |
42422 | fi | |
a848cd7e SC |
42423 | _ACEOF |
42424 | cat >>$CONFIG_STATUS <<_ACEOF | |
42425 | sed "$ac_vpsub | |
42426 | $extrasub | |
42427 | _ACEOF | |
42428 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42429 | :t | |
42430 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42431 | s,@configure_input@,$configure_input,;t t | |
42432 | s,@srcdir@,$ac_srcdir,;t t | |
42433 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42434 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42435 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42436 | s,@builddir@,$ac_builddir,;t t | |
42437 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42438 | s,@top_builddir@,$ac_top_builddir,;t t | |
42439 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42440 | s,@INSTALL@,$ac_INSTALL,;t t | |
42441 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42442 | rm -f $tmp/stdin | |
42443 | if test x"$ac_file" != x-; then | |
42444 | mv $tmp/out $ac_file | |
42445 | else | |
42446 | cat $tmp/out | |
42447 | rm -f $tmp/out | |
42448 | fi | |
42449 | ||
ceec2216 RL |
42450 | # Run the commands associated with the file. |
42451 | case $ac_file in | |
42452 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42453 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42454 | esac | |
a848cd7e SC |
42455 | done |
42456 | _ACEOF | |
42457 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42458 | ||
42459 | # | |
42460 | # CONFIG_HEADER section. | |
42461 | # | |
42462 | ||
42463 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42464 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42465 | # | |
42466 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42467 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42468 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42469 | ac_dC=' ' |
42470 | ac_dD=',;t' | |
42471 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42472 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42473 | ac_uB='$,\1#\2define\3' |
42474 | ac_uC=' ' | |
42475 | ac_uD=',;t' | |
42476 | ||
42477 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42478 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42479 | case $ac_file in | |
42480 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42481 | cat >$tmp/stdin |
42482 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42483 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42484 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42485 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42486 | * ) ac_file_in=$ac_file.in ;; |
42487 | esac | |
42488 | ||
42489 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42490 | echo "$as_me: creating $ac_file" >&6;} | |
42491 | ||
42492 | # First look for the input files in the build tree, otherwise in the | |
42493 | # src tree. | |
42494 | ac_file_inputs=`IFS=: | |
42495 | for f in $ac_file_in; do | |
42496 | case $f in | |
42497 | -) echo $tmp/stdin ;; | |
42498 | [\\/$]*) | |
ac1cb8d3 VS |
42499 | # Absolute (can't be DOS-style, as IFS=:) |
42500 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42501 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42502 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42503 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42504 | echo "$f";; | |
a848cd7e | 42505 | *) # Relative |
ac1cb8d3 VS |
42506 | if test -f "$f"; then |
42507 | # Build tree | |
42508 | echo "$f" | |
42509 | elif test -f "$srcdir/$f"; then | |
42510 | # Source tree | |
42511 | echo "$srcdir/$f" | |
42512 | else | |
42513 | # /dev/null tree | |
42514 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42515 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42516 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42517 | fi;; |
a848cd7e SC |
42518 | esac |
42519 | done` || { (exit 1); exit 1; } | |
42520 | # Remove the trailing spaces. | |
ac1cb8d3 | 42521 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42522 | |
42523 | _ACEOF | |
42524 | ||
42525 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42526 | # `conftest.undefs', that substitutes the proper values into | |
42527 | # config.h.in to produce config.h. The first handles `#define' | |
42528 | # templates, and the second `#undef' templates. | |
42529 | # And first: Protect against being on the right side of a sed subst in | |
42530 | # config.status. Protect against being in an unquoted here document | |
42531 | # in config.status. | |
42532 | rm -f conftest.defines conftest.undefs | |
42533 | # Using a here document instead of a string reduces the quoting nightmare. | |
42534 | # Putting comments in sed scripts is not portable. | |
42535 | # | |
42536 | # `end' is used to avoid that the second main sed command (meant for | |
42537 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42538 | # See the Autoconf documentation for `clear'. | |
42539 | cat >confdef2sed.sed <<\_ACEOF | |
42540 | s/[\\&,]/\\&/g | |
42541 | s,[\\$`],\\&,g | |
42542 | t clear | |
42543 | : clear | |
ac1cb8d3 | 42544 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42545 | t end |
ac1cb8d3 | 42546 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42547 | : end |
42548 | _ACEOF | |
42549 | # If some macros were called several times there might be several times | |
42550 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42551 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42552 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42553 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42554 | rm -f confdef2sed.sed | |
42555 | ||
42556 | # This sed command replaces #undef with comments. This is necessary, for | |
42557 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42558 | # on some systems where configure will not decide to define it. | |
42559 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42560 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42561 | _ACEOF |
42562 | ||
42563 | # Break up conftest.defines because some shells have a limit on the size | |
42564 | # of here documents, and old seds have small limits too (100 cmds). | |
42565 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42566 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42567 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42568 | echo ' :' >>$CONFIG_STATUS | |
42569 | rm -f conftest.tail | |
42570 | while grep . conftest.defines >/dev/null | |
42571 | do | |
42572 | # Write a limited-size here document to $tmp/defines.sed. | |
42573 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42574 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42575 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42576 | # Work around the forget-to-reset-the-flag bug. |
42577 | echo 't clr' >>$CONFIG_STATUS | |
42578 | echo ': clr' >>$CONFIG_STATUS | |
42579 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42580 | echo 'CEOF | |
42581 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42582 | rm -f $tmp/in | |
42583 | mv $tmp/out $tmp/in | |
42584 | ' >>$CONFIG_STATUS | |
42585 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42586 | rm -f conftest.defines | |
42587 | mv conftest.tail conftest.defines | |
42588 | done | |
42589 | rm -f conftest.defines | |
42590 | echo ' fi # grep' >>$CONFIG_STATUS | |
42591 | echo >>$CONFIG_STATUS | |
42592 | ||
42593 | # Break up conftest.undefs because some shells have a limit on the size | |
42594 | # of here documents, and old seds have small limits too (100 cmds). | |
42595 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42596 | rm -f conftest.tail | |
42597 | while grep . conftest.undefs >/dev/null | |
42598 | do | |
42599 | # Write a limited-size here document to $tmp/undefs.sed. | |
42600 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42601 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42602 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42603 | # Work around the forget-to-reset-the-flag bug. |
42604 | echo 't clr' >>$CONFIG_STATUS | |
42605 | echo ': clr' >>$CONFIG_STATUS | |
42606 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42607 | echo 'CEOF | |
42608 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42609 | rm -f $tmp/in | |
42610 | mv $tmp/out $tmp/in | |
42611 | ' >>$CONFIG_STATUS | |
42612 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42613 | rm -f conftest.undefs | |
42614 | mv conftest.tail conftest.undefs | |
42615 | done | |
42616 | rm -f conftest.undefs | |
42617 | ||
42618 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42619 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42620 | # use $as_me), people would be surprised to read: | |
42621 | # /* config.h. Generated by config.status. */ | |
42622 | if test x"$ac_file" = x-; then | |
42623 | echo "/* Generated by configure. */" >$tmp/config.h | |
42624 | else | |
42625 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42626 | fi | |
42627 | cat $tmp/in >>$tmp/config.h | |
42628 | rm -f $tmp/in | |
42629 | if test x"$ac_file" != x-; then | |
42630 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42631 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42632 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42633 | else | |
42634 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42635 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42636 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42637 | X"$ac_file" : 'X\(//\)$' \| \ | |
42638 | X"$ac_file" : 'X\(/\)' \| \ | |
42639 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42640 | echo X"$ac_file" | |
42641 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42642 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42643 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42644 | /^X\(\/\).*/{ s//\1/; q; } | |
42645 | s/.*/./; q'` | |
42646 | { if $as_mkdir_p; then | |
42647 | mkdir -p "$ac_dir" | |
42648 | else | |
42649 | as_dir="$ac_dir" | |
42650 | as_dirs= | |
42651 | while test ! -d "$as_dir"; do | |
42652 | as_dirs="$as_dir $as_dirs" | |
42653 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42654 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42655 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42656 | X"$as_dir" : 'X\(//\)$' \| \ | |
42657 | X"$as_dir" : 'X\(/\)' \| \ | |
42658 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42659 | echo X"$as_dir" | |
42660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42662 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42663 | /^X\(\/\).*/{ s//\1/; q; } | |
42664 | s/.*/./; q'` | |
42665 | done | |
42666 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42667 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42668 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42669 | { (exit 1); exit 1; }; }; } | |
42670 | ||
42671 | rm -f $ac_file | |
42672 | mv $tmp/config.h $ac_file | |
42673 | fi | |
42674 | else | |
42675 | cat $tmp/config.h | |
42676 | rm -f $tmp/config.h | |
42677 | fi | |
42678 | done | |
42679 | _ACEOF | |
42680 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42681 | ||
42682 | # | |
42683 | # CONFIG_COMMANDS section. | |
42684 | # | |
42685 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42686 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42687 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42688 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42689 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42690 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42691 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42692 | X"$ac_dest" : 'X\(/\)' \| \ | |
42693 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42694 | echo X"$ac_dest" | |
42695 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42696 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42697 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42698 | /^X\(\/\).*/{ s//\1/; q; } | |
42699 | s/.*/./; q'` | |
ac1cb8d3 VS |
42700 | { if $as_mkdir_p; then |
42701 | mkdir -p "$ac_dir" | |
42702 | else | |
42703 | as_dir="$ac_dir" | |
42704 | as_dirs= | |
42705 | while test ! -d "$as_dir"; do | |
42706 | as_dirs="$as_dir $as_dirs" | |
42707 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42708 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42709 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42710 | X"$as_dir" : 'X\(//\)$' \| \ | |
42711 | X"$as_dir" : 'X\(/\)' \| \ | |
42712 | . : '\(.\)' 2>/dev/null || | |
42713 | echo X"$as_dir" | | |
42714 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42715 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42716 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42717 | /^X\(\/\).*/{ s//\1/; q; } | |
42718 | s/.*/./; q'` | |
42719 | done | |
42720 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42721 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42722 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42723 | { (exit 1); exit 1; }; }; } | |
42724 | ||
a848cd7e SC |
42725 | ac_builddir=. |
42726 | ||
42727 | if test "$ac_dir" != .; then | |
42728 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42729 | # A "../" for each directory in $ac_dir_suffix. | |
42730 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42731 | else | |
42732 | ac_dir_suffix= ac_top_builddir= | |
42733 | fi | |
42734 | ||
42735 | case $srcdir in | |
42736 | .) # No --srcdir option. We are building in place. | |
42737 | ac_srcdir=. | |
42738 | if test -z "$ac_top_builddir"; then | |
42739 | ac_top_srcdir=. | |
42740 | else | |
42741 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42742 | fi ;; | |
42743 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42744 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42745 | ac_top_srcdir=$srcdir ;; | |
42746 | *) # Relative path. | |
42747 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42748 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42749 | esac | |
ac1cb8d3 VS |
42750 | |
42751 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42752 | # the directories may not exist. | |
42753 | case `pwd` in | |
42754 | .) ac_abs_builddir="$ac_dir";; | |
42755 | *) | |
42756 | case "$ac_dir" in | |
42757 | .) ac_abs_builddir=`pwd`;; | |
42758 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42759 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42760 | esac;; | |
42761 | esac | |
42762 | case $ac_abs_builddir in | |
42763 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42764 | *) | |
42765 | case ${ac_top_builddir}. in | |
42766 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42767 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42768 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42769 | esac;; | |
42770 | esac | |
42771 | case $ac_abs_builddir in | |
42772 | .) ac_abs_srcdir=$ac_srcdir;; | |
42773 | *) | |
42774 | case $ac_srcdir in | |
42775 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42776 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42777 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42778 | esac;; | |
42779 | esac | |
42780 | case $ac_abs_builddir in | |
42781 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42782 | *) | |
42783 | case $ac_top_srcdir in | |
42784 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42785 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42786 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42787 | esac;; | |
42788 | esac | |
a848cd7e SC |
42789 | |
42790 | ||
42791 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42792 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42793 | case $ac_dest in | |
ceec2216 RL |
42794 | wx-config ) rm -f wx-config |
42795 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
42796 | ;; | |
a848cd7e SC |
42797 | esac |
42798 | done | |
42799 | _ACEOF | |
42800 | ||
42801 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42802 | ||
42803 | { (exit 0); exit 0; } | |
42804 | _ACEOF | |
42805 | chmod +x $CONFIG_STATUS | |
42806 | ac_clean_files=$ac_clean_files_save | |
42807 | ||
42808 | ||
42809 | # configure is writing to config.log, and then calls config.status. | |
42810 | # config.status does its own redirection, appending to config.log. | |
42811 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42812 | # by configure, so config.status won't be able to write to it; its | |
42813 | # output is simply discarded. So we exec the FD to /dev/null, | |
42814 | # effectively closing config.log, so it can be properly (re)opened and | |
42815 | # appended to by config.status. When coming back to configure, we | |
42816 | # need to make the FD available again. | |
42817 | if test "$no_create" != yes; then | |
42818 | ac_cs_success=: | |
42819 | ac_config_status_args= | |
42820 | test "$silent" = yes && | |
42821 | ac_config_status_args="$ac_config_status_args --quiet" | |
42822 | exec 5>/dev/null | |
42823 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42824 | exec 5>>config.log | |
42825 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42826 | # would make configure fail if this is the last instruction. | |
42827 | $ac_cs_success || { (exit 1); exit 1; } | |
42828 | fi | |
42829 | ||
42830 | # | |
42831 | # CONFIG_SUBDIRS section. | |
42832 | # | |
42833 | if test "$no_recursion" != yes; then | |
42834 | ||
42835 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42836 | ac_sub_configure_args= | |
42837 | ac_prev= | |
42838 | for ac_arg in $ac_configure_args; do | |
42839 | if test -n "$ac_prev"; then | |
42840 | ac_prev= | |
42841 | continue | |
42842 | fi | |
42843 | case $ac_arg in | |
42844 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42845 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42846 | ac_prev=cache_file ;; | |
42847 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42848 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42849 | | --c=*) | |
42850 | ;; | |
42851 | --config-cache | -C) | |
42852 | ;; | |
42853 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42854 | ac_prev=srcdir ;; | |
42855 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42856 | ;; | |
42857 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42858 | ac_prev=prefix ;; | |
42859 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42860 | ;; | |
42861 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
42862 | esac | |
42863 | done | |
42864 | ||
42865 | # Always prepend --prefix to ensure using the same prefix | |
42866 | # in subdir configurations. | |
42867 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
42868 | ||
42869 | ac_popdir=`pwd` | |
42870 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42871 | ||
42872 | # Do not complain, so a configure script can configure whichever | |
42873 | # parts of a large source tree are present. | |
42874 | test -d $srcdir/$ac_dir || continue | |
42875 | ||
42876 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
42877 | echo "$as_me: configuring in $ac_dir" >&6;} | |
42878 | { if $as_mkdir_p; then | |
42879 | mkdir -p "$ac_dir" | |
42880 | else | |
42881 | as_dir="$ac_dir" | |
42882 | as_dirs= | |
42883 | while test ! -d "$as_dir"; do | |
42884 | as_dirs="$as_dir $as_dirs" | |
42885 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42886 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42887 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42888 | X"$as_dir" : 'X\(//\)$' \| \ | |
42889 | X"$as_dir" : 'X\(/\)' \| \ | |
42890 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42891 | echo X"$as_dir" | |
42892 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42893 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42894 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42895 | /^X\(\/\).*/{ s//\1/; q; } | |
42896 | s/.*/./; q'` | |
42897 | done | |
42898 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42899 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42900 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42901 | { (exit 1); exit 1; }; }; } | |
42902 | ||
42903 | ac_builddir=. | |
42904 | ||
42905 | if test "$ac_dir" != .; then | |
42906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42907 | # A "../" for each directory in $ac_dir_suffix. | |
42908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42909 | else | |
42910 | ac_dir_suffix= ac_top_builddir= | |
42911 | fi | |
42912 | ||
42913 | case $srcdir in | |
42914 | .) # No --srcdir option. We are building in place. | |
42915 | ac_srcdir=. | |
42916 | if test -z "$ac_top_builddir"; then | |
42917 | ac_top_srcdir=. | |
42918 | else | |
42919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42920 | fi ;; | |
42921 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42922 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42923 | ac_top_srcdir=$srcdir ;; | |
42924 | *) # Relative path. | |
42925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42927 | esac | |
ac1cb8d3 VS |
42928 | |
42929 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42930 | # the directories may not exist. | |
42931 | case `pwd` in | |
42932 | .) ac_abs_builddir="$ac_dir";; | |
42933 | *) | |
42934 | case "$ac_dir" in | |
42935 | .) ac_abs_builddir=`pwd`;; | |
42936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42938 | esac;; | |
42939 | esac | |
42940 | case $ac_abs_builddir in | |
42941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42942 | *) | |
42943 | case ${ac_top_builddir}. in | |
42944 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42947 | esac;; | |
42948 | esac | |
42949 | case $ac_abs_builddir in | |
42950 | .) ac_abs_srcdir=$ac_srcdir;; | |
42951 | *) | |
42952 | case $ac_srcdir in | |
42953 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42956 | esac;; | |
42957 | esac | |
42958 | case $ac_abs_builddir in | |
42959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42960 | *) | |
42961 | case $ac_top_srcdir in | |
42962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42965 | esac;; | |
42966 | esac | |
a848cd7e SC |
42967 | |
42968 | ||
42969 | cd $ac_dir | |
42970 | ||
42971 | # Check for guested configure; otherwise get Cygnus style configure. | |
42972 | if test -f $ac_srcdir/configure.gnu; then | |
42973 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
42974 | elif test -f $ac_srcdir/configure; then | |
42975 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
42976 | elif test -f $ac_srcdir/configure.in; then | |
42977 | ac_sub_configure=$ac_configure | |
42978 | else | |
42979 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
42980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
42981 | ac_sub_configure= | |
42982 | fi | |
42983 | ||
42984 | # The recursion is here. | |
42985 | if test -n "$ac_sub_configure"; then | |
42986 | # Make the cache file name correct relative to the subdirectory. | |
42987 | case $cache_file in | |
42988 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
42989 | *) # Relative path. | |
ac1cb8d3 | 42990 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
42991 | esac |
42992 | ||
42993 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
42994 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
42995 | # The eval makes quoting arguments work. | |
42996 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
42997 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
42998 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
42999 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43000 | { (exit 1); exit 1; }; } | |
43001 | fi | |
43002 | ||
7714864e | 43003 | cd "$ac_popdir" |
a848cd7e SC |
43004 | done |
43005 | fi | |
43006 | ||
43007 | ||
43008 | echo | |
77ffb593 | 43009 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43010 | echo "" |
4d4ff94c | 43011 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43012 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43013 | |
77ffb593 JS |
43014 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43015 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43016 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43017 | |
77ffb593 JS |
43018 | echo " What level of wxWidgets compatibility should be enabled?" |
43019 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43020 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43021 | |
77ffb593 | 43022 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43023 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43024 | echo " png ${wxUSE_LIBPNG-none}" | |
43025 | echo " regex ${wxUSE_REGEX}" | |
43026 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43027 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43028 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43029 | fi | |
43030 | echo " zlib ${wxUSE_ZLIB}" | |
43031 | echo " odbc ${wxUSE_ODBC}" | |
43032 | echo " expat ${wxUSE_EXPAT}" | |
43033 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43034 | echo " sdl ${wxUSE_LIBSDL}" | |
43035 | ||
43036 | echo "" | |
43037 |