]>
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" | |
d1c38808 | 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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_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 EXTRALIBS_GNOMEPRINT 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_ 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_MACOS_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_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_OPENGL_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 | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
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 | |
d1c38808 | 1064 | --with-gnomeprint use GNOME print for audio printing under Unix |
a848cd7e SC |
1065 | --with-opengl use OpenGL (or Mesa) |
1066 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1067 | --with-regex enable support for wxRegEx class | |
1068 | --with-zlib use zlib for LZW compression | |
1069 | --with-odbc use the IODBC and wxODBC classes | |
1070 | --with-expat enable XML support using expat parser | |
ceec2216 | 1071 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1072 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1073 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1074 | --with-x use the X Window System | |
1075 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1076 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1077 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1078 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1079 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1080 | ||
1081 | Some influential environment variables: | |
dcc1b6ad VS |
1082 | CC C compiler command |
1083 | CFLAGS C compiler flags | |
1084 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1085 | nonstandard directory <lib dir> | |
1086 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1087 | headers in a nonstandard directory <include dir> | |
1088 | CPP C preprocessor | |
1089 | CXX C++ compiler command | |
1090 | CXXFLAGS C++ compiler flags | |
1091 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1092 | |
1093 | Use these variables to override the choices made by `configure' or to help | |
1094 | it to find libraries and programs with nonstandard names/locations. | |
1095 | ||
77ffb593 | 1096 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1097 | _ACEOF |
1098 | fi | |
1099 | ||
1100 | if test "$ac_init_help" = "recursive"; then | |
1101 | # If there are subdirs, report their specific --help. | |
1102 | ac_popdir=`pwd` | |
1103 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1104 | test -d $ac_dir || continue | |
1105 | ac_builddir=. | |
1106 | ||
1107 | if test "$ac_dir" != .; then | |
1108 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1109 | # A "../" for each directory in $ac_dir_suffix. | |
1110 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1111 | else | |
1112 | ac_dir_suffix= ac_top_builddir= | |
1113 | fi | |
1114 | ||
1115 | case $srcdir in | |
1116 | .) # No --srcdir option. We are building in place. | |
1117 | ac_srcdir=. | |
1118 | if test -z "$ac_top_builddir"; then | |
1119 | ac_top_srcdir=. | |
1120 | else | |
1121 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1122 | fi ;; | |
1123 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1124 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1125 | ac_top_srcdir=$srcdir ;; | |
1126 | *) # Relative path. | |
1127 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1128 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1129 | esac | |
ac1cb8d3 VS |
1130 | |
1131 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1132 | # the directories may not exist. | |
1133 | case `pwd` in | |
1134 | .) ac_abs_builddir="$ac_dir";; | |
1135 | *) | |
1136 | case "$ac_dir" in | |
1137 | .) ac_abs_builddir=`pwd`;; | |
1138 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1139 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1140 | esac;; | |
1141 | esac | |
1142 | case $ac_abs_builddir in | |
1143 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1144 | *) | |
1145 | case ${ac_top_builddir}. in | |
1146 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1147 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1148 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1149 | esac;; | |
1150 | esac | |
1151 | case $ac_abs_builddir in | |
1152 | .) ac_abs_srcdir=$ac_srcdir;; | |
1153 | *) | |
1154 | case $ac_srcdir in | |
1155 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1156 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1157 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1158 | esac;; | |
1159 | esac | |
1160 | case $ac_abs_builddir in | |
1161 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1162 | *) | |
1163 | case $ac_top_srcdir in | |
1164 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1165 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1166 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1167 | esac;; | |
1168 | esac | |
a848cd7e SC |
1169 | |
1170 | cd $ac_dir | |
1171 | # Check for guested configure; otherwise get Cygnus style configure. | |
1172 | if test -f $ac_srcdir/configure.gnu; then | |
1173 | echo | |
1174 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1175 | elif test -f $ac_srcdir/configure; then | |
1176 | echo | |
1177 | $SHELL $ac_srcdir/configure --help=recursive | |
1178 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1179 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1180 | echo |
1181 | $ac_configure --help | |
1182 | else | |
1183 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1184 | fi | |
d1c38808 | 1185 | cd "$ac_popdir" |
a848cd7e SC |
1186 | done |
1187 | fi | |
1188 | ||
1189 | test -n "$ac_init_help" && exit 0 | |
1190 | if $ac_init_version; then | |
1191 | cat <<\_ACEOF | |
7714864e | 1192 | wxWidgets configure 2.5.3 |
ac1cb8d3 | 1193 | generated by GNU Autoconf 2.59 |
a848cd7e | 1194 | |
ac1cb8d3 | 1195 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1196 | This configure script is free software; the Free Software Foundation |
1197 | gives unlimited permission to copy, distribute and modify it. | |
1198 | _ACEOF | |
1199 | exit 0 | |
1200 | fi | |
1201 | exec 5>config.log | |
1202 | cat >&5 <<_ACEOF | |
1203 | This file contains any messages produced by compilers while | |
1204 | running configure, to aid debugging if configure makes a mistake. | |
1205 | ||
7714864e | 1206 | It was created by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 1207 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1208 | |
1209 | $ $0 $@ | |
1210 | ||
1211 | _ACEOF | |
1212 | { | |
1213 | cat <<_ASUNAME | |
1214 | ## --------- ## | |
1215 | ## Platform. ## | |
1216 | ## --------- ## | |
1217 | ||
1218 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1219 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1220 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1221 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1222 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1223 | ||
1224 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1225 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1226 | ||
1227 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1228 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1229 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1230 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1231 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1232 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1233 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | _ASUNAME | |
1236 | ||
1237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1238 | for as_dir in $PATH | |
1239 | do | |
1240 | IFS=$as_save_IFS | |
1241 | test -z "$as_dir" && as_dir=. | |
1242 | echo "PATH: $as_dir" | |
1243 | done | |
1244 | ||
1245 | } >&5 | |
1246 | ||
1247 | cat >&5 <<_ACEOF | |
1248 | ||
1249 | ||
1250 | ## ----------- ## | |
1251 | ## Core tests. ## | |
1252 | ## ----------- ## | |
1253 | ||
1254 | _ACEOF | |
1255 | ||
1256 | ||
1257 | # Keep a trace of the command line. | |
1258 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1259 | # Strip out --silent because we don't want to record it for future runs. | |
1260 | # Also quote any args containing shell meta-characters. | |
1261 | # Make two passes to allow for proper duplicate-argument suppression. | |
1262 | ac_configure_args= | |
1263 | ac_configure_args0= | |
1264 | ac_configure_args1= | |
1265 | ac_sep= | |
1266 | ac_must_keep_next=false | |
1267 | for ac_pass in 1 2 | |
1268 | do | |
1269 | for ac_arg | |
1270 | do | |
1271 | case $ac_arg in | |
1272 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1273 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1274 | | -silent | --silent | --silen | --sile | --sil) | |
1275 | continue ;; | |
1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1277 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1278 | esac | |
1279 | case $ac_pass in | |
1280 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1281 | 2) | |
1282 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1283 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1284 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1285 | else |
ac1cb8d3 VS |
1286 | case $ac_arg in |
1287 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1288 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1289 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1290 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1291 | case "$ac_configure_args0 " in | |
1292 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1293 | esac | |
1294 | ;; | |
1295 | -* ) ac_must_keep_next=true ;; | |
1296 | esac | |
a848cd7e SC |
1297 | fi |
1298 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1299 | # Get rid of the leading space. | |
1300 | ac_sep=" " | |
1301 | ;; | |
1302 | esac | |
1303 | done | |
1304 | done | |
1305 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1306 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1307 | ||
1308 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1309 | # config.log. We remove comments because anyway the quotes in there | |
1310 | # would cause problems or look ugly. | |
1311 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1312 | # such as our DU 5.0 friend, will then `close' the trap. | |
1313 | trap 'exit_status=$? | |
1314 | # Save into config.log some information that might help in debugging. | |
1315 | { | |
1316 | echo | |
1317 | ||
1318 | cat <<\_ASBOX | |
1319 | ## ---------------- ## | |
1320 | ## Cache variables. ## | |
1321 | ## ---------------- ## | |
1322 | _ASBOX | |
1323 | echo | |
1324 | # The following way of writing the cache mishandles newlines in values, | |
1325 | { | |
1326 | (set) 2>&1 | | |
1327 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1328 | *ac_space=\ *) | |
1329 | sed -n \ | |
ac1cb8d3 VS |
1330 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1331 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1332 | ;; |
1333 | *) | |
1334 | sed -n \ | |
ac1cb8d3 | 1335 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1336 | ;; |
1337 | esac; | |
1338 | } | |
1339 | echo | |
1340 | ||
1341 | cat <<\_ASBOX | |
1342 | ## ----------------- ## | |
1343 | ## Output variables. ## | |
1344 | ## ----------------- ## | |
1345 | _ASBOX | |
1346 | echo | |
1347 | for ac_var in $ac_subst_vars | |
1348 | do | |
1349 | eval ac_val=$`echo $ac_var` | |
1350 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1351 | done | sort | |
1352 | echo | |
1353 | ||
1354 | if test -n "$ac_subst_files"; then | |
1355 | cat <<\_ASBOX | |
1356 | ## ------------- ## | |
1357 | ## Output files. ## | |
1358 | ## ------------- ## | |
1359 | _ASBOX | |
1360 | echo | |
1361 | for ac_var in $ac_subst_files | |
1362 | do | |
1363 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1364 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1365 | done | sort |
1366 | echo | |
1367 | fi | |
1368 | ||
1369 | if test -s confdefs.h; then | |
1370 | cat <<\_ASBOX | |
1371 | ## ----------- ## | |
1372 | ## confdefs.h. ## | |
1373 | ## ----------- ## | |
1374 | _ASBOX | |
1375 | echo | |
1376 | sed "/^$/d" confdefs.h | sort | |
1377 | echo | |
1378 | fi | |
1379 | test "$ac_signal" != 0 && | |
1380 | echo "$as_me: caught signal $ac_signal" | |
1381 | echo "$as_me: exit $exit_status" | |
1382 | } >&5 | |
ac1cb8d3 | 1383 | rm -f core *.core && |
a848cd7e SC |
1384 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1385 | exit $exit_status | |
1386 | ' 0 | |
1387 | for ac_signal in 1 2 13 15; do | |
1388 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1389 | done | |
1390 | ac_signal=0 | |
1391 | ||
1392 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1393 | rm -rf conftest* confdefs.h | |
1394 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1395 | echo >confdefs.h | |
1396 | ||
1397 | # Predefined preprocessor variables. | |
1398 | ||
1399 | cat >>confdefs.h <<_ACEOF | |
1400 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1401 | _ACEOF | |
1402 | ||
1403 | ||
1404 | cat >>confdefs.h <<_ACEOF | |
1405 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1406 | _ACEOF | |
1407 | ||
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | # Let the site file select an alternate cache file if it wants to. | |
1425 | # Prefer explicitly selected file to automatically selected ones. | |
1426 | if test -z "$CONFIG_SITE"; then | |
1427 | if test "x$prefix" != xNONE; then | |
1428 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1429 | else | |
1430 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1431 | fi | |
1432 | fi | |
1433 | for ac_site_file in $CONFIG_SITE; do | |
1434 | if test -r "$ac_site_file"; then | |
1435 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1436 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1437 | sed 's/^/| /' "$ac_site_file" >&5 | |
1438 | . "$ac_site_file" | |
1439 | fi | |
1440 | done | |
1441 | ||
1442 | if test -r "$cache_file"; then | |
1443 | # Some versions of bash will fail to source /dev/null (special | |
1444 | # files actually), so we avoid doing that. | |
1445 | if test -f "$cache_file"; then | |
1446 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1447 | echo "$as_me: loading cache $cache_file" >&6;} | |
1448 | case $cache_file in | |
1449 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1450 | *) . ./$cache_file;; | |
1451 | esac | |
1452 | fi | |
1453 | else | |
1454 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1455 | echo "$as_me: creating cache $cache_file" >&6;} | |
1456 | >$cache_file | |
1457 | fi | |
1458 | ||
1459 | # Check that the precious variables saved in the cache have kept the same | |
1460 | # value. | |
1461 | ac_cache_corrupted=false | |
1462 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1463 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1464 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1465 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1466 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1467 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1468 | case $ac_old_set,$ac_new_set in | |
1469 | set,) | |
1470 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1471 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1472 | ac_cache_corrupted=: ;; | |
1473 | ,set) | |
1474 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1475 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1476 | ac_cache_corrupted=: ;; | |
1477 | ,);; | |
1478 | *) | |
1479 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1480 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1481 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1482 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1483 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1484 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1485 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1486 | ac_cache_corrupted=: |
a848cd7e SC |
1487 | fi;; |
1488 | esac | |
1489 | # Pass precious variables to config.status. | |
1490 | if test "$ac_new_set" = set; then | |
1491 | case $ac_new_val in | |
1492 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1493 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1494 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1495 | esac | |
1496 | case " $ac_configure_args " in | |
1497 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1498 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1499 | esac | |
1500 | fi | |
1501 | done | |
1502 | if $ac_cache_corrupted; then | |
1503 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1504 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1505 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1506 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1507 | { (exit 1); exit 1; }; } | |
1508 | fi | |
1509 | ||
1510 | ac_ext=c | |
1511 | ac_cpp='$CPP $CPPFLAGS' | |
1512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
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 | ||
1545 | ac_aux_dir= | |
1546 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1547 | if test -f $ac_dir/install-sh; then | |
1548 | ac_aux_dir=$ac_dir | |
1549 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1550 | break | |
1551 | elif test -f $ac_dir/install.sh; then | |
1552 | ac_aux_dir=$ac_dir | |
1553 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1554 | break | |
1555 | elif test -f $ac_dir/shtool; then | |
1556 | ac_aux_dir=$ac_dir | |
1557 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1558 | break | |
1559 | fi | |
1560 | done | |
1561 | if test -z "$ac_aux_dir"; then | |
1562 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1563 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | fi | |
1566 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1567 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1568 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1569 | ||
1570 | # Make sure we can run config.sub. | |
1571 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1572 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1573 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1574 | { (exit 1); exit 1; }; } | |
1575 | ||
1576 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1577 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1578 | if test "${ac_cv_build+set}" = set; then | |
1579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 | else | |
1581 | ac_cv_build_alias=$build_alias | |
1582 | test -z "$ac_cv_build_alias" && | |
1583 | ac_cv_build_alias=`$ac_config_guess` | |
1584 | test -z "$ac_cv_build_alias" && | |
1585 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1586 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1587 | { (exit 1); exit 1; }; } | |
1588 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1589 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1590 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ||
1593 | fi | |
1594 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1595 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1596 | build=$ac_cv_build | |
1597 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1598 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1599 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1600 | ||
1601 | ||
1602 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1603 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1604 | if test "${ac_cv_host+set}" = set; then | |
1605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1606 | else | |
1607 | ac_cv_host_alias=$host_alias | |
1608 | test -z "$ac_cv_host_alias" && | |
1609 | ac_cv_host_alias=$ac_cv_build_alias | |
1610 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1611 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1612 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1613 | { (exit 1); exit 1; }; } | |
1614 | ||
1615 | fi | |
1616 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1617 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1618 | host=$ac_cv_host | |
1619 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1620 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1621 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1622 | ||
1623 | ||
1624 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1625 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1626 | if test "${ac_cv_target+set}" = set; then | |
1627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1628 | else | |
1629 | ac_cv_target_alias=$target_alias | |
1630 | test "x$ac_cv_target_alias" = "x" && | |
1631 | ac_cv_target_alias=$ac_cv_host_alias | |
1632 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1633 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1634 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1635 | { (exit 1); exit 1; }; } | |
1636 | ||
1637 | fi | |
1638 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1639 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1640 | target=$ac_cv_target | |
1641 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1642 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1643 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1644 | ||
1645 | ||
1646 | # The aliases save the names the user supplied, while $host etc. | |
1647 | # will get canonicalized. | |
1648 | test -n "$target_alias" && | |
1649 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1650 | NONENONEs,x,x, && | |
1651 | program_prefix=${target_alias}- | |
1652 | ||
1653 | ||
1654 | ||
ceec2216 RL |
1655 | wx_major_version_number=2 |
1656 | wx_minor_version_number=5 | |
7714864e | 1657 | wx_release_number=3 |
78a9e10d | 1658 | wx_subrelease_number=1 |
a848cd7e | 1659 | |
ceec2216 RL |
1660 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1661 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1662 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1663 | |
ceec2216 | 1664 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1665 | |
78a9e10d | 1666 | WX_CURRENT=4 |
a848cd7e | 1667 | WX_REVISION=0 |
78a9e10d | 1668 | WX_AGE=1 |
a848cd7e SC |
1669 | |
1670 | ||
1671 | ||
1672 | USE_UNIX=1 | |
1673 | USE_OS2=0 | |
1674 | USE_WIN32=0 | |
1675 | USE_DOS=0 | |
1676 | USE_BEOS=0 | |
1677 | USE_MAC=0 | |
1678 | ||
1679 | USE_AIX= | |
1680 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1681 | USE_GNU= USE_HPUX= | |
1682 | USE_LINUX= | |
1683 | USE_NETBSD= | |
1684 | USE_OPENBSD= | |
1685 | USE_OSF= USE_SGI= | |
1686 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1687 | USE_ULTRIX= | |
1688 | USE_UNIXWARE= | |
1689 | ||
1690 | USE_ALPHA= | |
1691 | ||
1692 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1693 | ||
1694 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1695 | ||
1696 | DEFAULT_wxUSE_COCOA=0 | |
1697 | DEFAULT_wxUSE_GTK=0 | |
1698 | DEFAULT_wxUSE_MAC=0 | |
1699 | DEFAULT_wxUSE_MGL=0 | |
1700 | DEFAULT_wxUSE_MICROWIN=0 | |
1701 | DEFAULT_wxUSE_MOTIF=0 | |
1702 | DEFAULT_wxUSE_MSW=0 | |
1703 | DEFAULT_wxUSE_PM=0 | |
1704 | DEFAULT_wxUSE_X11=0 | |
1705 | ||
1706 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1707 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1708 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1709 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1710 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1711 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1712 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1713 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1715 | ||
1716 | PROGRAM_EXT= | |
1717 | SO_SUFFIX=so | |
1718 | SAMPLES_RPATH_FLAG= | |
1719 | SAMPLES_RPATH_POSTLINK= | |
1720 | ||
1721 | case "${host}" in | |
1722 | *-hp-hpux* ) | |
1723 | USE_HPUX=1 | |
1724 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1725 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1726 | SO_SUFFIX=sl | |
1727 | cat >>confdefs.h <<\_ACEOF | |
1728 | #define __HPUX__ 1 | |
1729 | _ACEOF | |
1730 | ||
1731 | ;; | |
1732 | *-*-linux* ) | |
1733 | USE_LINUX=1 | |
1734 | cat >>confdefs.h <<\_ACEOF | |
1735 | #define __LINUX__ 1 | |
1736 | _ACEOF | |
1737 | ||
1738 | TMP=`uname -m` | |
1739 | if test "x$TMP" = "xalpha"; then | |
1740 | USE_ALPHA=1 | |
1741 | cat >>confdefs.h <<\_ACEOF | |
1742 | #define __ALPHA__ 1 | |
1743 | _ACEOF | |
1744 | ||
1745 | fi | |
1746 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1747 | ;; | |
1748 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1749 | USE_GNU=1 | |
1750 | TMP=`uname -m` | |
1751 | if test "x$TMP" = "xalpha"; then | |
1752 | USE_ALPHA=1 | |
1753 | cat >>confdefs.h <<\_ACEOF | |
1754 | #define __ALPHA__ 1 | |
1755 | _ACEOF | |
1756 | ||
1757 | fi | |
1758 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1759 | ;; | |
1760 | *-*-irix5* | *-*-irix6* ) | |
1761 | USE_SGI=1 | |
1762 | USE_SVR4=1 | |
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __SGI__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | cat >>confdefs.h <<\_ACEOF | |
1768 | #define __SVR4__ 1 | |
1769 | _ACEOF | |
1770 | ||
1771 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1772 | ;; | |
1773 | *-*-solaris2* ) | |
1774 | USE_SUN=1 | |
1775 | USE_SOLARIS=1 | |
1776 | USE_SVR4=1 | |
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __SUN__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | cat >>confdefs.h <<\_ACEOF | |
1782 | #define __SOLARIS__ 1 | |
1783 | _ACEOF | |
1784 | ||
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __SVR4__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1790 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1791 | ;; | |
1792 | *-*-sunos4* ) | |
1793 | USE_SUN=1 | |
1794 | USE_SUNOS=1 | |
1795 | USE_BSD=1 | |
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SUN__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SUNOS__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | cat >>confdefs.h <<\_ACEOF | |
1805 | #define __BSD__ 1 | |
1806 | _ACEOF | |
1807 | ||
1808 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1809 | ;; | |
1810 | *-*-freebsd*) | |
1811 | USE_BSD=1 | |
1812 | USE_FREEBSD=1 | |
1813 | cat >>confdefs.h <<\_ACEOF | |
1814 | #define __FREEBSD__ 1 | |
1815 | _ACEOF | |
1816 | ||
1817 | cat >>confdefs.h <<\_ACEOF | |
1818 | #define __BSD__ 1 | |
1819 | _ACEOF | |
1820 | ||
1821 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1822 | ;; | |
1823 | *-*-openbsd*) | |
1824 | USE_BSD=1 | |
1825 | USE_OPENBSD=1 | |
1826 | cat >>confdefs.h <<\_ACEOF | |
1827 | #define __OPENBSD__ 1 | |
1828 | _ACEOF | |
1829 | ||
1830 | cat >>confdefs.h <<\_ACEOF | |
1831 | #define __BSD__ 1 | |
1832 | _ACEOF | |
1833 | ||
1834 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1835 | ;; | |
1836 | *-*-netbsd*) | |
1837 | USE_BSD=1 | |
1838 | USE_NETBSD=1 | |
1839 | cat >>confdefs.h <<\_ACEOF | |
1840 | #define __NETBSD__ 1 | |
1841 | _ACEOF | |
1842 | ||
1843 | cat >>confdefs.h <<\_ACEOF | |
1844 | #define __BSD__ 1 | |
1845 | _ACEOF | |
1846 | ||
1847 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1848 | ;; | |
1849 | *-*-osf* ) | |
1850 | USE_ALPHA=1 | |
1851 | USE_OSF=1 | |
1852 | cat >>confdefs.h <<\_ACEOF | |
1853 | #define __ALPHA__ 1 | |
1854 | _ACEOF | |
1855 | ||
1856 | cat >>confdefs.h <<\_ACEOF | |
1857 | #define __OSF__ 1 | |
1858 | _ACEOF | |
1859 | ||
1860 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1861 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1862 | ;; | |
1863 | *-*-dgux5* ) | |
1864 | USE_ALPHA=1 | |
1865 | USE_SVR4=1 | |
1866 | cat >>confdefs.h <<\_ACEOF | |
1867 | #define __ALPHA__ 1 | |
1868 | _ACEOF | |
1869 | ||
1870 | cat >>confdefs.h <<\_ACEOF | |
1871 | #define __SVR4__ 1 | |
1872 | _ACEOF | |
1873 | ||
1874 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1875 | ;; | |
1876 | *-*-sysv5* ) | |
1877 | USE_SYSV=1 | |
1878 | USE_SVR4=1 | |
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __SYSV__ 1 | |
1881 | _ACEOF | |
1882 | ||
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __SVR4__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1888 | ;; | |
1889 | *-*-aix* ) | |
1890 | USE_AIX=1 | |
1891 | USE_SYSV=1 | |
1892 | USE_SVR4=1 | |
1893 | SO_SUFFIX=a | |
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __AIX__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __SYSV__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SVR4__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1907 | ;; | |
1908 | ||
1909 | *-*-*UnixWare*) | |
1910 | USE_SYSV=1 | |
1911 | USE_SVR4=1 | |
1912 | USE_UNIXWARE=1 | |
1913 | cat >>confdefs.h <<\_ACEOF | |
1914 | #define __UNIXWARE__ 1 | |
1915 | _ACEOF | |
1916 | ||
1917 | ;; | |
1918 | ||
1919 | *-*-cygwin* | *-*-mingw32* ) | |
1920 | SO_SUFFIX=dll | |
1921 | PROGRAM_EXT=".exe" | |
1922 | RESCOMP=windres | |
1923 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1924 | ;; | |
1925 | ||
1926 | *-pc-msdosdjgpp ) | |
1927 | USE_UNIX=0 | |
1928 | USE_DOS=1 | |
1929 | cat >>confdefs.h <<\_ACEOF | |
1930 | #define __DOS__ 1 | |
1931 | _ACEOF | |
1932 | ||
1933 | PROGRAM_EXT=".exe" | |
1934 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1935 | LIBS="$LIBS -lstdc++" | |
1936 | ;; | |
1937 | ||
1938 | *-pc-os2_emx | *-pc-os2-emx ) | |
1939 | cat >>confdefs.h <<\_ACEOF | |
1940 | #define __EMX__ 1 | |
1941 | _ACEOF | |
1942 | ||
1943 | USE_OS2=1 | |
1944 | cat >>confdefs.h <<\_ACEOF | |
1945 | #define __OS2__ 1 | |
1946 | _ACEOF | |
1947 | ||
1948 | PROGRAM_EXT=".exe" | |
1949 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1950 | CXX=gcc | |
1951 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1952 | ac_executable_extensions=".exe" | |
1953 | export ac_executable_extensions | |
1954 | ac_save_IFS="$IFS" | |
1955 | IFS='\\' | |
1956 | ac_TEMP_PATH= | |
1957 | for ac_dir in $PATH; do | |
1958 | IFS=$ac_save_IFS | |
1959 | if test -z "$ac_TEMP_PATH"; then | |
1960 | ac_TEMP_PATH="$ac_dir" | |
1961 | else | |
1962 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1963 | fi | |
1964 | done | |
1965 | export PATH="$ac_TEMP_PATH" | |
1966 | unset ac_TEMP_PATH | |
1967 | ;; | |
1968 | ||
1969 | powerpc-*-darwin* ) | |
1970 | USE_BSD=1 | |
1971 | USE_DARWIN=1 | |
1972 | SO_SUFFIX=dylib | |
1973 | cat >>confdefs.h <<\_ACEOF | |
1974 | #define __BSD__ 1 | |
1975 | _ACEOF | |
1976 | ||
1977 | cat >>confdefs.h <<\_ACEOF | |
1978 | #define __DARWIN__ 1 | |
1979 | _ACEOF | |
1980 | ||
1981 | cat >>confdefs.h <<\_ACEOF | |
1982 | #define __POWERPC__ 1 | |
1983 | _ACEOF | |
1984 | ||
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define TARGET_CARBON 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1990 | ;; | |
1991 | ||
1992 | *-*-beos* ) | |
1993 | USE_BEOS=1 | |
1994 | cat >>confdefs.h <<\_ACEOF | |
1995 | #define __BEOS__ 1 | |
1996 | _ACEOF | |
1997 | ||
1998 | ;; | |
1999 | ||
2000 | *) | |
2001 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2002 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2003 | { (exit 1); exit 1; }; } | |
2004 | esac | |
2005 | ||
2006 | ||
2007 | ||
2008 | ||
2009 | wx_arg_cache_file="configarg.cache" | |
2010 | echo "loading argument cache $wx_arg_cache_file" | |
2011 | rm -f ${wx_arg_cache_file}.tmp | |
2012 | touch ${wx_arg_cache_file}.tmp | |
2013 | touch ${wx_arg_cache_file} | |
2014 | ||
2015 | ||
2016 | DEBUG_CONFIGURE=0 | |
2017 | if test $DEBUG_CONFIGURE = 1; then | |
2018 | DEFAULT_wxUSE_UNIVERSAL=no | |
2019 | DEFAULT_wxUSE_STL=no | |
2020 | ||
2021 | DEFAULT_wxUSE_NANOX=no | |
2022 | ||
2023 | DEFAULT_wxUSE_THREADS=yes | |
2024 | ||
2025 | DEFAULT_wxUSE_SHARED=yes | |
2026 | DEFAULT_wxUSE_OPTIMISE=no | |
2027 | DEFAULT_wxUSE_PROFILE=no | |
2028 | DEFAULT_wxUSE_NO_DEPS=no | |
2029 | DEFAULT_wxUSE_NO_RTTI=no | |
2030 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2031 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2032 | DEFAULT_wxUSE_PERMISSIVE=no |
2033 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2034 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2035 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2036 | DEFAULT_wxUSE_MEM_TRACING=no | |
2037 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2038 | DEFAULT_wxUSE_DMALLOC=no | |
2039 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2040 | ||
2041 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2042 | DEFAULT_wxUSE_LOG=yes | |
2043 | DEFAULT_wxUSE_LOGWINDOW=no | |
2044 | DEFAULT_wxUSE_LOGGUI=no | |
2045 | DEFAULT_wxUSE_LOGDIALOG=no | |
2046 | ||
2047 | DEFAULT_wxUSE_GUI=yes | |
2048 | DEFAULT_wxUSE_CONTROLS=no | |
2049 | ||
2050 | DEFAULT_wxUSE_REGEX=no | |
2051 | DEFAULT_wxUSE_XML=no | |
2052 | DEFAULT_wxUSE_EXPAT=no | |
2053 | DEFAULT_wxUSE_ZLIB=no | |
2054 | DEFAULT_wxUSE_LIBPNG=no | |
2055 | DEFAULT_wxUSE_LIBJPEG=no | |
2056 | DEFAULT_wxUSE_LIBTIFF=no | |
2057 | DEFAULT_wxUSE_LIBXPM=no | |
2058 | DEFAULT_wxUSE_LIBMSPACK=no | |
2059 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2060 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2061 | DEFAULT_wxUSE_ODBC=no |
2062 | DEFAULT_wxUSE_OPENGL=no | |
2063 | ||
2064 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2065 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2066 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2067 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2068 | DEFAULT_wxUSE_DATETIME=no | |
2069 | DEFAULT_wxUSE_TIMER=no | |
2070 | DEFAULT_wxUSE_STOPWATCH=no | |
2071 | DEFAULT_wxUSE_FILE=no | |
2072 | DEFAULT_wxUSE_FFILE=no | |
2073 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2074 | DEFAULT_wxUSE_TEXTFILE=no | |
2075 | DEFAULT_wxUSE_SOUND=no | |
2076 | DEFAULT_wxUSE_INTL=no | |
2077 | DEFAULT_wxUSE_CONFIG=no | |
2078 | DEFAULT_wxUSE_FONTMAP=no | |
2079 | DEFAULT_wxUSE_STREAMS=no | |
2080 | DEFAULT_wxUSE_SOCKETS=no | |
2081 | DEFAULT_wxUSE_OLE=no | |
2082 | DEFAULT_wxUSE_DATAOBJ=no | |
2083 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2084 | DEFAULT_wxUSE_JOYSTICK=no | |
2085 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2086 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2087 | DEFAULT_wxUSE_LONGLONG=no | |
2088 | DEFAULT_wxUSE_GEOMETRY=no | |
2089 | ||
2090 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2091 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2092 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2093 | ||
2094 | DEFAULT_wxUSE_CLIPBOARD=no | |
2095 | DEFAULT_wxUSE_TOOLTIPS=no | |
2096 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2097 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2098 | DEFAULT_wxUSE_SPLINES=no | |
2099 | ||
8a7b1113 | 2100 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2102 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2103 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2104 | ||
2105 | DEFAULT_wxUSE_RESOURCES=no | |
2106 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2107 | DEFAULT_wxUSE_IPC=no | |
2108 | DEFAULT_wxUSE_HELP=no | |
2109 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2110 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2111 | DEFAULT_wxUSE_TREELAYOUT=no | |
2112 | DEFAULT_wxUSE_METAFILE=no | |
2113 | DEFAULT_wxUSE_MIMETYPE=no | |
2114 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2115 | DEFAULT_wxUSE_PROTOCOL=no | |
2116 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2117 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2118 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2119 | DEFAULT_wxUSE_URL=no | |
2120 | ||
2121 | DEFAULT_wxUSE_COMMONDLGS=no | |
2122 | DEFAULT_wxUSE_CHOICEDLG=no | |
2123 | DEFAULT_wxUSE_COLOURDLG=no | |
2124 | DEFAULT_wxUSE_DIRDLG=no | |
2125 | DEFAULT_wxUSE_FILEDLG=no | |
2126 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2127 | DEFAULT_wxUSE_FONTDLG=no | |
2128 | DEFAULT_wxUSE_MSGDLG=no | |
2129 | DEFAULT_wxUSE_NUMBERDLG=no | |
2130 | DEFAULT_wxUSE_TEXTDLG=no | |
2131 | DEFAULT_wxUSE_SPLASH=no | |
2132 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2133 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2134 | DEFAULT_wxUSE_WIZARDDLG=no | |
2135 | ||
2136 | DEFAULT_wxUSE_MENUS=no | |
2137 | DEFAULT_wxUSE_MINIFRAME=no | |
2138 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2139 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2140 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2141 | DEFAULT_wxUSE_FILESYSTEM=no |
2142 | DEFAULT_wxUSE_FS_INET=no | |
2143 | DEFAULT_wxUSE_FS_ZIP=no | |
2144 | DEFAULT_wxUSE_BUSYINFO=no | |
2145 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2146 | DEFAULT_wxUSE_VALIDATORS=no |
2147 | ||
2148 | DEFAULT_wxUSE_ACCEL=no | |
2149 | DEFAULT_wxUSE_BUTTON=no | |
2150 | DEFAULT_wxUSE_BMPBUTTON=no | |
2151 | DEFAULT_wxUSE_CALCTRL=no | |
2152 | DEFAULT_wxUSE_CARET=no | |
2153 | DEFAULT_wxUSE_CHECKBOX=no | |
2154 | DEFAULT_wxUSE_CHECKLST=no | |
2155 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2156 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
2157 | DEFAULT_wxUSE_COMBOBOX=no |
2158 | DEFAULT_wxUSE_DISPLAY=no | |
2159 | DEFAULT_wxUSE_GAUGE=no | |
2160 | DEFAULT_wxUSE_GRID=no | |
2161 | DEFAULT_wxUSE_IMAGLIST=no | |
2162 | DEFAULT_wxUSE_LISTBOOK=no | |
2163 | DEFAULT_wxUSE_LISTBOX=no | |
2164 | DEFAULT_wxUSE_LISTCTRL=no | |
2165 | DEFAULT_wxUSE_NOTEBOOK=no | |
2166 | DEFAULT_wxUSE_RADIOBOX=no | |
2167 | DEFAULT_wxUSE_RADIOBTN=no | |
2168 | DEFAULT_wxUSE_SASH=no | |
2169 | DEFAULT_wxUSE_SCROLLBAR=no | |
2170 | DEFAULT_wxUSE_SLIDER=no | |
2171 | DEFAULT_wxUSE_SPINBTN=no | |
2172 | DEFAULT_wxUSE_SPINCTRL=no | |
2173 | DEFAULT_wxUSE_SPLITTER=no | |
2174 | DEFAULT_wxUSE_STATBMP=no | |
2175 | DEFAULT_wxUSE_STATBOX=no | |
2176 | DEFAULT_wxUSE_STATLINE=no | |
2177 | DEFAULT_wxUSE_STATTEXT=no | |
2178 | DEFAULT_wxUSE_STATUSBAR=yes | |
2179 | DEFAULT_wxUSE_TABDIALOG=no | |
2180 | DEFAULT_wxUSE_TEXTCTRL=no | |
2181 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2182 | DEFAULT_wxUSE_TOOLBAR=no | |
2183 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2184 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2185 | DEFAULT_wxUSE_TREECTRL=no | |
2186 | DEFAULT_wxUSE_POPUPWIN=no | |
2187 | DEFAULT_wxUSE_TIPWINDOW=no | |
2188 | ||
2189 | DEFAULT_wxUSE_UNICODE=no | |
2190 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2191 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2192 | ||
2193 | DEFAULT_wxUSE_PALETTE=no | |
2194 | DEFAULT_wxUSE_IMAGE=no | |
2195 | DEFAULT_wxUSE_GIF=no | |
2196 | DEFAULT_wxUSE_PCX=no | |
2197 | DEFAULT_wxUSE_PNM=no | |
2198 | DEFAULT_wxUSE_IFF=no | |
2199 | DEFAULT_wxUSE_XPM=no | |
2200 | DEFAULT_wxUSE_ICO_CUR=no | |
2201 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2202 | ||
2203 | DEFAULT_wxUSE_MONOLITHIC=no | |
2204 | DEFAULT_wxUSE_PLUGINS=no | |
2205 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2206 | else | |
2207 | DEFAULT_wxUSE_UNIVERSAL=no | |
2208 | DEFAULT_wxUSE_STL=no | |
2209 | ||
2210 | DEFAULT_wxUSE_NANOX=no | |
2211 | ||
2212 | DEFAULT_wxUSE_THREADS=yes | |
2213 | ||
2214 | DEFAULT_wxUSE_SHARED=yes | |
2215 | DEFAULT_wxUSE_OPTIMISE=yes | |
2216 | DEFAULT_wxUSE_PROFILE=no | |
2217 | DEFAULT_wxUSE_NO_DEPS=no | |
2218 | DEFAULT_wxUSE_NO_RTTI=no | |
2219 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2220 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2221 | DEFAULT_wxUSE_PERMISSIVE=no |
2222 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2223 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2224 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2225 | DEFAULT_wxUSE_MEM_TRACING=no | |
2226 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2227 | DEFAULT_wxUSE_DMALLOC=no | |
2228 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2229 | ||
2230 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2231 | DEFAULT_wxUSE_LOG=yes | |
2232 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2233 | DEFAULT_wxUSE_LOGGUI=yes | |
2234 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2235 | ||
2236 | DEFAULT_wxUSE_GUI=yes | |
2237 | ||
2238 | DEFAULT_wxUSE_REGEX=yes | |
2239 | DEFAULT_wxUSE_XML=yes | |
2240 | DEFAULT_wxUSE_EXPAT=yes | |
2241 | DEFAULT_wxUSE_ZLIB=yes | |
2242 | DEFAULT_wxUSE_LIBPNG=yes | |
2243 | DEFAULT_wxUSE_LIBJPEG=yes | |
2244 | DEFAULT_wxUSE_LIBTIFF=yes | |
2245 | DEFAULT_wxUSE_LIBXPM=yes | |
2246 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2247 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2248 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2249 | DEFAULT_wxUSE_ODBC=no |
2250 | DEFAULT_wxUSE_OPENGL=no | |
2251 | ||
2252 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2253 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2254 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2255 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2256 | DEFAULT_wxUSE_DATETIME=yes | |
2257 | DEFAULT_wxUSE_TIMER=yes | |
2258 | DEFAULT_wxUSE_STOPWATCH=yes | |
2259 | DEFAULT_wxUSE_FILE=yes | |
2260 | DEFAULT_wxUSE_FFILE=yes | |
2261 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2262 | DEFAULT_wxUSE_TEXTFILE=yes | |
2263 | DEFAULT_wxUSE_SOUND=yes | |
2264 | DEFAULT_wxUSE_INTL=yes | |
2265 | DEFAULT_wxUSE_CONFIG=yes | |
2266 | DEFAULT_wxUSE_FONTMAP=yes | |
2267 | DEFAULT_wxUSE_STREAMS=yes | |
2268 | DEFAULT_wxUSE_SOCKETS=yes | |
2269 | DEFAULT_wxUSE_OLE=yes | |
2270 | DEFAULT_wxUSE_DATAOBJ=yes | |
2271 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2272 | DEFAULT_wxUSE_JOYSTICK=yes | |
2273 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2274 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2275 | DEFAULT_wxUSE_LONGLONG=yes | |
2276 | DEFAULT_wxUSE_GEOMETRY=yes | |
2277 | ||
2278 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2279 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2280 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2281 | ||
2282 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2283 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2284 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2285 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2286 | DEFAULT_wxUSE_SPLINES=yes | |
2287 | ||
8a7b1113 | 2288 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2289 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2290 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2291 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2292 | ||
2293 | DEFAULT_wxUSE_RESOURCES=no | |
2294 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2295 | DEFAULT_wxUSE_IPC=yes | |
2296 | DEFAULT_wxUSE_HELP=yes | |
2297 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2298 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2299 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2300 | DEFAULT_wxUSE_METAFILE=yes | |
2301 | DEFAULT_wxUSE_MIMETYPE=yes | |
2302 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2303 | DEFAULT_wxUSE_PROTOCOL=yes | |
2304 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2305 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2306 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2307 | DEFAULT_wxUSE_URL=yes | |
2308 | ||
2309 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2310 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2311 | DEFAULT_wxUSE_COLOURDLG=yes | |
2312 | DEFAULT_wxUSE_DIRDLG=yes | |
2313 | DEFAULT_wxUSE_FILEDLG=yes | |
2314 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2315 | DEFAULT_wxUSE_FONTDLG=yes | |
2316 | DEFAULT_wxUSE_MSGDLG=yes | |
2317 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2318 | DEFAULT_wxUSE_TEXTDLG=yes | |
2319 | DEFAULT_wxUSE_SPLASH=yes | |
2320 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2321 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2322 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2323 | ||
2324 | DEFAULT_wxUSE_MENUS=yes | |
2325 | DEFAULT_wxUSE_MINIFRAME=yes | |
2326 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2327 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2328 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2329 | DEFAULT_wxUSE_FILESYSTEM=yes |
2330 | DEFAULT_wxUSE_FS_INET=yes | |
2331 | DEFAULT_wxUSE_FS_ZIP=yes | |
2332 | DEFAULT_wxUSE_BUSYINFO=yes | |
2333 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2334 | DEFAULT_wxUSE_VALIDATORS=yes |
2335 | ||
2336 | DEFAULT_wxUSE_ACCEL=yes | |
2337 | DEFAULT_wxUSE_BUTTON=yes | |
2338 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2339 | DEFAULT_wxUSE_CALCTRL=yes | |
2340 | DEFAULT_wxUSE_CARET=yes | |
2341 | DEFAULT_wxUSE_CHECKBOX=yes | |
2342 | DEFAULT_wxUSE_CHECKLST=yes | |
2343 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2344 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
2345 | DEFAULT_wxUSE_COMBOBOX=yes |
2346 | DEFAULT_wxUSE_DISPLAY=yes | |
2347 | DEFAULT_wxUSE_GAUGE=yes | |
2348 | DEFAULT_wxUSE_GRID=yes | |
2349 | DEFAULT_wxUSE_IMAGLIST=yes | |
2350 | DEFAULT_wxUSE_LISTBOOK=yes | |
2351 | DEFAULT_wxUSE_LISTBOX=yes | |
2352 | DEFAULT_wxUSE_LISTCTRL=yes | |
2353 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2354 | DEFAULT_wxUSE_RADIOBOX=yes | |
2355 | DEFAULT_wxUSE_RADIOBTN=yes | |
2356 | DEFAULT_wxUSE_SASH=yes | |
2357 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2358 | DEFAULT_wxUSE_SLIDER=yes | |
2359 | DEFAULT_wxUSE_SPINBTN=yes | |
2360 | DEFAULT_wxUSE_SPINCTRL=yes | |
2361 | DEFAULT_wxUSE_SPLITTER=yes | |
2362 | DEFAULT_wxUSE_STATBMP=yes | |
2363 | DEFAULT_wxUSE_STATBOX=yes | |
2364 | DEFAULT_wxUSE_STATLINE=yes | |
2365 | DEFAULT_wxUSE_STATTEXT=yes | |
2366 | DEFAULT_wxUSE_STATUSBAR=yes | |
2367 | DEFAULT_wxUSE_TABDIALOG=no | |
2368 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2369 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2370 | DEFAULT_wxUSE_TOOLBAR=yes | |
2371 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2372 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2373 | DEFAULT_wxUSE_TREECTRL=yes | |
2374 | DEFAULT_wxUSE_POPUPWIN=yes | |
2375 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2376 | ||
2377 | DEFAULT_wxUSE_UNICODE=no | |
2378 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2379 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2380 | ||
2381 | DEFAULT_wxUSE_PALETTE=yes | |
2382 | DEFAULT_wxUSE_IMAGE=yes | |
2383 | DEFAULT_wxUSE_GIF=yes | |
2384 | DEFAULT_wxUSE_PCX=yes | |
2385 | DEFAULT_wxUSE_IFF=no | |
2386 | DEFAULT_wxUSE_PNM=yes | |
2387 | DEFAULT_wxUSE_XPM=yes | |
2388 | DEFAULT_wxUSE_ICO_CUR=yes | |
2389 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2390 | ||
2391 | DEFAULT_wxUSE_MONOLITHIC=no | |
2392 | DEFAULT_wxUSE_PLUGINS=no | |
2393 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e VS |
2394 | |
2395 | DEFAULT_wxUSE_GTK2=yes | |
a848cd7e SC |
2396 | fi |
2397 | ||
2398 | ||
2399 | ||
2400 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2401 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2402 | if test "x$LINE" != "x" ; then | |
2403 | has_toolkit_in_cache=1 | |
2404 | eval "DEFAULT_$LINE" | |
2405 | eval "CACHE_$toolkit=1" | |
2406 | fi | |
2407 | done | |
2408 | ||
2409 | ||
2410 | ||
2411 | enablestring= | |
2412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2413 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2414 | no_cache=0 | |
2415 | # Check whether --enable-gui or --disable-gui was given. | |
2416 | if test "${enable_gui+set}" = set; then | |
2417 | enableval="$enable_gui" | |
2418 | ||
2419 | if test "$enableval" = yes; then | |
2420 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2421 | else | |
2422 | ac_cv_use_gui='wxUSE_GUI=no' | |
2423 | fi | |
2424 | ||
2425 | else | |
2426 | ||
2427 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2428 | if test "x$LINE" != x ; then | |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
2434 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2435 | ||
2436 | fi; | |
2437 | ||
2438 | eval "$ac_cv_use_gui" | |
2439 | if test "$no_cache" != 1; then | |
2440 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2441 | fi | |
2442 | ||
2443 | if test "$wxUSE_GUI" = yes; then | |
2444 | echo "$as_me:$LINENO: result: yes" >&5 | |
2445 | echo "${ECHO_T}yes" >&6 | |
2446 | else | |
2447 | echo "$as_me:$LINENO: result: no" >&5 | |
2448 | echo "${ECHO_T}no" >&6 | |
2449 | fi | |
2450 | ||
2451 | ||
2452 | enablestring= | |
2453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2454 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2455 | no_cache=0 | |
2456 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2457 | if test "${enable_monolithic+set}" = set; then | |
2458 | enableval="$enable_monolithic" | |
2459 | ||
2460 | if test "$enableval" = yes; then | |
2461 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2462 | else | |
2463 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2464 | fi | |
2465 | ||
2466 | else | |
2467 | ||
2468 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2469 | if test "x$LINE" != x ; then | |
2470 | eval "DEFAULT_$LINE" | |
2471 | else | |
2472 | no_cache=1 | |
2473 | fi | |
2474 | ||
2475 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2476 | ||
2477 | fi; | |
2478 | ||
2479 | eval "$ac_cv_use_monolithic" | |
2480 | if test "$no_cache" != 1; then | |
2481 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2482 | fi | |
2483 | ||
2484 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2485 | echo "$as_me:$LINENO: result: yes" >&5 | |
2486 | echo "${ECHO_T}yes" >&6 | |
2487 | else | |
2488 | echo "$as_me:$LINENO: result: no" >&5 | |
2489 | echo "${ECHO_T}no" >&6 | |
2490 | fi | |
2491 | ||
2492 | ||
2493 | enablestring= | |
2494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2495 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2496 | no_cache=0 | |
2497 | # Check whether --enable-plugins or --disable-plugins was given. | |
2498 | if test "${enable_plugins+set}" = set; then | |
2499 | enableval="$enable_plugins" | |
2500 | ||
2501 | if test "$enableval" = yes; then | |
2502 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2503 | else | |
2504 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2505 | fi | |
2506 | ||
2507 | else | |
2508 | ||
2509 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2510 | if test "x$LINE" != x ; then | |
2511 | eval "DEFAULT_$LINE" | |
2512 | else | |
2513 | no_cache=1 | |
2514 | fi | |
2515 | ||
2516 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2517 | ||
2518 | fi; | |
2519 | ||
2520 | eval "$ac_cv_use_plugins" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_PLUGINS" = yes; then | |
2526 | echo "$as_me:$LINENO: result: yes" >&5 | |
2527 | echo "${ECHO_T}yes" >&6 | |
2528 | else | |
2529 | echo "$as_me:$LINENO: result: no" >&5 | |
2530 | echo "${ECHO_T}no" >&6 | |
2531 | fi | |
2532 | ||
2533 | ||
2534 | if test "$wxUSE_GUI" = "yes"; then | |
2535 | ||
2536 | ||
2537 | enablestring= | |
2538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2539 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2540 | no_cache=0 | |
2541 | # Check whether --enable-universal or --disable-universal was given. | |
2542 | if test "${enable_universal+set}" = set; then | |
2543 | enableval="$enable_universal" | |
2544 | ||
2545 | if test "$enableval" = yes; then | |
2546 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2547 | else | |
2548 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2549 | fi | |
2550 | ||
2551 | else | |
2552 | ||
2553 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2554 | if test "x$LINE" != x ; then | |
2555 | eval "DEFAULT_$LINE" | |
2556 | else | |
2557 | no_cache=1 | |
2558 | fi | |
2559 | ||
2560 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2561 | ||
2562 | fi; | |
2563 | ||
2564 | eval "$ac_cv_use_universal" | |
2565 | if test "$no_cache" != 1; then | |
2566 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2567 | fi | |
2568 | ||
2569 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2570 | echo "$as_me:$LINENO: result: yes" >&5 | |
2571 | echo "${ECHO_T}yes" >&6 | |
2572 | else | |
2573 | echo "$as_me:$LINENO: result: no" >&5 | |
2574 | echo "${ECHO_T}no" >&6 | |
2575 | fi | |
2576 | ||
2577 | ||
2578 | # Check whether --with-gtk or --without-gtk was given. | |
2579 | if test "${with_gtk+set}" = set; then | |
2580 | withval="$with_gtk" | |
2581 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2582 | fi; | |
2583 | ||
2584 | # Check whether --with-motif or --without-motif was given. | |
2585 | if test "${with_motif+set}" = set; then | |
2586 | withval="$with_motif" | |
2587 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2588 | fi; | |
2589 | ||
2590 | # Check whether --with-mac or --without-mac was given. | |
2591 | if test "${with_mac+set}" = set; then | |
2592 | withval="$with_mac" | |
c228d3a4 | 2593 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2594 | fi; |
2595 | ||
2596 | # Check whether --with-cocoa or --without-cocoa was given. | |
2597 | if test "${with_cocoa+set}" = set; then | |
2598 | withval="$with_cocoa" | |
c228d3a4 | 2599 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2600 | fi; |
2601 | ||
2602 | # Check whether --with-wine or --without-wine was given. | |
2603 | if test "${with_wine+set}" = set; then | |
2604 | withval="$with_wine" | |
2605 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2606 | fi; | |
2607 | ||
2608 | # Check whether --with-msw or --without-msw was given. | |
2609 | if test "${with_msw+set}" = set; then | |
2610 | withval="$with_msw" | |
2611 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2612 | fi; | |
2613 | ||
2614 | # Check whether --with-pm or --without-pm was given. | |
2615 | if test "${with_pm+set}" = set; then | |
2616 | withval="$with_pm" | |
2617 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2618 | fi; | |
2619 | ||
2620 | # Check whether --with-mgl or --without-mgl was given. | |
2621 | if test "${with_mgl+set}" = set; then | |
2622 | withval="$with_mgl" | |
2623 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2624 | fi; | |
2625 | ||
2626 | # Check whether --with-microwin or --without-microwin was given. | |
2627 | if test "${with_microwin+set}" = set; then | |
2628 | withval="$with_microwin" | |
2629 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2630 | fi; | |
2631 | ||
2632 | # Check whether --with-x11 or --without-x11 was given. | |
2633 | if test "${with_x11+set}" = set; then | |
2634 | withval="$with_x11" | |
2635 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2636 | fi; | |
2637 | ||
2638 | enablestring= | |
2639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2640 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2641 | no_cache=0 | |
2642 | # Check whether --enable-nanox or --disable-nanox was given. | |
2643 | if test "${enable_nanox+set}" = set; then | |
2644 | enableval="$enable_nanox" | |
2645 | ||
2646 | if test "$enableval" = yes; then | |
2647 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2648 | else | |
2649 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2650 | fi | |
2651 | ||
2652 | else | |
2653 | ||
2654 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2655 | if test "x$LINE" != x ; then | |
2656 | eval "DEFAULT_$LINE" | |
2657 | else | |
2658 | no_cache=1 | |
2659 | fi | |
2660 | ||
2661 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2662 | ||
2663 | fi; | |
2664 | ||
2665 | eval "$ac_cv_use_nanox" | |
2666 | if test "$no_cache" != 1; then | |
2667 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2668 | fi | |
2669 | ||
2670 | if test "$wxUSE_NANOX" = yes; then | |
2671 | echo "$as_me:$LINENO: result: yes" >&5 | |
2672 | echo "${ECHO_T}yes" >&6 | |
2673 | else | |
2674 | echo "$as_me:$LINENO: result: no" >&5 | |
2675 | echo "${ECHO_T}no" >&6 | |
2676 | fi | |
2677 | ||
2678 | ||
2679 | ||
2680 | enablestring= | |
2681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2682 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2683 | no_cache=0 | |
2684 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2685 | if test "${enable_gtk2+set}" = set; then | |
2686 | enableval="$enable_gtk2" | |
2687 | ||
2688 | if test "$enableval" = yes; then | |
2689 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2690 | else | |
2691 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2692 | fi | |
2693 | ||
2694 | else | |
2695 | ||
2696 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2697 | if test "x$LINE" != x ; then | |
2698 | eval "DEFAULT_$LINE" | |
2699 | else | |
2700 | no_cache=1 | |
2701 | fi | |
2702 | ||
2703 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2704 | ||
2705 | fi; | |
2706 | ||
2707 | eval "$ac_cv_use_gtk2" | |
2708 | if test "$no_cache" != 1; then | |
2709 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2710 | fi | |
2711 | ||
2712 | if test "$wxUSE_GTK2" = yes; then | |
2713 | echo "$as_me:$LINENO: result: yes" >&5 | |
2714 | echo "${ECHO_T}yes" >&6 | |
2715 | else | |
2716 | echo "$as_me:$LINENO: result: no" >&5 | |
2717 | echo "${ECHO_T}no" >&6 | |
2718 | fi | |
2719 | ||
2720 | ||
2721 | enablestring= | |
2722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2723 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2724 | no_cache=0 | |
2725 | # Check whether --enable-gpe or --disable-gpe was given. | |
2726 | if test "${enable_gpe+set}" = set; then | |
2727 | enableval="$enable_gpe" | |
2728 | ||
2729 | if test "$enableval" = yes; then | |
2730 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2731 | else | |
2732 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2733 | fi | |
2734 | ||
2735 | else | |
2736 | ||
2737 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2738 | if test "x$LINE" != x ; then | |
2739 | eval "DEFAULT_$LINE" | |
2740 | else | |
2741 | no_cache=1 | |
2742 | fi | |
2743 | ||
2744 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2745 | ||
2746 | fi; | |
2747 | ||
2748 | eval "$ac_cv_use_gpe" | |
2749 | if test "$no_cache" != 1; then | |
2750 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2751 | fi | |
2752 | ||
2753 | if test "$wxUSE_GPE" = yes; then | |
2754 | echo "$as_me:$LINENO: result: yes" >&5 | |
2755 | echo "${ECHO_T}yes" >&6 | |
2756 | else | |
2757 | echo "$as_me:$LINENO: result: no" >&5 | |
2758 | echo "${ECHO_T}no" >&6 | |
2759 | fi | |
2760 | ||
2761 | ||
2762 | ||
2763 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2764 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2765 | no_cache=0 | |
2766 | ||
2767 | # Check whether --with-libpng or --without-libpng was given. | |
2768 | if test "${with_libpng+set}" = set; then | |
2769 | withval="$with_libpng" | |
2770 | ||
2771 | if test "$withval" = yes; then | |
2772 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2773 | elif test "$withval" = no; then | |
2774 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2775 | elif test "$withval" = sys; then | |
2776 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2777 | elif test "$withval" = builtin; then | |
2778 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2779 | else | |
2780 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2781 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2782 | { (exit 1); exit 1; }; } | |
2783 | fi | |
2784 | ||
2785 | else | |
2786 | ||
2787 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2788 | if test "x$LINE" != x ; then | |
2789 | eval "DEFAULT_$LINE" | |
2790 | else | |
2791 | no_cache=1 | |
2792 | fi | |
2793 | ||
2794 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2795 | ||
2796 | fi; | |
2797 | ||
2798 | eval "$ac_cv_use_libpng" | |
2799 | if test "$no_cache" != 1; then | |
2800 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2801 | fi | |
2802 | ||
2803 | if test "$wxUSE_LIBPNG" = yes; then | |
2804 | echo "$as_me:$LINENO: result: yes" >&5 | |
2805 | echo "${ECHO_T}yes" >&6 | |
2806 | elif test "$wxUSE_LIBPNG" = no; then | |
2807 | echo "$as_me:$LINENO: result: no" >&5 | |
2808 | echo "${ECHO_T}no" >&6 | |
2809 | elif test "$wxUSE_LIBPNG" = sys; then | |
2810 | echo "$as_me:$LINENO: result: system version" >&5 | |
2811 | echo "${ECHO_T}system version" >&6 | |
2812 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2813 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2814 | echo "${ECHO_T}builtin version" >&6 | |
2815 | else | |
2816 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2817 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2818 | { (exit 1); exit 1; }; } | |
2819 | fi | |
2820 | ||
2821 | ||
2822 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2823 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2824 | no_cache=0 | |
2825 | ||
2826 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2827 | if test "${with_libjpeg+set}" = set; then | |
2828 | withval="$with_libjpeg" | |
2829 | ||
2830 | if test "$withval" = yes; then | |
2831 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2832 | elif test "$withval" = no; then | |
2833 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2834 | elif test "$withval" = sys; then | |
2835 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2836 | elif test "$withval" = builtin; then | |
2837 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2838 | else | |
2839 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2840 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2841 | { (exit 1); exit 1; }; } | |
2842 | fi | |
2843 | ||
2844 | else | |
2845 | ||
2846 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2847 | if test "x$LINE" != x ; then | |
2848 | eval "DEFAULT_$LINE" | |
2849 | else | |
2850 | no_cache=1 | |
2851 | fi | |
2852 | ||
2853 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2854 | ||
2855 | fi; | |
2856 | ||
2857 | eval "$ac_cv_use_libjpeg" | |
2858 | if test "$no_cache" != 1; then | |
2859 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2860 | fi | |
2861 | ||
2862 | if test "$wxUSE_LIBJPEG" = yes; then | |
2863 | echo "$as_me:$LINENO: result: yes" >&5 | |
2864 | echo "${ECHO_T}yes" >&6 | |
2865 | elif test "$wxUSE_LIBJPEG" = no; then | |
2866 | echo "$as_me:$LINENO: result: no" >&5 | |
2867 | echo "${ECHO_T}no" >&6 | |
2868 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2869 | echo "$as_me:$LINENO: result: system version" >&5 | |
2870 | echo "${ECHO_T}system version" >&6 | |
2871 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2872 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2873 | echo "${ECHO_T}builtin version" >&6 | |
2874 | else | |
2875 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2876 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2877 | { (exit 1); exit 1; }; } | |
2878 | fi | |
2879 | ||
2880 | ||
2881 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2882 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2883 | no_cache=0 | |
2884 | ||
2885 | # Check whether --with-libtiff or --without-libtiff was given. | |
2886 | if test "${with_libtiff+set}" = set; then | |
2887 | withval="$with_libtiff" | |
2888 | ||
2889 | if test "$withval" = yes; then | |
2890 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2891 | elif test "$withval" = no; then | |
2892 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2893 | elif test "$withval" = sys; then | |
2894 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2895 | elif test "$withval" = builtin; then | |
2896 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2897 | else | |
2898 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2899 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
2901 | fi | |
2902 | ||
2903 | else | |
2904 | ||
2905 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2913 | ||
2914 | fi; | |
2915 | ||
2916 | eval "$ac_cv_use_libtiff" | |
2917 | if test "$no_cache" != 1; then | |
2918 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2919 | fi | |
2920 | ||
2921 | if test "$wxUSE_LIBTIFF" = yes; then | |
2922 | echo "$as_me:$LINENO: result: yes" >&5 | |
2923 | echo "${ECHO_T}yes" >&6 | |
2924 | elif test "$wxUSE_LIBTIFF" = no; then | |
2925 | echo "$as_me:$LINENO: result: no" >&5 | |
2926 | echo "${ECHO_T}no" >&6 | |
2927 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2928 | echo "$as_me:$LINENO: result: system version" >&5 | |
2929 | echo "${ECHO_T}system version" >&6 | |
2930 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2931 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2932 | echo "${ECHO_T}builtin version" >&6 | |
2933 | else | |
2934 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2935 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2936 | { (exit 1); exit 1; }; } | |
2937 | fi | |
2938 | ||
2939 | ||
2940 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2941 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2942 | no_cache=0 | |
2943 | ||
2944 | # Check whether --with-libxpm or --without-libxpm was given. | |
2945 | if test "${with_libxpm+set}" = set; then | |
2946 | withval="$with_libxpm" | |
2947 | ||
2948 | if test "$withval" = yes; then | |
2949 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2950 | elif test "$withval" = no; then | |
2951 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2952 | elif test "$withval" = sys; then | |
2953 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2954 | elif test "$withval" = builtin; then | |
2955 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2956 | else | |
2957 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2958 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2959 | { (exit 1); exit 1; }; } | |
2960 | fi | |
2961 | ||
2962 | else | |
2963 | ||
2964 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2965 | if test "x$LINE" != x ; then | |
2966 | eval "DEFAULT_$LINE" | |
2967 | else | |
2968 | no_cache=1 | |
2969 | fi | |
2970 | ||
2971 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2972 | ||
2973 | fi; | |
2974 | ||
2975 | eval "$ac_cv_use_libxpm" | |
2976 | if test "$no_cache" != 1; then | |
2977 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2978 | fi | |
2979 | ||
2980 | if test "$wxUSE_LIBXPM" = yes; then | |
2981 | echo "$as_me:$LINENO: result: yes" >&5 | |
2982 | echo "${ECHO_T}yes" >&6 | |
2983 | elif test "$wxUSE_LIBXPM" = no; then | |
2984 | echo "$as_me:$LINENO: result: no" >&5 | |
2985 | echo "${ECHO_T}no" >&6 | |
2986 | elif test "$wxUSE_LIBXPM" = sys; then | |
2987 | echo "$as_me:$LINENO: result: system version" >&5 | |
2988 | echo "${ECHO_T}system version" >&6 | |
2989 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2990 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2991 | echo "${ECHO_T}builtin version" >&6 | |
2992 | else | |
2993 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2994 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2995 | { (exit 1); exit 1; }; } | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
3000 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
3001 | no_cache=0 | |
3002 | ||
3003 | # Check whether --with-libmspack or --without-libmspack was given. | |
3004 | if test "${with_libmspack+set}" = set; then | |
3005 | withval="$with_libmspack" | |
3006 | ||
3007 | if test "$withval" = yes; then | |
3008 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3009 | else | |
3010 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3011 | fi | |
3012 | ||
3013 | else | |
3014 | ||
3015 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3016 | if test "x$LINE" != x ; then | |
3017 | eval "DEFAULT_$LINE" | |
3018 | else | |
3019 | no_cache=1 | |
3020 | fi | |
3021 | ||
3022 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3023 | ||
3024 | fi; | |
3025 | ||
3026 | eval "$ac_cv_use_libmspack" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3032 | echo "$as_me:$LINENO: result: yes" >&5 | |
3033 | echo "${ECHO_T}yes" >&6 | |
3034 | else | |
3035 | echo "$as_me:$LINENO: result: no" >&5 | |
3036 | echo "${ECHO_T}no" >&6 | |
3037 | fi | |
3038 | ||
3039 | ||
3040 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
3041 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
3042 | no_cache=0 | |
3043 | ||
3044 | # Check whether --with-sdl or --without-sdl was given. | |
3045 | if test "${with_sdl+set}" = set; then | |
3046 | withval="$with_sdl" | |
3047 | ||
3048 | if test "$withval" = yes; then | |
3049 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3050 | else | |
3051 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3052 | fi | |
3053 | ||
3054 | else | |
3055 | ||
3056 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3057 | if test "x$LINE" != x ; then | |
3058 | eval "DEFAULT_$LINE" | |
3059 | else | |
3060 | no_cache=1 | |
3061 | fi | |
3062 | ||
3063 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3064 | ||
3065 | fi; | |
3066 | ||
3067 | eval "$ac_cv_use_sdl" | |
3068 | if test "$no_cache" != 1; then | |
3069 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3070 | fi | |
3071 | ||
3072 | if test "$wxUSE_LIBSDL" = yes; then | |
3073 | echo "$as_me:$LINENO: result: yes" >&5 | |
3074 | echo "${ECHO_T}yes" >&6 | |
3075 | else | |
3076 | echo "$as_me:$LINENO: result: no" >&5 | |
3077 | echo "${ECHO_T}no" >&6 | |
3078 | fi | |
3079 | ||
3080 | ||
d1c38808 VZ |
3081 | echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5 |
3082 | echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6 | |
3083 | no_cache=0 | |
3084 | ||
3085 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3086 | if test "${with_gnomeprint+set}" = set; then | |
3087 | withval="$with_gnomeprint" | |
3088 | ||
3089 | if test "$withval" = yes; then | |
3090 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3091 | else | |
3092 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3093 | fi | |
3094 | ||
3095 | else | |
3096 | ||
3097 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3098 | if test "x$LINE" != x ; then | |
3099 | eval "DEFAULT_$LINE" | |
3100 | else | |
3101 | no_cache=1 | |
3102 | fi | |
3103 | ||
3104 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3105 | ||
3106 | fi; | |
3107 | ||
3108 | eval "$ac_cv_use_gnomeprint" | |
3109 | if test "$no_cache" != 1; then | |
3110 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3111 | fi | |
3112 | ||
3113 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3114 | echo "$as_me:$LINENO: result: yes" >&5 | |
3115 | echo "${ECHO_T}yes" >&6 | |
3116 | else | |
3117 | echo "$as_me:$LINENO: result: no" >&5 | |
3118 | echo "${ECHO_T}no" >&6 | |
3119 | fi | |
3120 | ||
3121 | ||
a848cd7e SC |
3122 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
3123 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3124 | no_cache=0 | |
3125 | ||
3126 | # Check whether --with-opengl or --without-opengl was given. | |
3127 | if test "${with_opengl+set}" = set; then | |
3128 | withval="$with_opengl" | |
3129 | ||
3130 | if test "$withval" = yes; then | |
3131 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3132 | else | |
3133 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3134 | fi | |
3135 | ||
3136 | else | |
3137 | ||
3138 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3139 | if test "x$LINE" != x ; then | |
3140 | eval "DEFAULT_$LINE" | |
3141 | else | |
3142 | no_cache=1 | |
3143 | fi | |
3144 | ||
3145 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3146 | ||
3147 | fi; | |
3148 | ||
3149 | eval "$ac_cv_use_opengl" | |
3150 | if test "$no_cache" != 1; then | |
3151 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3152 | fi | |
3153 | ||
3154 | if test "$wxUSE_OPENGL" = yes; then | |
3155 | echo "$as_me:$LINENO: result: yes" >&5 | |
3156 | echo "${ECHO_T}yes" >&6 | |
3157 | else | |
3158 | echo "$as_me:$LINENO: result: no" >&5 | |
3159 | echo "${ECHO_T}no" >&6 | |
3160 | fi | |
3161 | ||
3162 | ||
3163 | fi | |
3164 | ||
3165 | ||
3166 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3167 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3168 | no_cache=0 | |
3169 | ||
3170 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3171 | if test "${with_dmalloc+set}" = set; then | |
3172 | withval="$with_dmalloc" | |
3173 | ||
3174 | if test "$withval" = yes; then | |
3175 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3176 | else | |
3177 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3178 | fi | |
3179 | ||
3180 | else | |
3181 | ||
3182 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3183 | if test "x$LINE" != x ; then | |
3184 | eval "DEFAULT_$LINE" | |
3185 | else | |
3186 | no_cache=1 | |
3187 | fi | |
3188 | ||
3189 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3190 | ||
3191 | fi; | |
3192 | ||
3193 | eval "$ac_cv_use_dmalloc" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_DMALLOC" = yes; then | |
3199 | echo "$as_me:$LINENO: result: yes" >&5 | |
3200 | echo "${ECHO_T}yes" >&6 | |
3201 | else | |
3202 | echo "$as_me:$LINENO: result: no" >&5 | |
3203 | echo "${ECHO_T}no" >&6 | |
3204 | fi | |
3205 | ||
3206 | ||
3207 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3208 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3209 | no_cache=0 | |
3210 | ||
3211 | # Check whether --with-regex or --without-regex was given. | |
3212 | if test "${with_regex+set}" = set; then | |
3213 | withval="$with_regex" | |
3214 | ||
3215 | if test "$withval" = yes; then | |
3216 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3217 | elif test "$withval" = no; then | |
3218 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3219 | elif test "$withval" = sys; then | |
3220 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3221 | elif test "$withval" = builtin; then | |
3222 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3223 | else | |
3224 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3225 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3226 | { (exit 1); exit 1; }; } | |
3227 | fi | |
3228 | ||
3229 | else | |
3230 | ||
3231 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3232 | if test "x$LINE" != x ; then | |
3233 | eval "DEFAULT_$LINE" | |
3234 | else | |
3235 | no_cache=1 | |
3236 | fi | |
3237 | ||
3238 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3239 | ||
3240 | fi; | |
3241 | ||
3242 | eval "$ac_cv_use_regex" | |
3243 | if test "$no_cache" != 1; then | |
3244 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3245 | fi | |
3246 | ||
3247 | if test "$wxUSE_REGEX" = yes; then | |
3248 | echo "$as_me:$LINENO: result: yes" >&5 | |
3249 | echo "${ECHO_T}yes" >&6 | |
3250 | elif test "$wxUSE_REGEX" = no; then | |
3251 | echo "$as_me:$LINENO: result: no" >&5 | |
3252 | echo "${ECHO_T}no" >&6 | |
3253 | elif test "$wxUSE_REGEX" = sys; then | |
3254 | echo "$as_me:$LINENO: result: system version" >&5 | |
3255 | echo "${ECHO_T}system version" >&6 | |
3256 | elif test "$wxUSE_REGEX" = builtin; then | |
3257 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3258 | echo "${ECHO_T}builtin version" >&6 | |
3259 | else | |
3260 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3261 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3262 | { (exit 1); exit 1; }; } | |
3263 | fi | |
3264 | ||
3265 | ||
3266 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3267 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3268 | no_cache=0 | |
3269 | ||
3270 | # Check whether --with-zlib or --without-zlib was given. | |
3271 | if test "${with_zlib+set}" = set; then | |
3272 | withval="$with_zlib" | |
3273 | ||
3274 | if test "$withval" = yes; then | |
3275 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3276 | elif test "$withval" = no; then | |
3277 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3278 | elif test "$withval" = sys; then | |
3279 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3280 | elif test "$withval" = builtin; then | |
3281 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3282 | else | |
3283 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3284 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3285 | { (exit 1); exit 1; }; } | |
3286 | fi | |
3287 | ||
3288 | else | |
3289 | ||
3290 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3291 | if test "x$LINE" != x ; then | |
3292 | eval "DEFAULT_$LINE" | |
3293 | else | |
3294 | no_cache=1 | |
3295 | fi | |
3296 | ||
3297 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3298 | ||
3299 | fi; | |
3300 | ||
3301 | eval "$ac_cv_use_zlib" | |
3302 | if test "$no_cache" != 1; then | |
3303 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3304 | fi | |
3305 | ||
3306 | if test "$wxUSE_ZLIB" = yes; then | |
3307 | echo "$as_me:$LINENO: result: yes" >&5 | |
3308 | echo "${ECHO_T}yes" >&6 | |
3309 | elif test "$wxUSE_ZLIB" = no; then | |
3310 | echo "$as_me:$LINENO: result: no" >&5 | |
3311 | echo "${ECHO_T}no" >&6 | |
3312 | elif test "$wxUSE_ZLIB" = sys; then | |
3313 | echo "$as_me:$LINENO: result: system version" >&5 | |
3314 | echo "${ECHO_T}system version" >&6 | |
3315 | elif test "$wxUSE_ZLIB" = builtin; then | |
3316 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3317 | echo "${ECHO_T}builtin version" >&6 | |
3318 | else | |
3319 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3320 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3321 | { (exit 1); exit 1; }; } | |
3322 | fi | |
3323 | ||
3324 | ||
3325 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3326 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3327 | no_cache=0 | |
3328 | ||
3329 | # Check whether --with-odbc or --without-odbc was given. | |
3330 | if test "${with_odbc+set}" = set; then | |
3331 | withval="$with_odbc" | |
3332 | ||
3333 | if test "$withval" = yes; then | |
3334 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3335 | elif test "$withval" = no; then | |
3336 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3337 | elif test "$withval" = sys; then | |
3338 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3339 | elif test "$withval" = builtin; then | |
3340 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3341 | else | |
3342 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3343 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3344 | { (exit 1); exit 1; }; } | |
3345 | fi | |
3346 | ||
3347 | else | |
3348 | ||
3349 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3350 | if test "x$LINE" != x ; then | |
3351 | eval "DEFAULT_$LINE" | |
3352 | else | |
3353 | no_cache=1 | |
3354 | fi | |
3355 | ||
3356 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3357 | ||
3358 | fi; | |
3359 | ||
3360 | eval "$ac_cv_use_odbc" | |
3361 | if test "$no_cache" != 1; then | |
3362 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3363 | fi | |
3364 | ||
3365 | if test "$wxUSE_ODBC" = yes; then | |
3366 | echo "$as_me:$LINENO: result: yes" >&5 | |
3367 | echo "${ECHO_T}yes" >&6 | |
3368 | elif test "$wxUSE_ODBC" = no; then | |
3369 | echo "$as_me:$LINENO: result: no" >&5 | |
3370 | echo "${ECHO_T}no" >&6 | |
3371 | elif test "$wxUSE_ODBC" = sys; then | |
3372 | echo "$as_me:$LINENO: result: system version" >&5 | |
3373 | echo "${ECHO_T}system version" >&6 | |
3374 | elif test "$wxUSE_ODBC" = builtin; then | |
3375 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3376 | echo "${ECHO_T}builtin version" >&6 | |
3377 | else | |
3378 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3379 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3380 | { (exit 1); exit 1; }; } | |
3381 | fi | |
3382 | ||
3383 | ||
3384 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3385 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3386 | no_cache=0 | |
3387 | ||
3388 | # Check whether --with-expat or --without-expat was given. | |
3389 | if test "${with_expat+set}" = set; then | |
3390 | withval="$with_expat" | |
3391 | ||
3392 | if test "$withval" = yes; then | |
3393 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3394 | elif test "$withval" = no; then | |
3395 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3396 | elif test "$withval" = sys; then | |
3397 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3398 | elif test "$withval" = builtin; then | |
3399 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3400 | else | |
3401 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3402 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3403 | { (exit 1); exit 1; }; } | |
3404 | fi | |
3405 | ||
3406 | else | |
3407 | ||
3408 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3409 | if test "x$LINE" != x ; then | |
3410 | eval "DEFAULT_$LINE" | |
3411 | else | |
3412 | no_cache=1 | |
3413 | fi | |
3414 | ||
3415 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3416 | ||
3417 | fi; | |
3418 | ||
3419 | eval "$ac_cv_use_expat" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_EXPAT" = yes; then | |
3425 | echo "$as_me:$LINENO: result: yes" >&5 | |
3426 | echo "${ECHO_T}yes" >&6 | |
3427 | elif test "$wxUSE_EXPAT" = no; then | |
3428 | echo "$as_me:$LINENO: result: no" >&5 | |
3429 | echo "${ECHO_T}no" >&6 | |
3430 | elif test "$wxUSE_EXPAT" = sys; then | |
3431 | echo "$as_me:$LINENO: result: system version" >&5 | |
3432 | echo "${ECHO_T}system version" >&6 | |
3433 | elif test "$wxUSE_EXPAT" = builtin; then | |
3434 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3435 | echo "${ECHO_T}builtin version" >&6 | |
3436 | else | |
3437 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3438 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3439 | { (exit 1); exit 1; }; } | |
3440 | fi | |
3441 | ||
3442 | ||
3443 | ||
3444 | ||
3445 | enablestring= | |
3446 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3447 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3448 | no_cache=0 | |
3449 | # Check whether --enable-shared or --disable-shared was given. | |
3450 | if test "${enable_shared+set}" = set; then | |
3451 | enableval="$enable_shared" | |
3452 | ||
3453 | if test "$enableval" = yes; then | |
3454 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3455 | else | |
3456 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3457 | fi | |
3458 | ||
3459 | else | |
3460 | ||
3461 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3462 | if test "x$LINE" != x ; then | |
3463 | eval "DEFAULT_$LINE" | |
3464 | else | |
3465 | no_cache=1 | |
3466 | fi | |
3467 | ||
3468 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3469 | ||
3470 | fi; | |
3471 | ||
3472 | eval "$ac_cv_use_shared" | |
3473 | if test "$no_cache" != 1; then | |
3474 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3475 | fi | |
3476 | ||
3477 | if test "$wxUSE_SHARED" = yes; then | |
3478 | echo "$as_me:$LINENO: result: yes" >&5 | |
3479 | echo "${ECHO_T}yes" >&6 | |
3480 | else | |
3481 | echo "$as_me:$LINENO: result: no" >&5 | |
3482 | echo "${ECHO_T}no" >&6 | |
3483 | fi | |
3484 | ||
3485 | ||
3486 | enablestring= | |
3487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3488 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3489 | no_cache=0 | |
3490 | # Check whether --enable-optimise or --disable-optimise was given. | |
3491 | if test "${enable_optimise+set}" = set; then | |
3492 | enableval="$enable_optimise" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3496 | else | |
3497 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3510 | ||
3511 | fi; | |
3512 | ||
3513 | eval "$ac_cv_use_optimise" | |
3514 | if test "$no_cache" != 1; then | |
3515 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3516 | fi | |
3517 | ||
3518 | if test "$wxUSE_OPTIMISE" = yes; then | |
3519 | echo "$as_me:$LINENO: result: yes" >&5 | |
3520 | echo "${ECHO_T}yes" >&6 | |
3521 | else | |
3522 | echo "$as_me:$LINENO: result: no" >&5 | |
3523 | echo "${ECHO_T}no" >&6 | |
3524 | fi | |
3525 | ||
3526 | ||
3527 | enablestring= | |
3528 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3529 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3530 | no_cache=0 | |
3531 | # Check whether --enable-debug or --disable-debug was given. | |
3532 | if test "${enable_debug+set}" = set; then | |
3533 | enableval="$enable_debug" | |
3534 | ||
3535 | if test "$enableval" = yes; then | |
3536 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3537 | else | |
3538 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3539 | fi | |
3540 | ||
3541 | else | |
3542 | ||
3543 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3544 | if test "x$LINE" != x ; then | |
3545 | eval "DEFAULT_$LINE" | |
3546 | else | |
3547 | no_cache=1 | |
3548 | fi | |
3549 | ||
3550 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3551 | ||
3552 | fi; | |
3553 | ||
3554 | eval "$ac_cv_use_debug" | |
3555 | if test "$no_cache" != 1; then | |
3556 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3557 | fi | |
3558 | ||
3559 | if test "$wxUSE_DEBUG" = yes; then | |
3560 | echo "$as_me:$LINENO: result: yes" >&5 | |
3561 | echo "${ECHO_T}yes" >&6 | |
3562 | else | |
3563 | echo "$as_me:$LINENO: result: no" >&5 | |
3564 | echo "${ECHO_T}no" >&6 | |
3565 | fi | |
3566 | ||
3567 | ||
3568 | enablestring= | |
3569 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3570 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3571 | no_cache=0 | |
3572 | # Check whether --enable-stl or --disable-stl was given. | |
3573 | if test "${enable_stl+set}" = set; then | |
3574 | enableval="$enable_stl" | |
3575 | ||
3576 | if test "$enableval" = yes; then | |
3577 | ac_cv_use_stl='wxUSE_STL=yes' | |
3578 | else | |
3579 | ac_cv_use_stl='wxUSE_STL=no' | |
3580 | fi | |
3581 | ||
3582 | else | |
3583 | ||
3584 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3585 | if test "x$LINE" != x ; then | |
3586 | eval "DEFAULT_$LINE" | |
3587 | else | |
3588 | no_cache=1 | |
3589 | fi | |
3590 | ||
3591 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3592 | ||
3593 | fi; | |
3594 | ||
3595 | eval "$ac_cv_use_stl" | |
3596 | if test "$no_cache" != 1; then | |
3597 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3598 | fi | |
3599 | ||
3600 | if test "$wxUSE_STL" = yes; then | |
3601 | echo "$as_me:$LINENO: result: yes" >&5 | |
3602 | echo "${ECHO_T}yes" >&6 | |
3603 | else | |
3604 | echo "$as_me:$LINENO: result: no" >&5 | |
3605 | echo "${ECHO_T}no" >&6 | |
3606 | fi | |
3607 | ||
3608 | if test "$USE_OS2" = "1"; then | |
3609 | ||
3610 | enablestring= | |
3611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3612 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3613 | no_cache=0 | |
3614 | # Check whether --enable-omf or --disable-omf was given. | |
3615 | if test "${enable_omf+set}" = set; then | |
3616 | enableval="$enable_omf" | |
3617 | ||
3618 | if test "$enableval" = yes; then | |
3619 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3620 | else | |
3621 | ac_cv_use_omf='wxUSE_OMF=no' | |
3622 | fi | |
3623 | ||
3624 | else | |
3625 | ||
3626 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3627 | if test "x$LINE" != x ; then | |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
3633 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3634 | ||
3635 | fi; | |
3636 | ||
3637 | eval "$ac_cv_use_omf" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_OMF" = yes; then | |
3643 | echo "$as_me:$LINENO: result: yes" >&5 | |
3644 | echo "${ECHO_T}yes" >&6 | |
3645 | else | |
3646 | echo "$as_me:$LINENO: result: no" >&5 | |
3647 | echo "${ECHO_T}no" >&6 | |
3648 | fi | |
3649 | ||
3650 | fi | |
3651 | ||
3652 | if test "$wxUSE_DEBUG" = "yes"; then | |
3653 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3654 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3655 | BUILD=debug | |
3656 | elif test "$wxUSE_DEBUG" = "no"; then | |
3657 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3658 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3659 | BUILD=release | |
3660 | fi | |
3661 | ||
3662 | ||
3663 | enablestring= | |
3664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3665 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3666 | no_cache=0 | |
3667 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3668 | if test "${enable_debug_flag+set}" = set; then | |
3669 | enableval="$enable_debug_flag" | |
3670 | ||
3671 | if test "$enableval" = yes; then | |
3672 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3673 | else | |
3674 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3675 | fi | |
3676 | ||
3677 | else | |
3678 | ||
3679 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3680 | if test "x$LINE" != x ; then | |
3681 | eval "DEFAULT_$LINE" | |
3682 | else | |
3683 | no_cache=1 | |
3684 | fi | |
3685 | ||
3686 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3687 | ||
3688 | fi; | |
3689 | ||
3690 | eval "$ac_cv_use_debug_flag" | |
3691 | if test "$no_cache" != 1; then | |
3692 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3693 | fi | |
3694 | ||
3695 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3696 | echo "$as_me:$LINENO: result: yes" >&5 | |
3697 | echo "${ECHO_T}yes" >&6 | |
3698 | else | |
3699 | echo "$as_me:$LINENO: result: no" >&5 | |
3700 | echo "${ECHO_T}no" >&6 | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | enablestring= | |
3705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3706 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3707 | no_cache=0 | |
3708 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3709 | if test "${enable_debug_info+set}" = set; then | |
3710 | enableval="$enable_debug_info" | |
3711 | ||
3712 | if test "$enableval" = yes; then | |
3713 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3714 | else | |
3715 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3716 | fi | |
3717 | ||
3718 | else | |
3719 | ||
3720 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3721 | if test "x$LINE" != x ; then | |
3722 | eval "DEFAULT_$LINE" | |
3723 | else | |
3724 | no_cache=1 | |
3725 | fi | |
3726 | ||
3727 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3728 | ||
3729 | fi; | |
3730 | ||
3731 | eval "$ac_cv_use_debug_info" | |
3732 | if test "$no_cache" != 1; then | |
3733 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3734 | fi | |
3735 | ||
3736 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3737 | echo "$as_me:$LINENO: result: yes" >&5 | |
3738 | echo "${ECHO_T}yes" >&6 | |
3739 | else | |
3740 | echo "$as_me:$LINENO: result: no" >&5 | |
3741 | echo "${ECHO_T}no" >&6 | |
3742 | fi | |
3743 | ||
3744 | ||
3745 | enablestring= | |
3746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3747 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3748 | no_cache=0 | |
3749 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3750 | if test "${enable_debug_gdb+set}" = set; then | |
3751 | enableval="$enable_debug_gdb" | |
3752 | ||
3753 | if test "$enableval" = yes; then | |
3754 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3755 | else | |
3756 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3757 | fi | |
3758 | ||
3759 | else | |
3760 | ||
3761 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3762 | if test "x$LINE" != x ; then | |
3763 | eval "DEFAULT_$LINE" | |
3764 | else | |
3765 | no_cache=1 | |
3766 | fi | |
3767 | ||
3768 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3769 | ||
3770 | fi; | |
3771 | ||
3772 | eval "$ac_cv_use_debug_gdb" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3778 | echo "$as_me:$LINENO: result: yes" >&5 | |
3779 | echo "${ECHO_T}yes" >&6 | |
3780 | else | |
3781 | echo "$as_me:$LINENO: result: no" >&5 | |
3782 | echo "${ECHO_T}no" >&6 | |
3783 | fi | |
3784 | ||
3785 | ||
3786 | enablestring= | |
3787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3788 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3789 | no_cache=0 | |
3790 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3791 | if test "${enable_debug_cntxt+set}" = set; then | |
3792 | enableval="$enable_debug_cntxt" | |
3793 | ||
3794 | if test "$enableval" = yes; then | |
3795 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3796 | else | |
3797 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3798 | fi | |
3799 | ||
3800 | else | |
3801 | ||
3802 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3803 | if test "x$LINE" != x ; then | |
3804 | eval "DEFAULT_$LINE" | |
3805 | else | |
3806 | no_cache=1 | |
3807 | fi | |
3808 | ||
3809 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3810 | ||
3811 | fi; | |
3812 | ||
3813 | eval "$ac_cv_use_debug_cntxt" | |
3814 | if test "$no_cache" != 1; then | |
3815 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3816 | fi | |
3817 | ||
3818 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3819 | echo "$as_me:$LINENO: result: yes" >&5 | |
3820 | echo "${ECHO_T}yes" >&6 | |
3821 | else | |
3822 | echo "$as_me:$LINENO: result: no" >&5 | |
3823 | echo "${ECHO_T}no" >&6 | |
3824 | fi | |
3825 | ||
3826 | ||
3827 | enablestring= | |
3828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3829 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3830 | no_cache=0 | |
3831 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3832 | if test "${enable_mem_tracing+set}" = set; then | |
3833 | enableval="$enable_mem_tracing" | |
3834 | ||
3835 | if test "$enableval" = yes; then | |
3836 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3837 | else | |
3838 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3839 | fi | |
3840 | ||
3841 | else | |
3842 | ||
3843 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3851 | ||
3852 | fi; | |
3853 | ||
3854 | eval "$ac_cv_use_mem_tracing" | |
3855 | if test "$no_cache" != 1; then | |
3856 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3857 | fi | |
3858 | ||
3859 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3860 | echo "$as_me:$LINENO: result: yes" >&5 | |
3861 | echo "${ECHO_T}yes" >&6 | |
3862 | else | |
3863 | echo "$as_me:$LINENO: result: no" >&5 | |
3864 | echo "${ECHO_T}no" >&6 | |
3865 | fi | |
3866 | ||
3867 | ||
3868 | enablestring= | |
3869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3870 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3871 | no_cache=0 | |
3872 | # Check whether --enable-profile or --disable-profile was given. | |
3873 | if test "${enable_profile+set}" = set; then | |
3874 | enableval="$enable_profile" | |
3875 | ||
3876 | if test "$enableval" = yes; then | |
3877 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3878 | else | |
3879 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3880 | fi | |
3881 | ||
3882 | else | |
3883 | ||
3884 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3885 | if test "x$LINE" != x ; then | |
3886 | eval "DEFAULT_$LINE" | |
3887 | else | |
3888 | no_cache=1 | |
3889 | fi | |
3890 | ||
3891 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3892 | ||
3893 | fi; | |
3894 | ||
3895 | eval "$ac_cv_use_profile" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_PROFILE" = yes; then | |
3901 | echo "$as_me:$LINENO: result: yes" >&5 | |
3902 | echo "${ECHO_T}yes" >&6 | |
3903 | else | |
3904 | echo "$as_me:$LINENO: result: no" >&5 | |
3905 | echo "${ECHO_T}no" >&6 | |
3906 | fi | |
3907 | ||
3908 | ||
3909 | enablestring= | |
3910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3911 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3912 | no_cache=0 | |
3913 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3914 | if test "${enable_no_rtti+set}" = set; then | |
3915 | enableval="$enable_no_rtti" | |
3916 | ||
3917 | if test "$enableval" = yes; then | |
3918 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3919 | else | |
3920 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3921 | fi | |
3922 | ||
3923 | else | |
3924 | ||
3925 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3926 | if test "x$LINE" != x ; then | |
3927 | eval "DEFAULT_$LINE" | |
3928 | else | |
3929 | no_cache=1 | |
3930 | fi | |
3931 | ||
3932 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3933 | ||
3934 | fi; | |
3935 | ||
3936 | eval "$ac_cv_use_no_rtti" | |
3937 | if test "$no_cache" != 1; then | |
3938 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3939 | fi | |
3940 | ||
3941 | if test "$wxUSE_NO_RTTI" = yes; then | |
3942 | echo "$as_me:$LINENO: result: yes" >&5 | |
3943 | echo "${ECHO_T}yes" >&6 | |
3944 | else | |
3945 | echo "$as_me:$LINENO: result: no" >&5 | |
3946 | echo "${ECHO_T}no" >&6 | |
3947 | fi | |
3948 | ||
3949 | ||
3950 | enablestring= | |
3951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3952 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3953 | no_cache=0 | |
3954 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3955 | if test "${enable_no_exceptions+set}" = set; then | |
3956 | enableval="$enable_no_exceptions" | |
3957 | ||
3958 | if test "$enableval" = yes; then | |
3959 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3960 | else | |
3961 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3962 | fi | |
3963 | ||
3964 | else | |
3965 | ||
3966 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3967 | if test "x$LINE" != x ; then | |
3968 | eval "DEFAULT_$LINE" | |
3969 | else | |
3970 | no_cache=1 | |
3971 | fi | |
3972 | ||
3973 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3974 | ||
3975 | fi; | |
3976 | ||
3977 | eval "$ac_cv_use_no_exceptions" | |
3978 | if test "$no_cache" != 1; then | |
3979 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3980 | fi | |
3981 | ||
3982 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3983 | echo "$as_me:$LINENO: result: yes" >&5 | |
3984 | echo "${ECHO_T}yes" >&6 | |
3985 | else | |
3986 | echo "$as_me:$LINENO: result: no" >&5 | |
3987 | echo "${ECHO_T}no" >&6 | |
3988 | fi | |
3989 | ||
3990 | ||
3991 | enablestring= | |
3992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3993 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3994 | no_cache=0 | |
3995 | # Check whether --enable-permissive or --disable-permissive was given. | |
3996 | if test "${enable_permissive+set}" = set; then | |
3997 | enableval="$enable_permissive" | |
3998 | ||
3999 | if test "$enableval" = yes; then | |
4000 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4001 | else | |
4002 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4003 | fi | |
4004 | ||
4005 | else | |
4006 | ||
4007 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4008 | if test "x$LINE" != x ; then | |
4009 | eval "DEFAULT_$LINE" | |
4010 | else | |
4011 | no_cache=1 | |
4012 | fi | |
4013 | ||
4014 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4015 | ||
4016 | fi; | |
4017 | ||
4018 | eval "$ac_cv_use_permissive" | |
4019 | if test "$no_cache" != 1; then | |
4020 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4021 | fi | |
4022 | ||
4023 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4024 | echo "$as_me:$LINENO: result: yes" >&5 | |
4025 | echo "${ECHO_T}yes" >&6 | |
4026 | else | |
4027 | echo "$as_me:$LINENO: result: no" >&5 | |
4028 | echo "${ECHO_T}no" >&6 | |
4029 | fi | |
4030 | ||
4031 | ||
4032 | enablestring= | |
4033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4034 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4035 | no_cache=0 | |
4036 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4037 | if test "${enable_no_deps+set}" = set; then | |
4038 | enableval="$enable_no_deps" | |
4039 | ||
4040 | if test "$enableval" = yes; then | |
4041 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4042 | else | |
4043 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4044 | fi | |
4045 | ||
4046 | else | |
4047 | ||
4048 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4049 | if test "x$LINE" != x ; then | |
4050 | eval "DEFAULT_$LINE" | |
4051 | else | |
4052 | no_cache=1 | |
4053 | fi | |
4054 | ||
4055 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4056 | ||
4057 | fi; | |
4058 | ||
4059 | eval "$ac_cv_use_no_deps" | |
4060 | if test "$no_cache" != 1; then | |
4061 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4062 | fi | |
4063 | ||
4064 | if test "$wxUSE_NO_DEPS" = yes; then | |
4065 | echo "$as_me:$LINENO: result: yes" >&5 | |
4066 | echo "${ECHO_T}yes" >&6 | |
4067 | else | |
4068 | echo "$as_me:$LINENO: result: no" >&5 | |
4069 | echo "${ECHO_T}no" >&6 | |
4070 | fi | |
4071 | ||
4072 | ||
4073 | ||
4074 | enablestring= | |
4075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
4076 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
4077 | no_cache=0 | |
4078 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
4079 | if test "${enable_compat22+set}" = set; then | |
4080 | enableval="$enable_compat22" | |
4081 | ||
4082 | if test "$enableval" = yes; then | |
4083 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
4084 | else | |
4085 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
4086 | fi | |
4087 | ||
4088 | else | |
4089 | ||
4090 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
4091 | if test "x$LINE" != x ; then | |
4092 | eval "DEFAULT_$LINE" | |
4093 | else | |
4094 | no_cache=1 | |
4095 | fi | |
4096 | ||
4097 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4098 | ||
4099 | fi; | |
4100 | ||
4101 | eval "$ac_cv_use_compat22" | |
4102 | if test "$no_cache" != 1; then | |
4103 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4104 | fi | |
4105 | ||
4106 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4107 | echo "$as_me:$LINENO: result: yes" >&5 | |
4108 | echo "${ECHO_T}yes" >&6 | |
4109 | else | |
4110 | echo "$as_me:$LINENO: result: no" >&5 | |
4111 | echo "${ECHO_T}no" >&6 | |
4112 | fi | |
4113 | ||
4114 | ||
4115 | enablestring=disable | |
4116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4117 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4118 | no_cache=0 | |
4119 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4120 | if test "${enable_compat24+set}" = set; then | |
4121 | enableval="$enable_compat24" | |
4122 | ||
4123 | if test "$enableval" = yes; then | |
4124 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4125 | else | |
4126 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4127 | fi | |
4128 | ||
4129 | else | |
4130 | ||
4131 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4132 | if test "x$LINE" != x ; then | |
4133 | eval "DEFAULT_$LINE" | |
4134 | else | |
4135 | no_cache=1 | |
4136 | fi | |
4137 | ||
4138 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4139 | ||
4140 | fi; | |
4141 | ||
4142 | eval "$ac_cv_use_compat24" | |
4143 | if test "$no_cache" != 1; then | |
4144 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4145 | fi | |
4146 | ||
4147 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4148 | echo "$as_me:$LINENO: result: yes" >&5 | |
4149 | echo "${ECHO_T}yes" >&6 | |
4150 | else | |
4151 | echo "$as_me:$LINENO: result: no" >&5 | |
4152 | echo "${ECHO_T}no" >&6 | |
4153 | fi | |
4154 | ||
4155 | ||
ffa0583f RL |
4156 | |
4157 | enablestring= | |
4158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4159 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4160 | no_cache=0 | |
4161 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4162 | if test "${enable_rpath+set}" = set; then |
4163 | enableval="$enable_rpath" | |
ffa0583f RL |
4164 | |
4165 | if test "$enableval" = yes; then | |
4166 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4167 | else | |
4168 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4169 | fi | |
4170 | ||
4171 | else | |
4172 | ||
4173 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4174 | if test "x$LINE" != x ; then | |
4175 | eval "DEFAULT_$LINE" | |
4176 | else | |
4177 | no_cache=1 | |
4178 | fi | |
4179 | ||
4180 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4181 | ||
a848cd7e SC |
4182 | fi; |
4183 | ||
ffa0583f RL |
4184 | eval "$ac_cv_use_rpath" |
4185 | if test "$no_cache" != 1; then | |
4186 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4187 | fi | |
4188 | ||
4189 | if test "$wxUSE_RPATH" = yes; then | |
4190 | echo "$as_me:$LINENO: result: yes" >&5 | |
4191 | echo "${ECHO_T}yes" >&6 | |
4192 | else | |
4193 | echo "$as_me:$LINENO: result: no" >&5 | |
4194 | echo "${ECHO_T}no" >&6 | |
4195 | fi | |
4196 | ||
a848cd7e SC |
4197 | |
4198 | ||
4199 | ||
4200 | ||
4201 | enablestring= | |
4202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4203 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4204 | no_cache=0 | |
4205 | # Check whether --enable-intl or --disable-intl was given. | |
4206 | if test "${enable_intl+set}" = set; then | |
4207 | enableval="$enable_intl" | |
4208 | ||
4209 | if test "$enableval" = yes; then | |
4210 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4211 | else | |
4212 | ac_cv_use_intl='wxUSE_INTL=no' | |
4213 | fi | |
4214 | ||
4215 | else | |
4216 | ||
4217 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4218 | if test "x$LINE" != x ; then | |
4219 | eval "DEFAULT_$LINE" | |
4220 | else | |
4221 | no_cache=1 | |
4222 | fi | |
4223 | ||
4224 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4225 | ||
4226 | fi; | |
4227 | ||
4228 | eval "$ac_cv_use_intl" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_INTL" = yes; then | |
4234 | echo "$as_me:$LINENO: result: yes" >&5 | |
4235 | echo "${ECHO_T}yes" >&6 | |
4236 | else | |
4237 | echo "$as_me:$LINENO: result: no" >&5 | |
4238 | echo "${ECHO_T}no" >&6 | |
4239 | fi | |
4240 | ||
4241 | ||
4242 | enablestring= | |
4243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4244 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4245 | no_cache=0 | |
4246 | # Check whether --enable-config or --disable-config was given. | |
4247 | if test "${enable_config+set}" = set; then | |
4248 | enableval="$enable_config" | |
4249 | ||
4250 | if test "$enableval" = yes; then | |
4251 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4252 | else | |
4253 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | ||
4258 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4259 | if test "x$LINE" != x ; then | |
4260 | eval "DEFAULT_$LINE" | |
4261 | else | |
4262 | no_cache=1 | |
4263 | fi | |
4264 | ||
4265 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4266 | ||
4267 | fi; | |
4268 | ||
4269 | eval "$ac_cv_use_config" | |
4270 | if test "$no_cache" != 1; then | |
4271 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4272 | fi | |
4273 | ||
4274 | if test "$wxUSE_CONFIG" = yes; then | |
4275 | echo "$as_me:$LINENO: result: yes" >&5 | |
4276 | echo "${ECHO_T}yes" >&6 | |
4277 | else | |
4278 | echo "$as_me:$LINENO: result: no" >&5 | |
4279 | echo "${ECHO_T}no" >&6 | |
4280 | fi | |
4281 | ||
4282 | ||
4283 | ||
4284 | enablestring= | |
4285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4286 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4287 | no_cache=0 | |
4288 | # Check whether --enable-protocols or --disable-protocols was given. | |
4289 | if test "${enable_protocols+set}" = set; then | |
4290 | enableval="$enable_protocols" | |
4291 | ||
4292 | if test "$enableval" = yes; then | |
4293 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4294 | else | |
4295 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4296 | fi | |
4297 | ||
4298 | else | |
4299 | ||
4300 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4301 | if test "x$LINE" != x ; then | |
4302 | eval "DEFAULT_$LINE" | |
4303 | else | |
4304 | no_cache=1 | |
4305 | fi | |
4306 | ||
4307 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4308 | ||
4309 | fi; | |
4310 | ||
4311 | eval "$ac_cv_use_protocols" | |
4312 | if test "$no_cache" != 1; then | |
4313 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4314 | fi | |
4315 | ||
4316 | if test "$wxUSE_PROTOCOL" = yes; then | |
4317 | echo "$as_me:$LINENO: result: yes" >&5 | |
4318 | echo "${ECHO_T}yes" >&6 | |
4319 | else | |
4320 | echo "$as_me:$LINENO: result: no" >&5 | |
4321 | echo "${ECHO_T}no" >&6 | |
4322 | fi | |
4323 | ||
4324 | ||
4325 | enablestring= | |
4326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4327 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4328 | no_cache=0 | |
4329 | # Check whether --enable-ftp or --disable-ftp was given. | |
4330 | if test "${enable_ftp+set}" = set; then | |
4331 | enableval="$enable_ftp" | |
4332 | ||
4333 | if test "$enableval" = yes; then | |
4334 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4335 | else | |
4336 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4337 | fi | |
4338 | ||
4339 | else | |
4340 | ||
4341 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4342 | if test "x$LINE" != x ; then | |
4343 | eval "DEFAULT_$LINE" | |
4344 | else | |
4345 | no_cache=1 | |
4346 | fi | |
4347 | ||
4348 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4349 | ||
4350 | fi; | |
4351 | ||
4352 | eval "$ac_cv_use_ftp" | |
4353 | if test "$no_cache" != 1; then | |
4354 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4355 | fi | |
4356 | ||
4357 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4358 | echo "$as_me:$LINENO: result: yes" >&5 | |
4359 | echo "${ECHO_T}yes" >&6 | |
4360 | else | |
4361 | echo "$as_me:$LINENO: result: no" >&5 | |
4362 | echo "${ECHO_T}no" >&6 | |
4363 | fi | |
4364 | ||
4365 | ||
4366 | enablestring= | |
4367 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4368 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4369 | no_cache=0 | |
4370 | # Check whether --enable-http or --disable-http was given. | |
4371 | if test "${enable_http+set}" = set; then | |
4372 | enableval="$enable_http" | |
4373 | ||
4374 | if test "$enableval" = yes; then | |
4375 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4376 | else | |
4377 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4378 | fi | |
4379 | ||
4380 | else | |
4381 | ||
4382 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4383 | if test "x$LINE" != x ; then | |
4384 | eval "DEFAULT_$LINE" | |
4385 | else | |
4386 | no_cache=1 | |
4387 | fi | |
4388 | ||
4389 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4390 | ||
4391 | fi; | |
4392 | ||
4393 | eval "$ac_cv_use_http" | |
4394 | if test "$no_cache" != 1; then | |
4395 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4396 | fi | |
4397 | ||
4398 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4399 | echo "$as_me:$LINENO: result: yes" >&5 | |
4400 | echo "${ECHO_T}yes" >&6 | |
4401 | else | |
4402 | echo "$as_me:$LINENO: result: no" >&5 | |
4403 | echo "${ECHO_T}no" >&6 | |
4404 | fi | |
4405 | ||
4406 | ||
4407 | enablestring= | |
4408 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4409 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4410 | no_cache=0 | |
4411 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4412 | if test "${enable_fileproto+set}" = set; then | |
4413 | enableval="$enable_fileproto" | |
4414 | ||
4415 | if test "$enableval" = yes; then | |
4416 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4417 | else | |
4418 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4419 | fi | |
4420 | ||
4421 | else | |
4422 | ||
4423 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4424 | if test "x$LINE" != x ; then | |
4425 | eval "DEFAULT_$LINE" | |
4426 | else | |
4427 | no_cache=1 | |
4428 | fi | |
4429 | ||
4430 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4431 | ||
4432 | fi; | |
4433 | ||
4434 | eval "$ac_cv_use_fileproto" | |
4435 | if test "$no_cache" != 1; then | |
4436 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4437 | fi | |
4438 | ||
4439 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4440 | echo "$as_me:$LINENO: result: yes" >&5 | |
4441 | echo "${ECHO_T}yes" >&6 | |
4442 | else | |
4443 | echo "$as_me:$LINENO: result: no" >&5 | |
4444 | echo "${ECHO_T}no" >&6 | |
4445 | fi | |
4446 | ||
4447 | ||
4448 | enablestring= | |
4449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4450 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4451 | no_cache=0 | |
4452 | # Check whether --enable-sockets or --disable-sockets was given. | |
4453 | if test "${enable_sockets+set}" = set; then | |
4454 | enableval="$enable_sockets" | |
4455 | ||
4456 | if test "$enableval" = yes; then | |
4457 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4458 | else | |
4459 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4460 | fi | |
4461 | ||
4462 | else | |
4463 | ||
4464 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4465 | if test "x$LINE" != x ; then | |
4466 | eval "DEFAULT_$LINE" | |
4467 | else | |
4468 | no_cache=1 | |
4469 | fi | |
4470 | ||
4471 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4472 | ||
4473 | fi; | |
4474 | ||
4475 | eval "$ac_cv_use_sockets" | |
4476 | if test "$no_cache" != 1; then | |
4477 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4478 | fi | |
4479 | ||
4480 | if test "$wxUSE_SOCKETS" = yes; then | |
4481 | echo "$as_me:$LINENO: result: yes" >&5 | |
4482 | echo "${ECHO_T}yes" >&6 | |
4483 | else | |
4484 | echo "$as_me:$LINENO: result: no" >&5 | |
4485 | echo "${ECHO_T}no" >&6 | |
4486 | fi | |
4487 | ||
4488 | ||
4489 | enablestring= | |
4490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4491 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4492 | no_cache=0 | |
4493 | # Check whether --enable-ole or --disable-ole was given. | |
4494 | if test "${enable_ole+set}" = set; then | |
4495 | enableval="$enable_ole" | |
4496 | ||
4497 | if test "$enableval" = yes; then | |
4498 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4499 | else | |
4500 | ac_cv_use_ole='wxUSE_OLE=no' | |
4501 | fi | |
4502 | ||
4503 | else | |
4504 | ||
4505 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4506 | if test "x$LINE" != x ; then | |
4507 | eval "DEFAULT_$LINE" | |
4508 | else | |
4509 | no_cache=1 | |
4510 | fi | |
4511 | ||
4512 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4513 | ||
4514 | fi; | |
4515 | ||
4516 | eval "$ac_cv_use_ole" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_OLE" = yes; then | |
4522 | echo "$as_me:$LINENO: result: yes" >&5 | |
4523 | echo "${ECHO_T}yes" >&6 | |
4524 | else | |
4525 | echo "$as_me:$LINENO: result: no" >&5 | |
4526 | echo "${ECHO_T}no" >&6 | |
4527 | fi | |
4528 | ||
4529 | ||
4530 | enablestring= | |
4531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4532 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4533 | no_cache=0 | |
4534 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4535 | if test "${enable_dataobj+set}" = set; then | |
4536 | enableval="$enable_dataobj" | |
4537 | ||
4538 | if test "$enableval" = yes; then | |
4539 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4540 | else | |
4541 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4542 | fi | |
4543 | ||
4544 | else | |
4545 | ||
4546 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4547 | if test "x$LINE" != x ; then | |
4548 | eval "DEFAULT_$LINE" | |
4549 | else | |
4550 | no_cache=1 | |
4551 | fi | |
4552 | ||
4553 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4554 | ||
4555 | fi; | |
4556 | ||
4557 | eval "$ac_cv_use_dataobj" | |
4558 | if test "$no_cache" != 1; then | |
4559 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4560 | fi | |
4561 | ||
4562 | if test "$wxUSE_DATAOBJ" = yes; then | |
4563 | echo "$as_me:$LINENO: result: yes" >&5 | |
4564 | echo "${ECHO_T}yes" >&6 | |
4565 | else | |
4566 | echo "$as_me:$LINENO: result: no" >&5 | |
4567 | echo "${ECHO_T}no" >&6 | |
4568 | fi | |
4569 | ||
4570 | ||
4571 | ||
4572 | enablestring= | |
4573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4574 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4575 | no_cache=0 | |
4576 | # Check whether --enable-ipc or --disable-ipc was given. | |
4577 | if test "${enable_ipc+set}" = set; then | |
4578 | enableval="$enable_ipc" | |
4579 | ||
4580 | if test "$enableval" = yes; then | |
4581 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4582 | else | |
4583 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4584 | fi | |
4585 | ||
4586 | else | |
4587 | ||
4588 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4589 | if test "x$LINE" != x ; then | |
4590 | eval "DEFAULT_$LINE" | |
4591 | else | |
4592 | no_cache=1 | |
4593 | fi | |
4594 | ||
4595 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4596 | ||
4597 | fi; | |
4598 | ||
4599 | eval "$ac_cv_use_ipc" | |
4600 | if test "$no_cache" != 1; then | |
4601 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4602 | fi | |
4603 | ||
4604 | if test "$wxUSE_IPC" = yes; then | |
4605 | echo "$as_me:$LINENO: result: yes" >&5 | |
4606 | echo "${ECHO_T}yes" >&6 | |
4607 | else | |
4608 | echo "$as_me:$LINENO: result: no" >&5 | |
4609 | echo "${ECHO_T}no" >&6 | |
4610 | fi | |
4611 | ||
4612 | ||
4613 | ||
4614 | enablestring= | |
4615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4616 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4617 | no_cache=0 | |
4618 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4619 | if test "${enable_apple_ieee+set}" = set; then | |
4620 | enableval="$enable_apple_ieee" | |
4621 | ||
4622 | if test "$enableval" = yes; then | |
4623 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4624 | else | |
4625 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4626 | fi | |
4627 | ||
4628 | else | |
4629 | ||
4630 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4631 | if test "x$LINE" != x ; then | |
4632 | eval "DEFAULT_$LINE" | |
4633 | else | |
4634 | no_cache=1 | |
4635 | fi | |
4636 | ||
4637 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4638 | ||
4639 | fi; | |
4640 | ||
4641 | eval "$ac_cv_use_apple_ieee" | |
4642 | if test "$no_cache" != 1; then | |
4643 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4644 | fi | |
4645 | ||
4646 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4647 | echo "$as_me:$LINENO: result: yes" >&5 | |
4648 | echo "${ECHO_T}yes" >&6 | |
4649 | else | |
4650 | echo "$as_me:$LINENO: result: no" >&5 | |
4651 | echo "${ECHO_T}no" >&6 | |
4652 | fi | |
4653 | ||
4654 | ||
4655 | enablestring= | |
4656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4657 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4658 | no_cache=0 | |
4659 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4660 | if test "${enable_catch_segvs+set}" = set; then | |
4661 | enableval="$enable_catch_segvs" | |
4662 | ||
4663 | if test "$enableval" = yes; then | |
4664 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4665 | else | |
4666 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4667 | fi | |
4668 | ||
4669 | else | |
4670 | ||
4671 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4672 | if test "x$LINE" != x ; then | |
4673 | eval "DEFAULT_$LINE" | |
4674 | else | |
4675 | no_cache=1 | |
4676 | fi | |
4677 | ||
4678 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4679 | ||
4680 | fi; | |
4681 | ||
4682 | eval "$ac_cv_use_catch_segvs" | |
4683 | if test "$no_cache" != 1; then | |
4684 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4685 | fi | |
4686 | ||
4687 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4688 | echo "$as_me:$LINENO: result: yes" >&5 | |
4689 | echo "${ECHO_T}yes" >&6 | |
4690 | else | |
4691 | echo "$as_me:$LINENO: result: no" >&5 | |
4692 | echo "${ECHO_T}no" >&6 | |
4693 | fi | |
4694 | ||
4695 | ||
4696 | enablestring= | |
4697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4698 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4699 | no_cache=0 | |
4700 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4701 | if test "${enable_cmdline+set}" = set; then | |
4702 | enableval="$enable_cmdline" | |
4703 | ||
4704 | if test "$enableval" = yes; then | |
4705 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4706 | else | |
4707 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4708 | fi | |
4709 | ||
4710 | else | |
4711 | ||
4712 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4713 | if test "x$LINE" != x ; then | |
4714 | eval "DEFAULT_$LINE" | |
4715 | else | |
4716 | no_cache=1 | |
4717 | fi | |
4718 | ||
4719 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4720 | ||
4721 | fi; | |
4722 | ||
4723 | eval "$ac_cv_use_cmdline" | |
4724 | if test "$no_cache" != 1; then | |
4725 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4726 | fi | |
4727 | ||
4728 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4729 | echo "$as_me:$LINENO: result: yes" >&5 | |
4730 | echo "${ECHO_T}yes" >&6 | |
4731 | else | |
4732 | echo "$as_me:$LINENO: result: no" >&5 | |
4733 | echo "${ECHO_T}no" >&6 | |
4734 | fi | |
4735 | ||
4736 | ||
4737 | enablestring= | |
4738 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4739 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4740 | no_cache=0 | |
4741 | # Check whether --enable-datetime or --disable-datetime was given. | |
4742 | if test "${enable_datetime+set}" = set; then | |
4743 | enableval="$enable_datetime" | |
4744 | ||
4745 | if test "$enableval" = yes; then | |
4746 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4747 | else | |
4748 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4749 | fi | |
4750 | ||
4751 | else | |
4752 | ||
4753 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4761 | ||
4762 | fi; | |
4763 | ||
4764 | eval "$ac_cv_use_datetime" | |
4765 | if test "$no_cache" != 1; then | |
4766 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4767 | fi | |
4768 | ||
4769 | if test "$wxUSE_DATETIME" = yes; then | |
4770 | echo "$as_me:$LINENO: result: yes" >&5 | |
4771 | echo "${ECHO_T}yes" >&6 | |
4772 | else | |
4773 | echo "$as_me:$LINENO: result: no" >&5 | |
4774 | echo "${ECHO_T}no" >&6 | |
4775 | fi | |
4776 | ||
4777 | ||
4778 | enablestring= | |
4779 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4780 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4781 | no_cache=0 | |
4782 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4783 | if test "${enable_dialupman+set}" = set; then | |
4784 | enableval="$enable_dialupman" | |
4785 | ||
4786 | if test "$enableval" = yes; then | |
4787 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4788 | else | |
4789 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4790 | fi | |
4791 | ||
4792 | else | |
4793 | ||
4794 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4802 | ||
4803 | fi; | |
4804 | ||
4805 | eval "$ac_cv_use_dialupman" | |
4806 | if test "$no_cache" != 1; then | |
4807 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4808 | fi | |
4809 | ||
4810 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4811 | echo "$as_me:$LINENO: result: yes" >&5 | |
4812 | echo "${ECHO_T}yes" >&6 | |
4813 | else | |
4814 | echo "$as_me:$LINENO: result: no" >&5 | |
4815 | echo "${ECHO_T}no" >&6 | |
4816 | fi | |
4817 | ||
4818 | ||
4819 | enablestring= | |
4820 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4821 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4822 | no_cache=0 | |
4823 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4824 | if test "${enable_dynlib+set}" = set; then | |
4825 | enableval="$enable_dynlib" | |
4826 | ||
4827 | if test "$enableval" = yes; then | |
4828 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4829 | else | |
4830 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4831 | fi | |
4832 | ||
4833 | else | |
4834 | ||
4835 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4836 | if test "x$LINE" != x ; then | |
4837 | eval "DEFAULT_$LINE" | |
4838 | else | |
4839 | no_cache=1 | |
4840 | fi | |
4841 | ||
4842 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4843 | ||
4844 | fi; | |
4845 | ||
4846 | eval "$ac_cv_use_dynlib" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4852 | echo "$as_me:$LINENO: result: yes" >&5 | |
4853 | echo "${ECHO_T}yes" >&6 | |
4854 | else | |
4855 | echo "$as_me:$LINENO: result: no" >&5 | |
4856 | echo "${ECHO_T}no" >&6 | |
4857 | fi | |
4858 | ||
4859 | ||
4860 | enablestring= | |
4861 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4862 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4863 | no_cache=0 | |
4864 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4865 | if test "${enable_dynamicloader+set}" = set; then | |
4866 | enableval="$enable_dynamicloader" | |
4867 | ||
4868 | if test "$enableval" = yes; then | |
4869 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4870 | else | |
4871 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4872 | fi | |
4873 | ||
4874 | else | |
4875 | ||
4876 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4884 | ||
4885 | fi; | |
4886 | ||
4887 | eval "$ac_cv_use_dynamicloader" | |
4888 | if test "$no_cache" != 1; then | |
4889 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4890 | fi | |
4891 | ||
4892 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4893 | echo "$as_me:$LINENO: result: yes" >&5 | |
4894 | echo "${ECHO_T}yes" >&6 | |
4895 | else | |
4896 | echo "$as_me:$LINENO: result: no" >&5 | |
4897 | echo "${ECHO_T}no" >&6 | |
4898 | fi | |
4899 | ||
4900 | ||
4901 | enablestring= | |
4902 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4903 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4904 | no_cache=0 | |
4905 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4906 | if test "${enable_exceptions+set}" = set; then | |
4907 | enableval="$enable_exceptions" | |
4908 | ||
4909 | if test "$enableval" = yes; then | |
4910 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4911 | else | |
4912 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4913 | fi | |
4914 | ||
4915 | else | |
4916 | ||
4917 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4918 | if test "x$LINE" != x ; then | |
4919 | eval "DEFAULT_$LINE" | |
4920 | else | |
4921 | no_cache=1 | |
4922 | fi | |
4923 | ||
4924 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4925 | ||
4926 | fi; | |
4927 | ||
4928 | eval "$ac_cv_use_exceptions" | |
4929 | if test "$no_cache" != 1; then | |
4930 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4931 | fi | |
4932 | ||
4933 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4934 | echo "$as_me:$LINENO: result: yes" >&5 | |
4935 | echo "${ECHO_T}yes" >&6 | |
4936 | else | |
4937 | echo "$as_me:$LINENO: result: no" >&5 | |
4938 | echo "${ECHO_T}no" >&6 | |
4939 | fi | |
4940 | ||
4941 | ||
4942 | enablestring= | |
4943 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4944 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4945 | no_cache=0 | |
4946 | # Check whether --enable-ffile or --disable-ffile was given. | |
4947 | if test "${enable_ffile+set}" = set; then | |
4948 | enableval="$enable_ffile" | |
4949 | ||
4950 | if test "$enableval" = yes; then | |
4951 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4952 | else | |
4953 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4954 | fi | |
4955 | ||
4956 | else | |
4957 | ||
4958 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4959 | if test "x$LINE" != x ; then | |
4960 | eval "DEFAULT_$LINE" | |
4961 | else | |
4962 | no_cache=1 | |
4963 | fi | |
4964 | ||
4965 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4966 | ||
4967 | fi; | |
4968 | ||
4969 | eval "$ac_cv_use_ffile" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_FFILE" = yes; then | |
4975 | echo "$as_me:$LINENO: result: yes" >&5 | |
4976 | echo "${ECHO_T}yes" >&6 | |
4977 | else | |
4978 | echo "$as_me:$LINENO: result: no" >&5 | |
4979 | echo "${ECHO_T}no" >&6 | |
4980 | fi | |
4981 | ||
4982 | ||
4983 | enablestring= | |
4984 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4985 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4986 | no_cache=0 | |
4987 | # Check whether --enable-file or --disable-file was given. | |
4988 | if test "${enable_file+set}" = set; then | |
4989 | enableval="$enable_file" | |
4990 | ||
4991 | if test "$enableval" = yes; then | |
4992 | ac_cv_use_file='wxUSE_FILE=yes' | |
4993 | else | |
4994 | ac_cv_use_file='wxUSE_FILE=no' | |
4995 | fi | |
4996 | ||
4997 | else | |
4998 | ||
4999 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5000 | if test "x$LINE" != x ; then | |
5001 | eval "DEFAULT_$LINE" | |
5002 | else | |
5003 | no_cache=1 | |
5004 | fi | |
5005 | ||
5006 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5007 | ||
5008 | fi; | |
5009 | ||
5010 | eval "$ac_cv_use_file" | |
5011 | if test "$no_cache" != 1; then | |
5012 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5013 | fi | |
5014 | ||
5015 | if test "$wxUSE_FILE" = yes; then | |
5016 | echo "$as_me:$LINENO: result: yes" >&5 | |
5017 | echo "${ECHO_T}yes" >&6 | |
5018 | else | |
5019 | echo "$as_me:$LINENO: result: no" >&5 | |
5020 | echo "${ECHO_T}no" >&6 | |
5021 | fi | |
5022 | ||
5023 | ||
5024 | enablestring= | |
5025 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5026 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5027 | no_cache=0 | |
5028 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5029 | if test "${enable_filesystem+set}" = set; then | |
5030 | enableval="$enable_filesystem" | |
5031 | ||
5032 | if test "$enableval" = yes; then | |
5033 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5034 | else | |
5035 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5036 | fi | |
5037 | ||
5038 | else | |
5039 | ||
5040 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5041 | if test "x$LINE" != x ; then | |
5042 | eval "DEFAULT_$LINE" | |
5043 | else | |
5044 | no_cache=1 | |
5045 | fi | |
5046 | ||
5047 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5048 | ||
5049 | fi; | |
5050 | ||
5051 | eval "$ac_cv_use_filesystem" | |
5052 | if test "$no_cache" != 1; then | |
5053 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5054 | fi | |
5055 | ||
5056 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5057 | echo "$as_me:$LINENO: result: yes" >&5 | |
5058 | echo "${ECHO_T}yes" >&6 | |
5059 | else | |
5060 | echo "$as_me:$LINENO: result: no" >&5 | |
5061 | echo "${ECHO_T}no" >&6 | |
5062 | fi | |
5063 | ||
5064 | ||
5065 | enablestring= | |
5066 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5067 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5068 | no_cache=0 | |
5069 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5070 | if test "${enable_fontmap+set}" = set; then | |
5071 | enableval="$enable_fontmap" | |
5072 | ||
5073 | if test "$enableval" = yes; then | |
5074 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5075 | else | |
5076 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5077 | fi | |
5078 | ||
5079 | else | |
5080 | ||
5081 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5082 | if test "x$LINE" != x ; then | |
5083 | eval "DEFAULT_$LINE" | |
5084 | else | |
5085 | no_cache=1 | |
5086 | fi | |
5087 | ||
5088 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5089 | ||
5090 | fi; | |
5091 | ||
5092 | eval "$ac_cv_use_fontmap" | |
5093 | if test "$no_cache" != 1; then | |
5094 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5095 | fi | |
5096 | ||
5097 | if test "$wxUSE_FONTMAP" = yes; then | |
5098 | echo "$as_me:$LINENO: result: yes" >&5 | |
5099 | echo "${ECHO_T}yes" >&6 | |
5100 | else | |
5101 | echo "$as_me:$LINENO: result: no" >&5 | |
5102 | echo "${ECHO_T}no" >&6 | |
5103 | fi | |
5104 | ||
5105 | ||
5106 | enablestring= | |
5107 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5108 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5109 | no_cache=0 | |
5110 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5111 | if test "${enable_fs_inet+set}" = set; then | |
5112 | enableval="$enable_fs_inet" | |
5113 | ||
5114 | if test "$enableval" = yes; then | |
5115 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5116 | else | |
5117 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5118 | fi | |
5119 | ||
5120 | else | |
5121 | ||
5122 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5123 | if test "x$LINE" != x ; then | |
5124 | eval "DEFAULT_$LINE" | |
5125 | else | |
5126 | no_cache=1 | |
5127 | fi | |
5128 | ||
5129 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5130 | ||
5131 | fi; | |
5132 | ||
5133 | eval "$ac_cv_use_fs_inet" | |
5134 | if test "$no_cache" != 1; then | |
5135 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5136 | fi | |
5137 | ||
5138 | if test "$wxUSE_FS_INET" = yes; then | |
5139 | echo "$as_me:$LINENO: result: yes" >&5 | |
5140 | echo "${ECHO_T}yes" >&6 | |
5141 | else | |
5142 | echo "$as_me:$LINENO: result: no" >&5 | |
5143 | echo "${ECHO_T}no" >&6 | |
5144 | fi | |
5145 | ||
5146 | ||
5147 | enablestring= | |
5148 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5149 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5150 | no_cache=0 | |
5151 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5152 | if test "${enable_fs_zip+set}" = set; then | |
5153 | enableval="$enable_fs_zip" | |
5154 | ||
5155 | if test "$enableval" = yes; then | |
5156 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5157 | else | |
5158 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5159 | fi | |
5160 | ||
5161 | else | |
5162 | ||
5163 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5164 | if test "x$LINE" != x ; then | |
5165 | eval "DEFAULT_$LINE" | |
5166 | else | |
5167 | no_cache=1 | |
5168 | fi | |
5169 | ||
5170 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5171 | ||
5172 | fi; | |
5173 | ||
5174 | eval "$ac_cv_use_fs_zip" | |
5175 | if test "$no_cache" != 1; then | |
5176 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5177 | fi | |
5178 | ||
5179 | if test "$wxUSE_FS_ZIP" = yes; then | |
5180 | echo "$as_me:$LINENO: result: yes" >&5 | |
5181 | echo "${ECHO_T}yes" >&6 | |
5182 | else | |
5183 | echo "$as_me:$LINENO: result: no" >&5 | |
5184 | echo "${ECHO_T}no" >&6 | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | enablestring= | |
5189 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5190 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5191 | no_cache=0 | |
5192 | # Check whether --enable-geometry or --disable-geometry was given. | |
5193 | if test "${enable_geometry+set}" = set; then | |
5194 | enableval="$enable_geometry" | |
5195 | ||
5196 | if test "$enableval" = yes; then | |
5197 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5198 | else | |
5199 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5200 | fi | |
5201 | ||
5202 | else | |
5203 | ||
5204 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5205 | if test "x$LINE" != x ; then | |
5206 | eval "DEFAULT_$LINE" | |
5207 | else | |
5208 | no_cache=1 | |
5209 | fi | |
5210 | ||
5211 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5212 | ||
5213 | fi; | |
5214 | ||
5215 | eval "$ac_cv_use_geometry" | |
5216 | if test "$no_cache" != 1; then | |
5217 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5218 | fi | |
5219 | ||
5220 | if test "$wxUSE_GEOMETRY" = yes; then | |
5221 | echo "$as_me:$LINENO: result: yes" >&5 | |
5222 | echo "${ECHO_T}yes" >&6 | |
5223 | else | |
5224 | echo "$as_me:$LINENO: result: no" >&5 | |
5225 | echo "${ECHO_T}no" >&6 | |
5226 | fi | |
5227 | ||
5228 | ||
5229 | enablestring= | |
5230 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5231 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5232 | no_cache=0 | |
5233 | # Check whether --enable-log or --disable-log was given. | |
5234 | if test "${enable_log+set}" = set; then | |
5235 | enableval="$enable_log" | |
5236 | ||
5237 | if test "$enableval" = yes; then | |
5238 | ac_cv_use_log='wxUSE_LOG=yes' | |
5239 | else | |
5240 | ac_cv_use_log='wxUSE_LOG=no' | |
5241 | fi | |
5242 | ||
5243 | else | |
5244 | ||
5245 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5246 | if test "x$LINE" != x ; then | |
5247 | eval "DEFAULT_$LINE" | |
5248 | else | |
5249 | no_cache=1 | |
5250 | fi | |
5251 | ||
5252 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5253 | ||
5254 | fi; | |
5255 | ||
5256 | eval "$ac_cv_use_log" | |
5257 | if test "$no_cache" != 1; then | |
5258 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5259 | fi | |
5260 | ||
5261 | if test "$wxUSE_LOG" = yes; then | |
5262 | echo "$as_me:$LINENO: result: yes" >&5 | |
5263 | echo "${ECHO_T}yes" >&6 | |
5264 | else | |
5265 | echo "$as_me:$LINENO: result: no" >&5 | |
5266 | echo "${ECHO_T}no" >&6 | |
5267 | fi | |
5268 | ||
5269 | ||
5270 | enablestring= | |
5271 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5272 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5273 | no_cache=0 | |
5274 | # Check whether --enable-longlong or --disable-longlong was given. | |
5275 | if test "${enable_longlong+set}" = set; then | |
5276 | enableval="$enable_longlong" | |
5277 | ||
5278 | if test "$enableval" = yes; then | |
5279 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5280 | else | |
5281 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5282 | fi | |
5283 | ||
5284 | else | |
5285 | ||
5286 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5287 | if test "x$LINE" != x ; then | |
5288 | eval "DEFAULT_$LINE" | |
5289 | else | |
5290 | no_cache=1 | |
5291 | fi | |
5292 | ||
5293 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5294 | ||
5295 | fi; | |
5296 | ||
5297 | eval "$ac_cv_use_longlong" | |
5298 | if test "$no_cache" != 1; then | |
5299 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5300 | fi | |
5301 | ||
5302 | if test "$wxUSE_LONGLONG" = yes; then | |
5303 | echo "$as_me:$LINENO: result: yes" >&5 | |
5304 | echo "${ECHO_T}yes" >&6 | |
5305 | else | |
5306 | echo "$as_me:$LINENO: result: no" >&5 | |
5307 | echo "${ECHO_T}no" >&6 | |
5308 | fi | |
5309 | ||
5310 | ||
5311 | enablestring= | |
5312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5313 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5314 | no_cache=0 | |
5315 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5316 | if test "${enable_mimetype+set}" = set; then | |
5317 | enableval="$enable_mimetype" | |
5318 | ||
5319 | if test "$enableval" = yes; then | |
5320 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5321 | else | |
5322 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5323 | fi | |
5324 | ||
5325 | else | |
5326 | ||
5327 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5328 | if test "x$LINE" != x ; then | |
5329 | eval "DEFAULT_$LINE" | |
5330 | else | |
5331 | no_cache=1 | |
5332 | fi | |
5333 | ||
5334 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5335 | ||
5336 | fi; | |
5337 | ||
5338 | eval "$ac_cv_use_mimetype" | |
5339 | if test "$no_cache" != 1; then | |
5340 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5341 | fi | |
5342 | ||
5343 | if test "$wxUSE_MIMETYPE" = yes; then | |
5344 | echo "$as_me:$LINENO: result: yes" >&5 | |
5345 | echo "${ECHO_T}yes" >&6 | |
5346 | else | |
5347 | echo "$as_me:$LINENO: result: no" >&5 | |
5348 | echo "${ECHO_T}no" >&6 | |
5349 | fi | |
5350 | ||
5351 | ||
5352 | enablestring= | |
5353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5354 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5355 | no_cache=0 | |
5356 | # Check whether --enable-mslu or --disable-mslu was given. | |
5357 | if test "${enable_mslu+set}" = set; then | |
5358 | enableval="$enable_mslu" | |
5359 | ||
5360 | if test "$enableval" = yes; then | |
5361 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5362 | else | |
5363 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5364 | fi | |
5365 | ||
5366 | else | |
5367 | ||
5368 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5369 | if test "x$LINE" != x ; then | |
5370 | eval "DEFAULT_$LINE" | |
5371 | else | |
5372 | no_cache=1 | |
5373 | fi | |
5374 | ||
5375 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5376 | ||
5377 | fi; | |
5378 | ||
5379 | eval "$ac_cv_use_mslu" | |
5380 | if test "$no_cache" != 1; then | |
5381 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5382 | fi | |
5383 | ||
5384 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5385 | echo "$as_me:$LINENO: result: yes" >&5 | |
5386 | echo "${ECHO_T}yes" >&6 | |
5387 | else | |
5388 | echo "$as_me:$LINENO: result: no" >&5 | |
5389 | echo "${ECHO_T}no" >&6 | |
5390 | fi | |
5391 | ||
5392 | ||
5393 | enablestring= | |
5394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5395 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5396 | no_cache=0 | |
5397 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5398 | if test "${enable_snglinst+set}" = set; then | |
5399 | enableval="$enable_snglinst" | |
5400 | ||
5401 | if test "$enableval" = yes; then | |
5402 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5403 | else | |
5404 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5405 | fi | |
5406 | ||
5407 | else | |
5408 | ||
5409 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5410 | if test "x$LINE" != x ; then | |
5411 | eval "DEFAULT_$LINE" | |
5412 | else | |
5413 | no_cache=1 | |
5414 | fi | |
5415 | ||
5416 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5417 | ||
5418 | fi; | |
5419 | ||
5420 | eval "$ac_cv_use_snglinst" | |
5421 | if test "$no_cache" != 1; then | |
5422 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5423 | fi | |
5424 | ||
5425 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5426 | echo "$as_me:$LINENO: result: yes" >&5 | |
5427 | echo "${ECHO_T}yes" >&6 | |
5428 | else | |
5429 | echo "$as_me:$LINENO: result: no" >&5 | |
5430 | echo "${ECHO_T}no" >&6 | |
5431 | fi | |
5432 | ||
5433 | ||
5434 | enablestring= | |
5435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5436 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5437 | no_cache=0 | |
5438 | # Check whether --enable-streams or --disable-streams was given. | |
5439 | if test "${enable_streams+set}" = set; then | |
5440 | enableval="$enable_streams" | |
5441 | ||
5442 | if test "$enableval" = yes; then | |
5443 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5444 | else | |
5445 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5446 | fi | |
5447 | ||
5448 | else | |
5449 | ||
5450 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5451 | if test "x$LINE" != x ; then | |
5452 | eval "DEFAULT_$LINE" | |
5453 | else | |
5454 | no_cache=1 | |
5455 | fi | |
5456 | ||
5457 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5458 | ||
5459 | fi; | |
5460 | ||
5461 | eval "$ac_cv_use_streams" | |
5462 | if test "$no_cache" != 1; then | |
5463 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5464 | fi | |
5465 | ||
5466 | if test "$wxUSE_STREAMS" = yes; then | |
5467 | echo "$as_me:$LINENO: result: yes" >&5 | |
5468 | echo "${ECHO_T}yes" >&6 | |
5469 | else | |
5470 | echo "$as_me:$LINENO: result: no" >&5 | |
5471 | echo "${ECHO_T}no" >&6 | |
5472 | fi | |
5473 | ||
5474 | ||
5475 | enablestring= | |
5476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5477 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5478 | no_cache=0 | |
5479 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5480 | if test "${enable_std_iostreams+set}" = set; then | |
5481 | enableval="$enable_std_iostreams" | |
5482 | ||
5483 | if test "$enableval" = yes; then | |
5484 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5485 | else | |
5486 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5487 | fi | |
5488 | ||
5489 | else | |
5490 | ||
5491 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5499 | ||
5500 | fi; | |
5501 | ||
5502 | eval "$ac_cv_use_std_iostreams" | |
5503 | if test "$no_cache" != 1; then | |
5504 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5505 | fi | |
5506 | ||
5507 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5508 | echo "$as_me:$LINENO: result: yes" >&5 | |
5509 | echo "${ECHO_T}yes" >&6 | |
5510 | else | |
5511 | echo "$as_me:$LINENO: result: no" >&5 | |
5512 | echo "${ECHO_T}no" >&6 | |
5513 | fi | |
5514 | ||
5515 | ||
5516 | enablestring= | |
5517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5518 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5519 | no_cache=0 | |
5520 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5521 | if test "${enable_stopwatch+set}" = set; then | |
5522 | enableval="$enable_stopwatch" | |
5523 | ||
5524 | if test "$enableval" = yes; then | |
5525 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5526 | else | |
5527 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5528 | fi | |
5529 | ||
5530 | else | |
5531 | ||
5532 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5540 | ||
5541 | fi; | |
5542 | ||
5543 | eval "$ac_cv_use_stopwatch" | |
5544 | if test "$no_cache" != 1; then | |
5545 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5546 | fi | |
5547 | ||
5548 | if test "$wxUSE_STOPWATCH" = yes; then | |
5549 | echo "$as_me:$LINENO: result: yes" >&5 | |
5550 | echo "${ECHO_T}yes" >&6 | |
5551 | else | |
5552 | echo "$as_me:$LINENO: result: no" >&5 | |
5553 | echo "${ECHO_T}no" >&6 | |
5554 | fi | |
5555 | ||
5556 | ||
5557 | enablestring= | |
5558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5559 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5560 | no_cache=0 | |
5561 | # Check whether --enable-system_options or --disable-system_options was given. | |
5562 | if test "${enable_system_options+set}" = set; then | |
5563 | enableval="$enable_system_options" | |
5564 | ||
5565 | if test "$enableval" = yes; then | |
5566 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5567 | else | |
5568 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5569 | fi | |
5570 | ||
5571 | else | |
5572 | ||
5573 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5574 | if test "x$LINE" != x ; then | |
5575 | eval "DEFAULT_$LINE" | |
5576 | else | |
5577 | no_cache=1 | |
5578 | fi | |
5579 | ||
5580 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5581 | ||
5582 | fi; | |
5583 | ||
5584 | eval "$ac_cv_use_system_options" | |
5585 | if test "$no_cache" != 1; then | |
5586 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5587 | fi | |
5588 | ||
5589 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5590 | echo "$as_me:$LINENO: result: yes" >&5 | |
5591 | echo "${ECHO_T}yes" >&6 | |
5592 | else | |
5593 | echo "$as_me:$LINENO: result: no" >&5 | |
5594 | echo "${ECHO_T}no" >&6 | |
5595 | fi | |
5596 | ||
5597 | ||
5598 | enablestring= | |
5599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5600 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5601 | no_cache=0 | |
5602 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5603 | if test "${enable_textbuf+set}" = set; then | |
5604 | enableval="$enable_textbuf" | |
5605 | ||
5606 | if test "$enableval" = yes; then | |
5607 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5608 | else | |
5609 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5610 | fi | |
5611 | ||
5612 | else | |
5613 | ||
5614 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5615 | if test "x$LINE" != x ; then | |
5616 | eval "DEFAULT_$LINE" | |
5617 | else | |
5618 | no_cache=1 | |
5619 | fi | |
5620 | ||
5621 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5622 | ||
5623 | fi; | |
5624 | ||
5625 | eval "$ac_cv_use_textbuf" | |
5626 | if test "$no_cache" != 1; then | |
5627 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5628 | fi | |
5629 | ||
5630 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5631 | echo "$as_me:$LINENO: result: yes" >&5 | |
5632 | echo "${ECHO_T}yes" >&6 | |
5633 | else | |
5634 | echo "$as_me:$LINENO: result: no" >&5 | |
5635 | echo "${ECHO_T}no" >&6 | |
5636 | fi | |
5637 | ||
5638 | ||
5639 | enablestring= | |
5640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5641 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5642 | no_cache=0 | |
5643 | # Check whether --enable-textfile or --disable-textfile was given. | |
5644 | if test "${enable_textfile+set}" = set; then | |
5645 | enableval="$enable_textfile" | |
5646 | ||
5647 | if test "$enableval" = yes; then | |
5648 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5649 | else | |
5650 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5651 | fi | |
5652 | ||
5653 | else | |
5654 | ||
5655 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5656 | if test "x$LINE" != x ; then | |
5657 | eval "DEFAULT_$LINE" | |
5658 | else | |
5659 | no_cache=1 | |
5660 | fi | |
5661 | ||
5662 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5663 | ||
5664 | fi; | |
5665 | ||
5666 | eval "$ac_cv_use_textfile" | |
5667 | if test "$no_cache" != 1; then | |
5668 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5669 | fi | |
5670 | ||
5671 | if test "$wxUSE_TEXTFILE" = yes; then | |
5672 | echo "$as_me:$LINENO: result: yes" >&5 | |
5673 | echo "${ECHO_T}yes" >&6 | |
5674 | else | |
5675 | echo "$as_me:$LINENO: result: no" >&5 | |
5676 | echo "${ECHO_T}no" >&6 | |
5677 | fi | |
5678 | ||
5679 | ||
5680 | enablestring= | |
5681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5682 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5683 | no_cache=0 | |
5684 | # Check whether --enable-timer or --disable-timer was given. | |
5685 | if test "${enable_timer+set}" = set; then | |
5686 | enableval="$enable_timer" | |
5687 | ||
5688 | if test "$enableval" = yes; then | |
5689 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5690 | else | |
5691 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5692 | fi | |
5693 | ||
5694 | else | |
5695 | ||
5696 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5697 | if test "x$LINE" != x ; then | |
5698 | eval "DEFAULT_$LINE" | |
5699 | else | |
5700 | no_cache=1 | |
5701 | fi | |
5702 | ||
5703 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5704 | ||
5705 | fi; | |
5706 | ||
5707 | eval "$ac_cv_use_timer" | |
5708 | if test "$no_cache" != 1; then | |
5709 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5710 | fi | |
5711 | ||
5712 | if test "$wxUSE_TIMER" = yes; then | |
5713 | echo "$as_me:$LINENO: result: yes" >&5 | |
5714 | echo "${ECHO_T}yes" >&6 | |
5715 | else | |
5716 | echo "$as_me:$LINENO: result: no" >&5 | |
5717 | echo "${ECHO_T}no" >&6 | |
5718 | fi | |
5719 | ||
5720 | ||
5721 | enablestring= | |
5722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5723 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5724 | no_cache=0 | |
5725 | # Check whether --enable-unicode or --disable-unicode was given. | |
5726 | if test "${enable_unicode+set}" = set; then | |
5727 | enableval="$enable_unicode" | |
5728 | ||
5729 | if test "$enableval" = yes; then | |
5730 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5731 | else | |
5732 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5733 | fi | |
5734 | ||
5735 | else | |
5736 | ||
5737 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5738 | if test "x$LINE" != x ; then | |
5739 | eval "DEFAULT_$LINE" | |
5740 | else | |
5741 | no_cache=1 | |
5742 | fi | |
5743 | ||
5744 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5745 | ||
5746 | fi; | |
5747 | ||
5748 | eval "$ac_cv_use_unicode" | |
5749 | if test "$no_cache" != 1; then | |
5750 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5751 | fi | |
5752 | ||
5753 | if test "$wxUSE_UNICODE" = yes; then | |
5754 | echo "$as_me:$LINENO: result: yes" >&5 | |
5755 | echo "${ECHO_T}yes" >&6 | |
5756 | else | |
5757 | echo "$as_me:$LINENO: result: no" >&5 | |
5758 | echo "${ECHO_T}no" >&6 | |
5759 | fi | |
5760 | ||
5761 | ||
5762 | enablestring= | |
5763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5764 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5765 | no_cache=0 | |
5766 | # Check whether --enable-sound or --disable-sound was given. | |
5767 | if test "${enable_sound+set}" = set; then | |
5768 | enableval="$enable_sound" | |
5769 | ||
5770 | if test "$enableval" = yes; then | |
5771 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5772 | else | |
5773 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5774 | fi | |
5775 | ||
5776 | else | |
5777 | ||
5778 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5779 | if test "x$LINE" != x ; then | |
5780 | eval "DEFAULT_$LINE" | |
5781 | else | |
5782 | no_cache=1 | |
5783 | fi | |
5784 | ||
5785 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5786 | ||
5787 | fi; | |
5788 | ||
5789 | eval "$ac_cv_use_sound" | |
5790 | if test "$no_cache" != 1; then | |
5791 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5792 | fi | |
5793 | ||
5794 | if test "$wxUSE_SOUND" = yes; then | |
5795 | echo "$as_me:$LINENO: result: yes" >&5 | |
5796 | echo "${ECHO_T}yes" >&6 | |
5797 | else | |
5798 | echo "$as_me:$LINENO: result: no" >&5 | |
5799 | echo "${ECHO_T}no" >&6 | |
5800 | fi | |
5801 | ||
5802 | ||
5803 | enablestring= | |
5804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5805 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5806 | no_cache=0 | |
5807 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5808 | if test "${enable_wxprintfv+set}" = set; then | |
5809 | enableval="$enable_wxprintfv" | |
5810 | ||
5811 | if test "$enableval" = yes; then | |
5812 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5813 | else | |
5814 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5815 | fi | |
5816 | ||
5817 | else | |
5818 | ||
5819 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5820 | if test "x$LINE" != x ; then | |
5821 | eval "DEFAULT_$LINE" | |
5822 | else | |
5823 | no_cache=1 | |
5824 | fi | |
5825 | ||
5826 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5827 | ||
5828 | fi; | |
5829 | ||
5830 | eval "$ac_cv_use_wxprintfv" | |
5831 | if test "$no_cache" != 1; then | |
5832 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5833 | fi | |
5834 | ||
5835 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5836 | echo "$as_me:$LINENO: result: yes" >&5 | |
5837 | echo "${ECHO_T}yes" >&6 | |
5838 | else | |
5839 | echo "$as_me:$LINENO: result: no" >&5 | |
5840 | echo "${ECHO_T}no" >&6 | |
5841 | fi | |
5842 | ||
5843 | ||
5844 | enablestring= | |
5845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5846 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5847 | no_cache=0 | |
5848 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5849 | if test "${enable_zipstream+set}" = set; then | |
5850 | enableval="$enable_zipstream" | |
5851 | ||
5852 | if test "$enableval" = yes; then | |
5853 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5854 | else | |
5855 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5856 | fi | |
5857 | ||
5858 | else | |
5859 | ||
5860 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5861 | if test "x$LINE" != x ; then | |
5862 | eval "DEFAULT_$LINE" | |
5863 | else | |
5864 | no_cache=1 | |
5865 | fi | |
5866 | ||
5867 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5868 | ||
5869 | fi; | |
5870 | ||
5871 | eval "$ac_cv_use_zipstream" | |
5872 | if test "$no_cache" != 1; then | |
5873 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5874 | fi | |
5875 | ||
5876 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5877 | echo "$as_me:$LINENO: result: yes" >&5 | |
5878 | echo "${ECHO_T}yes" >&6 | |
5879 | else | |
5880 | echo "$as_me:$LINENO: result: no" >&5 | |
5881 | echo "${ECHO_T}no" >&6 | |
5882 | fi | |
5883 | ||
5884 | ||
a848cd7e SC |
5885 | |
5886 | enablestring= | |
5887 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5888 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5889 | no_cache=0 | |
5890 | # Check whether --enable-url or --disable-url was given. | |
5891 | if test "${enable_url+set}" = set; then | |
5892 | enableval="$enable_url" | |
5893 | ||
5894 | if test "$enableval" = yes; then | |
5895 | ac_cv_use_url='wxUSE_URL=yes' | |
5896 | else | |
5897 | ac_cv_use_url='wxUSE_URL=no' | |
5898 | fi | |
5899 | ||
5900 | else | |
5901 | ||
5902 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5903 | if test "x$LINE" != x ; then | |
5904 | eval "DEFAULT_$LINE" | |
5905 | else | |
5906 | no_cache=1 | |
5907 | fi | |
5908 | ||
5909 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5910 | ||
5911 | fi; | |
5912 | ||
5913 | eval "$ac_cv_use_url" | |
5914 | if test "$no_cache" != 1; then | |
5915 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5916 | fi | |
5917 | ||
5918 | if test "$wxUSE_URL" = yes; then | |
5919 | echo "$as_me:$LINENO: result: yes" >&5 | |
5920 | echo "${ECHO_T}yes" >&6 | |
5921 | else | |
5922 | echo "$as_me:$LINENO: result: no" >&5 | |
5923 | echo "${ECHO_T}no" >&6 | |
5924 | fi | |
5925 | ||
5926 | ||
5927 | enablestring= | |
5928 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5929 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5930 | no_cache=0 | |
5931 | # Check whether --enable-protocol or --disable-protocol was given. | |
5932 | if test "${enable_protocol+set}" = set; then | |
5933 | enableval="$enable_protocol" | |
5934 | ||
5935 | if test "$enableval" = yes; then | |
5936 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5937 | else | |
5938 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5939 | fi | |
5940 | ||
5941 | else | |
5942 | ||
5943 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5944 | if test "x$LINE" != x ; then | |
5945 | eval "DEFAULT_$LINE" | |
5946 | else | |
5947 | no_cache=1 | |
5948 | fi | |
5949 | ||
5950 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5951 | ||
5952 | fi; | |
5953 | ||
5954 | eval "$ac_cv_use_protocol" | |
5955 | if test "$no_cache" != 1; then | |
5956 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5957 | fi | |
5958 | ||
5959 | if test "$wxUSE_PROTOCOL" = yes; then | |
5960 | echo "$as_me:$LINENO: result: yes" >&5 | |
5961 | echo "${ECHO_T}yes" >&6 | |
5962 | else | |
5963 | echo "$as_me:$LINENO: result: no" >&5 | |
5964 | echo "${ECHO_T}no" >&6 | |
5965 | fi | |
5966 | ||
5967 | ||
5968 | enablestring= | |
5969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5970 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5971 | no_cache=0 | |
5972 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5973 | if test "${enable_protocol_http+set}" = set; then | |
5974 | enableval="$enable_protocol_http" | |
5975 | ||
5976 | if test "$enableval" = yes; then | |
5977 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5978 | else | |
5979 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5980 | fi | |
5981 | ||
5982 | else | |
5983 | ||
5984 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5992 | ||
5993 | fi; | |
5994 | ||
5995 | eval "$ac_cv_use_protocol_http" | |
5996 | if test "$no_cache" != 1; then | |
5997 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5998 | fi | |
5999 | ||
6000 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6001 | echo "$as_me:$LINENO: result: yes" >&5 | |
6002 | echo "${ECHO_T}yes" >&6 | |
6003 | else | |
6004 | echo "$as_me:$LINENO: result: no" >&5 | |
6005 | echo "${ECHO_T}no" >&6 | |
6006 | fi | |
6007 | ||
6008 | ||
6009 | enablestring= | |
6010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6011 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6012 | no_cache=0 | |
6013 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6014 | if test "${enable_protocol_ftp+set}" = set; then | |
6015 | enableval="$enable_protocol_ftp" | |
6016 | ||
6017 | if test "$enableval" = yes; then | |
6018 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6019 | else | |
6020 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6021 | fi | |
6022 | ||
6023 | else | |
6024 | ||
6025 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6026 | if test "x$LINE" != x ; then | |
6027 | eval "DEFAULT_$LINE" | |
6028 | else | |
6029 | no_cache=1 | |
6030 | fi | |
6031 | ||
6032 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6033 | ||
6034 | fi; | |
6035 | ||
6036 | eval "$ac_cv_use_protocol_ftp" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6042 | echo "$as_me:$LINENO: result: yes" >&5 | |
6043 | echo "${ECHO_T}yes" >&6 | |
6044 | else | |
6045 | echo "$as_me:$LINENO: result: no" >&5 | |
6046 | echo "${ECHO_T}no" >&6 | |
6047 | fi | |
6048 | ||
6049 | ||
6050 | enablestring= | |
6051 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6052 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6053 | no_cache=0 | |
6054 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6055 | if test "${enable_protocol_file+set}" = set; then | |
6056 | enableval="$enable_protocol_file" | |
6057 | ||
6058 | if test "$enableval" = yes; then | |
6059 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6060 | else | |
6061 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6062 | fi | |
6063 | ||
6064 | else | |
6065 | ||
6066 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6067 | if test "x$LINE" != x ; then | |
6068 | eval "DEFAULT_$LINE" | |
6069 | else | |
6070 | no_cache=1 | |
6071 | fi | |
6072 | ||
6073 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6074 | ||
6075 | fi; | |
6076 | ||
6077 | eval "$ac_cv_use_protocol_file" | |
6078 | if test "$no_cache" != 1; then | |
6079 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6080 | fi | |
6081 | ||
6082 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6083 | echo "$as_me:$LINENO: result: yes" >&5 | |
6084 | echo "${ECHO_T}yes" >&6 | |
6085 | else | |
6086 | echo "$as_me:$LINENO: result: no" >&5 | |
6087 | echo "${ECHO_T}no" >&6 | |
6088 | fi | |
6089 | ||
6090 | ||
6091 | ||
6092 | ||
6093 | ||
6094 | enablestring= | |
6095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6096 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6097 | no_cache=0 | |
6098 | # Check whether --enable-threads or --disable-threads was given. | |
6099 | if test "${enable_threads+set}" = set; then | |
6100 | enableval="$enable_threads" | |
6101 | ||
6102 | if test "$enableval" = yes; then | |
6103 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6104 | else | |
6105 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6106 | fi | |
6107 | ||
6108 | else | |
6109 | ||
6110 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6111 | if test "x$LINE" != x ; then | |
6112 | eval "DEFAULT_$LINE" | |
6113 | else | |
6114 | no_cache=1 | |
6115 | fi | |
6116 | ||
6117 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6118 | ||
6119 | fi; | |
6120 | ||
6121 | eval "$ac_cv_use_threads" | |
6122 | if test "$no_cache" != 1; then | |
6123 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6124 | fi | |
6125 | ||
6126 | if test "$wxUSE_THREADS" = yes; then | |
6127 | echo "$as_me:$LINENO: result: yes" >&5 | |
6128 | echo "${ECHO_T}yes" >&6 | |
6129 | else | |
6130 | echo "$as_me:$LINENO: result: no" >&5 | |
6131 | echo "${ECHO_T}no" >&6 | |
6132 | fi | |
6133 | ||
6134 | ||
6135 | if test "$wxUSE_GUI" = "yes"; then | |
6136 | ||
6137 | ||
6138 | ||
6139 | enablestring= | |
6140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6141 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6142 | no_cache=0 | |
6143 | # Check whether --enable-docview or --disable-docview was given. | |
6144 | if test "${enable_docview+set}" = set; then | |
6145 | enableval="$enable_docview" | |
6146 | ||
6147 | if test "$enableval" = yes; then | |
6148 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6149 | else | |
6150 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6151 | fi | |
6152 | ||
6153 | else | |
6154 | ||
6155 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6163 | ||
6164 | fi; | |
6165 | ||
6166 | eval "$ac_cv_use_docview" | |
6167 | if test "$no_cache" != 1; then | |
6168 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6169 | fi | |
6170 | ||
6171 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6172 | echo "$as_me:$LINENO: result: yes" >&5 | |
6173 | echo "${ECHO_T}yes" >&6 | |
6174 | else | |
6175 | echo "$as_me:$LINENO: result: no" >&5 | |
6176 | echo "${ECHO_T}no" >&6 | |
6177 | fi | |
6178 | ||
6179 | ||
6180 | enablestring= | |
6181 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6182 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6183 | no_cache=0 | |
6184 | # Check whether --enable-help or --disable-help was given. | |
6185 | if test "${enable_help+set}" = set; then | |
6186 | enableval="$enable_help" | |
6187 | ||
6188 | if test "$enableval" = yes; then | |
6189 | ac_cv_use_help='wxUSE_HELP=yes' | |
6190 | else | |
6191 | ac_cv_use_help='wxUSE_HELP=no' | |
6192 | fi | |
6193 | ||
6194 | else | |
6195 | ||
6196 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6197 | if test "x$LINE" != x ; then | |
6198 | eval "DEFAULT_$LINE" | |
6199 | else | |
6200 | no_cache=1 | |
6201 | fi | |
6202 | ||
6203 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6204 | ||
6205 | fi; | |
6206 | ||
6207 | eval "$ac_cv_use_help" | |
6208 | if test "$no_cache" != 1; then | |
6209 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6210 | fi | |
6211 | ||
6212 | if test "$wxUSE_HELP" = yes; then | |
6213 | echo "$as_me:$LINENO: result: yes" >&5 | |
6214 | echo "${ECHO_T}yes" >&6 | |
6215 | else | |
6216 | echo "$as_me:$LINENO: result: no" >&5 | |
6217 | echo "${ECHO_T}no" >&6 | |
6218 | fi | |
6219 | ||
6220 | ||
6221 | enablestring= | |
6222 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6223 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6224 | no_cache=0 | |
6225 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6226 | if test "${enable_mshtmlhelp+set}" = set; then | |
6227 | enableval="$enable_mshtmlhelp" | |
6228 | ||
6229 | if test "$enableval" = yes; then | |
6230 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6231 | else | |
6232 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6233 | fi | |
6234 | ||
6235 | else | |
6236 | ||
6237 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6238 | if test "x$LINE" != x ; then | |
6239 | eval "DEFAULT_$LINE" | |
6240 | else | |
6241 | no_cache=1 | |
6242 | fi | |
6243 | ||
6244 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6245 | ||
6246 | fi; | |
6247 | ||
6248 | eval "$ac_cv_use_mshtmlhelp" | |
6249 | if test "$no_cache" != 1; then | |
6250 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6251 | fi | |
6252 | ||
6253 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6254 | echo "$as_me:$LINENO: result: yes" >&5 | |
6255 | echo "${ECHO_T}yes" >&6 | |
6256 | else | |
6257 | echo "$as_me:$LINENO: result: no" >&5 | |
6258 | echo "${ECHO_T}no" >&6 | |
6259 | fi | |
6260 | ||
6261 | ||
6262 | enablestring= | |
6263 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6264 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6265 | no_cache=0 | |
6266 | # Check whether --enable-html or --disable-html was given. | |
6267 | if test "${enable_html+set}" = set; then | |
6268 | enableval="$enable_html" | |
6269 | ||
6270 | if test "$enableval" = yes; then | |
6271 | ac_cv_use_html='wxUSE_HTML=yes' | |
6272 | else | |
6273 | ac_cv_use_html='wxUSE_HTML=no' | |
6274 | fi | |
6275 | ||
6276 | else | |
6277 | ||
6278 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6279 | if test "x$LINE" != x ; then | |
6280 | eval "DEFAULT_$LINE" | |
6281 | else | |
6282 | no_cache=1 | |
6283 | fi | |
6284 | ||
6285 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6286 | ||
6287 | fi; | |
6288 | ||
6289 | eval "$ac_cv_use_html" | |
6290 | if test "$no_cache" != 1; then | |
6291 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6292 | fi | |
6293 | ||
6294 | if test "$wxUSE_HTML" = yes; then | |
6295 | echo "$as_me:$LINENO: result: yes" >&5 | |
6296 | echo "${ECHO_T}yes" >&6 | |
6297 | else | |
6298 | echo "$as_me:$LINENO: result: no" >&5 | |
6299 | echo "${ECHO_T}no" >&6 | |
6300 | fi | |
6301 | ||
6302 | ||
6303 | enablestring= | |
6304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6305 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6306 | no_cache=0 | |
6307 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6308 | if test "${enable_htmlhelp+set}" = set; then | |
6309 | enableval="$enable_htmlhelp" | |
6310 | ||
6311 | if test "$enableval" = yes; then | |
6312 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6313 | else | |
6314 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6315 | fi | |
6316 | ||
6317 | else | |
6318 | ||
6319 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6327 | ||
6328 | fi; | |
6329 | ||
6330 | eval "$ac_cv_use_htmlhelp" | |
6331 | if test "$no_cache" != 1; then | |
6332 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6333 | fi | |
6334 | ||
6335 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6336 | echo "$as_me:$LINENO: result: yes" >&5 | |
6337 | echo "${ECHO_T}yes" >&6 | |
6338 | else | |
6339 | echo "$as_me:$LINENO: result: no" >&5 | |
6340 | echo "${ECHO_T}no" >&6 | |
6341 | fi | |
6342 | ||
6343 | ||
9a8f0513 VS |
6344 | enablestring= |
6345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6346 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6347 | no_cache=0 | |
6348 | # Check whether --enable-xrc or --disable-xrc was given. | |
6349 | if test "${enable_xrc+set}" = set; then | |
6350 | enableval="$enable_xrc" | |
6351 | ||
6352 | if test "$enableval" = yes; then | |
6353 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6354 | else | |
6355 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6356 | fi | |
6357 | ||
6358 | else | |
6359 | ||
6360 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6361 | if test "x$LINE" != x ; then | |
6362 | eval "DEFAULT_$LINE" | |
6363 | else | |
6364 | no_cache=1 | |
6365 | fi | |
6366 | ||
6367 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6368 | ||
6369 | fi; | |
6370 | ||
6371 | eval "$ac_cv_use_xrc" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_XRC" = yes; then | |
6377 | echo "$as_me:$LINENO: result: yes" >&5 | |
6378 | echo "${ECHO_T}yes" >&6 | |
6379 | else | |
6380 | echo "$as_me:$LINENO: result: no" >&5 | |
6381 | echo "${ECHO_T}no" >&6 | |
6382 | fi | |
6383 | ||
6384 | ||
a848cd7e SC |
6385 | enablestring= |
6386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6387 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6388 | no_cache=0 | |
6389 | # Check whether --enable-constraints or --disable-constraints was given. | |
6390 | if test "${enable_constraints+set}" = set; then | |
6391 | enableval="$enable_constraints" | |
6392 | ||
6393 | if test "$enableval" = yes; then | |
6394 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6395 | else | |
6396 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6397 | fi | |
6398 | ||
6399 | else | |
6400 | ||
6401 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6402 | if test "x$LINE" != x ; then | |
6403 | eval "DEFAULT_$LINE" | |
6404 | else | |
6405 | no_cache=1 | |
6406 | fi | |
6407 | ||
6408 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6409 | ||
6410 | fi; | |
6411 | ||
6412 | eval "$ac_cv_use_constraints" | |
6413 | if test "$no_cache" != 1; then | |
6414 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6415 | fi | |
6416 | ||
6417 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6418 | echo "$as_me:$LINENO: result: yes" >&5 | |
6419 | echo "${ECHO_T}yes" >&6 | |
6420 | else | |
6421 | echo "$as_me:$LINENO: result: no" >&5 | |
6422 | echo "${ECHO_T}no" >&6 | |
6423 | fi | |
6424 | ||
6425 | ||
6426 | enablestring= | |
6427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6428 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6429 | no_cache=0 | |
6430 | # Check whether --enable-printarch or --disable-printarch was given. | |
6431 | if test "${enable_printarch+set}" = set; then | |
6432 | enableval="$enable_printarch" | |
6433 | ||
6434 | if test "$enableval" = yes; then | |
6435 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6436 | else | |
6437 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6438 | fi | |
6439 | ||
6440 | else | |
6441 | ||
6442 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6443 | if test "x$LINE" != x ; then | |
6444 | eval "DEFAULT_$LINE" | |
6445 | else | |
6446 | no_cache=1 | |
6447 | fi | |
6448 | ||
6449 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6450 | ||
6451 | fi; | |
6452 | ||
6453 | eval "$ac_cv_use_printarch" | |
6454 | if test "$no_cache" != 1; then | |
6455 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6456 | fi | |
6457 | ||
6458 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6459 | echo "$as_me:$LINENO: result: yes" >&5 | |
6460 | echo "${ECHO_T}yes" >&6 | |
6461 | else | |
6462 | echo "$as_me:$LINENO: result: no" >&5 | |
6463 | echo "${ECHO_T}no" >&6 | |
6464 | fi | |
6465 | ||
6466 | ||
6467 | enablestring= | |
6468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6469 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6470 | no_cache=0 | |
6471 | # Check whether --enable-mdi or --disable-mdi was given. | |
6472 | if test "${enable_mdi+set}" = set; then | |
6473 | enableval="$enable_mdi" | |
6474 | ||
6475 | if test "$enableval" = yes; then | |
8a7b1113 | 6476 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6477 | else |
8a7b1113 | 6478 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6479 | fi |
6480 | ||
6481 | else | |
6482 | ||
8a7b1113 | 6483 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6484 | if test "x$LINE" != x ; then |
6485 | eval "DEFAULT_$LINE" | |
6486 | else | |
6487 | no_cache=1 | |
6488 | fi | |
6489 | ||
8a7b1113 | 6490 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6491 | |
6492 | fi; | |
6493 | ||
6494 | eval "$ac_cv_use_mdi" | |
6495 | if test "$no_cache" != 1; then | |
6496 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6497 | fi | |
6498 | ||
8a7b1113 VZ |
6499 | if test "$wxUSE_MDI" = yes; then |
6500 | echo "$as_me:$LINENO: result: yes" >&5 | |
6501 | echo "${ECHO_T}yes" >&6 | |
6502 | else | |
6503 | echo "$as_me:$LINENO: result: no" >&5 | |
6504 | echo "${ECHO_T}no" >&6 | |
6505 | fi | |
6506 | ||
6507 | ||
6508 | enablestring= | |
6509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6510 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6511 | no_cache=0 | |
6512 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6513 | if test "${enable_mdidoc+set}" = set; then | |
6514 | enableval="$enable_mdidoc" | |
6515 | ||
6516 | if test "$enableval" = yes; then | |
6517 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6518 | else | |
6519 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6520 | fi | |
6521 | ||
6522 | else | |
6523 | ||
6524 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6525 | if test "x$LINE" != x ; then | |
6526 | eval "DEFAULT_$LINE" | |
6527 | else | |
6528 | no_cache=1 | |
6529 | fi | |
6530 | ||
6531 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6532 | ||
6533 | fi; | |
6534 | ||
6535 | eval "$ac_cv_use_mdidoc" | |
6536 | if test "$no_cache" != 1; then | |
6537 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6538 | fi | |
6539 | ||
a848cd7e SC |
6540 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6541 | echo "$as_me:$LINENO: result: yes" >&5 | |
6542 | echo "${ECHO_T}yes" >&6 | |
6543 | else | |
6544 | echo "$as_me:$LINENO: result: no" >&5 | |
6545 | echo "${ECHO_T}no" >&6 | |
6546 | fi | |
6547 | ||
6548 | ||
6549 | enablestring= | |
6550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6551 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6552 | no_cache=0 | |
6553 | # Check whether --enable-loggui or --disable-loggui was given. | |
6554 | if test "${enable_loggui+set}" = set; then | |
6555 | enableval="$enable_loggui" | |
6556 | ||
6557 | if test "$enableval" = yes; then | |
6558 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6559 | else | |
6560 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6561 | fi | |
6562 | ||
6563 | else | |
6564 | ||
6565 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6566 | if test "x$LINE" != x ; then | |
6567 | eval "DEFAULT_$LINE" | |
6568 | else | |
6569 | no_cache=1 | |
6570 | fi | |
6571 | ||
6572 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6573 | ||
6574 | fi; | |
6575 | ||
6576 | eval "$ac_cv_use_loggui" | |
6577 | if test "$no_cache" != 1; then | |
6578 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6579 | fi | |
6580 | ||
6581 | if test "$wxUSE_LOGGUI" = yes; then | |
6582 | echo "$as_me:$LINENO: result: yes" >&5 | |
6583 | echo "${ECHO_T}yes" >&6 | |
6584 | else | |
6585 | echo "$as_me:$LINENO: result: no" >&5 | |
6586 | echo "${ECHO_T}no" >&6 | |
6587 | fi | |
6588 | ||
6589 | ||
6590 | enablestring= | |
6591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6592 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6593 | no_cache=0 | |
6594 | # Check whether --enable-logwin or --disable-logwin was given. | |
6595 | if test "${enable_logwin+set}" = set; then | |
6596 | enableval="$enable_logwin" | |
6597 | ||
6598 | if test "$enableval" = yes; then | |
6599 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6600 | else | |
6601 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6602 | fi | |
6603 | ||
6604 | else | |
6605 | ||
6606 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6607 | if test "x$LINE" != x ; then | |
6608 | eval "DEFAULT_$LINE" | |
6609 | else | |
6610 | no_cache=1 | |
6611 | fi | |
6612 | ||
6613 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6614 | ||
6615 | fi; | |
6616 | ||
6617 | eval "$ac_cv_use_logwin" | |
6618 | if test "$no_cache" != 1; then | |
6619 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6620 | fi | |
6621 | ||
6622 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6623 | echo "$as_me:$LINENO: result: yes" >&5 | |
6624 | echo "${ECHO_T}yes" >&6 | |
6625 | else | |
6626 | echo "$as_me:$LINENO: result: no" >&5 | |
6627 | echo "${ECHO_T}no" >&6 | |
6628 | fi | |
6629 | ||
6630 | ||
6631 | enablestring= | |
6632 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6633 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6634 | no_cache=0 | |
6635 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6636 | if test "${enable_logdialog+set}" = set; then | |
6637 | enableval="$enable_logdialog" | |
6638 | ||
6639 | if test "$enableval" = yes; then | |
6640 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6641 | else | |
6642 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6643 | fi | |
6644 | ||
6645 | else | |
6646 | ||
6647 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6648 | if test "x$LINE" != x ; then | |
6649 | eval "DEFAULT_$LINE" | |
6650 | else | |
6651 | no_cache=1 | |
6652 | fi | |
6653 | ||
6654 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6655 | ||
6656 | fi; | |
6657 | ||
6658 | eval "$ac_cv_use_logdialog" | |
6659 | if test "$no_cache" != 1; then | |
6660 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6661 | fi | |
6662 | ||
6663 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6664 | echo "$as_me:$LINENO: result: yes" >&5 | |
6665 | echo "${ECHO_T}yes" >&6 | |
6666 | else | |
6667 | echo "$as_me:$LINENO: result: no" >&5 | |
6668 | echo "${ECHO_T}no" >&6 | |
6669 | fi | |
6670 | ||
6671 | ||
646b6ec1 VS |
6672 | enablestring= |
6673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6674 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6675 | no_cache=0 | |
6676 | # Check whether --enable-webkit or --disable-webkit was given. | |
6677 | if test "${enable_webkit+set}" = set; then | |
6678 | enableval="$enable_webkit" | |
6679 | ||
6680 | if test "$enableval" = yes; then | |
6681 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6682 | else | |
6683 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6684 | fi | |
6685 | ||
6686 | else | |
6687 | ||
6688 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6689 | if test "x$LINE" != x ; then | |
6690 | eval "DEFAULT_$LINE" | |
6691 | else | |
6692 | no_cache=1 | |
6693 | fi | |
6694 | ||
6695 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6696 | ||
6697 | fi; | |
6698 | ||
6699 | eval "$ac_cv_use_webkit" | |
6700 | if test "$no_cache" != 1; then | |
6701 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6702 | fi | |
6703 | ||
6704 | if test "$wxUSE_WEBKIT" = yes; then | |
6705 | echo "$as_me:$LINENO: result: yes" >&5 | |
6706 | echo "${ECHO_T}yes" >&6 | |
6707 | else | |
6708 | echo "$as_me:$LINENO: result: no" >&5 | |
6709 | echo "${ECHO_T}no" >&6 | |
6710 | fi | |
6711 | ||
6712 | ||
a848cd7e SC |
6713 | |
6714 | enablestring= | |
6715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6716 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6717 | no_cache=0 | |
6718 | # Check whether --enable-postscript or --disable-postscript was given. | |
6719 | if test "${enable_postscript+set}" = set; then | |
6720 | enableval="$enable_postscript" | |
6721 | ||
6722 | if test "$enableval" = yes; then | |
6723 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6724 | else | |
6725 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6726 | fi | |
6727 | ||
6728 | else | |
6729 | ||
6730 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6731 | if test "x$LINE" != x ; then | |
6732 | eval "DEFAULT_$LINE" | |
6733 | else | |
6734 | no_cache=1 | |
6735 | fi | |
6736 | ||
6737 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6738 | ||
6739 | fi; | |
6740 | ||
6741 | eval "$ac_cv_use_postscript" | |
6742 | if test "$no_cache" != 1; then | |
6743 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6744 | fi | |
6745 | ||
6746 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6747 | echo "$as_me:$LINENO: result: yes" >&5 | |
6748 | echo "${ECHO_T}yes" >&6 | |
6749 | else | |
6750 | echo "$as_me:$LINENO: result: no" >&5 | |
6751 | echo "${ECHO_T}no" >&6 | |
6752 | fi | |
6753 | ||
6754 | ||
6755 | ||
6756 | ||
6757 | ||
6758 | enablestring= | |
6759 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6760 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6761 | no_cache=0 | |
6762 | # Check whether --enable-prologio or --disable-prologio was given. | |
6763 | if test "${enable_prologio+set}" = set; then | |
6764 | enableval="$enable_prologio" | |
6765 | ||
6766 | if test "$enableval" = yes; then | |
6767 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6768 | else | |
6769 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6770 | fi | |
6771 | ||
6772 | else | |
6773 | ||
6774 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6775 | if test "x$LINE" != x ; then | |
6776 | eval "DEFAULT_$LINE" | |
6777 | else | |
6778 | no_cache=1 | |
6779 | fi | |
6780 | ||
6781 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6782 | ||
6783 | fi; | |
6784 | ||
6785 | eval "$ac_cv_use_prologio" | |
6786 | if test "$no_cache" != 1; then | |
6787 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6788 | fi | |
6789 | ||
6790 | if test "$wxUSE_PROLOGIO" = yes; then | |
6791 | echo "$as_me:$LINENO: result: yes" >&5 | |
6792 | echo "${ECHO_T}yes" >&6 | |
6793 | else | |
6794 | echo "$as_me:$LINENO: result: no" >&5 | |
6795 | echo "${ECHO_T}no" >&6 | |
6796 | fi | |
6797 | ||
6798 | ||
6799 | enablestring= | |
6800 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6801 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6802 | no_cache=0 | |
6803 | # Check whether --enable-resources or --disable-resources was given. | |
6804 | if test "${enable_resources+set}" = set; then | |
6805 | enableval="$enable_resources" | |
6806 | ||
6807 | if test "$enableval" = yes; then | |
6808 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6809 | else | |
6810 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6811 | fi | |
6812 | ||
6813 | else | |
6814 | ||
6815 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6816 | if test "x$LINE" != x ; then | |
6817 | eval "DEFAULT_$LINE" | |
6818 | else | |
6819 | no_cache=1 | |
6820 | fi | |
6821 | ||
6822 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6823 | ||
6824 | fi; | |
6825 | ||
6826 | eval "$ac_cv_use_resources" | |
6827 | if test "$no_cache" != 1; then | |
6828 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6829 | fi | |
6830 | ||
6831 | if test "$wxUSE_RESOURCES" = yes; then | |
6832 | echo "$as_me:$LINENO: result: yes" >&5 | |
6833 | echo "${ECHO_T}yes" >&6 | |
6834 | else | |
6835 | echo "$as_me:$LINENO: result: no" >&5 | |
6836 | echo "${ECHO_T}no" >&6 | |
6837 | fi | |
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | enablestring= | |
6843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6844 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6845 | no_cache=0 | |
6846 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6847 | if test "${enable_clipboard+set}" = set; then | |
6848 | enableval="$enable_clipboard" | |
6849 | ||
6850 | if test "$enableval" = yes; then | |
6851 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6852 | else | |
6853 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6854 | fi | |
6855 | ||
6856 | else | |
6857 | ||
6858 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6859 | if test "x$LINE" != x ; then | |
6860 | eval "DEFAULT_$LINE" | |
6861 | else | |
6862 | no_cache=1 | |
6863 | fi | |
6864 | ||
6865 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6866 | ||
6867 | fi; | |
6868 | ||
6869 | eval "$ac_cv_use_clipboard" | |
6870 | if test "$no_cache" != 1; then | |
6871 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6872 | fi | |
6873 | ||
6874 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6875 | echo "$as_me:$LINENO: result: yes" >&5 | |
6876 | echo "${ECHO_T}yes" >&6 | |
6877 | else | |
6878 | echo "$as_me:$LINENO: result: no" >&5 | |
6879 | echo "${ECHO_T}no" >&6 | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | enablestring= | |
6884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6885 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6886 | no_cache=0 | |
6887 | # Check whether --enable-dnd or --disable-dnd was given. | |
6888 | if test "${enable_dnd+set}" = set; then | |
6889 | enableval="$enable_dnd" | |
6890 | ||
6891 | if test "$enableval" = yes; then | |
6892 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6893 | else | |
6894 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6895 | fi | |
6896 | ||
6897 | else | |
6898 | ||
6899 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6900 | if test "x$LINE" != x ; then | |
6901 | eval "DEFAULT_$LINE" | |
6902 | else | |
6903 | no_cache=1 | |
6904 | fi | |
6905 | ||
6906 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6907 | ||
6908 | fi; | |
6909 | ||
6910 | eval "$ac_cv_use_dnd" | |
6911 | if test "$no_cache" != 1; then | |
6912 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6913 | fi | |
6914 | ||
6915 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6916 | echo "$as_me:$LINENO: result: yes" >&5 | |
6917 | echo "${ECHO_T}yes" >&6 | |
6918 | else | |
6919 | echo "$as_me:$LINENO: result: no" >&5 | |
6920 | echo "${ECHO_T}no" >&6 | |
6921 | fi | |
6922 | ||
6923 | ||
6924 | enablestring= | |
6925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6926 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6927 | no_cache=0 | |
6928 | # Check whether --enable-metafile or --disable-metafile was given. | |
6929 | if test "${enable_metafile+set}" = set; then | |
6930 | enableval="$enable_metafile" | |
6931 | ||
6932 | if test "$enableval" = yes; then | |
6933 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6934 | else | |
6935 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6936 | fi | |
6937 | ||
6938 | else | |
6939 | ||
6940 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6941 | if test "x$LINE" != x ; then | |
6942 | eval "DEFAULT_$LINE" | |
6943 | else | |
6944 | no_cache=1 | |
6945 | fi | |
6946 | ||
6947 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6948 | ||
6949 | fi; | |
6950 | ||
6951 | eval "$ac_cv_use_metafile" | |
6952 | if test "$no_cache" != 1; then | |
6953 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6954 | fi | |
6955 | ||
6956 | if test "$wxUSE_METAFILE" = yes; then | |
6957 | echo "$as_me:$LINENO: result: yes" >&5 | |
6958 | echo "${ECHO_T}yes" >&6 | |
6959 | else | |
6960 | echo "$as_me:$LINENO: result: no" >&5 | |
6961 | echo "${ECHO_T}no" >&6 | |
6962 | fi | |
6963 | ||
6964 | ||
6965 | ||
6966 | ||
6967 | ||
6968 | enablestring= | |
6969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6970 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6971 | no_cache=0 | |
6972 | # Check whether --enable-controls or --disable-controls was given. | |
6973 | if test "${enable_controls+set}" = set; then | |
6974 | enableval="$enable_controls" | |
6975 | ||
6976 | if test "$enableval" = yes; then | |
6977 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6978 | else | |
6979 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6980 | fi | |
6981 | ||
6982 | else | |
6983 | ||
6984 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6992 | ||
6993 | fi; | |
6994 | ||
6995 | eval "$ac_cv_use_controls" | |
6996 | if test "$no_cache" != 1; then | |
6997 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6998 | fi | |
6999 | ||
7000 | if test "$wxUSE_CONTROLS" = yes; then | |
7001 | echo "$as_me:$LINENO: result: yes" >&5 | |
7002 | echo "${ECHO_T}yes" >&6 | |
7003 | else | |
7004 | echo "$as_me:$LINENO: result: no" >&5 | |
7005 | echo "${ECHO_T}no" >&6 | |
7006 | fi | |
7007 | ||
7008 | ||
7009 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7010 | DEFAULT_wxUSE_ACCEL=yes | |
7011 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7012 | DEFAULT_wxUSE_BUTTON=yes | |
7013 | DEFAULT_wxUSE_CALCTRL=no | |
7014 | DEFAULT_wxUSE_CARET=yes | |
7015 | DEFAULT_wxUSE_COMBOBOX=yes | |
7016 | DEFAULT_wxUSE_CHECKBOX=yes | |
7017 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7018 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7019 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e SC |
7020 | DEFAULT_wxUSE_GAUGE=yes |
7021 | DEFAULT_wxUSE_GRID=yes | |
7022 | DEFAULT_wxUSE_IMAGLIST=yes | |
7023 | DEFAULT_wxUSE_LISTBOOK=yes | |
7024 | DEFAULT_wxUSE_LISTBOX=yes | |
7025 | DEFAULT_wxUSE_LISTCTRL=yes | |
7026 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7027 | DEFAULT_wxUSE_RADIOBOX=yes | |
7028 | DEFAULT_wxUSE_RADIOBTN=yes | |
7029 | DEFAULT_wxUSE_SASH=yes | |
7030 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7031 | DEFAULT_wxUSE_SLIDER=yes | |
7032 | DEFAULT_wxUSE_SPINBTN=yes | |
7033 | DEFAULT_wxUSE_SPINCTRL=yes | |
7034 | DEFAULT_wxUSE_SPLITTER=yes | |
7035 | DEFAULT_wxUSE_STATBMP=yes | |
7036 | DEFAULT_wxUSE_STATBOX=yes | |
7037 | DEFAULT_wxUSE_STATLINE=yes | |
7038 | DEFAULT_wxUSE_STATUSBAR=yes | |
7039 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7040 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7041 | DEFAULT_wxUSE_TOOLBAR=yes | |
7042 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7043 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7044 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7045 | DEFAULT_wxUSE_TREECTRL=yes | |
7046 | DEFAULT_wxUSE_POPUPWIN=yes | |
7047 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7048 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7049 | DEFAULT_wxUSE_ACCEL=no | |
7050 | DEFAULT_wxUSE_BMPBUTTON=no | |
7051 | DEFAULT_wxUSE_BUTTON=no | |
7052 | DEFAULT_wxUSE_CALCTRL=no | |
7053 | DEFAULT_wxUSE_CARET=no | |
7054 | DEFAULT_wxUSE_COMBOBOX=no | |
7055 | DEFAULT_wxUSE_CHECKBOX=no | |
7056 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7057 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7058 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e SC |
7059 | DEFAULT_wxUSE_GAUGE=no |
7060 | DEFAULT_wxUSE_GRID=no | |
7061 | DEFAULT_wxUSE_IMAGLIST=no | |
7062 | DEFAULT_wxUSE_LISTBOOK=no | |
7063 | DEFAULT_wxUSE_LISTBOX=no | |
7064 | DEFAULT_wxUSE_LISTCTRL=no | |
7065 | DEFAULT_wxUSE_NOTEBOOK=no | |
7066 | DEFAULT_wxUSE_RADIOBOX=no | |
7067 | DEFAULT_wxUSE_RADIOBTN=no | |
7068 | DEFAULT_wxUSE_SASH=no | |
7069 | DEFAULT_wxUSE_SCROLLBAR=no | |
7070 | DEFAULT_wxUSE_SLIDER=no | |
7071 | DEFAULT_wxUSE_SPINBTN=no | |
7072 | DEFAULT_wxUSE_SPINCTRL=no | |
7073 | DEFAULT_wxUSE_SPLITTER=no | |
7074 | DEFAULT_wxUSE_STATBMP=no | |
7075 | DEFAULT_wxUSE_STATBOX=no | |
7076 | DEFAULT_wxUSE_STATLINE=no | |
7077 | DEFAULT_wxUSE_STATUSBAR=no | |
7078 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7079 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7080 | DEFAULT_wxUSE_TOOLBAR=no | |
7081 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7082 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7083 | DEFAULT_wxUSE_TOOLTIPS=no | |
7084 | DEFAULT_wxUSE_TREECTRL=no | |
7085 | DEFAULT_wxUSE_POPUPWIN=no | |
7086 | DEFAULT_wxUSE_TIPWINDOW=no | |
7087 | fi | |
7088 | ||
a848cd7e SC |
7089 | |
7090 | enablestring= | |
7091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7092 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7093 | no_cache=0 | |
7094 | # Check whether --enable-accel or --disable-accel was given. | |
7095 | if test "${enable_accel+set}" = set; then | |
7096 | enableval="$enable_accel" | |
7097 | ||
7098 | if test "$enableval" = yes; then | |
7099 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7100 | else | |
7101 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7102 | fi | |
7103 | ||
7104 | else | |
7105 | ||
7106 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7107 | if test "x$LINE" != x ; then | |
7108 | eval "DEFAULT_$LINE" | |
7109 | else | |
7110 | no_cache=1 | |
7111 | fi | |
7112 | ||
7113 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7114 | ||
7115 | fi; | |
7116 | ||
7117 | eval "$ac_cv_use_accel" | |
7118 | if test "$no_cache" != 1; then | |
7119 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7120 | fi | |
7121 | ||
7122 | if test "$wxUSE_ACCEL" = yes; then | |
7123 | echo "$as_me:$LINENO: result: yes" >&5 | |
7124 | echo "${ECHO_T}yes" >&6 | |
7125 | else | |
7126 | echo "$as_me:$LINENO: result: no" >&5 | |
7127 | echo "${ECHO_T}no" >&6 | |
7128 | fi | |
7129 | ||
7130 | ||
7131 | enablestring= | |
7132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7133 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7134 | no_cache=0 | |
7135 | # Check whether --enable-button or --disable-button was given. | |
7136 | if test "${enable_button+set}" = set; then | |
7137 | enableval="$enable_button" | |
7138 | ||
7139 | if test "$enableval" = yes; then | |
7140 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7141 | else | |
7142 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7143 | fi | |
7144 | ||
7145 | else | |
7146 | ||
7147 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7148 | if test "x$LINE" != x ; then | |
7149 | eval "DEFAULT_$LINE" | |
7150 | else | |
7151 | no_cache=1 | |
7152 | fi | |
7153 | ||
7154 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7155 | ||
7156 | fi; | |
7157 | ||
7158 | eval "$ac_cv_use_button" | |
7159 | if test "$no_cache" != 1; then | |
7160 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7161 | fi | |
7162 | ||
7163 | if test "$wxUSE_BUTTON" = yes; then | |
7164 | echo "$as_me:$LINENO: result: yes" >&5 | |
7165 | echo "${ECHO_T}yes" >&6 | |
7166 | else | |
7167 | echo "$as_me:$LINENO: result: no" >&5 | |
7168 | echo "${ECHO_T}no" >&6 | |
7169 | fi | |
7170 | ||
7171 | ||
7172 | enablestring= | |
7173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7174 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7175 | no_cache=0 | |
7176 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7177 | if test "${enable_bmpbutton+set}" = set; then | |
7178 | enableval="$enable_bmpbutton" | |
7179 | ||
7180 | if test "$enableval" = yes; then | |
7181 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7182 | else | |
7183 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7184 | fi | |
7185 | ||
7186 | else | |
7187 | ||
7188 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7189 | if test "x$LINE" != x ; then | |
7190 | eval "DEFAULT_$LINE" | |
7191 | else | |
7192 | no_cache=1 | |
7193 | fi | |
7194 | ||
7195 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7196 | ||
7197 | fi; | |
7198 | ||
7199 | eval "$ac_cv_use_bmpbutton" | |
7200 | if test "$no_cache" != 1; then | |
7201 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7202 | fi | |
7203 | ||
7204 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7205 | echo "$as_me:$LINENO: result: yes" >&5 | |
7206 | echo "${ECHO_T}yes" >&6 | |
7207 | else | |
7208 | echo "$as_me:$LINENO: result: no" >&5 | |
7209 | echo "${ECHO_T}no" >&6 | |
7210 | fi | |
7211 | ||
7212 | ||
7213 | enablestring= | |
7214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7215 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7216 | no_cache=0 | |
7217 | # Check whether --enable-calendar or --disable-calendar was given. | |
7218 | if test "${enable_calendar+set}" = set; then | |
7219 | enableval="$enable_calendar" | |
7220 | ||
7221 | if test "$enableval" = yes; then | |
7222 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7223 | else | |
7224 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7225 | fi | |
7226 | ||
7227 | else | |
7228 | ||
7229 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7230 | if test "x$LINE" != x ; then | |
7231 | eval "DEFAULT_$LINE" | |
7232 | else | |
7233 | no_cache=1 | |
7234 | fi | |
7235 | ||
7236 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7237 | ||
7238 | fi; | |
7239 | ||
7240 | eval "$ac_cv_use_calendar" | |
7241 | if test "$no_cache" != 1; then | |
7242 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7243 | fi | |
7244 | ||
7245 | if test "$wxUSE_CALCTRL" = yes; then | |
7246 | echo "$as_me:$LINENO: result: yes" >&5 | |
7247 | echo "${ECHO_T}yes" >&6 | |
7248 | else | |
7249 | echo "$as_me:$LINENO: result: no" >&5 | |
7250 | echo "${ECHO_T}no" >&6 | |
7251 | fi | |
7252 | ||
7253 | ||
7254 | enablestring= | |
7255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7256 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7257 | no_cache=0 | |
7258 | # Check whether --enable-caret or --disable-caret was given. | |
7259 | if test "${enable_caret+set}" = set; then | |
7260 | enableval="$enable_caret" | |
7261 | ||
7262 | if test "$enableval" = yes; then | |
7263 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7264 | else | |
7265 | ac_cv_use_caret='wxUSE_CARET=no' | |
7266 | fi | |
7267 | ||
7268 | else | |
7269 | ||
7270 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7271 | if test "x$LINE" != x ; then | |
7272 | eval "DEFAULT_$LINE" | |
7273 | else | |
7274 | no_cache=1 | |
7275 | fi | |
7276 | ||
7277 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7278 | ||
7279 | fi; | |
7280 | ||
7281 | eval "$ac_cv_use_caret" | |
7282 | if test "$no_cache" != 1; then | |
7283 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7284 | fi | |
7285 | ||
7286 | if test "$wxUSE_CARET" = yes; then | |
7287 | echo "$as_me:$LINENO: result: yes" >&5 | |
7288 | echo "${ECHO_T}yes" >&6 | |
7289 | else | |
7290 | echo "$as_me:$LINENO: result: no" >&5 | |
7291 | echo "${ECHO_T}no" >&6 | |
7292 | fi | |
7293 | ||
7294 | ||
7295 | enablestring= | |
7296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7297 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7298 | no_cache=0 | |
7299 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7300 | if test "${enable_checkbox+set}" = set; then | |
7301 | enableval="$enable_checkbox" | |
7302 | ||
7303 | if test "$enableval" = yes; then | |
7304 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7305 | else | |
7306 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7307 | fi | |
7308 | ||
7309 | else | |
7310 | ||
7311 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7312 | if test "x$LINE" != x ; then | |
7313 | eval "DEFAULT_$LINE" | |
7314 | else | |
7315 | no_cache=1 | |
7316 | fi | |
7317 | ||
7318 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7319 | ||
7320 | fi; | |
7321 | ||
7322 | eval "$ac_cv_use_checkbox" | |
7323 | if test "$no_cache" != 1; then | |
7324 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7325 | fi | |
7326 | ||
7327 | if test "$wxUSE_CHECKBOX" = yes; then | |
7328 | echo "$as_me:$LINENO: result: yes" >&5 | |
7329 | echo "${ECHO_T}yes" >&6 | |
7330 | else | |
7331 | echo "$as_me:$LINENO: result: no" >&5 | |
7332 | echo "${ECHO_T}no" >&6 | |
7333 | fi | |
7334 | ||
7335 | ||
7336 | enablestring= | |
7337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7338 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7339 | no_cache=0 | |
7340 | # Check whether --enable-checklst or --disable-checklst was given. | |
7341 | if test "${enable_checklst+set}" = set; then | |
7342 | enableval="$enable_checklst" | |
7343 | ||
7344 | if test "$enableval" = yes; then | |
7345 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7346 | else | |
7347 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7348 | fi | |
7349 | ||
7350 | else | |
7351 | ||
7352 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7353 | if test "x$LINE" != x ; then | |
7354 | eval "DEFAULT_$LINE" | |
7355 | else | |
7356 | no_cache=1 | |
7357 | fi | |
7358 | ||
7359 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7360 | ||
7361 | fi; | |
7362 | ||
7363 | eval "$ac_cv_use_checklst" | |
7364 | if test "$no_cache" != 1; then | |
7365 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7366 | fi | |
7367 | ||
7368 | if test "$wxUSE_CHECKLST" = yes; then | |
7369 | echo "$as_me:$LINENO: result: yes" >&5 | |
7370 | echo "${ECHO_T}yes" >&6 | |
7371 | else | |
7372 | echo "$as_me:$LINENO: result: no" >&5 | |
7373 | echo "${ECHO_T}no" >&6 | |
7374 | fi | |
7375 | ||
7376 | ||
7377 | enablestring= | |
7378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7379 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7380 | no_cache=0 | |
7381 | # Check whether --enable-choice or --disable-choice was given. | |
7382 | if test "${enable_choice+set}" = set; then | |
7383 | enableval="$enable_choice" | |
7384 | ||
7385 | if test "$enableval" = yes; then | |
7386 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7387 | else | |
7388 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7389 | fi | |
7390 | ||
7391 | else | |
7392 | ||
7393 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7394 | if test "x$LINE" != x ; then | |
7395 | eval "DEFAULT_$LINE" | |
7396 | else | |
7397 | no_cache=1 | |
7398 | fi | |
7399 | ||
7400 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7401 | ||
7402 | fi; | |
7403 | ||
7404 | eval "$ac_cv_use_choice" | |
7405 | if test "$no_cache" != 1; then | |
7406 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7407 | fi | |
7408 | ||
7409 | if test "$wxUSE_CHOICE" = yes; then | |
7410 | echo "$as_me:$LINENO: result: yes" >&5 | |
7411 | echo "${ECHO_T}yes" >&6 | |
7412 | else | |
7413 | echo "$as_me:$LINENO: result: no" >&5 | |
7414 | echo "${ECHO_T}no" >&6 | |
7415 | fi | |
7416 | ||
7417 | ||
92bbdbcd WS |
7418 | enablestring= |
7419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7420 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7421 | no_cache=0 | |
7422 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7423 | if test "${enable_choicebook+set}" = set; then | |
7424 | enableval="$enable_choicebook" | |
7425 | ||
7426 | if test "$enableval" = yes; then | |
7427 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7428 | else | |
7429 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7430 | fi | |
7431 | ||
7432 | else | |
7433 | ||
7434 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7435 | if test "x$LINE" != x ; then | |
7436 | eval "DEFAULT_$LINE" | |
7437 | else | |
7438 | no_cache=1 | |
7439 | fi | |
7440 | ||
7441 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7442 | ||
7443 | fi; | |
7444 | ||
7445 | eval "$ac_cv_use_choicebook" | |
7446 | if test "$no_cache" != 1; then | |
7447 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7448 | fi | |
7449 | ||
7450 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7451 | echo "$as_me:$LINENO: result: yes" >&5 | |
7452 | echo "${ECHO_T}yes" >&6 | |
7453 | else | |
7454 | echo "$as_me:$LINENO: result: no" >&5 | |
7455 | echo "${ECHO_T}no" >&6 | |
7456 | fi | |
7457 | ||
7458 | ||
a848cd7e SC |
7459 | enablestring= |
7460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7461 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7462 | no_cache=0 | |
7463 | # Check whether --enable-combobox or --disable-combobox was given. | |
7464 | if test "${enable_combobox+set}" = set; then | |
7465 | enableval="$enable_combobox" | |
7466 | ||
7467 | if test "$enableval" = yes; then | |
7468 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7469 | else | |
7470 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7471 | fi | |
7472 | ||
7473 | else | |
7474 | ||
7475 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7476 | if test "x$LINE" != x ; then | |
7477 | eval "DEFAULT_$LINE" | |
7478 | else | |
7479 | no_cache=1 | |
7480 | fi | |
7481 | ||
7482 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7483 | ||
7484 | fi; | |
7485 | ||
7486 | eval "$ac_cv_use_combobox" | |
7487 | if test "$no_cache" != 1; then | |
7488 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7489 | fi | |
7490 | ||
7491 | if test "$wxUSE_COMBOBOX" = yes; then | |
7492 | echo "$as_me:$LINENO: result: yes" >&5 | |
7493 | echo "${ECHO_T}yes" >&6 | |
7494 | else | |
7495 | echo "$as_me:$LINENO: result: no" >&5 | |
7496 | echo "${ECHO_T}no" >&6 | |
7497 | fi | |
7498 | ||
7499 | ||
7500 | enablestring= | |
7501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7502 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7503 | no_cache=0 | |
7504 | # Check whether --enable-display or --disable-display was given. | |
7505 | if test "${enable_display+set}" = set; then | |
7506 | enableval="$enable_display" | |
7507 | ||
7508 | if test "$enableval" = yes; then | |
7509 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7510 | else | |
7511 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7512 | fi | |
7513 | ||
7514 | else | |
7515 | ||
7516 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7517 | if test "x$LINE" != x ; then | |
7518 | eval "DEFAULT_$LINE" | |
7519 | else | |
7520 | no_cache=1 | |
7521 | fi | |
7522 | ||
7523 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7524 | ||
7525 | fi; | |
7526 | ||
7527 | eval "$ac_cv_use_display" | |
7528 | if test "$no_cache" != 1; then | |
7529 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7530 | fi | |
7531 | ||
7532 | if test "$wxUSE_DISPLAY" = yes; then | |
7533 | echo "$as_me:$LINENO: result: yes" >&5 | |
7534 | echo "${ECHO_T}yes" >&6 | |
7535 | else | |
7536 | echo "$as_me:$LINENO: result: no" >&5 | |
7537 | echo "${ECHO_T}no" >&6 | |
7538 | fi | |
7539 | ||
7540 | ||
7541 | enablestring= | |
7542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7543 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7544 | no_cache=0 | |
7545 | # Check whether --enable-gauge or --disable-gauge was given. | |
7546 | if test "${enable_gauge+set}" = set; then | |
7547 | enableval="$enable_gauge" | |
7548 | ||
7549 | if test "$enableval" = yes; then | |
7550 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7551 | else | |
7552 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7553 | fi | |
7554 | ||
7555 | else | |
7556 | ||
7557 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7558 | if test "x$LINE" != x ; then | |
7559 | eval "DEFAULT_$LINE" | |
7560 | else | |
7561 | no_cache=1 | |
7562 | fi | |
7563 | ||
7564 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7565 | ||
7566 | fi; | |
7567 | ||
7568 | eval "$ac_cv_use_gauge" | |
7569 | if test "$no_cache" != 1; then | |
7570 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7571 | fi | |
7572 | ||
7573 | if test "$wxUSE_GAUGE" = yes; then | |
7574 | echo "$as_me:$LINENO: result: yes" >&5 | |
7575 | echo "${ECHO_T}yes" >&6 | |
7576 | else | |
7577 | echo "$as_me:$LINENO: result: no" >&5 | |
7578 | echo "${ECHO_T}no" >&6 | |
7579 | fi | |
7580 | ||
7581 | ||
7582 | enablestring= | |
7583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7584 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7585 | no_cache=0 | |
7586 | # Check whether --enable-grid or --disable-grid was given. | |
7587 | if test "${enable_grid+set}" = set; then | |
7588 | enableval="$enable_grid" | |
7589 | ||
7590 | if test "$enableval" = yes; then | |
7591 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7592 | else | |
7593 | ac_cv_use_grid='wxUSE_GRID=no' | |
7594 | fi | |
7595 | ||
7596 | else | |
7597 | ||
7598 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7599 | if test "x$LINE" != x ; then | |
7600 | eval "DEFAULT_$LINE" | |
7601 | else | |
7602 | no_cache=1 | |
7603 | fi | |
7604 | ||
7605 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7606 | ||
7607 | fi; | |
7608 | ||
7609 | eval "$ac_cv_use_grid" | |
7610 | if test "$no_cache" != 1; then | |
7611 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7612 | fi | |
7613 | ||
7614 | if test "$wxUSE_GRID" = yes; then | |
7615 | echo "$as_me:$LINENO: result: yes" >&5 | |
7616 | echo "${ECHO_T}yes" >&6 | |
7617 | else | |
7618 | echo "$as_me:$LINENO: result: no" >&5 | |
7619 | echo "${ECHO_T}no" >&6 | |
7620 | fi | |
7621 | ||
7622 | ||
7623 | enablestring= | |
7624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7625 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7626 | no_cache=0 | |
7627 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7628 | if test "${enable_imaglist+set}" = set; then | |
7629 | enableval="$enable_imaglist" | |
7630 | ||
7631 | if test "$enableval" = yes; then | |
7632 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7633 | else | |
7634 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7635 | fi | |
7636 | ||
7637 | else | |
7638 | ||
7639 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7640 | if test "x$LINE" != x ; then | |
7641 | eval "DEFAULT_$LINE" | |
7642 | else | |
7643 | no_cache=1 | |
7644 | fi | |
7645 | ||
7646 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7647 | ||
7648 | fi; | |
7649 | ||
7650 | eval "$ac_cv_use_imaglist" | |
7651 | if test "$no_cache" != 1; then | |
7652 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7653 | fi | |
7654 | ||
7655 | if test "$wxUSE_IMAGLIST" = yes; then | |
7656 | echo "$as_me:$LINENO: result: yes" >&5 | |
7657 | echo "${ECHO_T}yes" >&6 | |
7658 | else | |
7659 | echo "$as_me:$LINENO: result: no" >&5 | |
7660 | echo "${ECHO_T}no" >&6 | |
7661 | fi | |
7662 | ||
7663 | ||
7664 | enablestring= | |
7665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7666 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7667 | no_cache=0 | |
7668 | # Check whether --enable-listbook or --disable-listbook was given. | |
7669 | if test "${enable_listbook+set}" = set; then | |
7670 | enableval="$enable_listbook" | |
7671 | ||
7672 | if test "$enableval" = yes; then | |
7673 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7674 | else | |
7675 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7676 | fi | |
7677 | ||
7678 | else | |
7679 | ||
7680 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7681 | if test "x$LINE" != x ; then | |
7682 | eval "DEFAULT_$LINE" | |
7683 | else | |
7684 | no_cache=1 | |
7685 | fi | |
7686 | ||
7687 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7688 | ||
7689 | fi; | |
7690 | ||
7691 | eval "$ac_cv_use_listbook" | |
7692 | if test "$no_cache" != 1; then | |
7693 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7694 | fi | |
7695 | ||
7696 | if test "$wxUSE_LISTBOOK" = yes; then | |
7697 | echo "$as_me:$LINENO: result: yes" >&5 | |
7698 | echo "${ECHO_T}yes" >&6 | |
7699 | else | |
7700 | echo "$as_me:$LINENO: result: no" >&5 | |
7701 | echo "${ECHO_T}no" >&6 | |
7702 | fi | |
7703 | ||
7704 | ||
7705 | enablestring= | |
7706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7707 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7708 | no_cache=0 | |
7709 | # Check whether --enable-listbox or --disable-listbox was given. | |
7710 | if test "${enable_listbox+set}" = set; then | |
7711 | enableval="$enable_listbox" | |
7712 | ||
7713 | if test "$enableval" = yes; then | |
7714 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7715 | else | |
7716 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7717 | fi | |
7718 | ||
7719 | else | |
7720 | ||
7721 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7722 | if test "x$LINE" != x ; then | |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
7728 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7729 | ||
7730 | fi; | |
7731 | ||
7732 | eval "$ac_cv_use_listbox" | |
7733 | if test "$no_cache" != 1; then | |
7734 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7735 | fi | |
7736 | ||
7737 | if test "$wxUSE_LISTBOX" = yes; then | |
7738 | echo "$as_me:$LINENO: result: yes" >&5 | |
7739 | echo "${ECHO_T}yes" >&6 | |
7740 | else | |
7741 | echo "$as_me:$LINENO: result: no" >&5 | |
7742 | echo "${ECHO_T}no" >&6 | |
7743 | fi | |
7744 | ||
7745 | ||
7746 | enablestring= | |
7747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7748 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7749 | no_cache=0 | |
7750 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7751 | if test "${enable_listctrl+set}" = set; then | |
7752 | enableval="$enable_listctrl" | |
7753 | ||
7754 | if test "$enableval" = yes; then | |
7755 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7756 | else | |
7757 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7758 | fi | |
7759 | ||
7760 | else | |
7761 | ||
7762 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7763 | if test "x$LINE" != x ; then | |
7764 | eval "DEFAULT_$LINE" | |
7765 | else | |
7766 | no_cache=1 | |
7767 | fi | |
7768 | ||
7769 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7770 | ||
7771 | fi; | |
7772 | ||
7773 | eval "$ac_cv_use_listctrl" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_LISTCTRL" = yes; then | |
7779 | echo "$as_me:$LINENO: result: yes" >&5 | |
7780 | echo "${ECHO_T}yes" >&6 | |
7781 | else | |
7782 | echo "$as_me:$LINENO: result: no" >&5 | |
7783 | echo "${ECHO_T}no" >&6 | |
7784 | fi | |
7785 | ||
7786 | ||
7787 | enablestring= | |
7788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7789 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7790 | no_cache=0 | |
7791 | # Check whether --enable-notebook or --disable-notebook was given. | |
7792 | if test "${enable_notebook+set}" = set; then | |
7793 | enableval="$enable_notebook" | |
7794 | ||
7795 | if test "$enableval" = yes; then | |
7796 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7797 | else | |
7798 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7799 | fi | |
7800 | ||
7801 | else | |
7802 | ||
7803 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7804 | if test "x$LINE" != x ; then | |
7805 | eval "DEFAULT_$LINE" | |
7806 | else | |
7807 | no_cache=1 | |
7808 | fi | |
7809 | ||
7810 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7811 | ||
7812 | fi; | |
7813 | ||
7814 | eval "$ac_cv_use_notebook" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7820 | echo "$as_me:$LINENO: result: yes" >&5 | |
7821 | echo "${ECHO_T}yes" >&6 | |
7822 | else | |
7823 | echo "$as_me:$LINENO: result: no" >&5 | |
7824 | echo "${ECHO_T}no" >&6 | |
7825 | fi | |
7826 | ||
7827 | ||
7828 | enablestring= | |
7829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7830 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7831 | no_cache=0 | |
7832 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7833 | if test "${enable_radiobox+set}" = set; then | |
7834 | enableval="$enable_radiobox" | |
7835 | ||
7836 | if test "$enableval" = yes; then | |
7837 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7838 | else | |
7839 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7840 | fi | |
7841 | ||
7842 | else | |
7843 | ||
7844 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7845 | if test "x$LINE" != x ; then | |
7846 | eval "DEFAULT_$LINE" | |
7847 | else | |
7848 | no_cache=1 | |
7849 | fi | |
7850 | ||
7851 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7852 | ||
7853 | fi; | |
7854 | ||
7855 | eval "$ac_cv_use_radiobox" | |
7856 | if test "$no_cache" != 1; then | |
7857 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7858 | fi | |
7859 | ||
7860 | if test "$wxUSE_RADIOBOX" = yes; then | |
7861 | echo "$as_me:$LINENO: result: yes" >&5 | |
7862 | echo "${ECHO_T}yes" >&6 | |
7863 | else | |
7864 | echo "$as_me:$LINENO: result: no" >&5 | |
7865 | echo "${ECHO_T}no" >&6 | |
7866 | fi | |
7867 | ||
7868 | ||
7869 | enablestring= | |
7870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7871 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7872 | no_cache=0 | |
7873 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7874 | if test "${enable_radiobtn+set}" = set; then | |
7875 | enableval="$enable_radiobtn" | |
7876 | ||
7877 | if test "$enableval" = yes; then | |
7878 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7879 | else | |
7880 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7881 | fi | |
7882 | ||
7883 | else | |
7884 | ||
7885 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7886 | if test "x$LINE" != x ; then | |
7887 | eval "DEFAULT_$LINE" | |
7888 | else | |
7889 | no_cache=1 | |
7890 | fi | |
7891 | ||
7892 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7893 | ||
7894 | fi; | |
7895 | ||
7896 | eval "$ac_cv_use_radiobtn" | |
7897 | if test "$no_cache" != 1; then | |
7898 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7899 | fi | |
7900 | ||
7901 | if test "$wxUSE_RADIOBTN" = yes; then | |
7902 | echo "$as_me:$LINENO: result: yes" >&5 | |
7903 | echo "${ECHO_T}yes" >&6 | |
7904 | else | |
7905 | echo "$as_me:$LINENO: result: no" >&5 | |
7906 | echo "${ECHO_T}no" >&6 | |
7907 | fi | |
7908 | ||
7909 | ||
7910 | enablestring= | |
7911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7912 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7913 | no_cache=0 | |
7914 | # Check whether --enable-sash or --disable-sash was given. | |
7915 | if test "${enable_sash+set}" = set; then | |
7916 | enableval="$enable_sash" | |
7917 | ||
7918 | if test "$enableval" = yes; then | |
7919 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7920 | else | |
7921 | ac_cv_use_sash='wxUSE_SASH=no' | |
7922 | fi | |
7923 | ||
7924 | else | |
7925 | ||
7926 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7927 | if test "x$LINE" != x ; then | |
7928 | eval "DEFAULT_$LINE" | |
7929 | else | |
7930 | no_cache=1 | |
7931 | fi | |
7932 | ||
7933 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7934 | ||
7935 | fi; | |
7936 | ||
7937 | eval "$ac_cv_use_sash" | |
7938 | if test "$no_cache" != 1; then | |
7939 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7940 | fi | |
7941 | ||
7942 | if test "$wxUSE_SASH" = yes; then | |
7943 | echo "$as_me:$LINENO: result: yes" >&5 | |
7944 | echo "${ECHO_T}yes" >&6 | |
7945 | else | |
7946 | echo "$as_me:$LINENO: result: no" >&5 | |
7947 | echo "${ECHO_T}no" >&6 | |
7948 | fi | |
7949 | ||
7950 | ||
7951 | enablestring= | |
7952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7953 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7954 | no_cache=0 | |
7955 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7956 | if test "${enable_scrollbar+set}" = set; then | |
7957 | enableval="$enable_scrollbar" | |
7958 | ||
7959 | if test "$enableval" = yes; then | |
7960 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7961 | else | |
7962 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7963 | fi | |
7964 | ||
7965 | else | |
7966 | ||
7967 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7968 | if test "x$LINE" != x ; then | |
7969 | eval "DEFAULT_$LINE" | |
7970 | else | |
7971 | no_cache=1 | |
7972 | fi | |
7973 | ||
7974 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7975 | ||
7976 | fi; | |
7977 | ||
7978 | eval "$ac_cv_use_scrollbar" | |
7979 | if test "$no_cache" != 1; then | |
7980 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7981 | fi | |
7982 | ||
7983 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7984 | echo "$as_me:$LINENO: result: yes" >&5 | |
7985 | echo "${ECHO_T}yes" >&6 | |
7986 | else | |
7987 | echo "$as_me:$LINENO: result: no" >&5 | |
7988 | echo "${ECHO_T}no" >&6 | |
7989 | fi | |
7990 | ||
7991 | ||
7992 | enablestring= | |
7993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7994 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7995 | no_cache=0 | |
7996 | # Check whether --enable-slider or --disable-slider was given. | |
7997 | if test "${enable_slider+set}" = set; then | |
7998 | enableval="$enable_slider" | |
7999 | ||
8000 | if test "$enableval" = yes; then | |
8001 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8002 | else | |
8003 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8004 | fi | |
8005 | ||
8006 | else | |
8007 | ||
8008 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8009 | if test "x$LINE" != x ; then | |
8010 | eval "DEFAULT_$LINE" | |
8011 | else | |
8012 | no_cache=1 | |
8013 | fi | |
8014 | ||
8015 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8016 | ||
8017 | fi; | |
8018 | ||
8019 | eval "$ac_cv_use_slider" | |
8020 | if test "$no_cache" != 1; then | |
8021 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8022 | fi | |
8023 | ||
8024 | if test "$wxUSE_SLIDER" = yes; then | |
8025 | echo "$as_me:$LINENO: result: yes" >&5 | |
8026 | echo "${ECHO_T}yes" >&6 | |
8027 | else | |
8028 | echo "$as_me:$LINENO: result: no" >&5 | |
8029 | echo "${ECHO_T}no" >&6 | |
8030 | fi | |
8031 | ||
8032 | ||
8033 | enablestring= | |
8034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8035 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8036 | no_cache=0 | |
8037 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8038 | if test "${enable_spinbtn+set}" = set; then | |
8039 | enableval="$enable_spinbtn" | |
8040 | ||
8041 | if test "$enableval" = yes; then | |
8042 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8043 | else | |
8044 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8045 | fi | |
8046 | ||
8047 | else | |
8048 | ||
8049 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8050 | if test "x$LINE" != x ; then | |
8051 | eval "DEFAULT_$LINE" | |
8052 | else | |
8053 | no_cache=1 | |
8054 | fi | |
8055 | ||
8056 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8057 | ||
8058 | fi; | |
8059 | ||
8060 | eval "$ac_cv_use_spinbtn" | |
8061 | if test "$no_cache" != 1; then | |
8062 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8063 | fi | |
8064 | ||
8065 | if test "$wxUSE_SPINBTN" = yes; then | |
8066 | echo "$as_me:$LINENO: result: yes" >&5 | |
8067 | echo "${ECHO_T}yes" >&6 | |
8068 | else | |
8069 | echo "$as_me:$LINENO: result: no" >&5 | |
8070 | echo "${ECHO_T}no" >&6 | |
8071 | fi | |
8072 | ||
8073 | ||
8074 | enablestring= | |
8075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8076 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8077 | no_cache=0 | |
8078 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8079 | if test "${enable_spinctrl+set}" = set; then | |
8080 | enableval="$enable_spinctrl" | |
8081 | ||
8082 | if test "$enableval" = yes; then | |
8083 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8084 | else | |
8085 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8086 | fi | |
8087 | ||
8088 | else | |
8089 | ||
8090 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8091 | if test "x$LINE" != x ; then | |
8092 | eval "DEFAULT_$LINE" | |
8093 | else | |
8094 | no_cache=1 | |
8095 | fi | |
8096 | ||
8097 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8098 | ||
8099 | fi; | |
8100 | ||
8101 | eval "$ac_cv_use_spinctrl" | |
8102 | if test "$no_cache" != 1; then | |
8103 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8104 | fi | |
8105 | ||
8106 | if test "$wxUSE_SPINCTRL" = yes; then | |
8107 | echo "$as_me:$LINENO: result: yes" >&5 | |
8108 | echo "${ECHO_T}yes" >&6 | |
8109 | else | |
8110 | echo "$as_me:$LINENO: result: no" >&5 | |
8111 | echo "${ECHO_T}no" >&6 | |
8112 | fi | |
8113 | ||
8114 | ||
8115 | enablestring= | |
8116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8117 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8118 | no_cache=0 | |
8119 | # Check whether --enable-splitter or --disable-splitter was given. | |
8120 | if test "${enable_splitter+set}" = set; then | |
8121 | enableval="$enable_splitter" | |
8122 | ||
8123 | if test "$enableval" = yes; then | |
8124 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8125 | else | |
8126 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8127 | fi | |
8128 | ||
8129 | else | |
8130 | ||
8131 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8132 | if test "x$LINE" != x ; then | |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
8138 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8139 | ||
8140 | fi; | |
8141 | ||
8142 | eval "$ac_cv_use_splitter" | |
8143 | if test "$no_cache" != 1; then | |
8144 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8145 | fi | |
8146 | ||
8147 | if test "$wxUSE_SPLITTER" = yes; then | |
8148 | echo "$as_me:$LINENO: result: yes" >&5 | |
8149 | echo "${ECHO_T}yes" >&6 | |
8150 | else | |
8151 | echo "$as_me:$LINENO: result: no" >&5 | |
8152 | echo "${ECHO_T}no" >&6 | |
8153 | fi | |
8154 | ||
8155 | ||
8156 | enablestring= | |
8157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8158 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8159 | no_cache=0 | |
8160 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8161 | if test "${enable_statbmp+set}" = set; then | |
8162 | enableval="$enable_statbmp" | |
8163 | ||
8164 | if test "$enableval" = yes; then | |
8165 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8166 | else | |
8167 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8168 | fi | |
8169 | ||
8170 | else | |
8171 | ||
8172 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8173 | if test "x$LINE" != x ; then | |
8174 | eval "DEFAULT_$LINE" | |
8175 | else | |
8176 | no_cache=1 | |
8177 | fi | |
8178 | ||
8179 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8180 | ||
8181 | fi; | |
8182 | ||
8183 | eval "$ac_cv_use_statbmp" | |
8184 | if test "$no_cache" != 1; then | |
8185 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8186 | fi | |
8187 | ||
8188 | if test "$wxUSE_STATBMP" = yes; then | |
8189 | echo "$as_me:$LINENO: result: yes" >&5 | |
8190 | echo "${ECHO_T}yes" >&6 | |
8191 | else | |
8192 | echo "$as_me:$LINENO: result: no" >&5 | |
8193 | echo "${ECHO_T}no" >&6 | |
8194 | fi | |
8195 | ||
8196 | ||
8197 | enablestring= | |
8198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8199 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8200 | no_cache=0 | |
8201 | # Check whether --enable-statbox or --disable-statbox was given. | |
8202 | if test "${enable_statbox+set}" = set; then | |
8203 | enableval="$enable_statbox" | |
8204 | ||
8205 | if test "$enableval" = yes; then | |
8206 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8207 | else | |
8208 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8209 | fi | |
8210 | ||
8211 | else | |
8212 | ||
8213 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8214 | if test "x$LINE" != x ; then | |
8215 | eval "DEFAULT_$LINE" | |
8216 | else | |
8217 | no_cache=1 | |
8218 | fi | |
8219 | ||
8220 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8221 | ||
8222 | fi; | |
8223 | ||
8224 | eval "$ac_cv_use_statbox" | |
8225 | if test "$no_cache" != 1; then | |
8226 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8227 | fi | |
8228 | ||
8229 | if test "$wxUSE_STATBOX" = yes; then | |
8230 | echo "$as_me:$LINENO: result: yes" >&5 | |
8231 | echo "${ECHO_T}yes" >&6 | |
8232 | else | |
8233 | echo "$as_me:$LINENO: result: no" >&5 | |
8234 | echo "${ECHO_T}no" >&6 | |
8235 | fi | |
8236 | ||
8237 | ||
8238 | enablestring= | |
8239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8240 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8241 | no_cache=0 | |
8242 | # Check whether --enable-statline or --disable-statline was given. | |
8243 | if test "${enable_statline+set}" = set; then | |
8244 | enableval="$enable_statline" | |
8245 | ||
8246 | if test "$enableval" = yes; then | |
8247 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8248 | else | |
8249 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8250 | fi | |
8251 | ||
8252 | else | |
8253 | ||
8254 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8255 | if test "x$LINE" != x ; then | |
8256 | eval "DEFAULT_$LINE" | |
8257 | else | |
8258 | no_cache=1 | |
8259 | fi | |
8260 | ||
8261 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8262 | ||
8263 | fi; | |
8264 | ||
8265 | eval "$ac_cv_use_statline" | |
8266 | if test "$no_cache" != 1; then | |
8267 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8268 | fi | |
8269 | ||
8270 | if test "$wxUSE_STATLINE" = yes; then | |
8271 | echo "$as_me:$LINENO: result: yes" >&5 | |
8272 | echo "${ECHO_T}yes" >&6 | |
8273 | else | |
8274 | echo "$as_me:$LINENO: result: no" >&5 | |
8275 | echo "${ECHO_T}no" >&6 | |
8276 | fi | |
8277 | ||
8278 | ||
8279 | enablestring= | |
8280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8281 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8282 | no_cache=0 | |
8283 | # Check whether --enable-stattext or --disable-stattext was given. | |
8284 | if test "${enable_stattext+set}" = set; then | |
8285 | enableval="$enable_stattext" | |
8286 | ||
8287 | if test "$enableval" = yes; then | |
8288 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8289 | else | |
8290 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8291 | fi | |
8292 | ||
8293 | else | |
8294 | ||
8295 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8296 | if test "x$LINE" != x ; then | |
8297 | eval "DEFAULT_$LINE" | |
8298 | else | |
8299 | no_cache=1 | |
8300 | fi | |
8301 | ||
8302 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8303 | ||
8304 | fi; | |
8305 | ||
8306 | eval "$ac_cv_use_stattext" | |
8307 | if test "$no_cache" != 1; then | |
8308 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8309 | fi | |
8310 | ||
8311 | if test "$wxUSE_STATTEXT" = yes; then | |
8312 | echo "$as_me:$LINENO: result: yes" >&5 | |
8313 | echo "${ECHO_T}yes" >&6 | |
8314 | else | |
8315 | echo "$as_me:$LINENO: result: no" >&5 | |
8316 | echo "${ECHO_T}no" >&6 | |
8317 | fi | |
8318 | ||
8319 | ||
8320 | enablestring= | |
8321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8322 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8323 | no_cache=0 | |
8324 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8325 | if test "${enable_statusbar+set}" = set; then | |
8326 | enableval="$enable_statusbar" | |
8327 | ||
8328 | if test "$enableval" = yes; then | |
8329 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8330 | else | |
8331 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8332 | fi | |
8333 | ||
8334 | else | |
8335 | ||
8336 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8337 | if test "x$LINE" != x ; then | |
8338 | eval "DEFAULT_$LINE" | |
8339 | else | |
8340 | no_cache=1 | |
8341 | fi | |
8342 | ||
8343 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8344 | ||
8345 | fi; | |
8346 | ||
8347 | eval "$ac_cv_use_statusbar" | |
8348 | if test "$no_cache" != 1; then | |
8349 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8350 | fi | |
8351 | ||
8352 | if test "$wxUSE_STATUSBAR" = yes; then | |
8353 | echo "$as_me:$LINENO: result: yes" >&5 | |
8354 | echo "${ECHO_T}yes" >&6 | |
8355 | else | |
8356 | echo "$as_me:$LINENO: result: no" >&5 | |
8357 | echo "${ECHO_T}no" >&6 | |
8358 | fi | |
8359 | ||
8360 | ||
8361 | enablestring= | |
8362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8363 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8364 | no_cache=0 | |
8365 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8366 | if test "${enable_tabdialog+set}" = set; then | |
8367 | enableval="$enable_tabdialog" | |
8368 | ||
8369 | if test "$enableval" = yes; then | |
8370 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8371 | else | |
8372 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8373 | fi | |
8374 | ||
8375 | else | |
8376 | ||
8377 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8378 | if test "x$LINE" != x ; then | |
8379 | eval "DEFAULT_$LINE" | |
8380 | else | |
8381 | no_cache=1 | |
8382 | fi | |
8383 | ||
8384 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8385 | ||
8386 | fi; | |
8387 | ||
8388 | eval "$ac_cv_use_tabdialog" | |
8389 | if test "$no_cache" != 1; then | |
8390 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8391 | fi | |
8392 | ||
8393 | if test "$wxUSE_TABDIALOG" = yes; then | |
8394 | echo "$as_me:$LINENO: result: yes" >&5 | |
8395 | echo "${ECHO_T}yes" >&6 | |
8396 | else | |
8397 | echo "$as_me:$LINENO: result: no" >&5 | |
8398 | echo "${ECHO_T}no" >&6 | |
8399 | fi | |
8400 | ||
8401 | ||
8402 | enablestring= | |
8403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8404 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8405 | no_cache=0 | |
8406 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8407 | if test "${enable_textctrl+set}" = set; then | |
8408 | enableval="$enable_textctrl" | |
8409 | ||
8410 | if test "$enableval" = yes; then | |
8411 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8412 | else | |
8413 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8414 | fi | |
8415 | ||
8416 | else | |
8417 | ||
8418 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8419 | if test "x$LINE" != x ; then | |
8420 | eval "DEFAULT_$LINE" | |
8421 | else | |
8422 | no_cache=1 | |
8423 | fi | |
8424 | ||
8425 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8426 | ||
8427 | fi; | |
8428 | ||
8429 | eval "$ac_cv_use_textctrl" | |
8430 | if test "$no_cache" != 1; then | |
8431 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8432 | fi | |
8433 | ||
8434 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8435 | echo "$as_me:$LINENO: result: yes" >&5 | |
8436 | echo "${ECHO_T}yes" >&6 | |
8437 | else | |
8438 | echo "$as_me:$LINENO: result: no" >&5 | |
8439 | echo "${ECHO_T}no" >&6 | |
8440 | fi | |
8441 | ||
8442 | ||
8443 | enablestring= | |
8444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8445 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8446 | no_cache=0 | |
8447 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8448 | if test "${enable_togglebtn+set}" = set; then | |
8449 | enableval="$enable_togglebtn" | |
8450 | ||
8451 | if test "$enableval" = yes; then | |
8452 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8453 | else | |
8454 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8455 | fi | |
8456 | ||
8457 | else | |
8458 | ||
8459 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8460 | if test "x$LINE" != x ; then | |
8461 | eval "DEFAULT_$LINE" | |
8462 | else | |
8463 | no_cache=1 | |
8464 | fi | |
8465 | ||
8466 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8467 | ||
8468 | fi; | |
8469 | ||
8470 | eval "$ac_cv_use_togglebtn" | |
8471 | if test "$no_cache" != 1; then | |
8472 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8473 | fi | |
8474 | ||
8475 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8476 | echo "$as_me:$LINENO: result: yes" >&5 | |
8477 | echo "${ECHO_T}yes" >&6 | |
8478 | else | |
8479 | echo "$as_me:$LINENO: result: no" >&5 | |
8480 | echo "${ECHO_T}no" >&6 | |
8481 | fi | |
8482 | ||
8483 | ||
8484 | enablestring= | |
8485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8486 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8487 | no_cache=0 | |
8488 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8489 | if test "${enable_toolbar+set}" = set; then | |
8490 | enableval="$enable_toolbar" | |
8491 | ||
8492 | if test "$enableval" = yes; then | |
8493 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8494 | else | |
8495 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8496 | fi | |
8497 | ||
8498 | else | |
8499 | ||
8500 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8501 | if test "x$LINE" != x ; then | |
8502 | eval "DEFAULT_$LINE" | |
8503 | else | |
8504 | no_cache=1 | |
8505 | fi | |
8506 | ||
8507 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8508 | ||
8509 | fi; | |
8510 | ||
8511 | eval "$ac_cv_use_toolbar" | |
8512 | if test "$no_cache" != 1; then | |
8513 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8514 | fi | |
8515 | ||
8516 | if test "$wxUSE_TOOLBAR" = yes; then | |
8517 | echo "$as_me:$LINENO: result: yes" >&5 | |
8518 | echo "${ECHO_T}yes" >&6 | |
8519 | else | |
8520 | echo "$as_me:$LINENO: result: no" >&5 | |
8521 | echo "${ECHO_T}no" >&6 | |
8522 | fi | |
8523 | ||
8524 | ||
8525 | enablestring= | |
8526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8527 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8528 | no_cache=0 | |
8529 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8530 | if test "${enable_tbarnative+set}" = set; then | |
8531 | enableval="$enable_tbarnative" | |
8532 | ||
8533 | if test "$enableval" = yes; then | |
8534 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8535 | else | |
8536 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8537 | fi | |
8538 | ||
8539 | else | |
8540 | ||
8541 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8542 | if test "x$LINE" != x ; then | |
8543 | eval "DEFAULT_$LINE" | |
8544 | else | |
8545 | no_cache=1 | |
8546 | fi | |
8547 | ||
8548 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8549 | ||
8550 | fi; | |
8551 | ||
8552 | eval "$ac_cv_use_tbarnative" | |
8553 | if test "$no_cache" != 1; then | |
8554 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8555 | fi | |
8556 | ||
8557 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8558 | echo "$as_me:$LINENO: result: yes" >&5 | |
8559 | echo "${ECHO_T}yes" >&6 | |
8560 | else | |
8561 | echo "$as_me:$LINENO: result: no" >&5 | |
8562 | echo "${ECHO_T}no" >&6 | |
8563 | fi | |
8564 | ||
8565 | ||
8566 | enablestring= | |
8567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8568 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8569 | no_cache=0 | |
8570 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8571 | if test "${enable_tbarsmpl+set}" = set; then | |
8572 | enableval="$enable_tbarsmpl" | |
8573 | ||
8574 | if test "$enableval" = yes; then | |
8575 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8576 | else | |
8577 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8578 | fi | |
8579 | ||
8580 | else | |
8581 | ||
8582 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8583 | if test "x$LINE" != x ; then | |
8584 | eval "DEFAULT_$LINE" | |
8585 | else | |
8586 | no_cache=1 | |
8587 | fi | |
8588 | ||
8589 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8590 | ||
8591 | fi; | |
8592 | ||
8593 | eval "$ac_cv_use_tbarsmpl" | |
8594 | if test "$no_cache" != 1; then | |
8595 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8596 | fi | |
8597 | ||
8598 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8599 | echo "$as_me:$LINENO: result: yes" >&5 | |
8600 | echo "${ECHO_T}yes" >&6 | |
8601 | else | |
8602 | echo "$as_me:$LINENO: result: no" >&5 | |
8603 | echo "${ECHO_T}no" >&6 | |
8604 | fi | |
8605 | ||
8606 | ||
8607 | enablestring= | |
8608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8609 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8610 | no_cache=0 | |
8611 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8612 | if test "${enable_treectrl+set}" = set; then | |
8613 | enableval="$enable_treectrl" | |
8614 | ||
8615 | if test "$enableval" = yes; then | |
8616 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8617 | else | |
8618 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8619 | fi | |
8620 | ||
8621 | else | |
8622 | ||
8623 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8624 | if test "x$LINE" != x ; then | |
8625 | eval "DEFAULT_$LINE" | |
8626 | else | |
8627 | no_cache=1 | |
8628 | fi | |
8629 | ||
8630 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8631 | ||
8632 | fi; | |
8633 | ||
8634 | eval "$ac_cv_use_treectrl" | |
8635 | if test "$no_cache" != 1; then | |
8636 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8637 | fi | |
8638 | ||
8639 | if test "$wxUSE_TREECTRL" = yes; then | |
8640 | echo "$as_me:$LINENO: result: yes" >&5 | |
8641 | echo "${ECHO_T}yes" >&6 | |
8642 | else | |
8643 | echo "$as_me:$LINENO: result: no" >&5 | |
8644 | echo "${ECHO_T}no" >&6 | |
8645 | fi | |
8646 | ||
8647 | ||
8648 | enablestring= | |
8649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8650 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8651 | no_cache=0 | |
8652 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8653 | if test "${enable_tipwindow+set}" = set; then | |
8654 | enableval="$enable_tipwindow" | |
8655 | ||
8656 | if test "$enableval" = yes; then | |
8657 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8658 | else | |
8659 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8660 | fi | |
8661 | ||
8662 | else | |
8663 | ||
8664 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8665 | if test "x$LINE" != x ; then | |
8666 | eval "DEFAULT_$LINE" | |
8667 | else | |
8668 | no_cache=1 | |
8669 | fi | |
8670 | ||
8671 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8672 | ||
8673 | fi; | |
8674 | ||
8675 | eval "$ac_cv_use_tipwindow" | |
8676 | if test "$no_cache" != 1; then | |
8677 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8678 | fi | |
8679 | ||
8680 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8681 | echo "$as_me:$LINENO: result: yes" >&5 | |
8682 | echo "${ECHO_T}yes" >&6 | |
8683 | else | |
8684 | echo "$as_me:$LINENO: result: no" >&5 | |
8685 | echo "${ECHO_T}no" >&6 | |
8686 | fi | |
8687 | ||
8688 | ||
8689 | enablestring= | |
8690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8691 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8692 | no_cache=0 | |
8693 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8694 | if test "${enable_popupwin+set}" = set; then | |
8695 | enableval="$enable_popupwin" | |
8696 | ||
8697 | if test "$enableval" = yes; then | |
8698 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8699 | else | |
8700 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8701 | fi | |
8702 | ||
8703 | else | |
8704 | ||
8705 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8706 | if test "x$LINE" != x ; then | |
8707 | eval "DEFAULT_$LINE" | |
8708 | else | |
8709 | no_cache=1 | |
8710 | fi | |
8711 | ||
8712 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8713 | ||
8714 | fi; | |
8715 | ||
8716 | eval "$ac_cv_use_popupwin" | |
8717 | if test "$no_cache" != 1; then | |
8718 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8719 | fi | |
8720 | ||
8721 | if test "$wxUSE_POPUPWIN" = yes; then | |
8722 | echo "$as_me:$LINENO: result: yes" >&5 | |
8723 | echo "${ECHO_T}yes" >&6 | |
8724 | else | |
8725 | echo "$as_me:$LINENO: result: no" >&5 | |
8726 | echo "${ECHO_T}no" >&6 | |
8727 | fi | |
8728 | ||
8729 | ||
8730 | ||
8731 | ||
8732 | enablestring= | |
8733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8734 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8735 | no_cache=0 | |
8736 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8737 | if test "${enable_commondlg+set}" = set; then | |
8738 | enableval="$enable_commondlg" | |
8739 | ||
8740 | if test "$enableval" = yes; then | |
8741 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8742 | else | |
8743 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8744 | fi | |
8745 | ||
8746 | else | |
8747 | ||
8748 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8749 | if test "x$LINE" != x ; then | |
8750 | eval "DEFAULT_$LINE" | |
8751 | else | |
8752 | no_cache=1 | |
8753 | fi | |
8754 | ||
8755 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8756 | ||
8757 | fi; | |
8758 | ||
8759 | eval "$ac_cv_use_commondlg" | |
8760 | if test "$no_cache" != 1; then | |
8761 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8762 | fi | |
8763 | ||
8764 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8765 | echo "$as_me:$LINENO: result: yes" >&5 | |
8766 | echo "${ECHO_T}yes" >&6 | |
8767 | else | |
8768 | echo "$as_me:$LINENO: result: no" >&5 | |
8769 | echo "${ECHO_T}no" >&6 | |
8770 | fi | |
8771 | ||
8772 | ||
8773 | enablestring= | |
8774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8775 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8776 | no_cache=0 | |
8777 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8778 | if test "${enable_choicedlg+set}" = set; then | |
8779 | enableval="$enable_choicedlg" | |
8780 | ||
8781 | if test "$enableval" = yes; then | |
8782 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8783 | else | |
8784 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8785 | fi | |
8786 | ||
8787 | else | |
8788 | ||
8789 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8790 | if test "x$LINE" != x ; then | |
8791 | eval "DEFAULT_$LINE" | |
8792 | else | |
8793 | no_cache=1 | |
8794 | fi | |
8795 | ||
8796 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8797 | ||
8798 | fi; | |
8799 | ||
8800 | eval "$ac_cv_use_choicedlg" | |
8801 | if test "$no_cache" != 1; then | |
8802 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8803 | fi | |
8804 | ||
8805 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8806 | echo "$as_me:$LINENO: result: yes" >&5 | |
8807 | echo "${ECHO_T}yes" >&6 | |
8808 | else | |
8809 | echo "$as_me:$LINENO: result: no" >&5 | |
8810 | echo "${ECHO_T}no" >&6 | |
8811 | fi | |
8812 | ||
8813 | ||
8814 | enablestring= | |
8815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8816 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8817 | no_cache=0 | |
8818 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8819 | if test "${enable_coldlg+set}" = set; then | |
8820 | enableval="$enable_coldlg" | |
8821 | ||
8822 | if test "$enableval" = yes; then | |
8823 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8824 | else | |
8825 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8826 | fi | |
8827 | ||
8828 | else | |
8829 | ||
8830 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8831 | if test "x$LINE" != x ; then | |
8832 | eval "DEFAULT_$LINE" | |
8833 | else | |
8834 | no_cache=1 | |
8835 | fi | |
8836 | ||
8837 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8838 | ||
8839 | fi; | |
8840 | ||
8841 | eval "$ac_cv_use_coldlg" | |
8842 | if test "$no_cache" != 1; then | |
8843 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8844 | fi | |
8845 | ||
8846 | if test "$wxUSE_COLOURDLG" = yes; then | |
8847 | echo "$as_me:$LINENO: result: yes" >&5 | |
8848 | echo "${ECHO_T}yes" >&6 | |
8849 | else | |
8850 | echo "$as_me:$LINENO: result: no" >&5 | |
8851 | echo "${ECHO_T}no" >&6 | |
8852 | fi | |
8853 | ||
8854 | ||
8855 | enablestring= | |
8856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8857 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8858 | no_cache=0 | |
8859 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8860 | if test "${enable_filedlg+set}" = set; then | |
8861 | enableval="$enable_filedlg" | |
8862 | ||
8863 | if test "$enableval" = yes; then | |
8864 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8865 | else | |
8866 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8867 | fi | |
8868 | ||
8869 | else | |
8870 | ||
8871 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8872 | if test "x$LINE" != x ; then | |
8873 | eval "DEFAULT_$LINE" | |
8874 | else | |
8875 | no_cache=1 | |
8876 | fi | |
8877 | ||
8878 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8879 | ||
8880 | fi; | |
8881 | ||
8882 | eval "$ac_cv_use_filedlg" | |
8883 | if test "$no_cache" != 1; then | |
8884 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8885 | fi | |
8886 | ||
8887 | if test "$wxUSE_FILEDLG" = yes; then | |
8888 | echo "$as_me:$LINENO: result: yes" >&5 | |
8889 | echo "${ECHO_T}yes" >&6 | |
8890 | else | |
8891 | echo "$as_me:$LINENO: result: no" >&5 | |
8892 | echo "${ECHO_T}no" >&6 | |
8893 | fi | |
8894 | ||
8895 | ||
8896 | enablestring= | |
8897 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8898 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8899 | no_cache=0 | |
8900 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8901 | if test "${enable_finddlg+set}" = set; then | |
8902 | enableval="$enable_finddlg" | |
8903 | ||
8904 | if test "$enableval" = yes; then | |
8905 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8906 | else | |
8907 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8908 | fi | |
8909 | ||
8910 | else | |
8911 | ||
8912 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8913 | if test "x$LINE" != x ; then | |
8914 | eval "DEFAULT_$LINE" | |
8915 | else | |
8916 | no_cache=1 | |
8917 | fi | |
8918 | ||
8919 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8920 | ||
8921 | fi; | |
8922 | ||
8923 | eval "$ac_cv_use_finddlg" | |
8924 | if test "$no_cache" != 1; then | |
8925 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8926 | fi | |
8927 | ||
8928 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8929 | echo "$as_me:$LINENO: result: yes" >&5 | |
8930 | echo "${ECHO_T}yes" >&6 | |
8931 | else | |
8932 | echo "$as_me:$LINENO: result: no" >&5 | |
8933 | echo "${ECHO_T}no" >&6 | |
8934 | fi | |
8935 | ||
8936 | ||
8937 | enablestring= | |
8938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8939 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8940 | no_cache=0 | |
8941 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8942 | if test "${enable_fontdlg+set}" = set; then | |
8943 | enableval="$enable_fontdlg" | |
8944 | ||
8945 | if test "$enableval" = yes; then | |
8946 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8947 | else | |
8948 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8949 | fi | |
8950 | ||
8951 | else | |
8952 | ||
8953 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8954 | if test "x$LINE" != x ; then | |
8955 | eval "DEFAULT_$LINE" | |
8956 | else | |
8957 | no_cache=1 | |
8958 | fi | |
8959 | ||
8960 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8961 | ||
8962 | fi; | |
8963 | ||
8964 | eval "$ac_cv_use_fontdlg" | |
8965 | if test "$no_cache" != 1; then | |
8966 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8967 | fi | |
8968 | ||
8969 | if test "$wxUSE_FONTDLG" = yes; then | |
8970 | echo "$as_me:$LINENO: result: yes" >&5 | |
8971 | echo "${ECHO_T}yes" >&6 | |
8972 | else | |
8973 | echo "$as_me:$LINENO: result: no" >&5 | |
8974 | echo "${ECHO_T}no" >&6 | |
8975 | fi | |
8976 | ||
8977 | ||
8978 | enablestring= | |
8979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8980 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8981 | no_cache=0 | |
8982 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8983 | if test "${enable_dirdlg+set}" = set; then | |
8984 | enableval="$enable_dirdlg" | |
8985 | ||
8986 | if test "$enableval" = yes; then | |
8987 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8988 | else | |
8989 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8990 | fi | |
8991 | ||
8992 | else | |
8993 | ||
8994 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8995 | if test "x$LINE" != x ; then | |
8996 | eval "DEFAULT_$LINE" | |
8997 | else | |
8998 | no_cache=1 | |
8999 | fi | |
9000 | ||
9001 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9002 | ||
9003 | fi; | |
9004 | ||
9005 | eval "$ac_cv_use_dirdlg" | |
9006 | if test "$no_cache" != 1; then | |
9007 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9008 | fi | |
9009 | ||
9010 | if test "$wxUSE_DIRDLG" = yes; then | |
9011 | echo "$as_me:$LINENO: result: yes" >&5 | |
9012 | echo "${ECHO_T}yes" >&6 | |
9013 | else | |
9014 | echo "$as_me:$LINENO: result: no" >&5 | |
9015 | echo "${ECHO_T}no" >&6 | |
9016 | fi | |
9017 | ||
9018 | ||
9019 | enablestring= | |
9020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9021 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9022 | no_cache=0 | |
9023 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9024 | if test "${enable_msgdlg+set}" = set; then | |
9025 | enableval="$enable_msgdlg" | |
9026 | ||
9027 | if test "$enableval" = yes; then | |
9028 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9029 | else | |
9030 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9031 | fi | |
9032 | ||
9033 | else | |
9034 | ||
9035 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9036 | if test "x$LINE" != x ; then | |
9037 | eval "DEFAULT_$LINE" | |
9038 | else | |
9039 | no_cache=1 | |
9040 | fi | |
9041 | ||
9042 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9043 | ||
9044 | fi; | |
9045 | ||
9046 | eval "$ac_cv_use_msgdlg" | |
9047 | if test "$no_cache" != 1; then | |
9048 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9049 | fi | |
9050 | ||
9051 | if test "$wxUSE_MSGDLG" = yes; then | |
9052 | echo "$as_me:$LINENO: result: yes" >&5 | |
9053 | echo "${ECHO_T}yes" >&6 | |
9054 | else | |
9055 | echo "$as_me:$LINENO: result: no" >&5 | |
9056 | echo "${ECHO_T}no" >&6 | |
9057 | fi | |
9058 | ||
9059 | ||
9060 | enablestring= | |
9061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9062 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9063 | no_cache=0 | |
9064 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9065 | if test "${enable_numberdlg+set}" = set; then | |
9066 | enableval="$enable_numberdlg" | |
9067 | ||
9068 | if test "$enableval" = yes; then | |
9069 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9070 | else | |
9071 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9072 | fi | |
9073 | ||
9074 | else | |
9075 | ||
9076 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9077 | if test "x$LINE" != x ; then | |
9078 | eval "DEFAULT_$LINE" | |
9079 | else | |
9080 | no_cache=1 | |
9081 | fi | |
9082 | ||
9083 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9084 | ||
9085 | fi; | |
9086 | ||
9087 | eval "$ac_cv_use_numberdlg" | |
9088 | if test "$no_cache" != 1; then | |
9089 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9090 | fi | |
9091 | ||
9092 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9093 | echo "$as_me:$LINENO: result: yes" >&5 | |
9094 | echo "${ECHO_T}yes" >&6 | |
9095 | else | |
9096 | echo "$as_me:$LINENO: result: no" >&5 | |
9097 | echo "${ECHO_T}no" >&6 | |
9098 | fi | |
9099 | ||
9100 | ||
9101 | enablestring= | |
9102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9103 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9104 | no_cache=0 | |
9105 | # Check whether --enable-splash or --disable-splash was given. | |
9106 | if test "${enable_splash+set}" = set; then | |
9107 | enableval="$enable_splash" | |
9108 | ||
9109 | if test "$enableval" = yes; then | |
9110 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9111 | else | |
9112 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9113 | fi | |
9114 | ||
9115 | else | |
9116 | ||
9117 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9118 | if test "x$LINE" != x ; then | |
9119 | eval "DEFAULT_$LINE" | |
9120 | else | |
9121 | no_cache=1 | |
9122 | fi | |
9123 | ||
9124 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9125 | ||
9126 | fi; | |
9127 | ||
9128 | eval "$ac_cv_use_splash" | |
9129 | if test "$no_cache" != 1; then | |
9130 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9131 | fi | |
9132 | ||
9133 | if test "$wxUSE_SPLASH" = yes; then | |
9134 | echo "$as_me:$LINENO: result: yes" >&5 | |
9135 | echo "${ECHO_T}yes" >&6 | |
9136 | else | |
9137 | echo "$as_me:$LINENO: result: no" >&5 | |
9138 | echo "${ECHO_T}no" >&6 | |
9139 | fi | |
9140 | ||
9141 | ||
9142 | enablestring= | |
9143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9144 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9145 | no_cache=0 | |
9146 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9147 | if test "${enable_textdlg+set}" = set; then | |
9148 | enableval="$enable_textdlg" | |
9149 | ||
9150 | if test "$enableval" = yes; then | |
9151 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9152 | else | |
9153 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9154 | fi | |
9155 | ||
9156 | else | |
9157 | ||
9158 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9159 | if test "x$LINE" != x ; then | |
9160 | eval "DEFAULT_$LINE" | |
9161 | else | |
9162 | no_cache=1 | |
9163 | fi | |
9164 | ||
9165 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9166 | ||
9167 | fi; | |
9168 | ||
9169 | eval "$ac_cv_use_textdlg" | |
9170 | if test "$no_cache" != 1; then | |
9171 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9172 | fi | |
9173 | ||
9174 | if test "$wxUSE_TEXTDLG" = yes; then | |
9175 | echo "$as_me:$LINENO: result: yes" >&5 | |
9176 | echo "${ECHO_T}yes" >&6 | |
9177 | else | |
9178 | echo "$as_me:$LINENO: result: no" >&5 | |
9179 | echo "${ECHO_T}no" >&6 | |
9180 | fi | |
9181 | ||
9182 | ||
9183 | enablestring= | |
9184 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9185 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9186 | no_cache=0 | |
9187 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9188 | if test "${enable_tipdlg+set}" = set; then | |
9189 | enableval="$enable_tipdlg" | |
9190 | ||
9191 | if test "$enableval" = yes; then | |
9192 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9193 | else | |
9194 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9195 | fi | |
9196 | ||
9197 | else | |
9198 | ||
9199 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9200 | if test "x$LINE" != x ; then | |
9201 | eval "DEFAULT_$LINE" | |
9202 | else | |
9203 | no_cache=1 | |
9204 | fi | |
9205 | ||
9206 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9207 | ||
9208 | fi; | |
9209 | ||
9210 | eval "$ac_cv_use_tipdlg" | |
9211 | if test "$no_cache" != 1; then | |
9212 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9213 | fi | |
9214 | ||
9215 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9216 | echo "$as_me:$LINENO: result: yes" >&5 | |
9217 | echo "${ECHO_T}yes" >&6 | |
9218 | else | |
9219 | echo "$as_me:$LINENO: result: no" >&5 | |
9220 | echo "${ECHO_T}no" >&6 | |
9221 | fi | |
9222 | ||
9223 | ||
9224 | enablestring= | |
9225 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9226 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9227 | no_cache=0 | |
9228 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9229 | if test "${enable_progressdlg+set}" = set; then | |
9230 | enableval="$enable_progressdlg" | |
9231 | ||
9232 | if test "$enableval" = yes; then | |
9233 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9234 | else | |
9235 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9236 | fi | |
9237 | ||
9238 | else | |
9239 | ||
9240 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9241 | if test "x$LINE" != x ; then | |
9242 | eval "DEFAULT_$LINE" | |
9243 | else | |
9244 | no_cache=1 | |
9245 | fi | |
9246 | ||
9247 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9248 | ||
9249 | fi; | |
9250 | ||
9251 | eval "$ac_cv_use_progressdlg" | |
9252 | if test "$no_cache" != 1; then | |
9253 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9254 | fi | |
9255 | ||
9256 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9257 | echo "$as_me:$LINENO: result: yes" >&5 | |
9258 | echo "${ECHO_T}yes" >&6 | |
9259 | else | |
9260 | echo "$as_me:$LINENO: result: no" >&5 | |
9261 | echo "${ECHO_T}no" >&6 | |
9262 | fi | |
9263 | ||
9264 | ||
9265 | enablestring= | |
9266 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9267 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9268 | no_cache=0 | |
9269 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9270 | if test "${enable_wizarddlg+set}" = set; then | |
9271 | enableval="$enable_wizarddlg" | |
9272 | ||
9273 | if test "$enableval" = yes; then | |
9274 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9275 | else | |
9276 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9277 | fi | |
9278 | ||
9279 | else | |
9280 | ||
9281 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9282 | if test "x$LINE" != x ; then | |
9283 | eval "DEFAULT_$LINE" | |
9284 | else | |
9285 | no_cache=1 | |
9286 | fi | |
9287 | ||
9288 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9289 | ||
9290 | fi; | |
9291 | ||
9292 | eval "$ac_cv_use_wizarddlg" | |
9293 | if test "$no_cache" != 1; then | |
9294 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9295 | fi | |
9296 | ||
9297 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9298 | echo "$as_me:$LINENO: result: yes" >&5 | |
9299 | echo "${ECHO_T}yes" >&6 | |
9300 | else | |
9301 | echo "$as_me:$LINENO: result: no" >&5 | |
9302 | echo "${ECHO_T}no" >&6 | |
9303 | fi | |
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | enablestring= | |
9309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9310 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9311 | no_cache=0 | |
9312 | # Check whether --enable-menus or --disable-menus was given. | |
9313 | if test "${enable_menus+set}" = set; then | |
9314 | enableval="$enable_menus" | |
9315 | ||
9316 | if test "$enableval" = yes; then | |
9317 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9318 | else | |
9319 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9320 | fi | |
9321 | ||
9322 | else | |
9323 | ||
9324 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9325 | if test "x$LINE" != x ; then | |
9326 | eval "DEFAULT_$LINE" | |
9327 | else | |
9328 | no_cache=1 | |
9329 | fi | |
9330 | ||
9331 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9332 | ||
9333 | fi; | |
9334 | ||
9335 | eval "$ac_cv_use_menus" | |
9336 | if test "$no_cache" != 1; then | |
9337 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9338 | fi | |
9339 | ||
9340 | if test "$wxUSE_MENUS" = yes; then | |
9341 | echo "$as_me:$LINENO: result: yes" >&5 | |
9342 | echo "${ECHO_T}yes" >&6 | |
9343 | else | |
9344 | echo "$as_me:$LINENO: result: no" >&5 | |
9345 | echo "${ECHO_T}no" >&6 | |
9346 | fi | |
9347 | ||
9348 | ||
9349 | enablestring= | |
9350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9351 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9352 | no_cache=0 | |
9353 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9354 | if test "${enable_miniframe+set}" = set; then | |
9355 | enableval="$enable_miniframe" | |
9356 | ||
9357 | if test "$enableval" = yes; then | |
9358 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9359 | else | |
9360 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9361 | fi | |
9362 | ||
9363 | else | |
9364 | ||
9365 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9366 | if test "x$LINE" != x ; then | |
9367 | eval "DEFAULT_$LINE" | |
9368 | else | |
9369 | no_cache=1 | |
9370 | fi | |
9371 | ||
9372 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9373 | ||
9374 | fi; | |
9375 | ||
9376 | eval "$ac_cv_use_miniframe" | |
9377 | if test "$no_cache" != 1; then | |
9378 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9379 | fi | |
9380 | ||
9381 | if test "$wxUSE_MINIFRAME" = yes; then | |
9382 | echo "$as_me:$LINENO: result: yes" >&5 | |
9383 | echo "${ECHO_T}yes" >&6 | |
9384 | else | |
9385 | echo "$as_me:$LINENO: result: no" >&5 | |
9386 | echo "${ECHO_T}no" >&6 | |
9387 | fi | |
9388 | ||
9389 | ||
9390 | enablestring= | |
9391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9392 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9393 | no_cache=0 | |
9394 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9395 | if test "${enable_tooltips+set}" = set; then | |
9396 | enableval="$enable_tooltips" | |
9397 | ||
9398 | if test "$enableval" = yes; then | |
9399 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9400 | else | |
9401 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9402 | fi | |
9403 | ||
9404 | else | |
9405 | ||
9406 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9407 | if test "x$LINE" != x ; then | |
9408 | eval "DEFAULT_$LINE" | |
9409 | else | |
9410 | no_cache=1 | |
9411 | fi | |
9412 | ||
9413 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9414 | ||
9415 | fi; | |
9416 | ||
9417 | eval "$ac_cv_use_tooltips" | |
9418 | if test "$no_cache" != 1; then | |
9419 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9420 | fi | |
9421 | ||
9422 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9423 | echo "$as_me:$LINENO: result: yes" >&5 | |
9424 | echo "${ECHO_T}yes" >&6 | |
9425 | else | |
9426 | echo "$as_me:$LINENO: result: no" >&5 | |
9427 | echo "${ECHO_T}no" >&6 | |
9428 | fi | |
9429 | ||
9430 | ||
9431 | enablestring= | |
9432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9433 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9434 | no_cache=0 | |
9435 | # Check whether --enable-splines or --disable-splines was given. | |
9436 | if test "${enable_splines+set}" = set; then | |
9437 | enableval="$enable_splines" | |
9438 | ||
9439 | if test "$enableval" = yes; then | |
9440 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9441 | else | |
9442 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9443 | fi | |
9444 | ||
9445 | else | |
9446 | ||
9447 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9448 | if test "x$LINE" != x ; then | |
9449 | eval "DEFAULT_$LINE" | |
9450 | else | |
9451 | no_cache=1 | |
9452 | fi | |
9453 | ||
9454 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9455 | ||
9456 | fi; | |
9457 | ||
9458 | eval "$ac_cv_use_splines" | |
9459 | if test "$no_cache" != 1; then | |
9460 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9461 | fi | |
9462 | ||
9463 | if test "$wxUSE_SPLINES" = yes; then | |
9464 | echo "$as_me:$LINENO: result: yes" >&5 | |
9465 | echo "${ECHO_T}yes" >&6 | |
9466 | else | |
9467 | echo "$as_me:$LINENO: result: no" >&5 | |
9468 | echo "${ECHO_T}no" >&6 | |
9469 | fi | |
9470 | ||
9471 | ||
9472 | enablestring= | |
9473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9474 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9475 | no_cache=0 | |
9476 | # Check whether --enable-validators or --disable-validators was given. | |
9477 | if test "${enable_validators+set}" = set; then | |
9478 | enableval="$enable_validators" | |
9479 | ||
9480 | if test "$enableval" = yes; then | |
9481 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9482 | else | |
9483 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9484 | fi | |
9485 | ||
9486 | else | |
9487 | ||
9488 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9489 | if test "x$LINE" != x ; then | |
9490 | eval "DEFAULT_$LINE" | |
9491 | else | |
9492 | no_cache=1 | |
9493 | fi | |
9494 | ||
9495 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9496 | ||
9497 | fi; | |
9498 | ||
9499 | eval "$ac_cv_use_validators" | |
9500 | if test "$no_cache" != 1; then | |
9501 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9502 | fi | |
9503 | ||
9504 | if test "$wxUSE_VALIDATORS" = yes; then | |
9505 | echo "$as_me:$LINENO: result: yes" >&5 | |
9506 | echo "${ECHO_T}yes" >&6 | |
9507 | else | |
9508 | echo "$as_me:$LINENO: result: no" >&5 | |
9509 | echo "${ECHO_T}no" >&6 | |
9510 | fi | |
9511 | ||
9512 | ||
9513 | enablestring= | |
9514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9515 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9516 | no_cache=0 | |
9517 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9518 | if test "${enable_busyinfo+set}" = set; then | |
9519 | enableval="$enable_busyinfo" | |
9520 | ||
9521 | if test "$enableval" = yes; then | |
9522 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9523 | else | |
9524 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9525 | fi | |
9526 | ||
9527 | else | |
9528 | ||
9529 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9530 | if test "x$LINE" != x ; then | |
9531 | eval "DEFAULT_$LINE" | |
9532 | else | |
9533 | no_cache=1 | |
9534 | fi | |
9535 | ||
9536 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9537 | ||
9538 | fi; | |
9539 | ||
9540 | eval "$ac_cv_use_busyinfo" | |
9541 | if test "$no_cache" != 1; then | |
9542 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9543 | fi | |
9544 | ||
9545 | if test "$wxUSE_BUSYINFO" = yes; then | |
9546 | echo "$as_me:$LINENO: result: yes" >&5 | |
9547 | echo "${ECHO_T}yes" >&6 | |
9548 | else | |
9549 | echo "$as_me:$LINENO: result: no" >&5 | |
9550 | echo "${ECHO_T}no" >&6 | |
9551 | fi | |
9552 | ||
9553 | ||
9554 | enablestring= | |
9555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9556 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9557 | no_cache=0 | |
9558 | # Check whether --enable-joystick or --disable-joystick was given. | |
9559 | if test "${enable_joystick+set}" = set; then | |
9560 | enableval="$enable_joystick" | |
9561 | ||
9562 | if test "$enableval" = yes; then | |
9563 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9564 | else | |
9565 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9566 | fi | |
9567 | ||
9568 | else | |
9569 | ||
9570 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9571 | if test "x$LINE" != x ; then | |
9572 | eval "DEFAULT_$LINE" | |
9573 | else | |
9574 | no_cache=1 | |
9575 | fi | |
9576 | ||
9577 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9578 | ||
9579 | fi; | |
9580 | ||
9581 | eval "$ac_cv_use_joystick" | |
9582 | if test "$no_cache" != 1; then | |
9583 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9584 | fi | |
9585 | ||
9586 | if test "$wxUSE_JOYSTICK" = yes; then | |
9587 | echo "$as_me:$LINENO: result: yes" >&5 | |
9588 | echo "${ECHO_T}yes" >&6 | |
9589 | else | |
9590 | echo "$as_me:$LINENO: result: no" >&5 | |
9591 | echo "${ECHO_T}no" >&6 | |
9592 | fi | |
9593 | ||
9594 | ||
9595 | enablestring= | |
9596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9597 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9598 | no_cache=0 | |
9599 | # Check whether --enable-metafile or --disable-metafile was given. | |
9600 | if test "${enable_metafile+set}" = set; then | |
9601 | enableval="$enable_metafile" | |
9602 | ||
9603 | if test "$enableval" = yes; then | |
9604 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9605 | else | |
9606 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9607 | fi | |
9608 | ||
9609 | else | |
9610 | ||
9611 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9612 | if test "x$LINE" != x ; then | |
9613 | eval "DEFAULT_$LINE" | |
9614 | else | |
9615 | no_cache=1 | |
9616 | fi | |
9617 | ||
9618 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9619 | ||
9620 | fi; | |
9621 | ||
9622 | eval "$ac_cv_use_metafile" | |
9623 | if test "$no_cache" != 1; then | |
9624 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9625 | fi | |
9626 | ||
9627 | if test "$wxUSE_METAFILE" = yes; then | |
9628 | echo "$as_me:$LINENO: result: yes" >&5 | |
9629 | echo "${ECHO_T}yes" >&6 | |
9630 | else | |
9631 | echo "$as_me:$LINENO: result: no" >&5 | |
9632 | echo "${ECHO_T}no" >&6 | |
9633 | fi | |
9634 | ||
9635 | ||
9636 | enablestring= | |
9637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9638 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9639 | no_cache=0 | |
9640 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9641 | if test "${enable_dragimage+set}" = set; then | |
9642 | enableval="$enable_dragimage" | |
9643 | ||
9644 | if test "$enableval" = yes; then | |
9645 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9646 | else | |
9647 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9648 | fi | |
9649 | ||
9650 | else | |
9651 | ||
9652 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9653 | if test "x$LINE" != x ; then | |
9654 | eval "DEFAULT_$LINE" | |
9655 | else | |
9656 | no_cache=1 | |
9657 | fi | |
9658 | ||
9659 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9660 | ||
9661 | fi; | |
9662 | ||
9663 | eval "$ac_cv_use_dragimage" | |
9664 | if test "$no_cache" != 1; then | |
9665 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9666 | fi | |
9667 | ||
9668 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9669 | echo "$as_me:$LINENO: result: yes" >&5 | |
9670 | echo "${ECHO_T}yes" >&6 | |
9671 | else | |
9672 | echo "$as_me:$LINENO: result: no" >&5 | |
9673 | echo "${ECHO_T}no" >&6 | |
9674 | fi | |
9675 | ||
9676 | ||
9677 | enablestring= | |
9678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9679 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9680 | no_cache=0 | |
9681 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9682 | if test "${enable_accessibility+set}" = set; then | |
9683 | enableval="$enable_accessibility" | |
9684 | ||
9685 | if test "$enableval" = yes; then | |
9686 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9687 | else | |
9688 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9689 | fi | |
9690 | ||
9691 | else | |
9692 | ||
9693 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9694 | if test "x$LINE" != x ; then | |
9695 | eval "DEFAULT_$LINE" | |
9696 | else | |
9697 | no_cache=1 | |
9698 | fi | |
9699 | ||
9700 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9701 | ||
9702 | fi; | |
9703 | ||
9704 | eval "$ac_cv_use_accessibility" | |
9705 | if test "$no_cache" != 1; then | |
9706 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9707 | fi | |
9708 | ||
9709 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9710 | echo "$as_me:$LINENO: result: yes" >&5 | |
9711 | echo "${ECHO_T}yes" >&6 | |
9712 | else | |
9713 | echo "$as_me:$LINENO: result: no" >&5 | |
9714 | echo "${ECHO_T}no" >&6 | |
9715 | fi | |
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | enablestring= | |
9721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9722 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9723 | no_cache=0 | |
9724 | # Check whether --enable-palette or --disable-palette was given. | |
9725 | if test "${enable_palette+set}" = set; then | |
9726 | enableval="$enable_palette" | |
9727 | ||
9728 | if test "$enableval" = yes; then | |
9729 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9730 | else | |
9731 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9732 | fi | |
9733 | ||
9734 | else | |
9735 | ||
9736 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9737 | if test "x$LINE" != x ; then | |
9738 | eval "DEFAULT_$LINE" | |
9739 | else | |
9740 | no_cache=1 | |
9741 | fi | |
9742 | ||
9743 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9744 | ||
9745 | fi; | |
9746 | ||
9747 | eval "$ac_cv_use_palette" | |
9748 | if test "$no_cache" != 1; then | |
9749 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9750 | fi | |
9751 | ||
9752 | if test "$wxUSE_PALETTE" = yes; then | |
9753 | echo "$as_me:$LINENO: result: yes" >&5 | |
9754 | echo "${ECHO_T}yes" >&6 | |
9755 | else | |
9756 | echo "$as_me:$LINENO: result: no" >&5 | |
9757 | echo "${ECHO_T}no" >&6 | |
9758 | fi | |
9759 | ||
9760 | ||
9761 | enablestring= | |
9762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9763 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9764 | no_cache=0 | |
9765 | # Check whether --enable-image or --disable-image was given. | |
9766 | if test "${enable_image+set}" = set; then | |
9767 | enableval="$enable_image" | |
9768 | ||
9769 | if test "$enableval" = yes; then | |
9770 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9771 | else | |
9772 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9773 | fi | |
9774 | ||
9775 | else | |
9776 | ||
9777 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9778 | if test "x$LINE" != x ; then | |
9779 | eval "DEFAULT_$LINE" | |
9780 | else | |
9781 | no_cache=1 | |
9782 | fi | |
9783 | ||
9784 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9785 | ||
9786 | fi; | |
9787 | ||
9788 | eval "$ac_cv_use_image" | |
9789 | if test "$no_cache" != 1; then | |
9790 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9791 | fi | |
9792 | ||
9793 | if test "$wxUSE_IMAGE" = yes; then | |
9794 | echo "$as_me:$LINENO: result: yes" >&5 | |
9795 | echo "${ECHO_T}yes" >&6 | |
9796 | else | |
9797 | echo "$as_me:$LINENO: result: no" >&5 | |
9798 | echo "${ECHO_T}no" >&6 | |
9799 | fi | |
9800 | ||
9801 | ||
9802 | enablestring= | |
9803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9804 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9805 | no_cache=0 | |
9806 | # Check whether --enable-gif or --disable-gif was given. | |
9807 | if test "${enable_gif+set}" = set; then | |
9808 | enableval="$enable_gif" | |
9809 | ||
9810 | if test "$enableval" = yes; then | |
9811 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9812 | else | |
9813 | ac_cv_use_gif='wxUSE_GIF=no' | |
9814 | fi | |
9815 | ||
9816 | else | |
9817 | ||
9818 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9819 | if test "x$LINE" != x ; then | |
9820 | eval "DEFAULT_$LINE" | |
9821 | else | |
9822 | no_cache=1 | |
9823 | fi | |
9824 | ||
9825 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9826 | ||
9827 | fi; | |
9828 | ||
9829 | eval "$ac_cv_use_gif" | |
9830 | if test "$no_cache" != 1; then | |
9831 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9832 | fi | |
9833 | ||
9834 | if test "$wxUSE_GIF" = yes; then | |
9835 | echo "$as_me:$LINENO: result: yes" >&5 | |
9836 | echo "${ECHO_T}yes" >&6 | |
9837 | else | |
9838 | echo "$as_me:$LINENO: result: no" >&5 | |
9839 | echo "${ECHO_T}no" >&6 | |
9840 | fi | |
9841 | ||
9842 | ||
9843 | enablestring= | |
9844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9845 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9846 | no_cache=0 | |
9847 | # Check whether --enable-pcx or --disable-pcx was given. | |
9848 | if test "${enable_pcx+set}" = set; then | |
9849 | enableval="$enable_pcx" | |
9850 | ||
9851 | if test "$enableval" = yes; then | |
9852 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9853 | else | |
9854 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9855 | fi | |
9856 | ||
9857 | else | |
9858 | ||
9859 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9860 | if test "x$LINE" != x ; then | |
9861 | eval "DEFAULT_$LINE" | |
9862 | else | |
9863 | no_cache=1 | |
9864 | fi | |
9865 | ||
9866 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9867 | ||
9868 | fi; | |
9869 | ||
9870 | eval "$ac_cv_use_pcx" | |
9871 | if test "$no_cache" != 1; then | |
9872 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9873 | fi | |
9874 | ||
9875 | if test "$wxUSE_PCX" = yes; then | |
9876 | echo "$as_me:$LINENO: result: yes" >&5 | |
9877 | echo "${ECHO_T}yes" >&6 | |
9878 | else | |
9879 | echo "$as_me:$LINENO: result: no" >&5 | |
9880 | echo "${ECHO_T}no" >&6 | |
9881 | fi | |
9882 | ||
9883 | ||
9884 | enablestring= | |
9885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9886 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9887 | no_cache=0 | |
9888 | # Check whether --enable-iff or --disable-iff was given. | |
9889 | if test "${enable_iff+set}" = set; then | |
9890 | enableval="$enable_iff" | |
9891 | ||
9892 | if test "$enableval" = yes; then | |
9893 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9894 | else | |
9895 | ac_cv_use_iff='wxUSE_IFF=no' | |
9896 | fi | |
9897 | ||
9898 | else | |
9899 | ||
9900 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9901 | if test "x$LINE" != x ; then | |
9902 | eval "DEFAULT_$LINE" | |
9903 | else | |
9904 | no_cache=1 | |
9905 | fi | |
9906 | ||
9907 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9908 | ||
9909 | fi; | |
9910 | ||
9911 | eval "$ac_cv_use_iff" | |
9912 | if test "$no_cache" != 1; then | |
9913 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9914 | fi | |
9915 | ||
9916 | if test "$wxUSE_IFF" = yes; then | |
9917 | echo "$as_me:$LINENO: result: yes" >&5 | |
9918 | echo "${ECHO_T}yes" >&6 | |
9919 | else | |
9920 | echo "$as_me:$LINENO: result: no" >&5 | |
9921 | echo "${ECHO_T}no" >&6 | |
9922 | fi | |
9923 | ||
9924 | ||
9925 | enablestring= | |
9926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9927 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9928 | no_cache=0 | |
9929 | # Check whether --enable-pnm or --disable-pnm was given. | |
9930 | if test "${enable_pnm+set}" = set; then | |
9931 | enableval="$enable_pnm" | |
9932 | ||
9933 | if test "$enableval" = yes; then | |
9934 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9935 | else | |
9936 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9937 | fi | |
9938 | ||
9939 | else | |
9940 | ||
9941 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9942 | if test "x$LINE" != x ; then | |
9943 | eval "DEFAULT_$LINE" | |
9944 | else | |
9945 | no_cache=1 | |
9946 | fi | |
9947 | ||
9948 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9949 | ||
9950 | fi; | |
9951 | ||
9952 | eval "$ac_cv_use_pnm" | |
9953 | if test "$no_cache" != 1; then | |
9954 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9955 | fi | |
9956 | ||
9957 | if test "$wxUSE_PNM" = yes; then | |
9958 | echo "$as_me:$LINENO: result: yes" >&5 | |
9959 | echo "${ECHO_T}yes" >&6 | |
9960 | else | |
9961 | echo "$as_me:$LINENO: result: no" >&5 | |
9962 | echo "${ECHO_T}no" >&6 | |
9963 | fi | |
9964 | ||
9965 | ||
9966 | enablestring= | |
9967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9968 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9969 | no_cache=0 | |
9970 | # Check whether --enable-xpm or --disable-xpm was given. | |
9971 | if test "${enable_xpm+set}" = set; then | |
9972 | enableval="$enable_xpm" | |
9973 | ||
9974 | if test "$enableval" = yes; then | |
9975 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9976 | else | |
9977 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9978 | fi | |
9979 | ||
9980 | else | |
9981 | ||
9982 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9983 | if test "x$LINE" != x ; then | |
9984 | eval "DEFAULT_$LINE" | |
9985 | else | |
9986 | no_cache=1 | |
9987 | fi | |
9988 | ||
9989 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9990 | ||
9991 | fi; | |
9992 | ||
9993 | eval "$ac_cv_use_xpm" | |
9994 | if test "$no_cache" != 1; then | |
9995 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9996 | fi | |
9997 | ||
9998 | if test "$wxUSE_XPM" = yes; then | |
9999 | echo "$as_me:$LINENO: result: yes" >&5 | |
10000 | echo "${ECHO_T}yes" >&6 | |
10001 | else | |
10002 | echo "$as_me:$LINENO: result: no" >&5 | |
10003 | echo "${ECHO_T}no" >&6 | |
10004 | fi | |
10005 | ||
10006 | ||
10007 | enablestring= | |
10008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10009 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10010 | no_cache=0 | |
10011 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10012 | if test "${enable_ico_cur+set}" = set; then | |
10013 | enableval="$enable_ico_cur" | |
10014 | ||
10015 | if test "$enableval" = yes; then | |
10016 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10017 | else | |
10018 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10019 | fi | |
10020 | ||
10021 | else | |
10022 | ||
10023 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10024 | if test "x$LINE" != x ; then | |
10025 | eval "DEFAULT_$LINE" | |
10026 | else | |
10027 | no_cache=1 | |
10028 | fi | |
10029 | ||
10030 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10031 | ||
10032 | fi; | |
10033 | ||
10034 | eval "$ac_cv_use_ico_cur" | |
10035 | if test "$no_cache" != 1; then | |
10036 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10037 | fi | |
10038 | ||
10039 | if test "$wxUSE_ICO_CUR" = yes; then | |
10040 | echo "$as_me:$LINENO: result: yes" >&5 | |
10041 | echo "${ECHO_T}yes" >&6 | |
10042 | else | |
10043 | echo "$as_me:$LINENO: result: no" >&5 | |
10044 | echo "${ECHO_T}no" >&6 | |
10045 | fi | |
10046 | ||
10047 | ||
10048 | fi | |
10049 | ||
10050 | ||
10051 | ||
ceec2216 RL |
10052 | # Check whether --with-flavour or --without-flavour was given. |
10053 | if test "${with_flavour+set}" = set; then | |
10054 | withval="$with_flavour" | |
10055 | WX_FLAVOUR="$withval" | |
10056 | fi; | |
10057 | ||
10058 | ||
10059 | ||
a848cd7e SC |
10060 | enablestring= |
10061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10062 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10063 | no_cache=0 | |
10064 | # Check whether --enable-official_build or --disable-official_build was given. | |
10065 | if test "${enable_official_build+set}" = set; then | |
10066 | enableval="$enable_official_build" | |
10067 | ||
10068 | if test "$enableval" = yes; then | |
10069 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10070 | else | |
10071 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10072 | fi | |
10073 | ||
10074 | else | |
10075 | ||
10076 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10077 | if test "x$LINE" != x ; then | |
10078 | eval "DEFAULT_$LINE" | |
10079 | else | |
10080 | no_cache=1 | |
10081 | fi | |
10082 | ||
10083 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10084 | ||
10085 | fi; | |
10086 | ||
10087 | eval "$ac_cv_use_official_build" | |
10088 | if test "$no_cache" != 1; then | |
10089 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10090 | fi | |
10091 | ||
10092 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10093 | echo "$as_me:$LINENO: result: yes" >&5 | |
10094 | echo "${ECHO_T}yes" >&6 | |
10095 | else | |
10096 | echo "$as_me:$LINENO: result: no" >&5 | |
10097 | echo "${ECHO_T}no" >&6 | |
10098 | fi | |
10099 | ||
10100 | # Check whether --enable-vendor or --disable-vendor was given. | |
10101 | if test "${enable_vendor+set}" = set; then | |
10102 | enableval="$enable_vendor" | |
10103 | VENDOR="$enableval" | |
10104 | fi; | |
10105 | if test "x$VENDOR" = "x"; then | |
10106 | VENDOR="custom" | |
10107 | fi | |
10108 | ||
a848cd7e SC |
10109 | |
10110 | ||
10111 | ||
10112 | echo "saving argument cache $wx_arg_cache_file" | |
10113 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10114 | ||
10115 | ||
10116 | ||
10117 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10118 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10119 | ||
10120 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10121 | if test "$wxUSE_WINE" = "yes"; then | |
10122 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10123 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10124 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10125 | wxUSE_SHARED=no | |
10126 | fi | |
10127 | ||
10128 | if test "$wxUSE_GUI" = "yes"; then | |
10129 | ||
10130 | if test "$USE_BEOS" = 1; then | |
10131 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10132 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10133 | { (exit 1); exit 1; }; } | |
10134 | fi | |
10135 | ||
10136 | if test "$TOOLKIT_GIVEN" = 1; then | |
10137 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10138 | var=wxUSE_$toolkit | |
10139 | eval "value=\$${var}" | |
10140 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
10141 | done | |
10142 | else | |
10143 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10144 | if test "$has_toolkit_in_cache" != 1; then | |
10145 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10146 | else | |
10147 | var=DEFAULT_wxUSE_$toolkit | |
10148 | fi | |
10149 | eval "wxUSE_$toolkit=\$${var}" | |
10150 | done | |
10151 | fi | |
10152 | ||
10153 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10154 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10155 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10156 | ||
10157 | case "${host}" in | |
10158 | *-pc-os2_emx | *-pc-os2-emx ) | |
10159 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10160 | esac | |
10161 | ||
10162 | case "$NUM_TOOLKITS" in | |
10163 | 1) | |
10164 | ;; | |
10165 | 0) | |
10166 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10167 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10168 | { (exit 1); exit 1; }; } | |
10169 | ;; | |
10170 | *) | |
10171 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10172 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10173 | { (exit 1); exit 1; }; } | |
10174 | esac | |
10175 | ||
10176 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10177 | var=wxUSE_$toolkit | |
10178 | eval "value=\$${var}" | |
10179 | if test "x$value" != x; then | |
10180 | cache_var=CACHE_$toolkit | |
10181 | eval "cache=\$${cache_var}" | |
10182 | if test "$cache" = 1; then | |
10183 | echo "$var=$value" >> ${wx_arg_cache_file} | |
10184 | fi | |
10185 | if test "$value" = 1; then | |
10186 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10187 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10188 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10189 | fi | |
10190 | fi | |
10191 | done | |
10192 | else | |
10193 | if test "x$host_alias" != "x"; then | |
10194 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10195 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10196 | else | |
10197 | echo "$as_me:$LINENO: result: base only" >&5 | |
10198 | echo "${ECHO_T}base only" >&6 | |
10199 | fi | |
10200 | fi | |
10201 | ||
10202 | wants_win32=0 | |
10203 | doesnt_want_win32=0 | |
10204 | case "${host}" in | |
10205 | *-*-cygwin*) | |
10206 | if test "$wxUSE_MSW" = 1 ; then | |
10207 | wants_win32=1 | |
10208 | else | |
10209 | doesnt_want_win32=1 | |
10210 | fi | |
10211 | ;; | |
10212 | *-*-mingw*) | |
10213 | wants_win32=1 | |
10214 | ;; | |
10215 | esac | |
10216 | ||
10217 | if test "$wxUSE_WINE" = "yes"; then | |
10218 | wants_win32=1 | |
10219 | CC=winegcc | |
10220 | CXX=wineg++ | |
10221 | RESCOMP=wrc | |
10222 | LDFLAGS_GUI="-mwindows" | |
10223 | fi | |
10224 | ||
10225 | if test "$wants_win32" = 1 ; then | |
10226 | USE_UNIX=0 | |
10227 | USE_WIN32=1 | |
10228 | cat >>confdefs.h <<\_ACEOF | |
10229 | #define __WIN32__ 1 | |
10230 | _ACEOF | |
10231 | ||
10232 | cat >>confdefs.h <<\_ACEOF | |
10233 | #define __WIN95__ 1 | |
10234 | _ACEOF | |
10235 | ||
10236 | cat >>confdefs.h <<\_ACEOF | |
10237 | #define __WINDOWS__ 1 | |
10238 | _ACEOF | |
10239 | ||
10240 | cat >>confdefs.h <<\_ACEOF | |
10241 | #define __GNUWIN32__ 1 | |
10242 | _ACEOF | |
10243 | ||
10244 | cat >>confdefs.h <<\_ACEOF | |
10245 | #define STRICT 1 | |
10246 | _ACEOF | |
10247 | ||
10248 | cat >>confdefs.h <<\_ACEOF | |
10249 | #define WINVER 0x0400 | |
10250 | _ACEOF | |
10251 | ||
10252 | fi | |
10253 | if test "$doesnt_want_win32" = 1 ; then | |
10254 | USE_UNIX=1 | |
10255 | USE_WIN32=0 | |
10256 | fi | |
10257 | ||
10258 | if test "$USE_UNIX" = 1 ; then | |
10259 | wxUSE_UNIX=yes | |
10260 | cat >>confdefs.h <<\_ACEOF | |
10261 | #define __UNIX__ 1 | |
10262 | _ACEOF | |
10263 | ||
10264 | fi | |
10265 | ||
10266 | ||
10267 | cat >confcache <<\_ACEOF | |
10268 | # This file is a shell script that caches the results of configure | |
10269 | # tests run on this system so they can be shared between configure | |
10270 | # scripts and configure runs, see configure's option --config-cache. | |
10271 | # It is not useful on other systems. If it contains results you don't | |
10272 | # want to keep, you may remove or edit it. | |
10273 | # | |
10274 | # config.status only pays attention to the cache file if you give it | |
10275 | # the --recheck option to rerun configure. | |
10276 | # | |
10277 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10278 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10279 | # following values. | |
10280 | ||
10281 | _ACEOF | |
10282 | ||
10283 | # The following way of writing the cache mishandles newlines in values, | |
10284 | # but we know of no workaround that is simple, portable, and efficient. | |
10285 | # So, don't put newlines in cache variables' values. | |
10286 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10287 | # and sets the high bit in the cache file unless we assign to the vars. | |
10288 | { | |
10289 | (set) 2>&1 | | |
10290 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10291 | *ac_space=\ *) | |
10292 | # `set' does not quote correctly, so add quotes (double-quote | |
10293 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10294 | sed -n \ | |
ac1cb8d3 VS |
10295 | "s/'/'\\\\''/g; |
10296 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10297 | ;; |
10298 | *) | |
10299 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10300 | sed -n \ | |
ac1cb8d3 | 10301 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10302 | ;; |
10303 | esac; | |
10304 | } | | |
10305 | sed ' | |
10306 | t clear | |
10307 | : clear | |
10308 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10309 | t end | |
10310 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10311 | : end' >>confcache | |
10312 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10313 | if test -w $cache_file; then | |
10314 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10315 | cat confcache >$cache_file | |
10316 | else | |
10317 | echo "not updating unwritable cache $cache_file" | |
10318 | fi | |
10319 | fi | |
10320 | rm -f confcache | |
10321 | ||
10322 | if test "$build" != "$host" ; then | |
10323 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10324 | CC=$host_alias-gcc | |
10325 | CXX=$host_alias-c++ | |
10326 | AR=$host_alias-ar | |
10327 | RANLIB=$host_alias-ranlib | |
10328 | DLLTOOL=$host_alias-dlltool | |
10329 | RESCOMP=$host_alias-windres | |
a848cd7e SC |
10330 | STRIP=$host_alias-strip |
10331 | else | |
10332 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10333 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10334 | { (exit 1); exit 1; }; } | |
10335 | fi | |
10336 | fi | |
10337 | ||
10338 | CFLAGS=${CFLAGS:=} | |
10339 | ac_ext=c | |
10340 | ac_cpp='$CPP $CPPFLAGS' | |
10341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10344 | if test -n "$ac_tool_prefix"; then | |
10345 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10346 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10349 | if test "${ac_cv_prog_CC+set}" = set; then | |
10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10351 | else | |
10352 | if test -n "$CC"; then | |
10353 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10354 | else | |
10355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10356 | for as_dir in $PATH | |
10357 | do | |
10358 | IFS=$as_save_IFS | |
10359 | test -z "$as_dir" && as_dir=. | |
10360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10362 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10364 | break 2 | |
10365 | fi | |
10366 | done | |
10367 | done | |
10368 | ||
10369 | fi | |
10370 | fi | |
10371 | CC=$ac_cv_prog_CC | |
10372 | if test -n "$CC"; then | |
10373 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10374 | echo "${ECHO_T}$CC" >&6 | |
10375 | else | |
10376 | echo "$as_me:$LINENO: result: no" >&5 | |
10377 | echo "${ECHO_T}no" >&6 | |
10378 | fi | |
10379 | ||
10380 | fi | |
10381 | if test -z "$ac_cv_prog_CC"; then | |
10382 | ac_ct_CC=$CC | |
10383 | # Extract the first word of "gcc", so it can be a program name with args. | |
10384 | set dummy gcc; ac_word=$2 | |
10385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10387 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10389 | else | |
10390 | if test -n "$ac_ct_CC"; then | |
10391 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10392 | else | |
10393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10394 | for as_dir in $PATH | |
10395 | do | |
10396 | IFS=$as_save_IFS | |
10397 | test -z "$as_dir" && as_dir=. | |
10398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10400 | ac_cv_prog_ac_ct_CC="gcc" | |
10401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10402 | break 2 | |
10403 | fi | |
10404 | done | |
10405 | done | |
10406 | ||
10407 | fi | |
10408 | fi | |
10409 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10410 | if test -n "$ac_ct_CC"; then | |
10411 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10412 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10413 | else | |
10414 | echo "$as_me:$LINENO: result: no" >&5 | |
10415 | echo "${ECHO_T}no" >&6 | |
10416 | fi | |
10417 | ||
10418 | CC=$ac_ct_CC | |
10419 | else | |
10420 | CC="$ac_cv_prog_CC" | |
10421 | fi | |
10422 | ||
10423 | if test -z "$CC"; then | |
10424 | if test -n "$ac_tool_prefix"; then | |
10425 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10426 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10429 | if test "${ac_cv_prog_CC+set}" = set; then | |
10430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10431 | else | |
10432 | if test -n "$CC"; then | |
10433 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10434 | else | |
10435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10436 | for as_dir in $PATH | |
10437 | do | |
10438 | IFS=$as_save_IFS | |
10439 | test -z "$as_dir" && as_dir=. | |
10440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10442 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10444 | break 2 | |
10445 | fi | |
10446 | done | |
10447 | done | |
10448 | ||
10449 | fi | |
10450 | fi | |
10451 | CC=$ac_cv_prog_CC | |
10452 | if test -n "$CC"; then | |
10453 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10454 | echo "${ECHO_T}$CC" >&6 | |
10455 | else | |
10456 | echo "$as_me:$LINENO: result: no" >&5 | |
10457 | echo "${ECHO_T}no" >&6 | |
10458 | fi | |
10459 | ||
10460 | fi | |
10461 | if test -z "$ac_cv_prog_CC"; then | |
10462 | ac_ct_CC=$CC | |
10463 | # Extract the first word of "cc", so it can be a program name with args. | |
10464 | set dummy cc; ac_word=$2 | |
10465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10467 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10469 | else | |
10470 | if test -n "$ac_ct_CC"; then | |
10471 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10472 | else | |
10473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10474 | for as_dir in $PATH | |
10475 | do | |
10476 | IFS=$as_save_IFS | |
10477 | test -z "$as_dir" && as_dir=. | |
10478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10480 | ac_cv_prog_ac_ct_CC="cc" | |
10481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10482 | break 2 | |
10483 | fi | |
10484 | done | |
10485 | done | |
10486 | ||
10487 | fi | |
10488 | fi | |
10489 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10490 | if test -n "$ac_ct_CC"; then | |
10491 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10492 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10493 | else | |
10494 | echo "$as_me:$LINENO: result: no" >&5 | |
10495 | echo "${ECHO_T}no" >&6 | |
10496 | fi | |
10497 | ||
10498 | CC=$ac_ct_CC | |
10499 | else | |
10500 | CC="$ac_cv_prog_CC" | |
10501 | fi | |
10502 | ||
10503 | fi | |
10504 | if test -z "$CC"; then | |
10505 | # Extract the first word of "cc", so it can be a program name with args. | |
10506 | set dummy cc; ac_word=$2 | |
10507 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10509 | if test "${ac_cv_prog_CC+set}" = set; then | |
10510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10511 | else | |
10512 | if test -n "$CC"; then | |
10513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10514 | else | |
10515 | ac_prog_rejected=no | |
10516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10517 | for as_dir in $PATH | |
10518 | do | |
10519 | IFS=$as_save_IFS | |
10520 | test -z "$as_dir" && as_dir=. | |
10521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10523 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10524 | ac_prog_rejected=yes | |
10525 | continue | |
10526 | fi | |
10527 | ac_cv_prog_CC="cc" | |
10528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10529 | break 2 | |
10530 | fi | |
10531 | done | |
10532 | done | |
10533 | ||
10534 | if test $ac_prog_rejected = yes; then | |
10535 | # We found a bogon in the path, so make sure we never use it. | |
10536 | set dummy $ac_cv_prog_CC | |
10537 | shift | |
10538 | if test $# != 0; then | |
10539 | # We chose a different compiler from the bogus one. | |
10540 | # However, it has the same basename, so the bogon will be chosen | |
10541 | # first if we set CC to just the basename; use the full file name. | |
10542 | shift | |
10543 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10544 | fi | |
10545 | fi | |
10546 | fi | |
10547 | fi | |
10548 | CC=$ac_cv_prog_CC | |
10549 | if test -n "$CC"; then | |
10550 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10551 | echo "${ECHO_T}$CC" >&6 | |
10552 | else | |
10553 | echo "$as_me:$LINENO: result: no" >&5 | |
10554 | echo "${ECHO_T}no" >&6 | |
10555 | fi | |
10556 | ||
10557 | fi | |
10558 | if test -z "$CC"; then | |
10559 | if test -n "$ac_tool_prefix"; then | |
10560 | for ac_prog in cl | |
10561 | do | |
10562 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10563 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10566 | if test "${ac_cv_prog_CC+set}" = set; then | |
10567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10568 | else | |
10569 | if test -n "$CC"; then | |
10570 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10571 | else | |
10572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10573 | for as_dir in $PATH | |
10574 | do | |
10575 | IFS=$as_save_IFS | |
10576 | test -z "$as_dir" && as_dir=. | |
10577 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10578 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10579 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10580 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10581 | break 2 | |
10582 | fi | |
10583 | done | |
10584 | done | |
10585 | ||
10586 | fi | |
10587 | fi | |
10588 | CC=$ac_cv_prog_CC | |
10589 | if test -n "$CC"; then | |
10590 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10591 | echo "${ECHO_T}$CC" >&6 | |
10592 | else | |
10593 | echo "$as_me:$LINENO: result: no" >&5 | |
10594 | echo "${ECHO_T}no" >&6 | |
10595 | fi | |
10596 | ||
10597 | test -n "$CC" && break | |
10598 | done | |
10599 | fi | |
10600 | if test -z "$CC"; then | |
10601 | ac_ct_CC=$CC | |
10602 | for ac_prog in cl | |
10603 | do | |
10604 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10605 | set dummy $ac_prog; ac_word=$2 | |
10606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10608 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10610 | else | |
10611 | if test -n "$ac_ct_CC"; then | |
10612 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10613 | else | |
10614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10615 | for as_dir in $PATH | |
10616 | do | |
10617 | IFS=$as_save_IFS | |
10618 | test -z "$as_dir" && as_dir=. | |
10619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10620 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10621 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10623 | break 2 | |
10624 | fi | |
10625 | done | |
10626 | done | |
10627 | ||
10628 | fi | |
10629 | fi | |
10630 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10631 | if test -n "$ac_ct_CC"; then | |
10632 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10633 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10634 | else | |
10635 | echo "$as_me:$LINENO: result: no" >&5 | |
10636 | echo "${ECHO_T}no" >&6 | |
10637 | fi | |
10638 | ||
10639 | test -n "$ac_ct_CC" && break | |
10640 | done | |
10641 | ||
10642 | CC=$ac_ct_CC | |
10643 | fi | |
10644 | ||
10645 | fi | |
10646 | ||
10647 | ||
10648 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10649 | See \`config.log' for more details." >&5 | |
10650 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10651 | See \`config.log' for more details." >&2;} | |
10652 | { (exit 1); exit 1; }; } | |
10653 | ||
10654 | # Provide some information about the compiler. | |
10655 | echo "$as_me:$LINENO:" \ | |
10656 | "checking for C compiler version" >&5 | |
10657 | ac_compiler=`set X $ac_compile; echo $2` | |
10658 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10659 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10660 | ac_status=$? | |
10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10662 | (exit $ac_status); } | |
10663 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10664 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10665 | ac_status=$? | |
10666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10667 | (exit $ac_status); } | |
10668 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10669 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10670 | ac_status=$? | |
10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10672 | (exit $ac_status); } | |
10673 | ||
10674 | cat >conftest.$ac_ext <<_ACEOF | |
10675 | /* confdefs.h. */ | |
10676 | _ACEOF | |
10677 | cat confdefs.h >>conftest.$ac_ext | |
10678 | cat >>conftest.$ac_ext <<_ACEOF | |
10679 | /* end confdefs.h. */ | |
10680 | ||
10681 | int | |
10682 | main () | |
10683 | { | |
10684 | ||
10685 | ; | |
10686 | return 0; | |
10687 | } | |
10688 | _ACEOF | |
10689 | ac_clean_files_save=$ac_clean_files | |
10690 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10691 | # Try to create an executable without -o first, disregard a.out. | |
10692 | # It will help us diagnose broken compilers, and finding out an intuition | |
10693 | # of exeext. | |
ac1cb8d3 VS |
10694 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
10695 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
10696 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10697 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10698 | (eval $ac_link_default) 2>&5 | |
10699 | ac_status=$? | |
10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10701 | (exit $ac_status); }; then | |
10702 | # Find the output, starting from the most likely. This scheme is | |
10703 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10704 | # resort. | |
10705 | ||
10706 | # Be careful to initialize this variable, since it used to be cached. | |
10707 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10708 | ac_cv_exeext= | |
10709 | # b.out is created by i960 compilers. | |
10710 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10711 | do | |
10712 | test -f "$ac_file" || continue | |
10713 | case $ac_file in | |
10714 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 10715 | ;; |
a848cd7e | 10716 | conftest.$ac_ext ) |
ac1cb8d3 VS |
10717 | # This is the source file. |
10718 | ;; | |
a848cd7e | 10719 | [ab].out ) |
ac1cb8d3 VS |
10720 | # We found the default executable, but exeext='' is most |
10721 | # certainly right. | |
10722 | break;; | |
a848cd7e | 10723 | *.* ) |
ac1cb8d3 VS |
10724 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10725 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10726 | # but it would be cool to find out if it's true. Does anybody | |
10727 | # maintain Libtool? --akim. | |
10728 | export ac_cv_exeext | |
10729 | break;; | |
a848cd7e | 10730 | * ) |
ac1cb8d3 | 10731 | break;; |
a848cd7e SC |
10732 | esac |
10733 | done | |
10734 | else | |
10735 | echo "$as_me: failed program was:" >&5 | |
10736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10737 | ||
10738 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10739 | See \`config.log' for more details." >&5 | |
10740 | echo "$as_me: error: C compiler cannot create executables | |
10741 | See \`config.log' for more details." >&2;} | |
10742 | { (exit 77); exit 77; }; } | |
10743 | fi | |
10744 | ||
10745 | ac_exeext=$ac_cv_exeext | |
10746 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10747 | echo "${ECHO_T}$ac_file" >&6 | |
10748 | ||
10749 | # Check the compiler produces executables we can run. If not, either | |
10750 | # the compiler is broken, or we cross compile. | |
10751 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10752 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10753 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10754 | # If not cross compiling, check that we can run a simple program. | |
10755 | if test "$cross_compiling" != yes; then | |
10756 | if { ac_try='./$ac_file' | |
10757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10758 | (eval $ac_try) 2>&5 | |
10759 | ac_status=$? | |
10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10761 | (exit $ac_status); }; }; then | |
10762 | cross_compiling=no | |
10763 | else | |
10764 | if test "$cross_compiling" = maybe; then | |
10765 | cross_compiling=yes | |
10766 | else | |
10767 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10768 | If you meant to cross compile, use \`--host'. | |
10769 | See \`config.log' for more details." >&5 | |
10770 | echo "$as_me: error: cannot run C compiled programs. | |
10771 | If you meant to cross compile, use \`--host'. | |
10772 | See \`config.log' for more details." >&2;} | |
10773 | { (exit 1); exit 1; }; } | |
10774 | fi | |
10775 | fi | |
10776 | fi | |
10777 | echo "$as_me:$LINENO: result: yes" >&5 | |
10778 | echo "${ECHO_T}yes" >&6 | |
10779 | ||
10780 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10781 | ac_clean_files=$ac_clean_files_save | |
10782 | # Check the compiler produces executables we can run. If not, either | |
10783 | # the compiler is broken, or we cross compile. | |
10784 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10785 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10786 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10787 | echo "${ECHO_T}$cross_compiling" >&6 | |
10788 | ||
10789 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10790 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10792 | (eval $ac_link) 2>&5 | |
10793 | ac_status=$? | |
10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10795 | (exit $ac_status); }; then | |
10796 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10797 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10798 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10799 | # `rm'. | |
10800 | for ac_file in conftest.exe conftest conftest.*; do | |
10801 | test -f "$ac_file" || continue | |
10802 | case $ac_file in | |
10803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10804 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
10805 | export ac_cv_exeext |
10806 | break;; | |
a848cd7e SC |
10807 | * ) break;; |
10808 | esac | |
10809 | done | |
10810 | else | |
10811 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10812 | See \`config.log' for more details." >&5 | |
10813 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10814 | See \`config.log' for more details." >&2;} | |
10815 | { (exit 1); exit 1; }; } | |
10816 | fi | |
10817 | ||
10818 | rm -f conftest$ac_cv_exeext | |
10819 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10820 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10821 | ||
10822 | rm -f conftest.$ac_ext | |
10823 | EXEEXT=$ac_cv_exeext | |
10824 | ac_exeext=$EXEEXT | |
10825 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10826 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10827 | if test "${ac_cv_objext+set}" = set; then | |
10828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10829 | else | |
10830 | cat >conftest.$ac_ext <<_ACEOF | |
10831 | /* confdefs.h. */ | |
10832 | _ACEOF | |
10833 | cat confdefs.h >>conftest.$ac_ext | |
10834 | cat >>conftest.$ac_ext <<_ACEOF | |
10835 | /* end confdefs.h. */ | |
10836 | ||
10837 | int | |
10838 | main () | |
10839 | { | |
10840 | ||
10841 | ; | |
10842 | return 0; | |
10843 | } | |
10844 | _ACEOF | |
10845 | rm -f conftest.o conftest.obj | |
10846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10847 | (eval $ac_compile) 2>&5 | |
10848 | ac_status=$? | |
10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10850 | (exit $ac_status); }; then | |
10851 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10852 | case $ac_file in | |
10853 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10854 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10855 | break;; | |
10856 | esac | |
10857 | done | |
10858 | else | |
10859 | echo "$as_me: failed program was:" >&5 | |
10860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10861 | ||
10862 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10863 | See \`config.log' for more details." >&5 | |
10864 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10865 | See \`config.log' for more details." >&2;} | |
10866 | { (exit 1); exit 1; }; } | |
10867 | fi | |
10868 | ||
10869 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10870 | fi | |
10871 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10872 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10873 | OBJEXT=$ac_cv_objext | |
10874 | ac_objext=$OBJEXT | |
10875 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10876 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10877 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10879 | else | |
10880 | cat >conftest.$ac_ext <<_ACEOF | |
10881 | /* confdefs.h. */ | |
10882 | _ACEOF | |
10883 | cat confdefs.h >>conftest.$ac_ext | |
10884 | cat >>conftest.$ac_ext <<_ACEOF | |
10885 | /* end confdefs.h. */ | |
10886 | ||
10887 | int | |
10888 | main () | |
10889 | { | |
10890 | #ifndef __GNUC__ | |
10891 | choke me | |
10892 | #endif | |
10893 | ||
10894 | ; | |
10895 | return 0; | |
10896 | } | |
10897 | _ACEOF | |
10898 | rm -f conftest.$ac_objext | |
10899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10901 | ac_status=$? |
ac1cb8d3 VS |
10902 | grep -v '^ *+' conftest.er1 >conftest.err |
10903 | rm -f conftest.er1 | |
10904 | cat conftest.err >&5 | |
a848cd7e SC |
10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10906 | (exit $ac_status); } && | |
d1c38808 | 10907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10909 | (eval $ac_try) 2>&5 | |
10910 | ac_status=$? | |
10911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10912 | (exit $ac_status); }; } && | |
10913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10915 | (eval $ac_try) 2>&5 | |
10916 | ac_status=$? | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); }; }; then | |
10919 | ac_compiler_gnu=yes | |
10920 | else | |
10921 | echo "$as_me: failed program was:" >&5 | |
10922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10923 | ||
10924 | ac_compiler_gnu=no | |
10925 | fi | |
ac1cb8d3 | 10926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10927 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10928 | ||
10929 | fi | |
10930 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10931 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10932 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10933 | ac_test_CFLAGS=${CFLAGS+set} | |
10934 | ac_save_CFLAGS=$CFLAGS | |
10935 | CFLAGS="-g" | |
10936 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10937 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10938 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10940 | else | |
10941 | cat >conftest.$ac_ext <<_ACEOF | |
10942 | /* confdefs.h. */ | |
10943 | _ACEOF | |
10944 | cat confdefs.h >>conftest.$ac_ext | |
10945 | cat >>conftest.$ac_ext <<_ACEOF | |
10946 | /* end confdefs.h. */ | |
10947 | ||
10948 | int | |
10949 | main () | |
10950 | { | |
10951 | ||
10952 | ; | |
10953 | return 0; | |
10954 | } | |
10955 | _ACEOF | |
10956 | rm -f conftest.$ac_objext | |
10957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 10958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 10959 | ac_status=$? |
ac1cb8d3 VS |
10960 | grep -v '^ *+' conftest.er1 >conftest.err |
10961 | rm -f conftest.er1 | |
10962 | cat conftest.err >&5 | |
a848cd7e SC |
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10964 | (exit $ac_status); } && | |
d1c38808 | 10965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
10966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10967 | (eval $ac_try) 2>&5 | |
10968 | ac_status=$? | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); }; } && | |
10971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
10972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10973 | (eval $ac_try) 2>&5 | |
10974 | ac_status=$? | |
10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10976 | (exit $ac_status); }; }; then | |
10977 | ac_cv_prog_cc_g=yes | |
10978 | else | |
10979 | echo "$as_me: failed program was:" >&5 | |
10980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10981 | ||
10982 | ac_cv_prog_cc_g=no | |
10983 | fi | |
ac1cb8d3 | 10984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10985 | fi |
10986 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10987 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10988 | if test "$ac_test_CFLAGS" = set; then | |
10989 | CFLAGS=$ac_save_CFLAGS | |
10990 | elif test $ac_cv_prog_cc_g = yes; then | |
10991 | if test "$GCC" = yes; then | |
10992 | CFLAGS="-g -O2" | |
10993 | else | |
10994 | CFLAGS="-g" | |
10995 | fi | |
10996 | else | |
10997 | if test "$GCC" = yes; then | |
10998 | CFLAGS="-O2" | |
10999 | else | |
11000 | CFLAGS= | |
11001 | fi | |
11002 | fi | |
11003 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11004 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11005 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11007 | else | |
11008 | ac_cv_prog_cc_stdc=no | |
11009 | ac_save_CC=$CC | |
11010 | cat >conftest.$ac_ext <<_ACEOF | |
11011 | /* confdefs.h. */ | |
11012 | _ACEOF | |
11013 | cat confdefs.h >>conftest.$ac_ext | |
11014 | cat >>conftest.$ac_ext <<_ACEOF | |
11015 | /* end confdefs.h. */ | |
11016 | #include <stdarg.h> | |
11017 | #include <stdio.h> | |
11018 | #include <sys/types.h> | |
11019 | #include <sys/stat.h> | |
11020 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11021 | struct buf { int x; }; | |
11022 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11023 | static char *e (p, i) | |
11024 | char **p; | |
11025 | int i; | |
11026 | { | |
11027 | return p[i]; | |
11028 | } | |
11029 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11030 | { | |
11031 | char *s; | |
11032 | va_list v; | |
11033 | va_start (v,p); | |
11034 | s = g (p, va_arg (v,int)); | |
11035 | va_end (v); | |
11036 | return s; | |
11037 | } | |
ac1cb8d3 VS |
11038 | |
11039 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11040 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11041 | These don't provoke an error unfortunately, instead are silently treated | |
11042 | as 'x'. The following induces an error, until -std1 is added to get | |
11043 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11044 | array size at least. It's necessary to write '\x00'==0 to get something | |
11045 | that's true only with -std1. */ | |
11046 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11047 | ||
a848cd7e SC |
11048 | int test (int i, double x); |
11049 | struct s1 {int (*f) (int a);}; | |
11050 | struct s2 {int (*f) (double a);}; | |
11051 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11052 | int argc; | |
11053 | char **argv; | |
11054 | int | |
11055 | main () | |
11056 | { | |
11057 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11058 | ; | |
11059 | return 0; | |
11060 | } | |
11061 | _ACEOF | |
11062 | # Don't try gcc -ansi; that turns off useful extensions and | |
11063 | # breaks some systems' header files. | |
11064 | # AIX -qlanglvl=ansi | |
11065 | # Ultrix and OSF/1 -std1 | |
11066 | # HP-UX 10.20 and later -Ae | |
11067 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11068 | # SVR4 -Xc -D__EXTENSIONS__ | |
11069 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11070 | do | |
11071 | CC="$ac_save_CC $ac_arg" | |
11072 | rm -f conftest.$ac_objext | |
11073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11074 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11075 | ac_status=$? |
ac1cb8d3 VS |
11076 | grep -v '^ *+' conftest.er1 >conftest.err |
11077 | rm -f conftest.er1 | |
11078 | cat conftest.err >&5 | |
a848cd7e SC |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11080 | (exit $ac_status); } && | |
d1c38808 | 11081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11083 | (eval $ac_try) 2>&5 | |
11084 | ac_status=$? | |
11085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11086 | (exit $ac_status); }; } && | |
11087 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11089 | (eval $ac_try) 2>&5 | |
11090 | ac_status=$? | |
11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11092 | (exit $ac_status); }; }; then | |
11093 | ac_cv_prog_cc_stdc=$ac_arg | |
11094 | break | |
11095 | else | |
11096 | echo "$as_me: failed program was:" >&5 | |
11097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11098 | ||
11099 | fi | |
ac1cb8d3 | 11100 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11101 | done |
11102 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11103 | CC=$ac_save_CC | |
11104 | ||
11105 | fi | |
11106 | ||
11107 | case "x$ac_cv_prog_cc_stdc" in | |
11108 | x|xno) | |
11109 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11110 | echo "${ECHO_T}none needed" >&6 ;; | |
11111 | *) | |
11112 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11113 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11114 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11115 | esac | |
11116 | ||
11117 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11118 | # in C++ we need to declare it. In case someone uses the same compiler | |
11119 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11120 | # the declaration of exit, since it's the most demanding environment. | |
11121 | cat >conftest.$ac_ext <<_ACEOF | |
11122 | #ifndef __cplusplus | |
11123 | choke me | |
11124 | #endif | |
11125 | _ACEOF | |
11126 | rm -f conftest.$ac_objext | |
11127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11129 | ac_status=$? |
ac1cb8d3 VS |
11130 | grep -v '^ *+' conftest.er1 >conftest.err |
11131 | rm -f conftest.er1 | |
11132 | cat conftest.err >&5 | |
a848cd7e SC |
11133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11134 | (exit $ac_status); } && | |
d1c38808 | 11135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11137 | (eval $ac_try) 2>&5 | |
11138 | ac_status=$? | |
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11140 | (exit $ac_status); }; } && | |
11141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11143 | (eval $ac_try) 2>&5 | |
11144 | ac_status=$? | |
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11146 | (exit $ac_status); }; }; then | |
11147 | for ac_declaration in \ | |
ac1cb8d3 | 11148 | '' \ |
a848cd7e SC |
11149 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11150 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11151 | 'extern "C" void exit (int) throw ();' \ | |
11152 | 'extern "C" void exit (int);' \ | |
11153 | 'void exit (int);' | |
11154 | do | |
11155 | cat >conftest.$ac_ext <<_ACEOF | |
11156 | /* confdefs.h. */ | |
11157 | _ACEOF | |
11158 | cat confdefs.h >>conftest.$ac_ext | |
11159 | cat >>conftest.$ac_ext <<_ACEOF | |
11160 | /* end confdefs.h. */ | |
de59c161 | 11161 | $ac_declaration |
ac1cb8d3 | 11162 | #include <stdlib.h> |
a848cd7e SC |
11163 | int |
11164 | main () | |
11165 | { | |
11166 | exit (42); | |
11167 | ; | |
11168 | return 0; | |
11169 | } | |
11170 | _ACEOF | |
11171 | rm -f conftest.$ac_objext | |
11172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11174 | ac_status=$? |
ac1cb8d3 VS |
11175 | grep -v '^ *+' conftest.er1 >conftest.err |
11176 | rm -f conftest.er1 | |
11177 | cat conftest.err >&5 | |
a848cd7e SC |
11178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11179 | (exit $ac_status); } && | |
d1c38808 | 11180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11182 | (eval $ac_try) 2>&5 | |
11183 | ac_status=$? | |
11184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11185 | (exit $ac_status); }; } && | |
11186 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11188 | (eval $ac_try) 2>&5 | |
11189 | ac_status=$? | |
11190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11191 | (exit $ac_status); }; }; then | |
11192 | : | |
11193 | else | |
11194 | echo "$as_me: failed program was:" >&5 | |
11195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11196 | ||
11197 | continue | |
11198 | fi | |
ac1cb8d3 | 11199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11200 | cat >conftest.$ac_ext <<_ACEOF |
11201 | /* confdefs.h. */ | |
11202 | _ACEOF | |
11203 | cat confdefs.h >>conftest.$ac_ext | |
11204 | cat >>conftest.$ac_ext <<_ACEOF | |
11205 | /* end confdefs.h. */ | |
11206 | $ac_declaration | |
11207 | int | |
11208 | main () | |
11209 | { | |
11210 | exit (42); | |
11211 | ; | |
11212 | return 0; | |
11213 | } | |
11214 | _ACEOF | |
11215 | rm -f conftest.$ac_objext | |
11216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11218 | ac_status=$? |
ac1cb8d3 VS |
11219 | grep -v '^ *+' conftest.er1 >conftest.err |
11220 | rm -f conftest.er1 | |
11221 | cat conftest.err >&5 | |
a848cd7e SC |
11222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11223 | (exit $ac_status); } && | |
d1c38808 | 11224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11226 | (eval $ac_try) 2>&5 | |
11227 | ac_status=$? | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); }; } && | |
11230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11232 | (eval $ac_try) 2>&5 | |
11233 | ac_status=$? | |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11235 | (exit $ac_status); }; }; then | |
11236 | break | |
11237 | else | |
11238 | echo "$as_me: failed program was:" >&5 | |
11239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11240 | ||
11241 | fi | |
ac1cb8d3 | 11242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11243 | done |
11244 | rm -f conftest* | |
11245 | if test -n "$ac_declaration"; then | |
11246 | echo '#ifdef __cplusplus' >>confdefs.h | |
11247 | echo $ac_declaration >>confdefs.h | |
11248 | echo '#endif' >>confdefs.h | |
11249 | fi | |
11250 | ||
11251 | else | |
11252 | echo "$as_me: failed program was:" >&5 | |
11253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11254 | ||
11255 | fi | |
ac1cb8d3 | 11256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11257 | ac_ext=c |
11258 | ac_cpp='$CPP $CPPFLAGS' | |
11259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11262 | ||
11263 | ||
11264 | ||
11265 | ac_ext=c | |
11266 | ac_cpp='$CPP $CPPFLAGS' | |
11267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11270 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
11271 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
11272 | # On Suns, sometimes $CPP names a directory. | |
11273 | if test -n "$CPP" && test -d "$CPP"; then | |
11274 | CPP= | |
11275 | fi | |
11276 | if test -z "$CPP"; then | |
11277 | if test "${ac_cv_prog_CPP+set}" = set; then | |
11278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11279 | else | |
11280 | # Double quotes because CPP needs to be expanded | |
11281 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
11282 | do | |
11283 | ac_preproc_ok=false | |
11284 | for ac_c_preproc_warn_flag in '' yes | |
11285 | do | |
11286 | # Use a header file that comes with gcc, so configuring glibc | |
11287 | # with a fresh cross-compiler works. | |
11288 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11289 | # <limits.h> exists even on freestanding compilers. | |
11290 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11291 | # not just through cpp. "Syntax error" is here to catch this case. | |
11292 | cat >conftest.$ac_ext <<_ACEOF | |
11293 | /* confdefs.h. */ | |
11294 | _ACEOF | |
11295 | cat confdefs.h >>conftest.$ac_ext | |
11296 | cat >>conftest.$ac_ext <<_ACEOF | |
11297 | /* end confdefs.h. */ | |
11298 | #ifdef __STDC__ | |
11299 | # include <limits.h> | |
11300 | #else | |
11301 | # include <assert.h> | |
11302 | #endif | |
ac1cb8d3 | 11303 | Syntax error |
a848cd7e SC |
11304 | _ACEOF |
11305 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11306 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11307 | ac_status=$? | |
11308 | grep -v '^ *+' conftest.er1 >conftest.err | |
11309 | rm -f conftest.er1 | |
11310 | cat conftest.err >&5 | |
11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11312 | (exit $ac_status); } >/dev/null; then | |
11313 | if test -s conftest.err; then | |
11314 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11315 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11316 | else |
11317 | ac_cpp_err= | |
11318 | fi | |
11319 | else | |
11320 | ac_cpp_err=yes | |
11321 | fi | |
11322 | if test -z "$ac_cpp_err"; then | |
11323 | : | |
11324 | else | |
11325 | echo "$as_me: failed program was:" >&5 | |
11326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11327 | ||
11328 | # Broken: fails on valid input. | |
11329 | continue | |
11330 | fi | |
11331 | rm -f conftest.err conftest.$ac_ext | |
11332 | ||
11333 | # OK, works on sane cases. Now check whether non-existent headers | |
11334 | # can be detected and how. | |
11335 | cat >conftest.$ac_ext <<_ACEOF | |
11336 | /* confdefs.h. */ | |
11337 | _ACEOF | |
11338 | cat confdefs.h >>conftest.$ac_ext | |
11339 | cat >>conftest.$ac_ext <<_ACEOF | |
11340 | /* end confdefs.h. */ | |
11341 | #include <ac_nonexistent.h> | |
11342 | _ACEOF | |
11343 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11344 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11345 | ac_status=$? | |
11346 | grep -v '^ *+' conftest.er1 >conftest.err | |
11347 | rm -f conftest.er1 | |
11348 | cat conftest.err >&5 | |
11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11350 | (exit $ac_status); } >/dev/null; then | |
11351 | if test -s conftest.err; then | |
11352 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11353 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11354 | else |
11355 | ac_cpp_err= | |
11356 | fi | |
11357 | else | |
11358 | ac_cpp_err=yes | |
11359 | fi | |
11360 | if test -z "$ac_cpp_err"; then | |
11361 | # Broken: success on invalid input. | |
11362 | continue | |
11363 | else | |
11364 | echo "$as_me: failed program was:" >&5 | |
11365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11366 | ||
11367 | # Passes both tests. | |
11368 | ac_preproc_ok=: | |
11369 | break | |
11370 | fi | |
11371 | rm -f conftest.err conftest.$ac_ext | |
11372 | ||
11373 | done | |
11374 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11375 | rm -f conftest.err conftest.$ac_ext | |
11376 | if $ac_preproc_ok; then | |
11377 | break | |
11378 | fi | |
11379 | ||
11380 | done | |
11381 | ac_cv_prog_CPP=$CPP | |
11382 | ||
11383 | fi | |
11384 | CPP=$ac_cv_prog_CPP | |
11385 | else | |
11386 | ac_cv_prog_CPP=$CPP | |
11387 | fi | |
11388 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11389 | echo "${ECHO_T}$CPP" >&6 | |
11390 | ac_preproc_ok=false | |
11391 | for ac_c_preproc_warn_flag in '' yes | |
11392 | do | |
11393 | # Use a header file that comes with gcc, so configuring glibc | |
11394 | # with a fresh cross-compiler works. | |
11395 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11396 | # <limits.h> exists even on freestanding compilers. | |
11397 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11398 | # not just through cpp. "Syntax error" is here to catch this case. | |
11399 | cat >conftest.$ac_ext <<_ACEOF | |
11400 | /* confdefs.h. */ | |
11401 | _ACEOF | |
11402 | cat confdefs.h >>conftest.$ac_ext | |
11403 | cat >>conftest.$ac_ext <<_ACEOF | |
11404 | /* end confdefs.h. */ | |
11405 | #ifdef __STDC__ | |
11406 | # include <limits.h> | |
11407 | #else | |
11408 | # include <assert.h> | |
11409 | #endif | |
ac1cb8d3 | 11410 | Syntax error |
a848cd7e SC |
11411 | _ACEOF |
11412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11414 | ac_status=$? | |
11415 | grep -v '^ *+' conftest.er1 >conftest.err | |
11416 | rm -f conftest.er1 | |
11417 | cat conftest.err >&5 | |
11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11419 | (exit $ac_status); } >/dev/null; then | |
11420 | if test -s conftest.err; then | |
11421 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11422 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11423 | else |
11424 | ac_cpp_err= | |
11425 | fi | |
11426 | else | |
11427 | ac_cpp_err=yes | |
11428 | fi | |
11429 | if test -z "$ac_cpp_err"; then | |
11430 | : | |
11431 | else | |
11432 | echo "$as_me: failed program was:" >&5 | |
11433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11434 | ||
11435 | # Broken: fails on valid input. | |
11436 | continue | |
11437 | fi | |
11438 | rm -f conftest.err conftest.$ac_ext | |
11439 | ||
11440 | # OK, works on sane cases. Now check whether non-existent headers | |
11441 | # can be detected and how. | |
11442 | cat >conftest.$ac_ext <<_ACEOF | |
11443 | /* confdefs.h. */ | |
11444 | _ACEOF | |
11445 | cat confdefs.h >>conftest.$ac_ext | |
11446 | cat >>conftest.$ac_ext <<_ACEOF | |
11447 | /* end confdefs.h. */ | |
11448 | #include <ac_nonexistent.h> | |
11449 | _ACEOF | |
11450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11452 | ac_status=$? | |
11453 | grep -v '^ *+' conftest.er1 >conftest.err | |
11454 | rm -f conftest.er1 | |
11455 | cat conftest.err >&5 | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); } >/dev/null; then | |
11458 | if test -s conftest.err; then | |
11459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 11460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
11461 | else |
11462 | ac_cpp_err= | |
11463 | fi | |
11464 | else | |
11465 | ac_cpp_err=yes | |
11466 | fi | |
11467 | if test -z "$ac_cpp_err"; then | |
11468 | # Broken: success on invalid input. | |
11469 | continue | |
11470 | else | |
11471 | echo "$as_me: failed program was:" >&5 | |
11472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11473 | ||
11474 | # Passes both tests. | |
11475 | ac_preproc_ok=: | |
11476 | break | |
11477 | fi | |
11478 | rm -f conftest.err conftest.$ac_ext | |
11479 | ||
11480 | done | |
11481 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11482 | rm -f conftest.err conftest.$ac_ext | |
11483 | if $ac_preproc_ok; then | |
11484 | : | |
11485 | else | |
11486 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11487 | See \`config.log' for more details." >&5 | |
11488 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11489 | See \`config.log' for more details." >&2;} | |
11490 | { (exit 1); exit 1; }; } | |
11491 | fi | |
11492 | ||
11493 | ac_ext=c | |
11494 | ac_cpp='$CPP $CPPFLAGS' | |
11495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11498 | ||
11499 | ||
11500 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11501 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11502 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11504 | else | |
11505 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11506 | then ac_cv_prog_egrep='grep -E' | |
11507 | else ac_cv_prog_egrep='egrep' | |
11508 | fi | |
11509 | fi | |
11510 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11511 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11512 | EGREP=$ac_cv_prog_egrep | |
11513 | ||
11514 | ||
11515 | if test $ac_cv_c_compiler_gnu = yes; then | |
11516 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11517 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11518 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11520 | else | |
11521 | ac_pattern="Autoconf.*'x'" | |
11522 | cat >conftest.$ac_ext <<_ACEOF | |
11523 | /* confdefs.h. */ | |
11524 | _ACEOF | |
11525 | cat confdefs.h >>conftest.$ac_ext | |
11526 | cat >>conftest.$ac_ext <<_ACEOF | |
11527 | /* end confdefs.h. */ | |
11528 | #include <sgtty.h> | |
11529 | Autoconf TIOCGETP | |
11530 | _ACEOF | |
11531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11532 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11533 | ac_cv_prog_gcc_traditional=yes | |
11534 | else | |
11535 | ac_cv_prog_gcc_traditional=no | |
11536 | fi | |
11537 | rm -f conftest* | |
11538 | ||
11539 | ||
11540 | if test $ac_cv_prog_gcc_traditional = no; then | |
11541 | cat >conftest.$ac_ext <<_ACEOF | |
11542 | /* confdefs.h. */ | |
11543 | _ACEOF | |
11544 | cat confdefs.h >>conftest.$ac_ext | |
11545 | cat >>conftest.$ac_ext <<_ACEOF | |
11546 | /* end confdefs.h. */ | |
11547 | #include <termio.h> | |
11548 | Autoconf TCGETA | |
11549 | _ACEOF | |
11550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11551 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11552 | ac_cv_prog_gcc_traditional=yes | |
11553 | fi | |
11554 | rm -f conftest* | |
11555 | ||
11556 | fi | |
11557 | fi | |
11558 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11559 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11560 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11561 | CC="$CC -traditional" | |
11562 | fi | |
11563 | fi | |
11564 | ||
11565 | ||
11566 | ||
11567 | ||
11568 | ac_ext=cc | |
11569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11573 | ||
11574 | ||
11575 | CXXFLAGS=${CXXFLAGS:=} | |
11576 | ac_ext=cc | |
11577 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11578 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11579 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11580 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11581 | if test -n "$ac_tool_prefix"; then | |
11582 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11583 | do | |
11584 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11585 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11588 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11590 | else | |
11591 | if test -n "$CXX"; then | |
11592 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11593 | else | |
11594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11595 | for as_dir in $PATH | |
11596 | do | |
11597 | IFS=$as_save_IFS | |
11598 | test -z "$as_dir" && as_dir=. | |
11599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11600 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11601 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11603 | break 2 | |
11604 | fi | |
11605 | done | |
11606 | done | |
11607 | ||
11608 | fi | |
11609 | fi | |
11610 | CXX=$ac_cv_prog_CXX | |
11611 | if test -n "$CXX"; then | |
11612 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11613 | echo "${ECHO_T}$CXX" >&6 | |
11614 | else | |
11615 | echo "$as_me:$LINENO: result: no" >&5 | |
11616 | echo "${ECHO_T}no" >&6 | |
11617 | fi | |
11618 | ||
11619 | test -n "$CXX" && break | |
11620 | done | |
11621 | fi | |
11622 | if test -z "$CXX"; then | |
11623 | ac_ct_CXX=$CXX | |
11624 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11625 | do | |
11626 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11627 | set dummy $ac_prog; ac_word=$2 | |
11628 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11629 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11630 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11632 | else | |
11633 | if test -n "$ac_ct_CXX"; then | |
11634 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11635 | else | |
11636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11637 | for as_dir in $PATH | |
11638 | do | |
11639 | IFS=$as_save_IFS | |
11640 | test -z "$as_dir" && as_dir=. | |
11641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11643 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11645 | break 2 | |
11646 | fi | |
11647 | done | |
11648 | done | |
11649 | ||
11650 | fi | |
11651 | fi | |
11652 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11653 | if test -n "$ac_ct_CXX"; then | |
11654 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11655 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11656 | else | |
11657 | echo "$as_me:$LINENO: result: no" >&5 | |
11658 | echo "${ECHO_T}no" >&6 | |
11659 | fi | |
11660 | ||
11661 | test -n "$ac_ct_CXX" && break | |
11662 | done | |
11663 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11664 | ||
11665 | CXX=$ac_ct_CXX | |
11666 | fi | |
11667 | ||
11668 | ||
11669 | # Provide some information about the compiler. | |
11670 | echo "$as_me:$LINENO:" \ | |
11671 | "checking for C++ compiler version" >&5 | |
11672 | ac_compiler=`set X $ac_compile; echo $2` | |
11673 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11674 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11675 | ac_status=$? | |
11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11677 | (exit $ac_status); } | |
11678 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11679 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11680 | ac_status=$? | |
11681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11682 | (exit $ac_status); } | |
11683 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11684 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11685 | ac_status=$? | |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11687 | (exit $ac_status); } | |
11688 | ||
11689 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11690 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11691 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11693 | else | |
11694 | cat >conftest.$ac_ext <<_ACEOF | |
11695 | /* confdefs.h. */ | |
11696 | _ACEOF | |
11697 | cat confdefs.h >>conftest.$ac_ext | |
11698 | cat >>conftest.$ac_ext <<_ACEOF | |
11699 | /* end confdefs.h. */ | |
11700 | ||
11701 | int | |
11702 | main () | |
11703 | { | |
11704 | #ifndef __GNUC__ | |
11705 | choke me | |
11706 | #endif | |
11707 | ||
11708 | ; | |
11709 | return 0; | |
11710 | } | |
11711 | _ACEOF | |
11712 | rm -f conftest.$ac_objext | |
11713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11715 | ac_status=$? |
ac1cb8d3 VS |
11716 | grep -v '^ *+' conftest.er1 >conftest.err |
11717 | rm -f conftest.er1 | |
11718 | cat conftest.err >&5 | |
a848cd7e SC |
11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11720 | (exit $ac_status); } && | |
d1c38808 | 11721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11723 | (eval $ac_try) 2>&5 | |
11724 | ac_status=$? | |
11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11726 | (exit $ac_status); }; } && | |
11727 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11729 | (eval $ac_try) 2>&5 | |
11730 | ac_status=$? | |
11731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11732 | (exit $ac_status); }; }; then | |
11733 | ac_compiler_gnu=yes | |
11734 | else | |
11735 | echo "$as_me: failed program was:" >&5 | |
11736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11737 | ||
11738 | ac_compiler_gnu=no | |
11739 | fi | |
ac1cb8d3 | 11740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11741 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11742 | ||
11743 | fi | |
11744 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11745 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11746 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11747 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11748 | ac_save_CXXFLAGS=$CXXFLAGS | |
11749 | CXXFLAGS="-g" | |
11750 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11751 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11752 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11754 | else | |
11755 | cat >conftest.$ac_ext <<_ACEOF | |
11756 | /* confdefs.h. */ | |
11757 | _ACEOF | |
11758 | cat confdefs.h >>conftest.$ac_ext | |
11759 | cat >>conftest.$ac_ext <<_ACEOF | |
11760 | /* end confdefs.h. */ | |
11761 | ||
11762 | int | |
11763 | main () | |
11764 | { | |
11765 | ||
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); } && | |
d1c38808 | 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 | ac_cv_prog_cxx_g=yes | |
11792 | else | |
11793 | echo "$as_me: failed program was:" >&5 | |
11794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11795 | ||
11796 | ac_cv_prog_cxx_g=no | |
11797 | fi | |
ac1cb8d3 | 11798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11799 | fi |
11800 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11801 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11802 | if test "$ac_test_CXXFLAGS" = set; then | |
11803 | CXXFLAGS=$ac_save_CXXFLAGS | |
11804 | elif test $ac_cv_prog_cxx_g = yes; then | |
11805 | if test "$GXX" = yes; then | |
11806 | CXXFLAGS="-g -O2" | |
11807 | else | |
11808 | CXXFLAGS="-g" | |
11809 | fi | |
11810 | else | |
11811 | if test "$GXX" = yes; then | |
11812 | CXXFLAGS="-O2" | |
11813 | else | |
11814 | CXXFLAGS= | |
11815 | fi | |
11816 | fi | |
11817 | for ac_declaration in \ | |
ac1cb8d3 | 11818 | '' \ |
a848cd7e SC |
11819 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11820 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11821 | 'extern "C" void exit (int) throw ();' \ | |
11822 | 'extern "C" void exit (int);' \ | |
11823 | 'void exit (int);' | |
11824 | do | |
11825 | cat >conftest.$ac_ext <<_ACEOF | |
11826 | /* confdefs.h. */ | |
11827 | _ACEOF | |
11828 | cat confdefs.h >>conftest.$ac_ext | |
11829 | cat >>conftest.$ac_ext <<_ACEOF | |
11830 | /* end confdefs.h. */ | |
de59c161 | 11831 | $ac_declaration |
ac1cb8d3 | 11832 | #include <stdlib.h> |
a848cd7e SC |
11833 | int |
11834 | main () | |
11835 | { | |
11836 | exit (42); | |
11837 | ; | |
11838 | return 0; | |
11839 | } | |
11840 | _ACEOF | |
11841 | rm -f conftest.$ac_objext | |
11842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11843 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11844 | ac_status=$? |
ac1cb8d3 VS |
11845 | grep -v '^ *+' conftest.er1 >conftest.err |
11846 | rm -f conftest.er1 | |
11847 | cat conftest.err >&5 | |
a848cd7e SC |
11848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11849 | (exit $ac_status); } && | |
d1c38808 | 11850 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11852 | (eval $ac_try) 2>&5 | |
11853 | ac_status=$? | |
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11855 | (exit $ac_status); }; } && | |
11856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11858 | (eval $ac_try) 2>&5 | |
11859 | ac_status=$? | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); }; }; then | |
11862 | : | |
11863 | else | |
11864 | echo "$as_me: failed program was:" >&5 | |
11865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11866 | ||
11867 | continue | |
11868 | fi | |
ac1cb8d3 | 11869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11870 | cat >conftest.$ac_ext <<_ACEOF |
11871 | /* confdefs.h. */ | |
11872 | _ACEOF | |
11873 | cat confdefs.h >>conftest.$ac_ext | |
11874 | cat >>conftest.$ac_ext <<_ACEOF | |
11875 | /* end confdefs.h. */ | |
11876 | $ac_declaration | |
11877 | int | |
11878 | main () | |
11879 | { | |
11880 | exit (42); | |
11881 | ; | |
11882 | return 0; | |
11883 | } | |
11884 | _ACEOF | |
11885 | rm -f conftest.$ac_objext | |
11886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11887 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11888 | ac_status=$? |
ac1cb8d3 VS |
11889 | grep -v '^ *+' conftest.er1 >conftest.err |
11890 | rm -f conftest.er1 | |
11891 | cat conftest.err >&5 | |
a848cd7e SC |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11893 | (exit $ac_status); } && | |
d1c38808 | 11894 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11896 | (eval $ac_try) 2>&5 | |
11897 | ac_status=$? | |
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11899 | (exit $ac_status); }; } && | |
11900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11902 | (eval $ac_try) 2>&5 | |
11903 | ac_status=$? | |
11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11905 | (exit $ac_status); }; }; then | |
11906 | break | |
11907 | else | |
11908 | echo "$as_me: failed program was:" >&5 | |
11909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11910 | ||
11911 | fi | |
ac1cb8d3 | 11912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11913 | done |
11914 | rm -f conftest* | |
11915 | if test -n "$ac_declaration"; then | |
11916 | echo '#ifdef __cplusplus' >>confdefs.h | |
11917 | echo $ac_declaration >>confdefs.h | |
11918 | echo '#endif' >>confdefs.h | |
11919 | fi | |
11920 | ||
11921 | ac_ext=cc | |
11922 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11926 | ||
11927 | ||
11928 | ac_ext=c | |
11929 | ac_cpp='$CPP $CPPFLAGS' | |
11930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11933 | ||
11934 | ||
a848cd7e SC |
11935 | if test -n "$ac_tool_prefix"; then |
11936 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11937 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11940 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11942 | else | |
11943 | if test -n "$RANLIB"; then | |
11944 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11945 | else | |
11946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11947 | for as_dir in $PATH | |
11948 | do | |
11949 | IFS=$as_save_IFS | |
11950 | test -z "$as_dir" && as_dir=. | |
11951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11953 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11955 | break 2 | |
11956 | fi | |
11957 | done | |
11958 | done | |
11959 | ||
11960 | fi | |
11961 | fi | |
11962 | RANLIB=$ac_cv_prog_RANLIB | |
11963 | if test -n "$RANLIB"; then | |
11964 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11965 | echo "${ECHO_T}$RANLIB" >&6 | |
11966 | else | |
11967 | echo "$as_me:$LINENO: result: no" >&5 | |
11968 | echo "${ECHO_T}no" >&6 | |
11969 | fi | |
11970 | ||
11971 | fi | |
11972 | if test -z "$ac_cv_prog_RANLIB"; then | |
11973 | ac_ct_RANLIB=$RANLIB | |
11974 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11975 | set dummy ranlib; ac_word=$2 | |
11976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11978 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11980 | else | |
11981 | if test -n "$ac_ct_RANLIB"; then | |
11982 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11983 | else | |
11984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11985 | for as_dir in $PATH | |
11986 | do | |
11987 | IFS=$as_save_IFS | |
11988 | test -z "$as_dir" && as_dir=. | |
11989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11991 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11993 | break 2 | |
11994 | fi | |
11995 | done | |
11996 | done | |
11997 | ||
11998 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11999 | fi | |
12000 | fi | |
12001 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
12002 | if test -n "$ac_ct_RANLIB"; then | |
12003 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
12004 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
12005 | else | |
12006 | echo "$as_me:$LINENO: result: no" >&5 | |
12007 | echo "${ECHO_T}no" >&6 | |
12008 | fi | |
12009 | ||
12010 | RANLIB=$ac_ct_RANLIB | |
12011 | else | |
12012 | RANLIB="$ac_cv_prog_RANLIB" | |
12013 | fi | |
12014 | ||
12015 | ||
12016 | # Extract the first word of "ar", so it can be a program name with args. | |
12017 | set dummy ar; ac_word=$2 | |
12018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12020 | if test "${ac_cv_prog_AR+set}" = set; then | |
12021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12022 | else | |
12023 | if test -n "$AR"; then | |
12024 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
12025 | else | |
12026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12027 | for as_dir in $PATH | |
12028 | do | |
12029 | IFS=$as_save_IFS | |
12030 | test -z "$as_dir" && as_dir=. | |
12031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12032 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12033 | ac_cv_prog_AR="ar" | |
12034 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12035 | break 2 | |
12036 | fi | |
12037 | done | |
12038 | done | |
12039 | ||
12040 | fi | |
12041 | fi | |
12042 | AR=$ac_cv_prog_AR | |
12043 | if test -n "$AR"; then | |
12044 | echo "$as_me:$LINENO: result: $AR" >&5 | |
12045 | echo "${ECHO_T}$AR" >&6 | |
12046 | else | |
12047 | echo "$as_me:$LINENO: result: no" >&5 | |
12048 | echo "${ECHO_T}no" >&6 | |
12049 | fi | |
12050 | ||
12051 | if test "x$AR" = "x" ; then | |
77ffb593 JS |
12052 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
12053 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
12054 | { (exit 1); exit 1; }; } |
12055 | fi | |
12056 | ||
12057 | # Find a good install program. We prefer a C program (faster), | |
12058 | # so one script is as good as another. But avoid the broken or | |
12059 | # incompatible versions: | |
12060 | # SysV /etc/install, /usr/sbin/install | |
12061 | # SunOS /usr/etc/install | |
12062 | # IRIX /sbin/install | |
12063 | # AIX /bin/install | |
12064 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12065 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12066 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12067 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 12068 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
12069 | # ./install, which can be erroneously created by make from ./install.sh. |
12070 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
12071 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12072 | if test -z "$INSTALL"; then | |
12073 | if test "${ac_cv_path_install+set}" = set; then | |
12074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12075 | else | |
12076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12077 | for as_dir in $PATH | |
12078 | do | |
12079 | IFS=$as_save_IFS | |
12080 | test -z "$as_dir" && as_dir=. | |
12081 | # Account for people who put trailing slashes in PATH elements. | |
12082 | case $as_dir/ in | |
12083 | ./ | .// | /cC/* | \ | |
12084 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 12085 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
12086 | /usr/ucb/* ) ;; |
12087 | *) | |
12088 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12089 | # Don't use installbsd from OSF since it installs stuff as root | |
12090 | # by default. | |
12091 | for ac_prog in ginstall scoinst install; do | |
12092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
12093 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
12094 | if test $ac_prog = install && | |
12095 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12096 | # AIX install. It has an incompatible calling convention. | |
12097 | : | |
12098 | elif test $ac_prog = install && | |
12099 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12100 | # program-specific install script used by HP pwplus--don't use. | |
12101 | : | |
12102 | else | |
12103 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12104 | break 3 | |
12105 | fi | |
12106 | fi | |
a848cd7e SC |
12107 | done |
12108 | done | |
12109 | ;; | |
12110 | esac | |
12111 | done | |
12112 | ||
12113 | ||
12114 | fi | |
12115 | if test "${ac_cv_path_install+set}" = set; then | |
12116 | INSTALL=$ac_cv_path_install | |
12117 | else | |
12118 | # As a last resort, use the slow shell script. We don't cache a | |
12119 | # path for INSTALL within a source directory, because that will | |
12120 | # break other packages using the cache if that directory is | |
12121 | # removed, or if the path is relative. | |
12122 | INSTALL=$ac_install_sh | |
12123 | fi | |
12124 | fi | |
12125 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12126 | echo "${ECHO_T}$INSTALL" >&6 | |
12127 | ||
12128 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
12129 | # It thinks the first close brace ends the variable substitution. | |
12130 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
12131 | ||
12132 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
12133 | ||
12134 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
12135 | ||
12136 | ||
12137 | case ${INSTALL} in | |
12138 | /* ) # Absolute | |
12139 | ;; | |
12140 | ?:* ) # Drive letter, considered as absolute. | |
12141 | ;; | |
12142 | *) | |
12143 | INSTALL=`pwd`/${INSTALL} ;; | |
12144 | esac | |
12145 | ||
a848cd7e SC |
12146 | |
12147 | case "${host}" in | |
12148 | ||
12149 | powerpc-*-darwin* ) | |
12150 | INSTALL_PROGRAM="cp -fp" | |
12151 | INSTALL_DATA="cp -fp" | |
12152 | ;; | |
12153 | *) | |
12154 | ;; | |
12155 | esac | |
12156 | ||
12157 | # Extract the first word of "strip", so it can be a program name with args. | |
12158 | set dummy strip; ac_word=$2 | |
12159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12161 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
12162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12163 | else | |
12164 | if test -n "$STRIP"; then | |
12165 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
12166 | else | |
12167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12168 | for as_dir in $PATH | |
12169 | do | |
12170 | IFS=$as_save_IFS | |
12171 | test -z "$as_dir" && as_dir=. | |
12172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12174 | ac_cv_prog_STRIP="strip" | |
12175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12176 | break 2 | |
12177 | fi | |
12178 | done | |
12179 | done | |
12180 | ||
12181 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
12182 | fi | |
12183 | fi | |
12184 | STRIP=$ac_cv_prog_STRIP | |
12185 | if test -n "$STRIP"; then | |
12186 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
12187 | echo "${ECHO_T}$STRIP" >&6 | |
12188 | else | |
12189 | echo "$as_me:$LINENO: result: no" >&5 | |
12190 | echo "${ECHO_T}no" >&6 | |
12191 | fi | |
12192 | ||
12193 | ||
12194 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
12195 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
12196 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
12197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12198 | else | |
12199 | ||
12200 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
12201 | egrep -s GNU > /dev/null); then | |
12202 | wx_cv_prog_makeisgnu="yes" | |
12203 | else | |
12204 | wx_cv_prog_makeisgnu="no" | |
12205 | fi | |
12206 | ||
12207 | fi | |
12208 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
12209 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
12210 | ||
12211 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
12212 | IF_GNU_MAKE="" | |
12213 | else | |
12214 | IF_GNU_MAKE="#" | |
12215 | fi | |
12216 | ||
12217 | ||
12218 | ||
12219 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
12220 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
12221 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
12222 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
12223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12224 | else | |
12225 | ||
12226 | cat - << EOF > confMake | |
12227 | check : file | |
12228 | cp \$? \$@ | |
12229 | cp \$? final_file | |
12230 | EOF | |
12231 | ||
12232 | if test ! -d sub ; then | |
12233 | mkdir sub | |
12234 | fi | |
12235 | echo dummy > sub/file | |
12236 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
12237 | RESULT=$? | |
12238 | rm -f sub/file check final_file confMake | |
12239 | rmdir sub | |
12240 | if test "$RESULT" = 0; then | |
12241 | wx_cv_prog_makevpath="yes" | |
12242 | else | |
12243 | wx_cv_prog_makevpath="no" | |
12244 | fi | |
12245 | ||
12246 | fi | |
12247 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
12248 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
12249 | ||
12250 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
12251 | { { echo "$as_me:$LINENO: error: | |
12252 | You need a make-utility that is able to use the variable | |
12253 | VPATH correctly. | |
12254 | If your version of make does not support VPATH correctly, | |
12255 | please install GNU-make (possibly as gmake), and start | |
12256 | configure with the following command: | |
12257 | export MAKE=gmake; ./configure for sh-type shells | |
12258 | setenv MAKE gmake; ./configure for csh-type shells | |
12259 | Also please do remember to use gmake in this case every time | |
12260 | you are trying to compile. | |
12261 | " >&5 | |
12262 | echo "$as_me: error: | |
12263 | You need a make-utility that is able to use the variable | |
12264 | VPATH correctly. | |
12265 | If your version of make does not support VPATH correctly, | |
12266 | please install GNU-make (possibly as gmake), and start | |
12267 | configure with the following command: | |
12268 | export MAKE=gmake; ./configure for sh-type shells | |
12269 | setenv MAKE gmake; ./configure for csh-type shells | |
12270 | Also please do remember to use gmake in this case every time | |
12271 | you are trying to compile. | |
12272 | " >&2;} | |
12273 | { (exit 1); exit 1; }; } | |
12274 | fi fi | |
12275 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
12276 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
12277 | LN_S=$as_ln_s | |
12278 | if test "$LN_S" = "ln -s"; then | |
12279 | echo "$as_me:$LINENO: result: yes" >&5 | |
12280 | echo "${ECHO_T}yes" >&6 | |
12281 | else | |
12282 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
12283 | echo "${ECHO_T}no, using $LN_S" >&6 | |
12284 | fi | |
12285 | ||
12286 | ||
12287 | ||
12288 | case "${host}" in | |
12289 | *-pc-os2_emx | *-pc-os2-emx ) | |
12290 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
12291 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
12292 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
12293 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
12294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12295 | else | |
12296 | ac_check_lib_save_LIBS=$LIBS | |
12297 | LIBS="-lcExt $LIBS" | |
12298 | cat >conftest.$ac_ext <<_ACEOF | |
12299 | /* confdefs.h. */ | |
12300 | _ACEOF | |
12301 | cat confdefs.h >>conftest.$ac_ext | |
12302 | cat >>conftest.$ac_ext <<_ACEOF | |
12303 | /* end confdefs.h. */ | |
12304 | ||
12305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12306 | #ifdef __cplusplus | |
12307 | extern "C" | |
12308 | #endif | |
12309 | /* We use char because int might match the return type of a gcc2 | |
12310 | builtin and then its argument prototype would still apply. */ | |
12311 | char drand48 (); | |
12312 | int | |
12313 | main () | |
12314 | { | |
12315 | drand48 (); | |
12316 | ; | |
12317 | return 0; | |
12318 | } | |
12319 | _ACEOF | |
12320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12322 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12323 | ac_status=$? |
ac1cb8d3 VS |
12324 | grep -v '^ *+' conftest.er1 >conftest.err |
12325 | rm -f conftest.er1 | |
12326 | cat conftest.err >&5 | |
a848cd7e SC |
12327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12328 | (exit $ac_status); } && | |
d1c38808 | 12329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12331 | (eval $ac_try) 2>&5 | |
12332 | ac_status=$? | |
12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12334 | (exit $ac_status); }; } && | |
12335 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12337 | (eval $ac_try) 2>&5 | |
12338 | ac_status=$? | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); }; }; then | |
12341 | ac_cv_lib_cExt_drand48=yes | |
12342 | else | |
12343 | echo "$as_me: failed program was:" >&5 | |
12344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12345 | ||
12346 | ac_cv_lib_cExt_drand48=no | |
12347 | fi | |
ac1cb8d3 VS |
12348 | rm -f conftest.err conftest.$ac_objext \ |
12349 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12350 | LIBS=$ac_check_lib_save_LIBS |
12351 | fi | |
12352 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12353 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12354 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12355 | LIBS="$LIBS -lcExt" | |
12356 | fi | |
12357 | ||
12358 | else | |
12359 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12360 | fi | |
12361 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12362 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12363 | if test "${wx_cv_gccversion+set}" = set; then | |
12364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12365 | else | |
12366 | ||
12367 | cat >conftest.$ac_ext <<_ACEOF | |
12368 | /* confdefs.h. */ | |
12369 | _ACEOF | |
12370 | cat confdefs.h >>conftest.$ac_ext | |
12371 | cat >>conftest.$ac_ext <<_ACEOF | |
12372 | /* end confdefs.h. */ | |
12373 | ||
12374 | int | |
12375 | main () | |
12376 | { | |
12377 | ||
12378 | #if (__GNUC__ < 3) | |
12379 | #error old gcc | |
12380 | #endif | |
12381 | ||
12382 | ; | |
12383 | return 0; | |
12384 | } | |
12385 | _ACEOF | |
12386 | rm -f conftest.$ac_objext | |
12387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12389 | ac_status=$? |
ac1cb8d3 VS |
12390 | grep -v '^ *+' conftest.er1 >conftest.err |
12391 | rm -f conftest.er1 | |
12392 | cat conftest.err >&5 | |
a848cd7e SC |
12393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12394 | (exit $ac_status); } && | |
d1c38808 | 12395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12397 | (eval $ac_try) 2>&5 | |
12398 | ac_status=$? | |
12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12400 | (exit $ac_status); }; } && | |
12401 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12403 | (eval $ac_try) 2>&5 | |
12404 | ac_status=$? | |
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); }; }; then | |
12407 | ||
12408 | cat >conftest.$ac_ext <<_ACEOF | |
12409 | /* confdefs.h. */ | |
12410 | _ACEOF | |
12411 | cat confdefs.h >>conftest.$ac_ext | |
12412 | cat >>conftest.$ac_ext <<_ACEOF | |
12413 | /* end confdefs.h. */ | |
12414 | ||
12415 | int | |
12416 | main () | |
12417 | { | |
12418 | ||
12419 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12420 | #error intermediate gcc | |
12421 | #endif | |
12422 | ||
12423 | ; | |
12424 | return 0; | |
12425 | } | |
12426 | _ACEOF | |
12427 | rm -f conftest.$ac_objext | |
12428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12429 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12430 | ac_status=$? |
ac1cb8d3 VS |
12431 | grep -v '^ *+' conftest.er1 >conftest.err |
12432 | rm -f conftest.er1 | |
12433 | cat conftest.err >&5 | |
a848cd7e SC |
12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12435 | (exit $ac_status); } && | |
d1c38808 | 12436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12438 | (eval $ac_try) 2>&5 | |
12439 | ac_status=$? | |
12440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12441 | (exit $ac_status); }; } && | |
12442 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12444 | (eval $ac_try) 2>&5 | |
12445 | ac_status=$? | |
12446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12447 | (exit $ac_status); }; }; then | |
12448 | ||
12449 | wx_cv_gccversion=Innotek | |
12450 | ||
12451 | else | |
12452 | echo "$as_me: failed program was:" >&5 | |
12453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12454 | ||
12455 | ||
12456 | wx_cv_gccversion=3 | |
12457 | ||
12458 | ||
12459 | fi | |
ac1cb8d3 | 12460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12461 | |
12462 | else | |
12463 | echo "$as_me: failed program was:" >&5 | |
12464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12465 | ||
12466 | ||
12467 | wx_cv_gccversion=2 | |
12468 | ||
12469 | ||
12470 | fi | |
ac1cb8d3 | 12471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12472 | |
12473 | fi | |
12474 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12475 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12476 | if test "$wx_cv_gccversion" = "2"; then | |
12477 | LIBS="$LIBS -lstdcpp" | |
12478 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12479 | else | |
12480 | if test "$wx_cv_gccversion" = "3"; then | |
12481 | LIBS="$LIBS -lstdcxx" | |
12482 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12483 | else | |
12484 | LIBS="$LIBS -lstdc++" | |
12485 | fi | |
12486 | fi | |
12487 | if test "$wxUSE_OMF" = "yes"; then | |
de59c161 | 12488 | LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" |
a848cd7e SC |
12489 | fi |
12490 | ;; | |
12491 | *) | |
12492 | ||
12493 | ||
12494 | ||
12495 | ac_ext=cc | |
12496 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12497 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12498 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12499 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12500 | ||
12501 | ||
12502 | ||
12503 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12504 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12505 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12507 | else | |
12508 | ||
12509 | cat >conftest.$ac_ext <<_ACEOF | |
12510 | /* confdefs.h. */ | |
12511 | _ACEOF | |
12512 | cat confdefs.h >>conftest.$ac_ext | |
12513 | cat >>conftest.$ac_ext <<_ACEOF | |
12514 | /* end confdefs.h. */ | |
12515 | ||
12516 | #include <string.h> | |
12517 | ||
12518 | int | |
12519 | main () | |
12520 | { | |
12521 | ||
12522 | strcasecmp("foo", "bar"); | |
12523 | ||
12524 | ; | |
12525 | return 0; | |
12526 | } | |
12527 | _ACEOF | |
12528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12531 | ac_status=$? |
ac1cb8d3 VS |
12532 | grep -v '^ *+' conftest.er1 >conftest.err |
12533 | rm -f conftest.er1 | |
12534 | cat conftest.err >&5 | |
a848cd7e SC |
12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12536 | (exit $ac_status); } && | |
d1c38808 | 12537 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12539 | (eval $ac_try) 2>&5 | |
12540 | ac_status=$? | |
12541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12542 | (exit $ac_status); }; } && | |
12543 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12545 | (eval $ac_try) 2>&5 | |
12546 | ac_status=$? | |
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12548 | (exit $ac_status); }; }; then | |
12549 | ac_cv_string_strcasecmp=yes | |
12550 | else | |
12551 | echo "$as_me: failed program was:" >&5 | |
12552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12553 | ||
12554 | ac_cv_string_strcasecmp=no | |
12555 | ||
12556 | fi | |
ac1cb8d3 VS |
12557 | rm -f conftest.err conftest.$ac_objext \ |
12558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12559 | |
12560 | fi | |
12561 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12562 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12563 | ||
12564 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12565 | cat >>confdefs.h <<\_ACEOF | |
12566 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12567 | _ACEOF | |
12568 | ||
12569 | else | |
12570 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12571 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12572 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12574 | else | |
12575 | ||
12576 | cat >conftest.$ac_ext <<_ACEOF | |
12577 | /* confdefs.h. */ | |
12578 | _ACEOF | |
12579 | cat confdefs.h >>conftest.$ac_ext | |
12580 | cat >>conftest.$ac_ext <<_ACEOF | |
12581 | /* end confdefs.h. */ | |
12582 | ||
12583 | #include <strings.h> | |
12584 | ||
12585 | int | |
12586 | main () | |
12587 | { | |
12588 | ||
12589 | strcasecmp("foo", "bar"); | |
12590 | ||
12591 | ; | |
12592 | return 0; | |
12593 | } | |
12594 | _ACEOF | |
12595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 12597 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 12598 | ac_status=$? |
ac1cb8d3 VS |
12599 | grep -v '^ *+' conftest.er1 >conftest.err |
12600 | rm -f conftest.er1 | |
12601 | cat conftest.err >&5 | |
a848cd7e SC |
12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12603 | (exit $ac_status); } && | |
d1c38808 | 12604 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12606 | (eval $ac_try) 2>&5 | |
12607 | ac_status=$? | |
12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12609 | (exit $ac_status); }; } && | |
12610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
12611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12612 | (eval $ac_try) 2>&5 | |
12613 | ac_status=$? | |
12614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12615 | (exit $ac_status); }; }; then | |
12616 | ac_cv_strings_strcasecmp=yes | |
12617 | else | |
12618 | echo "$as_me: failed program was:" >&5 | |
12619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12620 | ||
12621 | ac_cv_strings_strcasecmp=no | |
12622 | ||
12623 | fi | |
ac1cb8d3 VS |
12624 | rm -f conftest.err conftest.$ac_objext \ |
12625 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
12626 | |
12627 | fi | |
12628 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12629 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12630 | ||
0c3c69fc | 12631 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
12632 | cat >>confdefs.h <<\_ACEOF |
12633 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12634 | _ACEOF | |
12635 | ||
12636 | else | |
12637 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12638 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12639 | { (exit 1); exit 1; }; } | |
12640 | fi | |
12641 | fi | |
12642 | ||
12643 | ac_ext=c | |
12644 | ac_cpp='$CPP $CPPFLAGS' | |
12645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12648 | ||
12649 | ;; | |
12650 | esac | |
12651 | ||
12652 | ||
12653 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12654 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12655 | if test "${ac_cv_header_stdc+set}" = set; then | |
12656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12657 | else | |
12658 | cat >conftest.$ac_ext <<_ACEOF | |
12659 | /* confdefs.h. */ | |
12660 | _ACEOF | |
12661 | cat confdefs.h >>conftest.$ac_ext | |
12662 | cat >>conftest.$ac_ext <<_ACEOF | |
12663 | /* end confdefs.h. */ | |
12664 | #include <stdlib.h> | |
12665 | #include <stdarg.h> | |
12666 | #include <string.h> | |
12667 | #include <float.h> | |
12668 | ||
12669 | int | |
12670 | main () | |
12671 | { | |
12672 | ||
12673 | ; | |
12674 | return 0; | |
12675 | } | |
12676 | _ACEOF | |
12677 | rm -f conftest.$ac_objext | |
12678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12679 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12680 | ac_status=$? |
ac1cb8d3 VS |
12681 | grep -v '^ *+' conftest.er1 >conftest.err |
12682 | rm -f conftest.er1 | |
12683 | cat conftest.err >&5 | |
a848cd7e SC |
12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12685 | (exit $ac_status); } && | |
d1c38808 | 12686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12688 | (eval $ac_try) 2>&5 | |
12689 | ac_status=$? | |
12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12691 | (exit $ac_status); }; } && | |
12692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12694 | (eval $ac_try) 2>&5 | |
12695 | ac_status=$? | |
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12697 | (exit $ac_status); }; }; then | |
12698 | ac_cv_header_stdc=yes | |
12699 | else | |
12700 | echo "$as_me: failed program was:" >&5 | |
12701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12702 | ||
12703 | ac_cv_header_stdc=no | |
12704 | fi | |
ac1cb8d3 | 12705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12706 | |
12707 | if test $ac_cv_header_stdc = yes; then | |
12708 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12709 | cat >conftest.$ac_ext <<_ACEOF | |
12710 | /* confdefs.h. */ | |
12711 | _ACEOF | |
12712 | cat confdefs.h >>conftest.$ac_ext | |
12713 | cat >>conftest.$ac_ext <<_ACEOF | |
12714 | /* end confdefs.h. */ | |
12715 | #include <string.h> | |
12716 | ||
12717 | _ACEOF | |
12718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12719 | $EGREP "memchr" >/dev/null 2>&1; then | |
12720 | : | |
12721 | else | |
12722 | ac_cv_header_stdc=no | |
12723 | fi | |
12724 | rm -f conftest* | |
12725 | ||
12726 | fi | |
12727 | ||
12728 | if test $ac_cv_header_stdc = yes; then | |
12729 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12730 | cat >conftest.$ac_ext <<_ACEOF | |
12731 | /* confdefs.h. */ | |
12732 | _ACEOF | |
12733 | cat confdefs.h >>conftest.$ac_ext | |
12734 | cat >>conftest.$ac_ext <<_ACEOF | |
12735 | /* end confdefs.h. */ | |
12736 | #include <stdlib.h> | |
12737 | ||
12738 | _ACEOF | |
12739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12740 | $EGREP "free" >/dev/null 2>&1; then | |
12741 | : | |
12742 | else | |
12743 | ac_cv_header_stdc=no | |
12744 | fi | |
12745 | rm -f conftest* | |
12746 | ||
12747 | fi | |
12748 | ||
12749 | if test $ac_cv_header_stdc = yes; then | |
12750 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12751 | if test "$cross_compiling" = yes; then | |
12752 | : | |
12753 | else | |
12754 | cat >conftest.$ac_ext <<_ACEOF | |
12755 | /* confdefs.h. */ | |
12756 | _ACEOF | |
12757 | cat confdefs.h >>conftest.$ac_ext | |
12758 | cat >>conftest.$ac_ext <<_ACEOF | |
12759 | /* end confdefs.h. */ | |
12760 | #include <ctype.h> | |
12761 | #if ((' ' & 0x0FF) == 0x020) | |
12762 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12763 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12764 | #else | |
12765 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
12766 | (('a' <= (c) && (c) <= 'i') \ |
12767 | || ('j' <= (c) && (c) <= 'r') \ | |
12768 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12769 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12770 | #endif | |
12771 | ||
12772 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12773 | int | |
12774 | main () | |
12775 | { | |
12776 | int i; | |
12777 | for (i = 0; i < 256; i++) | |
12778 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 12779 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12780 | exit(2); |
12781 | exit (0); | |
12782 | } | |
12783 | _ACEOF | |
12784 | rm -f conftest$ac_exeext | |
12785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12786 | (eval $ac_link) 2>&5 | |
12787 | ac_status=$? | |
12788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12791 | (eval $ac_try) 2>&5 | |
12792 | ac_status=$? | |
12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12794 | (exit $ac_status); }; }; then | |
12795 | : | |
12796 | else | |
12797 | echo "$as_me: program exited with status $ac_status" >&5 | |
12798 | echo "$as_me: failed program was:" >&5 | |
12799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12800 | ||
12801 | ( exit $ac_status ) | |
12802 | ac_cv_header_stdc=no | |
12803 | fi | |
ac1cb8d3 | 12804 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12805 | fi |
12806 | fi | |
12807 | fi | |
12808 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12809 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12810 | if test $ac_cv_header_stdc = yes; then | |
12811 | ||
12812 | cat >>confdefs.h <<\_ACEOF | |
12813 | #define STDC_HEADERS 1 | |
12814 | _ACEOF | |
12815 | ||
12816 | fi | |
12817 | ||
12818 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12819 | ||
12820 | ||
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 12829 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12830 | do |
12831 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12832 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12833 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12836 | else | |
12837 | cat >conftest.$ac_ext <<_ACEOF | |
12838 | /* confdefs.h. */ | |
12839 | _ACEOF | |
12840 | cat confdefs.h >>conftest.$ac_ext | |
12841 | cat >>conftest.$ac_ext <<_ACEOF | |
12842 | /* end confdefs.h. */ | |
12843 | $ac_includes_default | |
12844 | ||
12845 | #include <$ac_header> | |
12846 | _ACEOF | |
12847 | rm -f conftest.$ac_objext | |
12848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12849 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12850 | ac_status=$? |
ac1cb8d3 VS |
12851 | grep -v '^ *+' conftest.er1 >conftest.err |
12852 | rm -f conftest.er1 | |
12853 | cat conftest.err >&5 | |
a848cd7e SC |
12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12855 | (exit $ac_status); } && | |
d1c38808 | 12856 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12858 | (eval $ac_try) 2>&5 | |
12859 | ac_status=$? | |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12861 | (exit $ac_status); }; } && | |
12862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12864 | (eval $ac_try) 2>&5 | |
12865 | ac_status=$? | |
12866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12867 | (exit $ac_status); }; }; then | |
12868 | eval "$as_ac_Header=yes" | |
12869 | else | |
12870 | echo "$as_me: failed program was:" >&5 | |
12871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12872 | ||
12873 | eval "$as_ac_Header=no" | |
12874 | fi | |
ac1cb8d3 | 12875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12876 | fi |
12877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12879 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12880 | cat >>confdefs.h <<_ACEOF | |
12881 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12882 | _ACEOF | |
12883 | ||
12884 | fi | |
12885 | ||
12886 | done | |
12887 | ||
12888 | ||
12889 | ||
12890 | for ac_header in stdlib.h | |
12891 | do | |
12892 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12894 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12898 | fi | |
12899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12900 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12901 | else | |
12902 | # Is the header compilable? | |
12903 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12904 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12905 | cat >conftest.$ac_ext <<_ACEOF | |
12906 | /* confdefs.h. */ | |
12907 | _ACEOF | |
12908 | cat confdefs.h >>conftest.$ac_ext | |
12909 | cat >>conftest.$ac_ext <<_ACEOF | |
12910 | /* end confdefs.h. */ | |
12911 | $ac_includes_default | |
12912 | #include <$ac_header> | |
12913 | _ACEOF | |
12914 | rm -f conftest.$ac_objext | |
12915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12917 | ac_status=$? |
ac1cb8d3 VS |
12918 | grep -v '^ *+' conftest.er1 >conftest.err |
12919 | rm -f conftest.er1 | |
12920 | cat conftest.err >&5 | |
a848cd7e SC |
12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12922 | (exit $ac_status); } && | |
d1c38808 | 12923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12925 | (eval $ac_try) 2>&5 | |
12926 | ac_status=$? | |
12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12928 | (exit $ac_status); }; } && | |
12929 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12931 | (eval $ac_try) 2>&5 | |
12932 | ac_status=$? | |
12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12934 | (exit $ac_status); }; }; then | |
12935 | ac_header_compiler=yes | |
12936 | else | |
12937 | echo "$as_me: failed program was:" >&5 | |
12938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12939 | ||
12940 | ac_header_compiler=no | |
12941 | fi | |
ac1cb8d3 | 12942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12943 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12944 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12945 | ||
12946 | # Is the header present? | |
12947 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12948 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12949 | cat >conftest.$ac_ext <<_ACEOF | |
12950 | /* confdefs.h. */ | |
12951 | _ACEOF | |
12952 | cat confdefs.h >>conftest.$ac_ext | |
12953 | cat >>conftest.$ac_ext <<_ACEOF | |
12954 | /* end confdefs.h. */ | |
12955 | #include <$ac_header> | |
12956 | _ACEOF | |
12957 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12958 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12959 | ac_status=$? | |
12960 | grep -v '^ *+' conftest.er1 >conftest.err | |
12961 | rm -f conftest.er1 | |
12962 | cat conftest.err >&5 | |
12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12964 | (exit $ac_status); } >/dev/null; then | |
12965 | if test -s conftest.err; then | |
12966 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12967 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12968 | else |
12969 | ac_cpp_err= | |
12970 | fi | |
12971 | else | |
12972 | ac_cpp_err=yes | |
12973 | fi | |
12974 | if test -z "$ac_cpp_err"; then | |
12975 | ac_header_preproc=yes | |
12976 | else | |
12977 | echo "$as_me: failed program was:" >&5 | |
12978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12979 | ||
12980 | ac_header_preproc=no | |
12981 | fi | |
12982 | rm -f conftest.err conftest.$ac_ext | |
12983 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12984 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12985 | ||
12986 | # So? What about this header? | |
ac1cb8d3 VS |
12987 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
12988 | yes:no: ) | |
a848cd7e SC |
12989 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12990 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
12991 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
12992 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12993 | ac_header_preproc=yes | |
a848cd7e | 12994 | ;; |
ac1cb8d3 | 12995 | no:yes:* ) |
a848cd7e SC |
12996 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12997 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
12998 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12999 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13000 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13001 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13002 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13003 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13005 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13006 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13007 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13008 | ( |
13009 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13010 | ## ----------------------------------------- ## |
13011 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13012 | ## ----------------------------------------- ## | |
a848cd7e SC |
13013 | _ASBOX |
13014 | ) | | |
13015 | sed "s/^/$as_me: WARNING: /" >&2 | |
13016 | ;; | |
13017 | esac | |
13018 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13019 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13022 | else | |
ac1cb8d3 | 13023 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13024 | fi |
13025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13026 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13027 | ||
13028 | fi | |
13029 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13030 | cat >>confdefs.h <<_ACEOF | |
13031 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13032 | _ACEOF | |
13033 | ||
13034 | fi | |
13035 | ||
13036 | done | |
13037 | ||
13038 | ||
13039 | for ac_header in malloc.h | |
13040 | do | |
13041 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13047 | fi | |
13048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13049 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13050 | else | |
13051 | # Is the header compilable? | |
13052 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13053 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13054 | cat >conftest.$ac_ext <<_ACEOF | |
13055 | /* confdefs.h. */ | |
13056 | _ACEOF | |
13057 | cat confdefs.h >>conftest.$ac_ext | |
13058 | cat >>conftest.$ac_ext <<_ACEOF | |
13059 | /* end confdefs.h. */ | |
13060 | $ac_includes_default | |
13061 | #include <$ac_header> | |
13062 | _ACEOF | |
13063 | rm -f conftest.$ac_objext | |
13064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13065 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13066 | ac_status=$? |
ac1cb8d3 VS |
13067 | grep -v '^ *+' conftest.er1 >conftest.err |
13068 | rm -f conftest.er1 | |
13069 | cat conftest.err >&5 | |
a848cd7e SC |
13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13071 | (exit $ac_status); } && | |
d1c38808 | 13072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13074 | (eval $ac_try) 2>&5 | |
13075 | ac_status=$? | |
13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13077 | (exit $ac_status); }; } && | |
13078 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13080 | (eval $ac_try) 2>&5 | |
13081 | ac_status=$? | |
13082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13083 | (exit $ac_status); }; }; then | |
13084 | ac_header_compiler=yes | |
13085 | else | |
13086 | echo "$as_me: failed program was:" >&5 | |
13087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13088 | ||
13089 | ac_header_compiler=no | |
13090 | fi | |
ac1cb8d3 | 13091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13092 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13093 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13094 | ||
13095 | # Is the header present? | |
13096 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13097 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13098 | cat >conftest.$ac_ext <<_ACEOF | |
13099 | /* confdefs.h. */ | |
13100 | _ACEOF | |
13101 | cat confdefs.h >>conftest.$ac_ext | |
13102 | cat >>conftest.$ac_ext <<_ACEOF | |
13103 | /* end confdefs.h. */ | |
13104 | #include <$ac_header> | |
13105 | _ACEOF | |
13106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13108 | ac_status=$? | |
13109 | grep -v '^ *+' conftest.er1 >conftest.err | |
13110 | rm -f conftest.er1 | |
13111 | cat conftest.err >&5 | |
13112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13113 | (exit $ac_status); } >/dev/null; then | |
13114 | if test -s conftest.err; then | |
13115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13116 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13117 | else |
13118 | ac_cpp_err= | |
13119 | fi | |
13120 | else | |
13121 | ac_cpp_err=yes | |
13122 | fi | |
13123 | if test -z "$ac_cpp_err"; then | |
13124 | ac_header_preproc=yes | |
13125 | else | |
13126 | echo "$as_me: failed program was:" >&5 | |
13127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13128 | ||
13129 | ac_header_preproc=no | |
13130 | fi | |
13131 | rm -f conftest.err conftest.$ac_ext | |
13132 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13133 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13134 | ||
13135 | # So? What about this header? | |
ac1cb8d3 VS |
13136 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13137 | yes:no: ) | |
a848cd7e SC |
13138 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13139 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13140 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13141 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13142 | ac_header_preproc=yes | |
a848cd7e | 13143 | ;; |
ac1cb8d3 | 13144 | no:yes:* ) |
a848cd7e SC |
13145 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13146 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13147 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13148 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13149 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13150 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13151 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13152 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13154 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13155 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13156 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13157 | ( |
13158 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13159 | ## ----------------------------------------- ## |
13160 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13161 | ## ----------------------------------------- ## | |
a848cd7e SC |
13162 | _ASBOX |
13163 | ) | | |
13164 | sed "s/^/$as_me: WARNING: /" >&2 | |
13165 | ;; | |
13166 | esac | |
13167 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13169 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13171 | else | |
ac1cb8d3 | 13172 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13173 | fi |
13174 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13175 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13176 | ||
13177 | fi | |
13178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13179 | cat >>confdefs.h <<_ACEOF | |
13180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13181 | _ACEOF | |
13182 | ||
13183 | fi | |
13184 | ||
13185 | done | |
13186 | ||
13187 | ||
13188 | for ac_header in unistd.h | |
13189 | do | |
13190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13196 | fi | |
13197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13199 | else | |
13200 | # Is the header compilable? | |
13201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13203 | cat >conftest.$ac_ext <<_ACEOF | |
13204 | /* confdefs.h. */ | |
13205 | _ACEOF | |
13206 | cat confdefs.h >>conftest.$ac_ext | |
13207 | cat >>conftest.$ac_ext <<_ACEOF | |
13208 | /* end confdefs.h. */ | |
13209 | $ac_includes_default | |
13210 | #include <$ac_header> | |
13211 | _ACEOF | |
13212 | rm -f conftest.$ac_objext | |
13213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13215 | ac_status=$? |
ac1cb8d3 VS |
13216 | grep -v '^ *+' conftest.er1 >conftest.err |
13217 | rm -f conftest.er1 | |
13218 | cat conftest.err >&5 | |
a848cd7e SC |
13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13220 | (exit $ac_status); } && | |
d1c38808 | 13221 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; } && | |
13227 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13229 | (eval $ac_try) 2>&5 | |
13230 | ac_status=$? | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); }; }; then | |
13233 | ac_header_compiler=yes | |
13234 | else | |
13235 | echo "$as_me: failed program was:" >&5 | |
13236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13237 | ||
13238 | ac_header_compiler=no | |
13239 | fi | |
ac1cb8d3 | 13240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13241 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13242 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13243 | ||
13244 | # Is the header present? | |
13245 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13246 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13247 | cat >conftest.$ac_ext <<_ACEOF | |
13248 | /* confdefs.h. */ | |
13249 | _ACEOF | |
13250 | cat confdefs.h >>conftest.$ac_ext | |
13251 | cat >>conftest.$ac_ext <<_ACEOF | |
13252 | /* end confdefs.h. */ | |
13253 | #include <$ac_header> | |
13254 | _ACEOF | |
13255 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13256 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13257 | ac_status=$? | |
13258 | grep -v '^ *+' conftest.er1 >conftest.err | |
13259 | rm -f conftest.er1 | |
13260 | cat conftest.err >&5 | |
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); } >/dev/null; then | |
13263 | if test -s conftest.err; then | |
13264 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13265 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13266 | else |
13267 | ac_cpp_err= | |
13268 | fi | |
13269 | else | |
13270 | ac_cpp_err=yes | |
13271 | fi | |
13272 | if test -z "$ac_cpp_err"; then | |
13273 | ac_header_preproc=yes | |
13274 | else | |
13275 | echo "$as_me: failed program was:" >&5 | |
13276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13277 | ||
13278 | ac_header_preproc=no | |
13279 | fi | |
13280 | rm -f conftest.err conftest.$ac_ext | |
13281 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13282 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13283 | ||
13284 | # So? What about this header? | |
ac1cb8d3 VS |
13285 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13286 | yes:no: ) | |
a848cd7e SC |
13287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13291 | ac_header_preproc=yes | |
a848cd7e | 13292 | ;; |
ac1cb8d3 | 13293 | no:yes:* ) |
a848cd7e SC |
13294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13306 | ( |
13307 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13308 | ## ----------------------------------------- ## |
13309 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13310 | ## ----------------------------------------- ## | |
a848cd7e SC |
13311 | _ASBOX |
13312 | ) | | |
13313 | sed "s/^/$as_me: WARNING: /" >&2 | |
13314 | ;; | |
13315 | esac | |
13316 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13317 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13318 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13320 | else | |
ac1cb8d3 | 13321 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13322 | fi |
13323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13325 | ||
13326 | fi | |
13327 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13328 | cat >>confdefs.h <<_ACEOF | |
13329 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13330 | _ACEOF | |
13331 | ||
13332 | fi | |
13333 | ||
13334 | done | |
13335 | ||
13336 | ||
13337 | for ac_header in wchar.h | |
13338 | do | |
13339 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13341 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13342 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13345 | fi | |
13346 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13347 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13348 | else | |
13349 | # Is the header compilable? | |
13350 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13351 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13352 | cat >conftest.$ac_ext <<_ACEOF | |
13353 | /* confdefs.h. */ | |
13354 | _ACEOF | |
13355 | cat confdefs.h >>conftest.$ac_ext | |
13356 | cat >>conftest.$ac_ext <<_ACEOF | |
13357 | /* end confdefs.h. */ | |
13358 | $ac_includes_default | |
13359 | #include <$ac_header> | |
13360 | _ACEOF | |
13361 | rm -f conftest.$ac_objext | |
13362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13364 | ac_status=$? |
ac1cb8d3 VS |
13365 | grep -v '^ *+' conftest.er1 >conftest.err |
13366 | rm -f conftest.er1 | |
13367 | cat conftest.err >&5 | |
a848cd7e SC |
13368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13369 | (exit $ac_status); } && | |
d1c38808 | 13370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13372 | (eval $ac_try) 2>&5 | |
13373 | ac_status=$? | |
13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13375 | (exit $ac_status); }; } && | |
13376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13378 | (eval $ac_try) 2>&5 | |
13379 | ac_status=$? | |
13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13381 | (exit $ac_status); }; }; then | |
13382 | ac_header_compiler=yes | |
13383 | else | |
13384 | echo "$as_me: failed program was:" >&5 | |
13385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13386 | ||
13387 | ac_header_compiler=no | |
13388 | fi | |
ac1cb8d3 | 13389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13390 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13391 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13392 | ||
13393 | # Is the header present? | |
13394 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13395 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13396 | cat >conftest.$ac_ext <<_ACEOF | |
13397 | /* confdefs.h. */ | |
13398 | _ACEOF | |
13399 | cat confdefs.h >>conftest.$ac_ext | |
13400 | cat >>conftest.$ac_ext <<_ACEOF | |
13401 | /* end confdefs.h. */ | |
13402 | #include <$ac_header> | |
13403 | _ACEOF | |
13404 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13405 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13406 | ac_status=$? | |
13407 | grep -v '^ *+' conftest.er1 >conftest.err | |
13408 | rm -f conftest.er1 | |
13409 | cat conftest.err >&5 | |
13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13411 | (exit $ac_status); } >/dev/null; then | |
13412 | if test -s conftest.err; then | |
13413 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13414 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13415 | else |
13416 | ac_cpp_err= | |
13417 | fi | |
13418 | else | |
13419 | ac_cpp_err=yes | |
13420 | fi | |
13421 | if test -z "$ac_cpp_err"; then | |
13422 | ac_header_preproc=yes | |
13423 | else | |
13424 | echo "$as_me: failed program was:" >&5 | |
13425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13426 | ||
13427 | ac_header_preproc=no | |
13428 | fi | |
13429 | rm -f conftest.err conftest.$ac_ext | |
13430 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13431 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13432 | ||
13433 | # So? What about this header? | |
ac1cb8d3 VS |
13434 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13435 | yes:no: ) | |
a848cd7e SC |
13436 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13437 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13439 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13440 | ac_header_preproc=yes | |
a848cd7e | 13441 | ;; |
ac1cb8d3 | 13442 | no:yes:* ) |
a848cd7e SC |
13443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13447 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13448 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13449 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13450 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13453 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13454 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13455 | ( |
13456 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13457 | ## ----------------------------------------- ## |
13458 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13459 | ## ----------------------------------------- ## | |
a848cd7e SC |
13460 | _ASBOX |
13461 | ) | | |
13462 | sed "s/^/$as_me: WARNING: /" >&2 | |
13463 | ;; | |
13464 | esac | |
13465 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13467 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13469 | else | |
ac1cb8d3 | 13470 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13471 | fi |
13472 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13473 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13474 | ||
13475 | fi | |
13476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13477 | cat >>confdefs.h <<_ACEOF | |
13478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13479 | _ACEOF | |
13480 | ||
13481 | fi | |
13482 | ||
13483 | done | |
13484 | ||
13485 | ||
13486 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13487 | ||
13488 | for ac_header in wcstr.h | |
13489 | do | |
13490 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13492 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13496 | fi | |
13497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13498 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13499 | else | |
13500 | # Is the header compilable? | |
13501 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13502 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13503 | cat >conftest.$ac_ext <<_ACEOF | |
13504 | /* confdefs.h. */ | |
13505 | _ACEOF | |
13506 | cat confdefs.h >>conftest.$ac_ext | |
13507 | cat >>conftest.$ac_ext <<_ACEOF | |
13508 | /* end confdefs.h. */ | |
13509 | $ac_includes_default | |
13510 | #include <$ac_header> | |
13511 | _ACEOF | |
13512 | rm -f conftest.$ac_objext | |
13513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13514 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13515 | ac_status=$? |
ac1cb8d3 VS |
13516 | grep -v '^ *+' conftest.er1 >conftest.err |
13517 | rm -f conftest.er1 | |
13518 | cat conftest.err >&5 | |
a848cd7e SC |
13519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13520 | (exit $ac_status); } && | |
d1c38808 | 13521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13523 | (eval $ac_try) 2>&5 | |
13524 | ac_status=$? | |
13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13526 | (exit $ac_status); }; } && | |
13527 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13529 | (eval $ac_try) 2>&5 | |
13530 | ac_status=$? | |
13531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13532 | (exit $ac_status); }; }; then | |
13533 | ac_header_compiler=yes | |
13534 | else | |
13535 | echo "$as_me: failed program was:" >&5 | |
13536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13537 | ||
13538 | ac_header_compiler=no | |
13539 | fi | |
ac1cb8d3 | 13540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13541 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13542 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13543 | ||
13544 | # Is the header present? | |
13545 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13546 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13547 | cat >conftest.$ac_ext <<_ACEOF | |
13548 | /* confdefs.h. */ | |
13549 | _ACEOF | |
13550 | cat confdefs.h >>conftest.$ac_ext | |
13551 | cat >>conftest.$ac_ext <<_ACEOF | |
13552 | /* end confdefs.h. */ | |
13553 | #include <$ac_header> | |
13554 | _ACEOF | |
13555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13557 | ac_status=$? | |
13558 | grep -v '^ *+' conftest.er1 >conftest.err | |
13559 | rm -f conftest.er1 | |
13560 | cat conftest.err >&5 | |
13561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13562 | (exit $ac_status); } >/dev/null; then | |
13563 | if test -s conftest.err; then | |
13564 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13565 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13566 | else |
13567 | ac_cpp_err= | |
13568 | fi | |
13569 | else | |
13570 | ac_cpp_err=yes | |
13571 | fi | |
13572 | if test -z "$ac_cpp_err"; then | |
13573 | ac_header_preproc=yes | |
13574 | else | |
13575 | echo "$as_me: failed program was:" >&5 | |
13576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13577 | ||
13578 | ac_header_preproc=no | |
13579 | fi | |
13580 | rm -f conftest.err conftest.$ac_ext | |
13581 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13582 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13583 | ||
13584 | # So? What about this header? | |
ac1cb8d3 VS |
13585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13586 | yes:no: ) | |
a848cd7e SC |
13587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13590 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13591 | ac_header_preproc=yes | |
a848cd7e | 13592 | ;; |
ac1cb8d3 | 13593 | no:yes:* ) |
a848cd7e SC |
13594 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13595 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13596 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13597 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13598 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13599 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13600 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13601 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13604 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13605 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13606 | ( |
13607 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13608 | ## ----------------------------------------- ## |
13609 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13610 | ## ----------------------------------------- ## | |
a848cd7e SC |
13611 | _ASBOX |
13612 | ) | | |
13613 | sed "s/^/$as_me: WARNING: /" >&2 | |
13614 | ;; | |
13615 | esac | |
13616 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13618 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13620 | else | |
ac1cb8d3 | 13621 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13622 | fi |
13623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13625 | ||
13626 | fi | |
13627 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13628 | cat >>confdefs.h <<_ACEOF | |
13629 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13630 | _ACEOF | |
13631 | ||
13632 | fi | |
13633 | ||
13634 | done | |
13635 | ||
13636 | fi | |
13637 | ||
13638 | ||
13639 | for ac_header in fnmatch.h | |
13640 | do | |
13641 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13643 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13644 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13645 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13647 | fi | |
13648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13649 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13650 | else | |
13651 | # Is the header compilable? | |
13652 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13653 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13654 | cat >conftest.$ac_ext <<_ACEOF | |
13655 | /* confdefs.h. */ | |
13656 | _ACEOF | |
13657 | cat confdefs.h >>conftest.$ac_ext | |
13658 | cat >>conftest.$ac_ext <<_ACEOF | |
13659 | /* end confdefs.h. */ | |
13660 | $ac_includes_default | |
13661 | #include <$ac_header> | |
13662 | _ACEOF | |
13663 | rm -f conftest.$ac_objext | |
13664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13665 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13666 | ac_status=$? |
ac1cb8d3 VS |
13667 | grep -v '^ *+' conftest.er1 >conftest.err |
13668 | rm -f conftest.er1 | |
13669 | cat conftest.err >&5 | |
a848cd7e SC |
13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13671 | (exit $ac_status); } && | |
d1c38808 | 13672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13674 | (eval $ac_try) 2>&5 | |
13675 | ac_status=$? | |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); }; } && | |
13678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13680 | (eval $ac_try) 2>&5 | |
13681 | ac_status=$? | |
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 | (exit $ac_status); }; }; then | |
13684 | ac_header_compiler=yes | |
13685 | else | |
13686 | echo "$as_me: failed program was:" >&5 | |
13687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13688 | ||
13689 | ac_header_compiler=no | |
13690 | fi | |
ac1cb8d3 | 13691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13692 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13693 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13694 | ||
13695 | # Is the header present? | |
13696 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13697 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13698 | cat >conftest.$ac_ext <<_ACEOF | |
13699 | /* confdefs.h. */ | |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
13704 | #include <$ac_header> | |
13705 | _ACEOF | |
13706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13708 | ac_status=$? | |
13709 | grep -v '^ *+' conftest.er1 >conftest.err | |
13710 | rm -f conftest.er1 | |
13711 | cat conftest.err >&5 | |
13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13713 | (exit $ac_status); } >/dev/null; then | |
13714 | if test -s conftest.err; then | |
13715 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13716 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13717 | else |
13718 | ac_cpp_err= | |
13719 | fi | |
13720 | else | |
13721 | ac_cpp_err=yes | |
13722 | fi | |
13723 | if test -z "$ac_cpp_err"; then | |
13724 | ac_header_preproc=yes | |
13725 | else | |
13726 | echo "$as_me: failed program was:" >&5 | |
13727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13728 | ||
13729 | ac_header_preproc=no | |
13730 | fi | |
13731 | rm -f conftest.err conftest.$ac_ext | |
13732 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13733 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13734 | ||
13735 | # So? What about this header? | |
ac1cb8d3 VS |
13736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13737 | yes:no: ) | |
a848cd7e SC |
13738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13742 | ac_header_preproc=yes | |
a848cd7e | 13743 | ;; |
ac1cb8d3 | 13744 | no:yes:* ) |
a848cd7e SC |
13745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
13747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
13753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
13755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
13757 | ( |
13758 | cat <<\_ASBOX | |
ac1cb8d3 VS |
13759 | ## ----------------------------------------- ## |
13760 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
13761 | ## ----------------------------------------- ## | |
a848cd7e SC |
13762 | _ASBOX |
13763 | ) | | |
13764 | sed "s/^/$as_me: WARNING: /" >&2 | |
13765 | ;; | |
13766 | esac | |
13767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13771 | else | |
ac1cb8d3 | 13772 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
13773 | fi |
13774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13776 | ||
13777 | fi | |
13778 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13779 | cat >>confdefs.h <<_ACEOF | |
13780 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13781 | _ACEOF | |
13782 | ||
13783 | fi | |
13784 | ||
13785 | done | |
13786 | ||
13787 | ||
13788 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13789 | ||
13790 | for ac_func in fnmatch | |
13791 | do | |
13792 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13793 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13794 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13795 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13797 | else | |
13798 | cat >conftest.$ac_ext <<_ACEOF | |
13799 | /* confdefs.h. */ | |
13800 | _ACEOF | |
13801 | cat confdefs.h >>conftest.$ac_ext | |
13802 | cat >>conftest.$ac_ext <<_ACEOF | |
13803 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
13804 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13805 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13806 | #define $ac_func innocuous_$ac_func | |
13807 | ||
a848cd7e SC |
13808 | /* System header to define __stub macros and hopefully few prototypes, |
13809 | which can conflict with char $ac_func (); below. | |
13810 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13811 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 13812 | |
a848cd7e SC |
13813 | #ifdef __STDC__ |
13814 | # include <limits.h> | |
13815 | #else | |
13816 | # include <assert.h> | |
13817 | #endif | |
ac1cb8d3 VS |
13818 | |
13819 | #undef $ac_func | |
13820 | ||
a848cd7e SC |
13821 | /* Override any gcc2 internal prototype to avoid an error. */ |
13822 | #ifdef __cplusplus | |
13823 | extern "C" | |
13824 | { | |
13825 | #endif | |
13826 | /* We use char because int might match the return type of a gcc2 | |
13827 | builtin and then its argument prototype would still apply. */ | |
13828 | char $ac_func (); | |
13829 | /* The GNU C library defines this for functions which it implements | |
13830 | to always fail with ENOSYS. Some functions are actually named | |
13831 | something starting with __ and the normal name is an alias. */ | |
13832 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13833 | choke me | |
13834 | #else | |
13835 | char (*f) () = $ac_func; | |
13836 | #endif | |
13837 | #ifdef __cplusplus | |
13838 | } | |
13839 | #endif | |
13840 | ||
13841 | int | |
13842 | main () | |
13843 | { | |
13844 | return f != $ac_func; | |
13845 | ; | |
13846 | return 0; | |
13847 | } | |
13848 | _ACEOF | |
13849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 13851 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 13852 | ac_status=$? |
ac1cb8d3 VS |
13853 | grep -v '^ *+' conftest.er1 >conftest.err |
13854 | rm -f conftest.er1 | |
13855 | cat conftest.err >&5 | |
a848cd7e SC |
13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13857 | (exit $ac_status); } && | |
d1c38808 | 13858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13860 | (eval $ac_try) 2>&5 | |
13861 | ac_status=$? | |
13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13863 | (exit $ac_status); }; } && | |
13864 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
13865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13866 | (eval $ac_try) 2>&5 | |
13867 | ac_status=$? | |
13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13869 | (exit $ac_status); }; }; then | |
13870 | eval "$as_ac_var=yes" | |
13871 | else | |
13872 | echo "$as_me: failed program was:" >&5 | |
13873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13874 | ||
13875 | eval "$as_ac_var=no" | |
13876 | fi | |
ac1cb8d3 VS |
13877 | rm -f conftest.err conftest.$ac_objext \ |
13878 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
13879 | fi |
13880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13882 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13883 | cat >>confdefs.h <<_ACEOF | |
13884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13885 | _ACEOF | |
13886 | ||
13887 | fi | |
13888 | done | |
13889 | ||
13890 | fi | |
13891 | ||
13892 | ||
13893 | for ac_header in langinfo.h | |
13894 | do | |
13895 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13901 | fi | |
13902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13903 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13904 | else | |
13905 | # Is the header compilable? | |
13906 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13907 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13908 | cat >conftest.$ac_ext <<_ACEOF | |
13909 | /* confdefs.h. */ | |
13910 | _ACEOF | |
13911 | cat confdefs.h >>conftest.$ac_ext | |
13912 | cat >>conftest.$ac_ext <<_ACEOF | |
13913 | /* end confdefs.h. */ | |
13914 | $ac_includes_default | |
13915 | #include <$ac_header> | |
13916 | _ACEOF | |
13917 | rm -f conftest.$ac_objext | |
13918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13919 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13920 | ac_status=$? |
ac1cb8d3 VS |
13921 | grep -v '^ *+' conftest.er1 >conftest.err |
13922 | rm -f conftest.er1 | |
13923 | cat conftest.err >&5 | |
a848cd7e SC |
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13925 | (exit $ac_status); } && | |
d1c38808 | 13926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13928 | (eval $ac_try) 2>&5 | |
13929 | ac_status=$? | |
13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13931 | (exit $ac_status); }; } && | |
13932 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13934 | (eval $ac_try) 2>&5 | |
13935 | ac_status=$? | |
13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13937 | (exit $ac_status); }; }; then | |
13938 | ac_header_compiler=yes | |
13939 | else | |
13940 | echo "$as_me: failed program was:" >&5 | |
13941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13942 | ||
13943 | ac_header_compiler=no | |
13944 | fi | |
ac1cb8d3 | 13945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13946 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13947 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13948 | ||
13949 | # Is the header present? | |
13950 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13951 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13952 | cat >conftest.$ac_ext <<_ACEOF | |
13953 | /* confdefs.h. */ | |
13954 | _ACEOF | |
13955 | cat confdefs.h >>conftest.$ac_ext | |
13956 | cat >>conftest.$ac_ext <<_ACEOF | |
13957 | /* end confdefs.h. */ | |
13958 | #include <$ac_header> | |
13959 | _ACEOF | |
13960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13962 | ac_status=$? | |
13963 | grep -v '^ *+' conftest.er1 >conftest.err | |
13964 | rm -f conftest.er1 | |
13965 | cat conftest.err >&5 | |
13966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13967 | (exit $ac_status); } >/dev/null; then | |
13968 | if test -s conftest.err; then | |
13969 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13970 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13971 | else |
13972 | ac_cpp_err= | |
13973 | fi | |
13974 | else | |
13975 | ac_cpp_err=yes | |
13976 | fi | |
13977 | if test -z "$ac_cpp_err"; then | |
13978 | ac_header_preproc=yes | |
13979 | else | |
13980 | echo "$as_me: failed program was:" >&5 | |
13981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13982 | ||
13983 | ac_header_preproc=no | |
13984 | fi | |
13985 | rm -f conftest.err conftest.$ac_ext | |
13986 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13987 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13988 | ||
13989 | # So? What about this header? | |
ac1cb8d3 VS |
13990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13991 | yes:no: ) | |
a848cd7e SC |
13992 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13993 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
13994 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13995 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13996 | ac_header_preproc=yes | |
a848cd7e | 13997 | ;; |
ac1cb8d3 | 13998 | no:yes:* ) |
a848cd7e SC |
13999 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14000 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14001 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14002 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14003 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14004 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14005 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14006 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14008 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14009 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14010 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14011 | ( |
14012 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14013 | ## ----------------------------------------- ## |
14014 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14015 | ## ----------------------------------------- ## | |
a848cd7e SC |
14016 | _ASBOX |
14017 | ) | | |
14018 | sed "s/^/$as_me: WARNING: /" >&2 | |
14019 | ;; | |
14020 | esac | |
14021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14025 | else | |
ac1cb8d3 | 14026 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14027 | fi |
14028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14030 | ||
14031 | fi | |
14032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14033 | cat >>confdefs.h <<_ACEOF | |
14034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14035 | _ACEOF | |
14036 | ||
14037 | fi | |
14038 | ||
14039 | done | |
14040 | ||
14041 | ||
14042 | case "${host}" in | |
14043 | *-pc-os2_emx | *-pc-os2-emx ) | |
14044 | if test $ac_cv_header_langinfo_h = "yes"; then | |
14045 | LIBS="$LIBS -lintl" | |
14046 | fi | |
14047 | ;; | |
14048 | esac | |
14049 | ||
14050 | if test "$wxUSE_GUI" = "yes"; then | |
14051 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
14052 | ||
14053 | for ac_header in X11/Xlib.h | |
14054 | do | |
14055 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14061 | fi | |
14062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14064 | else | |
14065 | # Is the header compilable? | |
14066 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14067 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14068 | cat >conftest.$ac_ext <<_ACEOF | |
14069 | /* confdefs.h. */ | |
14070 | _ACEOF | |
14071 | cat confdefs.h >>conftest.$ac_ext | |
14072 | cat >>conftest.$ac_ext <<_ACEOF | |
14073 | /* end confdefs.h. */ | |
14074 | $ac_includes_default | |
14075 | #include <$ac_header> | |
14076 | _ACEOF | |
14077 | rm -f conftest.$ac_objext | |
14078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14079 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14080 | ac_status=$? |
ac1cb8d3 VS |
14081 | grep -v '^ *+' conftest.er1 >conftest.err |
14082 | rm -f conftest.er1 | |
14083 | cat conftest.err >&5 | |
a848cd7e SC |
14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14085 | (exit $ac_status); } && | |
d1c38808 | 14086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14088 | (eval $ac_try) 2>&5 | |
14089 | ac_status=$? | |
14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14091 | (exit $ac_status); }; } && | |
14092 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14094 | (eval $ac_try) 2>&5 | |
14095 | ac_status=$? | |
14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14097 | (exit $ac_status); }; }; then | |
14098 | ac_header_compiler=yes | |
14099 | else | |
14100 | echo "$as_me: failed program was:" >&5 | |
14101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14102 | ||
14103 | ac_header_compiler=no | |
14104 | fi | |
ac1cb8d3 | 14105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
14107 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14108 | ||
14109 | # Is the header present? | |
14110 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14112 | cat >conftest.$ac_ext <<_ACEOF | |
14113 | /* confdefs.h. */ | |
14114 | _ACEOF | |
14115 | cat confdefs.h >>conftest.$ac_ext | |
14116 | cat >>conftest.$ac_ext <<_ACEOF | |
14117 | /* end confdefs.h. */ | |
14118 | #include <$ac_header> | |
14119 | _ACEOF | |
14120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14122 | ac_status=$? | |
14123 | grep -v '^ *+' conftest.er1 >conftest.err | |
14124 | rm -f conftest.er1 | |
14125 | cat conftest.err >&5 | |
14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14127 | (exit $ac_status); } >/dev/null; then | |
14128 | if test -s conftest.err; then | |
14129 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 14130 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
14131 | else |
14132 | ac_cpp_err= | |
14133 | fi | |
14134 | else | |
14135 | ac_cpp_err=yes | |
14136 | fi | |
14137 | if test -z "$ac_cpp_err"; then | |
14138 | ac_header_preproc=yes | |
14139 | else | |
14140 | echo "$as_me: failed program was:" >&5 | |
14141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14142 | ||
14143 | ac_header_preproc=no | |
14144 | fi | |
14145 | rm -f conftest.err conftest.$ac_ext | |
14146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14147 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14148 | ||
14149 | # So? What about this header? | |
ac1cb8d3 VS |
14150 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14151 | yes:no: ) | |
a848cd7e SC |
14152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
14154 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14155 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14156 | ac_header_preproc=yes | |
a848cd7e | 14157 | ;; |
ac1cb8d3 | 14158 | no:yes:* ) |
a848cd7e SC |
14159 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14160 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
14161 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14162 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14163 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14164 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14165 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14166 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
14167 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
14168 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
14169 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14170 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
14171 | ( |
14172 | cat <<\_ASBOX | |
ac1cb8d3 VS |
14173 | ## ----------------------------------------- ## |
14174 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
14175 | ## ----------------------------------------- ## | |
a848cd7e SC |
14176 | _ASBOX |
14177 | ) | | |
14178 | sed "s/^/$as_me: WARNING: /" >&2 | |
14179 | ;; | |
14180 | esac | |
14181 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14182 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14183 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14185 | else | |
ac1cb8d3 | 14186 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
14187 | fi |
14188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14190 | ||
14191 | fi | |
14192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14193 | cat >>confdefs.h <<_ACEOF | |
14194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14195 | _ACEOF | |
14196 | ||
14197 | fi | |
14198 | ||
14199 | done | |
14200 | ||
14201 | ||
14202 | for ac_header in X11/XKBlib.h | |
14203 | do | |
14204 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14209 | else | |
14210 | cat >conftest.$ac_ext <<_ACEOF | |
14211 | /* confdefs.h. */ | |
14212 | _ACEOF | |
14213 | cat confdefs.h >>conftest.$ac_ext | |
14214 | cat >>conftest.$ac_ext <<_ACEOF | |
14215 | /* end confdefs.h. */ | |
14216 | ||
14217 | #if HAVE_X11_XLIB_H | |
14218 | #include <X11/Xlib.h> | |
14219 | #endif | |
14220 | ||
14221 | ||
14222 | #include <$ac_header> | |
14223 | _ACEOF | |
14224 | rm -f conftest.$ac_objext | |
14225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14227 | ac_status=$? |
ac1cb8d3 VS |
14228 | grep -v '^ *+' conftest.er1 >conftest.err |
14229 | rm -f conftest.er1 | |
14230 | cat conftest.err >&5 | |
a848cd7e SC |
14231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14232 | (exit $ac_status); } && | |
d1c38808 | 14233 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14235 | (eval $ac_try) 2>&5 | |
14236 | ac_status=$? | |
14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14238 | (exit $ac_status); }; } && | |
14239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14241 | (eval $ac_try) 2>&5 | |
14242 | ac_status=$? | |
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14244 | (exit $ac_status); }; }; then | |
14245 | eval "$as_ac_Header=yes" | |
14246 | else | |
14247 | echo "$as_me: failed program was:" >&5 | |
14248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14249 | ||
14250 | eval "$as_ac_Header=no" | |
14251 | fi | |
ac1cb8d3 | 14252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14253 | fi |
14254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14256 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14257 | cat >>confdefs.h <<_ACEOF | |
14258 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14259 | _ACEOF | |
14260 | ||
14261 | fi | |
14262 | ||
14263 | done | |
14264 | ||
14265 | fi | |
14266 | fi | |
14267 | ||
14268 | ||
14269 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
14270 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
14271 | if test "${ac_cv_c_const+set}" = set; then | |
14272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14273 | else | |
14274 | cat >conftest.$ac_ext <<_ACEOF | |
14275 | /* confdefs.h. */ | |
14276 | _ACEOF | |
14277 | cat confdefs.h >>conftest.$ac_ext | |
14278 | cat >>conftest.$ac_ext <<_ACEOF | |
14279 | /* end confdefs.h. */ | |
14280 | ||
14281 | int | |
14282 | main () | |
14283 | { | |
14284 | /* FIXME: Include the comments suggested by Paul. */ | |
14285 | #ifndef __cplusplus | |
14286 | /* Ultrix mips cc rejects this. */ | |
14287 | typedef int charset[2]; | |
14288 | const charset x; | |
14289 | /* SunOS 4.1.1 cc rejects this. */ | |
14290 | char const *const *ccp; | |
14291 | char **p; | |
14292 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14293 | struct point {int x, y;}; | |
14294 | static struct point const zero = {0,0}; | |
14295 | /* AIX XL C 1.02.0.0 rejects this. | |
14296 | It does not let you subtract one const X* pointer from another in | |
14297 | an arm of an if-expression whose if-part is not a constant | |
14298 | expression */ | |
14299 | const char *g = "string"; | |
14300 | ccp = &g + (g ? g-g : 0); | |
14301 | /* HPUX 7.0 cc rejects these. */ | |
14302 | ++ccp; | |
14303 | p = (char**) ccp; | |
14304 | ccp = (char const *const *) p; | |
14305 | { /* SCO 3.2v4 cc rejects this. */ | |
14306 | char *t; | |
14307 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
14308 | ||
14309 | *t++ = 0; | |
14310 | } | |
14311 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14312 | int x[] = {25, 17}; | |
14313 | const int *foo = &x[0]; | |
14314 | ++foo; | |
14315 | } | |
14316 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14317 | typedef const int *iptr; | |
14318 | iptr p = 0; | |
14319 | ++p; | |
14320 | } | |
14321 | { /* AIX XL C 1.02.0.0 rejects this saying | |
14322 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
14323 | struct s { int j; const int *ap[3]; }; | |
14324 | struct s *b; b->j = 5; | |
14325 | } | |
14326 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14327 | const int foo = 10; | |
14328 | } | |
14329 | #endif | |
14330 | ||
14331 | ; | |
14332 | return 0; | |
14333 | } | |
14334 | _ACEOF | |
14335 | rm -f conftest.$ac_objext | |
14336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14338 | ac_status=$? |
ac1cb8d3 VS |
14339 | grep -v '^ *+' conftest.er1 >conftest.err |
14340 | rm -f conftest.er1 | |
14341 | cat conftest.err >&5 | |
a848cd7e SC |
14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14343 | (exit $ac_status); } && | |
d1c38808 | 14344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14346 | (eval $ac_try) 2>&5 | |
14347 | ac_status=$? | |
14348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14349 | (exit $ac_status); }; } && | |
14350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14352 | (eval $ac_try) 2>&5 | |
14353 | ac_status=$? | |
14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14355 | (exit $ac_status); }; }; then | |
14356 | ac_cv_c_const=yes | |
14357 | else | |
14358 | echo "$as_me: failed program was:" >&5 | |
14359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14360 | ||
14361 | ac_cv_c_const=no | |
14362 | fi | |
ac1cb8d3 | 14363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14364 | fi |
14365 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
14366 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
14367 | if test $ac_cv_c_const = no; then | |
14368 | ||
14369 | cat >>confdefs.h <<\_ACEOF | |
14370 | #define const | |
14371 | _ACEOF | |
14372 | ||
14373 | fi | |
14374 | ||
14375 | echo "$as_me:$LINENO: checking for inline" >&5 | |
14376 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
14377 | if test "${ac_cv_c_inline+set}" = set; then | |
14378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14379 | else | |
14380 | ac_cv_c_inline=no | |
14381 | for ac_kw in inline __inline__ __inline; do | |
14382 | cat >conftest.$ac_ext <<_ACEOF | |
14383 | /* confdefs.h. */ | |
14384 | _ACEOF | |
14385 | cat confdefs.h >>conftest.$ac_ext | |
14386 | cat >>conftest.$ac_ext <<_ACEOF | |
14387 | /* end confdefs.h. */ | |
14388 | #ifndef __cplusplus | |
14389 | typedef int foo_t; | |
14390 | static $ac_kw foo_t static_foo () {return 0; } | |
14391 | $ac_kw foo_t foo () {return 0; } | |
14392 | #endif | |
14393 | ||
14394 | _ACEOF | |
14395 | rm -f conftest.$ac_objext | |
14396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14398 | ac_status=$? |
ac1cb8d3 VS |
14399 | grep -v '^ *+' conftest.er1 >conftest.err |
14400 | rm -f conftest.er1 | |
14401 | cat conftest.err >&5 | |
a848cd7e SC |
14402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14403 | (exit $ac_status); } && | |
d1c38808 | 14404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14406 | (eval $ac_try) 2>&5 | |
14407 | ac_status=$? | |
14408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14409 | (exit $ac_status); }; } && | |
14410 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14412 | (eval $ac_try) 2>&5 | |
14413 | ac_status=$? | |
14414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14415 | (exit $ac_status); }; }; then | |
14416 | ac_cv_c_inline=$ac_kw; break | |
14417 | else | |
14418 | echo "$as_me: failed program was:" >&5 | |
14419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14420 | ||
14421 | fi | |
ac1cb8d3 | 14422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14423 | done |
14424 | ||
14425 | fi | |
14426 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
14427 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
14428 | |
14429 | ||
a848cd7e SC |
14430 | case $ac_cv_c_inline in |
14431 | inline | yes) ;; | |
ac1cb8d3 VS |
14432 | *) |
14433 | case $ac_cv_c_inline in | |
14434 | no) ac_val=;; | |
14435 | *) ac_val=$ac_cv_c_inline;; | |
14436 | esac | |
14437 | cat >>confdefs.h <<_ACEOF | |
14438 | #ifndef __cplusplus | |
14439 | #define inline $ac_val | |
14440 | #endif | |
de59c161 | 14441 | _ACEOF |
ac1cb8d3 | 14442 | ;; |
a848cd7e SC |
14443 | esac |
14444 | ||
14445 | ||
14446 | echo "$as_me:$LINENO: checking for char" >&5 | |
14447 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
14448 | if test "${ac_cv_type_char+set}" = set; then | |
14449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14450 | else | |
14451 | cat >conftest.$ac_ext <<_ACEOF | |
14452 | /* confdefs.h. */ | |
14453 | _ACEOF | |
14454 | cat confdefs.h >>conftest.$ac_ext | |
14455 | cat >>conftest.$ac_ext <<_ACEOF | |
14456 | /* end confdefs.h. */ | |
14457 | $ac_includes_default | |
14458 | int | |
14459 | main () | |
14460 | { | |
14461 | if ((char *) 0) | |
14462 | return 0; | |
14463 | if (sizeof (char)) | |
14464 | return 0; | |
14465 | ; | |
14466 | return 0; | |
14467 | } | |
14468 | _ACEOF | |
14469 | rm -f conftest.$ac_objext | |
14470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14471 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14472 | ac_status=$? |
ac1cb8d3 VS |
14473 | grep -v '^ *+' conftest.er1 >conftest.err |
14474 | rm -f conftest.er1 | |
14475 | cat conftest.err >&5 | |
a848cd7e SC |
14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14477 | (exit $ac_status); } && | |
d1c38808 | 14478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14480 | (eval $ac_try) 2>&5 | |
14481 | ac_status=$? | |
14482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14483 | (exit $ac_status); }; } && | |
14484 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14486 | (eval $ac_try) 2>&5 | |
14487 | ac_status=$? | |
14488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14489 | (exit $ac_status); }; }; then | |
14490 | ac_cv_type_char=yes | |
14491 | else | |
14492 | echo "$as_me: failed program was:" >&5 | |
14493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14494 | ||
14495 | ac_cv_type_char=no | |
14496 | fi | |
ac1cb8d3 | 14497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14498 | fi |
14499 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14500 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14501 | ||
14502 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14503 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14504 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14506 | else | |
14507 | if test "$ac_cv_type_char" = yes; then | |
14508 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14509 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14510 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14511 | # This bug is HP SR number 8606223364. | |
14512 | if test "$cross_compiling" = yes; then | |
14513 | # Depending upon the size, compute the lo and hi bounds. | |
14514 | cat >conftest.$ac_ext <<_ACEOF | |
14515 | /* confdefs.h. */ | |
14516 | _ACEOF | |
14517 | cat confdefs.h >>conftest.$ac_ext | |
14518 | cat >>conftest.$ac_ext <<_ACEOF | |
14519 | /* end confdefs.h. */ | |
14520 | $ac_includes_default | |
14521 | int | |
14522 | main () | |
14523 | { | |
14524 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14525 | test_array [0] = 0 | |
14526 | ||
14527 | ; | |
14528 | return 0; | |
14529 | } | |
14530 | _ACEOF | |
14531 | rm -f conftest.$ac_objext | |
14532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14534 | ac_status=$? |
ac1cb8d3 VS |
14535 | grep -v '^ *+' conftest.er1 >conftest.err |
14536 | rm -f conftest.er1 | |
14537 | cat conftest.err >&5 | |
a848cd7e SC |
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14539 | (exit $ac_status); } && | |
d1c38808 | 14540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14542 | (eval $ac_try) 2>&5 | |
14543 | ac_status=$? | |
14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14545 | (exit $ac_status); }; } && | |
14546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14548 | (eval $ac_try) 2>&5 | |
14549 | ac_status=$? | |
14550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14551 | (exit $ac_status); }; }; then | |
14552 | ac_lo=0 ac_mid=0 | |
14553 | while :; do | |
14554 | cat >conftest.$ac_ext <<_ACEOF | |
14555 | /* confdefs.h. */ | |
14556 | _ACEOF | |
14557 | cat confdefs.h >>conftest.$ac_ext | |
14558 | cat >>conftest.$ac_ext <<_ACEOF | |
14559 | /* end confdefs.h. */ | |
14560 | $ac_includes_default | |
14561 | int | |
14562 | main () | |
14563 | { | |
14564 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14565 | test_array [0] = 0 | |
14566 | ||
14567 | ; | |
14568 | return 0; | |
14569 | } | |
14570 | _ACEOF | |
14571 | rm -f conftest.$ac_objext | |
14572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14573 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14574 | ac_status=$? |
ac1cb8d3 VS |
14575 | grep -v '^ *+' conftest.er1 >conftest.err |
14576 | rm -f conftest.er1 | |
14577 | cat conftest.err >&5 | |
a848cd7e SC |
14578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14579 | (exit $ac_status); } && | |
d1c38808 | 14580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14582 | (eval $ac_try) 2>&5 | |
14583 | ac_status=$? | |
14584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14585 | (exit $ac_status); }; } && | |
14586 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14588 | (eval $ac_try) 2>&5 | |
14589 | ac_status=$? | |
14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14591 | (exit $ac_status); }; }; then | |
14592 | ac_hi=$ac_mid; break | |
14593 | else | |
14594 | echo "$as_me: failed program was:" >&5 | |
14595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14596 | ||
14597 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
14598 | if test $ac_lo -le $ac_mid; then |
14599 | ac_lo= ac_hi= | |
14600 | break | |
14601 | fi | |
14602 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14603 | fi |
ac1cb8d3 | 14604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14605 | done |
14606 | else | |
14607 | echo "$as_me: failed program was:" >&5 | |
14608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14609 | ||
14610 | cat >conftest.$ac_ext <<_ACEOF | |
14611 | /* confdefs.h. */ | |
14612 | _ACEOF | |
14613 | cat confdefs.h >>conftest.$ac_ext | |
14614 | cat >>conftest.$ac_ext <<_ACEOF | |
14615 | /* end confdefs.h. */ | |
14616 | $ac_includes_default | |
14617 | int | |
14618 | main () | |
14619 | { | |
14620 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14621 | test_array [0] = 0 | |
14622 | ||
14623 | ; | |
14624 | return 0; | |
14625 | } | |
14626 | _ACEOF | |
14627 | rm -f conftest.$ac_objext | |
14628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14630 | ac_status=$? |
ac1cb8d3 VS |
14631 | grep -v '^ *+' conftest.er1 >conftest.err |
14632 | rm -f conftest.er1 | |
14633 | cat conftest.err >&5 | |
a848cd7e SC |
14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14635 | (exit $ac_status); } && | |
d1c38808 | 14636 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14638 | (eval $ac_try) 2>&5 | |
14639 | ac_status=$? | |
14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14641 | (exit $ac_status); }; } && | |
14642 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14644 | (eval $ac_try) 2>&5 | |
14645 | ac_status=$? | |
14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14647 | (exit $ac_status); }; }; then | |
14648 | ac_hi=-1 ac_mid=-1 | |
14649 | while :; do | |
14650 | cat >conftest.$ac_ext <<_ACEOF | |
14651 | /* confdefs.h. */ | |
14652 | _ACEOF | |
14653 | cat confdefs.h >>conftest.$ac_ext | |
14654 | cat >>conftest.$ac_ext <<_ACEOF | |
14655 | /* end confdefs.h. */ | |
14656 | $ac_includes_default | |
14657 | int | |
14658 | main () | |
14659 | { | |
14660 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14661 | test_array [0] = 0 | |
14662 | ||
14663 | ; | |
14664 | return 0; | |
14665 | } | |
14666 | _ACEOF | |
14667 | rm -f conftest.$ac_objext | |
14668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14669 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14670 | ac_status=$? |
ac1cb8d3 VS |
14671 | grep -v '^ *+' conftest.er1 >conftest.err |
14672 | rm -f conftest.er1 | |
14673 | cat conftest.err >&5 | |
a848cd7e SC |
14674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14675 | (exit $ac_status); } && | |
d1c38808 | 14676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14678 | (eval $ac_try) 2>&5 | |
14679 | ac_status=$? | |
14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14681 | (exit $ac_status); }; } && | |
14682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14684 | (eval $ac_try) 2>&5 | |
14685 | ac_status=$? | |
14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14687 | (exit $ac_status); }; }; then | |
14688 | ac_lo=$ac_mid; break | |
14689 | else | |
14690 | echo "$as_me: failed program was:" >&5 | |
14691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14692 | ||
14693 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
14694 | if test $ac_mid -le $ac_hi; then |
14695 | ac_lo= ac_hi= | |
14696 | break | |
14697 | fi | |
14698 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14699 | fi |
ac1cb8d3 | 14700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14701 | done |
14702 | else | |
14703 | echo "$as_me: failed program was:" >&5 | |
14704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14705 | ||
14706 | ac_lo= ac_hi= | |
14707 | fi | |
ac1cb8d3 | 14708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14709 | fi |
ac1cb8d3 | 14710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14711 | # Binary search between lo and hi bounds. |
14712 | while test "x$ac_lo" != "x$ac_hi"; do | |
14713 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14714 | cat >conftest.$ac_ext <<_ACEOF | |
14715 | /* confdefs.h. */ | |
14716 | _ACEOF | |
14717 | cat confdefs.h >>conftest.$ac_ext | |
14718 | cat >>conftest.$ac_ext <<_ACEOF | |
14719 | /* end confdefs.h. */ | |
14720 | $ac_includes_default | |
14721 | int | |
14722 | main () | |
14723 | { | |
14724 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14725 | test_array [0] = 0 | |
14726 | ||
14727 | ; | |
14728 | return 0; | |
14729 | } | |
14730 | _ACEOF | |
14731 | rm -f conftest.$ac_objext | |
14732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14734 | ac_status=$? |
ac1cb8d3 VS |
14735 | grep -v '^ *+' conftest.er1 >conftest.err |
14736 | rm -f conftest.er1 | |
14737 | cat conftest.err >&5 | |
a848cd7e SC |
14738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14739 | (exit $ac_status); } && | |
d1c38808 | 14740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14742 | (eval $ac_try) 2>&5 | |
14743 | ac_status=$? | |
14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14745 | (exit $ac_status); }; } && | |
14746 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14748 | (eval $ac_try) 2>&5 | |
14749 | ac_status=$? | |
14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14751 | (exit $ac_status); }; }; then | |
14752 | ac_hi=$ac_mid | |
14753 | else | |
14754 | echo "$as_me: failed program was:" >&5 | |
14755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14756 | ||
14757 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14758 | fi | |
ac1cb8d3 | 14759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14760 | done |
14761 | case $ac_lo in | |
14762 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14763 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14764 | See \`config.log' for more details." >&5 | |
14765 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14766 | See \`config.log' for more details." >&2;} | |
14767 | { (exit 1); exit 1; }; } ;; | |
14768 | esac | |
14769 | else | |
14770 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
14771 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
14772 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
14773 | { (exit 1); exit 1; }; } |
14774 | else | |
14775 | cat >conftest.$ac_ext <<_ACEOF | |
14776 | /* confdefs.h. */ | |
14777 | _ACEOF | |
14778 | cat confdefs.h >>conftest.$ac_ext | |
14779 | cat >>conftest.$ac_ext <<_ACEOF | |
14780 | /* end confdefs.h. */ | |
14781 | $ac_includes_default | |
14782 | long longval () { return (long) (sizeof (char)); } | |
14783 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14784 | #include <stdio.h> | |
14785 | #include <stdlib.h> | |
14786 | int | |
14787 | main () | |
14788 | { | |
14789 | ||
14790 | FILE *f = fopen ("conftest.val", "w"); | |
14791 | if (! f) | |
14792 | exit (1); | |
14793 | if (((long) (sizeof (char))) < 0) | |
14794 | { | |
14795 | long i = longval (); | |
14796 | if (i != ((long) (sizeof (char)))) | |
14797 | exit (1); | |
14798 | fprintf (f, "%ld\n", i); | |
14799 | } | |
14800 | else | |
14801 | { | |
14802 | unsigned long i = ulongval (); | |
14803 | if (i != ((long) (sizeof (char)))) | |
14804 | exit (1); | |
14805 | fprintf (f, "%lu\n", i); | |
14806 | } | |
14807 | exit (ferror (f) || fclose (f) != 0); | |
14808 | ||
14809 | ; | |
14810 | return 0; | |
14811 | } | |
14812 | _ACEOF | |
14813 | rm -f conftest$ac_exeext | |
14814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14815 | (eval $ac_link) 2>&5 | |
14816 | ac_status=$? | |
14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14820 | (eval $ac_try) 2>&5 | |
14821 | ac_status=$? | |
14822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14823 | (exit $ac_status); }; }; then | |
14824 | ac_cv_sizeof_char=`cat conftest.val` | |
14825 | else | |
14826 | echo "$as_me: program exited with status $ac_status" >&5 | |
14827 | echo "$as_me: failed program was:" >&5 | |
14828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14829 | ||
14830 | ( exit $ac_status ) | |
14831 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14832 | See \`config.log' for more details." >&5 | |
14833 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14834 | See \`config.log' for more details." >&2;} | |
14835 | { (exit 1); exit 1; }; } | |
14836 | fi | |
ac1cb8d3 | 14837 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14838 | fi |
14839 | fi | |
14840 | rm -f conftest.val | |
14841 | else | |
14842 | ac_cv_sizeof_char=0 | |
14843 | fi | |
14844 | fi | |
14845 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14846 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14847 | cat >>confdefs.h <<_ACEOF | |
14848 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14849 | _ACEOF | |
14850 | ||
14851 | ||
14852 | echo "$as_me:$LINENO: checking for short" >&5 | |
14853 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14854 | if test "${ac_cv_type_short+set}" = set; then | |
14855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14856 | else | |
14857 | cat >conftest.$ac_ext <<_ACEOF | |
14858 | /* confdefs.h. */ | |
14859 | _ACEOF | |
14860 | cat confdefs.h >>conftest.$ac_ext | |
14861 | cat >>conftest.$ac_ext <<_ACEOF | |
14862 | /* end confdefs.h. */ | |
14863 | $ac_includes_default | |
14864 | int | |
14865 | main () | |
14866 | { | |
14867 | if ((short *) 0) | |
14868 | return 0; | |
14869 | if (sizeof (short)) | |
14870 | return 0; | |
14871 | ; | |
14872 | return 0; | |
14873 | } | |
14874 | _ACEOF | |
14875 | rm -f conftest.$ac_objext | |
14876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14878 | ac_status=$? |
ac1cb8d3 VS |
14879 | grep -v '^ *+' conftest.er1 >conftest.err |
14880 | rm -f conftest.er1 | |
14881 | cat conftest.err >&5 | |
a848cd7e SC |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14883 | (exit $ac_status); } && | |
d1c38808 | 14884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14886 | (eval $ac_try) 2>&5 | |
14887 | ac_status=$? | |
14888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14889 | (exit $ac_status); }; } && | |
14890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14892 | (eval $ac_try) 2>&5 | |
14893 | ac_status=$? | |
14894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14895 | (exit $ac_status); }; }; then | |
14896 | ac_cv_type_short=yes | |
14897 | else | |
14898 | echo "$as_me: failed program was:" >&5 | |
14899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14900 | ||
14901 | ac_cv_type_short=no | |
14902 | fi | |
ac1cb8d3 | 14903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14904 | fi |
14905 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14906 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14907 | ||
14908 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14909 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14910 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14912 | else | |
14913 | if test "$ac_cv_type_short" = yes; then | |
14914 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14915 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14916 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14917 | # This bug is HP SR number 8606223364. | |
14918 | if test "$cross_compiling" = yes; then | |
14919 | # Depending upon the size, compute the lo and hi bounds. | |
14920 | cat >conftest.$ac_ext <<_ACEOF | |
14921 | /* confdefs.h. */ | |
14922 | _ACEOF | |
14923 | cat confdefs.h >>conftest.$ac_ext | |
14924 | cat >>conftest.$ac_ext <<_ACEOF | |
14925 | /* end confdefs.h. */ | |
14926 | $ac_includes_default | |
14927 | int | |
14928 | main () | |
14929 | { | |
14930 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14931 | test_array [0] = 0 | |
14932 | ||
14933 | ; | |
14934 | return 0; | |
14935 | } | |
14936 | _ACEOF | |
14937 | rm -f conftest.$ac_objext | |
14938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14940 | ac_status=$? |
ac1cb8d3 VS |
14941 | grep -v '^ *+' conftest.er1 >conftest.err |
14942 | rm -f conftest.er1 | |
14943 | cat conftest.err >&5 | |
a848cd7e SC |
14944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14945 | (exit $ac_status); } && | |
d1c38808 | 14946 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14948 | (eval $ac_try) 2>&5 | |
14949 | ac_status=$? | |
14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14951 | (exit $ac_status); }; } && | |
14952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14954 | (eval $ac_try) 2>&5 | |
14955 | ac_status=$? | |
14956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14957 | (exit $ac_status); }; }; then | |
14958 | ac_lo=0 ac_mid=0 | |
14959 | while :; do | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
14961 | /* confdefs.h. */ | |
14962 | _ACEOF | |
14963 | cat confdefs.h >>conftest.$ac_ext | |
14964 | cat >>conftest.$ac_ext <<_ACEOF | |
14965 | /* end confdefs.h. */ | |
14966 | $ac_includes_default | |
14967 | int | |
14968 | main () | |
14969 | { | |
14970 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14971 | test_array [0] = 0 | |
14972 | ||
14973 | ; | |
14974 | return 0; | |
14975 | } | |
14976 | _ACEOF | |
14977 | rm -f conftest.$ac_objext | |
14978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14980 | ac_status=$? |
ac1cb8d3 VS |
14981 | grep -v '^ *+' conftest.er1 >conftest.err |
14982 | rm -f conftest.er1 | |
14983 | cat conftest.err >&5 | |
a848cd7e SC |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14985 | (exit $ac_status); } && | |
d1c38808 | 14986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14988 | (eval $ac_try) 2>&5 | |
14989 | ac_status=$? | |
14990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14991 | (exit $ac_status); }; } && | |
14992 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; }; then | |
14998 | ac_hi=$ac_mid; break | |
14999 | else | |
15000 | echo "$as_me: failed program was:" >&5 | |
15001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15002 | ||
15003 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15004 | if test $ac_lo -le $ac_mid; then |
15005 | ac_lo= ac_hi= | |
15006 | break | |
15007 | fi | |
15008 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15009 | fi |
ac1cb8d3 | 15010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15011 | done |
15012 | else | |
15013 | echo "$as_me: failed program was:" >&5 | |
15014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15015 | ||
15016 | cat >conftest.$ac_ext <<_ACEOF | |
15017 | /* confdefs.h. */ | |
15018 | _ACEOF | |
15019 | cat confdefs.h >>conftest.$ac_ext | |
15020 | cat >>conftest.$ac_ext <<_ACEOF | |
15021 | /* end confdefs.h. */ | |
15022 | $ac_includes_default | |
15023 | int | |
15024 | main () | |
15025 | { | |
15026 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15027 | test_array [0] = 0 | |
15028 | ||
15029 | ; | |
15030 | return 0; | |
15031 | } | |
15032 | _ACEOF | |
15033 | rm -f conftest.$ac_objext | |
15034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15035 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15036 | ac_status=$? |
ac1cb8d3 VS |
15037 | grep -v '^ *+' conftest.er1 >conftest.err |
15038 | rm -f conftest.er1 | |
15039 | cat conftest.err >&5 | |
a848cd7e SC |
15040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15041 | (exit $ac_status); } && | |
d1c38808 | 15042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15044 | (eval $ac_try) 2>&5 | |
15045 | ac_status=$? | |
15046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15047 | (exit $ac_status); }; } && | |
15048 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15050 | (eval $ac_try) 2>&5 | |
15051 | ac_status=$? | |
15052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15053 | (exit $ac_status); }; }; then | |
15054 | ac_hi=-1 ac_mid=-1 | |
15055 | while :; do | |
15056 | cat >conftest.$ac_ext <<_ACEOF | |
15057 | /* confdefs.h. */ | |
15058 | _ACEOF | |
15059 | cat confdefs.h >>conftest.$ac_ext | |
15060 | cat >>conftest.$ac_ext <<_ACEOF | |
15061 | /* end confdefs.h. */ | |
15062 | $ac_includes_default | |
15063 | int | |
15064 | main () | |
15065 | { | |
15066 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15067 | test_array [0] = 0 | |
15068 | ||
15069 | ; | |
15070 | return 0; | |
15071 | } | |
15072 | _ACEOF | |
15073 | rm -f conftest.$ac_objext | |
15074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15076 | ac_status=$? |
ac1cb8d3 VS |
15077 | grep -v '^ *+' conftest.er1 >conftest.err |
15078 | rm -f conftest.er1 | |
15079 | cat conftest.err >&5 | |
a848cd7e SC |
15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15081 | (exit $ac_status); } && | |
d1c38808 | 15082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15084 | (eval $ac_try) 2>&5 | |
15085 | ac_status=$? | |
15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15087 | (exit $ac_status); }; } && | |
15088 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15090 | (eval $ac_try) 2>&5 | |
15091 | ac_status=$? | |
15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15093 | (exit $ac_status); }; }; then | |
15094 | ac_lo=$ac_mid; break | |
15095 | else | |
15096 | echo "$as_me: failed program was:" >&5 | |
15097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15098 | ||
15099 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15100 | if test $ac_mid -le $ac_hi; then |
15101 | ac_lo= ac_hi= | |
15102 | break | |
15103 | fi | |
15104 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15105 | fi |
ac1cb8d3 | 15106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15107 | done |
15108 | else | |
15109 | echo "$as_me: failed program was:" >&5 | |
15110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15111 | ||
15112 | ac_lo= ac_hi= | |
15113 | fi | |
ac1cb8d3 | 15114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15115 | fi |
ac1cb8d3 | 15116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15117 | # Binary search between lo and hi bounds. |
15118 | while test "x$ac_lo" != "x$ac_hi"; do | |
15119 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15120 | cat >conftest.$ac_ext <<_ACEOF | |
15121 | /* confdefs.h. */ | |
15122 | _ACEOF | |
15123 | cat confdefs.h >>conftest.$ac_ext | |
15124 | cat >>conftest.$ac_ext <<_ACEOF | |
15125 | /* end confdefs.h. */ | |
15126 | $ac_includes_default | |
15127 | int | |
15128 | main () | |
15129 | { | |
15130 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15131 | test_array [0] = 0 | |
15132 | ||
15133 | ; | |
15134 | return 0; | |
15135 | } | |
15136 | _ACEOF | |
15137 | rm -f conftest.$ac_objext | |
15138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15139 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15140 | ac_status=$? |
ac1cb8d3 VS |
15141 | grep -v '^ *+' conftest.er1 >conftest.err |
15142 | rm -f conftest.er1 | |
15143 | cat conftest.err >&5 | |
a848cd7e SC |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15145 | (exit $ac_status); } && | |
d1c38808 | 15146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15148 | (eval $ac_try) 2>&5 | |
15149 | ac_status=$? | |
15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15151 | (exit $ac_status); }; } && | |
15152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15157 | (exit $ac_status); }; }; then | |
15158 | ac_hi=$ac_mid | |
15159 | else | |
15160 | echo "$as_me: failed program was:" >&5 | |
15161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15162 | ||
15163 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15164 | fi | |
ac1cb8d3 | 15165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15166 | done |
15167 | case $ac_lo in | |
15168 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15169 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15170 | See \`config.log' for more details." >&5 | |
15171 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15172 | See \`config.log' for more details." >&2;} | |
15173 | { (exit 1); exit 1; }; } ;; | |
15174 | esac | |
15175 | else | |
15176 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
15177 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15178 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15179 | { (exit 1); exit 1; }; } |
15180 | else | |
15181 | cat >conftest.$ac_ext <<_ACEOF | |
15182 | /* confdefs.h. */ | |
15183 | _ACEOF | |
15184 | cat confdefs.h >>conftest.$ac_ext | |
15185 | cat >>conftest.$ac_ext <<_ACEOF | |
15186 | /* end confdefs.h. */ | |
15187 | $ac_includes_default | |
15188 | long longval () { return (long) (sizeof (short)); } | |
15189 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15190 | #include <stdio.h> | |
15191 | #include <stdlib.h> | |
15192 | int | |
15193 | main () | |
15194 | { | |
15195 | ||
15196 | FILE *f = fopen ("conftest.val", "w"); | |
15197 | if (! f) | |
15198 | exit (1); | |
15199 | if (((long) (sizeof (short))) < 0) | |
15200 | { | |
15201 | long i = longval (); | |
15202 | if (i != ((long) (sizeof (short)))) | |
15203 | exit (1); | |
15204 | fprintf (f, "%ld\n", i); | |
15205 | } | |
15206 | else | |
15207 | { | |
15208 | unsigned long i = ulongval (); | |
15209 | if (i != ((long) (sizeof (short)))) | |
15210 | exit (1); | |
15211 | fprintf (f, "%lu\n", i); | |
15212 | } | |
15213 | exit (ferror (f) || fclose (f) != 0); | |
15214 | ||
15215 | ; | |
15216 | return 0; | |
15217 | } | |
15218 | _ACEOF | |
15219 | rm -f conftest$ac_exeext | |
15220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15221 | (eval $ac_link) 2>&5 | |
15222 | ac_status=$? | |
15223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15226 | (eval $ac_try) 2>&5 | |
15227 | ac_status=$? | |
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15229 | (exit $ac_status); }; }; then | |
15230 | ac_cv_sizeof_short=`cat conftest.val` | |
15231 | else | |
15232 | echo "$as_me: program exited with status $ac_status" >&5 | |
15233 | echo "$as_me: failed program was:" >&5 | |
15234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15235 | ||
15236 | ( exit $ac_status ) | |
15237 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15238 | See \`config.log' for more details." >&5 | |
15239 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15240 | See \`config.log' for more details." >&2;} | |
15241 | { (exit 1); exit 1; }; } | |
15242 | fi | |
ac1cb8d3 | 15243 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15244 | fi |
15245 | fi | |
15246 | rm -f conftest.val | |
15247 | else | |
15248 | ac_cv_sizeof_short=0 | |
15249 | fi | |
15250 | fi | |
15251 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15252 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15253 | cat >>confdefs.h <<_ACEOF | |
15254 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15255 | _ACEOF | |
15256 | ||
15257 | ||
15258 | echo "$as_me:$LINENO: checking for void *" >&5 | |
15259 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
15260 | if test "${ac_cv_type_void_p+set}" = set; then | |
15261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15262 | else | |
15263 | cat >conftest.$ac_ext <<_ACEOF | |
15264 | /* confdefs.h. */ | |
15265 | _ACEOF | |
15266 | cat confdefs.h >>conftest.$ac_ext | |
15267 | cat >>conftest.$ac_ext <<_ACEOF | |
15268 | /* end confdefs.h. */ | |
15269 | $ac_includes_default | |
15270 | int | |
15271 | main () | |
15272 | { | |
15273 | if ((void * *) 0) | |
15274 | return 0; | |
15275 | if (sizeof (void *)) | |
15276 | return 0; | |
15277 | ; | |
15278 | return 0; | |
15279 | } | |
15280 | _ACEOF | |
15281 | rm -f conftest.$ac_objext | |
15282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15284 | ac_status=$? |
ac1cb8d3 VS |
15285 | grep -v '^ *+' conftest.er1 >conftest.err |
15286 | rm -f conftest.er1 | |
15287 | cat conftest.err >&5 | |
a848cd7e SC |
15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15289 | (exit $ac_status); } && | |
d1c38808 | 15290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15292 | (eval $ac_try) 2>&5 | |
15293 | ac_status=$? | |
15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15295 | (exit $ac_status); }; } && | |
15296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15298 | (eval $ac_try) 2>&5 | |
15299 | ac_status=$? | |
15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15301 | (exit $ac_status); }; }; then | |
15302 | ac_cv_type_void_p=yes | |
15303 | else | |
15304 | echo "$as_me: failed program was:" >&5 | |
15305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15306 | ||
15307 | ac_cv_type_void_p=no | |
15308 | fi | |
ac1cb8d3 | 15309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15310 | fi |
15311 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
15312 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
15313 | ||
15314 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
15315 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
15316 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
15317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15318 | else | |
15319 | if test "$ac_cv_type_void_p" = yes; then | |
15320 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15321 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15322 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15323 | # This bug is HP SR number 8606223364. | |
15324 | if test "$cross_compiling" = yes; then | |
15325 | # Depending upon the size, compute the lo and hi bounds. | |
15326 | cat >conftest.$ac_ext <<_ACEOF | |
15327 | /* confdefs.h. */ | |
15328 | _ACEOF | |
15329 | cat confdefs.h >>conftest.$ac_ext | |
15330 | cat >>conftest.$ac_ext <<_ACEOF | |
15331 | /* end confdefs.h. */ | |
15332 | $ac_includes_default | |
15333 | int | |
15334 | main () | |
15335 | { | |
15336 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15337 | test_array [0] = 0 | |
15338 | ||
15339 | ; | |
15340 | return 0; | |
15341 | } | |
15342 | _ACEOF | |
15343 | rm -f conftest.$ac_objext | |
15344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15345 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15346 | ac_status=$? |
ac1cb8d3 VS |
15347 | grep -v '^ *+' conftest.er1 >conftest.err |
15348 | rm -f conftest.er1 | |
15349 | cat conftest.err >&5 | |
a848cd7e SC |
15350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15351 | (exit $ac_status); } && | |
d1c38808 | 15352 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15354 | (eval $ac_try) 2>&5 | |
15355 | ac_status=$? | |
15356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15357 | (exit $ac_status); }; } && | |
15358 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15360 | (eval $ac_try) 2>&5 | |
15361 | ac_status=$? | |
15362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15363 | (exit $ac_status); }; }; then | |
15364 | ac_lo=0 ac_mid=0 | |
15365 | while :; do | |
15366 | cat >conftest.$ac_ext <<_ACEOF | |
15367 | /* confdefs.h. */ | |
15368 | _ACEOF | |
15369 | cat confdefs.h >>conftest.$ac_ext | |
15370 | cat >>conftest.$ac_ext <<_ACEOF | |
15371 | /* end confdefs.h. */ | |
15372 | $ac_includes_default | |
15373 | int | |
15374 | main () | |
15375 | { | |
15376 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15377 | test_array [0] = 0 | |
15378 | ||
15379 | ; | |
15380 | return 0; | |
15381 | } | |
15382 | _ACEOF | |
15383 | rm -f conftest.$ac_objext | |
15384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15386 | ac_status=$? |
ac1cb8d3 VS |
15387 | grep -v '^ *+' conftest.er1 >conftest.err |
15388 | rm -f conftest.er1 | |
15389 | cat conftest.err >&5 | |
a848cd7e SC |
15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15391 | (exit $ac_status); } && | |
d1c38808 | 15392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15394 | (eval $ac_try) 2>&5 | |
15395 | ac_status=$? | |
15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15397 | (exit $ac_status); }; } && | |
15398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15400 | (eval $ac_try) 2>&5 | |
15401 | ac_status=$? | |
15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15403 | (exit $ac_status); }; }; then | |
15404 | ac_hi=$ac_mid; break | |
15405 | else | |
15406 | echo "$as_me: failed program was:" >&5 | |
15407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15408 | ||
15409 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15410 | if test $ac_lo -le $ac_mid; then |
15411 | ac_lo= ac_hi= | |
15412 | break | |
15413 | fi | |
15414 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15415 | fi |
ac1cb8d3 | 15416 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15417 | done |
15418 | else | |
15419 | echo "$as_me: failed program was:" >&5 | |
15420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15421 | ||
15422 | cat >conftest.$ac_ext <<_ACEOF | |
15423 | /* confdefs.h. */ | |
15424 | _ACEOF | |
15425 | cat confdefs.h >>conftest.$ac_ext | |
15426 | cat >>conftest.$ac_ext <<_ACEOF | |
15427 | /* end confdefs.h. */ | |
15428 | $ac_includes_default | |
15429 | int | |
15430 | main () | |
15431 | { | |
15432 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15433 | test_array [0] = 0 | |
15434 | ||
15435 | ; | |
15436 | return 0; | |
15437 | } | |
15438 | _ACEOF | |
15439 | rm -f conftest.$ac_objext | |
15440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15441 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15442 | ac_status=$? |
ac1cb8d3 VS |
15443 | grep -v '^ *+' conftest.er1 >conftest.err |
15444 | rm -f conftest.er1 | |
15445 | cat conftest.err >&5 | |
a848cd7e SC |
15446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15447 | (exit $ac_status); } && | |
d1c38808 | 15448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15450 | (eval $ac_try) 2>&5 | |
15451 | ac_status=$? | |
15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15453 | (exit $ac_status); }; } && | |
15454 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15456 | (eval $ac_try) 2>&5 | |
15457 | ac_status=$? | |
15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15459 | (exit $ac_status); }; }; then | |
15460 | ac_hi=-1 ac_mid=-1 | |
15461 | while :; do | |
15462 | cat >conftest.$ac_ext <<_ACEOF | |
15463 | /* confdefs.h. */ | |
15464 | _ACEOF | |
15465 | cat confdefs.h >>conftest.$ac_ext | |
15466 | cat >>conftest.$ac_ext <<_ACEOF | |
15467 | /* end confdefs.h. */ | |
15468 | $ac_includes_default | |
15469 | int | |
15470 | main () | |
15471 | { | |
15472 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15473 | test_array [0] = 0 | |
15474 | ||
15475 | ; | |
15476 | return 0; | |
15477 | } | |
15478 | _ACEOF | |
15479 | rm -f conftest.$ac_objext | |
15480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15481 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15482 | ac_status=$? |
ac1cb8d3 VS |
15483 | grep -v '^ *+' conftest.er1 >conftest.err |
15484 | rm -f conftest.er1 | |
15485 | cat conftest.err >&5 | |
a848cd7e SC |
15486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15487 | (exit $ac_status); } && | |
d1c38808 | 15488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15490 | (eval $ac_try) 2>&5 | |
15491 | ac_status=$? | |
15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15493 | (exit $ac_status); }; } && | |
15494 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15496 | (eval $ac_try) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); }; }; then | |
15500 | ac_lo=$ac_mid; break | |
15501 | else | |
15502 | echo "$as_me: failed program was:" >&5 | |
15503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15504 | ||
15505 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15506 | if test $ac_mid -le $ac_hi; then |
15507 | ac_lo= ac_hi= | |
15508 | break | |
15509 | fi | |
15510 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15511 | fi |
ac1cb8d3 | 15512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15513 | done |
15514 | else | |
15515 | echo "$as_me: failed program was:" >&5 | |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15517 | ||
15518 | ac_lo= ac_hi= | |
15519 | fi | |
ac1cb8d3 | 15520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15521 | fi |
ac1cb8d3 | 15522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15523 | # Binary search between lo and hi bounds. |
15524 | while test "x$ac_lo" != "x$ac_hi"; do | |
15525 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15526 | cat >conftest.$ac_ext <<_ACEOF | |
15527 | /* confdefs.h. */ | |
15528 | _ACEOF | |
15529 | cat confdefs.h >>conftest.$ac_ext | |
15530 | cat >>conftest.$ac_ext <<_ACEOF | |
15531 | /* end confdefs.h. */ | |
15532 | $ac_includes_default | |
15533 | int | |
15534 | main () | |
15535 | { | |
15536 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15537 | test_array [0] = 0 | |
15538 | ||
15539 | ; | |
15540 | return 0; | |
15541 | } | |
15542 | _ACEOF | |
15543 | rm -f conftest.$ac_objext | |
15544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15545 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15546 | ac_status=$? |
ac1cb8d3 VS |
15547 | grep -v '^ *+' conftest.er1 >conftest.err |
15548 | rm -f conftest.er1 | |
15549 | cat conftest.err >&5 | |
a848cd7e SC |
15550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15551 | (exit $ac_status); } && | |
d1c38808 | 15552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15554 | (eval $ac_try) 2>&5 | |
15555 | ac_status=$? | |
15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15557 | (exit $ac_status); }; } && | |
15558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15560 | (eval $ac_try) 2>&5 | |
15561 | ac_status=$? | |
15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15563 | (exit $ac_status); }; }; then | |
15564 | ac_hi=$ac_mid | |
15565 | else | |
15566 | echo "$as_me: failed program was:" >&5 | |
15567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15568 | ||
15569 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15570 | fi | |
ac1cb8d3 | 15571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15572 | done |
15573 | case $ac_lo in | |
15574 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
15575 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15576 | See \`config.log' for more details." >&5 | |
15577 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15578 | See \`config.log' for more details." >&2;} | |
15579 | { (exit 1); exit 1; }; } ;; | |
15580 | esac | |
15581 | else | |
15582 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
15583 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15584 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15585 | { (exit 1); exit 1; }; } |
15586 | else | |
15587 | cat >conftest.$ac_ext <<_ACEOF | |
15588 | /* confdefs.h. */ | |
15589 | _ACEOF | |
15590 | cat confdefs.h >>conftest.$ac_ext | |
15591 | cat >>conftest.$ac_ext <<_ACEOF | |
15592 | /* end confdefs.h. */ | |
15593 | $ac_includes_default | |
15594 | long longval () { return (long) (sizeof (void *)); } | |
15595 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15596 | #include <stdio.h> | |
15597 | #include <stdlib.h> | |
15598 | int | |
15599 | main () | |
15600 | { | |
15601 | ||
15602 | FILE *f = fopen ("conftest.val", "w"); | |
15603 | if (! f) | |
15604 | exit (1); | |
15605 | if (((long) (sizeof (void *))) < 0) | |
15606 | { | |
15607 | long i = longval (); | |
15608 | if (i != ((long) (sizeof (void *)))) | |
15609 | exit (1); | |
15610 | fprintf (f, "%ld\n", i); | |
15611 | } | |
15612 | else | |
15613 | { | |
15614 | unsigned long i = ulongval (); | |
15615 | if (i != ((long) (sizeof (void *)))) | |
15616 | exit (1); | |
15617 | fprintf (f, "%lu\n", i); | |
15618 | } | |
15619 | exit (ferror (f) || fclose (f) != 0); | |
15620 | ||
15621 | ; | |
15622 | return 0; | |
15623 | } | |
15624 | _ACEOF | |
15625 | rm -f conftest$ac_exeext | |
15626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15627 | (eval $ac_link) 2>&5 | |
15628 | ac_status=$? | |
15629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15630 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15632 | (eval $ac_try) 2>&5 | |
15633 | ac_status=$? | |
15634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15635 | (exit $ac_status); }; }; then | |
15636 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15637 | else | |
15638 | echo "$as_me: program exited with status $ac_status" >&5 | |
15639 | echo "$as_me: failed program was:" >&5 | |
15640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15641 | ||
15642 | ( exit $ac_status ) | |
15643 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15644 | See \`config.log' for more details." >&5 | |
15645 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15646 | See \`config.log' for more details." >&2;} | |
15647 | { (exit 1); exit 1; }; } | |
15648 | fi | |
ac1cb8d3 | 15649 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15650 | fi |
15651 | fi | |
15652 | rm -f conftest.val | |
15653 | else | |
15654 | ac_cv_sizeof_void_p=0 | |
15655 | fi | |
15656 | fi | |
15657 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15658 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15659 | cat >>confdefs.h <<_ACEOF | |
15660 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15661 | _ACEOF | |
15662 | ||
15663 | ||
15664 | echo "$as_me:$LINENO: checking for int" >&5 | |
15665 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15666 | if test "${ac_cv_type_int+set}" = set; then | |
15667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15668 | else | |
15669 | cat >conftest.$ac_ext <<_ACEOF | |
15670 | /* confdefs.h. */ | |
15671 | _ACEOF | |
15672 | cat confdefs.h >>conftest.$ac_ext | |
15673 | cat >>conftest.$ac_ext <<_ACEOF | |
15674 | /* end confdefs.h. */ | |
15675 | $ac_includes_default | |
15676 | int | |
15677 | main () | |
15678 | { | |
15679 | if ((int *) 0) | |
15680 | return 0; | |
15681 | if (sizeof (int)) | |
15682 | return 0; | |
15683 | ; | |
15684 | return 0; | |
15685 | } | |
15686 | _ACEOF | |
15687 | rm -f conftest.$ac_objext | |
15688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15689 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15690 | ac_status=$? |
ac1cb8d3 VS |
15691 | grep -v '^ *+' conftest.er1 >conftest.err |
15692 | rm -f conftest.er1 | |
15693 | cat conftest.err >&5 | |
a848cd7e SC |
15694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15695 | (exit $ac_status); } && | |
d1c38808 | 15696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15698 | (eval $ac_try) 2>&5 | |
15699 | ac_status=$? | |
15700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15701 | (exit $ac_status); }; } && | |
15702 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15704 | (eval $ac_try) 2>&5 | |
15705 | ac_status=$? | |
15706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15707 | (exit $ac_status); }; }; then | |
15708 | ac_cv_type_int=yes | |
15709 | else | |
15710 | echo "$as_me: failed program was:" >&5 | |
15711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15712 | ||
15713 | ac_cv_type_int=no | |
15714 | fi | |
ac1cb8d3 | 15715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15716 | fi |
15717 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15718 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15719 | ||
15720 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15721 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15722 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15724 | else | |
15725 | if test "$ac_cv_type_int" = yes; then | |
15726 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15727 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15728 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15729 | # This bug is HP SR number 8606223364. | |
15730 | if test "$cross_compiling" = yes; then | |
15731 | # Depending upon the size, compute the lo and hi bounds. | |
15732 | cat >conftest.$ac_ext <<_ACEOF | |
15733 | /* confdefs.h. */ | |
15734 | _ACEOF | |
15735 | cat confdefs.h >>conftest.$ac_ext | |
15736 | cat >>conftest.$ac_ext <<_ACEOF | |
15737 | /* end confdefs.h. */ | |
15738 | $ac_includes_default | |
15739 | int | |
15740 | main () | |
15741 | { | |
15742 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15743 | test_array [0] = 0 | |
15744 | ||
15745 | ; | |
15746 | return 0; | |
15747 | } | |
15748 | _ACEOF | |
15749 | rm -f conftest.$ac_objext | |
15750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15752 | ac_status=$? |
ac1cb8d3 VS |
15753 | grep -v '^ *+' conftest.er1 >conftest.err |
15754 | rm -f conftest.er1 | |
15755 | cat conftest.err >&5 | |
a848cd7e SC |
15756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15757 | (exit $ac_status); } && | |
d1c38808 | 15758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15760 | (eval $ac_try) 2>&5 | |
15761 | ac_status=$? | |
15762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15763 | (exit $ac_status); }; } && | |
15764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15766 | (eval $ac_try) 2>&5 | |
15767 | ac_status=$? | |
15768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15769 | (exit $ac_status); }; }; then | |
15770 | ac_lo=0 ac_mid=0 | |
15771 | while :; do | |
15772 | cat >conftest.$ac_ext <<_ACEOF | |
15773 | /* confdefs.h. */ | |
15774 | _ACEOF | |
15775 | cat confdefs.h >>conftest.$ac_ext | |
15776 | cat >>conftest.$ac_ext <<_ACEOF | |
15777 | /* end confdefs.h. */ | |
15778 | $ac_includes_default | |
15779 | int | |
15780 | main () | |
15781 | { | |
15782 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15783 | test_array [0] = 0 | |
15784 | ||
15785 | ; | |
15786 | return 0; | |
15787 | } | |
15788 | _ACEOF | |
15789 | rm -f conftest.$ac_objext | |
15790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15792 | ac_status=$? |
ac1cb8d3 VS |
15793 | grep -v '^ *+' conftest.er1 >conftest.err |
15794 | rm -f conftest.er1 | |
15795 | cat conftest.err >&5 | |
a848cd7e SC |
15796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15797 | (exit $ac_status); } && | |
d1c38808 | 15798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15800 | (eval $ac_try) 2>&5 | |
15801 | ac_status=$? | |
15802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15803 | (exit $ac_status); }; } && | |
15804 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15806 | (eval $ac_try) 2>&5 | |
15807 | ac_status=$? | |
15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15809 | (exit $ac_status); }; }; then | |
15810 | ac_hi=$ac_mid; break | |
15811 | else | |
15812 | echo "$as_me: failed program was:" >&5 | |
15813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15814 | ||
15815 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
15816 | if test $ac_lo -le $ac_mid; then |
15817 | ac_lo= ac_hi= | |
15818 | break | |
15819 | fi | |
15820 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15821 | fi |
ac1cb8d3 | 15822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15823 | done |
15824 | else | |
15825 | echo "$as_me: failed program was:" >&5 | |
15826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15827 | ||
15828 | cat >conftest.$ac_ext <<_ACEOF | |
15829 | /* confdefs.h. */ | |
15830 | _ACEOF | |
15831 | cat confdefs.h >>conftest.$ac_ext | |
15832 | cat >>conftest.$ac_ext <<_ACEOF | |
15833 | /* end confdefs.h. */ | |
15834 | $ac_includes_default | |
15835 | int | |
15836 | main () | |
15837 | { | |
15838 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15839 | test_array [0] = 0 | |
15840 | ||
15841 | ; | |
15842 | return 0; | |
15843 | } | |
15844 | _ACEOF | |
15845 | rm -f conftest.$ac_objext | |
15846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15848 | ac_status=$? |
ac1cb8d3 VS |
15849 | grep -v '^ *+' conftest.er1 >conftest.err |
15850 | rm -f conftest.er1 | |
15851 | cat conftest.err >&5 | |
a848cd7e SC |
15852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15853 | (exit $ac_status); } && | |
d1c38808 | 15854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15856 | (eval $ac_try) 2>&5 | |
15857 | ac_status=$? | |
15858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15859 | (exit $ac_status); }; } && | |
15860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15862 | (eval $ac_try) 2>&5 | |
15863 | ac_status=$? | |
15864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15865 | (exit $ac_status); }; }; then | |
15866 | ac_hi=-1 ac_mid=-1 | |
15867 | while :; do | |
15868 | cat >conftest.$ac_ext <<_ACEOF | |
15869 | /* confdefs.h. */ | |
15870 | _ACEOF | |
15871 | cat confdefs.h >>conftest.$ac_ext | |
15872 | cat >>conftest.$ac_ext <<_ACEOF | |
15873 | /* end confdefs.h. */ | |
15874 | $ac_includes_default | |
15875 | int | |
15876 | main () | |
15877 | { | |
15878 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15879 | test_array [0] = 0 | |
15880 | ||
15881 | ; | |
15882 | return 0; | |
15883 | } | |
15884 | _ACEOF | |
15885 | rm -f conftest.$ac_objext | |
15886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15887 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15888 | ac_status=$? |
ac1cb8d3 VS |
15889 | grep -v '^ *+' conftest.er1 >conftest.err |
15890 | rm -f conftest.er1 | |
15891 | cat conftest.err >&5 | |
a848cd7e SC |
15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15893 | (exit $ac_status); } && | |
d1c38808 | 15894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15896 | (eval $ac_try) 2>&5 | |
15897 | ac_status=$? | |
15898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15899 | (exit $ac_status); }; } && | |
15900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15902 | (eval $ac_try) 2>&5 | |
15903 | ac_status=$? | |
15904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15905 | (exit $ac_status); }; }; then | |
15906 | ac_lo=$ac_mid; break | |
15907 | else | |
15908 | echo "$as_me: failed program was:" >&5 | |
15909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15910 | ||
15911 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
15912 | if test $ac_mid -le $ac_hi; then |
15913 | ac_lo= ac_hi= | |
15914 | break | |
15915 | fi | |
15916 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15917 | fi |
ac1cb8d3 | 15918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15919 | done |
15920 | else | |
15921 | echo "$as_me: failed program was:" >&5 | |
15922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15923 | ||
15924 | ac_lo= ac_hi= | |
15925 | fi | |
ac1cb8d3 | 15926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15927 | fi |
ac1cb8d3 | 15928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15929 | # Binary search between lo and hi bounds. |
15930 | while test "x$ac_lo" != "x$ac_hi"; do | |
15931 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15932 | cat >conftest.$ac_ext <<_ACEOF | |
15933 | /* confdefs.h. */ | |
15934 | _ACEOF | |
15935 | cat confdefs.h >>conftest.$ac_ext | |
15936 | cat >>conftest.$ac_ext <<_ACEOF | |
15937 | /* end confdefs.h. */ | |
15938 | $ac_includes_default | |
15939 | int | |
15940 | main () | |
15941 | { | |
15942 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15943 | test_array [0] = 0 | |
15944 | ||
15945 | ; | |
15946 | return 0; | |
15947 | } | |
15948 | _ACEOF | |
15949 | rm -f conftest.$ac_objext | |
15950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15951 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15952 | ac_status=$? |
ac1cb8d3 VS |
15953 | grep -v '^ *+' conftest.er1 >conftest.err |
15954 | rm -f conftest.er1 | |
15955 | cat conftest.err >&5 | |
a848cd7e SC |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15957 | (exit $ac_status); } && | |
d1c38808 | 15958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15960 | (eval $ac_try) 2>&5 | |
15961 | ac_status=$? | |
15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15963 | (exit $ac_status); }; } && | |
15964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15966 | (eval $ac_try) 2>&5 | |
15967 | ac_status=$? | |
15968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15969 | (exit $ac_status); }; }; then | |
15970 | ac_hi=$ac_mid | |
15971 | else | |
15972 | echo "$as_me: failed program was:" >&5 | |
15973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15974 | ||
15975 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15976 | fi | |
ac1cb8d3 | 15977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15978 | done |
15979 | case $ac_lo in | |
15980 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15981 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15982 | See \`config.log' for more details." >&5 | |
15983 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15984 | See \`config.log' for more details." >&2;} | |
15985 | { (exit 1); exit 1; }; } ;; | |
15986 | esac | |
15987 | else | |
15988 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
15989 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
15990 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
15991 | { (exit 1); exit 1; }; } |
15992 | else | |
15993 | cat >conftest.$ac_ext <<_ACEOF | |
15994 | /* confdefs.h. */ | |
15995 | _ACEOF | |
15996 | cat confdefs.h >>conftest.$ac_ext | |
15997 | cat >>conftest.$ac_ext <<_ACEOF | |
15998 | /* end confdefs.h. */ | |
15999 | $ac_includes_default | |
16000 | long longval () { return (long) (sizeof (int)); } | |
16001 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16002 | #include <stdio.h> | |
16003 | #include <stdlib.h> | |
16004 | int | |
16005 | main () | |
16006 | { | |
16007 | ||
16008 | FILE *f = fopen ("conftest.val", "w"); | |
16009 | if (! f) | |
16010 | exit (1); | |
16011 | if (((long) (sizeof (int))) < 0) | |
16012 | { | |
16013 | long i = longval (); | |
16014 | if (i != ((long) (sizeof (int)))) | |
16015 | exit (1); | |
16016 | fprintf (f, "%ld\n", i); | |
16017 | } | |
16018 | else | |
16019 | { | |
16020 | unsigned long i = ulongval (); | |
16021 | if (i != ((long) (sizeof (int)))) | |
16022 | exit (1); | |
16023 | fprintf (f, "%lu\n", i); | |
16024 | } | |
16025 | exit (ferror (f) || fclose (f) != 0); | |
16026 | ||
16027 | ; | |
16028 | return 0; | |
16029 | } | |
16030 | _ACEOF | |
16031 | rm -f conftest$ac_exeext | |
16032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16033 | (eval $ac_link) 2>&5 | |
16034 | ac_status=$? | |
16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16036 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16038 | (eval $ac_try) 2>&5 | |
16039 | ac_status=$? | |
16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16041 | (exit $ac_status); }; }; then | |
16042 | ac_cv_sizeof_int=`cat conftest.val` | |
16043 | else | |
16044 | echo "$as_me: program exited with status $ac_status" >&5 | |
16045 | echo "$as_me: failed program was:" >&5 | |
16046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16047 | ||
16048 | ( exit $ac_status ) | |
16049 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
16050 | See \`config.log' for more details." >&5 | |
16051 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16052 | See \`config.log' for more details." >&2;} | |
16053 | { (exit 1); exit 1; }; } | |
16054 | fi | |
ac1cb8d3 | 16055 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16056 | fi |
16057 | fi | |
16058 | rm -f conftest.val | |
16059 | else | |
16060 | ac_cv_sizeof_int=0 | |
16061 | fi | |
16062 | fi | |
16063 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16064 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16065 | cat >>confdefs.h <<_ACEOF | |
16066 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16067 | _ACEOF | |
16068 | ||
16069 | ||
16070 | echo "$as_me:$LINENO: checking for long" >&5 | |
16071 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
16072 | if test "${ac_cv_type_long+set}" = set; then | |
16073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16074 | else | |
16075 | cat >conftest.$ac_ext <<_ACEOF | |
16076 | /* confdefs.h. */ | |
16077 | _ACEOF | |
16078 | cat confdefs.h >>conftest.$ac_ext | |
16079 | cat >>conftest.$ac_ext <<_ACEOF | |
16080 | /* end confdefs.h. */ | |
16081 | $ac_includes_default | |
16082 | int | |
16083 | main () | |
16084 | { | |
16085 | if ((long *) 0) | |
16086 | return 0; | |
16087 | if (sizeof (long)) | |
16088 | return 0; | |
16089 | ; | |
16090 | return 0; | |
16091 | } | |
16092 | _ACEOF | |
16093 | rm -f conftest.$ac_objext | |
16094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16095 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16096 | ac_status=$? |
ac1cb8d3 VS |
16097 | grep -v '^ *+' conftest.er1 >conftest.err |
16098 | rm -f conftest.er1 | |
16099 | cat conftest.err >&5 | |
a848cd7e SC |
16100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16101 | (exit $ac_status); } && | |
d1c38808 | 16102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16104 | (eval $ac_try) 2>&5 | |
16105 | ac_status=$? | |
16106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16107 | (exit $ac_status); }; } && | |
16108 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16110 | (eval $ac_try) 2>&5 | |
16111 | ac_status=$? | |
16112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16113 | (exit $ac_status); }; }; then | |
16114 | ac_cv_type_long=yes | |
16115 | else | |
16116 | echo "$as_me: failed program was:" >&5 | |
16117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16118 | ||
16119 | ac_cv_type_long=no | |
16120 | fi | |
ac1cb8d3 | 16121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16122 | fi |
16123 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
16124 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
16125 | ||
16126 | echo "$as_me:$LINENO: checking size of long" >&5 | |
16127 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
16128 | if test "${ac_cv_sizeof_long+set}" = set; then | |
16129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16130 | else | |
16131 | if test "$ac_cv_type_long" = yes; then | |
16132 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16133 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16134 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16135 | # This bug is HP SR number 8606223364. | |
16136 | if test "$cross_compiling" = yes; then | |
16137 | # Depending upon the size, compute the lo and hi bounds. | |
16138 | cat >conftest.$ac_ext <<_ACEOF | |
16139 | /* confdefs.h. */ | |
16140 | _ACEOF | |
16141 | cat confdefs.h >>conftest.$ac_ext | |
16142 | cat >>conftest.$ac_ext <<_ACEOF | |
16143 | /* end confdefs.h. */ | |
16144 | $ac_includes_default | |
16145 | int | |
16146 | main () | |
16147 | { | |
16148 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
16149 | test_array [0] = 0 | |
16150 | ||
16151 | ; | |
16152 | return 0; | |
16153 | } | |
16154 | _ACEOF | |
16155 | rm -f conftest.$ac_objext | |
16156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16158 | ac_status=$? |
ac1cb8d3 VS |
16159 | grep -v '^ *+' conftest.er1 >conftest.err |
16160 | rm -f conftest.er1 | |
16161 | cat conftest.err >&5 | |
a848cd7e SC |
16162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16163 | (exit $ac_status); } && | |
d1c38808 | 16164 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16166 | (eval $ac_try) 2>&5 | |
16167 | ac_status=$? | |
16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16169 | (exit $ac_status); }; } && | |
16170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16172 | (eval $ac_try) 2>&5 | |
16173 | ac_status=$? | |
16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16175 | (exit $ac_status); }; }; then | |
16176 | ac_lo=0 ac_mid=0 | |
16177 | while :; do | |
16178 | cat >conftest.$ac_ext <<_ACEOF | |
16179 | /* confdefs.h. */ | |
16180 | _ACEOF | |
16181 | cat confdefs.h >>conftest.$ac_ext | |
16182 | cat >>conftest.$ac_ext <<_ACEOF | |
16183 | /* end confdefs.h. */ | |
16184 | $ac_includes_default | |
16185 | int | |
16186 | main () | |
16187 | { | |
16188 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16189 | test_array [0] = 0 | |
16190 | ||
16191 | ; | |
16192 | return 0; | |
16193 | } | |
16194 | _ACEOF | |
16195 | rm -f conftest.$ac_objext | |
16196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16197 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16198 | ac_status=$? |
ac1cb8d3 VS |
16199 | grep -v '^ *+' conftest.er1 >conftest.err |
16200 | rm -f conftest.er1 | |
16201 | cat conftest.err >&5 | |
a848cd7e SC |
16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16203 | (exit $ac_status); } && | |
d1c38808 | 16204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16206 | (eval $ac_try) 2>&5 | |
16207 | ac_status=$? | |
16208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16209 | (exit $ac_status); }; } && | |
16210 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16212 | (eval $ac_try) 2>&5 | |
16213 | ac_status=$? | |
16214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16215 | (exit $ac_status); }; }; then | |
16216 | ac_hi=$ac_mid; break | |
16217 | else | |
16218 | echo "$as_me: failed program was:" >&5 | |
16219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16220 | ||
16221 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16222 | if test $ac_lo -le $ac_mid; then |
16223 | ac_lo= ac_hi= | |
16224 | break | |
16225 | fi | |
16226 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16227 | fi |
ac1cb8d3 | 16228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16229 | done |
16230 | else | |
16231 | echo "$as_me: failed program was:" >&5 | |
16232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16233 | ||
16234 | cat >conftest.$ac_ext <<_ACEOF | |
16235 | /* confdefs.h. */ | |
16236 | _ACEOF | |
16237 | cat confdefs.h >>conftest.$ac_ext | |
16238 | cat >>conftest.$ac_ext <<_ACEOF | |
16239 | /* end confdefs.h. */ | |
16240 | $ac_includes_default | |
16241 | int | |
16242 | main () | |
16243 | { | |
16244 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
16245 | test_array [0] = 0 | |
16246 | ||
16247 | ; | |
16248 | return 0; | |
16249 | } | |
16250 | _ACEOF | |
16251 | rm -f conftest.$ac_objext | |
16252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16253 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16254 | ac_status=$? |
ac1cb8d3 VS |
16255 | grep -v '^ *+' conftest.er1 >conftest.err |
16256 | rm -f conftest.er1 | |
16257 | cat conftest.err >&5 | |
a848cd7e SC |
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16259 | (exit $ac_status); } && | |
d1c38808 | 16260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16262 | (eval $ac_try) 2>&5 | |
16263 | ac_status=$? | |
16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16265 | (exit $ac_status); }; } && | |
16266 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16268 | (eval $ac_try) 2>&5 | |
16269 | ac_status=$? | |
16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16271 | (exit $ac_status); }; }; then | |
16272 | ac_hi=-1 ac_mid=-1 | |
16273 | while :; do | |
16274 | cat >conftest.$ac_ext <<_ACEOF | |
16275 | /* confdefs.h. */ | |
16276 | _ACEOF | |
16277 | cat confdefs.h >>conftest.$ac_ext | |
16278 | cat >>conftest.$ac_ext <<_ACEOF | |
16279 | /* end confdefs.h. */ | |
16280 | $ac_includes_default | |
16281 | int | |
16282 | main () | |
16283 | { | |
16284 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
16285 | test_array [0] = 0 | |
16286 | ||
16287 | ; | |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16294 | ac_status=$? |
ac1cb8d3 VS |
16295 | grep -v '^ *+' conftest.er1 >conftest.err |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
a848cd7e SC |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16299 | (exit $ac_status); } && | |
d1c38808 | 16300 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16302 | (eval $ac_try) 2>&5 | |
16303 | ac_status=$? | |
16304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16305 | (exit $ac_status); }; } && | |
16306 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16308 | (eval $ac_try) 2>&5 | |
16309 | ac_status=$? | |
16310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16311 | (exit $ac_status); }; }; then | |
16312 | ac_lo=$ac_mid; break | |
16313 | else | |
16314 | echo "$as_me: failed program was:" >&5 | |
16315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16316 | ||
16317 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16318 | if test $ac_mid -le $ac_hi; then |
16319 | ac_lo= ac_hi= | |
16320 | break | |
16321 | fi | |
16322 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16323 | fi |
ac1cb8d3 | 16324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16325 | done |
16326 | else | |
16327 | echo "$as_me: failed program was:" >&5 | |
16328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16329 | ||
16330 | ac_lo= ac_hi= | |
16331 | fi | |
ac1cb8d3 | 16332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16333 | fi |
ac1cb8d3 | 16334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16335 | # Binary search between lo and hi bounds. |
16336 | while test "x$ac_lo" != "x$ac_hi"; do | |
16337 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16338 | cat >conftest.$ac_ext <<_ACEOF | |
16339 | /* confdefs.h. */ | |
16340 | _ACEOF | |
16341 | cat confdefs.h >>conftest.$ac_ext | |
16342 | cat >>conftest.$ac_ext <<_ACEOF | |
16343 | /* end confdefs.h. */ | |
16344 | $ac_includes_default | |
16345 | int | |
16346 | main () | |
16347 | { | |
16348 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
16349 | test_array [0] = 0 | |
16350 | ||
16351 | ; | |
16352 | return 0; | |
16353 | } | |
16354 | _ACEOF | |
16355 | rm -f conftest.$ac_objext | |
16356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16358 | ac_status=$? |
ac1cb8d3 VS |
16359 | grep -v '^ *+' conftest.er1 >conftest.err |
16360 | rm -f conftest.er1 | |
16361 | cat conftest.err >&5 | |
a848cd7e SC |
16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16363 | (exit $ac_status); } && | |
d1c38808 | 16364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16366 | (eval $ac_try) 2>&5 | |
16367 | ac_status=$? | |
16368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16369 | (exit $ac_status); }; } && | |
16370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16372 | (eval $ac_try) 2>&5 | |
16373 | ac_status=$? | |
16374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16375 | (exit $ac_status); }; }; then | |
16376 | ac_hi=$ac_mid | |
16377 | else | |
16378 | echo "$as_me: failed program was:" >&5 | |
16379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16380 | ||
16381 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16382 | fi | |
ac1cb8d3 | 16383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16384 | done |
16385 | case $ac_lo in | |
16386 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
16387 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16388 | See \`config.log' for more details." >&5 | |
16389 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16390 | See \`config.log' for more details." >&2;} | |
16391 | { (exit 1); exit 1; }; } ;; | |
16392 | esac | |
16393 | else | |
16394 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
16395 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16396 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16397 | { (exit 1); exit 1; }; } |
16398 | else | |
16399 | cat >conftest.$ac_ext <<_ACEOF | |
16400 | /* confdefs.h. */ | |
16401 | _ACEOF | |
16402 | cat confdefs.h >>conftest.$ac_ext | |
16403 | cat >>conftest.$ac_ext <<_ACEOF | |
16404 | /* end confdefs.h. */ | |
16405 | $ac_includes_default | |
16406 | long longval () { return (long) (sizeof (long)); } | |
16407 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
16408 | #include <stdio.h> | |
16409 | #include <stdlib.h> | |
16410 | int | |
16411 | main () | |
16412 | { | |
16413 | ||
16414 | FILE *f = fopen ("conftest.val", "w"); | |
16415 | if (! f) | |
16416 | exit (1); | |
16417 | if (((long) (sizeof (long))) < 0) | |
16418 | { | |
16419 | long i = longval (); | |
16420 | if (i != ((long) (sizeof (long)))) | |
16421 | exit (1); | |
16422 | fprintf (f, "%ld\n", i); | |
16423 | } | |
16424 | else | |
16425 | { | |
16426 | unsigned long i = ulongval (); | |
16427 | if (i != ((long) (sizeof (long)))) | |
16428 | exit (1); | |
16429 | fprintf (f, "%lu\n", i); | |
16430 | } | |
16431 | exit (ferror (f) || fclose (f) != 0); | |
16432 | ||
16433 | ; | |
16434 | return 0; | |
16435 | } | |
16436 | _ACEOF | |
16437 | rm -f conftest$ac_exeext | |
16438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16439 | (eval $ac_link) 2>&5 | |
16440 | ac_status=$? | |
16441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16444 | (eval $ac_try) 2>&5 | |
16445 | ac_status=$? | |
16446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16447 | (exit $ac_status); }; }; then | |
16448 | ac_cv_sizeof_long=`cat conftest.val` | |
16449 | else | |
16450 | echo "$as_me: program exited with status $ac_status" >&5 | |
16451 | echo "$as_me: failed program was:" >&5 | |
16452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16453 | ||
16454 | ( exit $ac_status ) | |
16455 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
16456 | See \`config.log' for more details." >&5 | |
16457 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
16458 | See \`config.log' for more details." >&2;} | |
16459 | { (exit 1); exit 1; }; } | |
16460 | fi | |
ac1cb8d3 | 16461 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16462 | fi |
16463 | fi | |
16464 | rm -f conftest.val | |
16465 | else | |
16466 | ac_cv_sizeof_long=0 | |
16467 | fi | |
16468 | fi | |
16469 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
16470 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
16471 | cat >>confdefs.h <<_ACEOF | |
16472 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
16473 | _ACEOF | |
16474 | ||
16475 | ||
16476 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
16477 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
16478 | if test "${ac_cv_type_size_t+set}" = set; then | |
16479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16480 | else | |
16481 | cat >conftest.$ac_ext <<_ACEOF | |
16482 | /* confdefs.h. */ | |
16483 | _ACEOF | |
16484 | cat confdefs.h >>conftest.$ac_ext | |
16485 | cat >>conftest.$ac_ext <<_ACEOF | |
16486 | /* end confdefs.h. */ | |
16487 | $ac_includes_default | |
16488 | int | |
16489 | main () | |
16490 | { | |
16491 | if ((size_t *) 0) | |
16492 | return 0; | |
16493 | if (sizeof (size_t)) | |
16494 | return 0; | |
16495 | ; | |
16496 | return 0; | |
16497 | } | |
16498 | _ACEOF | |
16499 | rm -f conftest.$ac_objext | |
16500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16501 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16502 | ac_status=$? |
ac1cb8d3 VS |
16503 | grep -v '^ *+' conftest.er1 >conftest.err |
16504 | rm -f conftest.er1 | |
16505 | cat conftest.err >&5 | |
a848cd7e SC |
16506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16507 | (exit $ac_status); } && | |
d1c38808 | 16508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; } && | |
16514 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16516 | (eval $ac_try) 2>&5 | |
16517 | ac_status=$? | |
16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16519 | (exit $ac_status); }; }; then | |
16520 | ac_cv_type_size_t=yes | |
16521 | else | |
16522 | echo "$as_me: failed program was:" >&5 | |
16523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16524 | ||
16525 | ac_cv_type_size_t=no | |
16526 | fi | |
ac1cb8d3 | 16527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16528 | fi |
16529 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
16530 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
16531 | ||
16532 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
16533 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
16534 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
16535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16536 | else | |
16537 | if test "$ac_cv_type_size_t" = yes; then | |
16538 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16541 | # This bug is HP SR number 8606223364. | |
16542 | if test "$cross_compiling" = yes; then | |
16543 | # Depending upon the size, compute the lo and hi bounds. | |
16544 | cat >conftest.$ac_ext <<_ACEOF | |
16545 | /* confdefs.h. */ | |
16546 | _ACEOF | |
16547 | cat confdefs.h >>conftest.$ac_ext | |
16548 | cat >>conftest.$ac_ext <<_ACEOF | |
16549 | /* end confdefs.h. */ | |
16550 | $ac_includes_default | |
16551 | int | |
16552 | main () | |
16553 | { | |
16554 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
16555 | test_array [0] = 0 | |
16556 | ||
16557 | ; | |
16558 | return 0; | |
16559 | } | |
16560 | _ACEOF | |
16561 | rm -f conftest.$ac_objext | |
16562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16564 | ac_status=$? |
ac1cb8d3 VS |
16565 | grep -v '^ *+' conftest.er1 >conftest.err |
16566 | rm -f conftest.er1 | |
16567 | cat conftest.err >&5 | |
a848cd7e SC |
16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16569 | (exit $ac_status); } && | |
d1c38808 | 16570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16572 | (eval $ac_try) 2>&5 | |
16573 | ac_status=$? | |
16574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16575 | (exit $ac_status); }; } && | |
16576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16578 | (eval $ac_try) 2>&5 | |
16579 | ac_status=$? | |
16580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16581 | (exit $ac_status); }; }; then | |
16582 | ac_lo=0 ac_mid=0 | |
16583 | while :; do | |
16584 | cat >conftest.$ac_ext <<_ACEOF | |
16585 | /* confdefs.h. */ | |
16586 | _ACEOF | |
16587 | cat confdefs.h >>conftest.$ac_ext | |
16588 | cat >>conftest.$ac_ext <<_ACEOF | |
16589 | /* end confdefs.h. */ | |
16590 | $ac_includes_default | |
16591 | int | |
16592 | main () | |
16593 | { | |
16594 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16595 | test_array [0] = 0 | |
16596 | ||
16597 | ; | |
16598 | return 0; | |
16599 | } | |
16600 | _ACEOF | |
16601 | rm -f conftest.$ac_objext | |
16602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16603 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16604 | ac_status=$? |
ac1cb8d3 VS |
16605 | grep -v '^ *+' conftest.er1 >conftest.err |
16606 | rm -f conftest.er1 | |
16607 | cat conftest.err >&5 | |
a848cd7e SC |
16608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16609 | (exit $ac_status); } && | |
d1c38808 | 16610 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16612 | (eval $ac_try) 2>&5 | |
16613 | ac_status=$? | |
16614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16615 | (exit $ac_status); }; } && | |
16616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16618 | (eval $ac_try) 2>&5 | |
16619 | ac_status=$? | |
16620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16621 | (exit $ac_status); }; }; then | |
16622 | ac_hi=$ac_mid; break | |
16623 | else | |
16624 | echo "$as_me: failed program was:" >&5 | |
16625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16626 | ||
16627 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16628 | if test $ac_lo -le $ac_mid; then |
16629 | ac_lo= ac_hi= | |
16630 | break | |
16631 | fi | |
16632 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16633 | fi |
ac1cb8d3 | 16634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16635 | done |
16636 | else | |
16637 | echo "$as_me: failed program was:" >&5 | |
16638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16639 | ||
16640 | cat >conftest.$ac_ext <<_ACEOF | |
16641 | /* confdefs.h. */ | |
16642 | _ACEOF | |
16643 | cat confdefs.h >>conftest.$ac_ext | |
16644 | cat >>conftest.$ac_ext <<_ACEOF | |
16645 | /* end confdefs.h. */ | |
16646 | $ac_includes_default | |
16647 | int | |
16648 | main () | |
16649 | { | |
16650 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
16651 | test_array [0] = 0 | |
16652 | ||
16653 | ; | |
16654 | return 0; | |
16655 | } | |
16656 | _ACEOF | |
16657 | rm -f conftest.$ac_objext | |
16658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16659 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16660 | ac_status=$? |
ac1cb8d3 VS |
16661 | grep -v '^ *+' conftest.er1 >conftest.err |
16662 | rm -f conftest.er1 | |
16663 | cat conftest.err >&5 | |
a848cd7e SC |
16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16665 | (exit $ac_status); } && | |
d1c38808 | 16666 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16668 | (eval $ac_try) 2>&5 | |
16669 | ac_status=$? | |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16671 | (exit $ac_status); }; } && | |
16672 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16674 | (eval $ac_try) 2>&5 | |
16675 | ac_status=$? | |
16676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16677 | (exit $ac_status); }; }; then | |
16678 | ac_hi=-1 ac_mid=-1 | |
16679 | while :; do | |
16680 | cat >conftest.$ac_ext <<_ACEOF | |
16681 | /* confdefs.h. */ | |
16682 | _ACEOF | |
16683 | cat confdefs.h >>conftest.$ac_ext | |
16684 | cat >>conftest.$ac_ext <<_ACEOF | |
16685 | /* end confdefs.h. */ | |
16686 | $ac_includes_default | |
16687 | int | |
16688 | main () | |
16689 | { | |
16690 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
16691 | test_array [0] = 0 | |
16692 | ||
16693 | ; | |
16694 | return 0; | |
16695 | } | |
16696 | _ACEOF | |
16697 | rm -f conftest.$ac_objext | |
16698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16699 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16700 | ac_status=$? |
ac1cb8d3 VS |
16701 | grep -v '^ *+' conftest.er1 >conftest.err |
16702 | rm -f conftest.er1 | |
16703 | cat conftest.err >&5 | |
a848cd7e SC |
16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16705 | (exit $ac_status); } && | |
d1c38808 | 16706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16708 | (eval $ac_try) 2>&5 | |
16709 | ac_status=$? | |
16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16711 | (exit $ac_status); }; } && | |
16712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16714 | (eval $ac_try) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); }; }; then | |
16718 | ac_lo=$ac_mid; break | |
16719 | else | |
16720 | echo "$as_me: failed program was:" >&5 | |
16721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16722 | ||
16723 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16724 | if test $ac_mid -le $ac_hi; then |
16725 | ac_lo= ac_hi= | |
16726 | break | |
16727 | fi | |
16728 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16729 | fi |
ac1cb8d3 | 16730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16731 | done |
16732 | else | |
16733 | echo "$as_me: failed program was:" >&5 | |
16734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16735 | ||
16736 | ac_lo= ac_hi= | |
16737 | fi | |
ac1cb8d3 | 16738 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16739 | fi |
ac1cb8d3 | 16740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16741 | # Binary search between lo and hi bounds. |
16742 | while test "x$ac_lo" != "x$ac_hi"; do | |
16743 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16744 | cat >conftest.$ac_ext <<_ACEOF | |
16745 | /* confdefs.h. */ | |
16746 | _ACEOF | |
16747 | cat confdefs.h >>conftest.$ac_ext | |
16748 | cat >>conftest.$ac_ext <<_ACEOF | |
16749 | /* end confdefs.h. */ | |
16750 | $ac_includes_default | |
16751 | int | |
16752 | main () | |
16753 | { | |
16754 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16755 | test_array [0] = 0 | |
16756 | ||
16757 | ; | |
16758 | return 0; | |
16759 | } | |
16760 | _ACEOF | |
16761 | rm -f conftest.$ac_objext | |
16762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16763 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16764 | ac_status=$? |
ac1cb8d3 VS |
16765 | grep -v '^ *+' conftest.er1 >conftest.err |
16766 | rm -f conftest.er1 | |
16767 | cat conftest.err >&5 | |
a848cd7e SC |
16768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16769 | (exit $ac_status); } && | |
d1c38808 | 16770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16772 | (eval $ac_try) 2>&5 | |
16773 | ac_status=$? | |
16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16775 | (exit $ac_status); }; } && | |
16776 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16778 | (eval $ac_try) 2>&5 | |
16779 | ac_status=$? | |
16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16781 | (exit $ac_status); }; }; then | |
16782 | ac_hi=$ac_mid | |
16783 | else | |
16784 | echo "$as_me: failed program was:" >&5 | |
16785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16786 | ||
16787 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16788 | fi | |
ac1cb8d3 | 16789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16790 | done |
16791 | case $ac_lo in | |
16792 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16793 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16794 | See \`config.log' for more details." >&5 | |
16795 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16796 | See \`config.log' for more details." >&2;} | |
16797 | { (exit 1); exit 1; }; } ;; | |
16798 | esac | |
16799 | else | |
16800 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
16801 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16802 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16803 | { (exit 1); exit 1; }; } |
16804 | else | |
16805 | cat >conftest.$ac_ext <<_ACEOF | |
16806 | /* confdefs.h. */ | |
16807 | _ACEOF | |
16808 | cat confdefs.h >>conftest.$ac_ext | |
16809 | cat >>conftest.$ac_ext <<_ACEOF | |
16810 | /* end confdefs.h. */ | |
16811 | $ac_includes_default | |
16812 | long longval () { return (long) (sizeof (size_t)); } | |
16813 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16814 | #include <stdio.h> | |
16815 | #include <stdlib.h> | |
16816 | int | |
16817 | main () | |
16818 | { | |
16819 | ||
16820 | FILE *f = fopen ("conftest.val", "w"); | |
16821 | if (! f) | |
16822 | exit (1); | |
16823 | if (((long) (sizeof (size_t))) < 0) | |
16824 | { | |
16825 | long i = longval (); | |
16826 | if (i != ((long) (sizeof (size_t)))) | |
16827 | exit (1); | |
16828 | fprintf (f, "%ld\n", i); | |
16829 | } | |
16830 | else | |
16831 | { | |
16832 | unsigned long i = ulongval (); | |
16833 | if (i != ((long) (sizeof (size_t)))) | |
16834 | exit (1); | |
16835 | fprintf (f, "%lu\n", i); | |
16836 | } | |
16837 | exit (ferror (f) || fclose (f) != 0); | |
16838 | ||
16839 | ; | |
16840 | return 0; | |
16841 | } | |
16842 | _ACEOF | |
16843 | rm -f conftest$ac_exeext | |
16844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16845 | (eval $ac_link) 2>&5 | |
16846 | ac_status=$? | |
16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16848 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16850 | (eval $ac_try) 2>&5 | |
16851 | ac_status=$? | |
16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16853 | (exit $ac_status); }; }; then | |
16854 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16855 | else | |
16856 | echo "$as_me: program exited with status $ac_status" >&5 | |
16857 | echo "$as_me: failed program was:" >&5 | |
16858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16859 | ||
16860 | ( exit $ac_status ) | |
16861 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16862 | See \`config.log' for more details." >&5 | |
16863 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16864 | See \`config.log' for more details." >&2;} | |
16865 | { (exit 1); exit 1; }; } | |
16866 | fi | |
ac1cb8d3 | 16867 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16868 | fi |
16869 | fi | |
16870 | rm -f conftest.val | |
16871 | else | |
16872 | ac_cv_sizeof_size_t=0 | |
16873 | fi | |
16874 | fi | |
16875 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16876 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16877 | cat >>confdefs.h <<_ACEOF | |
16878 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16879 | _ACEOF | |
16880 | ||
16881 | ||
16882 | ||
16883 | case "${host}" in | |
16884 | arm-*-linux* ) | |
16885 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16886 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16887 | if test "${ac_cv_type_long_long+set}" = set; then | |
16888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16889 | else | |
16890 | cat >conftest.$ac_ext <<_ACEOF | |
16891 | /* confdefs.h. */ | |
16892 | _ACEOF | |
16893 | cat confdefs.h >>conftest.$ac_ext | |
16894 | cat >>conftest.$ac_ext <<_ACEOF | |
16895 | /* end confdefs.h. */ | |
16896 | $ac_includes_default | |
16897 | int | |
16898 | main () | |
16899 | { | |
16900 | if ((long long *) 0) | |
16901 | return 0; | |
16902 | if (sizeof (long long)) | |
16903 | return 0; | |
16904 | ; | |
16905 | return 0; | |
16906 | } | |
16907 | _ACEOF | |
16908 | rm -f conftest.$ac_objext | |
16909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16910 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16911 | ac_status=$? |
ac1cb8d3 VS |
16912 | grep -v '^ *+' conftest.er1 >conftest.err |
16913 | rm -f conftest.er1 | |
16914 | cat conftest.err >&5 | |
a848cd7e SC |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16916 | (exit $ac_status); } && | |
d1c38808 | 16917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; } && | |
16923 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16925 | (eval $ac_try) 2>&5 | |
16926 | ac_status=$? | |
16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16928 | (exit $ac_status); }; }; then | |
16929 | ac_cv_type_long_long=yes | |
16930 | else | |
16931 | echo "$as_me: failed program was:" >&5 | |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16933 | ||
16934 | ac_cv_type_long_long=no | |
16935 | fi | |
ac1cb8d3 | 16936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16937 | fi |
16938 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16939 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16940 | ||
16941 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16942 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16943 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16945 | else | |
16946 | if test "$ac_cv_type_long_long" = yes; then | |
16947 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16948 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16949 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16950 | # This bug is HP SR number 8606223364. | |
16951 | if test "$cross_compiling" = yes; then | |
16952 | # Depending upon the size, compute the lo and hi bounds. | |
16953 | cat >conftest.$ac_ext <<_ACEOF | |
16954 | /* confdefs.h. */ | |
16955 | _ACEOF | |
16956 | cat confdefs.h >>conftest.$ac_ext | |
16957 | cat >>conftest.$ac_ext <<_ACEOF | |
16958 | /* end confdefs.h. */ | |
16959 | $ac_includes_default | |
16960 | int | |
16961 | main () | |
16962 | { | |
16963 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16964 | test_array [0] = 0 | |
16965 | ||
16966 | ; | |
16967 | return 0; | |
16968 | } | |
16969 | _ACEOF | |
16970 | rm -f conftest.$ac_objext | |
16971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16973 | ac_status=$? |
ac1cb8d3 VS |
16974 | grep -v '^ *+' conftest.er1 >conftest.err |
16975 | rm -f conftest.er1 | |
16976 | cat conftest.err >&5 | |
a848cd7e SC |
16977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16978 | (exit $ac_status); } && | |
d1c38808 | 16979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16981 | (eval $ac_try) 2>&5 | |
16982 | ac_status=$? | |
16983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16984 | (exit $ac_status); }; } && | |
16985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16987 | (eval $ac_try) 2>&5 | |
16988 | ac_status=$? | |
16989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16990 | (exit $ac_status); }; }; then | |
16991 | ac_lo=0 ac_mid=0 | |
16992 | while :; do | |
16993 | cat >conftest.$ac_ext <<_ACEOF | |
16994 | /* confdefs.h. */ | |
16995 | _ACEOF | |
16996 | cat confdefs.h >>conftest.$ac_ext | |
16997 | cat >>conftest.$ac_ext <<_ACEOF | |
16998 | /* end confdefs.h. */ | |
16999 | $ac_includes_default | |
17000 | int | |
17001 | main () | |
17002 | { | |
17003 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17004 | test_array [0] = 0 | |
17005 | ||
17006 | ; | |
17007 | return 0; | |
17008 | } | |
17009 | _ACEOF | |
17010 | rm -f conftest.$ac_objext | |
17011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17013 | ac_status=$? |
ac1cb8d3 VS |
17014 | grep -v '^ *+' conftest.er1 >conftest.err |
17015 | rm -f conftest.er1 | |
17016 | cat conftest.err >&5 | |
a848cd7e SC |
17017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17018 | (exit $ac_status); } && | |
d1c38808 | 17019 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17021 | (eval $ac_try) 2>&5 | |
17022 | ac_status=$? | |
17023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17024 | (exit $ac_status); }; } && | |
17025 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17027 | (eval $ac_try) 2>&5 | |
17028 | ac_status=$? | |
17029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17030 | (exit $ac_status); }; }; then | |
17031 | ac_hi=$ac_mid; break | |
17032 | else | |
17033 | echo "$as_me: failed program was:" >&5 | |
17034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17035 | ||
17036 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17037 | if test $ac_lo -le $ac_mid; then |
17038 | ac_lo= ac_hi= | |
17039 | break | |
17040 | fi | |
17041 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17042 | fi |
ac1cb8d3 | 17043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17044 | done |
17045 | else | |
17046 | echo "$as_me: failed program was:" >&5 | |
17047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17048 | ||
17049 | cat >conftest.$ac_ext <<_ACEOF | |
17050 | /* confdefs.h. */ | |
17051 | _ACEOF | |
17052 | cat confdefs.h >>conftest.$ac_ext | |
17053 | cat >>conftest.$ac_ext <<_ACEOF | |
17054 | /* end confdefs.h. */ | |
17055 | $ac_includes_default | |
17056 | int | |
17057 | main () | |
17058 | { | |
17059 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17060 | test_array [0] = 0 | |
17061 | ||
17062 | ; | |
17063 | return 0; | |
17064 | } | |
17065 | _ACEOF | |
17066 | rm -f conftest.$ac_objext | |
17067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17068 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17069 | ac_status=$? |
ac1cb8d3 VS |
17070 | grep -v '^ *+' conftest.er1 >conftest.err |
17071 | rm -f conftest.er1 | |
17072 | cat conftest.err >&5 | |
a848cd7e SC |
17073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17074 | (exit $ac_status); } && | |
d1c38808 | 17075 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17077 | (eval $ac_try) 2>&5 | |
17078 | ac_status=$? | |
17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17080 | (exit $ac_status); }; } && | |
17081 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17083 | (eval $ac_try) 2>&5 | |
17084 | ac_status=$? | |
17085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17086 | (exit $ac_status); }; }; then | |
17087 | ac_hi=-1 ac_mid=-1 | |
17088 | while :; do | |
17089 | cat >conftest.$ac_ext <<_ACEOF | |
17090 | /* confdefs.h. */ | |
17091 | _ACEOF | |
17092 | cat confdefs.h >>conftest.$ac_ext | |
17093 | cat >>conftest.$ac_ext <<_ACEOF | |
17094 | /* end confdefs.h. */ | |
17095 | $ac_includes_default | |
17096 | int | |
17097 | main () | |
17098 | { | |
17099 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17100 | test_array [0] = 0 | |
17101 | ||
17102 | ; | |
17103 | return 0; | |
17104 | } | |
17105 | _ACEOF | |
17106 | rm -f conftest.$ac_objext | |
17107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17108 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17109 | ac_status=$? |
ac1cb8d3 VS |
17110 | grep -v '^ *+' conftest.er1 >conftest.err |
17111 | rm -f conftest.er1 | |
17112 | cat conftest.err >&5 | |
a848cd7e SC |
17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17114 | (exit $ac_status); } && | |
d1c38808 | 17115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17117 | (eval $ac_try) 2>&5 | |
17118 | ac_status=$? | |
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17120 | (exit $ac_status); }; } && | |
17121 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17123 | (eval $ac_try) 2>&5 | |
17124 | ac_status=$? | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); }; }; then | |
17127 | ac_lo=$ac_mid; break | |
17128 | else | |
17129 | echo "$as_me: failed program was:" >&5 | |
17130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17131 | ||
17132 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17133 | if test $ac_mid -le $ac_hi; then |
17134 | ac_lo= ac_hi= | |
17135 | break | |
17136 | fi | |
17137 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17138 | fi |
ac1cb8d3 | 17139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17140 | done |
17141 | else | |
17142 | echo "$as_me: failed program was:" >&5 | |
17143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17144 | ||
17145 | ac_lo= ac_hi= | |
17146 | fi | |
ac1cb8d3 | 17147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17148 | fi |
ac1cb8d3 | 17149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17150 | # Binary search between lo and hi bounds. |
17151 | while test "x$ac_lo" != "x$ac_hi"; do | |
17152 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17153 | cat >conftest.$ac_ext <<_ACEOF | |
17154 | /* confdefs.h. */ | |
17155 | _ACEOF | |
17156 | cat confdefs.h >>conftest.$ac_ext | |
17157 | cat >>conftest.$ac_ext <<_ACEOF | |
17158 | /* end confdefs.h. */ | |
17159 | $ac_includes_default | |
17160 | int | |
17161 | main () | |
17162 | { | |
17163 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17164 | test_array [0] = 0 | |
17165 | ||
17166 | ; | |
17167 | return 0; | |
17168 | } | |
17169 | _ACEOF | |
17170 | rm -f conftest.$ac_objext | |
17171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17172 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17173 | ac_status=$? |
ac1cb8d3 VS |
17174 | grep -v '^ *+' conftest.er1 >conftest.err |
17175 | rm -f conftest.er1 | |
17176 | cat conftest.err >&5 | |
a848cd7e SC |
17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17178 | (exit $ac_status); } && | |
d1c38808 | 17179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17181 | (eval $ac_try) 2>&5 | |
17182 | ac_status=$? | |
17183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17184 | (exit $ac_status); }; } && | |
17185 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17187 | (eval $ac_try) 2>&5 | |
17188 | ac_status=$? | |
17189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17190 | (exit $ac_status); }; }; then | |
17191 | ac_hi=$ac_mid | |
17192 | else | |
17193 | echo "$as_me: failed program was:" >&5 | |
17194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17195 | ||
17196 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17197 | fi | |
ac1cb8d3 | 17198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17199 | done |
17200 | case $ac_lo in | |
17201 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17202 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17203 | See \`config.log' for more details." >&5 | |
17204 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17205 | See \`config.log' for more details." >&2;} | |
17206 | { (exit 1); exit 1; }; } ;; | |
17207 | esac | |
17208 | else | |
17209 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
17210 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17211 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17212 | { (exit 1); exit 1; }; } |
17213 | else | |
17214 | cat >conftest.$ac_ext <<_ACEOF | |
17215 | /* confdefs.h. */ | |
17216 | _ACEOF | |
17217 | cat confdefs.h >>conftest.$ac_ext | |
17218 | cat >>conftest.$ac_ext <<_ACEOF | |
17219 | /* end confdefs.h. */ | |
17220 | $ac_includes_default | |
17221 | long longval () { return (long) (sizeof (long long)); } | |
17222 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17223 | #include <stdio.h> | |
17224 | #include <stdlib.h> | |
17225 | int | |
17226 | main () | |
17227 | { | |
17228 | ||
17229 | FILE *f = fopen ("conftest.val", "w"); | |
17230 | if (! f) | |
17231 | exit (1); | |
17232 | if (((long) (sizeof (long long))) < 0) | |
17233 | { | |
17234 | long i = longval (); | |
17235 | if (i != ((long) (sizeof (long long)))) | |
17236 | exit (1); | |
17237 | fprintf (f, "%ld\n", i); | |
17238 | } | |
17239 | else | |
17240 | { | |
17241 | unsigned long i = ulongval (); | |
17242 | if (i != ((long) (sizeof (long long)))) | |
17243 | exit (1); | |
17244 | fprintf (f, "%lu\n", i); | |
17245 | } | |
17246 | exit (ferror (f) || fclose (f) != 0); | |
17247 | ||
17248 | ; | |
17249 | return 0; | |
17250 | } | |
17251 | _ACEOF | |
17252 | rm -f conftest$ac_exeext | |
17253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17254 | (eval $ac_link) 2>&5 | |
17255 | ac_status=$? | |
17256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17257 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17259 | (eval $ac_try) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); }; }; then | |
17263 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17264 | else | |
17265 | echo "$as_me: program exited with status $ac_status" >&5 | |
17266 | echo "$as_me: failed program was:" >&5 | |
17267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17268 | ||
17269 | ( exit $ac_status ) | |
17270 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17271 | See \`config.log' for more details." >&5 | |
17272 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17273 | See \`config.log' for more details." >&2;} | |
17274 | { (exit 1); exit 1; }; } | |
17275 | fi | |
ac1cb8d3 | 17276 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17277 | fi |
17278 | fi | |
17279 | rm -f conftest.val | |
17280 | else | |
17281 | ac_cv_sizeof_long_long=0 | |
17282 | fi | |
17283 | fi | |
17284 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17285 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17286 | cat >>confdefs.h <<_ACEOF | |
17287 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17288 | _ACEOF | |
17289 | ||
17290 | ||
17291 | ;; | |
17292 | *-hp-hpux* ) | |
17293 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17294 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17295 | if test "${ac_cv_type_long_long+set}" = set; then | |
17296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17297 | else | |
17298 | cat >conftest.$ac_ext <<_ACEOF | |
17299 | /* confdefs.h. */ | |
17300 | _ACEOF | |
17301 | cat confdefs.h >>conftest.$ac_ext | |
17302 | cat >>conftest.$ac_ext <<_ACEOF | |
17303 | /* end confdefs.h. */ | |
17304 | $ac_includes_default | |
17305 | int | |
17306 | main () | |
17307 | { | |
17308 | if ((long long *) 0) | |
17309 | return 0; | |
17310 | if (sizeof (long long)) | |
17311 | return 0; | |
17312 | ; | |
17313 | return 0; | |
17314 | } | |
17315 | _ACEOF | |
17316 | rm -f conftest.$ac_objext | |
17317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17318 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17319 | ac_status=$? |
ac1cb8d3 VS |
17320 | grep -v '^ *+' conftest.er1 >conftest.err |
17321 | rm -f conftest.er1 | |
17322 | cat conftest.err >&5 | |
a848cd7e SC |
17323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17324 | (exit $ac_status); } && | |
d1c38808 | 17325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17327 | (eval $ac_try) 2>&5 | |
17328 | ac_status=$? | |
17329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17330 | (exit $ac_status); }; } && | |
17331 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17333 | (eval $ac_try) 2>&5 | |
17334 | ac_status=$? | |
17335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17336 | (exit $ac_status); }; }; then | |
17337 | ac_cv_type_long_long=yes | |
17338 | else | |
17339 | echo "$as_me: failed program was:" >&5 | |
17340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17341 | ||
17342 | ac_cv_type_long_long=no | |
17343 | fi | |
ac1cb8d3 | 17344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17345 | fi |
17346 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17347 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17348 | ||
17349 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17350 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17351 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17353 | else | |
17354 | if test "$ac_cv_type_long_long" = yes; then | |
17355 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17356 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17357 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17358 | # This bug is HP SR number 8606223364. | |
17359 | if test "$cross_compiling" = yes; then | |
17360 | # Depending upon the size, compute the lo and hi bounds. | |
17361 | cat >conftest.$ac_ext <<_ACEOF | |
17362 | /* confdefs.h. */ | |
17363 | _ACEOF | |
17364 | cat confdefs.h >>conftest.$ac_ext | |
17365 | cat >>conftest.$ac_ext <<_ACEOF | |
17366 | /* end confdefs.h. */ | |
17367 | $ac_includes_default | |
17368 | int | |
17369 | main () | |
17370 | { | |
17371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17372 | test_array [0] = 0 | |
17373 | ||
17374 | ; | |
17375 | return 0; | |
17376 | } | |
17377 | _ACEOF | |
17378 | rm -f conftest.$ac_objext | |
17379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17381 | ac_status=$? |
ac1cb8d3 VS |
17382 | grep -v '^ *+' conftest.er1 >conftest.err |
17383 | rm -f conftest.er1 | |
17384 | cat conftest.err >&5 | |
a848cd7e SC |
17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17386 | (exit $ac_status); } && | |
d1c38808 | 17387 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17389 | (eval $ac_try) 2>&5 | |
17390 | ac_status=$? | |
17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17392 | (exit $ac_status); }; } && | |
17393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17395 | (eval $ac_try) 2>&5 | |
17396 | ac_status=$? | |
17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17398 | (exit $ac_status); }; }; then | |
17399 | ac_lo=0 ac_mid=0 | |
17400 | while :; do | |
17401 | cat >conftest.$ac_ext <<_ACEOF | |
17402 | /* confdefs.h. */ | |
17403 | _ACEOF | |
17404 | cat confdefs.h >>conftest.$ac_ext | |
17405 | cat >>conftest.$ac_ext <<_ACEOF | |
17406 | /* end confdefs.h. */ | |
17407 | $ac_includes_default | |
17408 | int | |
17409 | main () | |
17410 | { | |
17411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17412 | test_array [0] = 0 | |
17413 | ||
17414 | ; | |
17415 | return 0; | |
17416 | } | |
17417 | _ACEOF | |
17418 | rm -f conftest.$ac_objext | |
17419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17421 | ac_status=$? |
ac1cb8d3 VS |
17422 | grep -v '^ *+' conftest.er1 >conftest.err |
17423 | rm -f conftest.er1 | |
17424 | cat conftest.err >&5 | |
a848cd7e SC |
17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17426 | (exit $ac_status); } && | |
d1c38808 | 17427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17429 | (eval $ac_try) 2>&5 | |
17430 | ac_status=$? | |
17431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17432 | (exit $ac_status); }; } && | |
17433 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17435 | (eval $ac_try) 2>&5 | |
17436 | ac_status=$? | |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17438 | (exit $ac_status); }; }; then | |
17439 | ac_hi=$ac_mid; break | |
17440 | else | |
17441 | echo "$as_me: failed program was:" >&5 | |
17442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17443 | ||
17444 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17445 | if test $ac_lo -le $ac_mid; then |
17446 | ac_lo= ac_hi= | |
17447 | break | |
17448 | fi | |
17449 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17450 | fi |
ac1cb8d3 | 17451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17452 | done |
17453 | else | |
17454 | echo "$as_me: failed program was:" >&5 | |
17455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17456 | ||
17457 | cat >conftest.$ac_ext <<_ACEOF | |
17458 | /* confdefs.h. */ | |
17459 | _ACEOF | |
17460 | cat confdefs.h >>conftest.$ac_ext | |
17461 | cat >>conftest.$ac_ext <<_ACEOF | |
17462 | /* end confdefs.h. */ | |
17463 | $ac_includes_default | |
17464 | int | |
17465 | main () | |
17466 | { | |
17467 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17468 | test_array [0] = 0 | |
17469 | ||
17470 | ; | |
17471 | return 0; | |
17472 | } | |
17473 | _ACEOF | |
17474 | rm -f conftest.$ac_objext | |
17475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17476 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17477 | ac_status=$? |
ac1cb8d3 VS |
17478 | grep -v '^ *+' conftest.er1 >conftest.err |
17479 | rm -f conftest.er1 | |
17480 | cat conftest.err >&5 | |
a848cd7e SC |
17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17482 | (exit $ac_status); } && | |
d1c38808 | 17483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17485 | (eval $ac_try) 2>&5 | |
17486 | ac_status=$? | |
17487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17488 | (exit $ac_status); }; } && | |
17489 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17491 | (eval $ac_try) 2>&5 | |
17492 | ac_status=$? | |
17493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17494 | (exit $ac_status); }; }; then | |
17495 | ac_hi=-1 ac_mid=-1 | |
17496 | while :; do | |
17497 | cat >conftest.$ac_ext <<_ACEOF | |
17498 | /* confdefs.h. */ | |
17499 | _ACEOF | |
17500 | cat confdefs.h >>conftest.$ac_ext | |
17501 | cat >>conftest.$ac_ext <<_ACEOF | |
17502 | /* end confdefs.h. */ | |
17503 | $ac_includes_default | |
17504 | int | |
17505 | main () | |
17506 | { | |
17507 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17508 | test_array [0] = 0 | |
17509 | ||
17510 | ; | |
17511 | return 0; | |
17512 | } | |
17513 | _ACEOF | |
17514 | rm -f conftest.$ac_objext | |
17515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17517 | ac_status=$? |
ac1cb8d3 VS |
17518 | grep -v '^ *+' conftest.er1 >conftest.err |
17519 | rm -f conftest.er1 | |
17520 | cat conftest.err >&5 | |
a848cd7e SC |
17521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17522 | (exit $ac_status); } && | |
d1c38808 | 17523 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17525 | (eval $ac_try) 2>&5 | |
17526 | ac_status=$? | |
17527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17528 | (exit $ac_status); }; } && | |
17529 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17531 | (eval $ac_try) 2>&5 | |
17532 | ac_status=$? | |
17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17534 | (exit $ac_status); }; }; then | |
17535 | ac_lo=$ac_mid; break | |
17536 | else | |
17537 | echo "$as_me: failed program was:" >&5 | |
17538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17539 | ||
17540 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17541 | if test $ac_mid -le $ac_hi; then |
17542 | ac_lo= ac_hi= | |
17543 | break | |
17544 | fi | |
17545 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17546 | fi |
ac1cb8d3 | 17547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17548 | done |
17549 | else | |
17550 | echo "$as_me: failed program was:" >&5 | |
17551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17552 | ||
17553 | ac_lo= ac_hi= | |
17554 | fi | |
ac1cb8d3 | 17555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17556 | fi |
ac1cb8d3 | 17557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17558 | # Binary search between lo and hi bounds. |
17559 | while test "x$ac_lo" != "x$ac_hi"; do | |
17560 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17561 | cat >conftest.$ac_ext <<_ACEOF | |
17562 | /* confdefs.h. */ | |
17563 | _ACEOF | |
17564 | cat confdefs.h >>conftest.$ac_ext | |
17565 | cat >>conftest.$ac_ext <<_ACEOF | |
17566 | /* end confdefs.h. */ | |
17567 | $ac_includes_default | |
17568 | int | |
17569 | main () | |
17570 | { | |
17571 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17572 | test_array [0] = 0 | |
17573 | ||
17574 | ; | |
17575 | return 0; | |
17576 | } | |
17577 | _ACEOF | |
17578 | rm -f conftest.$ac_objext | |
17579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17580 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17581 | ac_status=$? |
ac1cb8d3 VS |
17582 | grep -v '^ *+' conftest.er1 >conftest.err |
17583 | rm -f conftest.er1 | |
17584 | cat conftest.err >&5 | |
a848cd7e SC |
17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17586 | (exit $ac_status); } && | |
d1c38808 | 17587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17589 | (eval $ac_try) 2>&5 | |
17590 | ac_status=$? | |
17591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17592 | (exit $ac_status); }; } && | |
17593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17595 | (eval $ac_try) 2>&5 | |
17596 | ac_status=$? | |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17598 | (exit $ac_status); }; }; then | |
17599 | ac_hi=$ac_mid | |
17600 | else | |
17601 | echo "$as_me: failed program was:" >&5 | |
17602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17603 | ||
17604 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17605 | fi | |
ac1cb8d3 | 17606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17607 | done |
17608 | case $ac_lo in | |
17609 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17610 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17611 | See \`config.log' for more details." >&5 | |
17612 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17613 | See \`config.log' for more details." >&2;} | |
17614 | { (exit 1); exit 1; }; } ;; | |
17615 | esac | |
17616 | else | |
17617 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
17618 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17619 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17620 | { (exit 1); exit 1; }; } |
17621 | else | |
17622 | cat >conftest.$ac_ext <<_ACEOF | |
17623 | /* confdefs.h. */ | |
17624 | _ACEOF | |
17625 | cat confdefs.h >>conftest.$ac_ext | |
17626 | cat >>conftest.$ac_ext <<_ACEOF | |
17627 | /* end confdefs.h. */ | |
17628 | $ac_includes_default | |
17629 | long longval () { return (long) (sizeof (long long)); } | |
17630 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17631 | #include <stdio.h> | |
17632 | #include <stdlib.h> | |
17633 | int | |
17634 | main () | |
17635 | { | |
17636 | ||
17637 | FILE *f = fopen ("conftest.val", "w"); | |
17638 | if (! f) | |
17639 | exit (1); | |
17640 | if (((long) (sizeof (long long))) < 0) | |
17641 | { | |
17642 | long i = longval (); | |
17643 | if (i != ((long) (sizeof (long long)))) | |
17644 | exit (1); | |
17645 | fprintf (f, "%ld\n", i); | |
17646 | } | |
17647 | else | |
17648 | { | |
17649 | unsigned long i = ulongval (); | |
17650 | if (i != ((long) (sizeof (long long)))) | |
17651 | exit (1); | |
17652 | fprintf (f, "%lu\n", i); | |
17653 | } | |
17654 | exit (ferror (f) || fclose (f) != 0); | |
17655 | ||
17656 | ; | |
17657 | return 0; | |
17658 | } | |
17659 | _ACEOF | |
17660 | rm -f conftest$ac_exeext | |
17661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17662 | (eval $ac_link) 2>&5 | |
17663 | ac_status=$? | |
17664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17665 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
17671 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17672 | else | |
17673 | echo "$as_me: program exited with status $ac_status" >&5 | |
17674 | echo "$as_me: failed program was:" >&5 | |
17675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17676 | ||
17677 | ( exit $ac_status ) | |
17678 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17679 | See \`config.log' for more details." >&5 | |
17680 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17681 | See \`config.log' for more details." >&2;} | |
17682 | { (exit 1); exit 1; }; } | |
17683 | fi | |
ac1cb8d3 | 17684 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17685 | fi |
17686 | fi | |
17687 | rm -f conftest.val | |
17688 | else | |
17689 | ac_cv_sizeof_long_long=0 | |
17690 | fi | |
17691 | fi | |
17692 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17693 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17694 | cat >>confdefs.h <<_ACEOF | |
17695 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17696 | _ACEOF | |
17697 | ||
17698 | ||
17699 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
17700 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
17701 | fi | |
17702 | ;; | |
17703 | * ) | |
17704 | echo "$as_me:$LINENO: checking for long long" >&5 | |
17705 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
17706 | if test "${ac_cv_type_long_long+set}" = set; then | |
17707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17708 | else | |
17709 | cat >conftest.$ac_ext <<_ACEOF | |
17710 | /* confdefs.h. */ | |
17711 | _ACEOF | |
17712 | cat confdefs.h >>conftest.$ac_ext | |
17713 | cat >>conftest.$ac_ext <<_ACEOF | |
17714 | /* end confdefs.h. */ | |
17715 | $ac_includes_default | |
17716 | int | |
17717 | main () | |
17718 | { | |
17719 | if ((long long *) 0) | |
17720 | return 0; | |
17721 | if (sizeof (long long)) | |
17722 | return 0; | |
17723 | ; | |
17724 | return 0; | |
17725 | } | |
17726 | _ACEOF | |
17727 | rm -f conftest.$ac_objext | |
17728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17729 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17730 | ac_status=$? |
ac1cb8d3 VS |
17731 | grep -v '^ *+' conftest.er1 >conftest.err |
17732 | rm -f conftest.er1 | |
17733 | cat conftest.err >&5 | |
a848cd7e SC |
17734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17735 | (exit $ac_status); } && | |
d1c38808 | 17736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17738 | (eval $ac_try) 2>&5 | |
17739 | ac_status=$? | |
17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17741 | (exit $ac_status); }; } && | |
17742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17744 | (eval $ac_try) 2>&5 | |
17745 | ac_status=$? | |
17746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17747 | (exit $ac_status); }; }; then | |
17748 | ac_cv_type_long_long=yes | |
17749 | else | |
17750 | echo "$as_me: failed program was:" >&5 | |
17751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17752 | ||
17753 | ac_cv_type_long_long=no | |
17754 | fi | |
ac1cb8d3 | 17755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17756 | fi |
17757 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
17758 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
17759 | ||
17760 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
17761 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
17762 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
17763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17764 | else | |
17765 | if test "$ac_cv_type_long_long" = yes; then | |
17766 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17767 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17768 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17769 | # This bug is HP SR number 8606223364. | |
17770 | if test "$cross_compiling" = yes; then | |
17771 | # Depending upon the size, compute the lo and hi bounds. | |
17772 | cat >conftest.$ac_ext <<_ACEOF | |
17773 | /* confdefs.h. */ | |
17774 | _ACEOF | |
17775 | cat confdefs.h >>conftest.$ac_ext | |
17776 | cat >>conftest.$ac_ext <<_ACEOF | |
17777 | /* end confdefs.h. */ | |
17778 | $ac_includes_default | |
17779 | int | |
17780 | main () | |
17781 | { | |
17782 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
17783 | test_array [0] = 0 | |
17784 | ||
17785 | ; | |
17786 | return 0; | |
17787 | } | |
17788 | _ACEOF | |
17789 | rm -f conftest.$ac_objext | |
17790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17792 | ac_status=$? |
ac1cb8d3 VS |
17793 | grep -v '^ *+' conftest.er1 >conftest.err |
17794 | rm -f conftest.er1 | |
17795 | cat conftest.err >&5 | |
a848cd7e SC |
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17797 | (exit $ac_status); } && | |
d1c38808 | 17798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17800 | (eval $ac_try) 2>&5 | |
17801 | ac_status=$? | |
17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17803 | (exit $ac_status); }; } && | |
17804 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17806 | (eval $ac_try) 2>&5 | |
17807 | ac_status=$? | |
17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17809 | (exit $ac_status); }; }; then | |
17810 | ac_lo=0 ac_mid=0 | |
17811 | while :; do | |
17812 | cat >conftest.$ac_ext <<_ACEOF | |
17813 | /* confdefs.h. */ | |
17814 | _ACEOF | |
17815 | cat confdefs.h >>conftest.$ac_ext | |
17816 | cat >>conftest.$ac_ext <<_ACEOF | |
17817 | /* end confdefs.h. */ | |
17818 | $ac_includes_default | |
17819 | int | |
17820 | main () | |
17821 | { | |
17822 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17823 | test_array [0] = 0 | |
17824 | ||
17825 | ; | |
17826 | return 0; | |
17827 | } | |
17828 | _ACEOF | |
17829 | rm -f conftest.$ac_objext | |
17830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17831 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17832 | ac_status=$? |
ac1cb8d3 VS |
17833 | grep -v '^ *+' conftest.er1 >conftest.err |
17834 | rm -f conftest.er1 | |
17835 | cat conftest.err >&5 | |
a848cd7e SC |
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17837 | (exit $ac_status); } && | |
d1c38808 | 17838 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17840 | (eval $ac_try) 2>&5 | |
17841 | ac_status=$? | |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17843 | (exit $ac_status); }; } && | |
17844 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); }; }; then | |
17850 | ac_hi=$ac_mid; break | |
17851 | else | |
17852 | echo "$as_me: failed program was:" >&5 | |
17853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17854 | ||
17855 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17856 | if test $ac_lo -le $ac_mid; then |
17857 | ac_lo= ac_hi= | |
17858 | break | |
17859 | fi | |
17860 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17861 | fi |
ac1cb8d3 | 17862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17863 | done |
17864 | else | |
17865 | echo "$as_me: failed program was:" >&5 | |
17866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17867 | ||
17868 | cat >conftest.$ac_ext <<_ACEOF | |
17869 | /* confdefs.h. */ | |
17870 | _ACEOF | |
17871 | cat confdefs.h >>conftest.$ac_ext | |
17872 | cat >>conftest.$ac_ext <<_ACEOF | |
17873 | /* end confdefs.h. */ | |
17874 | $ac_includes_default | |
17875 | int | |
17876 | main () | |
17877 | { | |
17878 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17879 | test_array [0] = 0 | |
17880 | ||
17881 | ; | |
17882 | return 0; | |
17883 | } | |
17884 | _ACEOF | |
17885 | rm -f conftest.$ac_objext | |
17886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17887 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17888 | ac_status=$? |
ac1cb8d3 VS |
17889 | grep -v '^ *+' conftest.er1 >conftest.err |
17890 | rm -f conftest.er1 | |
17891 | cat conftest.err >&5 | |
a848cd7e SC |
17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17893 | (exit $ac_status); } && | |
d1c38808 | 17894 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17896 | (eval $ac_try) 2>&5 | |
17897 | ac_status=$? | |
17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17899 | (exit $ac_status); }; } && | |
17900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17902 | (eval $ac_try) 2>&5 | |
17903 | ac_status=$? | |
17904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17905 | (exit $ac_status); }; }; then | |
17906 | ac_hi=-1 ac_mid=-1 | |
17907 | while :; do | |
17908 | cat >conftest.$ac_ext <<_ACEOF | |
17909 | /* confdefs.h. */ | |
17910 | _ACEOF | |
17911 | cat confdefs.h >>conftest.$ac_ext | |
17912 | cat >>conftest.$ac_ext <<_ACEOF | |
17913 | /* end confdefs.h. */ | |
17914 | $ac_includes_default | |
17915 | int | |
17916 | main () | |
17917 | { | |
17918 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17919 | test_array [0] = 0 | |
17920 | ||
17921 | ; | |
17922 | return 0; | |
17923 | } | |
17924 | _ACEOF | |
17925 | rm -f conftest.$ac_objext | |
17926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17927 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17928 | ac_status=$? |
ac1cb8d3 VS |
17929 | grep -v '^ *+' conftest.er1 >conftest.err |
17930 | rm -f conftest.er1 | |
17931 | cat conftest.err >&5 | |
a848cd7e SC |
17932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17933 | (exit $ac_status); } && | |
d1c38808 | 17934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17936 | (eval $ac_try) 2>&5 | |
17937 | ac_status=$? | |
17938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17939 | (exit $ac_status); }; } && | |
17940 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17942 | (eval $ac_try) 2>&5 | |
17943 | ac_status=$? | |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17945 | (exit $ac_status); }; }; then | |
17946 | ac_lo=$ac_mid; break | |
17947 | else | |
17948 | echo "$as_me: failed program was:" >&5 | |
17949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17950 | ||
17951 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17952 | if test $ac_mid -le $ac_hi; then |
17953 | ac_lo= ac_hi= | |
17954 | break | |
17955 | fi | |
17956 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17957 | fi |
ac1cb8d3 | 17958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17959 | done |
17960 | else | |
17961 | echo "$as_me: failed program was:" >&5 | |
17962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17963 | ||
17964 | ac_lo= ac_hi= | |
17965 | fi | |
ac1cb8d3 | 17966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17967 | fi |
ac1cb8d3 | 17968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17969 | # Binary search between lo and hi bounds. |
17970 | while test "x$ac_lo" != "x$ac_hi"; do | |
17971 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17972 | cat >conftest.$ac_ext <<_ACEOF | |
17973 | /* confdefs.h. */ | |
17974 | _ACEOF | |
17975 | cat confdefs.h >>conftest.$ac_ext | |
17976 | cat >>conftest.$ac_ext <<_ACEOF | |
17977 | /* end confdefs.h. */ | |
17978 | $ac_includes_default | |
17979 | int | |
17980 | main () | |
17981 | { | |
17982 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17983 | test_array [0] = 0 | |
17984 | ||
17985 | ; | |
17986 | return 0; | |
17987 | } | |
17988 | _ACEOF | |
17989 | rm -f conftest.$ac_objext | |
17990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17991 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17992 | ac_status=$? |
ac1cb8d3 VS |
17993 | grep -v '^ *+' conftest.er1 >conftest.err |
17994 | rm -f conftest.er1 | |
17995 | cat conftest.err >&5 | |
a848cd7e SC |
17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17997 | (exit $ac_status); } && | |
d1c38808 | 17998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18000 | (eval $ac_try) 2>&5 | |
18001 | ac_status=$? | |
18002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18003 | (exit $ac_status); }; } && | |
18004 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18006 | (eval $ac_try) 2>&5 | |
18007 | ac_status=$? | |
18008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18009 | (exit $ac_status); }; }; then | |
18010 | ac_hi=$ac_mid | |
18011 | else | |
18012 | echo "$as_me: failed program was:" >&5 | |
18013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18014 | ||
18015 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18016 | fi | |
ac1cb8d3 | 18017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18018 | done |
18019 | case $ac_lo in | |
18020 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
18021 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18022 | See \`config.log' for more details." >&5 | |
18023 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18024 | See \`config.log' for more details." >&2;} | |
18025 | { (exit 1); exit 1; }; } ;; | |
18026 | esac | |
18027 | else | |
18028 | if test "$cross_compiling" = yes; then | |
d1c38808 VZ |
18029 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18030 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18031 | { (exit 1); exit 1; }; } |
18032 | else | |
18033 | cat >conftest.$ac_ext <<_ACEOF | |
18034 | /* confdefs.h. */ | |
18035 | _ACEOF | |
18036 | cat confdefs.h >>conftest.$ac_ext | |
18037 | cat >>conftest.$ac_ext <<_ACEOF | |
18038 | /* end confdefs.h. */ | |
18039 | $ac_includes_default | |
18040 | long longval () { return (long) (sizeof (long long)); } | |
18041 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
18042 | #include <stdio.h> | |
18043 | #include <stdlib.h> | |
18044 | int | |
18045 | main () | |
18046 | { | |
18047 | ||
18048 | FILE *f = fopen ("conftest.val", "w"); | |
18049 | if (! f) | |
18050 | exit (1); | |
18051 | if (((long) (sizeof (long long))) < 0) | |
18052 | { | |
18053 | long i = longval (); | |
18054 | if (i != ((long) (sizeof (long long)))) | |
18055 | exit (1); | |
18056 | fprintf (f, "%ld\n", i); | |
18057 | } | |
18058 | else | |
18059 | { | |
18060 | unsigned long i = ulongval (); | |
18061 | if (i != ((long) (sizeof (long long)))) | |
18062 | exit (1); | |
18063 | fprintf (f, "%lu\n", i); | |
18064 | } | |
18065 | exit (ferror (f) || fclose (f) != 0); | |
18066 | ||
18067 | ; | |
18068 | return 0; | |
18069 | } | |
18070 | _ACEOF | |
18071 | rm -f conftest$ac_exeext | |
18072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18073 | (eval $ac_link) 2>&5 | |
18074 | ac_status=$? | |
18075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18076 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18078 | (eval $ac_try) 2>&5 | |
18079 | ac_status=$? | |
18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18081 | (exit $ac_status); }; }; then | |
18082 | ac_cv_sizeof_long_long=`cat conftest.val` | |
18083 | else | |
18084 | echo "$as_me: program exited with status $ac_status" >&5 | |
18085 | echo "$as_me: failed program was:" >&5 | |
18086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18087 | ||
18088 | ( exit $ac_status ) | |
18089 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
18090 | See \`config.log' for more details." >&5 | |
18091 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
18092 | See \`config.log' for more details." >&2;} | |
18093 | { (exit 1); exit 1; }; } | |
18094 | fi | |
ac1cb8d3 | 18095 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18096 | fi |
18097 | fi | |
18098 | rm -f conftest.val | |
18099 | else | |
18100 | ac_cv_sizeof_long_long=0 | |
18101 | fi | |
18102 | fi | |
18103 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
18104 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
18105 | cat >>confdefs.h <<_ACEOF | |
18106 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
18107 | _ACEOF | |
18108 | ||
18109 | ||
18110 | esac | |
18111 | ||
18112 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
18113 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
18114 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
18115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18116 | else | |
18117 | ||
18118 | if test "$cross_compiling" = yes; then | |
18119 | ||
18120 | case "${host}" in | |
18121 | *-pc-msdosdjgpp ) | |
18122 | wx_cv_sizeof_wchar_t=0 | |
18123 | ;; | |
18124 | * ) | |
18125 | wx_cv_sizeof_wchar_t=4 | |
18126 | ;; | |
18127 | esac | |
18128 | ||
18129 | ||
18130 | else | |
18131 | cat >conftest.$ac_ext <<_ACEOF | |
18132 | /* confdefs.h. */ | |
18133 | _ACEOF | |
18134 | cat confdefs.h >>conftest.$ac_ext | |
18135 | cat >>conftest.$ac_ext <<_ACEOF | |
18136 | /* end confdefs.h. */ | |
18137 | ||
18138 | /* DJGPP only has fake wchar_t: */ | |
18139 | #ifdef __DJGPP__ | |
18140 | # error "fake wchar_t" | |
18141 | #endif | |
18142 | #ifdef HAVE_WCHAR_H | |
18143 | # ifdef __CYGWIN__ | |
18144 | # include <stddef.h> | |
18145 | # endif | |
18146 | # include <wchar.h> | |
18147 | #endif | |
18148 | #ifdef HAVE_STDLIB_H | |
18149 | # include <stdlib.h> | |
18150 | #endif | |
18151 | #include <stdio.h> | |
18152 | int main() | |
18153 | { | |
18154 | FILE *f=fopen("conftestval", "w"); | |
18155 | if (!f) exit(1); | |
18156 | fprintf(f, "%i", sizeof(wchar_t)); | |
18157 | exit(0); | |
18158 | } | |
18159 | ||
18160 | _ACEOF | |
18161 | rm -f conftest$ac_exeext | |
18162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18163 | (eval $ac_link) 2>&5 | |
18164 | ac_status=$? | |
18165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18168 | (eval $ac_try) 2>&5 | |
18169 | ac_status=$? | |
18170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18171 | (exit $ac_status); }; }; then | |
18172 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
18173 | else | |
18174 | echo "$as_me: program exited with status $ac_status" >&5 | |
18175 | echo "$as_me: failed program was:" >&5 | |
18176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18177 | ||
18178 | ( exit $ac_status ) | |
18179 | wx_cv_sizeof_wchar_t=0 | |
18180 | fi | |
ac1cb8d3 | 18181 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18182 | fi |
18183 | ||
18184 | fi | |
18185 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
18186 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
18187 | ||
18188 | cat >>confdefs.h <<_ACEOF | |
18189 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
18190 | _ACEOF | |
18191 | ||
18192 | ||
ba3d13e1 VZ |
18193 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
18194 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
18195 | if test "${wx_cv_func_va_copy+set}" = set; then | |
18196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18197 | else | |
18198 | ||
18199 | cat >conftest.$ac_ext <<_ACEOF | |
18200 | ||
18201 | #include <stdarg.h> | |
18202 | void foo(char *f, ...) | |
18203 | { | |
18204 | va_list ap1, ap2; | |
18205 | va_start(ap1, f); | |
18206 | va_copy(ap2, ap1); | |
18207 | va_end(ap2); | |
18208 | va_end(ap1); | |
18209 | } | |
18210 | _ACEOF | |
18211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18213 | (eval $ac_link) 2>conftest.er1 | |
18214 | ac_status=$? | |
18215 | grep -v '^ *+' conftest.er1 >conftest.err | |
18216 | rm -f conftest.er1 | |
18217 | cat conftest.err >&5 | |
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18219 | (exit $ac_status); } && | |
d1c38808 | 18220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
18221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18222 | (eval $ac_try) 2>&5 | |
18223 | ac_status=$? | |
18224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18225 | (exit $ac_status); }; } && | |
18226 | { ac_try='test -s conftest$ac_exeext' | |
18227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18228 | (eval $ac_try) 2>&5 | |
18229 | ac_status=$? | |
18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18231 | (exit $ac_status); }; }; then | |
18232 | wx_cv_func_va_copy=yes | |
18233 | else | |
18234 | echo "$as_me: failed program was:" >&5 | |
18235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18236 | ||
18237 | wx_cv_func_va_copy=no | |
18238 | ||
18239 | fi | |
18240 | rm -f conftest.err conftest.$ac_objext \ | |
18241 | conftest$ac_exeext conftest.$ac_ext | |
18242 | ||
18243 | ||
18244 | fi | |
18245 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
18246 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
18247 | ||
18248 | if test $wx_cv_func_va_copy = "yes"; then | |
18249 | cat >>confdefs.h <<\_ACEOF | |
18250 | #define HAVE_VA_COPY 1 | |
18251 | _ACEOF | |
18252 | ||
18253 | else | |
18254 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
18255 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
18256 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
18257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18258 | else | |
18259 | ||
18260 | if test "$cross_compiling" = yes; then | |
18261 | wx_cv_type_va_list_lvalue=yes | |
18262 | ||
18263 | else | |
18264 | cat >conftest.$ac_ext <<_ACEOF | |
18265 | ||
18266 | #include <stdarg.h> | |
18267 | int foo(char *f, ...) | |
18268 | { | |
18269 | va_list ap1, ap2; | |
18270 | va_start(ap1, f); | |
18271 | ap2 = ap1; | |
18272 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
18273 | return 1; | |
18274 | va_end(ap2); | |
18275 | va_end(ap1); | |
18276 | return 0; | |
18277 | } | |
18278 | int main() | |
18279 | { | |
18280 | return foo("hi", 17); | |
18281 | } | |
18282 | _ACEOF | |
18283 | rm -f conftest$ac_exeext | |
18284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18285 | (eval $ac_link) 2>&5 | |
18286 | ac_status=$? | |
18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18290 | (eval $ac_try) 2>&5 | |
18291 | ac_status=$? | |
18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18293 | (exit $ac_status); }; }; then | |
18294 | wx_cv_type_va_list_lvalue=yes | |
18295 | else | |
18296 | echo "$as_me: program exited with status $ac_status" >&5 | |
18297 | echo "$as_me: failed program was:" >&5 | |
18298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18299 | ||
18300 | ( exit $ac_status ) | |
18301 | wx_cv_type_va_list_lvalue=no | |
18302 | fi | |
18303 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
18304 | fi | |
18305 | ||
18306 | ||
18307 | fi | |
18308 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
18309 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
18310 | ||
18311 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
18312 | cat >>confdefs.h <<\_ACEOF | |
18313 | #define VA_LIST_IS_ARRAY 1 | |
18314 | _ACEOF | |
18315 | ||
18316 | fi | |
18317 | fi | |
18318 | ||
a848cd7e SC |
18319 | # Check whether --enable-largefile or --disable-largefile was given. |
18320 | if test "${enable_largefile+set}" = set; then | |
18321 | enableval="$enable_largefile" | |
18322 | ||
18323 | fi; | |
18324 | if test "$enable_largefile" != no; then | |
18325 | wx_largefile=no | |
18326 | ||
18327 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
18328 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
18329 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
18330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18331 | else | |
18332 | ||
18333 | cat >conftest.$ac_ext <<_ACEOF | |
18334 | /* confdefs.h. */ | |
18335 | _ACEOF | |
18336 | cat confdefs.h >>conftest.$ac_ext | |
18337 | cat >>conftest.$ac_ext <<_ACEOF | |
18338 | /* end confdefs.h. */ | |
18339 | #define _FILE_OFFSET_BITS 64 | |
18340 | #include <sys/types.h> | |
18341 | int | |
18342 | main () | |
18343 | { | |
18344 | typedef struct { | |
18345 | unsigned int field: sizeof(off_t) == 8; | |
18346 | } wxlf; | |
18347 | ||
18348 | ; | |
18349 | return 0; | |
18350 | } | |
18351 | _ACEOF | |
18352 | rm -f conftest.$ac_objext | |
18353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18355 | ac_status=$? |
ac1cb8d3 VS |
18356 | grep -v '^ *+' conftest.er1 >conftest.err |
18357 | rm -f conftest.er1 | |
18358 | cat conftest.err >&5 | |
a848cd7e SC |
18359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18360 | (exit $ac_status); } && | |
d1c38808 | 18361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18363 | (eval $ac_try) 2>&5 | |
18364 | ac_status=$? | |
18365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18366 | (exit $ac_status); }; } && | |
18367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); }; }; then | |
18373 | ac_cv_sys_file_offset_bits=64 | |
18374 | else | |
18375 | echo "$as_me: failed program was:" >&5 | |
18376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18377 | ||
18378 | ac_cv_sys_file_offset_bits=no | |
18379 | fi | |
ac1cb8d3 | 18380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18381 | |
18382 | ||
18383 | fi | |
18384 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
18385 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
18386 | ||
18387 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
18388 | wx_largefile=yes | |
18389 | cat >>confdefs.h <<_ACEOF | |
18390 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
18391 | _ACEOF | |
18392 | ||
18393 | fi | |
18394 | ||
18395 | if test "x$wx_largefile" != "xyes"; then | |
18396 | ||
18397 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
18398 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
18399 | if test "${ac_cv_sys_large_files+set}" = set; then | |
18400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18401 | else | |
18402 | ||
18403 | cat >conftest.$ac_ext <<_ACEOF | |
18404 | /* confdefs.h. */ | |
18405 | _ACEOF | |
18406 | cat confdefs.h >>conftest.$ac_ext | |
18407 | cat >>conftest.$ac_ext <<_ACEOF | |
18408 | /* end confdefs.h. */ | |
18409 | #define _LARGE_FILES 1 | |
18410 | #include <sys/types.h> | |
18411 | int | |
18412 | main () | |
18413 | { | |
18414 | typedef struct { | |
18415 | unsigned int field: sizeof(off_t) == 8; | |
18416 | } wxlf; | |
18417 | ||
18418 | ; | |
18419 | return 0; | |
18420 | } | |
18421 | _ACEOF | |
18422 | rm -f conftest.$ac_objext | |
18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18425 | ac_status=$? |
ac1cb8d3 VS |
18426 | grep -v '^ *+' conftest.er1 >conftest.err |
18427 | rm -f conftest.er1 | |
18428 | cat conftest.err >&5 | |
a848cd7e SC |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18430 | (exit $ac_status); } && | |
d1c38808 | 18431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18433 | (eval $ac_try) 2>&5 | |
18434 | ac_status=$? | |
18435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18436 | (exit $ac_status); }; } && | |
18437 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18439 | (eval $ac_try) 2>&5 | |
18440 | ac_status=$? | |
18441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18442 | (exit $ac_status); }; }; then | |
18443 | ac_cv_sys_large_files=1 | |
18444 | else | |
18445 | echo "$as_me: failed program was:" >&5 | |
18446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18447 | ||
18448 | ac_cv_sys_large_files=no | |
18449 | fi | |
ac1cb8d3 | 18450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18451 | |
18452 | ||
18453 | fi | |
18454 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
18455 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
18456 | ||
18457 | if test "$ac_cv_sys_large_files" != no; then | |
18458 | wx_largefile=yes | |
18459 | cat >>confdefs.h <<_ACEOF | |
18460 | #define _LARGE_FILES $ac_cv_sys_large_files | |
18461 | _ACEOF | |
18462 | ||
18463 | fi | |
18464 | ||
18465 | fi | |
18466 | ||
18467 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
18468 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
18469 | if test "x$wx_largefile" = "xyes"; then | |
18470 | cat >>confdefs.h <<\_ACEOF | |
18471 | #define HAVE_LARGEFILE_SUPPORT 1 | |
18472 | _ACEOF | |
18473 | ||
18474 | fi | |
18475 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
18476 | echo "${ECHO_T}$wx_largefile" >&6 | |
18477 | fi | |
18478 | ||
18479 | ||
18480 | if test "x$wx_largefile" = "xyes"; then | |
18481 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
18482 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
18483 | else | |
18484 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
18485 | fi | |
18486 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
18487 | fi | |
18488 | ||
18489 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
18490 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
18491 | if test "${ac_cv_c_bigendian+set}" = set; then | |
18492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18493 | else | |
18494 | ac_cv_c_bigendian=unknown | |
18495 | # See if sys/param.h defines the BYTE_ORDER macro. | |
18496 | cat >conftest.$ac_ext <<_ACEOF | |
18497 | /* confdefs.h. */ | |
18498 | _ACEOF | |
18499 | cat confdefs.h >>conftest.$ac_ext | |
18500 | cat >>conftest.$ac_ext <<_ACEOF | |
18501 | /* end confdefs.h. */ | |
18502 | #include <sys/types.h> | |
18503 | #include <sys/param.h> | |
18504 | int | |
18505 | main () | |
18506 | { | |
18507 | ||
18508 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
18509 | bogus endian macros | |
18510 | #endif | |
18511 | ; | |
18512 | return 0; | |
18513 | } | |
18514 | _ACEOF | |
18515 | rm -f conftest.$ac_objext | |
18516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18517 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18518 | ac_status=$? |
ac1cb8d3 VS |
18519 | grep -v '^ *+' conftest.er1 >conftest.err |
18520 | rm -f conftest.er1 | |
18521 | cat conftest.err >&5 | |
a848cd7e SC |
18522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18523 | (exit $ac_status); } && | |
d1c38808 | 18524 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18526 | (eval $ac_try) 2>&5 | |
18527 | ac_status=$? | |
18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18529 | (exit $ac_status); }; } && | |
18530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18532 | (eval $ac_try) 2>&5 | |
18533 | ac_status=$? | |
18534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18535 | (exit $ac_status); }; }; then | |
18536 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
18537 | cat >conftest.$ac_ext <<_ACEOF | |
18538 | /* confdefs.h. */ | |
18539 | _ACEOF | |
18540 | cat confdefs.h >>conftest.$ac_ext | |
18541 | cat >>conftest.$ac_ext <<_ACEOF | |
18542 | /* end confdefs.h. */ | |
18543 | #include <sys/types.h> | |
18544 | #include <sys/param.h> | |
18545 | int | |
18546 | main () | |
18547 | { | |
18548 | ||
18549 | #if BYTE_ORDER != BIG_ENDIAN | |
18550 | not big endian | |
18551 | #endif | |
18552 | ; | |
18553 | return 0; | |
18554 | } | |
18555 | _ACEOF | |
18556 | rm -f conftest.$ac_objext | |
18557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18558 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18559 | ac_status=$? |
ac1cb8d3 VS |
18560 | grep -v '^ *+' conftest.er1 >conftest.err |
18561 | rm -f conftest.er1 | |
18562 | cat conftest.err >&5 | |
a848cd7e SC |
18563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18564 | (exit $ac_status); } && | |
d1c38808 | 18565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18567 | (eval $ac_try) 2>&5 | |
18568 | ac_status=$? | |
18569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18570 | (exit $ac_status); }; } && | |
18571 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18573 | (eval $ac_try) 2>&5 | |
18574 | ac_status=$? | |
18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18576 | (exit $ac_status); }; }; then | |
18577 | ac_cv_c_bigendian=yes | |
18578 | else | |
18579 | echo "$as_me: failed program was:" >&5 | |
18580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18581 | ||
18582 | ac_cv_c_bigendian=no | |
18583 | fi | |
ac1cb8d3 | 18584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18585 | else |
18586 | echo "$as_me: failed program was:" >&5 | |
18587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18588 | ||
18589 | fi | |
ac1cb8d3 | 18590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18591 | if test $ac_cv_c_bigendian = unknown; then |
18592 | if test "$cross_compiling" = yes; then | |
18593 | ac_cv_c_bigendian=unknown | |
18594 | else | |
18595 | cat >conftest.$ac_ext <<_ACEOF | |
18596 | /* confdefs.h. */ | |
18597 | _ACEOF | |
18598 | cat confdefs.h >>conftest.$ac_ext | |
18599 | cat >>conftest.$ac_ext <<_ACEOF | |
18600 | /* end confdefs.h. */ | |
18601 | main () { | |
18602 | /* Are we little or big endian? From Harbison&Steele. */ | |
18603 | union | |
18604 | { | |
18605 | long l; | |
18606 | char c[sizeof (long)]; | |
18607 | } u; | |
18608 | u.l = 1; | |
18609 | exit (u.c[sizeof (long) - 1] == 1); | |
18610 | } | |
18611 | _ACEOF | |
18612 | rm -f conftest$ac_exeext | |
18613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18614 | (eval $ac_link) 2>&5 | |
18615 | ac_status=$? | |
18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18617 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18619 | (eval $ac_try) 2>&5 | |
18620 | ac_status=$? | |
18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 | (exit $ac_status); }; }; then | |
18623 | ac_cv_c_bigendian=no | |
18624 | else | |
18625 | echo "$as_me: program exited with status $ac_status" >&5 | |
18626 | echo "$as_me: failed program was:" >&5 | |
18627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18628 | ||
18629 | ( exit $ac_status ) | |
18630 | ac_cv_c_bigendian=yes | |
18631 | fi | |
ac1cb8d3 | 18632 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18633 | fi |
18634 | fi | |
18635 | fi | |
18636 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
18637 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
18638 | if test $ac_cv_c_bigendian = unknown; then | |
18639 | { 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 | |
18640 | 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;} | |
18641 | fi | |
18642 | if test $ac_cv_c_bigendian = yes; then | |
18643 | cat >>confdefs.h <<\_ACEOF | |
18644 | #define WORDS_BIGENDIAN 1 | |
18645 | _ACEOF | |
18646 | ||
18647 | fi | |
18648 | ||
18649 | ||
18650 | ac_ext=cc | |
18651 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18655 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
18656 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
18657 | if test -z "$CXXCPP"; then | |
18658 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
18659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18660 | else | |
18661 | # Double quotes because CXXCPP needs to be expanded | |
18662 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
18663 | do | |
18664 | ac_preproc_ok=false | |
18665 | for ac_cxx_preproc_warn_flag in '' yes | |
18666 | do | |
18667 | # Use a header file that comes with gcc, so configuring glibc | |
18668 | # with a fresh cross-compiler works. | |
18669 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18670 | # <limits.h> exists even on freestanding compilers. | |
18671 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18672 | # not just through cpp. "Syntax error" is here to catch this case. | |
18673 | cat >conftest.$ac_ext <<_ACEOF | |
18674 | /* confdefs.h. */ | |
18675 | _ACEOF | |
18676 | cat confdefs.h >>conftest.$ac_ext | |
18677 | cat >>conftest.$ac_ext <<_ACEOF | |
18678 | /* end confdefs.h. */ | |
18679 | #ifdef __STDC__ | |
18680 | # include <limits.h> | |
18681 | #else | |
18682 | # include <assert.h> | |
18683 | #endif | |
ac1cb8d3 | 18684 | Syntax error |
a848cd7e SC |
18685 | _ACEOF |
18686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18688 | ac_status=$? | |
18689 | grep -v '^ *+' conftest.er1 >conftest.err | |
18690 | rm -f conftest.er1 | |
18691 | cat conftest.err >&5 | |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18693 | (exit $ac_status); } >/dev/null; then | |
18694 | if test -s conftest.err; then | |
18695 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18696 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18697 | else |
18698 | ac_cpp_err= | |
18699 | fi | |
18700 | else | |
18701 | ac_cpp_err=yes | |
18702 | fi | |
18703 | if test -z "$ac_cpp_err"; then | |
18704 | : | |
18705 | else | |
18706 | echo "$as_me: failed program was:" >&5 | |
18707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18708 | ||
18709 | # Broken: fails on valid input. | |
18710 | continue | |
18711 | fi | |
18712 | rm -f conftest.err conftest.$ac_ext | |
18713 | ||
18714 | # OK, works on sane cases. Now check whether non-existent headers | |
18715 | # can be detected and how. | |
18716 | cat >conftest.$ac_ext <<_ACEOF | |
18717 | /* confdefs.h. */ | |
18718 | _ACEOF | |
18719 | cat confdefs.h >>conftest.$ac_ext | |
18720 | cat >>conftest.$ac_ext <<_ACEOF | |
18721 | /* end confdefs.h. */ | |
18722 | #include <ac_nonexistent.h> | |
18723 | _ACEOF | |
18724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18726 | ac_status=$? | |
18727 | grep -v '^ *+' conftest.er1 >conftest.err | |
18728 | rm -f conftest.er1 | |
18729 | cat conftest.err >&5 | |
18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18731 | (exit $ac_status); } >/dev/null; then | |
18732 | if test -s conftest.err; then | |
18733 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18734 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18735 | else |
18736 | ac_cpp_err= | |
18737 | fi | |
18738 | else | |
18739 | ac_cpp_err=yes | |
18740 | fi | |
18741 | if test -z "$ac_cpp_err"; then | |
18742 | # Broken: success on invalid input. | |
18743 | continue | |
18744 | else | |
18745 | echo "$as_me: failed program was:" >&5 | |
18746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18747 | ||
18748 | # Passes both tests. | |
18749 | ac_preproc_ok=: | |
18750 | break | |
18751 | fi | |
18752 | rm -f conftest.err conftest.$ac_ext | |
18753 | ||
18754 | done | |
18755 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18756 | rm -f conftest.err conftest.$ac_ext | |
18757 | if $ac_preproc_ok; then | |
18758 | break | |
18759 | fi | |
18760 | ||
18761 | done | |
18762 | ac_cv_prog_CXXCPP=$CXXCPP | |
18763 | ||
18764 | fi | |
18765 | CXXCPP=$ac_cv_prog_CXXCPP | |
18766 | else | |
18767 | ac_cv_prog_CXXCPP=$CXXCPP | |
18768 | fi | |
18769 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
18770 | echo "${ECHO_T}$CXXCPP" >&6 | |
18771 | ac_preproc_ok=false | |
18772 | for ac_cxx_preproc_warn_flag in '' yes | |
18773 | do | |
18774 | # Use a header file that comes with gcc, so configuring glibc | |
18775 | # with a fresh cross-compiler works. | |
18776 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18777 | # <limits.h> exists even on freestanding compilers. | |
18778 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
18779 | # not just through cpp. "Syntax error" is here to catch this case. | |
18780 | cat >conftest.$ac_ext <<_ACEOF | |
18781 | /* confdefs.h. */ | |
18782 | _ACEOF | |
18783 | cat confdefs.h >>conftest.$ac_ext | |
18784 | cat >>conftest.$ac_ext <<_ACEOF | |
18785 | /* end confdefs.h. */ | |
18786 | #ifdef __STDC__ | |
18787 | # include <limits.h> | |
18788 | #else | |
18789 | # include <assert.h> | |
18790 | #endif | |
ac1cb8d3 | 18791 | Syntax error |
a848cd7e SC |
18792 | _ACEOF |
18793 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18794 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18795 | ac_status=$? | |
18796 | grep -v '^ *+' conftest.er1 >conftest.err | |
18797 | rm -f conftest.er1 | |
18798 | cat conftest.err >&5 | |
18799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18800 | (exit $ac_status); } >/dev/null; then | |
18801 | if test -s conftest.err; then | |
18802 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18803 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18804 | else |
18805 | ac_cpp_err= | |
18806 | fi | |
18807 | else | |
18808 | ac_cpp_err=yes | |
18809 | fi | |
18810 | if test -z "$ac_cpp_err"; then | |
18811 | : | |
18812 | else | |
18813 | echo "$as_me: failed program was:" >&5 | |
18814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18815 | ||
18816 | # Broken: fails on valid input. | |
18817 | continue | |
18818 | fi | |
18819 | rm -f conftest.err conftest.$ac_ext | |
18820 | ||
18821 | # OK, works on sane cases. Now check whether non-existent headers | |
18822 | # can be detected and how. | |
18823 | cat >conftest.$ac_ext <<_ACEOF | |
18824 | /* confdefs.h. */ | |
18825 | _ACEOF | |
18826 | cat confdefs.h >>conftest.$ac_ext | |
18827 | cat >>conftest.$ac_ext <<_ACEOF | |
18828 | /* end confdefs.h. */ | |
18829 | #include <ac_nonexistent.h> | |
18830 | _ACEOF | |
18831 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18833 | ac_status=$? | |
18834 | grep -v '^ *+' conftest.er1 >conftest.err | |
18835 | rm -f conftest.er1 | |
18836 | cat conftest.err >&5 | |
18837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18838 | (exit $ac_status); } >/dev/null; then | |
18839 | if test -s conftest.err; then | |
18840 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18841 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18842 | else |
18843 | ac_cpp_err= | |
18844 | fi | |
18845 | else | |
18846 | ac_cpp_err=yes | |
18847 | fi | |
18848 | if test -z "$ac_cpp_err"; then | |
18849 | # Broken: success on invalid input. | |
18850 | continue | |
18851 | else | |
18852 | echo "$as_me: failed program was:" >&5 | |
18853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18854 | ||
18855 | # Passes both tests. | |
18856 | ac_preproc_ok=: | |
18857 | break | |
18858 | fi | |
18859 | rm -f conftest.err conftest.$ac_ext | |
18860 | ||
18861 | done | |
18862 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
18863 | rm -f conftest.err conftest.$ac_ext | |
18864 | if $ac_preproc_ok; then | |
18865 | : | |
18866 | else | |
18867 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18868 | See \`config.log' for more details." >&5 | |
18869 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
18870 | See \`config.log' for more details." >&2;} | |
18871 | { (exit 1); exit 1; }; } | |
18872 | fi | |
18873 | ||
18874 | ac_ext=cc | |
18875 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18879 | ||
18880 | ||
18881 | ||
18882 | ||
18883 | ||
18884 | ac_ext=cc | |
18885 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18886 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18887 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18888 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18889 | ||
18890 | ||
18891 | ||
18892 | for ac_header in iostream | |
18893 | do | |
18894 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18895 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18896 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18897 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18898 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18900 | fi | |
18901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18902 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18903 | else | |
18904 | # Is the header compilable? | |
18905 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18906 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18907 | cat >conftest.$ac_ext <<_ACEOF | |
18908 | /* confdefs.h. */ | |
18909 | _ACEOF | |
18910 | cat confdefs.h >>conftest.$ac_ext | |
18911 | cat >>conftest.$ac_ext <<_ACEOF | |
18912 | /* end confdefs.h. */ | |
18913 | $ac_includes_default | |
18914 | #include <$ac_header> | |
18915 | _ACEOF | |
18916 | rm -f conftest.$ac_objext | |
18917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18919 | ac_status=$? |
ac1cb8d3 VS |
18920 | grep -v '^ *+' conftest.er1 >conftest.err |
18921 | rm -f conftest.er1 | |
18922 | cat conftest.err >&5 | |
a848cd7e SC |
18923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18924 | (exit $ac_status); } && | |
d1c38808 | 18925 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18927 | (eval $ac_try) 2>&5 | |
18928 | ac_status=$? | |
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18930 | (exit $ac_status); }; } && | |
18931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18933 | (eval $ac_try) 2>&5 | |
18934 | ac_status=$? | |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18936 | (exit $ac_status); }; }; then | |
18937 | ac_header_compiler=yes | |
18938 | else | |
18939 | echo "$as_me: failed program was:" >&5 | |
18940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18941 | ||
18942 | ac_header_compiler=no | |
18943 | fi | |
ac1cb8d3 | 18944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18945 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18946 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18947 | ||
18948 | # Is the header present? | |
18949 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18950 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18951 | cat >conftest.$ac_ext <<_ACEOF | |
18952 | /* confdefs.h. */ | |
18953 | _ACEOF | |
18954 | cat confdefs.h >>conftest.$ac_ext | |
18955 | cat >>conftest.$ac_ext <<_ACEOF | |
18956 | /* end confdefs.h. */ | |
18957 | #include <$ac_header> | |
18958 | _ACEOF | |
18959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18961 | ac_status=$? | |
18962 | grep -v '^ *+' conftest.er1 >conftest.err | |
18963 | rm -f conftest.er1 | |
18964 | cat conftest.err >&5 | |
18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18966 | (exit $ac_status); } >/dev/null; then | |
18967 | if test -s conftest.err; then | |
18968 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 18969 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
18970 | else |
18971 | ac_cpp_err= | |
18972 | fi | |
18973 | else | |
18974 | ac_cpp_err=yes | |
18975 | fi | |
18976 | if test -z "$ac_cpp_err"; then | |
18977 | ac_header_preproc=yes | |
18978 | else | |
18979 | echo "$as_me: failed program was:" >&5 | |
18980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18981 | ||
18982 | ac_header_preproc=no | |
18983 | fi | |
18984 | rm -f conftest.err conftest.$ac_ext | |
18985 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18986 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18987 | ||
18988 | # So? What about this header? | |
ac1cb8d3 VS |
18989 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
18990 | yes:no: ) | |
a848cd7e SC |
18991 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18992 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
18993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18994 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18995 | ac_header_preproc=yes | |
a848cd7e | 18996 | ;; |
ac1cb8d3 | 18997 | no:yes:* ) |
a848cd7e SC |
18998 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18999 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19000 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19001 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19002 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19003 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19004 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19005 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
19006 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19007 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19008 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19009 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
19010 | ( |
19011 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19012 | ## ----------------------------------------- ## |
19013 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19014 | ## ----------------------------------------- ## | |
a848cd7e SC |
19015 | _ASBOX |
19016 | ) | | |
19017 | sed "s/^/$as_me: WARNING: /" >&2 | |
19018 | ;; | |
19019 | esac | |
19020 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19021 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19022 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19024 | else | |
ac1cb8d3 | 19025 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
19026 | fi |
19027 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19028 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19029 | ||
19030 | fi | |
19031 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19032 | cat >>confdefs.h <<_ACEOF | |
19033 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19034 | _ACEOF | |
19035 | ||
19036 | fi | |
19037 | ||
19038 | done | |
19039 | ||
19040 | ||
19041 | if test "$ac_cv_header_iostream" = "yes" ; then | |
19042 | : | |
19043 | else | |
19044 | cat >>confdefs.h <<\_ACEOF | |
19045 | #define wxUSE_IOSTREAMH 1 | |
19046 | _ACEOF | |
19047 | ||
19048 | fi | |
19049 | ||
19050 | ac_ext=c | |
19051 | ac_cpp='$CPP $CPPFLAGS' | |
19052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19055 | ||
19056 | ||
19057 | ||
19058 | ||
19059 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
19060 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
19061 | if test "${wx_cv_cpp_bool+set}" = set; then | |
19062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19063 | else | |
19064 | ||
19065 | ||
19066 | ||
19067 | ac_ext=cc | |
19068 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19069 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19070 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19071 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19072 | ||
19073 | ||
19074 | cat >conftest.$ac_ext <<_ACEOF | |
19075 | /* confdefs.h. */ | |
19076 | _ACEOF | |
19077 | cat confdefs.h >>conftest.$ac_ext | |
19078 | cat >>conftest.$ac_ext <<_ACEOF | |
19079 | /* end confdefs.h. */ | |
19080 | ||
19081 | ||
19082 | int | |
19083 | main () | |
19084 | { | |
19085 | ||
19086 | bool b = true; | |
19087 | ||
19088 | return 0; | |
19089 | ||
19090 | ; | |
19091 | return 0; | |
19092 | } | |
19093 | _ACEOF | |
19094 | rm -f conftest.$ac_objext | |
19095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19096 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19097 | ac_status=$? |
ac1cb8d3 VS |
19098 | grep -v '^ *+' conftest.er1 >conftest.err |
19099 | rm -f conftest.er1 | |
19100 | cat conftest.err >&5 | |
a848cd7e SC |
19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19102 | (exit $ac_status); } && | |
d1c38808 | 19103 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19105 | (eval $ac_try) 2>&5 | |
19106 | ac_status=$? | |
19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19108 | (exit $ac_status); }; } && | |
19109 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19111 | (eval $ac_try) 2>&5 | |
19112 | ac_status=$? | |
19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19114 | (exit $ac_status); }; }; then | |
19115 | ||
19116 | wx_cv_cpp_bool=yes | |
19117 | ||
19118 | else | |
19119 | echo "$as_me: failed program was:" >&5 | |
19120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19121 | ||
19122 | ||
19123 | wx_cv_cpp_bool=no | |
19124 | ||
19125 | ||
19126 | fi | |
ac1cb8d3 | 19127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19128 | |
19129 | ac_ext=c | |
19130 | ac_cpp='$CPP $CPPFLAGS' | |
19131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19134 | ||
19135 | ||
19136 | fi | |
19137 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
19138 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
19139 | ||
19140 | if test "$wx_cv_cpp_bool" = "yes"; then | |
19141 | cat >>confdefs.h <<\_ACEOF | |
19142 | #define HAVE_BOOL 1 | |
19143 | _ACEOF | |
19144 | ||
19145 | fi | |
19146 | ||
19147 | ||
19148 | ||
19149 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
19150 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
19151 | if test "${wx_cv_explicit+set}" = set; then | |
19152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19153 | else | |
19154 | ||
19155 | ||
19156 | ||
19157 | ac_ext=cc | |
19158 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19159 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19160 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19161 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19162 | ||
19163 | ||
19164 | cat >conftest.$ac_ext <<_ACEOF | |
19165 | /* confdefs.h. */ | |
19166 | _ACEOF | |
19167 | cat confdefs.h >>conftest.$ac_ext | |
19168 | cat >>conftest.$ac_ext <<_ACEOF | |
19169 | /* end confdefs.h. */ | |
19170 | ||
19171 | class Foo { public: explicit Foo(int) {} }; | |
19172 | ||
19173 | int | |
19174 | main () | |
19175 | { | |
19176 | ||
19177 | return 0; | |
19178 | ||
19179 | ; | |
19180 | return 0; | |
19181 | } | |
19182 | _ACEOF | |
19183 | rm -f conftest.$ac_objext | |
19184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19186 | ac_status=$? |
ac1cb8d3 VS |
19187 | grep -v '^ *+' conftest.er1 >conftest.err |
19188 | rm -f conftest.er1 | |
19189 | cat conftest.err >&5 | |
a848cd7e SC |
19190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19191 | (exit $ac_status); } && | |
d1c38808 | 19192 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19194 | (eval $ac_try) 2>&5 | |
19195 | ac_status=$? | |
19196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19197 | (exit $ac_status); }; } && | |
19198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19200 | (eval $ac_try) 2>&5 | |
19201 | ac_status=$? | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); }; }; then | |
19204 | ||
19205 | cat >conftest.$ac_ext <<_ACEOF | |
19206 | /* confdefs.h. */ | |
19207 | _ACEOF | |
19208 | cat confdefs.h >>conftest.$ac_ext | |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
19211 | ||
19212 | class Foo { public: explicit Foo(int) {} }; | |
19213 | static void TakeFoo(const Foo& foo) { } | |
19214 | ||
19215 | int | |
19216 | main () | |
19217 | { | |
19218 | ||
19219 | TakeFoo(17); | |
19220 | return 0; | |
19221 | ||
19222 | ; | |
19223 | return 0; | |
19224 | } | |
19225 | _ACEOF | |
19226 | rm -f conftest.$ac_objext | |
19227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19228 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19229 | ac_status=$? |
ac1cb8d3 VS |
19230 | grep -v '^ *+' conftest.er1 >conftest.err |
19231 | rm -f conftest.er1 | |
19232 | cat conftest.err >&5 | |
a848cd7e SC |
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19234 | (exit $ac_status); } && | |
d1c38808 | 19235 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19237 | (eval $ac_try) 2>&5 | |
19238 | ac_status=$? | |
19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19240 | (exit $ac_status); }; } && | |
19241 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19243 | (eval $ac_try) 2>&5 | |
19244 | ac_status=$? | |
19245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19246 | (exit $ac_status); }; }; then | |
19247 | wx_cv_explicit=no | |
19248 | else | |
19249 | echo "$as_me: failed program was:" >&5 | |
19250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19251 | ||
19252 | wx_cv_explicit=yes | |
19253 | ||
19254 | fi | |
ac1cb8d3 | 19255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19256 | |
19257 | else | |
19258 | echo "$as_me: failed program was:" >&5 | |
19259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19260 | ||
19261 | wx_cv_explicit=no | |
19262 | ||
19263 | fi | |
ac1cb8d3 | 19264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19265 | |
19266 | ac_ext=c | |
19267 | ac_cpp='$CPP $CPPFLAGS' | |
19268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19271 | ||
19272 | ||
19273 | fi | |
19274 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
19275 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
19276 | ||
19277 | if test "$wx_cv_explicit" = "yes"; then | |
19278 | cat >>confdefs.h <<\_ACEOF | |
19279 | #define HAVE_EXPLICIT 1 | |
19280 | _ACEOF | |
19281 | ||
19282 | fi | |
19283 | ||
19284 | ||
19285 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
19286 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
19287 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
19288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19289 | else | |
19290 | ||
19291 | ||
19292 | ac_ext=cc | |
19293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19297 | ||
19298 | cat >conftest.$ac_ext <<_ACEOF | |
19299 | /* confdefs.h. */ | |
19300 | _ACEOF | |
19301 | cat confdefs.h >>conftest.$ac_ext | |
19302 | cat >>conftest.$ac_ext <<_ACEOF | |
19303 | /* end confdefs.h. */ | |
19304 | ||
19305 | int | |
19306 | main () | |
19307 | { | |
19308 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
19309 | ; | |
19310 | return 0; | |
19311 | } | |
19312 | _ACEOF | |
19313 | rm -f conftest.$ac_objext | |
19314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19316 | ac_status=$? |
ac1cb8d3 VS |
19317 | grep -v '^ *+' conftest.er1 >conftest.err |
19318 | rm -f conftest.er1 | |
19319 | cat conftest.err >&5 | |
a848cd7e SC |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19321 | (exit $ac_status); } && | |
d1c38808 | 19322 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; } && | |
19328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19330 | (eval $ac_try) 2>&5 | |
19331 | ac_status=$? | |
19332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19333 | (exit $ac_status); }; }; then | |
19334 | ac_cv_cxx_const_cast=yes | |
19335 | else | |
19336 | echo "$as_me: failed program was:" >&5 | |
19337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19338 | ||
19339 | ac_cv_cxx_const_cast=no | |
19340 | fi | |
ac1cb8d3 | 19341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19342 | ac_ext=c |
19343 | ac_cpp='$CPP $CPPFLAGS' | |
19344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19347 | ||
19348 | ||
19349 | fi | |
19350 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
19351 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
19352 | if test "$ac_cv_cxx_const_cast" = yes; then | |
19353 | ||
19354 | cat >>confdefs.h <<\_ACEOF | |
19355 | #define HAVE_CONST_CAST | |
19356 | _ACEOF | |
19357 | ||
19358 | fi | |
19359 | ||
7714864e RL |
19360 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
19361 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
19362 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
19363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19364 | else | |
19365 | ||
19366 | ||
19367 | ac_ext=cc | |
19368 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19372 | ||
19373 | cat >conftest.$ac_ext <<_ACEOF | |
19374 | /* confdefs.h. */ | |
19375 | _ACEOF | |
19376 | cat confdefs.h >>conftest.$ac_ext | |
19377 | cat >>conftest.$ac_ext <<_ACEOF | |
19378 | /* end confdefs.h. */ | |
19379 | #include <typeinfo> | |
19380 | class Base { public : Base () {} virtual void f () = 0;}; | |
19381 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19382 | class Unrelated { public : Unrelated () {} }; | |
19383 | int g (Unrelated&) { return 0; } | |
19384 | int | |
19385 | main () | |
19386 | { | |
19387 | ||
19388 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
19389 | ; | |
19390 | return 0; | |
19391 | } | |
19392 | _ACEOF | |
19393 | rm -f conftest.$ac_objext | |
19394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19395 | (eval $ac_compile) 2>conftest.er1 | |
19396 | ac_status=$? | |
19397 | grep -v '^ *+' conftest.er1 >conftest.err | |
19398 | rm -f conftest.er1 | |
19399 | cat conftest.err >&5 | |
19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19401 | (exit $ac_status); } && | |
d1c38808 | 19402 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
19403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19404 | (eval $ac_try) 2>&5 | |
19405 | ac_status=$? | |
19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19407 | (exit $ac_status); }; } && | |
19408 | { ac_try='test -s conftest.$ac_objext' | |
19409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19410 | (eval $ac_try) 2>&5 | |
19411 | ac_status=$? | |
19412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19413 | (exit $ac_status); }; }; then | |
19414 | ac_cv_cxx_reinterpret_cast=yes | |
19415 | else | |
19416 | echo "$as_me: failed program was:" >&5 | |
19417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19418 | ||
19419 | ac_cv_cxx_reinterpret_cast=no | |
19420 | fi | |
19421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19422 | ac_ext=c | |
19423 | ac_cpp='$CPP $CPPFLAGS' | |
19424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19427 | ||
19428 | ||
19429 | fi | |
19430 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
19431 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
19432 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
19433 | ||
19434 | cat >>confdefs.h <<\_ACEOF | |
19435 | #define HAVE_REINTERPRET_CAST | |
19436 | _ACEOF | |
19437 | ||
19438 | fi | |
19439 | ||
a848cd7e SC |
19440 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
19441 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
19442 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
19443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19444 | else | |
19445 | ||
19446 | ||
19447 | ac_ext=cc | |
19448 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19449 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19450 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19451 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19452 | ||
19453 | cat >conftest.$ac_ext <<_ACEOF | |
19454 | /* confdefs.h. */ | |
19455 | _ACEOF | |
19456 | cat confdefs.h >>conftest.$ac_ext | |
19457 | cat >>conftest.$ac_ext <<_ACEOF | |
19458 | /* end confdefs.h. */ | |
19459 | #include <typeinfo> | |
19460 | class Base { public : Base () {} virtual void f () = 0; }; | |
19461 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
19462 | int g (Derived&) { return 0; } | |
19463 | int | |
19464 | main () | |
19465 | { | |
19466 | ||
19467 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
19468 | ; | |
19469 | return 0; | |
19470 | } | |
19471 | _ACEOF | |
19472 | rm -f conftest.$ac_objext | |
19473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19474 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19475 | ac_status=$? |
ac1cb8d3 VS |
19476 | grep -v '^ *+' conftest.er1 >conftest.err |
19477 | rm -f conftest.er1 | |
19478 | cat conftest.err >&5 | |
a848cd7e SC |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19480 | (exit $ac_status); } && | |
d1c38808 | 19481 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19483 | (eval $ac_try) 2>&5 | |
19484 | ac_status=$? | |
19485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19486 | (exit $ac_status); }; } && | |
19487 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19489 | (eval $ac_try) 2>&5 | |
19490 | ac_status=$? | |
19491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19492 | (exit $ac_status); }; }; then | |
19493 | ac_cv_cxx_static_cast=yes | |
19494 | else | |
19495 | echo "$as_me: failed program was:" >&5 | |
19496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19497 | ||
19498 | ac_cv_cxx_static_cast=no | |
19499 | fi | |
ac1cb8d3 | 19500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19501 | ac_ext=c |
19502 | ac_cpp='$CPP $CPPFLAGS' | |
19503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19506 | ||
19507 | ||
19508 | fi | |
19509 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
19510 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
19511 | if test "$ac_cv_cxx_static_cast" = yes; then | |
19512 | ||
19513 | cat >>confdefs.h <<\_ACEOF | |
19514 | #define HAVE_STATIC_CAST | |
19515 | _ACEOF | |
19516 | ||
19517 | fi | |
19518 | ||
19519 | ||
19520 | if test "$wxUSE_STL" = "yes"; then | |
19521 | ac_ext=cc | |
19522 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19523 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19524 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19525 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19526 | ||
19527 | ||
19528 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
19529 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
19530 | cat >conftest.$ac_ext <<_ACEOF | |
19531 | /* confdefs.h. */ | |
19532 | _ACEOF | |
19533 | cat confdefs.h >>conftest.$ac_ext | |
19534 | cat >>conftest.$ac_ext <<_ACEOF | |
19535 | /* end confdefs.h. */ | |
19536 | #include <string> | |
19537 | #include <functional> | |
19538 | #include <algorithm> | |
19539 | #include <vector> | |
19540 | #include <list> | |
19541 | int | |
19542 | main () | |
19543 | { | |
19544 | std::vector<int> moo; | |
19545 | std::list<int> foo; | |
19546 | std::vector<int>::iterator it = | |
19547 | std::find_if(moo.begin(), moo.end(), | |
19548 | std::bind2nd(std::less<int>(), 3)); | |
19549 | ; | |
19550 | return 0; | |
19551 | } | |
19552 | _ACEOF | |
19553 | rm -f conftest.$ac_objext | |
19554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19556 | ac_status=$? |
ac1cb8d3 VS |
19557 | grep -v '^ *+' conftest.er1 >conftest.err |
19558 | rm -f conftest.er1 | |
19559 | cat conftest.err >&5 | |
a848cd7e SC |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19561 | (exit $ac_status); } && | |
d1c38808 | 19562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19564 | (eval $ac_try) 2>&5 | |
19565 | ac_status=$? | |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19567 | (exit $ac_status); }; } && | |
19568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19570 | (eval $ac_try) 2>&5 | |
19571 | ac_status=$? | |
19572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19573 | (exit $ac_status); }; }; then | |
19574 | echo "$as_me:$LINENO: result: yes" >&5 | |
19575 | echo "${ECHO_T}yes" >&6 | |
19576 | else | |
19577 | echo "$as_me: failed program was:" >&5 | |
19578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19579 | ||
19580 | echo "$as_me:$LINENO: result: no" >&5 | |
19581 | echo "${ECHO_T}no" >&6 | |
19582 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
19583 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
19584 | { (exit 1); exit 1; }; } | |
19585 | fi | |
ac1cb8d3 | 19586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19587 | |
19588 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
19589 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
19590 | cat >conftest.$ac_ext <<_ACEOF | |
19591 | /* confdefs.h. */ | |
19592 | _ACEOF | |
19593 | cat confdefs.h >>conftest.$ac_ext | |
19594 | cat >>conftest.$ac_ext <<_ACEOF | |
19595 | /* end confdefs.h. */ | |
19596 | #include <string> | |
19597 | int | |
19598 | main () | |
19599 | { | |
19600 | std::wstring foo; | |
19601 | ; | |
19602 | return 0; | |
19603 | } | |
19604 | _ACEOF | |
19605 | rm -f conftest.$ac_objext | |
19606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19607 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19608 | ac_status=$? |
ac1cb8d3 VS |
19609 | grep -v '^ *+' conftest.er1 >conftest.err |
19610 | rm -f conftest.er1 | |
19611 | cat conftest.err >&5 | |
a848cd7e SC |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19613 | (exit $ac_status); } && | |
d1c38808 | 19614 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; } && | |
19620 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19622 | (eval $ac_try) 2>&5 | |
19623 | ac_status=$? | |
19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19625 | (exit $ac_status); }; }; then | |
19626 | echo "$as_me:$LINENO: result: yes" >&5 | |
19627 | echo "${ECHO_T}yes" >&6 | |
19628 | cat >>confdefs.h <<\_ACEOF | |
19629 | #define HAVE_STD_WSTRING 1 | |
19630 | _ACEOF | |
19631 | ||
19632 | else | |
19633 | echo "$as_me: failed program was:" >&5 | |
19634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19635 | ||
19636 | echo "$as_me:$LINENO: result: no" >&5 | |
19637 | echo "${ECHO_T}no" >&6 | |
19638 | fi | |
ac1cb8d3 | 19639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19640 | |
19641 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
19642 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
19643 | cat >conftest.$ac_ext <<_ACEOF | |
19644 | /* confdefs.h. */ | |
19645 | _ACEOF | |
19646 | cat confdefs.h >>conftest.$ac_ext | |
19647 | cat >>conftest.$ac_ext <<_ACEOF | |
19648 | /* end confdefs.h. */ | |
19649 | #include <string> | |
19650 | int | |
19651 | main () | |
19652 | { | |
19653 | std::string foo, bar; | |
19654 | foo.compare(bar); | |
19655 | foo.compare(1, 1, bar); | |
19656 | foo.compare(1, 1, bar, 1, 1); | |
19657 | foo.compare(""); | |
19658 | foo.compare(1, 1, ""); | |
19659 | foo.compare(1, 1, "", 2); | |
19660 | ; | |
19661 | return 0; | |
19662 | } | |
19663 | _ACEOF | |
19664 | rm -f conftest.$ac_objext | |
19665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19666 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19667 | ac_status=$? |
ac1cb8d3 VS |
19668 | grep -v '^ *+' conftest.er1 >conftest.err |
19669 | rm -f conftest.er1 | |
19670 | cat conftest.err >&5 | |
a848cd7e SC |
19671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19672 | (exit $ac_status); } && | |
d1c38808 | 19673 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19675 | (eval $ac_try) 2>&5 | |
19676 | ac_status=$? | |
19677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19678 | (exit $ac_status); }; } && | |
19679 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19681 | (eval $ac_try) 2>&5 | |
19682 | ac_status=$? | |
19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19684 | (exit $ac_status); }; }; then | |
19685 | echo "$as_me:$LINENO: result: yes" >&5 | |
19686 | echo "${ECHO_T}yes" >&6 | |
19687 | cat >>confdefs.h <<\_ACEOF | |
19688 | #define HAVE_STD_STRING_COMPARE 1 | |
19689 | _ACEOF | |
19690 | ||
19691 | else | |
19692 | echo "$as_me: failed program was:" >&5 | |
19693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19694 | ||
19695 | echo "$as_me:$LINENO: result: no" >&5 | |
19696 | echo "${ECHO_T}no" >&6 | |
19697 | fi | |
ac1cb8d3 | 19698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19699 | |
19700 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19701 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19702 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19703 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19705 | fi | |
19706 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19707 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19708 | else | |
19709 | # Is the header compilable? | |
19710 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
19711 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
19712 | cat >conftest.$ac_ext <<_ACEOF | |
19713 | /* confdefs.h. */ | |
19714 | _ACEOF | |
19715 | cat confdefs.h >>conftest.$ac_ext | |
19716 | cat >>conftest.$ac_ext <<_ACEOF | |
19717 | /* end confdefs.h. */ | |
19718 | $ac_includes_default | |
19719 | #include <hash_map> | |
19720 | _ACEOF | |
19721 | rm -f conftest.$ac_objext | |
19722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19723 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19724 | ac_status=$? |
ac1cb8d3 VS |
19725 | grep -v '^ *+' conftest.er1 >conftest.err |
19726 | rm -f conftest.er1 | |
19727 | cat conftest.err >&5 | |
bdcade0a MB |
19728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19729 | (exit $ac_status); } && | |
d1c38808 | 19730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19732 | (eval $ac_try) 2>&5 | |
19733 | ac_status=$? | |
19734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19735 | (exit $ac_status); }; } && | |
19736 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19738 | (eval $ac_try) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); }; }; then | |
19742 | ac_header_compiler=yes | |
19743 | else | |
19744 | echo "$as_me: failed program was:" >&5 | |
19745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19746 | ||
19747 | ac_header_compiler=no | |
19748 | fi | |
ac1cb8d3 | 19749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19750 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19751 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19752 | ||
19753 | # Is the header present? | |
19754 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
19755 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
19756 | cat >conftest.$ac_ext <<_ACEOF | |
19757 | /* confdefs.h. */ | |
19758 | _ACEOF | |
19759 | cat confdefs.h >>conftest.$ac_ext | |
19760 | cat >>conftest.$ac_ext <<_ACEOF | |
19761 | /* end confdefs.h. */ | |
19762 | #include <hash_map> | |
19763 | _ACEOF | |
19764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19766 | ac_status=$? | |
19767 | grep -v '^ *+' conftest.er1 >conftest.err | |
19768 | rm -f conftest.er1 | |
19769 | cat conftest.err >&5 | |
19770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19771 | (exit $ac_status); } >/dev/null; then | |
19772 | if test -s conftest.err; then | |
19773 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19774 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19775 | else |
19776 | ac_cpp_err= | |
19777 | fi | |
19778 | else | |
19779 | ac_cpp_err=yes | |
19780 | fi | |
19781 | if test -z "$ac_cpp_err"; then | |
19782 | ac_header_preproc=yes | |
19783 | else | |
19784 | echo "$as_me: failed program was:" >&5 | |
19785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19786 | ||
19787 | ac_header_preproc=no | |
19788 | fi | |
19789 | rm -f conftest.err conftest.$ac_ext | |
19790 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19791 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19792 | ||
19793 | # So? What about this header? | |
ac1cb8d3 VS |
19794 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19795 | yes:no: ) | |
bdcade0a MB |
19796 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19797 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19798 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
19799 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
19800 | ac_header_preproc=yes | |
bdcade0a | 19801 | ;; |
ac1cb8d3 | 19802 | no:yes:* ) |
bdcade0a MB |
19803 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
19804 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
19805 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
19806 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
19807 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
19808 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
19809 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
19810 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
19811 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
19812 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
19813 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
19814 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
19815 | ( |
19816 | cat <<\_ASBOX | |
ac1cb8d3 VS |
19817 | ## ----------------------------------------- ## |
19818 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
19819 | ## ----------------------------------------- ## | |
bdcade0a MB |
19820 | _ASBOX |
19821 | ) | | |
19822 | sed "s/^/$as_me: WARNING: /" >&2 | |
19823 | ;; | |
19824 | esac | |
19825 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
19826 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
19827 | if test "${ac_cv_header_hash_map+set}" = set; then | |
19828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19829 | else | |
19830 | ac_cv_header_hash_map=$ac_header_preproc | |
19831 | fi | |
19832 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
19833 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
19834 | ||
19835 | fi | |
19836 | if test $ac_cv_header_hash_map = yes; then | |
19837 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
19838 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
19839 | cat >conftest.$ac_ext <<_ACEOF | |
19840 | /* confdefs.h. */ | |
19841 | _ACEOF | |
19842 | cat confdefs.h >>conftest.$ac_ext | |
19843 | cat >>conftest.$ac_ext <<_ACEOF | |
19844 | /* end confdefs.h. */ | |
19845 | #include <hash_map> | |
19846 | #include <hash_set> | |
19847 | int | |
19848 | main () | |
19849 | { | |
19850 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
19851 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
19852 | ; | |
19853 | return 0; | |
19854 | } | |
19855 | _ACEOF | |
19856 | rm -f conftest.$ac_objext | |
19857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19858 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19859 | ac_status=$? |
ac1cb8d3 VS |
19860 | grep -v '^ *+' conftest.er1 >conftest.err |
19861 | rm -f conftest.er1 | |
19862 | cat conftest.err >&5 | |
bdcade0a MB |
19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19864 | (exit $ac_status); } && | |
d1c38808 | 19865 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19871 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; }; then | |
19877 | echo "$as_me:$LINENO: result: yes" >&5 | |
19878 | echo "${ECHO_T}yes" >&6 | |
19879 | cat >>confdefs.h <<\_ACEOF | |
19880 | #define HAVE_HASH_MAP 1 | |
19881 | _ACEOF | |
19882 | ||
19883 | cat >>confdefs.h <<\_ACEOF | |
19884 | #define HAVE_STD_HASH_MAP 1 | |
19885 | _ACEOF | |
19886 | ||
19887 | else | |
19888 | echo "$as_me: failed program was:" >&5 | |
19889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19890 | ||
19891 | echo "$as_me:$LINENO: result: no" >&5 | |
19892 | echo "${ECHO_T}no" >&6 | |
19893 | fi | |
ac1cb8d3 | 19894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19895 | |
19896 | fi | |
19897 | ||
19898 | ||
19899 | ||
19900 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19901 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
19902 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
19903 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
19904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19905 | fi | |
19906 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
19907 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
19908 | else | |
19909 | # Is the header compilable? | |
19910 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
19911 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
19912 | cat >conftest.$ac_ext <<_ACEOF | |
19913 | /* confdefs.h. */ | |
19914 | _ACEOF | |
19915 | cat confdefs.h >>conftest.$ac_ext | |
19916 | cat >>conftest.$ac_ext <<_ACEOF | |
19917 | /* end confdefs.h. */ | |
19918 | $ac_includes_default | |
19919 | #include <ext/hash_map> | |
19920 | _ACEOF | |
19921 | rm -f conftest.$ac_objext | |
19922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19923 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 19924 | ac_status=$? |
ac1cb8d3 VS |
19925 | grep -v '^ *+' conftest.er1 >conftest.err |
19926 | rm -f conftest.er1 | |
19927 | cat conftest.err >&5 | |
bdcade0a MB |
19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19929 | (exit $ac_status); } && | |
d1c38808 | 19930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19932 | (eval $ac_try) 2>&5 | |
19933 | ac_status=$? | |
19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19935 | (exit $ac_status); }; } && | |
19936 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
19937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19938 | (eval $ac_try) 2>&5 | |
19939 | ac_status=$? | |
19940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19941 | (exit $ac_status); }; }; then | |
19942 | ac_header_compiler=yes | |
19943 | else | |
19944 | echo "$as_me: failed program was:" >&5 | |
19945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19946 | ||
19947 | ac_header_compiler=no | |
19948 | fi | |
ac1cb8d3 | 19949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
19950 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19951 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19952 | ||
19953 | # Is the header present? | |
19954 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
19955 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
19957 | /* confdefs.h. */ | |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | #include <ext/hash_map> | |
19963 | _ACEOF | |
19964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19966 | ac_status=$? | |
19967 | grep -v '^ *+' conftest.er1 >conftest.err | |
19968 | rm -f conftest.er1 | |
19969 | cat conftest.err >&5 | |
19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19971 | (exit $ac_status); } >/dev/null; then | |
19972 | if test -s conftest.err; then | |
19973 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 19974 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
19975 | else |
19976 | ac_cpp_err= | |
19977 | fi | |
19978 | else | |
19979 | ac_cpp_err=yes | |
19980 | fi | |
19981 | if test -z "$ac_cpp_err"; then | |
19982 | ac_header_preproc=yes | |
19983 | else | |
19984 | echo "$as_me: failed program was:" >&5 | |
19985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19986 | ||
19987 | ac_header_preproc=no | |
19988 | fi | |
19989 | rm -f conftest.err conftest.$ac_ext | |
19990 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19991 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19992 | ||
19993 | # So? What about this header? | |
ac1cb8d3 VS |
19994 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
19995 | yes:no: ) | |
bdcade0a MB |
19996 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
19997 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
19998 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
19999 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
20000 | ac_header_preproc=yes | |
bdcade0a | 20001 | ;; |
ac1cb8d3 | 20002 | no:yes:* ) |
bdcade0a MB |
20003 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
20004 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20005 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
20006 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
20007 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
20008 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
20009 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
20010 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
20011 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
20012 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20013 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
20014 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
20015 | ( |
20016 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20017 | ## ----------------------------------------- ## |
20018 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20019 | ## ----------------------------------------- ## | |
bdcade0a MB |
20020 | _ASBOX |
20021 | ) | | |
20022 | sed "s/^/$as_me: WARNING: /" >&2 | |
20023 | ;; | |
20024 | esac | |
20025 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
20026 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
20027 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
20028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20029 | else | |
20030 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
20031 | fi | |
20032 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
20033 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
20034 | ||
20035 | fi | |
20036 | if test $ac_cv_header_ext_hash_map = yes; then | |
20037 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
20038 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
20039 | cat >conftest.$ac_ext <<_ACEOF | |
20040 | /* confdefs.h. */ | |
20041 | _ACEOF | |
20042 | cat confdefs.h >>conftest.$ac_ext | |
20043 | cat >>conftest.$ac_ext <<_ACEOF | |
20044 | /* end confdefs.h. */ | |
20045 | #include <ext/hash_map> | |
20046 | #include <ext/hash_set> | |
20047 | int | |
20048 | main () | |
20049 | { | |
20050 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
20051 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
20052 | ; | |
20053 | return 0; | |
20054 | } | |
20055 | _ACEOF | |
20056 | rm -f conftest.$ac_objext | |
20057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20058 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 20059 | ac_status=$? |
ac1cb8d3 VS |
20060 | grep -v '^ *+' conftest.er1 >conftest.err |
20061 | rm -f conftest.er1 | |
20062 | cat conftest.err >&5 | |
bdcade0a MB |
20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20064 | (exit $ac_status); } && | |
d1c38808 | 20065 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20067 | (eval $ac_try) 2>&5 | |
20068 | ac_status=$? | |
20069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20070 | (exit $ac_status); }; } && | |
20071 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
20072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20073 | (eval $ac_try) 2>&5 | |
20074 | ac_status=$? | |
20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20076 | (exit $ac_status); }; }; then | |
20077 | echo "$as_me:$LINENO: result: yes" >&5 | |
20078 | echo "${ECHO_T}yes" >&6 | |
20079 | cat >>confdefs.h <<\_ACEOF | |
20080 | #define HAVE_EXT_HASH_MAP 1 | |
20081 | _ACEOF | |
20082 | ||
20083 | cat >>confdefs.h <<\_ACEOF | |
20084 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
20085 | _ACEOF | |
20086 | ||
20087 | else | |
20088 | echo "$as_me: failed program was:" >&5 | |
20089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20090 | ||
20091 | echo "$as_me:$LINENO: result: no" >&5 | |
20092 | echo "${ECHO_T}no" >&6 | |
20093 | fi | |
ac1cb8d3 | 20094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
20095 | |
20096 | fi | |
20097 | ||
20098 | ||
a848cd7e SC |
20099 | |
20100 | ac_ext=c | |
20101 | ac_cpp='$CPP $CPPFLAGS' | |
20102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20105 | ||
20106 | fi | |
20107 | ||
20108 | ||
20109 | SEARCH_INCLUDE="\ | |
20110 | /usr/local/include \ | |
20111 | \ | |
20112 | /usr/Motif-2.1/include \ | |
20113 | /usr/Motif-1.2/include \ | |
20114 | /usr/include/Motif1.2 \ | |
20115 | /opt/xpm/include/X11 \ | |
20116 | /opt/GBxpm/include/ \ | |
20117 | /opt/GBxpm/X11/include/ \ | |
20118 | \ | |
20119 | /usr/dt/include \ | |
20120 | /usr/openwin/include \ | |
20121 | \ | |
20122 | /usr/include/Xm \ | |
20123 | \ | |
20124 | /usr/X11R6/include \ | |
20125 | /usr/X11R6.4/include \ | |
20126 | /usr/X11R5/include \ | |
20127 | /usr/X11R4/include \ | |
20128 | \ | |
20129 | /usr/include/X11R6 \ | |
20130 | /usr/include/X11R5 \ | |
20131 | /usr/include/X11R4 \ | |
20132 | \ | |
20133 | /usr/local/X11R6/include \ | |
20134 | /usr/local/X11R5/include \ | |
20135 | /usr/local/X11R4/include \ | |
20136 | \ | |
20137 | /usr/local/include/X11R6 \ | |
20138 | /usr/local/include/X11R5 \ | |
20139 | /usr/local/include/X11R4 \ | |
20140 | \ | |
20141 | /usr/X11/include \ | |
20142 | /usr/include/X11 \ | |
20143 | /usr/local/X11/include \ | |
20144 | /usr/local/include/X11 \ | |
20145 | \ | |
20146 | /usr/X386/include \ | |
20147 | /usr/x386/include \ | |
20148 | /usr/XFree86/include/X11 \ | |
20149 | \ | |
20150 | X:/XFree86/include \ | |
20151 | X:/XFree86/include/X11 \ | |
20152 | \ | |
20153 | /usr/include/gtk \ | |
20154 | /usr/local/include/gtk \ | |
20155 | /usr/include/glib \ | |
20156 | /usr/local/include/glib \ | |
20157 | \ | |
20158 | /usr/include/qt \ | |
20159 | /usr/local/include/qt \ | |
20160 | \ | |
20161 | /usr/local/arm/3.3.2/include \ | |
20162 | \ | |
20163 | /usr/include/windows \ | |
20164 | /usr/include/wine \ | |
20165 | /usr/local/include/wine \ | |
20166 | \ | |
20167 | /usr/unsupported/include \ | |
20168 | /usr/athena/include \ | |
20169 | /usr/local/x11r5/include \ | |
20170 | /usr/lpp/Xamples/include \ | |
20171 | \ | |
20172 | /usr/openwin/share/include" | |
20173 | ||
20174 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
20175 | ||
20176 | ||
20177 | cat >confcache <<\_ACEOF | |
20178 | # This file is a shell script that caches the results of configure | |
20179 | # tests run on this system so they can be shared between configure | |
20180 | # scripts and configure runs, see configure's option --config-cache. | |
20181 | # It is not useful on other systems. If it contains results you don't | |
20182 | # want to keep, you may remove or edit it. | |
20183 | # | |
20184 | # config.status only pays attention to the cache file if you give it | |
20185 | # the --recheck option to rerun configure. | |
20186 | # | |
20187 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20188 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20189 | # following values. | |
20190 | ||
20191 | _ACEOF | |
20192 | ||
20193 | # The following way of writing the cache mishandles newlines in values, | |
20194 | # but we know of no workaround that is simple, portable, and efficient. | |
20195 | # So, don't put newlines in cache variables' values. | |
20196 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20197 | # and sets the high bit in the cache file unless we assign to the vars. | |
20198 | { | |
20199 | (set) 2>&1 | | |
20200 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20201 | *ac_space=\ *) | |
20202 | # `set' does not quote correctly, so add quotes (double-quote | |
20203 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20204 | sed -n \ | |
ac1cb8d3 VS |
20205 | "s/'/'\\\\''/g; |
20206 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
20207 | ;; |
20208 | *) | |
20209 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20210 | sed -n \ | |
ac1cb8d3 | 20211 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
20212 | ;; |
20213 | esac; | |
20214 | } | | |
20215 | sed ' | |
20216 | t clear | |
20217 | : clear | |
20218 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20219 | t end | |
20220 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20221 | : end' >>confcache | |
20222 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20223 | if test -w $cache_file; then | |
20224 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20225 | cat confcache >$cache_file | |
20226 | else | |
20227 | echo "not updating unwritable cache $cache_file" | |
20228 | fi | |
20229 | fi | |
20230 | rm -f confcache | |
20231 | ||
20232 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
20233 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
20234 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
20235 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
20236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20237 | else | |
20238 | ||
20239 | cat >conftest.$ac_ext <<_ACEOF | |
20240 | /* confdefs.h. */ | |
20241 | _ACEOF | |
20242 | cat confdefs.h >>conftest.$ac_ext | |
20243 | cat >>conftest.$ac_ext <<_ACEOF | |
20244 | /* end confdefs.h. */ | |
20245 | #include <features.h> | |
20246 | int | |
20247 | main () | |
20248 | { | |
20249 | ||
20250 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
20251 | #error not glibc2.1 | |
20252 | #endif | |
20253 | ||
20254 | ; | |
20255 | return 0; | |
20256 | } | |
20257 | _ACEOF | |
20258 | rm -f conftest.$ac_objext | |
20259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20260 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20261 | ac_status=$? |
ac1cb8d3 VS |
20262 | grep -v '^ *+' conftest.er1 >conftest.err |
20263 | rm -f conftest.er1 | |
20264 | cat conftest.err >&5 | |
a848cd7e SC |
20265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20266 | (exit $ac_status); } && | |
d1c38808 | 20267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20269 | (eval $ac_try) 2>&5 | |
20270 | ac_status=$? | |
20271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20272 | (exit $ac_status); }; } && | |
20273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20275 | (eval $ac_try) 2>&5 | |
20276 | ac_status=$? | |
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20278 | (exit $ac_status); }; }; then | |
20279 | ||
20280 | wx_cv_lib_glibc21=yes | |
20281 | ||
20282 | else | |
20283 | echo "$as_me: failed program was:" >&5 | |
20284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20285 | ||
20286 | ||
20287 | wx_cv_lib_glibc21=no | |
20288 | ||
20289 | ||
20290 | fi | |
ac1cb8d3 | 20291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20292 | |
20293 | fi | |
20294 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
20295 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
20296 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
20297 | cat >>confdefs.h <<\_ACEOF | |
20298 | #define wxHAVE_GLIBC2 1 | |
20299 | _ACEOF | |
20300 | ||
20301 | fi | |
20302 | fi | |
20303 | ||
20304 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
20305 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
20306 | cat >>confdefs.h <<\_ACEOF | |
20307 | #define _GNU_SOURCE 1 | |
20308 | _ACEOF | |
20309 | ||
20310 | fi | |
20311 | fi | |
20312 | ||
20313 | ||
20314 | ||
20315 | if test "$wxUSE_REGEX" != "no"; then | |
20316 | cat >>confdefs.h <<\_ACEOF | |
20317 | #define wxUSE_REGEX 1 | |
20318 | _ACEOF | |
20319 | ||
20320 | ||
20321 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
20322 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
20323 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
20324 | wxUSE_REGEX=builtin | |
20325 | fi | |
20326 | ||
20327 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
20328 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20329 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20330 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20331 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20333 | fi | |
20334 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20335 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20336 | else | |
20337 | # Is the header compilable? | |
20338 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
20339 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
20340 | cat >conftest.$ac_ext <<_ACEOF | |
20341 | /* confdefs.h. */ | |
20342 | _ACEOF | |
20343 | cat confdefs.h >>conftest.$ac_ext | |
20344 | cat >>conftest.$ac_ext <<_ACEOF | |
20345 | /* end confdefs.h. */ | |
20346 | $ac_includes_default | |
20347 | #include <regex.h> | |
20348 | _ACEOF | |
20349 | rm -f conftest.$ac_objext | |
20350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20351 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20352 | ac_status=$? |
ac1cb8d3 VS |
20353 | grep -v '^ *+' conftest.er1 >conftest.err |
20354 | rm -f conftest.er1 | |
20355 | cat conftest.err >&5 | |
a848cd7e SC |
20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20357 | (exit $ac_status); } && | |
d1c38808 | 20358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; } && | |
20364 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20366 | (eval $ac_try) 2>&5 | |
20367 | ac_status=$? | |
20368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20369 | (exit $ac_status); }; }; then | |
20370 | ac_header_compiler=yes | |
20371 | else | |
20372 | echo "$as_me: failed program was:" >&5 | |
20373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20374 | ||
20375 | ac_header_compiler=no | |
20376 | fi | |
ac1cb8d3 | 20377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20380 | ||
20381 | # Is the header present? | |
20382 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
20383 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
20384 | cat >conftest.$ac_ext <<_ACEOF | |
20385 | /* confdefs.h. */ | |
20386 | _ACEOF | |
20387 | cat confdefs.h >>conftest.$ac_ext | |
20388 | cat >>conftest.$ac_ext <<_ACEOF | |
20389 | /* end confdefs.h. */ | |
20390 | #include <regex.h> | |
20391 | _ACEOF | |
20392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20394 | ac_status=$? | |
20395 | grep -v '^ *+' conftest.er1 >conftest.err | |
20396 | rm -f conftest.er1 | |
20397 | cat conftest.err >&5 | |
20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20399 | (exit $ac_status); } >/dev/null; then | |
20400 | if test -s conftest.err; then | |
20401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20403 | else |
20404 | ac_cpp_err= | |
20405 | fi | |
20406 | else | |
20407 | ac_cpp_err=yes | |
20408 | fi | |
20409 | if test -z "$ac_cpp_err"; then | |
20410 | ac_header_preproc=yes | |
20411 | else | |
20412 | echo "$as_me: failed program was:" >&5 | |
20413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20414 | ||
20415 | ac_header_preproc=no | |
20416 | fi | |
20417 | rm -f conftest.err conftest.$ac_ext | |
20418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20420 | ||
20421 | # So? What about this header? | |
ac1cb8d3 VS |
20422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20423 | yes:no: ) | |
a848cd7e SC |
20424 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20425 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20426 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
20427 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
20428 | ac_header_preproc=yes | |
a848cd7e | 20429 | ;; |
ac1cb8d3 | 20430 | no:yes:* ) |
a848cd7e SC |
20431 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
20432 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20433 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
20434 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
20435 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
20436 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
20437 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20438 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20439 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
20440 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20441 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
20442 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20443 | ( |
20444 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20445 | ## ----------------------------------------- ## |
20446 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20447 | ## ----------------------------------------- ## | |
a848cd7e SC |
20448 | _ASBOX |
20449 | ) | | |
20450 | sed "s/^/$as_me: WARNING: /" >&2 | |
20451 | ;; | |
20452 | esac | |
20453 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
20454 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
20455 | if test "${ac_cv_header_regex_h+set}" = set; then | |
20456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20457 | else | |
20458 | ac_cv_header_regex_h=$ac_header_preproc | |
20459 | fi | |
20460 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
20461 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
20462 | ||
20463 | fi | |
20464 | if test $ac_cv_header_regex_h = yes; then | |
20465 | ||
20466 | for ac_func in regcomp | |
20467 | do | |
20468 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20469 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20470 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20471 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20473 | else | |
20474 | cat >conftest.$ac_ext <<_ACEOF | |
20475 | /* confdefs.h. */ | |
20476 | _ACEOF | |
20477 | cat confdefs.h >>conftest.$ac_ext | |
20478 | cat >>conftest.$ac_ext <<_ACEOF | |
20479 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
20480 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
20481 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20482 | #define $ac_func innocuous_$ac_func | |
20483 | ||
a848cd7e SC |
20484 | /* System header to define __stub macros and hopefully few prototypes, |
20485 | which can conflict with char $ac_func (); below. | |
20486 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20487 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 20488 | |
a848cd7e SC |
20489 | #ifdef __STDC__ |
20490 | # include <limits.h> | |
20491 | #else | |
20492 | # include <assert.h> | |
20493 | #endif | |
ac1cb8d3 VS |
20494 | |
20495 | #undef $ac_func | |
20496 | ||
a848cd7e SC |
20497 | /* Override any gcc2 internal prototype to avoid an error. */ |
20498 | #ifdef __cplusplus | |
20499 | extern "C" | |
20500 | { | |
20501 | #endif | |
20502 | /* We use char because int might match the return type of a gcc2 | |
20503 | builtin and then its argument prototype would still apply. */ | |
20504 | char $ac_func (); | |
20505 | /* The GNU C library defines this for functions which it implements | |
20506 | to always fail with ENOSYS. Some functions are actually named | |
20507 | something starting with __ and the normal name is an alias. */ | |
20508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20509 | choke me | |
20510 | #else | |
20511 | char (*f) () = $ac_func; | |
20512 | #endif | |
20513 | #ifdef __cplusplus | |
20514 | } | |
20515 | #endif | |
20516 | ||
20517 | int | |
20518 | main () | |
20519 | { | |
20520 | return f != $ac_func; | |
20521 | ; | |
20522 | return 0; | |
20523 | } | |
20524 | _ACEOF | |
20525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20527 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20528 | ac_status=$? |
ac1cb8d3 VS |
20529 | grep -v '^ *+' conftest.er1 >conftest.err |
20530 | rm -f conftest.er1 | |
20531 | cat conftest.err >&5 | |
a848cd7e SC |
20532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20533 | (exit $ac_status); } && | |
d1c38808 | 20534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20536 | (eval $ac_try) 2>&5 | |
20537 | ac_status=$? | |
20538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20539 | (exit $ac_status); }; } && | |
20540 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20542 | (eval $ac_try) 2>&5 | |
20543 | ac_status=$? | |
20544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20545 | (exit $ac_status); }; }; then | |
20546 | eval "$as_ac_var=yes" | |
20547 | else | |
20548 | echo "$as_me: failed program was:" >&5 | |
20549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20550 | ||
20551 | eval "$as_ac_var=no" | |
20552 | fi | |
ac1cb8d3 VS |
20553 | rm -f conftest.err conftest.$ac_objext \ |
20554 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20555 | fi |
20556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20557 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20558 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20559 | cat >>confdefs.h <<_ACEOF | |
20560 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20561 | _ACEOF | |
20562 | ||
20563 | fi | |
20564 | done | |
20565 | ||
20566 | fi | |
20567 | ||
20568 | ||
20569 | ||
20570 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
20571 | if test "$wxUSE_REGEX" = "sys" ; then | |
20572 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
20573 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
20574 | { (exit 1); exit 1; }; } | |
20575 | else | |
20576 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
20577 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
20578 | wxUSE_REGEX=builtin | |
20579 | fi | |
20580 | else | |
20581 | wxUSE_REGEX=sys | |
20582 | cat >>confdefs.h <<\_ACEOF | |
20583 | #define WX_NO_REGEX_ADVANCED 1 | |
20584 | _ACEOF | |
20585 | ||
20586 | fi | |
20587 | fi | |
20588 | fi | |
20589 | ||
20590 | ||
20591 | ZLIB_LINK= | |
20592 | if test "$wxUSE_ZLIB" != "no" ; then | |
20593 | cat >>confdefs.h <<\_ACEOF | |
20594 | #define wxUSE_ZLIB 1 | |
20595 | _ACEOF | |
20596 | ||
20597 | ||
20598 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
20599 | if test "$USE_DARWIN" = 1; then | |
20600 | system_zlib_h_ok="yes" | |
20601 | else | |
20602 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
20603 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
20604 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20606 | else | |
20607 | if test "$cross_compiling" = yes; then | |
20608 | unset ac_cv_header_zlib_h | |
20609 | ||
20610 | else | |
20611 | cat >conftest.$ac_ext <<_ACEOF | |
20612 | /* confdefs.h. */ | |
20613 | _ACEOF | |
20614 | cat confdefs.h >>conftest.$ac_ext | |
20615 | cat >>conftest.$ac_ext <<_ACEOF | |
20616 | /* end confdefs.h. */ | |
20617 | ||
20618 | #include <zlib.h> | |
20619 | #include <stdio.h> | |
20620 | ||
20621 | int main() | |
20622 | { | |
20623 | FILE *f=fopen("conftestval", "w"); | |
20624 | if (!f) exit(1); | |
20625 | fprintf(f, "%s", | |
20626 | ZLIB_VERSION[0] == '1' && | |
20627 | (ZLIB_VERSION[2] > '1' || | |
20628 | (ZLIB_VERSION[2] == '1' && | |
20629 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
20630 | exit(0); | |
20631 | } | |
20632 | ||
20633 | _ACEOF | |
20634 | rm -f conftest$ac_exeext | |
20635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20636 | (eval $ac_link) 2>&5 | |
20637 | ac_status=$? | |
20638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20641 | (eval $ac_try) 2>&5 | |
20642 | ac_status=$? | |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20644 | (exit $ac_status); }; }; then | |
20645 | ac_cv_header_zlib_h=`cat conftestval` | |
20646 | else | |
20647 | echo "$as_me: program exited with status $ac_status" >&5 | |
20648 | echo "$as_me: failed program was:" >&5 | |
20649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20650 | ||
20651 | ( exit $ac_status ) | |
20652 | ac_cv_header_zlib_h=no | |
20653 | fi | |
ac1cb8d3 | 20654 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20655 | fi |
20656 | ||
20657 | fi | |
20658 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20659 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20660 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20661 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20662 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20663 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20665 | fi | |
20666 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20667 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20668 | else | |
20669 | # Is the header compilable? | |
20670 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
20671 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
20672 | cat >conftest.$ac_ext <<_ACEOF | |
20673 | /* confdefs.h. */ | |
20674 | _ACEOF | |
20675 | cat confdefs.h >>conftest.$ac_ext | |
20676 | cat >>conftest.$ac_ext <<_ACEOF | |
20677 | /* end confdefs.h. */ | |
20678 | $ac_includes_default | |
20679 | #include <zlib.h> | |
20680 | _ACEOF | |
20681 | rm -f conftest.$ac_objext | |
20682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20683 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20684 | ac_status=$? |
ac1cb8d3 VS |
20685 | grep -v '^ *+' conftest.er1 >conftest.err |
20686 | rm -f conftest.er1 | |
20687 | cat conftest.err >&5 | |
a848cd7e SC |
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20689 | (exit $ac_status); } && | |
d1c38808 | 20690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20692 | (eval $ac_try) 2>&5 | |
20693 | ac_status=$? | |
20694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20695 | (exit $ac_status); }; } && | |
20696 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20698 | (eval $ac_try) 2>&5 | |
20699 | ac_status=$? | |
20700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20701 | (exit $ac_status); }; }; then | |
20702 | ac_header_compiler=yes | |
20703 | else | |
20704 | echo "$as_me: failed program was:" >&5 | |
20705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20706 | ||
20707 | ac_header_compiler=no | |
20708 | fi | |
ac1cb8d3 | 20709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20710 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20711 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20712 | ||
20713 | # Is the header present? | |
20714 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
20715 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
20716 | cat >conftest.$ac_ext <<_ACEOF | |
20717 | /* confdefs.h. */ | |
20718 | _ACEOF | |
20719 | cat confdefs.h >>conftest.$ac_ext | |
20720 | cat >>conftest.$ac_ext <<_ACEOF | |
20721 | /* end confdefs.h. */ | |
20722 | #include <zlib.h> | |
20723 | _ACEOF | |
20724 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20725 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20726 | ac_status=$? | |
20727 | grep -v '^ *+' conftest.er1 >conftest.err | |
20728 | rm -f conftest.er1 | |
20729 | cat conftest.err >&5 | |
20730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20731 | (exit $ac_status); } >/dev/null; then | |
20732 | if test -s conftest.err; then | |
20733 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 20734 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
20735 | else |
20736 | ac_cpp_err= | |
20737 | fi | |
20738 | else | |
20739 | ac_cpp_err=yes | |
20740 | fi | |
20741 | if test -z "$ac_cpp_err"; then | |
20742 | ac_header_preproc=yes | |
20743 | else | |
20744 | echo "$as_me: failed program was:" >&5 | |
20745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20746 | ||
20747 | ac_header_preproc=no | |
20748 | fi | |
20749 | rm -f conftest.err conftest.$ac_ext | |
20750 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20751 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20752 | ||
20753 | # So? What about this header? | |
ac1cb8d3 VS |
20754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20755 | yes:no: ) | |
a848cd7e SC |
20756 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20757 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
20758 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
20759 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
20760 | ac_header_preproc=yes | |
a848cd7e | 20761 | ;; |
ac1cb8d3 | 20762 | no:yes:* ) |
a848cd7e SC |
20763 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
20764 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
20765 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
20766 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
20767 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
20768 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
20769 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20770 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
20771 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
20772 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
20773 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
20774 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
20775 | ( |
20776 | cat <<\_ASBOX | |
ac1cb8d3 VS |
20777 | ## ----------------------------------------- ## |
20778 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
20779 | ## ----------------------------------------- ## | |
a848cd7e SC |
20780 | _ASBOX |
20781 | ) | | |
20782 | sed "s/^/$as_me: WARNING: /" >&2 | |
20783 | ;; | |
20784 | esac | |
20785 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
20786 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
20787 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
20788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20789 | else | |
20790 | ac_cv_header_zlib_h=$ac_header_preproc | |
20791 | fi | |
20792 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
20793 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
20794 | ||
20795 | fi | |
20796 | ||
20797 | ||
20798 | ||
20799 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
20800 | fi | |
20801 | ||
20802 | if test "$system_zlib_h_ok" = "yes"; then | |
20803 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
20804 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
20805 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
20806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20807 | else | |
20808 | ac_check_lib_save_LIBS=$LIBS | |
20809 | LIBS="-lz $LIBS" | |
20810 | cat >conftest.$ac_ext <<_ACEOF | |
20811 | /* confdefs.h. */ | |
20812 | _ACEOF | |
20813 | cat confdefs.h >>conftest.$ac_ext | |
20814 | cat >>conftest.$ac_ext <<_ACEOF | |
20815 | /* end confdefs.h. */ | |
20816 | ||
20817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20818 | #ifdef __cplusplus | |
20819 | extern "C" | |
20820 | #endif | |
20821 | /* We use char because int might match the return type of a gcc2 | |
20822 | builtin and then its argument prototype would still apply. */ | |
20823 | char deflate (); | |
20824 | int | |
20825 | main () | |
20826 | { | |
20827 | deflate (); | |
20828 | ; | |
20829 | return 0; | |
20830 | } | |
20831 | _ACEOF | |
20832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 20834 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 20835 | ac_status=$? |
ac1cb8d3 VS |
20836 | grep -v '^ *+' conftest.er1 >conftest.err |
20837 | rm -f conftest.er1 | |
20838 | cat conftest.err >&5 | |
a848cd7e SC |
20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20840 | (exit $ac_status); } && | |
d1c38808 | 20841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20843 | (eval $ac_try) 2>&5 | |
20844 | ac_status=$? | |
20845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20846 | (exit $ac_status); }; } && | |
20847 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
20848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20849 | (eval $ac_try) 2>&5 | |
20850 | ac_status=$? | |
20851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20852 | (exit $ac_status); }; }; then | |
20853 | ac_cv_lib_z_deflate=yes | |
20854 | else | |
20855 | echo "$as_me: failed program was:" >&5 | |
20856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20857 | ||
20858 | ac_cv_lib_z_deflate=no | |
20859 | fi | |
ac1cb8d3 VS |
20860 | rm -f conftest.err conftest.$ac_objext \ |
20861 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
20862 | LIBS=$ac_check_lib_save_LIBS |
20863 | fi | |
20864 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
20865 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
20866 | if test $ac_cv_lib_z_deflate = yes; then | |
20867 | ZLIB_LINK=" -lz" | |
20868 | fi | |
20869 | ||
20870 | fi | |
20871 | ||
20872 | if test "x$ZLIB_LINK" = "x" ; then | |
20873 | if test "$wxUSE_ZLIB" = "sys" ; then | |
20874 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
20875 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
20876 | { (exit 1); exit 1; }; } | |
20877 | else | |
20878 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
20879 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
20880 | wxUSE_ZLIB=builtin | |
20881 | fi | |
20882 | else | |
20883 | wxUSE_ZLIB=sys | |
20884 | fi | |
20885 | fi | |
20886 | fi | |
20887 | ||
20888 | ||
20889 | PNG_LINK= | |
20890 | if test "$wxUSE_LIBPNG" != "no" ; then | |
20891 | cat >>confdefs.h <<\_ACEOF | |
20892 | #define wxUSE_LIBPNG 1 | |
20893 | _ACEOF | |
20894 | ||
20895 | ||
20896 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
20897 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
20898 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
20899 | wxUSE_LIBPNG=sys | |
20900 | fi | |
20901 | ||
20902 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
20903 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
20904 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
20905 | wxUSE_LIBPNG=builtin | |
20906 | fi | |
20907 | ||
20908 | if test "$wxUSE_MGL" != 1 ; then | |
20909 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
20910 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
20911 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
20912 | if test "${ac_cv_header_png_h+set}" = set; then | |
20913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20914 | else | |
20915 | if test "$cross_compiling" = yes; then | |
20916 | unset ac_cv_header_png_h | |
20917 | ||
20918 | else | |
20919 | cat >conftest.$ac_ext <<_ACEOF | |
20920 | /* confdefs.h. */ | |
20921 | _ACEOF | |
20922 | cat confdefs.h >>conftest.$ac_ext | |
20923 | cat >>conftest.$ac_ext <<_ACEOF | |
20924 | /* end confdefs.h. */ | |
20925 | ||
20926 | #include <png.h> | |
20927 | #include <stdio.h> | |
20928 | ||
20929 | int main() | |
20930 | { | |
20931 | FILE *f=fopen("conftestval", "w"); | |
20932 | if (!f) exit(1); | |
20933 | fprintf(f, "%s", | |
20934 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
20935 | exit(0); | |
20936 | } | |
20937 | ||
20938 | _ACEOF | |
20939 | rm -f conftest$ac_exeext | |
20940 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20941 | (eval $ac_link) 2>&5 | |
20942 | ac_status=$? | |
20943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20944 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20946 | (eval $ac_try) 2>&5 | |
20947 | ac_status=$? | |
20948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20949 | (exit $ac_status); }; }; then | |
20950 | ac_cv_header_png_h=`cat conftestval` | |
20951 | else | |
20952 | echo "$as_me: program exited with status $ac_status" >&5 | |
20953 | echo "$as_me: failed program was:" >&5 | |
20954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20955 | ||
20956 | ( exit $ac_status ) | |
20957 | ac_cv_header_png_h=no | |
20958 | fi | |
ac1cb8d3 | 20959 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20960 | fi |
20961 | ||
20962 | fi | |
20963 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20964 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20965 | if test "${ac_cv_header_png_h+set}" = set; then | |
20966 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
20967 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
20968 | if test "${ac_cv_header_png_h+set}" = set; then | |
20969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20970 | fi | |
20971 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
20972 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
20973 | else | |
20974 | # Is the header compilable? | |
20975 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
20976 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
20977 | cat >conftest.$ac_ext <<_ACEOF | |
20978 | /* confdefs.h. */ | |
20979 | _ACEOF | |
20980 | cat confdefs.h >>conftest.$ac_ext | |
20981 | cat >>conftest.$ac_ext <<_ACEOF | |
20982 | /* end confdefs.h. */ | |
20983 | $ac_includes_default | |
20984 | #include <png.h> | |
20985 | _ACEOF | |
20986 | rm -f conftest.$ac_objext | |
20987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20988 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20989 | ac_status=$? |
ac1cb8d3 VS |
20990 | grep -v '^ *+' conftest.er1 >conftest.err |
20991 | rm -f conftest.er1 | |
20992 | cat conftest.err >&5 | |
a848cd7e SC |
20993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20994 | (exit $ac_status); } && | |
d1c38808 | 20995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20997 | (eval $ac_try) 2>&5 | |
20998 | ac_status=$? | |
20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21000 | (exit $ac_status); }; } && | |
21001 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21003 | (eval $ac_try) 2>&5 | |
21004 | ac_status=$? | |
21005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21006 | (exit $ac_status); }; }; then | |
21007 | ac_header_compiler=yes | |
21008 | else | |
21009 | echo "$as_me: failed program was:" >&5 | |
21010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21011 | ||
21012 | ac_header_compiler=no | |
21013 | fi | |
ac1cb8d3 | 21014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21015 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21016 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21017 | ||
21018 | # Is the header present? | |
21019 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
21020 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
21021 | cat >conftest.$ac_ext <<_ACEOF | |
21022 | /* confdefs.h. */ | |
21023 | _ACEOF | |
21024 | cat confdefs.h >>conftest.$ac_ext | |
21025 | cat >>conftest.$ac_ext <<_ACEOF | |
21026 | /* end confdefs.h. */ | |
21027 | #include <png.h> | |
21028 | _ACEOF | |
21029 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21030 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21031 | ac_status=$? | |
21032 | grep -v '^ *+' conftest.er1 >conftest.err | |
21033 | rm -f conftest.er1 | |
21034 | cat conftest.err >&5 | |
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21036 | (exit $ac_status); } >/dev/null; then | |
21037 | if test -s conftest.err; then | |
21038 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21039 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21040 | else |
21041 | ac_cpp_err= | |
21042 | fi | |
21043 | else | |
21044 | ac_cpp_err=yes | |
21045 | fi | |
21046 | if test -z "$ac_cpp_err"; then | |
21047 | ac_header_preproc=yes | |
21048 | else | |
21049 | echo "$as_me: failed program was:" >&5 | |
21050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21051 | ||
21052 | ac_header_preproc=no | |
21053 | fi | |
21054 | rm -f conftest.err conftest.$ac_ext | |
21055 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21056 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21057 | ||
21058 | # So? What about this header? | |
ac1cb8d3 VS |
21059 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21060 | yes:no: ) | |
a848cd7e SC |
21061 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21062 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21063 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
21064 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
21065 | ac_header_preproc=yes | |
a848cd7e | 21066 | ;; |
ac1cb8d3 | 21067 | no:yes:* ) |
a848cd7e SC |
21068 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
21069 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21070 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
21071 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
21072 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
21073 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
21074 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21075 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21076 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
21077 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21078 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
21079 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21080 | ( |
21081 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21082 | ## ----------------------------------------- ## |
21083 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21084 | ## ----------------------------------------- ## | |
a848cd7e SC |
21085 | _ASBOX |
21086 | ) | | |
21087 | sed "s/^/$as_me: WARNING: /" >&2 | |
21088 | ;; | |
21089 | esac | |
21090 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
21091 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
21092 | if test "${ac_cv_header_png_h+set}" = set; then | |
21093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21094 | else | |
21095 | ac_cv_header_png_h=$ac_header_preproc | |
21096 | fi | |
21097 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
21098 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
21099 | ||
21100 | fi | |
21101 | ||
21102 | ||
21103 | ||
21104 | if test "$ac_cv_header_png_h" = "yes"; then | |
21105 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
21106 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
21107 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
21108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21109 | else | |
21110 | ac_check_lib_save_LIBS=$LIBS | |
21111 | LIBS="-lpng -lz -lm $LIBS" | |
21112 | cat >conftest.$ac_ext <<_ACEOF | |
21113 | /* confdefs.h. */ | |
21114 | _ACEOF | |
21115 | cat confdefs.h >>conftest.$ac_ext | |
21116 | cat >>conftest.$ac_ext <<_ACEOF | |
21117 | /* end confdefs.h. */ | |
21118 | ||
21119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21120 | #ifdef __cplusplus | |
21121 | extern "C" | |
21122 | #endif | |
21123 | /* We use char because int might match the return type of a gcc2 | |
21124 | builtin and then its argument prototype would still apply. */ | |
21125 | char png_check_sig (); | |
21126 | int | |
21127 | main () | |
21128 | { | |
21129 | png_check_sig (); | |
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | _ACEOF | |
21134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21137 | ac_status=$? |
ac1cb8d3 VS |
21138 | grep -v '^ *+' conftest.er1 >conftest.err |
21139 | rm -f conftest.er1 | |
21140 | cat conftest.err >&5 | |
a848cd7e SC |
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21142 | (exit $ac_status); } && | |
d1c38808 | 21143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21145 | (eval $ac_try) 2>&5 | |
21146 | ac_status=$? | |
21147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21148 | (exit $ac_status); }; } && | |
21149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21151 | (eval $ac_try) 2>&5 | |
21152 | ac_status=$? | |
21153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21154 | (exit $ac_status); }; }; then | |
21155 | ac_cv_lib_png_png_check_sig=yes | |
21156 | else | |
21157 | echo "$as_me: failed program was:" >&5 | |
21158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21159 | ||
21160 | ac_cv_lib_png_png_check_sig=no | |
21161 | fi | |
ac1cb8d3 VS |
21162 | rm -f conftest.err conftest.$ac_objext \ |
21163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21164 | LIBS=$ac_check_lib_save_LIBS |
21165 | fi | |
21166 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
21167 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
21168 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21169 | PNG_LINK=" -lpng -lz" | |
21170 | fi | |
21171 | ||
21172 | fi | |
21173 | ||
21174 | if test "x$PNG_LINK" = "x" ; then | |
21175 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
21176 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
21177 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
21178 | { (exit 1); exit 1; }; } | |
21179 | else | |
21180 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
21181 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21182 | wxUSE_LIBPNG=builtin | |
21183 | fi | |
21184 | else | |
21185 | wxUSE_LIBPNG=sys | |
21186 | fi | |
21187 | fi | |
21188 | fi | |
21189 | ||
21190 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
21191 | fi | |
21192 | ||
21193 | ||
21194 | JPEG_LINK= | |
21195 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
21196 | cat >>confdefs.h <<\_ACEOF | |
21197 | #define wxUSE_LIBJPEG 1 | |
21198 | _ACEOF | |
21199 | ||
21200 | ||
21201 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
21202 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
21203 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21204 | wxUSE_LIBJPEG=sys | |
21205 | fi | |
21206 | ||
21207 | if test "$wxUSE_MGL" != 1 ; then | |
21208 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
21209 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
21210 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
21211 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
21212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21213 | else | |
21214 | cat >conftest.$ac_ext <<_ACEOF | |
21215 | /* confdefs.h. */ | |
21216 | _ACEOF | |
21217 | cat confdefs.h >>conftest.$ac_ext | |
21218 | cat >>conftest.$ac_ext <<_ACEOF | |
21219 | /* end confdefs.h. */ | |
21220 | ||
21221 | #undef HAVE_STDLIB_H | |
21222 | #include <stdio.h> | |
21223 | #include <jpeglib.h> | |
21224 | ||
21225 | int | |
21226 | main () | |
21227 | { | |
21228 | ||
21229 | ||
21230 | ; | |
21231 | return 0; | |
21232 | } | |
21233 | _ACEOF | |
21234 | rm -f conftest.$ac_objext | |
21235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21236 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21237 | ac_status=$? |
ac1cb8d3 VS |
21238 | grep -v '^ *+' conftest.er1 >conftest.err |
21239 | rm -f conftest.er1 | |
21240 | cat conftest.err >&5 | |
a848cd7e SC |
21241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21242 | (exit $ac_status); } && | |
d1c38808 | 21243 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21245 | (eval $ac_try) 2>&5 | |
21246 | ac_status=$? | |
21247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21248 | (exit $ac_status); }; } && | |
21249 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21251 | (eval $ac_try) 2>&5 | |
21252 | ac_status=$? | |
21253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21254 | (exit $ac_status); }; }; then | |
21255 | ac_cv_header_jpeglib_h=yes | |
21256 | else | |
21257 | echo "$as_me: failed program was:" >&5 | |
21258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21259 | ||
21260 | ac_cv_header_jpeglib_h=no | |
21261 | ||
21262 | fi | |
ac1cb8d3 | 21263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21264 | |
21265 | fi | |
21266 | ||
21267 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
21268 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
21269 | ||
21270 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
21271 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
21272 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
21273 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21275 | else | |
21276 | ac_check_lib_save_LIBS=$LIBS | |
21277 | LIBS="-ljpeg $LIBS" | |
21278 | cat >conftest.$ac_ext <<_ACEOF | |
21279 | /* confdefs.h. */ | |
21280 | _ACEOF | |
21281 | cat confdefs.h >>conftest.$ac_ext | |
21282 | cat >>conftest.$ac_ext <<_ACEOF | |
21283 | /* end confdefs.h. */ | |
21284 | ||
21285 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21286 | #ifdef __cplusplus | |
21287 | extern "C" | |
21288 | #endif | |
21289 | /* We use char because int might match the return type of a gcc2 | |
21290 | builtin and then its argument prototype would still apply. */ | |
21291 | char jpeg_read_header (); | |
21292 | int | |
21293 | main () | |
21294 | { | |
21295 | jpeg_read_header (); | |
21296 | ; | |
21297 | return 0; | |
21298 | } | |
21299 | _ACEOF | |
21300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21302 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21303 | ac_status=$? |
ac1cb8d3 VS |
21304 | grep -v '^ *+' conftest.er1 >conftest.err |
21305 | rm -f conftest.er1 | |
21306 | cat conftest.err >&5 | |
a848cd7e SC |
21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21308 | (exit $ac_status); } && | |
d1c38808 | 21309 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21311 | (eval $ac_try) 2>&5 | |
21312 | ac_status=$? | |
21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21314 | (exit $ac_status); }; } && | |
21315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21317 | (eval $ac_try) 2>&5 | |
21318 | ac_status=$? | |
21319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21320 | (exit $ac_status); }; }; then | |
21321 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
21322 | else | |
21323 | echo "$as_me: failed program was:" >&5 | |
21324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21325 | ||
21326 | ac_cv_lib_jpeg_jpeg_read_header=no | |
21327 | fi | |
ac1cb8d3 VS |
21328 | rm -f conftest.err conftest.$ac_objext \ |
21329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21330 | LIBS=$ac_check_lib_save_LIBS |
21331 | fi | |
21332 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
21333 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
21334 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21335 | JPEG_LINK=" -ljpeg" | |
21336 | fi | |
21337 | ||
21338 | fi | |
21339 | ||
21340 | if test "x$JPEG_LINK" = "x" ; then | |
21341 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
21342 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
21343 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
21344 | { (exit 1); exit 1; }; } | |
21345 | else | |
21346 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
21347 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21348 | wxUSE_LIBJPEG=builtin | |
21349 | fi | |
21350 | else | |
21351 | wxUSE_LIBJPEG=sys | |
21352 | fi | |
21353 | fi | |
21354 | fi | |
21355 | fi | |
21356 | ||
21357 | ||
21358 | TIFF_LINK= | |
21359 | TIFF_PREREQ_LINKS=-lm | |
21360 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
21361 | cat >>confdefs.h <<\_ACEOF | |
21362 | #define wxUSE_LIBTIFF 1 | |
21363 | _ACEOF | |
21364 | ||
21365 | ||
21366 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
21367 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
21368 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
21369 | fi | |
21370 | if test "$wxUSE_ZLIB" = "sys"; then | |
21371 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
21372 | fi | |
21373 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21374 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21375 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21376 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21378 | fi | |
21379 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21380 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21381 | else | |
21382 | # Is the header compilable? | |
21383 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
21384 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
21385 | cat >conftest.$ac_ext <<_ACEOF | |
21386 | /* confdefs.h. */ | |
21387 | _ACEOF | |
21388 | cat confdefs.h >>conftest.$ac_ext | |
21389 | cat >>conftest.$ac_ext <<_ACEOF | |
21390 | /* end confdefs.h. */ | |
21391 | $ac_includes_default | |
21392 | #include <tiffio.h> | |
21393 | _ACEOF | |
21394 | rm -f conftest.$ac_objext | |
21395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21396 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21397 | ac_status=$? |
ac1cb8d3 VS |
21398 | grep -v '^ *+' conftest.er1 >conftest.err |
21399 | rm -f conftest.er1 | |
21400 | cat conftest.err >&5 | |
a848cd7e SC |
21401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21402 | (exit $ac_status); } && | |
d1c38808 | 21403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21405 | (eval $ac_try) 2>&5 | |
21406 | ac_status=$? | |
21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21408 | (exit $ac_status); }; } && | |
21409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21411 | (eval $ac_try) 2>&5 | |
21412 | ac_status=$? | |
21413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21414 | (exit $ac_status); }; }; then | |
21415 | ac_header_compiler=yes | |
21416 | else | |
21417 | echo "$as_me: failed program was:" >&5 | |
21418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21419 | ||
21420 | ac_header_compiler=no | |
21421 | fi | |
ac1cb8d3 | 21422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21423 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21424 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21425 | ||
21426 | # Is the header present? | |
21427 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
21428 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
21429 | cat >conftest.$ac_ext <<_ACEOF | |
21430 | /* confdefs.h. */ | |
21431 | _ACEOF | |
21432 | cat confdefs.h >>conftest.$ac_ext | |
21433 | cat >>conftest.$ac_ext <<_ACEOF | |
21434 | /* end confdefs.h. */ | |
21435 | #include <tiffio.h> | |
21436 | _ACEOF | |
21437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21439 | ac_status=$? | |
21440 | grep -v '^ *+' conftest.er1 >conftest.err | |
21441 | rm -f conftest.er1 | |
21442 | cat conftest.err >&5 | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); } >/dev/null; then | |
21445 | if test -s conftest.err; then | |
21446 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21448 | else |
21449 | ac_cpp_err= | |
21450 | fi | |
21451 | else | |
21452 | ac_cpp_err=yes | |
21453 | fi | |
21454 | if test -z "$ac_cpp_err"; then | |
21455 | ac_header_preproc=yes | |
21456 | else | |
21457 | echo "$as_me: failed program was:" >&5 | |
21458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21459 | ||
21460 | ac_header_preproc=no | |
21461 | fi | |
21462 | rm -f conftest.err conftest.$ac_ext | |
21463 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21464 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21465 | ||
21466 | # So? What about this header? | |
ac1cb8d3 VS |
21467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21468 | yes:no: ) | |
a848cd7e SC |
21469 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21470 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21471 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
21472 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
21473 | ac_header_preproc=yes | |
a848cd7e | 21474 | ;; |
ac1cb8d3 | 21475 | no:yes:* ) |
a848cd7e SC |
21476 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
21477 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21478 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
21479 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
21480 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
21481 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
21482 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21483 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21484 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
21485 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21486 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
21487 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21488 | ( |
21489 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21490 | ## ----------------------------------------- ## |
21491 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21492 | ## ----------------------------------------- ## | |
a848cd7e SC |
21493 | _ASBOX |
21494 | ) | | |
21495 | sed "s/^/$as_me: WARNING: /" >&2 | |
21496 | ;; | |
21497 | esac | |
21498 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
21499 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
21500 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
21501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21502 | else | |
21503 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21504 | fi | |
21505 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
21506 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
21507 | ||
21508 | fi | |
21509 | if test $ac_cv_header_tiffio_h = yes; then | |
21510 | ||
21511 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
21512 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
21513 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
21514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21515 | else | |
21516 | ac_check_lib_save_LIBS=$LIBS | |
21517 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
21518 | cat >conftest.$ac_ext <<_ACEOF | |
21519 | /* confdefs.h. */ | |
21520 | _ACEOF | |
21521 | cat confdefs.h >>conftest.$ac_ext | |
21522 | cat >>conftest.$ac_ext <<_ACEOF | |
21523 | /* end confdefs.h. */ | |
21524 | ||
21525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21526 | #ifdef __cplusplus | |
21527 | extern "C" | |
21528 | #endif | |
21529 | /* We use char because int might match the return type of a gcc2 | |
21530 | builtin and then its argument prototype would still apply. */ | |
21531 | char TIFFError (); | |
21532 | int | |
21533 | main () | |
21534 | { | |
21535 | TIFFError (); | |
21536 | ; | |
21537 | return 0; | |
21538 | } | |
21539 | _ACEOF | |
21540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21542 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21543 | ac_status=$? |
ac1cb8d3 VS |
21544 | grep -v '^ *+' conftest.er1 >conftest.err |
21545 | rm -f conftest.er1 | |
21546 | cat conftest.err >&5 | |
a848cd7e SC |
21547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21548 | (exit $ac_status); } && | |
d1c38808 | 21549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21551 | (eval $ac_try) 2>&5 | |
21552 | ac_status=$? | |
21553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21554 | (exit $ac_status); }; } && | |
21555 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21557 | (eval $ac_try) 2>&5 | |
21558 | ac_status=$? | |
21559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21560 | (exit $ac_status); }; }; then | |
21561 | ac_cv_lib_tiff_TIFFError=yes | |
21562 | else | |
21563 | echo "$as_me: failed program was:" >&5 | |
21564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21565 | ||
21566 | ac_cv_lib_tiff_TIFFError=no | |
21567 | fi | |
ac1cb8d3 VS |
21568 | rm -f conftest.err conftest.$ac_objext \ |
21569 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21570 | LIBS=$ac_check_lib_save_LIBS |
21571 | fi | |
21572 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
21573 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
21574 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21575 | TIFF_LINK=" -ltiff" | |
21576 | fi | |
21577 | ||
21578 | ||
21579 | ||
21580 | fi | |
21581 | ||
21582 | ||
21583 | ||
21584 | if test "x$TIFF_LINK" = "x" ; then | |
21585 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
21586 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
21587 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
21588 | { (exit 1); exit 1; }; } | |
21589 | else | |
21590 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
21591 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21592 | wxUSE_LIBTIFF=builtin | |
21593 | fi | |
21594 | else | |
21595 | wxUSE_LIBTIFF=sys | |
21596 | fi | |
21597 | fi | |
21598 | fi | |
21599 | ||
21600 | ||
21601 | if test "$wxUSE_EXPAT" != "no"; then | |
21602 | wxUSE_XML=yes | |
21603 | cat >>confdefs.h <<\_ACEOF | |
21604 | #define wxUSE_EXPAT 1 | |
21605 | _ACEOF | |
21606 | ||
21607 | cat >>confdefs.h <<\_ACEOF | |
21608 | #define wxUSE_XML 1 | |
21609 | _ACEOF | |
21610 | ||
21611 | ||
21612 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
21613 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21614 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21615 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21616 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21618 | fi | |
21619 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21620 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21621 | else | |
21622 | # Is the header compilable? | |
21623 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
21624 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
21625 | cat >conftest.$ac_ext <<_ACEOF | |
21626 | /* confdefs.h. */ | |
21627 | _ACEOF | |
21628 | cat confdefs.h >>conftest.$ac_ext | |
21629 | cat >>conftest.$ac_ext <<_ACEOF | |
21630 | /* end confdefs.h. */ | |
21631 | $ac_includes_default | |
21632 | #include <expat.h> | |
21633 | _ACEOF | |
21634 | rm -f conftest.$ac_objext | |
21635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21636 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21637 | ac_status=$? |
ac1cb8d3 VS |
21638 | grep -v '^ *+' conftest.er1 >conftest.err |
21639 | rm -f conftest.er1 | |
21640 | cat conftest.err >&5 | |
a848cd7e SC |
21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21642 | (exit $ac_status); } && | |
d1c38808 | 21643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21645 | (eval $ac_try) 2>&5 | |
21646 | ac_status=$? | |
21647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21648 | (exit $ac_status); }; } && | |
21649 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21651 | (eval $ac_try) 2>&5 | |
21652 | ac_status=$? | |
21653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21654 | (exit $ac_status); }; }; then | |
21655 | ac_header_compiler=yes | |
21656 | else | |
21657 | echo "$as_me: failed program was:" >&5 | |
21658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21659 | ||
21660 | ac_header_compiler=no | |
21661 | fi | |
ac1cb8d3 | 21662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21664 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21665 | ||
21666 | # Is the header present? | |
21667 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
21668 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
21669 | cat >conftest.$ac_ext <<_ACEOF | |
21670 | /* confdefs.h. */ | |
21671 | _ACEOF | |
21672 | cat confdefs.h >>conftest.$ac_ext | |
21673 | cat >>conftest.$ac_ext <<_ACEOF | |
21674 | /* end confdefs.h. */ | |
21675 | #include <expat.h> | |
21676 | _ACEOF | |
21677 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21678 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21679 | ac_status=$? | |
21680 | grep -v '^ *+' conftest.er1 >conftest.err | |
21681 | rm -f conftest.er1 | |
21682 | cat conftest.err >&5 | |
21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21684 | (exit $ac_status); } >/dev/null; then | |
21685 | if test -s conftest.err; then | |
21686 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21687 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21688 | else |
21689 | ac_cpp_err= | |
21690 | fi | |
21691 | else | |
21692 | ac_cpp_err=yes | |
21693 | fi | |
21694 | if test -z "$ac_cpp_err"; then | |
21695 | ac_header_preproc=yes | |
21696 | else | |
21697 | echo "$as_me: failed program was:" >&5 | |
21698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21699 | ||
21700 | ac_header_preproc=no | |
21701 | fi | |
21702 | rm -f conftest.err conftest.$ac_ext | |
21703 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21704 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21705 | ||
21706 | # So? What about this header? | |
ac1cb8d3 VS |
21707 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21708 | yes:no: ) | |
a848cd7e SC |
21709 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
21710 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21711 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
21712 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
21713 | ac_header_preproc=yes | |
a848cd7e | 21714 | ;; |
ac1cb8d3 | 21715 | no:yes:* ) |
a848cd7e SC |
21716 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
21717 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21718 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
21719 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
21720 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
21721 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
21722 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21723 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21724 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
21725 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21726 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
21727 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21728 | ( |
21729 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21730 | ## ----------------------------------------- ## |
21731 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21732 | ## ----------------------------------------- ## | |
a848cd7e SC |
21733 | _ASBOX |
21734 | ) | | |
21735 | sed "s/^/$as_me: WARNING: /" >&2 | |
21736 | ;; | |
21737 | esac | |
21738 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
21739 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
21740 | if test "${ac_cv_header_expat_h+set}" = set; then | |
21741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21742 | else | |
21743 | ac_cv_header_expat_h=$ac_header_preproc | |
21744 | fi | |
21745 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
21746 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
21747 | ||
21748 | fi | |
21749 | if test $ac_cv_header_expat_h = yes; then | |
21750 | found_expat_h=1 | |
21751 | fi | |
21752 | ||
21753 | ||
21754 | if test "x$found_expat_h" = "x1"; then | |
21755 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
21756 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
21757 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
21758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21759 | else | |
21760 | ||
21761 | ||
21762 | ||
21763 | ac_ext=cc | |
21764 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21768 | ||
21769 | cat >conftest.$ac_ext <<_ACEOF | |
21770 | /* confdefs.h. */ | |
21771 | _ACEOF | |
21772 | cat confdefs.h >>conftest.$ac_ext | |
21773 | cat >>conftest.$ac_ext <<_ACEOF | |
21774 | /* end confdefs.h. */ | |
21775 | #include <expat.h> | |
21776 | int | |
21777 | main () | |
21778 | { | |
21779 | ||
21780 | ; | |
21781 | return 0; | |
21782 | } | |
21783 | _ACEOF | |
21784 | rm -f conftest.$ac_objext | |
21785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21786 | (eval $ac_compile) 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); } && | |
d1c38808 | 21793 | { ac_try='test -z "$ac_cxx_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_objext' | |
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 | wx_cv_expat_is_not_broken=yes | |
21806 | else | |
21807 | echo "$as_me: failed program was:" >&5 | |
21808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21809 | ||
21810 | wx_cv_expat_is_not_broken=no | |
21811 | ||
21812 | fi | |
ac1cb8d3 | 21813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21814 | ac_ext=c |
21815 | ac_cpp='$CPP $CPPFLAGS' | |
21816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21819 | ||
21820 | ||
21821 | ||
21822 | fi | |
21823 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
21824 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
21825 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
21826 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
21827 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
21828 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
21829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21830 | else | |
21831 | ac_check_lib_save_LIBS=$LIBS | |
21832 | LIBS="-lexpat $LIBS" | |
21833 | cat >conftest.$ac_ext <<_ACEOF | |
21834 | /* confdefs.h. */ | |
21835 | _ACEOF | |
21836 | cat confdefs.h >>conftest.$ac_ext | |
21837 | cat >>conftest.$ac_ext <<_ACEOF | |
21838 | /* end confdefs.h. */ | |
21839 | ||
21840 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21841 | #ifdef __cplusplus | |
21842 | extern "C" | |
21843 | #endif | |
21844 | /* We use char because int might match the return type of a gcc2 | |
21845 | builtin and then its argument prototype would still apply. */ | |
21846 | char XML_ParserCreate (); | |
21847 | int | |
21848 | main () | |
21849 | { | |
21850 | XML_ParserCreate (); | |
21851 | ; | |
21852 | return 0; | |
21853 | } | |
21854 | _ACEOF | |
21855 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 21857 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 21858 | ac_status=$? |
ac1cb8d3 VS |
21859 | grep -v '^ *+' conftest.er1 >conftest.err |
21860 | rm -f conftest.er1 | |
21861 | cat conftest.err >&5 | |
a848cd7e SC |
21862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21863 | (exit $ac_status); } && | |
d1c38808 | 21864 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21866 | (eval $ac_try) 2>&5 | |
21867 | ac_status=$? | |
21868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21869 | (exit $ac_status); }; } && | |
21870 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
21871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21872 | (eval $ac_try) 2>&5 | |
21873 | ac_status=$? | |
21874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21875 | (exit $ac_status); }; }; then | |
21876 | ac_cv_lib_expat_XML_ParserCreate=yes | |
21877 | else | |
21878 | echo "$as_me: failed program was:" >&5 | |
21879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21880 | ||
21881 | ac_cv_lib_expat_XML_ParserCreate=no | |
21882 | fi | |
ac1cb8d3 VS |
21883 | rm -f conftest.err conftest.$ac_objext \ |
21884 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
21885 | LIBS=$ac_check_lib_save_LIBS |
21886 | fi | |
21887 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
21888 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
21889 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
21890 | EXPAT_LINK=" -lexpat" | |
21891 | fi | |
21892 | ||
21893 | fi | |
21894 | fi | |
21895 | if test "x$EXPAT_LINK" = "x" ; then | |
21896 | if test "$wxUSE_EXPAT" = "sys" ; then | |
21897 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
21898 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
21899 | { (exit 1); exit 1; }; } | |
21900 | else | |
21901 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
21902 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
21903 | wxUSE_EXPAT=builtin | |
21904 | fi | |
21905 | else | |
21906 | wxUSE_EXPAT=sys | |
21907 | fi | |
21908 | fi | |
21909 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
21910 | ||
21911 | ||
21912 | subdirs="$subdirs src/expat" | |
21913 | ||
21914 | fi | |
21915 | fi | |
21916 | ||
21917 | ||
21918 | ||
21919 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
21920 | ||
21921 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21922 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
21923 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
21924 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
21925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21926 | fi | |
21927 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
21928 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
21929 | else | |
21930 | # Is the header compilable? | |
21931 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
21932 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
21933 | cat >conftest.$ac_ext <<_ACEOF | |
21934 | /* confdefs.h. */ | |
21935 | _ACEOF | |
21936 | cat confdefs.h >>conftest.$ac_ext | |
21937 | cat >>conftest.$ac_ext <<_ACEOF | |
21938 | /* end confdefs.h. */ | |
21939 | $ac_includes_default | |
21940 | #include <mspack.h> | |
21941 | _ACEOF | |
21942 | rm -f conftest.$ac_objext | |
21943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21945 | ac_status=$? |
ac1cb8d3 VS |
21946 | grep -v '^ *+' conftest.er1 >conftest.err |
21947 | rm -f conftest.er1 | |
21948 | cat conftest.err >&5 | |
a848cd7e SC |
21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21950 | (exit $ac_status); } && | |
d1c38808 | 21951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21953 | (eval $ac_try) 2>&5 | |
21954 | ac_status=$? | |
21955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21956 | (exit $ac_status); }; } && | |
21957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21959 | (eval $ac_try) 2>&5 | |
21960 | ac_status=$? | |
21961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21962 | (exit $ac_status); }; }; then | |
21963 | ac_header_compiler=yes | |
21964 | else | |
21965 | echo "$as_me: failed program was:" >&5 | |
21966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21967 | ||
21968 | ac_header_compiler=no | |
21969 | fi | |
ac1cb8d3 | 21970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21972 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21973 | ||
21974 | # Is the header present? | |
21975 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
21976 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
21977 | cat >conftest.$ac_ext <<_ACEOF | |
21978 | /* confdefs.h. */ | |
21979 | _ACEOF | |
21980 | cat confdefs.h >>conftest.$ac_ext | |
21981 | cat >>conftest.$ac_ext <<_ACEOF | |
21982 | /* end confdefs.h. */ | |
21983 | #include <mspack.h> | |
21984 | _ACEOF | |
21985 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21986 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21987 | ac_status=$? | |
21988 | grep -v '^ *+' conftest.er1 >conftest.err | |
21989 | rm -f conftest.er1 | |
21990 | cat conftest.err >&5 | |
21991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21992 | (exit $ac_status); } >/dev/null; then | |
21993 | if test -s conftest.err; then | |
21994 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 21995 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
21996 | else |
21997 | ac_cpp_err= | |
21998 | fi | |
21999 | else | |
22000 | ac_cpp_err=yes | |
22001 | fi | |
22002 | if test -z "$ac_cpp_err"; then | |
22003 | ac_header_preproc=yes | |
22004 | else | |
22005 | echo "$as_me: failed program was:" >&5 | |
22006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22007 | ||
22008 | ac_header_preproc=no | |
22009 | fi | |
22010 | rm -f conftest.err conftest.$ac_ext | |
22011 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22012 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22013 | ||
22014 | # So? What about this header? | |
ac1cb8d3 VS |
22015 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22016 | yes:no: ) | |
a848cd7e SC |
22017 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22018 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22019 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
22020 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
22021 | ac_header_preproc=yes | |
a848cd7e | 22022 | ;; |
ac1cb8d3 | 22023 | no:yes:* ) |
a848cd7e SC |
22024 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
22025 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22026 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
22027 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
22028 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
22029 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
22030 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22031 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22032 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
22033 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22034 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
22035 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22036 | ( |
22037 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22038 | ## ----------------------------------------- ## |
22039 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22040 | ## ----------------------------------------- ## | |
a848cd7e SC |
22041 | _ASBOX |
22042 | ) | | |
22043 | sed "s/^/$as_me: WARNING: /" >&2 | |
22044 | ;; | |
22045 | esac | |
22046 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
22047 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
22048 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
22049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22050 | else | |
22051 | ac_cv_header_mspack_h=$ac_header_preproc | |
22052 | fi | |
22053 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
22054 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
22055 | ||
22056 | fi | |
22057 | if test $ac_cv_header_mspack_h = yes; then | |
22058 | found_mspack_h=1 | |
22059 | fi | |
22060 | ||
22061 | ||
22062 | if test "x$found_mspack_h" = "x1"; then | |
22063 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
22064 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
22065 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
22066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22067 | else | |
22068 | ac_check_lib_save_LIBS=$LIBS | |
22069 | LIBS="-lmspack $LIBS" | |
22070 | cat >conftest.$ac_ext <<_ACEOF | |
22071 | /* confdefs.h. */ | |
22072 | _ACEOF | |
22073 | cat confdefs.h >>conftest.$ac_ext | |
22074 | cat >>conftest.$ac_ext <<_ACEOF | |
22075 | /* end confdefs.h. */ | |
22076 | ||
22077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22078 | #ifdef __cplusplus | |
22079 | extern "C" | |
22080 | #endif | |
22081 | /* We use char because int might match the return type of a gcc2 | |
22082 | builtin and then its argument prototype would still apply. */ | |
22083 | char mspack_create_chm_decompressor (); | |
22084 | int | |
22085 | main () | |
22086 | { | |
22087 | mspack_create_chm_decompressor (); | |
22088 | ; | |
22089 | return 0; | |
22090 | } | |
22091 | _ACEOF | |
22092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22094 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22095 | ac_status=$? |
ac1cb8d3 VS |
22096 | grep -v '^ *+' conftest.er1 >conftest.err |
22097 | rm -f conftest.er1 | |
22098 | cat conftest.err >&5 | |
a848cd7e SC |
22099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22100 | (exit $ac_status); } && | |
d1c38808 | 22101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22103 | (eval $ac_try) 2>&5 | |
22104 | ac_status=$? | |
22105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22106 | (exit $ac_status); }; } && | |
22107 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22109 | (eval $ac_try) 2>&5 | |
22110 | ac_status=$? | |
22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22112 | (exit $ac_status); }; }; then | |
22113 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
22114 | else | |
22115 | echo "$as_me: failed program was:" >&5 | |
22116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22117 | ||
22118 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
22119 | fi | |
ac1cb8d3 VS |
22120 | rm -f conftest.err conftest.$ac_objext \ |
22121 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22122 | LIBS=$ac_check_lib_save_LIBS |
22123 | fi | |
22124 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
22125 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
22126 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
22127 | MSPACK_LINK=" -lmspack" | |
22128 | fi | |
22129 | ||
22130 | fi | |
22131 | if test "x$MSPACK_LINK" = "x" ; then | |
22132 | wxUSE_LIBMSPACK=no | |
22133 | else | |
22134 | cat >>confdefs.h <<\_ACEOF | |
22135 | #define wxUSE_LIBMSPACK 1 | |
22136 | _ACEOF | |
22137 | ||
22138 | fi | |
22139 | fi | |
22140 | ||
22141 | ||
22142 | ||
22143 | AFMINSTALL= | |
22144 | WIN32INSTALL= | |
22145 | ||
22146 | TOOLKIT= | |
22147 | TOOLKIT_INCLUDE= | |
22148 | WIDGET_SET= | |
22149 | ||
22150 | if test "$USE_WIN32" = 1 ; then | |
22151 | ||
22152 | for ac_header in w32api.h | |
22153 | do | |
22154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22160 | fi | |
22161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22163 | else | |
22164 | # Is the header compilable? | |
22165 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22167 | cat >conftest.$ac_ext <<_ACEOF | |
22168 | /* confdefs.h. */ | |
22169 | _ACEOF | |
22170 | cat confdefs.h >>conftest.$ac_ext | |
22171 | cat >>conftest.$ac_ext <<_ACEOF | |
22172 | /* end confdefs.h. */ | |
22173 | $ac_includes_default | |
22174 | #include <$ac_header> | |
22175 | _ACEOF | |
22176 | rm -f conftest.$ac_objext | |
22177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22178 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22179 | ac_status=$? |
ac1cb8d3 VS |
22180 | grep -v '^ *+' conftest.er1 >conftest.err |
22181 | rm -f conftest.er1 | |
22182 | cat conftest.err >&5 | |
a848cd7e SC |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22184 | (exit $ac_status); } && | |
d1c38808 | 22185 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22187 | (eval $ac_try) 2>&5 | |
22188 | ac_status=$? | |
22189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22190 | (exit $ac_status); }; } && | |
22191 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22193 | (eval $ac_try) 2>&5 | |
22194 | ac_status=$? | |
22195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22196 | (exit $ac_status); }; }; then | |
22197 | ac_header_compiler=yes | |
22198 | else | |
22199 | echo "$as_me: failed program was:" >&5 | |
22200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22201 | ||
22202 | ac_header_compiler=no | |
22203 | fi | |
ac1cb8d3 | 22204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22206 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22207 | ||
22208 | # Is the header present? | |
22209 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22210 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22211 | cat >conftest.$ac_ext <<_ACEOF | |
22212 | /* confdefs.h. */ | |
22213 | _ACEOF | |
22214 | cat confdefs.h >>conftest.$ac_ext | |
22215 | cat >>conftest.$ac_ext <<_ACEOF | |
22216 | /* end confdefs.h. */ | |
22217 | #include <$ac_header> | |
22218 | _ACEOF | |
22219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22221 | ac_status=$? | |
22222 | grep -v '^ *+' conftest.er1 >conftest.err | |
22223 | rm -f conftest.er1 | |
22224 | cat conftest.err >&5 | |
22225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22226 | (exit $ac_status); } >/dev/null; then | |
22227 | if test -s conftest.err; then | |
22228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22230 | else |
22231 | ac_cpp_err= | |
22232 | fi | |
22233 | else | |
22234 | ac_cpp_err=yes | |
22235 | fi | |
22236 | if test -z "$ac_cpp_err"; then | |
22237 | ac_header_preproc=yes | |
22238 | else | |
22239 | echo "$as_me: failed program was:" >&5 | |
22240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22241 | ||
22242 | ac_header_preproc=no | |
22243 | fi | |
22244 | rm -f conftest.err conftest.$ac_ext | |
22245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22246 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22247 | ||
22248 | # So? What about this header? | |
ac1cb8d3 VS |
22249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22250 | yes:no: ) | |
a848cd7e SC |
22251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22254 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22255 | ac_header_preproc=yes | |
a848cd7e | 22256 | ;; |
ac1cb8d3 | 22257 | no:yes:* ) |
a848cd7e SC |
22258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22262 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22263 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22264 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22265 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22267 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22268 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22269 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22270 | ( |
22271 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22272 | ## ----------------------------------------- ## |
22273 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22274 | ## ----------------------------------------- ## | |
a848cd7e SC |
22275 | _ASBOX |
22276 | ) | | |
22277 | sed "s/^/$as_me: WARNING: /" >&2 | |
22278 | ;; | |
22279 | esac | |
22280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22284 | else | |
ac1cb8d3 | 22285 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22286 | fi |
22287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22289 | ||
22290 | fi | |
22291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22292 | cat >>confdefs.h <<_ACEOF | |
22293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22294 | _ACEOF | |
22295 | ||
22296 | fi | |
22297 | ||
22298 | done | |
22299 | ||
22300 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22301 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22302 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22303 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22305 | fi | |
22306 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22307 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22308 | else | |
22309 | # Is the header compilable? | |
22310 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
22311 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
22312 | cat >conftest.$ac_ext <<_ACEOF | |
22313 | /* confdefs.h. */ | |
22314 | _ACEOF | |
22315 | cat confdefs.h >>conftest.$ac_ext | |
22316 | cat >>conftest.$ac_ext <<_ACEOF | |
22317 | /* end confdefs.h. */ | |
22318 | $ac_includes_default | |
22319 | #include <windows.h> | |
22320 | _ACEOF | |
22321 | rm -f conftest.$ac_objext | |
22322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22324 | ac_status=$? |
ac1cb8d3 VS |
22325 | grep -v '^ *+' conftest.er1 >conftest.err |
22326 | rm -f conftest.er1 | |
22327 | cat conftest.err >&5 | |
a848cd7e SC |
22328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22329 | (exit $ac_status); } && | |
d1c38808 | 22330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22332 | (eval $ac_try) 2>&5 | |
22333 | ac_status=$? | |
22334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22335 | (exit $ac_status); }; } && | |
22336 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22338 | (eval $ac_try) 2>&5 | |
22339 | ac_status=$? | |
22340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22341 | (exit $ac_status); }; }; then | |
22342 | ac_header_compiler=yes | |
22343 | else | |
22344 | echo "$as_me: failed program was:" >&5 | |
22345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22346 | ||
22347 | ac_header_compiler=no | |
22348 | fi | |
ac1cb8d3 | 22349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22350 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22351 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22352 | ||
22353 | # Is the header present? | |
22354 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
22355 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
22356 | cat >conftest.$ac_ext <<_ACEOF | |
22357 | /* confdefs.h. */ | |
22358 | _ACEOF | |
22359 | cat confdefs.h >>conftest.$ac_ext | |
22360 | cat >>conftest.$ac_ext <<_ACEOF | |
22361 | /* end confdefs.h. */ | |
22362 | #include <windows.h> | |
22363 | _ACEOF | |
22364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22366 | ac_status=$? | |
22367 | grep -v '^ *+' conftest.er1 >conftest.err | |
22368 | rm -f conftest.er1 | |
22369 | cat conftest.err >&5 | |
22370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22371 | (exit $ac_status); } >/dev/null; then | |
22372 | if test -s conftest.err; then | |
22373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 22374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
22375 | else |
22376 | ac_cpp_err= | |
22377 | fi | |
22378 | else | |
22379 | ac_cpp_err=yes | |
22380 | fi | |
22381 | if test -z "$ac_cpp_err"; then | |
22382 | ac_header_preproc=yes | |
22383 | else | |
22384 | echo "$as_me: failed program was:" >&5 | |
22385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22386 | ||
22387 | ac_header_preproc=no | |
22388 | fi | |
22389 | rm -f conftest.err conftest.$ac_ext | |
22390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22391 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22392 | ||
22393 | # So? What about this header? | |
ac1cb8d3 VS |
22394 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22395 | yes:no: ) | |
a848cd7e SC |
22396 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22397 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22398 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
22399 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
22400 | ac_header_preproc=yes | |
a848cd7e | 22401 | ;; |
ac1cb8d3 | 22402 | no:yes:* ) |
a848cd7e SC |
22403 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
22404 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22405 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
22406 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
22407 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
22408 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
22409 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22410 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22411 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
22412 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22413 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
22414 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22415 | ( |
22416 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22417 | ## ----------------------------------------- ## |
22418 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22419 | ## ----------------------------------------- ## | |
a848cd7e SC |
22420 | _ASBOX |
22421 | ) | | |
22422 | sed "s/^/$as_me: WARNING: /" >&2 | |
22423 | ;; | |
22424 | esac | |
22425 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
22426 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
22427 | if test "${ac_cv_header_windows_h+set}" = set; then | |
22428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22429 | else | |
22430 | ac_cv_header_windows_h=$ac_header_preproc | |
22431 | fi | |
22432 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
22433 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
22434 | ||
22435 | fi | |
22436 | if test $ac_cv_header_windows_h = yes; then | |
22437 | : | |
22438 | else | |
22439 | ||
22440 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
22441 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
22442 | { (exit 1); exit 1; }; } | |
22443 | ||
22444 | fi | |
22445 | ||
22446 | ||
22447 | ||
22448 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
22449 | ||
22450 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
22451 | LIBS="$LIBS -loleacc" | |
22452 | fi | |
22453 | ||
22454 | case "${host}" in | |
22455 | *-*-cygwin* ) | |
22456 | LIBS="$LIBS -lkernel32 -luser32" | |
22457 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
22458 | esac | |
22459 | ||
22460 | if test "$wxUSE_ODBC" = "sys" ; then | |
22461 | wxUSE_ODBC = "yes" | |
22462 | fi | |
22463 | if test "$wxUSE_ODBC" = "yes" ; then | |
22464 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
22465 | cat >>confdefs.h <<\_ACEOF | |
22466 | #define wxUSE_ODBC 1 | |
22467 | _ACEOF | |
22468 | ||
22469 | fi | |
22470 | ||
22471 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
22472 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
22473 | ||
22474 | WIN32INSTALL=win32install | |
22475 | fi | |
22476 | ||
22477 | if test "$wxUSE_GUI" = "yes"; then | |
22478 | USE_GUI=1 | |
22479 | ||
22480 | GUI_TK_LIBRARY= | |
22481 | ||
22482 | WXGTK12= | |
22483 | WXGTK127= | |
22484 | WXGTK20= | |
22485 | WXGPE= | |
22486 | ||
207bc66c RN |
22487 | if test "$wxUSE_COCOA" = 1 ; then |
22488 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
22489 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
22490 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
22491 | wxUSE_PRINTING_ARCHITECTURE=no | |
22492 | fi | |
22493 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
22494 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
22495 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
22496 | wxUSE_DRAG_AND_DROP=no | |
22497 | fi | |
22498 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
22499 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
22500 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
22501 | wxUSE_DRAGIMAGE=no | |
22502 | fi | |
22503 | fi | |
22504 | ||
a848cd7e SC |
22505 | if test "$wxUSE_MSW" = 1 ; then |
22506 | TOOLKIT=MSW | |
22507 | GUIDIST=MSW_DIST | |
22508 | ||
ceec2216 | 22509 | case "${host}" in |
a848cd7e SC |
22510 | *-*-mingw32* ) |
22511 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
22512 | esac | |
22513 | fi | |
22514 | ||
22515 | if test "$wxUSE_GTK" = 1; then | |
22516 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
22517 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
22518 | ||
22519 | gtk_version_cached=1 | |
22520 | if test "${wx_cv_lib_gtk+set}" = set; then | |
22521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22522 | else | |
22523 | ||
22524 | gtk_version_cached=0 | |
22525 | echo "$as_me:$LINENO: result: " >&5 | |
22526 | echo "${ECHO_T}" >&6 | |
22527 | ||
22528 | GTK_MODULES= | |
22529 | if test "$wxUSE_THREADS" = "yes"; then | |
22530 | GTK_MODULES=gthread | |
22531 | fi | |
22532 | ||
22533 | wx_cv_lib_gtk= | |
22534 | if test "x$wxUSE_GTK2" = "xyes"; then | |
22535 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22536 | if test "${enable_gtktest+set}" = set; then | |
22537 | enableval="$enable_gtktest" | |
22538 | ||
22539 | else | |
22540 | enable_gtktest=yes | |
22541 | fi; | |
22542 | ||
22543 | pkg_config_args=gtk+-2.0 | |
22544 | for module in . $GTK_MODULES | |
22545 | do | |
22546 | case "$module" in | |
22547 | gthread) | |
22548 | pkg_config_args="$pkg_config_args gthread-2.0" | |
22549 | ;; | |
22550 | esac | |
22551 | done | |
22552 | ||
22553 | no_gtk="" | |
22554 | ||
22555 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22556 | set dummy pkg-config; ac_word=$2 | |
22557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22559 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22561 | else | |
22562 | case $PKG_CONFIG in | |
22563 | [\\/]* | ?:[\\/]*) | |
22564 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
22565 | ;; | |
22566 | *) | |
22567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22568 | for as_dir in $PATH | |
22569 | do | |
22570 | IFS=$as_save_IFS | |
22571 | test -z "$as_dir" && as_dir=. | |
22572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22574 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22576 | break 2 | |
22577 | fi | |
22578 | done | |
22579 | done | |
22580 | ||
22581 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
22582 | ;; | |
22583 | esac | |
22584 | fi | |
22585 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
22586 | ||
22587 | if test -n "$PKG_CONFIG"; then | |
22588 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
22589 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
22590 | else | |
22591 | echo "$as_me:$LINENO: result: no" >&5 | |
22592 | echo "${ECHO_T}no" >&6 | |
22593 | fi | |
22594 | ||
22595 | ||
22596 | if test x$PKG_CONFIG != xno ; then | |
22597 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
22598 | : | |
22599 | else | |
c2218763 | 22600 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
22601 | no_gtk=yes |
22602 | PKG_CONFIG=no | |
22603 | fi | |
22604 | else | |
22605 | no_gtk=yes | |
22606 | fi | |
22607 | ||
22608 | min_gtk_version=2.0.0 | |
22609 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
22610 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
22611 | ||
22612 | if test x$PKG_CONFIG != xno ; then | |
22613 | ## don't try to run the test against uninstalled libtool libs | |
22614 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
22615 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
22616 | enable_gtktest=no | |
22617 | fi | |
22618 | ||
22619 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
22620 | : | |
22621 | else | |
22622 | no_gtk=yes | |
22623 | fi | |
22624 | fi | |
22625 | ||
22626 | if test x"$no_gtk" = x ; then | |
22627 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
22628 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
22629 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22630 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22631 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22632 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22633 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
22634 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22635 | if test "x$enable_gtktest" = "xyes" ; then | |
22636 | ac_save_CFLAGS="$CFLAGS" | |
22637 | ac_save_LIBS="$LIBS" | |
22638 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22639 | LIBS="$GTK_LIBS $LIBS" | |
22640 | rm -f conf.gtktest | |
22641 | if test "$cross_compiling" = yes; then | |
22642 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22643 | else | |
22644 | cat >conftest.$ac_ext <<_ACEOF | |
22645 | /* confdefs.h. */ | |
22646 | _ACEOF | |
22647 | cat confdefs.h >>conftest.$ac_ext | |
22648 | cat >>conftest.$ac_ext <<_ACEOF | |
22649 | /* end confdefs.h. */ | |
22650 | ||
22651 | #include <gtk/gtk.h> | |
22652 | #include <stdio.h> | |
22653 | #include <stdlib.h> | |
22654 | ||
22655 | int | |
22656 | main () | |
22657 | { | |
22658 | int major, minor, micro; | |
22659 | char *tmp_version; | |
22660 | ||
22661 | system ("touch conf.gtktest"); | |
22662 | ||
22663 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22664 | tmp_version = g_strdup("$min_gtk_version"); | |
22665 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22666 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22667 | exit(1); | |
22668 | } | |
22669 | ||
22670 | if ((gtk_major_version != $gtk_config_major_version) || | |
22671 | (gtk_minor_version != $gtk_config_minor_version) || | |
22672 | (gtk_micro_version != $gtk_config_micro_version)) | |
22673 | { | |
22674 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22675 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22676 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22677 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
22678 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22679 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22680 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22681 | printf("*** required on your system.\n"); | |
22682 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
22683 | printf("*** to point to the correct configuration files\n"); | |
22684 | } | |
22685 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22686 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22687 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22688 | { | |
22689 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22690 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22691 | printf("*** library (version %d.%d.%d)\n", | |
22692 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22693 | } | |
22694 | else | |
22695 | { | |
22696 | if ((gtk_major_version > major) || | |
22697 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
22698 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
22699 | { | |
22700 | return 0; | |
22701 | } | |
22702 | else | |
22703 | { | |
22704 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
22705 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22706 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
22707 | major, minor, micro); | |
22708 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
22709 | printf("***\n"); | |
22710 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
22711 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
22712 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
22713 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
22714 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
22715 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
22716 | printf("*** so that the correct libraries are found at run-time))\n"); | |
22717 | } | |
22718 | } | |
22719 | return 1; | |
22720 | } | |
22721 | ||
22722 | _ACEOF | |
22723 | rm -f conftest$ac_exeext | |
22724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22725 | (eval $ac_link) 2>&5 | |
22726 | ac_status=$? | |
22727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22730 | (eval $ac_try) 2>&5 | |
22731 | ac_status=$? | |
22732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22733 | (exit $ac_status); }; }; then | |
22734 | : | |
22735 | else | |
22736 | echo "$as_me: program exited with status $ac_status" >&5 | |
22737 | echo "$as_me: failed program was:" >&5 | |
22738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22739 | ||
22740 | ( exit $ac_status ) | |
22741 | no_gtk=yes | |
22742 | fi | |
ac1cb8d3 | 22743 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22744 | fi |
22745 | CFLAGS="$ac_save_CFLAGS" | |
22746 | LIBS="$ac_save_LIBS" | |
22747 | fi | |
22748 | fi | |
22749 | if test "x$no_gtk" = x ; then | |
22750 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
22751 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
22752 | wx_cv_lib_gtk=2.0 | |
22753 | else | |
22754 | echo "$as_me:$LINENO: result: no" >&5 | |
22755 | echo "${ECHO_T}no" >&6 | |
22756 | if test "$PKG_CONFIG" = "no" ; then | |
22757 | echo "*** A new enough version of pkg-config was not found." | |
22758 | echo "*** See http://pkgconfig.sourceforge.net" | |
22759 | else | |
22760 | if test -f conf.gtktest ; then | |
22761 | : | |
22762 | else | |
22763 | echo "*** Could not run GTK+ test program, checking why..." | |
22764 | ac_save_CFLAGS="$CFLAGS" | |
22765 | ac_save_LIBS="$LIBS" | |
22766 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22767 | LIBS="$LIBS $GTK_LIBS" | |
22768 | cat >conftest.$ac_ext <<_ACEOF | |
22769 | /* confdefs.h. */ | |
22770 | _ACEOF | |
22771 | cat confdefs.h >>conftest.$ac_ext | |
22772 | cat >>conftest.$ac_ext <<_ACEOF | |
22773 | /* end confdefs.h. */ | |
22774 | ||
22775 | #include <gtk/gtk.h> | |
22776 | #include <stdio.h> | |
22777 | ||
22778 | int | |
22779 | main () | |
22780 | { | |
22781 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
22782 | ; | |
22783 | return 0; | |
22784 | } | |
22785 | _ACEOF | |
22786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 22788 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 22789 | ac_status=$? |
ac1cb8d3 VS |
22790 | grep -v '^ *+' conftest.er1 >conftest.err |
22791 | rm -f conftest.er1 | |
22792 | cat conftest.err >&5 | |
a848cd7e SC |
22793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22794 | (exit $ac_status); } && | |
d1c38808 | 22795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22797 | (eval $ac_try) 2>&5 | |
22798 | ac_status=$? | |
22799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22800 | (exit $ac_status); }; } && | |
22801 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
22802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22803 | (eval $ac_try) 2>&5 | |
22804 | ac_status=$? | |
22805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22806 | (exit $ac_status); }; }; then | |
22807 | echo "*** The test program compiled, but did not run. This usually means" | |
22808 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
22809 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
22810 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
22811 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
22812 | echo "*** is required on your system" | |
22813 | echo "***" | |
22814 | echo "*** If you have an old version installed, it is best to remove it, although" | |
22815 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
22816 | else | |
22817 | echo "$as_me: failed program was:" >&5 | |
22818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22819 | ||
22820 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
22821 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
22822 | fi | |
ac1cb8d3 VS |
22823 | rm -f conftest.err conftest.$ac_objext \ |
22824 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22825 | CFLAGS="$ac_save_CFLAGS" |
22826 | LIBS="$ac_save_LIBS" | |
22827 | fi | |
22828 | fi | |
22829 | GTK_CFLAGS="" | |
22830 | GTK_LIBS="" | |
22831 | : | |
22832 | fi | |
22833 | ||
22834 | ||
22835 | rm -f conf.gtktest | |
22836 | ||
22837 | else | |
22838 | ||
22839 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
22840 | if test "${with_gtk_prefix+set}" = set; then | |
22841 | withval="$with_gtk_prefix" | |
22842 | gtk_config_prefix="$withval" | |
22843 | else | |
22844 | gtk_config_prefix="" | |
22845 | fi; | |
22846 | ||
22847 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
22848 | if test "${with_gtk_exec_prefix+set}" = set; then | |
22849 | withval="$with_gtk_exec_prefix" | |
22850 | gtk_config_exec_prefix="$withval" | |
22851 | else | |
22852 | gtk_config_exec_prefix="" | |
22853 | fi; | |
22854 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
22855 | if test "${enable_gtktest+set}" = set; then | |
22856 | enableval="$enable_gtktest" | |
22857 | ||
22858 | else | |
22859 | enable_gtktest=yes | |
22860 | fi; | |
22861 | ||
22862 | for module in . $GTK_MODULES | |
22863 | do | |
22864 | case "$module" in | |
22865 | gthread) | |
22866 | gtk_config_args="$gtk_config_args gthread" | |
22867 | ;; | |
22868 | esac | |
22869 | done | |
22870 | ||
22871 | if test x$gtk_config_exec_prefix != x ; then | |
22872 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
22873 | if test x${GTK_CONFIG+set} != xset ; then | |
22874 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
22875 | fi | |
22876 | fi | |
22877 | if test x$gtk_config_prefix != x ; then | |
22878 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
22879 | if test x${GTK_CONFIG+set} != xset ; then | |
22880 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
22881 | fi | |
22882 | fi | |
22883 | ||
22884 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
22885 | set dummy gtk-config; ac_word=$2 | |
22886 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22888 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
22889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22890 | else | |
22891 | case $GTK_CONFIG in | |
22892 | [\\/]* | ?:[\\/]*) | |
22893 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
22894 | ;; | |
22895 | *) | |
22896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22897 | for as_dir in $PATH | |
22898 | do | |
22899 | IFS=$as_save_IFS | |
22900 | test -z "$as_dir" && as_dir=. | |
22901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22902 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22903 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22905 | break 2 | |
22906 | fi | |
22907 | done | |
22908 | done | |
22909 | ||
22910 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
22911 | ;; | |
22912 | esac | |
22913 | fi | |
22914 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
22915 | ||
22916 | if test -n "$GTK_CONFIG"; then | |
22917 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
22918 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
22919 | else | |
22920 | echo "$as_me:$LINENO: result: no" >&5 | |
22921 | echo "${ECHO_T}no" >&6 | |
22922 | fi | |
22923 | ||
22924 | min_gtk_version=1.2.7 | |
22925 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
22926 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
22927 | no_gtk="" | |
22928 | if test "$GTK_CONFIG" = "no" ; then | |
22929 | no_gtk=yes | |
22930 | else | |
22931 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
22932 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
22933 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22934 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
22935 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22936 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
22937 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
22938 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
22939 | if test "x$enable_gtktest" = "xyes" ; then | |
22940 | ac_save_CFLAGS="$CFLAGS" | |
22941 | ac_save_LIBS="$LIBS" | |
22942 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
22943 | LIBS="$GTK_LIBS $LIBS" | |
22944 | rm -f conf.gtktest | |
22945 | if test "$cross_compiling" = yes; then | |
22946 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
22947 | else | |
22948 | cat >conftest.$ac_ext <<_ACEOF | |
22949 | /* confdefs.h. */ | |
22950 | _ACEOF | |
22951 | cat confdefs.h >>conftest.$ac_ext | |
22952 | cat >>conftest.$ac_ext <<_ACEOF | |
22953 | /* end confdefs.h. */ | |
22954 | ||
22955 | #include <gtk/gtk.h> | |
22956 | #include <stdio.h> | |
22957 | #include <stdlib.h> | |
22958 | ||
22959 | int | |
22960 | main () | |
22961 | { | |
22962 | int major, minor, micro; | |
22963 | char *tmp_version; | |
22964 | ||
22965 | system ("touch conf.gtktest"); | |
22966 | ||
22967 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
22968 | tmp_version = g_strdup("$min_gtk_version"); | |
22969 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
22970 | printf("%s, bad version string\n", "$min_gtk_version"); | |
22971 | exit(1); | |
22972 | } | |
22973 | ||
22974 | if ((gtk_major_version != $gtk_config_major_version) || | |
22975 | (gtk_minor_version != $gtk_config_minor_version) || | |
22976 | (gtk_micro_version != $gtk_config_micro_version)) | |
22977 | { | |
22978 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
22979 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
22980 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22981 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
22982 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
22983 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
22984 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
22985 | printf("*** required on your system.\n"); | |
22986 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
22987 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
22988 | printf("*** before re-running configure\n"); | |
22989 | } | |
22990 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
22991 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
22992 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
22993 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
22994 | { | |
22995 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
22996 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
22997 | printf("*** library (version %d.%d.%d)\n", | |
22998 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
22999 | } | |
23000 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23001 | else | |
23002 | { | |
23003 | if ((gtk_major_version > major) || | |
23004 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23005 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23006 | { | |
23007 | return 0; | |
23008 | } | |
23009 | else | |
23010 | { | |
23011 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23012 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23013 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23014 | major, minor, micro); | |
23015 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23016 | printf("***\n"); | |
23017 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23018 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23019 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23020 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23021 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23022 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23023 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23024 | } | |
23025 | } | |
23026 | return 1; | |
23027 | } | |
23028 | ||
23029 | _ACEOF | |
23030 | rm -f conftest$ac_exeext | |
23031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23032 | (eval $ac_link) 2>&5 | |
23033 | ac_status=$? | |
23034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23035 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23037 | (eval $ac_try) 2>&5 | |
23038 | ac_status=$? | |
23039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23040 | (exit $ac_status); }; }; then | |
23041 | : | |
23042 | else | |
23043 | echo "$as_me: program exited with status $ac_status" >&5 | |
23044 | echo "$as_me: failed program was:" >&5 | |
23045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23046 | ||
23047 | ( exit $ac_status ) | |
23048 | no_gtk=yes | |
23049 | fi | |
ac1cb8d3 | 23050 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23051 | fi |
23052 | CFLAGS="$ac_save_CFLAGS" | |
23053 | LIBS="$ac_save_LIBS" | |
23054 | fi | |
23055 | fi | |
23056 | if test "x$no_gtk" = x ; then | |
23057 | echo "$as_me:$LINENO: result: yes" >&5 | |
23058 | echo "${ECHO_T}yes" >&6 | |
23059 | wx_cv_lib_gtk=1.2.7 | |
23060 | else | |
23061 | echo "$as_me:$LINENO: result: no" >&5 | |
23062 | echo "${ECHO_T}no" >&6 | |
23063 | if test "$GTK_CONFIG" = "no" ; then | |
23064 | echo "*** The gtk-config script installed by GTK could not be found" | |
23065 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23066 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23067 | echo "*** full path to gtk-config." | |
23068 | else | |
23069 | if test -f conf.gtktest ; then | |
23070 | : | |
23071 | else | |
23072 | echo "*** Could not run GTK test program, checking why..." | |
23073 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23074 | LIBS="$LIBS $GTK_LIBS" | |
23075 | cat >conftest.$ac_ext <<_ACEOF | |
23076 | /* confdefs.h. */ | |
23077 | _ACEOF | |
23078 | cat confdefs.h >>conftest.$ac_ext | |
23079 | cat >>conftest.$ac_ext <<_ACEOF | |
23080 | /* end confdefs.h. */ | |
23081 | ||
23082 | #include <gtk/gtk.h> | |
23083 | #include <stdio.h> | |
23084 | ||
23085 | int | |
23086 | main () | |
23087 | { | |
23088 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23089 | ; | |
23090 | return 0; | |
23091 | } | |
23092 | _ACEOF | |
23093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23096 | ac_status=$? |
ac1cb8d3 VS |
23097 | grep -v '^ *+' conftest.er1 >conftest.err |
23098 | rm -f conftest.er1 | |
23099 | cat conftest.err >&5 | |
a848cd7e SC |
23100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23101 | (exit $ac_status); } && | |
d1c38808 | 23102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23104 | (eval $ac_try) 2>&5 | |
23105 | ac_status=$? | |
23106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23107 | (exit $ac_status); }; } && | |
23108 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23110 | (eval $ac_try) 2>&5 | |
23111 | ac_status=$? | |
23112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23113 | (exit $ac_status); }; }; then | |
23114 | echo "*** The test program compiled, but did not run. This usually means" | |
23115 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23116 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23117 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23118 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23119 | echo "*** is required on your system" | |
23120 | echo "***" | |
23121 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23122 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23123 | echo "***" | |
23124 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23125 | echo "*** came with the system with the command" | |
23126 | echo "***" | |
23127 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23128 | else | |
23129 | echo "$as_me: failed program was:" >&5 | |
23130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23131 | ||
23132 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23133 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23134 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23135 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23136 | fi | |
ac1cb8d3 VS |
23137 | rm -f conftest.err conftest.$ac_objext \ |
23138 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23139 | CFLAGS="$ac_save_CFLAGS" |
23140 | LIBS="$ac_save_LIBS" | |
23141 | fi | |
23142 | fi | |
23143 | GTK_CFLAGS="" | |
23144 | GTK_LIBS="" | |
23145 | : | |
23146 | fi | |
23147 | ||
23148 | ||
23149 | rm -f conf.gtktest | |
23150 | ||
23151 | ||
23152 | if test -z "$wx_cv_lib_gtk"; then | |
23153 | ||
23154 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
23155 | if test "${with_gtk_prefix+set}" = set; then | |
23156 | withval="$with_gtk_prefix" | |
23157 | gtk_config_prefix="$withval" | |
23158 | else | |
23159 | gtk_config_prefix="" | |
23160 | fi; | |
23161 | ||
23162 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
23163 | if test "${with_gtk_exec_prefix+set}" = set; then | |
23164 | withval="$with_gtk_exec_prefix" | |
23165 | gtk_config_exec_prefix="$withval" | |
23166 | else | |
23167 | gtk_config_exec_prefix="" | |
23168 | fi; | |
23169 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
23170 | if test "${enable_gtktest+set}" = set; then | |
23171 | enableval="$enable_gtktest" | |
23172 | ||
23173 | else | |
23174 | enable_gtktest=yes | |
23175 | fi; | |
23176 | ||
23177 | for module in . $GTK_MODULES | |
23178 | do | |
23179 | case "$module" in | |
23180 | gthread) | |
23181 | gtk_config_args="$gtk_config_args gthread" | |
23182 | ;; | |
23183 | esac | |
23184 | done | |
23185 | ||
23186 | if test x$gtk_config_exec_prefix != x ; then | |
23187 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23188 | if test x${GTK_CONFIG+set} != xset ; then | |
23189 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23190 | fi | |
23191 | fi | |
23192 | if test x$gtk_config_prefix != x ; then | |
23193 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23194 | if test x${GTK_CONFIG+set} != xset ; then | |
23195 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23196 | fi | |
23197 | fi | |
23198 | ||
23199 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23200 | set dummy gtk-config; ac_word=$2 | |
23201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23203 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
23204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23205 | else | |
23206 | case $GTK_CONFIG in | |
23207 | [\\/]* | ?:[\\/]*) | |
23208 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23209 | ;; | |
23210 | *) | |
23211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23212 | for as_dir in $PATH | |
23213 | do | |
23214 | IFS=$as_save_IFS | |
23215 | test -z "$as_dir" && as_dir=. | |
23216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23217 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23218 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23220 | break 2 | |
23221 | fi | |
23222 | done | |
23223 | done | |
23224 | ||
23225 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23226 | ;; | |
23227 | esac | |
23228 | fi | |
23229 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
23230 | ||
23231 | if test -n "$GTK_CONFIG"; then | |
23232 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
23233 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
23234 | else | |
23235 | echo "$as_me:$LINENO: result: no" >&5 | |
23236 | echo "${ECHO_T}no" >&6 | |
23237 | fi | |
23238 | ||
23239 | min_gtk_version=1.2.3 | |
23240 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
23241 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
23242 | no_gtk="" | |
23243 | if test "$GTK_CONFIG" = "no" ; then | |
23244 | no_gtk=yes | |
23245 | else | |
23246 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23247 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23248 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23249 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23250 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23251 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23252 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23254 | if test "x$enable_gtktest" = "xyes" ; then | |
23255 | ac_save_CFLAGS="$CFLAGS" | |
23256 | ac_save_LIBS="$LIBS" | |
23257 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23258 | LIBS="$GTK_LIBS $LIBS" | |
23259 | rm -f conf.gtktest | |
23260 | if test "$cross_compiling" = yes; then | |
23261 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23262 | else | |
23263 | cat >conftest.$ac_ext <<_ACEOF | |
23264 | /* confdefs.h. */ | |
23265 | _ACEOF | |
23266 | cat confdefs.h >>conftest.$ac_ext | |
23267 | cat >>conftest.$ac_ext <<_ACEOF | |
23268 | /* end confdefs.h. */ | |
23269 | ||
23270 | #include <gtk/gtk.h> | |
23271 | #include <stdio.h> | |
23272 | #include <stdlib.h> | |
23273 | ||
23274 | int | |
23275 | main () | |
23276 | { | |
23277 | int major, minor, micro; | |
23278 | char *tmp_version; | |
23279 | ||
23280 | system ("touch conf.gtktest"); | |
23281 | ||
23282 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23283 | tmp_version = g_strdup("$min_gtk_version"); | |
23284 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23285 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23286 | exit(1); | |
23287 | } | |
23288 | ||
23289 | if ((gtk_major_version != $gtk_config_major_version) || | |
23290 | (gtk_minor_version != $gtk_config_minor_version) || | |
23291 | (gtk_micro_version != $gtk_config_micro_version)) | |
23292 | { | |
23293 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23294 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23295 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23296 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23297 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23298 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23299 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23300 | printf("*** required on your system.\n"); | |
23301 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23302 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23303 | printf("*** before re-running configure\n"); | |
23304 | } | |
23305 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23306 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23307 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23308 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23309 | { | |
23310 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23311 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23312 | printf("*** library (version %d.%d.%d)\n", | |
23313 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23314 | } | |
23315 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23316 | else | |
23317 | { | |
23318 | if ((gtk_major_version > major) || | |
23319 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23320 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23321 | { | |
23322 | return 0; | |
23323 | } | |
23324 | else | |
23325 | { | |
23326 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23327 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23328 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23329 | major, minor, micro); | |
23330 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23331 | printf("***\n"); | |
23332 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23333 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23334 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23335 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23336 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
23337 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23338 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23339 | } | |
23340 | } | |
23341 | return 1; | |
23342 | } | |
23343 | ||
23344 | _ACEOF | |
23345 | rm -f conftest$ac_exeext | |
23346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23347 | (eval $ac_link) 2>&5 | |
23348 | ac_status=$? | |
23349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23352 | (eval $ac_try) 2>&5 | |
23353 | ac_status=$? | |
23354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23355 | (exit $ac_status); }; }; then | |
23356 | : | |
23357 | else | |
23358 | echo "$as_me: program exited with status $ac_status" >&5 | |
23359 | echo "$as_me: failed program was:" >&5 | |
23360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23361 | ||
23362 | ( exit $ac_status ) | |
23363 | no_gtk=yes | |
23364 | fi | |
ac1cb8d3 | 23365 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23366 | fi |
23367 | CFLAGS="$ac_save_CFLAGS" | |
23368 | LIBS="$ac_save_LIBS" | |
23369 | fi | |
23370 | fi | |
23371 | if test "x$no_gtk" = x ; then | |
23372 | echo "$as_me:$LINENO: result: yes" >&5 | |
23373 | echo "${ECHO_T}yes" >&6 | |
23374 | wx_cv_lib_gtk=1.2.3 | |
23375 | else | |
23376 | echo "$as_me:$LINENO: result: no" >&5 | |
23377 | echo "${ECHO_T}no" >&6 | |
23378 | if test "$GTK_CONFIG" = "no" ; then | |
23379 | echo "*** The gtk-config script installed by GTK could not be found" | |
23380 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23381 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23382 | echo "*** full path to gtk-config." | |
23383 | else | |
23384 | if test -f conf.gtktest ; then | |
23385 | : | |
23386 | else | |
23387 | echo "*** Could not run GTK test program, checking why..." | |
23388 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23389 | LIBS="$LIBS $GTK_LIBS" | |
23390 | cat >conftest.$ac_ext <<_ACEOF | |
23391 | /* confdefs.h. */ | |
23392 | _ACEOF | |
23393 | cat confdefs.h >>conftest.$ac_ext | |
23394 | cat >>conftest.$ac_ext <<_ACEOF | |
23395 | /* end confdefs.h. */ | |
23396 | ||
23397 | #include <gtk/gtk.h> | |
23398 | #include <stdio.h> | |
23399 | ||
23400 | int | |
23401 | main () | |
23402 | { | |
23403 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23404 | ; | |
23405 | return 0; | |
23406 | } | |
23407 | _ACEOF | |
23408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23411 | ac_status=$? |
ac1cb8d3 VS |
23412 | grep -v '^ *+' conftest.er1 >conftest.err |
23413 | rm -f conftest.er1 | |
23414 | cat conftest.err >&5 | |
a848cd7e SC |
23415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23416 | (exit $ac_status); } && | |
d1c38808 | 23417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23419 | (eval $ac_try) 2>&5 | |
23420 | ac_status=$? | |
23421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23422 | (exit $ac_status); }; } && | |
23423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23425 | (eval $ac_try) 2>&5 | |
23426 | ac_status=$? | |
23427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23428 | (exit $ac_status); }; }; then | |
23429 | echo "*** The test program compiled, but did not run. This usually means" | |
23430 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23431 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23432 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23433 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23434 | echo "*** is required on your system" | |
23435 | echo "***" | |
23436 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23437 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23438 | echo "***" | |
23439 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23440 | echo "*** came with the system with the command" | |
23441 | echo "***" | |
23442 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23443 | else | |
23444 | echo "$as_me: failed program was:" >&5 | |
23445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23446 | ||
23447 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23448 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
23449 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
23450 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23451 | fi | |
ac1cb8d3 VS |
23452 | rm -f conftest.err conftest.$ac_objext \ |
23453 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23454 | CFLAGS="$ac_save_CFLAGS" |
23455 | LIBS="$ac_save_LIBS" | |
23456 | fi | |
23457 | fi | |
23458 | GTK_CFLAGS="" | |
23459 | GTK_LIBS="" | |
23460 | : | |
23461 | fi | |
23462 | ||
23463 | ||
23464 | rm -f conf.gtktest | |
23465 | ||
23466 | fi | |
23467 | fi | |
23468 | ||
23469 | if test -z "$wx_cv_lib_gtk"; then | |
23470 | wx_cv_lib_gtk=none | |
23471 | else | |
23472 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
23473 | wx_cv_libs_gtk=$GTK_LIBS | |
23474 | fi | |
23475 | ||
23476 | ||
23477 | fi | |
23478 | ||
23479 | ||
23480 | if test "$gtk_version_cached" = 1; then | |
23481 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
23482 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
23483 | fi | |
23484 | ||
23485 | case "$wx_cv_lib_gtk" in | |
23486 | 2.0) WXGTK20=1 | |
23487 | TOOLKIT_VERSION=2 | |
23488 | ;; | |
23489 | 1.2.7) WXGTK127=1 | |
23490 | WXGTK12=1 | |
23491 | ;; | |
23492 | 1.2.3) WXGTK12=1 | |
23493 | ;; | |
23494 | *) { { echo "$as_me:$LINENO: error: | |
23495 | Please check that gtk-config is in path, the directory | |
23496 | where GTK+ libraries are installed (returned by | |
23497 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23498 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23499 | " >&5 | |
23500 | echo "$as_me: error: | |
23501 | Please check that gtk-config is in path, the directory | |
23502 | where GTK+ libraries are installed (returned by | |
23503 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
23504 | equivalent variable and GTK+ is version 1.2.3 or above. | |
23505 | " >&2;} | |
23506 | { (exit 1); exit 1; }; } | |
23507 | ;; | |
23508 | esac | |
23509 | ||
23510 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
23511 | save_CFLAGS="$CFLAGS" |
23512 | save_LIBS="$LIBS" | |
23513 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23514 | LIBS="$LIBS $GTK_LIBS" | |
23515 | ||
23516 | for ac_func in pango_font_family_is_monospace | |
23517 | do | |
23518 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23519 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23520 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23521 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23523 | else | |
23524 | cat >conftest.$ac_ext <<_ACEOF | |
23525 | /* confdefs.h. */ | |
23526 | _ACEOF | |
23527 | cat confdefs.h >>conftest.$ac_ext | |
23528 | cat >>conftest.$ac_ext <<_ACEOF | |
23529 | /* end confdefs.h. */ | |
23530 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
23531 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23532 | #define $ac_func innocuous_$ac_func | |
23533 | ||
23534 | /* System header to define __stub macros and hopefully few prototypes, | |
23535 | which can conflict with char $ac_func (); below. | |
23536 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23537 | <limits.h> exists even on freestanding compilers. */ | |
23538 | ||
23539 | #ifdef __STDC__ | |
23540 | # include <limits.h> | |
23541 | #else | |
23542 | # include <assert.h> | |
23543 | #endif | |
23544 | ||
23545 | #undef $ac_func | |
23546 | ||
23547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23548 | #ifdef __cplusplus | |
23549 | extern "C" | |
23550 | { | |
23551 | #endif | |
23552 | /* We use char because int might match the return type of a gcc2 | |
23553 | builtin and then its argument prototype would still apply. */ | |
23554 | char $ac_func (); | |
23555 | /* The GNU C library defines this for functions which it implements | |
23556 | to always fail with ENOSYS. Some functions are actually named | |
23557 | something starting with __ and the normal name is an alias. */ | |
23558 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23559 | choke me | |
23560 | #else | |
23561 | char (*f) () = $ac_func; | |
23562 | #endif | |
23563 | #ifdef __cplusplus | |
23564 | } | |
23565 | #endif | |
23566 | ||
23567 | int | |
23568 | main () | |
23569 | { | |
23570 | return f != $ac_func; | |
23571 | ; | |
23572 | return 0; | |
23573 | } | |
23574 | _ACEOF | |
23575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23577 | (eval $ac_link) 2>conftest.er1 | |
23578 | ac_status=$? | |
23579 | grep -v '^ *+' conftest.er1 >conftest.err | |
23580 | rm -f conftest.er1 | |
23581 | cat conftest.err >&5 | |
23582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23583 | (exit $ac_status); } && | |
d1c38808 | 23584 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
23585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23586 | (eval $ac_try) 2>&5 | |
23587 | ac_status=$? | |
23588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23589 | (exit $ac_status); }; } && | |
23590 | { ac_try='test -s conftest$ac_exeext' | |
23591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23592 | (eval $ac_try) 2>&5 | |
23593 | ac_status=$? | |
23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23595 | (exit $ac_status); }; }; then | |
23596 | eval "$as_ac_var=yes" | |
23597 | else | |
23598 | echo "$as_me: failed program was:" >&5 | |
23599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23600 | ||
23601 | eval "$as_ac_var=no" | |
23602 | fi | |
23603 | rm -f conftest.err conftest.$ac_objext \ | |
23604 | conftest$ac_exeext conftest.$ac_ext | |
23605 | fi | |
23606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23607 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23608 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23609 | cat >>confdefs.h <<_ACEOF | |
23610 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23611 | _ACEOF | |
23612 | ||
23613 | fi | |
23614 | done | |
23615 | ||
23616 | CFLAGS="$save_CFLAGS" | |
23617 | LIBS="$save_LIBS" | |
a848cd7e SC |
23618 | else |
23619 | if test "$wxUSE_UNICODE" = "yes"; then | |
23620 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
23621 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
23622 | wxUSE_UNICODE=no | |
23623 | fi | |
23624 | fi | |
23625 | ||
23626 | if test "$USE_DARWIN" != 1; then | |
23627 | ||
23628 | for ac_func in poll | |
23629 | do | |
23630 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23631 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23632 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23633 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23635 | else | |
23636 | cat >conftest.$ac_ext <<_ACEOF | |
23637 | /* confdefs.h. */ | |
23638 | _ACEOF | |
23639 | cat confdefs.h >>conftest.$ac_ext | |
23640 | cat >>conftest.$ac_ext <<_ACEOF | |
23641 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23642 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23643 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23644 | #define $ac_func innocuous_$ac_func | |
23645 | ||
a848cd7e SC |
23646 | /* System header to define __stub macros and hopefully few prototypes, |
23647 | which can conflict with char $ac_func (); below. | |
23648 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23649 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23650 | |
a848cd7e SC |
23651 | #ifdef __STDC__ |
23652 | # include <limits.h> | |
23653 | #else | |
23654 | # include <assert.h> | |
23655 | #endif | |
ac1cb8d3 VS |
23656 | |
23657 | #undef $ac_func | |
23658 | ||
a848cd7e SC |
23659 | /* Override any gcc2 internal prototype to avoid an error. */ |
23660 | #ifdef __cplusplus | |
23661 | extern "C" | |
23662 | { | |
23663 | #endif | |
23664 | /* We use char because int might match the return type of a gcc2 | |
23665 | builtin and then its argument prototype would still apply. */ | |
23666 | char $ac_func (); | |
23667 | /* The GNU C library defines this for functions which it implements | |
23668 | to always fail with ENOSYS. Some functions are actually named | |
23669 | something starting with __ and the normal name is an alias. */ | |
23670 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23671 | choke me | |
23672 | #else | |
23673 | char (*f) () = $ac_func; | |
23674 | #endif | |
23675 | #ifdef __cplusplus | |
23676 | } | |
23677 | #endif | |
23678 | ||
23679 | int | |
23680 | main () | |
23681 | { | |
23682 | return f != $ac_func; | |
23683 | ; | |
23684 | return 0; | |
23685 | } | |
23686 | _ACEOF | |
23687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23689 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23690 | ac_status=$? |
ac1cb8d3 VS |
23691 | grep -v '^ *+' conftest.er1 >conftest.err |
23692 | rm -f conftest.er1 | |
23693 | cat conftest.err >&5 | |
a848cd7e SC |
23694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23695 | (exit $ac_status); } && | |
d1c38808 | 23696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23698 | (eval $ac_try) 2>&5 | |
23699 | ac_status=$? | |
23700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23701 | (exit $ac_status); }; } && | |
23702 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23704 | (eval $ac_try) 2>&5 | |
23705 | ac_status=$? | |
23706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23707 | (exit $ac_status); }; }; then | |
23708 | eval "$as_ac_var=yes" | |
23709 | else | |
23710 | echo "$as_me: failed program was:" >&5 | |
23711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23712 | ||
23713 | eval "$as_ac_var=no" | |
23714 | fi | |
ac1cb8d3 VS |
23715 | rm -f conftest.err conftest.$ac_objext \ |
23716 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23717 | fi |
23718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23719 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23720 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23721 | cat >>confdefs.h <<_ACEOF | |
23722 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23723 | _ACEOF | |
23724 | ||
23725 | fi | |
23726 | done | |
23727 | ||
23728 | fi | |
23729 | ||
23730 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
23731 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
23732 | ||
23733 | AFMINSTALL=afminstall | |
23734 | TOOLKIT=GTK | |
23735 | GUIDIST=GTK_DIST | |
23736 | ||
23737 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
23738 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
23739 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
23740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23741 | else | |
23742 | ac_check_lib_save_LIBS=$LIBS | |
23743 | LIBS="-lgdk $LIBS" | |
23744 | cat >conftest.$ac_ext <<_ACEOF | |
23745 | /* confdefs.h. */ | |
23746 | _ACEOF | |
23747 | cat confdefs.h >>conftest.$ac_ext | |
23748 | cat >>conftest.$ac_ext <<_ACEOF | |
23749 | /* end confdefs.h. */ | |
23750 | ||
23751 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23752 | #ifdef __cplusplus | |
23753 | extern "C" | |
23754 | #endif | |
23755 | /* We use char because int might match the return type of a gcc2 | |
23756 | builtin and then its argument prototype would still apply. */ | |
23757 | char gdk_im_open (); | |
23758 | int | |
23759 | main () | |
23760 | { | |
23761 | gdk_im_open (); | |
23762 | ; | |
23763 | return 0; | |
23764 | } | |
23765 | _ACEOF | |
23766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23768 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23769 | ac_status=$? |
ac1cb8d3 VS |
23770 | grep -v '^ *+' conftest.er1 >conftest.err |
23771 | rm -f conftest.er1 | |
23772 | cat conftest.err >&5 | |
a848cd7e SC |
23773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23774 | (exit $ac_status); } && | |
d1c38808 | 23775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23777 | (eval $ac_try) 2>&5 | |
23778 | ac_status=$? | |
23779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23780 | (exit $ac_status); }; } && | |
23781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23783 | (eval $ac_try) 2>&5 | |
23784 | ac_status=$? | |
23785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23786 | (exit $ac_status); }; }; then | |
23787 | ac_cv_lib_gdk_gdk_im_open=yes | |
23788 | else | |
23789 | echo "$as_me: failed program was:" >&5 | |
23790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23791 | ||
23792 | ac_cv_lib_gdk_gdk_im_open=no | |
23793 | fi | |
ac1cb8d3 VS |
23794 | rm -f conftest.err conftest.$ac_objext \ |
23795 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23796 | LIBS=$ac_check_lib_save_LIBS |
23797 | fi | |
23798 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
23799 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
23800 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
23801 | cat >>confdefs.h <<\_ACEOF | |
23802 | #define HAVE_XIM 1 | |
23803 | _ACEOF | |
23804 | ||
23805 | fi | |
23806 | ||
23807 | ||
23808 | ||
23809 | if test "$wxUSE_GPE" = "yes"; then | |
23810 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
23811 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
23812 | ||
23813 | ac_find_libraries= | |
23814 | for ac_dir in $SEARCH_LIB /usr/lib; | |
23815 | do | |
23816 | for ac_extension in a so sl dylib; do | |
23817 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
23818 | ac_find_libraries=$ac_dir | |
23819 | break 2 | |
23820 | fi | |
23821 | done | |
23822 | done | |
23823 | ||
23824 | if test "$ac_find_libraries" != "" ; then | |
23825 | ||
23826 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
23827 | result=$? | |
23828 | if test $result = 0; then | |
23829 | ac_path_to_link="" | |
23830 | else | |
23831 | ac_path_to_link=" -L$ac_find_libraries" | |
23832 | fi | |
23833 | ||
23834 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
23835 | WXGPE=1 | |
23836 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
23837 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23838 | else | |
23839 | echo "$as_me:$LINENO: result: not found" >&5 | |
23840 | echo "${ECHO_T}not found" >&6 | |
23841 | fi | |
23842 | ||
23843 | fi | |
23844 | fi | |
23845 | ||
23846 | if test "$wxUSE_MGL" = 1; then | |
23847 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
23848 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
23849 | if test "x$MGL_ROOT" = x ; then | |
23850 | echo "$as_me:$LINENO: result: not found" >&5 | |
23851 | echo "${ECHO_T}not found" >&6 | |
23852 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
23853 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
23854 | { (exit 1); exit 1; }; } | |
23855 | else | |
23856 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
23857 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
23858 | fi | |
23859 | ||
23860 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
23861 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
23862 | case "${host}" in | |
23863 | *-*-linux* ) | |
23864 | if test "x$wxUSE_SHARED" = xyes ; then | |
23865 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
23866 | else | |
23867 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
23868 | fi | |
23869 | ;; | |
23870 | *-pc-msdosdjgpp ) | |
23871 | mgl_os_candidates="dos32/dj2" | |
23872 | ;; | |
23873 | *) | |
23874 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
23875 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
23876 | { (exit 1); exit 1; }; } | |
23877 | esac | |
23878 | ||
23879 | mgl_lib_type="" | |
23880 | mgl_os="" | |
23881 | ||
23882 | for mgl_os_i in $mgl_os_candidates ; do | |
23883 | if test "x$mgl_os" = x ; then | |
23884 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
23885 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
23886 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
23887 | mgl_lib_type=debug | |
23888 | mgl_os=$mgl_os_i | |
23889 | fi | |
23890 | fi | |
23891 | if test "x$mgl_lib_type" = x ; then | |
23892 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
23893 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
23894 | mgl_lib_type=release | |
23895 | mgl_os=$mgl_os_i | |
23896 | fi | |
23897 | fi | |
23898 | fi | |
23899 | done | |
23900 | ||
23901 | if test "x$mgl_os" = x ; then | |
23902 | echo "$as_me:$LINENO: result: not found" >&5 | |
23903 | echo "${ECHO_T}not found" >&6 | |
23904 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
23905 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
23906 | { (exit 1); exit 1; }; } | |
23907 | fi | |
23908 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
23909 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
23910 | ||
23911 | wxUSE_UNIVERSAL="yes" | |
23912 | ||
23913 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
23914 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
23915 | ||
23916 | AFMINSTALL=afminstall | |
23917 | TOOLKIT=MGL | |
23918 | GUIDIST=MGL_DIST | |
23919 | fi | |
23920 | ||
23921 | if test "$wxUSE_MICROWIN" = 1; then | |
23922 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
23923 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
23924 | if test "x$MICROWINDOWS" = 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 MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
23928 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
23929 | { (exit 1); exit 1; }; } | |
23930 | else | |
23931 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
23932 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
23933 | fi | |
23934 | ||
23935 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
23936 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
23937 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
23938 | else | |
23939 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
23940 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
23941 | { (exit 1); exit 1; }; } | |
23942 | fi | |
23943 | ||
23944 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
23945 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
23946 | ||
23947 | wxUSE_UNIVERSAL="yes" | |
23948 | ||
23949 | AFMINSTALL=afminstall | |
23950 | TOOLKIT=MICROWIN | |
23951 | GUIDIST=MICROWIN_DIST | |
23952 | ||
23953 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
23954 | fi | |
23955 | ||
74b84332 | 23956 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
d1c38808 VZ |
23957 | |
23958 | if test "x$ac_path_x_has_been_run" != xyes; then | |
23959 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
23960 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
23961 | ||
d1c38808 | 23962 | ac_path_x_has_been_run=yes |
a848cd7e SC |
23963 | |
23964 | # Check whether --with-x or --without-x was given. | |
23965 | if test "${with_x+set}" = set; then | |
23966 | withval="$with_x" | |
23967 | ||
23968 | fi; | |
23969 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
23970 | if test "x$with_x" = xno; then | |
23971 | # The user explicitly disabled X. | |
23972 | have_x=disabled | |
23973 | else | |
23974 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23975 | # Both variables are already set. | |
23976 | have_x=yes | |
23977 | else | |
23978 | if test "${ac_cv_have_x+set}" = set; then | |
23979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23980 | else | |
23981 | # One or both of the vars are not set, and there is no cached value. | |
23982 | ac_x_includes=no ac_x_libraries=no | |
23983 | rm -fr conftest.dir | |
23984 | if mkdir conftest.dir; then | |
23985 | cd conftest.dir | |
23986 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
23987 | cat >Imakefile <<'_ACEOF' | |
23988 | acfindx: | |
23989 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
23990 | _ACEOF | |
23991 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
23992 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
23993 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23994 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23995 | for ac_extension in a so sl; do | |
23996 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
23997 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23998 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
23999 | fi |
24000 | done | |
24001 | # Screen out bogus values from the imake configuration. They are | |
24002 | # bogus both because they are the default anyway, and because | |
24003 | # using them would break gcc on systems where it needs fixed includes. | |
24004 | case $ac_im_incroot in | |
24005 | /usr/include) ;; | |
24006 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
24007 | esac | |
24008 | case $ac_im_usrlibdir in | |
24009 | /usr/lib | /lib) ;; | |
24010 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
24011 | esac | |
24012 | fi | |
24013 | cd .. | |
24014 | rm -fr conftest.dir | |
24015 | fi | |
24016 | ||
24017 | # Standard set of common directories for X headers. | |
24018 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24019 | ac_x_header_dirs=' | |
24020 | /usr/X11/include | |
24021 | /usr/X11R6/include | |
24022 | /usr/X11R5/include | |
24023 | /usr/X11R4/include | |
24024 | ||
24025 | /usr/include/X11 | |
24026 | /usr/include/X11R6 | |
24027 | /usr/include/X11R5 | |
24028 | /usr/include/X11R4 | |
24029 | ||
24030 | /usr/local/X11/include | |
24031 | /usr/local/X11R6/include | |
24032 | /usr/local/X11R5/include | |
24033 | /usr/local/X11R4/include | |
24034 | ||
24035 | /usr/local/include/X11 | |
24036 | /usr/local/include/X11R6 | |
24037 | /usr/local/include/X11R5 | |
24038 | /usr/local/include/X11R4 | |
24039 | ||
24040 | /usr/X386/include | |
24041 | /usr/x386/include | |
24042 | /usr/XFree86/include/X11 | |
24043 | ||
24044 | /usr/include | |
24045 | /usr/local/include | |
24046 | /usr/unsupported/include | |
24047 | /usr/athena/include | |
24048 | /usr/local/x11r5/include | |
24049 | /usr/lpp/Xamples/include | |
24050 | ||
24051 | /usr/openwin/include | |
24052 | /usr/openwin/share/include' | |
24053 | ||
24054 | if test "$ac_x_includes" = no; then | |
d1c38808 | 24055 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
24056 | # First, try using that file with no special directory specified. |
24057 | cat >conftest.$ac_ext <<_ACEOF | |
24058 | /* confdefs.h. */ | |
24059 | _ACEOF | |
24060 | cat confdefs.h >>conftest.$ac_ext | |
24061 | cat >>conftest.$ac_ext <<_ACEOF | |
24062 | /* end confdefs.h. */ | |
24063 | #include <X11/Intrinsic.h> | |
24064 | _ACEOF | |
24065 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24067 | ac_status=$? | |
24068 | grep -v '^ *+' conftest.er1 >conftest.err | |
24069 | rm -f conftest.er1 | |
24070 | cat conftest.err >&5 | |
24071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24072 | (exit $ac_status); } >/dev/null; then | |
24073 | if test -s conftest.err; then | |
24074 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24075 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24076 | else |
24077 | ac_cpp_err= | |
24078 | fi | |
24079 | else | |
24080 | ac_cpp_err=yes | |
24081 | fi | |
24082 | if test -z "$ac_cpp_err"; then | |
24083 | # We can compile using X headers with no special include directory. | |
24084 | ac_x_includes= | |
24085 | else | |
24086 | echo "$as_me: failed program was:" >&5 | |
24087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24088 | ||
24089 | for ac_dir in $ac_x_header_dirs; do | |
24090 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
24091 | ac_x_includes=$ac_dir | |
24092 | break | |
24093 | fi | |
24094 | done | |
24095 | fi | |
24096 | rm -f conftest.err conftest.$ac_ext | |
24097 | fi # $ac_x_includes = no | |
24098 | ||
24099 | if test "$ac_x_libraries" = no; then | |
24100 | # Check for the libraries. | |
24101 | # See if we find them without any special options. | |
24102 | # Don't add to $LIBS permanently. | |
24103 | ac_save_LIBS=$LIBS | |
24104 | LIBS="-lXt $LIBS" | |
24105 | cat >conftest.$ac_ext <<_ACEOF | |
24106 | /* confdefs.h. */ | |
24107 | _ACEOF | |
24108 | cat confdefs.h >>conftest.$ac_ext | |
24109 | cat >>conftest.$ac_ext <<_ACEOF | |
24110 | /* end confdefs.h. */ | |
24111 | #include <X11/Intrinsic.h> | |
24112 | int | |
24113 | main () | |
24114 | { | |
24115 | XtMalloc (0) | |
24116 | ; | |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24122 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24123 | ac_status=$? |
ac1cb8d3 VS |
24124 | grep -v '^ *+' conftest.er1 >conftest.err |
24125 | rm -f conftest.er1 | |
24126 | cat conftest.err >&5 | |
a848cd7e SC |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24128 | (exit $ac_status); } && | |
d1c38808 | 24129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24131 | (eval $ac_try) 2>&5 | |
24132 | ac_status=$? | |
24133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24134 | (exit $ac_status); }; } && | |
24135 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24137 | (eval $ac_try) 2>&5 | |
24138 | ac_status=$? | |
24139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24140 | (exit $ac_status); }; }; then | |
24141 | LIBS=$ac_save_LIBS | |
24142 | # We can link X programs with no special library path. | |
24143 | ac_x_libraries= | |
24144 | else | |
24145 | echo "$as_me: failed program was:" >&5 | |
24146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24147 | ||
24148 | LIBS=$ac_save_LIBS | |
24149 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
24150 | do | |
24151 | # Don't even attempt the hair of trying to link an X program! | |
24152 | for ac_extension in a so sl; do | |
24153 | if test -r $ac_dir/libXt.$ac_extension; then | |
24154 | ac_x_libraries=$ac_dir | |
24155 | break 2 | |
24156 | fi | |
24157 | done | |
24158 | done | |
24159 | fi | |
ac1cb8d3 VS |
24160 | rm -f conftest.err conftest.$ac_objext \ |
24161 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24162 | fi # $ac_x_libraries = no |
24163 | ||
24164 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
24165 | # Didn't find X anywhere. Cache the known absence of X. | |
24166 | ac_cv_have_x="have_x=no" | |
24167 | else | |
24168 | # Record where we found X for the cache. | |
24169 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 24170 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
24171 | fi |
24172 | fi | |
24173 | ||
24174 | fi | |
24175 | eval "$ac_cv_have_x" | |
24176 | fi # $with_x != no | |
24177 | ||
24178 | if test "$have_x" != yes; then | |
24179 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
24180 | echo "${ECHO_T}$have_x" >&6 | |
24181 | no_x=yes | |
24182 | else | |
24183 | # If each of the values was on the command line, it overrides each guess. | |
24184 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24185 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24186 | # Update the cache value to reflect the command line values. | |
24187 | ac_cv_have_x="have_x=yes \ | |
24188 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
d1c38808 VZ |
24189 | # It might be that x_includes is empty (headers are found in the |
24190 | # standard search path. Then output the corresponding message | |
24191 | ac_out_x_includes=$x_includes | |
24192 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
24193 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
24194 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
24195 | fi |
24196 | ||
d1c38808 | 24197 | fi |
a848cd7e SC |
24198 | if test "$no_x" = yes; then |
24199 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24200 | ||
24201 | cat >>confdefs.h <<\_ACEOF | |
24202 | #define X_DISPLAY_MISSING 1 | |
24203 | _ACEOF | |
24204 | ||
24205 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24206 | else | |
24207 | if test -n "$x_includes"; then | |
24208 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24209 | fi | |
24210 | ||
24211 | # It would also be nice to do this for all -L options, not just this one. | |
24212 | if test -n "$x_libraries"; then | |
24213 | X_LIBS="$X_LIBS -L$x_libraries" | |
24214 | # For Solaris; some versions of Sun CC require a space after -R and | |
24215 | # others require no space. Words are not sufficient . . . . | |
24216 | case `(uname -sr) 2>/dev/null` in | |
24217 | "SunOS 5"*) | |
24218 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
24219 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
24220 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
24221 | cat >conftest.$ac_ext <<_ACEOF | |
24222 | /* confdefs.h. */ | |
24223 | _ACEOF | |
24224 | cat confdefs.h >>conftest.$ac_ext | |
24225 | cat >>conftest.$ac_ext <<_ACEOF | |
24226 | /* end confdefs.h. */ | |
24227 | ||
24228 | int | |
24229 | main () | |
24230 | { | |
24231 | ||
24232 | ; | |
24233 | return 0; | |
24234 | } | |
24235 | _ACEOF | |
24236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24238 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24239 | ac_status=$? |
ac1cb8d3 VS |
24240 | grep -v '^ *+' conftest.er1 >conftest.err |
24241 | rm -f conftest.er1 | |
24242 | cat conftest.err >&5 | |
a848cd7e SC |
24243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24244 | (exit $ac_status); } && | |
d1c38808 | 24245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24247 | (eval $ac_try) 2>&5 | |
24248 | ac_status=$? | |
24249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24250 | (exit $ac_status); }; } && | |
24251 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24253 | (eval $ac_try) 2>&5 | |
24254 | ac_status=$? | |
24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24256 | (exit $ac_status); }; }; then | |
24257 | ac_R_nospace=yes | |
24258 | else | |
24259 | echo "$as_me: failed program was:" >&5 | |
24260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24261 | ||
24262 | ac_R_nospace=no | |
24263 | fi | |
ac1cb8d3 VS |
24264 | rm -f conftest.err conftest.$ac_objext \ |
24265 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24266 | if test $ac_R_nospace = yes; then |
24267 | echo "$as_me:$LINENO: result: no" >&5 | |
24268 | echo "${ECHO_T}no" >&6 | |
24269 | X_LIBS="$X_LIBS -R$x_libraries" | |
24270 | else | |
24271 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
24272 | cat >conftest.$ac_ext <<_ACEOF | |
24273 | /* confdefs.h. */ | |
24274 | _ACEOF | |
24275 | cat confdefs.h >>conftest.$ac_ext | |
24276 | cat >>conftest.$ac_ext <<_ACEOF | |
24277 | /* end confdefs.h. */ | |
24278 | ||
24279 | int | |
24280 | main () | |
24281 | { | |
24282 | ||
24283 | ; | |
24284 | return 0; | |
24285 | } | |
24286 | _ACEOF | |
24287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24289 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24290 | ac_status=$? |
ac1cb8d3 VS |
24291 | grep -v '^ *+' conftest.er1 >conftest.err |
24292 | rm -f conftest.er1 | |
24293 | cat conftest.err >&5 | |
a848cd7e SC |
24294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24295 | (exit $ac_status); } && | |
d1c38808 | 24296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24298 | (eval $ac_try) 2>&5 | |
24299 | ac_status=$? | |
24300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24301 | (exit $ac_status); }; } && | |
24302 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24304 | (eval $ac_try) 2>&5 | |
24305 | ac_status=$? | |
24306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24307 | (exit $ac_status); }; }; then | |
24308 | ac_R_space=yes | |
24309 | else | |
24310 | echo "$as_me: failed program was:" >&5 | |
24311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24312 | ||
24313 | ac_R_space=no | |
24314 | fi | |
ac1cb8d3 VS |
24315 | rm -f conftest.err conftest.$ac_objext \ |
24316 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24317 | if test $ac_R_space = yes; then |
24318 | echo "$as_me:$LINENO: result: yes" >&5 | |
24319 | echo "${ECHO_T}yes" >&6 | |
24320 | X_LIBS="$X_LIBS -R $x_libraries" | |
24321 | else | |
24322 | echo "$as_me:$LINENO: result: neither works" >&5 | |
24323 | echo "${ECHO_T}neither works" >&6 | |
24324 | fi | |
24325 | fi | |
24326 | LIBS=$ac_xsave_LIBS | |
24327 | esac | |
24328 | fi | |
24329 | ||
24330 | # Check for system-dependent libraries X programs must link with. | |
24331 | # Do this before checking for the system-independent R6 libraries | |
24332 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24333 | ||
24334 | if test "$ISC" = yes; then | |
24335 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24336 | else | |
24337 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24338 | # libraries were built with DECnet support. And Karl Berry says | |
24339 | # the Alpha needs dnet_stub (dnet does not exist). | |
24340 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
24341 | cat >conftest.$ac_ext <<_ACEOF | |
24342 | /* confdefs.h. */ | |
24343 | _ACEOF | |
24344 | cat confdefs.h >>conftest.$ac_ext | |
24345 | cat >>conftest.$ac_ext <<_ACEOF | |
24346 | /* end confdefs.h. */ | |
24347 | ||
24348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24349 | #ifdef __cplusplus | |
24350 | extern "C" | |
24351 | #endif | |
24352 | /* We use char because int might match the return type of a gcc2 | |
24353 | builtin and then its argument prototype would still apply. */ | |
24354 | char XOpenDisplay (); | |
24355 | int | |
24356 | main () | |
24357 | { | |
24358 | XOpenDisplay (); | |
24359 | ; | |
24360 | return 0; | |
24361 | } | |
24362 | _ACEOF | |
24363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24365 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24366 | ac_status=$? |
ac1cb8d3 VS |
24367 | grep -v '^ *+' conftest.er1 >conftest.err |
24368 | rm -f conftest.er1 | |
24369 | cat conftest.err >&5 | |
a848cd7e SC |
24370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24371 | (exit $ac_status); } && | |
d1c38808 | 24372 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24374 | (eval $ac_try) 2>&5 | |
24375 | ac_status=$? | |
24376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24377 | (exit $ac_status); }; } && | |
24378 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24380 | (eval $ac_try) 2>&5 | |
24381 | ac_status=$? | |
24382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24383 | (exit $ac_status); }; }; then | |
24384 | : | |
24385 | else | |
24386 | echo "$as_me: failed program was:" >&5 | |
24387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24388 | ||
24389 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
24390 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
24391 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
24392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24393 | else | |
24394 | ac_check_lib_save_LIBS=$LIBS | |
24395 | LIBS="-ldnet $LIBS" | |
24396 | cat >conftest.$ac_ext <<_ACEOF | |
24397 | /* confdefs.h. */ | |
24398 | _ACEOF | |
24399 | cat confdefs.h >>conftest.$ac_ext | |
24400 | cat >>conftest.$ac_ext <<_ACEOF | |
24401 | /* end confdefs.h. */ | |
24402 | ||
24403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24404 | #ifdef __cplusplus | |
24405 | extern "C" | |
24406 | #endif | |
24407 | /* We use char because int might match the return type of a gcc2 | |
24408 | builtin and then its argument prototype would still apply. */ | |
24409 | char dnet_ntoa (); | |
24410 | int | |
24411 | main () | |
24412 | { | |
24413 | dnet_ntoa (); | |
24414 | ; | |
24415 | return 0; | |
24416 | } | |
24417 | _ACEOF | |
24418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24420 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24421 | ac_status=$? |
ac1cb8d3 VS |
24422 | grep -v '^ *+' conftest.er1 >conftest.err |
24423 | rm -f conftest.er1 | |
24424 | cat conftest.err >&5 | |
a848cd7e SC |
24425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24426 | (exit $ac_status); } && | |
d1c38808 | 24427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24429 | (eval $ac_try) 2>&5 | |
24430 | ac_status=$? | |
24431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24432 | (exit $ac_status); }; } && | |
24433 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24435 | (eval $ac_try) 2>&5 | |
24436 | ac_status=$? | |
24437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24438 | (exit $ac_status); }; }; then | |
24439 | ac_cv_lib_dnet_dnet_ntoa=yes | |
24440 | else | |
24441 | echo "$as_me: failed program was:" >&5 | |
24442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24443 | ||
24444 | ac_cv_lib_dnet_dnet_ntoa=no | |
24445 | fi | |
ac1cb8d3 VS |
24446 | rm -f conftest.err conftest.$ac_objext \ |
24447 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24448 | LIBS=$ac_check_lib_save_LIBS |
24449 | fi | |
24450 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
24451 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
24452 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
24453 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
24454 | fi | |
24455 | ||
24456 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
24457 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
24458 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
24459 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
24460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24461 | else | |
24462 | ac_check_lib_save_LIBS=$LIBS | |
24463 | LIBS="-ldnet_stub $LIBS" | |
24464 | cat >conftest.$ac_ext <<_ACEOF | |
24465 | /* confdefs.h. */ | |
24466 | _ACEOF | |
24467 | cat confdefs.h >>conftest.$ac_ext | |
24468 | cat >>conftest.$ac_ext <<_ACEOF | |
24469 | /* end confdefs.h. */ | |
24470 | ||
24471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24472 | #ifdef __cplusplus | |
24473 | extern "C" | |
24474 | #endif | |
24475 | /* We use char because int might match the return type of a gcc2 | |
24476 | builtin and then its argument prototype would still apply. */ | |
24477 | char dnet_ntoa (); | |
24478 | int | |
24479 | main () | |
24480 | { | |
24481 | dnet_ntoa (); | |
24482 | ; | |
24483 | return 0; | |
24484 | } | |
24485 | _ACEOF | |
24486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24489 | ac_status=$? |
ac1cb8d3 VS |
24490 | grep -v '^ *+' conftest.er1 >conftest.err |
24491 | rm -f conftest.er1 | |
24492 | cat conftest.err >&5 | |
a848cd7e SC |
24493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24494 | (exit $ac_status); } && | |
d1c38808 | 24495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24497 | (eval $ac_try) 2>&5 | |
24498 | ac_status=$? | |
24499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24500 | (exit $ac_status); }; } && | |
24501 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24503 | (eval $ac_try) 2>&5 | |
24504 | ac_status=$? | |
24505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24506 | (exit $ac_status); }; }; then | |
24507 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
24508 | else | |
24509 | echo "$as_me: failed program was:" >&5 | |
24510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24511 | ||
24512 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
24513 | fi | |
ac1cb8d3 VS |
24514 | rm -f conftest.err conftest.$ac_objext \ |
24515 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24516 | LIBS=$ac_check_lib_save_LIBS |
24517 | fi | |
24518 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
24519 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
24520 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24521 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24522 | fi | |
24523 | ||
24524 | fi | |
24525 | fi | |
ac1cb8d3 VS |
24526 | rm -f conftest.err conftest.$ac_objext \ |
24527 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24528 | LIBS="$ac_xsave_LIBS" |
24529 | ||
24530 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24531 | # to get the SysV transport functions. | |
24532 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24533 | # needs -lnsl. | |
24534 | # The nsl library prevents programs from opening the X display | |
24535 | # on Irix 5.2, according to T.E. Dickey. | |
24536 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24537 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24538 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24539 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24540 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24542 | else | |
24543 | cat >conftest.$ac_ext <<_ACEOF | |
24544 | /* confdefs.h. */ | |
24545 | _ACEOF | |
24546 | cat confdefs.h >>conftest.$ac_ext | |
24547 | cat >>conftest.$ac_ext <<_ACEOF | |
24548 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24549 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
24550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24551 | #define gethostbyname innocuous_gethostbyname | |
24552 | ||
a848cd7e SC |
24553 | /* System header to define __stub macros and hopefully few prototypes, |
24554 | which can conflict with char gethostbyname (); below. | |
24555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24556 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24557 | |
a848cd7e SC |
24558 | #ifdef __STDC__ |
24559 | # include <limits.h> | |
24560 | #else | |
24561 | # include <assert.h> | |
24562 | #endif | |
ac1cb8d3 VS |
24563 | |
24564 | #undef gethostbyname | |
24565 | ||
a848cd7e SC |
24566 | /* Override any gcc2 internal prototype to avoid an error. */ |
24567 | #ifdef __cplusplus | |
24568 | extern "C" | |
24569 | { | |
24570 | #endif | |
24571 | /* We use char because int might match the return type of a gcc2 | |
24572 | builtin and then its argument prototype would still apply. */ | |
24573 | char gethostbyname (); | |
24574 | /* The GNU C library defines this for functions which it implements | |
24575 | to always fail with ENOSYS. Some functions are actually named | |
24576 | something starting with __ and the normal name is an alias. */ | |
24577 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24578 | choke me | |
24579 | #else | |
24580 | char (*f) () = gethostbyname; | |
24581 | #endif | |
24582 | #ifdef __cplusplus | |
24583 | } | |
24584 | #endif | |
24585 | ||
24586 | int | |
24587 | main () | |
24588 | { | |
24589 | return f != gethostbyname; | |
24590 | ; | |
24591 | return 0; | |
24592 | } | |
24593 | _ACEOF | |
24594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24597 | ac_status=$? |
ac1cb8d3 VS |
24598 | grep -v '^ *+' conftest.er1 >conftest.err |
24599 | rm -f conftest.er1 | |
24600 | cat conftest.err >&5 | |
a848cd7e SC |
24601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24602 | (exit $ac_status); } && | |
d1c38808 | 24603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24605 | (eval $ac_try) 2>&5 | |
24606 | ac_status=$? | |
24607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24608 | (exit $ac_status); }; } && | |
24609 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24611 | (eval $ac_try) 2>&5 | |
24612 | ac_status=$? | |
24613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24614 | (exit $ac_status); }; }; then | |
24615 | ac_cv_func_gethostbyname=yes | |
24616 | else | |
24617 | echo "$as_me: failed program was:" >&5 | |
24618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24619 | ||
24620 | ac_cv_func_gethostbyname=no | |
24621 | fi | |
ac1cb8d3 VS |
24622 | rm -f conftest.err conftest.$ac_objext \ |
24623 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24624 | fi |
24625 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24626 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24627 | ||
24628 | if test $ac_cv_func_gethostbyname = no; then | |
24629 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24630 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24631 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24633 | else | |
24634 | ac_check_lib_save_LIBS=$LIBS | |
24635 | LIBS="-lnsl $LIBS" | |
24636 | cat >conftest.$ac_ext <<_ACEOF | |
24637 | /* confdefs.h. */ | |
24638 | _ACEOF | |
24639 | cat confdefs.h >>conftest.$ac_ext | |
24640 | cat >>conftest.$ac_ext <<_ACEOF | |
24641 | /* end confdefs.h. */ | |
24642 | ||
24643 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24644 | #ifdef __cplusplus | |
24645 | extern "C" | |
24646 | #endif | |
24647 | /* We use char because int might match the return type of a gcc2 | |
24648 | builtin and then its argument prototype would still apply. */ | |
24649 | char gethostbyname (); | |
24650 | int | |
24651 | main () | |
24652 | { | |
24653 | gethostbyname (); | |
24654 | ; | |
24655 | return 0; | |
24656 | } | |
24657 | _ACEOF | |
24658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
24660 | (eval $ac_link) 2>conftest.er1 |
24661 | ac_status=$? | |
24662 | grep -v '^ *+' conftest.er1 >conftest.err | |
24663 | rm -f conftest.er1 | |
24664 | cat conftest.err >&5 | |
24665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24666 | (exit $ac_status); } && | |
d1c38808 | 24667 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24669 | (eval $ac_try) 2>&5 | |
24670 | ac_status=$? | |
24671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24672 | (exit $ac_status); }; } && | |
24673 | { ac_try='test -s conftest$ac_exeext' | |
24674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24675 | (eval $ac_try) 2>&5 | |
24676 | ac_status=$? | |
24677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24678 | (exit $ac_status); }; }; then | |
24679 | ac_cv_lib_nsl_gethostbyname=yes | |
24680 | else | |
24681 | echo "$as_me: failed program was:" >&5 | |
24682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24683 | ||
24684 | ac_cv_lib_nsl_gethostbyname=no | |
24685 | fi | |
24686 | rm -f conftest.err conftest.$ac_objext \ | |
24687 | conftest$ac_exeext conftest.$ac_ext | |
24688 | LIBS=$ac_check_lib_save_LIBS | |
24689 | fi | |
24690 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24691 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24692 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24693 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24694 | fi | |
24695 | ||
24696 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
24697 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
24698 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
24699 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24701 | else | |
24702 | ac_check_lib_save_LIBS=$LIBS | |
24703 | LIBS="-lbsd $LIBS" | |
24704 | cat >conftest.$ac_ext <<_ACEOF | |
24705 | /* confdefs.h. */ | |
24706 | _ACEOF | |
24707 | cat confdefs.h >>conftest.$ac_ext | |
24708 | cat >>conftest.$ac_ext <<_ACEOF | |
24709 | /* end confdefs.h. */ | |
24710 | ||
24711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24712 | #ifdef __cplusplus | |
24713 | extern "C" | |
24714 | #endif | |
24715 | /* We use char because int might match the return type of a gcc2 | |
24716 | builtin and then its argument prototype would still apply. */ | |
24717 | char gethostbyname (); | |
24718 | int | |
24719 | main () | |
24720 | { | |
24721 | gethostbyname (); | |
24722 | ; | |
24723 | return 0; | |
24724 | } | |
24725 | _ACEOF | |
24726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24728 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24729 | ac_status=$? |
ac1cb8d3 VS |
24730 | grep -v '^ *+' conftest.er1 >conftest.err |
24731 | rm -f conftest.er1 | |
24732 | cat conftest.err >&5 | |
a848cd7e SC |
24733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24734 | (exit $ac_status); } && | |
d1c38808 | 24735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
24736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24737 | (eval $ac_try) 2>&5 | |
24738 | ac_status=$? | |
24739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
24740 | (exit $ac_status); }; } && |
24741 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24743 | (eval $ac_try) 2>&5 | |
24744 | ac_status=$? | |
24745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24746 | (exit $ac_status); }; }; then | |
24747 | ac_cv_lib_bsd_gethostbyname=yes | |
24748 | else | |
24749 | echo "$as_me: failed program was:" >&5 | |
24750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24751 | ||
24752 | ac_cv_lib_bsd_gethostbyname=no | |
24753 | fi | |
ac1cb8d3 VS |
24754 | rm -f conftest.err conftest.$ac_objext \ |
24755 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24756 | LIBS=$ac_check_lib_save_LIBS |
24757 | fi | |
24758 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24759 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24760 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24761 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24762 | fi | |
24763 | ||
24764 | fi | |
24765 | fi | |
24766 | ||
24767 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24768 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24769 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24770 | # on later versions), says Simon Leinen: it contains gethostby* | |
24771 | # variants that don't use the name server (or something). -lsocket | |
24772 | # must be given before -lnsl if both are needed. We assume that | |
24773 | # if connect needs -lnsl, so does gethostbyname. | |
24774 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24775 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24776 | if test "${ac_cv_func_connect+set}" = set; then | |
24777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24778 | else | |
24779 | cat >conftest.$ac_ext <<_ACEOF | |
24780 | /* confdefs.h. */ | |
24781 | _ACEOF | |
24782 | cat confdefs.h >>conftest.$ac_ext | |
24783 | cat >>conftest.$ac_ext <<_ACEOF | |
24784 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24785 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
24786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24787 | #define connect innocuous_connect | |
24788 | ||
a848cd7e SC |
24789 | /* System header to define __stub macros and hopefully few prototypes, |
24790 | which can conflict with char connect (); below. | |
24791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24792 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24793 | |
a848cd7e SC |
24794 | #ifdef __STDC__ |
24795 | # include <limits.h> | |
24796 | #else | |
24797 | # include <assert.h> | |
24798 | #endif | |
ac1cb8d3 VS |
24799 | |
24800 | #undef connect | |
24801 | ||
a848cd7e SC |
24802 | /* Override any gcc2 internal prototype to avoid an error. */ |
24803 | #ifdef __cplusplus | |
24804 | extern "C" | |
24805 | { | |
24806 | #endif | |
24807 | /* We use char because int might match the return type of a gcc2 | |
24808 | builtin and then its argument prototype would still apply. */ | |
24809 | char connect (); | |
24810 | /* The GNU C library defines this for functions which it implements | |
24811 | to always fail with ENOSYS. Some functions are actually named | |
24812 | something starting with __ and the normal name is an alias. */ | |
24813 | #if defined (__stub_connect) || defined (__stub___connect) | |
24814 | choke me | |
24815 | #else | |
24816 | char (*f) () = connect; | |
24817 | #endif | |
24818 | #ifdef __cplusplus | |
24819 | } | |
24820 | #endif | |
24821 | ||
24822 | int | |
24823 | main () | |
24824 | { | |
24825 | return f != connect; | |
24826 | ; | |
24827 | return 0; | |
24828 | } | |
24829 | _ACEOF | |
24830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24832 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24833 | ac_status=$? |
ac1cb8d3 VS |
24834 | grep -v '^ *+' conftest.er1 >conftest.err |
24835 | rm -f conftest.er1 | |
24836 | cat conftest.err >&5 | |
a848cd7e SC |
24837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24838 | (exit $ac_status); } && | |
d1c38808 | 24839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24841 | (eval $ac_try) 2>&5 | |
24842 | ac_status=$? | |
24843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24844 | (exit $ac_status); }; } && | |
24845 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24847 | (eval $ac_try) 2>&5 | |
24848 | ac_status=$? | |
24849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24850 | (exit $ac_status); }; }; then | |
24851 | ac_cv_func_connect=yes | |
24852 | else | |
24853 | echo "$as_me: failed program was:" >&5 | |
24854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24855 | ||
24856 | ac_cv_func_connect=no | |
24857 | fi | |
ac1cb8d3 VS |
24858 | rm -f conftest.err conftest.$ac_objext \ |
24859 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24860 | fi |
24861 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24862 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24863 | ||
24864 | if test $ac_cv_func_connect = no; then | |
24865 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24866 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24867 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24869 | else | |
24870 | ac_check_lib_save_LIBS=$LIBS | |
24871 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24872 | cat >conftest.$ac_ext <<_ACEOF | |
24873 | /* confdefs.h. */ | |
24874 | _ACEOF | |
24875 | cat confdefs.h >>conftest.$ac_ext | |
24876 | cat >>conftest.$ac_ext <<_ACEOF | |
24877 | /* end confdefs.h. */ | |
24878 | ||
24879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24880 | #ifdef __cplusplus | |
24881 | extern "C" | |
24882 | #endif | |
24883 | /* We use char because int might match the return type of a gcc2 | |
24884 | builtin and then its argument prototype would still apply. */ | |
24885 | char connect (); | |
24886 | int | |
24887 | main () | |
24888 | { | |
24889 | connect (); | |
24890 | ; | |
24891 | return 0; | |
24892 | } | |
24893 | _ACEOF | |
24894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24896 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24897 | ac_status=$? |
ac1cb8d3 VS |
24898 | grep -v '^ *+' conftest.er1 >conftest.err |
24899 | rm -f conftest.er1 | |
24900 | cat conftest.err >&5 | |
a848cd7e SC |
24901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24902 | (exit $ac_status); } && | |
d1c38808 | 24903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24905 | (eval $ac_try) 2>&5 | |
24906 | ac_status=$? | |
24907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24908 | (exit $ac_status); }; } && | |
24909 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24911 | (eval $ac_try) 2>&5 | |
24912 | ac_status=$? | |
24913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24914 | (exit $ac_status); }; }; then | |
24915 | ac_cv_lib_socket_connect=yes | |
24916 | else | |
24917 | echo "$as_me: failed program was:" >&5 | |
24918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24919 | ||
24920 | ac_cv_lib_socket_connect=no | |
24921 | fi | |
ac1cb8d3 VS |
24922 | rm -f conftest.err conftest.$ac_objext \ |
24923 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24924 | LIBS=$ac_check_lib_save_LIBS |
24925 | fi | |
24926 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24927 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24928 | if test $ac_cv_lib_socket_connect = yes; then | |
24929 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24930 | fi | |
24931 | ||
24932 | fi | |
24933 | ||
24934 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24935 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24936 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24937 | if test "${ac_cv_func_remove+set}" = set; then | |
24938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24939 | else | |
24940 | cat >conftest.$ac_ext <<_ACEOF | |
24941 | /* confdefs.h. */ | |
24942 | _ACEOF | |
24943 | cat confdefs.h >>conftest.$ac_ext | |
24944 | cat >>conftest.$ac_ext <<_ACEOF | |
24945 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24946 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
24947 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24948 | #define remove innocuous_remove | |
24949 | ||
a848cd7e SC |
24950 | /* System header to define __stub macros and hopefully few prototypes, |
24951 | which can conflict with char remove (); below. | |
24952 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24953 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24954 | |
a848cd7e SC |
24955 | #ifdef __STDC__ |
24956 | # include <limits.h> | |
24957 | #else | |
24958 | # include <assert.h> | |
24959 | #endif | |
ac1cb8d3 VS |
24960 | |
24961 | #undef remove | |
24962 | ||
a848cd7e SC |
24963 | /* Override any gcc2 internal prototype to avoid an error. */ |
24964 | #ifdef __cplusplus | |
24965 | extern "C" | |
24966 | { | |
24967 | #endif | |
24968 | /* We use char because int might match the return type of a gcc2 | |
24969 | builtin and then its argument prototype would still apply. */ | |
24970 | char remove (); | |
24971 | /* The GNU C library defines this for functions which it implements | |
24972 | to always fail with ENOSYS. Some functions are actually named | |
24973 | something starting with __ and the normal name is an alias. */ | |
24974 | #if defined (__stub_remove) || defined (__stub___remove) | |
24975 | choke me | |
24976 | #else | |
24977 | char (*f) () = remove; | |
24978 | #endif | |
24979 | #ifdef __cplusplus | |
24980 | } | |
24981 | #endif | |
24982 | ||
24983 | int | |
24984 | main () | |
24985 | { | |
24986 | return f != remove; | |
24987 | ; | |
24988 | return 0; | |
24989 | } | |
24990 | _ACEOF | |
24991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24993 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24994 | ac_status=$? |
ac1cb8d3 VS |
24995 | grep -v '^ *+' conftest.er1 >conftest.err |
24996 | rm -f conftest.er1 | |
24997 | cat conftest.err >&5 | |
a848cd7e SC |
24998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24999 | (exit $ac_status); } && | |
d1c38808 | 25000 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25002 | (eval $ac_try) 2>&5 | |
25003 | ac_status=$? | |
25004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25005 | (exit $ac_status); }; } && | |
25006 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25008 | (eval $ac_try) 2>&5 | |
25009 | ac_status=$? | |
25010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25011 | (exit $ac_status); }; }; then | |
25012 | ac_cv_func_remove=yes | |
25013 | else | |
25014 | echo "$as_me: failed program was:" >&5 | |
25015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25016 | ||
25017 | ac_cv_func_remove=no | |
25018 | fi | |
ac1cb8d3 VS |
25019 | rm -f conftest.err conftest.$ac_objext \ |
25020 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25021 | fi |
25022 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
25023 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
25024 | ||
25025 | if test $ac_cv_func_remove = no; then | |
25026 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
25027 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
25028 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
25029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25030 | else | |
25031 | ac_check_lib_save_LIBS=$LIBS | |
25032 | LIBS="-lposix $LIBS" | |
25033 | cat >conftest.$ac_ext <<_ACEOF | |
25034 | /* confdefs.h. */ | |
25035 | _ACEOF | |
25036 | cat confdefs.h >>conftest.$ac_ext | |
25037 | cat >>conftest.$ac_ext <<_ACEOF | |
25038 | /* end confdefs.h. */ | |
25039 | ||
25040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25041 | #ifdef __cplusplus | |
25042 | extern "C" | |
25043 | #endif | |
25044 | /* We use char because int might match the return type of a gcc2 | |
25045 | builtin and then its argument prototype would still apply. */ | |
25046 | char remove (); | |
25047 | int | |
25048 | main () | |
25049 | { | |
25050 | remove (); | |
25051 | ; | |
25052 | return 0; | |
25053 | } | |
25054 | _ACEOF | |
25055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25057 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25058 | ac_status=$? |
ac1cb8d3 VS |
25059 | grep -v '^ *+' conftest.er1 >conftest.err |
25060 | rm -f conftest.er1 | |
25061 | cat conftest.err >&5 | |
a848cd7e SC |
25062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25063 | (exit $ac_status); } && | |
d1c38808 | 25064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25066 | (eval $ac_try) 2>&5 | |
25067 | ac_status=$? | |
25068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25069 | (exit $ac_status); }; } && | |
25070 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25072 | (eval $ac_try) 2>&5 | |
25073 | ac_status=$? | |
25074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25075 | (exit $ac_status); }; }; then | |
25076 | ac_cv_lib_posix_remove=yes | |
25077 | else | |
25078 | echo "$as_me: failed program was:" >&5 | |
25079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25080 | ||
25081 | ac_cv_lib_posix_remove=no | |
25082 | fi | |
ac1cb8d3 VS |
25083 | rm -f conftest.err conftest.$ac_objext \ |
25084 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25085 | LIBS=$ac_check_lib_save_LIBS |
25086 | fi | |
25087 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
25088 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
25089 | if test $ac_cv_lib_posix_remove = yes; then | |
25090 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
25091 | fi | |
25092 | ||
25093 | fi | |
25094 | ||
25095 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
25096 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
25097 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
25098 | if test "${ac_cv_func_shmat+set}" = set; then | |
25099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25100 | else | |
25101 | cat >conftest.$ac_ext <<_ACEOF | |
25102 | /* confdefs.h. */ | |
25103 | _ACEOF | |
25104 | cat confdefs.h >>conftest.$ac_ext | |
25105 | cat >>conftest.$ac_ext <<_ACEOF | |
25106 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
25107 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
25108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25109 | #define shmat innocuous_shmat | |
25110 | ||
a848cd7e SC |
25111 | /* System header to define __stub macros and hopefully few prototypes, |
25112 | which can conflict with char shmat (); below. | |
25113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25114 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 25115 | |
a848cd7e SC |
25116 | #ifdef __STDC__ |
25117 | # include <limits.h> | |
25118 | #else | |
25119 | # include <assert.h> | |
25120 | #endif | |
ac1cb8d3 VS |
25121 | |
25122 | #undef shmat | |
25123 | ||
a848cd7e SC |
25124 | /* Override any gcc2 internal prototype to avoid an error. */ |
25125 | #ifdef __cplusplus | |
25126 | extern "C" | |
25127 | { | |
25128 | #endif | |
25129 | /* We use char because int might match the return type of a gcc2 | |
25130 | builtin and then its argument prototype would still apply. */ | |
25131 | char shmat (); | |
25132 | /* The GNU C library defines this for functions which it implements | |
25133 | to always fail with ENOSYS. Some functions are actually named | |
25134 | something starting with __ and the normal name is an alias. */ | |
25135 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
25136 | choke me | |
25137 | #else | |
25138 | char (*f) () = shmat; | |
25139 | #endif | |
25140 | #ifdef __cplusplus | |
25141 | } | |
25142 | #endif | |
25143 | ||
25144 | int | |
25145 | main () | |
25146 | { | |
25147 | return f != shmat; | |
25148 | ; | |
25149 | return 0; | |
25150 | } | |
25151 | _ACEOF | |
25152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25154 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25155 | ac_status=$? |
ac1cb8d3 VS |
25156 | grep -v '^ *+' conftest.er1 >conftest.err |
25157 | rm -f conftest.er1 | |
25158 | cat conftest.err >&5 | |
a848cd7e SC |
25159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25160 | (exit $ac_status); } && | |
d1c38808 | 25161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25163 | (eval $ac_try) 2>&5 | |
25164 | ac_status=$? | |
25165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25166 | (exit $ac_status); }; } && | |
25167 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25169 | (eval $ac_try) 2>&5 | |
25170 | ac_status=$? | |
25171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25172 | (exit $ac_status); }; }; then | |
25173 | ac_cv_func_shmat=yes | |
25174 | else | |
25175 | echo "$as_me: failed program was:" >&5 | |
25176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25177 | ||
25178 | ac_cv_func_shmat=no | |
25179 | fi | |
ac1cb8d3 VS |
25180 | rm -f conftest.err conftest.$ac_objext \ |
25181 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25182 | fi |
25183 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
25184 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
25185 | ||
25186 | if test $ac_cv_func_shmat = no; then | |
25187 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
25188 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
25189 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
25190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25191 | else | |
25192 | ac_check_lib_save_LIBS=$LIBS | |
25193 | LIBS="-lipc $LIBS" | |
25194 | cat >conftest.$ac_ext <<_ACEOF | |
25195 | /* confdefs.h. */ | |
25196 | _ACEOF | |
25197 | cat confdefs.h >>conftest.$ac_ext | |
25198 | cat >>conftest.$ac_ext <<_ACEOF | |
25199 | /* end confdefs.h. */ | |
25200 | ||
25201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25202 | #ifdef __cplusplus | |
25203 | extern "C" | |
25204 | #endif | |
25205 | /* We use char because int might match the return type of a gcc2 | |
25206 | builtin and then its argument prototype would still apply. */ | |
25207 | char shmat (); | |
25208 | int | |
25209 | main () | |
25210 | { | |
25211 | shmat (); | |
25212 | ; | |
25213 | return 0; | |
25214 | } | |
25215 | _ACEOF | |
25216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25218 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25219 | ac_status=$? |
ac1cb8d3 VS |
25220 | grep -v '^ *+' conftest.er1 >conftest.err |
25221 | rm -f conftest.er1 | |
25222 | cat conftest.err >&5 | |
a848cd7e SC |
25223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25224 | (exit $ac_status); } && | |
d1c38808 | 25225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25227 | (eval $ac_try) 2>&5 | |
25228 | ac_status=$? | |
25229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25230 | (exit $ac_status); }; } && | |
25231 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25233 | (eval $ac_try) 2>&5 | |
25234 | ac_status=$? | |
25235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25236 | (exit $ac_status); }; }; then | |
25237 | ac_cv_lib_ipc_shmat=yes | |
25238 | else | |
25239 | echo "$as_me: failed program was:" >&5 | |
25240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25241 | ||
25242 | ac_cv_lib_ipc_shmat=no | |
25243 | fi | |
ac1cb8d3 VS |
25244 | rm -f conftest.err conftest.$ac_objext \ |
25245 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25246 | LIBS=$ac_check_lib_save_LIBS |
25247 | fi | |
25248 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
25249 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
25250 | if test $ac_cv_lib_ipc_shmat = yes; then | |
25251 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
25252 | fi | |
25253 | ||
25254 | fi | |
25255 | fi | |
25256 | ||
25257 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25258 | ac_save_LDFLAGS=$LDFLAGS | |
25259 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25260 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25261 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25262 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25263 | # These have to be linked with before -lX11, unlike the other | |
25264 | # libraries we check for below, so use a different variable. | |
25265 | # John Interrante, Karl Berry | |
25266 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
25267 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
25268 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
25269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25270 | else | |
25271 | ac_check_lib_save_LIBS=$LIBS | |
25272 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
25273 | cat >conftest.$ac_ext <<_ACEOF | |
25274 | /* confdefs.h. */ | |
25275 | _ACEOF | |
25276 | cat confdefs.h >>conftest.$ac_ext | |
25277 | cat >>conftest.$ac_ext <<_ACEOF | |
25278 | /* end confdefs.h. */ | |
25279 | ||
25280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25281 | #ifdef __cplusplus | |
25282 | extern "C" | |
25283 | #endif | |
25284 | /* We use char because int might match the return type of a gcc2 | |
25285 | builtin and then its argument prototype would still apply. */ | |
25286 | char IceConnectionNumber (); | |
25287 | int | |
25288 | main () | |
25289 | { | |
25290 | IceConnectionNumber (); | |
25291 | ; | |
25292 | return 0; | |
25293 | } | |
25294 | _ACEOF | |
25295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25297 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25298 | ac_status=$? |
ac1cb8d3 VS |
25299 | grep -v '^ *+' conftest.er1 >conftest.err |
25300 | rm -f conftest.er1 | |
25301 | cat conftest.err >&5 | |
a848cd7e SC |
25302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25303 | (exit $ac_status); } && | |
d1c38808 | 25304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25306 | (eval $ac_try) 2>&5 | |
25307 | ac_status=$? | |
25308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25309 | (exit $ac_status); }; } && | |
25310 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25312 | (eval $ac_try) 2>&5 | |
25313 | ac_status=$? | |
25314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25315 | (exit $ac_status); }; }; then | |
25316 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
25317 | else | |
25318 | echo "$as_me: failed program was:" >&5 | |
25319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25320 | ||
25321 | ac_cv_lib_ICE_IceConnectionNumber=no | |
25322 | fi | |
ac1cb8d3 VS |
25323 | rm -f conftest.err conftest.$ac_objext \ |
25324 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25325 | LIBS=$ac_check_lib_save_LIBS |
25326 | fi | |
25327 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
25328 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
25329 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
25330 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
25331 | fi | |
25332 | ||
25333 | LDFLAGS=$ac_save_LDFLAGS | |
25334 | ||
25335 | fi | |
25336 | ||
25337 | ||
25338 | if test "$no_x" = "yes"; then | |
25339 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
25340 | echo "$as_me: error: X11 not found" >&2;} | |
25341 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
25342 | fi | |
25343 | ||
74b84332 VS |
25344 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25345 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25346 | AFMINSTALL=afminstall |
25347 | COMPILED_X_PROGRAM=0 | |
25348 | ||
74b84332 VS |
25349 | fi |
25350 | ||
25351 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
25352 | if test "$wxUSE_NANOX" = "yes"; then |
25353 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
25354 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
25355 | if test "x$MICROWIN" = x ; then | |
25356 | echo "$as_me:$LINENO: result: not found" >&5 | |
25357 | echo "${ECHO_T}not found" >&6 | |
25358 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
25359 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
25360 | { (exit 1); exit 1; }; } | |
25361 | else | |
25362 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
25363 | echo "${ECHO_T}$MICROWIN" >&6 | |
25364 | cat >>confdefs.h <<\_ACEOF | |
25365 | #define wxUSE_NANOX 1 | |
25366 | _ACEOF | |
25367 | ||
25368 | fi | |
25369 | fi | |
25370 | ||
25371 | if test "$wxUSE_UNICODE" = "yes"; then | |
25372 | ||
25373 | succeeded=no | |
25374 | ||
25375 | if test -z "$PKG_CONFIG"; then | |
25376 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25377 | set dummy pkg-config; ac_word=$2 | |
25378 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25379 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25380 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25382 | else | |
25383 | case $PKG_CONFIG in | |
25384 | [\\/]* | ?:[\\/]*) | |
25385 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25386 | ;; | |
25387 | *) | |
25388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25389 | for as_dir in $PATH | |
25390 | do | |
25391 | IFS=$as_save_IFS | |
25392 | test -z "$as_dir" && as_dir=. | |
25393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25395 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25397 | break 2 | |
25398 | fi | |
25399 | done | |
25400 | done | |
25401 | ||
25402 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25403 | ;; | |
25404 | esac | |
25405 | fi | |
25406 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25407 | ||
25408 | if test -n "$PKG_CONFIG"; then | |
25409 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25410 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25411 | else | |
25412 | echo "$as_me:$LINENO: result: no" >&5 | |
25413 | echo "${ECHO_T}no" >&6 | |
25414 | fi | |
25415 | ||
25416 | fi | |
25417 | ||
25418 | if test "$PKG_CONFIG" = "no" ; then | |
25419 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25420 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25421 | echo "*** to the full path to pkg-config." | |
25422 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25423 | else | |
25424 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25425 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25426 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
25427 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
25428 | ||
25429 | if $PKG_CONFIG --exists "pangox" ; then | |
25430 | echo "$as_me:$LINENO: result: yes" >&5 | |
25431 | echo "${ECHO_T}yes" >&6 | |
25432 | succeeded=yes | |
25433 | ||
25434 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
25435 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
25436 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
25437 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
25438 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
25439 | ||
25440 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
25441 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
25442 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
25443 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
25444 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
25445 | else | |
25446 | PANGOX_CFLAGS="" | |
25447 | PANGOX_LIBS="" | |
25448 | ## If we have a custom action on failure, don't print errors, but | |
25449 | ## do set a variable so people can do so. | |
25450 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
25451 | ||
25452 | fi | |
25453 | ||
25454 | ||
25455 | ||
25456 | else | |
25457 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25458 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25459 | fi | |
25460 | fi | |
25461 | ||
25462 | if test $succeeded = yes; then | |
25463 | ||
25464 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
25465 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
25466 | ||
25467 | else | |
25468 | ||
25469 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
25470 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
25471 | { (exit 1); exit 1; }; } | |
25472 | ||
25473 | ||
25474 | fi | |
25475 | ||
25476 | ||
25477 | succeeded=no | |
25478 | ||
25479 | if test -z "$PKG_CONFIG"; then | |
25480 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25481 | set dummy pkg-config; ac_word=$2 | |
25482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25484 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25486 | else | |
25487 | case $PKG_CONFIG in | |
25488 | [\\/]* | ?:[\\/]*) | |
25489 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25490 | ;; | |
25491 | *) | |
25492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25493 | for as_dir in $PATH | |
25494 | do | |
25495 | IFS=$as_save_IFS | |
25496 | test -z "$as_dir" && as_dir=. | |
25497 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25498 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25499 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25500 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25501 | break 2 | |
25502 | fi | |
25503 | done | |
25504 | done | |
25505 | ||
25506 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25507 | ;; | |
25508 | esac | |
25509 | fi | |
25510 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25511 | ||
25512 | if test -n "$PKG_CONFIG"; then | |
25513 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25514 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25515 | else | |
25516 | echo "$as_me:$LINENO: result: no" >&5 | |
25517 | echo "${ECHO_T}no" >&6 | |
25518 | fi | |
25519 | ||
25520 | fi | |
25521 | ||
25522 | if test "$PKG_CONFIG" = "no" ; then | |
25523 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25524 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25525 | echo "*** to the full path to pkg-config." | |
25526 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25527 | else | |
25528 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25529 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25530 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
25531 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
25532 | ||
25533 | if $PKG_CONFIG --exists "pangoft2" ; then | |
25534 | echo "$as_me:$LINENO: result: yes" >&5 | |
25535 | echo "${ECHO_T}yes" >&6 | |
25536 | succeeded=yes | |
25537 | ||
25538 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
25539 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
25540 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
25541 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
25542 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
25543 | ||
25544 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
25545 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
25546 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
25547 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
25548 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
25549 | else | |
25550 | PANGOFT2_CFLAGS="" | |
25551 | PANGOFT2_LIBS="" | |
25552 | ## If we have a custom action on failure, don't print errors, but | |
25553 | ## do set a variable so people can do so. | |
25554 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25555 | ||
25556 | fi | |
25557 | ||
25558 | ||
25559 | ||
25560 | else | |
25561 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25562 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25563 | fi | |
25564 | fi | |
25565 | ||
25566 | if test $succeeded = yes; then | |
25567 | ||
25568 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
25569 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
25570 | ||
25571 | else | |
25572 | ||
25573 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
25574 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
25575 | wxUSE_PRINTING_ARCHITECTURE="no" | |
25576 | ||
25577 | ||
25578 | fi | |
25579 | ||
25580 | ||
25581 | succeeded=no | |
25582 | ||
25583 | if test -z "$PKG_CONFIG"; then | |
25584 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25585 | set dummy pkg-config; ac_word=$2 | |
25586 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25588 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25590 | else | |
25591 | case $PKG_CONFIG in | |
25592 | [\\/]* | ?:[\\/]*) | |
25593 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25594 | ;; | |
25595 | *) | |
25596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25597 | for as_dir in $PATH | |
25598 | do | |
25599 | IFS=$as_save_IFS | |
25600 | test -z "$as_dir" && as_dir=. | |
25601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25603 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25605 | break 2 | |
25606 | fi | |
25607 | done | |
25608 | done | |
25609 | ||
25610 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25611 | ;; | |
25612 | esac | |
25613 | fi | |
25614 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25615 | ||
25616 | if test -n "$PKG_CONFIG"; then | |
25617 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25618 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25619 | else | |
25620 | echo "$as_me:$LINENO: result: no" >&5 | |
25621 | echo "${ECHO_T}no" >&6 | |
25622 | fi | |
25623 | ||
25624 | fi | |
25625 | ||
25626 | if test "$PKG_CONFIG" = "no" ; then | |
25627 | echo "*** The pkg-config script could not be found. Make sure it is" | |
25628 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
25629 | echo "*** to the full path to pkg-config." | |
25630 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
25631 | else | |
25632 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
25633 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
25634 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
25635 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
25636 | ||
25637 | if $PKG_CONFIG --exists "pangoxft" ; then | |
25638 | echo "$as_me:$LINENO: result: yes" >&5 | |
25639 | echo "${ECHO_T}yes" >&6 | |
25640 | succeeded=yes | |
25641 | ||
25642 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
25643 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
25644 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
25645 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
25646 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
25647 | ||
25648 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
25649 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
25650 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
25651 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
25652 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
25653 | else | |
25654 | PANGOXFT_CFLAGS="" | |
25655 | PANGOXFT_LIBS="" | |
25656 | ## If we have a custom action on failure, don't print errors, but | |
25657 | ## do set a variable so people can do so. | |
25658 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
25659 | ||
25660 | fi | |
25661 | ||
25662 | ||
25663 | ||
25664 | else | |
25665 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
25666 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
25667 | fi | |
25668 | fi | |
25669 | ||
25670 | if test $succeeded = yes; then | |
25671 | ||
25672 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
25673 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
25674 | ||
25675 | else | |
25676 | ||
25677 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
25678 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
25679 | ||
25680 | ||
25681 | fi | |
25682 | ||
304205f1 VS |
25683 | save_CFLAGS="$CFLAGS" |
25684 | save_LIBS="$LIBS" | |
25685 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
25686 | LIBS="$LIBS $PANGOX_LIBS" | |
25687 | ||
25688 | for ac_func in pango_font_family_is_monospace | |
25689 | do | |
25690 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
25691 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25692 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25693 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25695 | else | |
25696 | cat >conftest.$ac_ext <<_ACEOF | |
25697 | /* confdefs.h. */ | |
25698 | _ACEOF | |
25699 | cat confdefs.h >>conftest.$ac_ext | |
25700 | cat >>conftest.$ac_ext <<_ACEOF | |
25701 | /* end confdefs.h. */ | |
25702 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
25703 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
25704 | #define $ac_func innocuous_$ac_func | |
25705 | ||
25706 | /* System header to define __stub macros and hopefully few prototypes, | |
25707 | which can conflict with char $ac_func (); below. | |
25708 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25709 | <limits.h> exists even on freestanding compilers. */ | |
25710 | ||
25711 | #ifdef __STDC__ | |
25712 | # include <limits.h> | |
25713 | #else | |
25714 | # include <assert.h> | |
25715 | #endif | |
25716 | ||
25717 | #undef $ac_func | |
25718 | ||
25719 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25720 | #ifdef __cplusplus | |
25721 | extern "C" | |
25722 | { | |
25723 | #endif | |
25724 | /* We use char because int might match the return type of a gcc2 | |
25725 | builtin and then its argument prototype would still apply. */ | |
25726 | char $ac_func (); | |
25727 | /* The GNU C library defines this for functions which it implements | |
25728 | to always fail with ENOSYS. Some functions are actually named | |
25729 | something starting with __ and the normal name is an alias. */ | |
25730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25731 | choke me | |
25732 | #else | |
25733 | char (*f) () = $ac_func; | |
25734 | #endif | |
25735 | #ifdef __cplusplus | |
25736 | } | |
25737 | #endif | |
25738 | ||
25739 | int | |
25740 | main () | |
25741 | { | |
25742 | return f != $ac_func; | |
25743 | ; | |
25744 | return 0; | |
25745 | } | |
25746 | _ACEOF | |
25747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25749 | (eval $ac_link) 2>conftest.er1 | |
25750 | ac_status=$? | |
25751 | grep -v '^ *+' conftest.er1 >conftest.err | |
25752 | rm -f conftest.er1 | |
25753 | cat conftest.err >&5 | |
25754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25755 | (exit $ac_status); } && | |
d1c38808 | 25756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
25757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25758 | (eval $ac_try) 2>&5 | |
25759 | ac_status=$? | |
25760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25761 | (exit $ac_status); }; } && | |
25762 | { ac_try='test -s conftest$ac_exeext' | |
25763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25764 | (eval $ac_try) 2>&5 | |
25765 | ac_status=$? | |
25766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25767 | (exit $ac_status); }; }; then | |
25768 | eval "$as_ac_var=yes" | |
25769 | else | |
25770 | echo "$as_me: failed program was:" >&5 | |
25771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25772 | ||
25773 | eval "$as_ac_var=no" | |
25774 | fi | |
25775 | rm -f conftest.err conftest.$ac_objext \ | |
25776 | conftest$ac_exeext conftest.$ac_ext | |
25777 | fi | |
25778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25779 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25780 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25781 | cat >>confdefs.h <<_ACEOF | |
25782 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25783 | _ACEOF | |
25784 | ||
25785 | fi | |
25786 | done | |
25787 | ||
25788 | CFLAGS="$save_CFLAGS" | |
25789 | LIBS="$save_LIBS" | |
a848cd7e SC |
25790 | fi |
25791 | ||
25792 | wxUSE_UNIVERSAL="yes" | |
25793 | ||
25794 | if test "$wxUSE_NANOX" = "yes"; then | |
25795 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25796 | 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" | |
25797 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25798 | else | |
25799 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25800 | fi | |
25801 | ||
a848cd7e SC |
25802 | TOOLKIT=X11 |
25803 | GUIDIST=X11_DIST | |
25804 | fi | |
25805 | ||
25806 | if test "$wxUSE_MOTIF" = 1; then | |
74b84332 VS |
25807 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
25808 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 25809 | |
74b84332 VS |
25810 | ac_find_includes= |
25811 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25812 | do | |
25813 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25814 | ac_find_includes=$ac_dir | |
25815 | break | |
25816 | fi | |
25817 | done | |
a848cd7e | 25818 | |
74b84332 VS |
25819 | if test "$ac_find_includes" != "" ; then |
25820 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25821 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
25822 | ||
25823 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25824 | ac_path_to_include="" | |
25825 | else | |
25826 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25827 | result=$? | |
25828 | if test $result = 0; then | |
25829 | ac_path_to_include="" | |
25830 | else | |
25831 | ac_path_to_include=" -I$ac_find_includes" | |
25832 | fi | |
a848cd7e SC |
25833 | fi |
25834 | ||
74b84332 VS |
25835 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25836 | else | |
25837 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25838 | /* confdefs.h. */ |
25839 | _ACEOF | |
25840 | cat confdefs.h >>conftest.$ac_ext | |
25841 | cat >>conftest.$ac_ext <<_ACEOF | |
25842 | /* end confdefs.h. */ | |
25843 | ||
74b84332 VS |
25844 | #include <Xm/Xm.h> |
25845 | ||
a848cd7e SC |
25846 | int |
25847 | main () | |
25848 | { | |
25849 | ||
74b84332 VS |
25850 | int version; |
25851 | version = xmUseVersion; | |
25852 | ||
a848cd7e SC |
25853 | ; |
25854 | return 0; | |
25855 | } | |
25856 | _ACEOF | |
74b84332 VS |
25857 | rm -f conftest.$ac_objext |
25858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25859 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25860 | ac_status=$? |
ac1cb8d3 VS |
25861 | grep -v '^ *+' conftest.er1 >conftest.err |
25862 | rm -f conftest.er1 | |
25863 | cat conftest.err >&5 | |
a848cd7e SC |
25864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25865 | (exit $ac_status); } && | |
d1c38808 | 25866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25868 | (eval $ac_try) 2>&5 | |
25869 | ac_status=$? | |
25870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25871 | (exit $ac_status); }; } && | |
74b84332 | 25872 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25874 | (eval $ac_try) 2>&5 | |
25875 | ac_status=$? | |
25876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25877 | (exit $ac_status); }; }; then | |
74b84332 VS |
25878 | |
25879 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25880 | echo "${ECHO_T}found in default search path" >&6 | |
25881 | COMPILED_X_PROGRAM=1 | |
25882 | ||
a848cd7e SC |
25883 | else |
25884 | echo "$as_me: failed program was:" >&5 | |
25885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25886 | ||
a848cd7e | 25887 | |
74b84332 VS |
25888 | echo "$as_me:$LINENO: result: no" >&5 |
25889 | echo "${ECHO_T}no" >&6 | |
25890 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
25891 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
25892 | { (exit 1); exit 1; }; } | |
a848cd7e | 25893 | |
a848cd7e | 25894 | |
a848cd7e | 25895 | fi |
74b84332 VS |
25896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25897 | fi | |
25898 | ||
25899 | if test "$COMPILED_X_PROGRAM" = 0; then | |
25900 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
25901 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
25902 | ||
25903 | ac_find_libraries= | |
25904 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25905 | do | |
25906 | for ac_extension in a so sl dylib; do | |
25907 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
25908 | ac_find_libraries=$ac_dir | |
25909 | break 2 | |
a848cd7e | 25910 | fi |
74b84332 VS |
25911 | done |
25912 | done | |
a848cd7e | 25913 | |
74b84332 VS |
25914 | if test "$ac_find_libraries" != "" ; then |
25915 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25916 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
a848cd7e | 25917 | |
74b84332 VS |
25918 | |
25919 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25920 | result=$? | |
25921 | if test $result = 0; then | |
25922 | ac_path_to_link="" | |
a848cd7e | 25923 | else |
74b84332 VS |
25924 | ac_path_to_link=" -L$ac_find_libraries" |
25925 | fi | |
25926 | ||
25927 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25928 | else | |
25929 | save_CFLAGS=$CFLAGS | |
25930 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25931 | ||
25932 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
25933 | /* confdefs.h. */ |
25934 | _ACEOF | |
25935 | cat confdefs.h >>conftest.$ac_ext | |
25936 | cat >>conftest.$ac_ext <<_ACEOF | |
25937 | /* end confdefs.h. */ | |
25938 | ||
74b84332 VS |
25939 | #include <Xm/Xm.h> |
25940 | ||
a848cd7e SC |
25941 | int |
25942 | main () | |
25943 | { | |
74b84332 VS |
25944 | |
25945 | int version; | |
25946 | version = xmUseVersion; | |
25947 | ||
a848cd7e SC |
25948 | ; |
25949 | return 0; | |
25950 | } | |
25951 | _ACEOF | |
74b84332 VS |
25952 | rm -f conftest.$ac_objext |
25953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25954 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 25955 | ac_status=$? |
ac1cb8d3 VS |
25956 | grep -v '^ *+' conftest.er1 >conftest.err |
25957 | rm -f conftest.er1 | |
25958 | cat conftest.err >&5 | |
a848cd7e SC |
25959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25960 | (exit $ac_status); } && | |
d1c38808 | 25961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25963 | (eval $ac_try) 2>&5 | |
25964 | ac_status=$? | |
25965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25966 | (exit $ac_status); }; } && | |
74b84332 | 25967 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25969 | (eval $ac_try) 2>&5 | |
25970 | ac_status=$? | |
25971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25972 | (exit $ac_status); }; }; then | |
74b84332 VS |
25973 | |
25974 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
25975 | echo "${ECHO_T}found in default search path" >&6 | |
25976 | COMPILED_X_PROGRAM=1 | |
25977 | ||
a848cd7e SC |
25978 | else |
25979 | echo "$as_me: failed program was:" >&5 | |
25980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25981 | ||
74b84332 VS |
25982 | |
25983 | echo "$as_me:$LINENO: result: no" >&5 | |
25984 | echo "${ECHO_T}no" >&6 | |
25985 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
25986 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
25987 | { (exit 1); exit 1; }; } | |
25988 | ||
25989 | ||
25990 | fi | |
25991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25992 | ||
25993 | CFLAGS=$save_CFLAGS | |
25994 | fi | |
25995 | fi | |
25996 | ||
25997 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
25998 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
25999 | libp_link="" | |
26000 | libsm_ice_link="" | |
26001 | libs_found=0 | |
26002 | for libp in "" " -lXp"; do | |
26003 | if test "$libs_found" = "0"; then | |
26004 | for libsm_ice in "" " -lSM -lICE"; do | |
26005 | if test "$libs_found" = "0"; then | |
26006 | save_LIBS="$LIBS" | |
26007 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
26008 | save_CFLAGS=$CFLAGS | |
26009 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26010 | ||
26011 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
26012 | /* confdefs.h. */ |
26013 | _ACEOF | |
26014 | cat confdefs.h >>conftest.$ac_ext | |
26015 | cat >>conftest.$ac_ext <<_ACEOF | |
26016 | /* end confdefs.h. */ | |
26017 | ||
74b84332 VS |
26018 | #include <Xm/Xm.h> |
26019 | #include <Xm/List.h> | |
26020 | ||
a848cd7e SC |
26021 | int |
26022 | main () | |
26023 | { | |
74b84332 VS |
26024 | |
26025 | XmString string = NULL; | |
26026 | Widget w = NULL; | |
26027 | int position = 0; | |
26028 | XmListAddItem(w, string, position); | |
26029 | ||
a848cd7e SC |
26030 | ; |
26031 | return 0; | |
26032 | } | |
26033 | _ACEOF | |
26034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26036 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26037 | ac_status=$? |
ac1cb8d3 VS |
26038 | grep -v '^ *+' conftest.er1 >conftest.err |
26039 | rm -f conftest.er1 | |
26040 | cat conftest.err >&5 | |
a848cd7e SC |
26041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26042 | (exit $ac_status); } && | |
d1c38808 | 26043 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26045 | (eval $ac_try) 2>&5 | |
26046 | ac_status=$? | |
26047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26048 | (exit $ac_status); }; } && | |
26049 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26051 | (eval $ac_try) 2>&5 | |
26052 | ac_status=$? | |
26053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26054 | (exit $ac_status); }; }; then | |
26055 | ||
26056 | libp_link="$libp" | |
26057 | libsm_ice_link="$libsm_ice" | |
26058 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
26059 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
26060 | libs_found=1 | |
26061 | ||
26062 | else | |
26063 | echo "$as_me: failed program was:" >&5 | |
26064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26065 | ||
26066 | ||
26067 | ||
26068 | fi | |
ac1cb8d3 VS |
26069 | rm -f conftest.err conftest.$ac_objext \ |
26070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26071 | |
26072 | LIBS="$save_LIBS" | |
26073 | CFLAGS=$save_CFLAGS | |
26074 | fi | |
26075 | done | |
26076 | fi | |
26077 | done | |
26078 | ||
26079 | if test "$libs_found" = "0"; then | |
26080 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
26081 | echo "${ECHO_T}can't find the right libraries" >&6 | |
26082 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
26083 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
26084 | { (exit 1); exit 1; }; } | |
26085 | fi | |
26086 | ||
26087 | save_CFLAGS=$CFLAGS | |
26088 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26089 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
26090 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
26091 | cat >conftest.$ac_ext <<_ACEOF | |
26092 | /* confdefs.h. */ | |
26093 | _ACEOF | |
26094 | cat confdefs.h >>conftest.$ac_ext | |
26095 | cat >>conftest.$ac_ext <<_ACEOF | |
26096 | /* end confdefs.h. */ | |
26097 | ||
26098 | #include <Xm/Xm.h> | |
26099 | ||
26100 | int | |
26101 | main () | |
26102 | { | |
26103 | ||
26104 | #if XmVersion < 2000 | |
26105 | #error "Not Motif 2" | |
26106 | #endif | |
26107 | ||
26108 | ; | |
26109 | return 0; | |
26110 | } | |
26111 | _ACEOF | |
26112 | rm -f conftest.$ac_objext | |
26113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26115 | ac_status=$? |
ac1cb8d3 VS |
26116 | grep -v '^ *+' conftest.er1 >conftest.err |
26117 | rm -f conftest.er1 | |
26118 | cat conftest.err >&5 | |
a848cd7e SC |
26119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26120 | (exit $ac_status); } && | |
d1c38808 | 26121 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26123 | (eval $ac_try) 2>&5 | |
26124 | ac_status=$? | |
26125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26126 | (exit $ac_status); }; } && | |
26127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26129 | (eval $ac_try) 2>&5 | |
26130 | ac_status=$? | |
26131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26132 | (exit $ac_status); }; }; then | |
26133 | ||
26134 | cat >>confdefs.h <<\_ACEOF | |
26135 | #define __WXMOTIF20__ 1 | |
26136 | _ACEOF | |
26137 | ||
26138 | echo "$as_me:$LINENO: result: found" >&5 | |
26139 | echo "${ECHO_T}found" >&6 | |
26140 | ||
26141 | else | |
26142 | echo "$as_me: failed program was:" >&5 | |
26143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26144 | ||
26145 | ||
26146 | cat >>confdefs.h <<\_ACEOF | |
26147 | #define __WXMOTIF20__ 0 | |
26148 | _ACEOF | |
26149 | ||
26150 | echo "$as_me:$LINENO: result: not found" >&5 | |
26151 | echo "${ECHO_T}not found" >&6 | |
26152 | ||
26153 | fi | |
ac1cb8d3 | 26154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26155 | CFLAGS=$save_CFLAGS |
26156 | ||
26157 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
a848cd7e SC |
26158 | TOOLKIT=MOTIF |
26159 | GUIDIST=MOTIF_DIST | |
26160 | fi | |
26161 | ||
74b84332 | 26162 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
26163 | if test "$wxUSE_LIBXPM" = "sys"; then |
26164 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
26165 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
26166 | ||
26167 | ac_find_libraries= | |
26168 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26169 | do | |
26170 | for ac_extension in a so sl dylib; do | |
26171 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
26172 | ac_find_libraries=$ac_dir | |
26173 | break 2 | |
26174 | fi | |
26175 | done | |
26176 | done | |
26177 | ||
26178 | if test "$ac_find_libraries" != "" ; then | |
26179 | ||
26180 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
26181 | result=$? | |
26182 | if test $result = 0; then | |
26183 | ac_path_to_link="" | |
26184 | else | |
26185 | ac_path_to_link=" -L$ac_find_libraries" | |
26186 | fi | |
26187 | ||
26188 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
26189 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
26190 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
26191 | ||
26192 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
26193 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
26194 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
26195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26196 | else | |
26197 | ||
26198 | save_CFLAGS=$CFLAGS | |
26199 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26200 | ||
26201 | cat >conftest.$ac_ext <<_ACEOF | |
26202 | /* confdefs.h. */ | |
26203 | _ACEOF | |
26204 | cat confdefs.h >>conftest.$ac_ext | |
26205 | cat >>conftest.$ac_ext <<_ACEOF | |
26206 | /* end confdefs.h. */ | |
26207 | ||
26208 | #include <X11/xpm.h> | |
26209 | ||
26210 | int | |
26211 | main () | |
26212 | { | |
26213 | ||
26214 | int version; | |
26215 | version = XpmLibraryVersion(); | |
26216 | ||
26217 | ; | |
26218 | return 0; | |
26219 | } | |
26220 | _ACEOF | |
26221 | rm -f conftest.$ac_objext | |
26222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26223 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26224 | ac_status=$? |
ac1cb8d3 VS |
26225 | grep -v '^ *+' conftest.er1 >conftest.err |
26226 | rm -f conftest.er1 | |
26227 | cat conftest.err >&5 | |
a848cd7e SC |
26228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26229 | (exit $ac_status); } && | |
d1c38808 | 26230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26232 | (eval $ac_try) 2>&5 | |
26233 | ac_status=$? | |
26234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26235 | (exit $ac_status); }; } && | |
26236 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26238 | (eval $ac_try) 2>&5 | |
26239 | ac_status=$? | |
26240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26241 | (exit $ac_status); }; }; then | |
26242 | wx_cv_x11_xpm_h=yes | |
26243 | else | |
26244 | echo "$as_me: failed program was:" >&5 | |
26245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26246 | ||
26247 | wx_cv_x11_xpm_h=no | |
26248 | ||
26249 | fi | |
ac1cb8d3 | 26250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26251 | |
26252 | CFLAGS=$save_CFLAGS | |
26253 | ||
26254 | ||
26255 | fi | |
26256 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
26257 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
26258 | ||
26259 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26260 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
26261 | cat >>confdefs.h <<\_ACEOF | |
26262 | #define wxHAVE_LIB_XPM 1 | |
26263 | _ACEOF | |
26264 | ||
26265 | else | |
26266 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
26267 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
26268 | fi | |
26269 | fi | |
26270 | ||
26271 | fi | |
26272 | ||
26273 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
26274 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
26275 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
26276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26277 | else | |
26278 | ac_check_lib_save_LIBS=$LIBS | |
26279 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
26280 | cat >conftest.$ac_ext <<_ACEOF | |
26281 | /* confdefs.h. */ | |
26282 | _ACEOF | |
26283 | cat confdefs.h >>conftest.$ac_ext | |
26284 | cat >>conftest.$ac_ext <<_ACEOF | |
26285 | /* end confdefs.h. */ | |
26286 | ||
26287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26288 | #ifdef __cplusplus | |
26289 | extern "C" | |
26290 | #endif | |
26291 | /* We use char because int might match the return type of a gcc2 | |
26292 | builtin and then its argument prototype would still apply. */ | |
26293 | char XShapeQueryExtension (); | |
26294 | int | |
26295 | main () | |
26296 | { | |
26297 | XShapeQueryExtension (); | |
26298 | ; | |
26299 | return 0; | |
26300 | } | |
26301 | _ACEOF | |
26302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26305 | ac_status=$? |
ac1cb8d3 VS |
26306 | grep -v '^ *+' conftest.er1 >conftest.err |
26307 | rm -f conftest.er1 | |
26308 | cat conftest.err >&5 | |
a848cd7e SC |
26309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26310 | (exit $ac_status); } && | |
d1c38808 | 26311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26313 | (eval $ac_try) 2>&5 | |
26314 | ac_status=$? | |
26315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26316 | (exit $ac_status); }; } && | |
26317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26319 | (eval $ac_try) 2>&5 | |
26320 | ac_status=$? | |
26321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26322 | (exit $ac_status); }; }; then | |
26323 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
26324 | else | |
26325 | echo "$as_me: failed program was:" >&5 | |
26326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26327 | ||
26328 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
26329 | fi | |
ac1cb8d3 VS |
26330 | rm -f conftest.err conftest.$ac_objext \ |
26331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26332 | LIBS=$ac_check_lib_save_LIBS |
26333 | fi | |
26334 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
26335 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
26336 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
26337 | ||
26338 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26339 | wxHAVE_XEXT_LIB=1 | |
26340 | ||
26341 | fi | |
26342 | ||
26343 | ||
26344 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
26345 | save_CFLAGS="$CFLAGS" | |
26346 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
26347 | ||
26348 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
26349 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
26350 | cat >conftest.$ac_ext <<_ACEOF | |
26351 | /* confdefs.h. */ | |
26352 | _ACEOF | |
26353 | cat confdefs.h >>conftest.$ac_ext | |
26354 | cat >>conftest.$ac_ext <<_ACEOF | |
26355 | /* end confdefs.h. */ | |
26356 | ||
26357 | #include <X11/Xlib.h> | |
26358 | #include <X11/extensions/shape.h> | |
26359 | ||
26360 | int | |
26361 | main () | |
26362 | { | |
26363 | ||
26364 | int dummy1, dummy2; | |
26365 | XShapeQueryExtension((Display*)NULL, | |
26366 | (int*)NULL, (int*)NULL); | |
26367 | ||
26368 | ; | |
26369 | return 0; | |
26370 | } | |
26371 | _ACEOF | |
26372 | rm -f conftest.$ac_objext | |
26373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26374 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26375 | ac_status=$? |
ac1cb8d3 VS |
26376 | grep -v '^ *+' conftest.er1 >conftest.err |
26377 | rm -f conftest.er1 | |
26378 | cat conftest.err >&5 | |
a848cd7e SC |
26379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26380 | (exit $ac_status); } && | |
d1c38808 | 26381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26383 | (eval $ac_try) 2>&5 | |
26384 | ac_status=$? | |
26385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26386 | (exit $ac_status); }; } && | |
26387 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26389 | (eval $ac_try) 2>&5 | |
26390 | ac_status=$? | |
26391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26392 | (exit $ac_status); }; }; then | |
26393 | ||
26394 | cat >>confdefs.h <<\_ACEOF | |
26395 | #define HAVE_XSHAPE 1 | |
26396 | _ACEOF | |
26397 | ||
26398 | echo "$as_me:$LINENO: result: found" >&5 | |
26399 | echo "${ECHO_T}found" >&6 | |
26400 | ||
26401 | else | |
26402 | echo "$as_me: failed program was:" >&5 | |
26403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26404 | ||
26405 | ||
26406 | echo "$as_me:$LINENO: result: not found" >&5 | |
26407 | echo "${ECHO_T}not found" >&6 | |
26408 | ||
26409 | fi | |
ac1cb8d3 | 26410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26411 | CFLAGS="$save_CFLAGS" |
26412 | ||
26413 | fi | |
26414 | fi | |
26415 | ||
26416 | if test "$wxUSE_MAC" = 1; then | |
26417 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
26418 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
26419 | if test "$GCC" = yes; then | |
26420 | echo "$as_me:$LINENO: result: gcc" >&5 | |
26421 | echo "${ECHO_T}gcc" >&6 | |
26422 | CPPFLAGS_PASCAL="-fpascal-strings" | |
26423 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
26424 | echo "$as_me:$LINENO: result: xlc" >&5 | |
26425 | echo "${ECHO_T}xlc" >&6 | |
26426 | CPPFLAGS_PASCAL="-qmacpstr" | |
26427 | else | |
26428 | echo "$as_me:$LINENO: result: none" >&5 | |
26429 | echo "${ECHO_T}none" >&6 | |
26430 | fi | |
26431 | ||
26432 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
26433 | ||
a848cd7e SC |
26434 | TOOLKIT=MAC |
26435 | GUIDIST=MACX_DIST | |
dd21ced8 | 26436 | WXBASEPORT="_carbon" |
a848cd7e SC |
26437 | fi |
26438 | ||
26439 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
26440 | TOOLKIT=COCOA |
26441 | GUIDIST=COCOA_DIST | |
26442 | fi | |
26443 | ||
26444 | if test "$wxUSE_PM" = 1; then | |
26445 | TOOLKIT=PM | |
de59c161 RD |
26446 | GUIDIST=PM_DIST |
26447 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
26448 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
26449 | if test "${wx_cv_spbcdata+set}" = set; then | |
26450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26451 | else | |
26452 | ||
26453 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
26454 | /* confdefs.h. */ |
26455 | _ACEOF | |
26456 | cat confdefs.h >>conftest.$ac_ext | |
26457 | cat >>conftest.$ac_ext <<_ACEOF | |
26458 | /* end confdefs.h. */ | |
26459 | ||
26460 | #define INCL_PM | |
26461 | #include <os2.h> | |
26462 | ||
26463 | int | |
26464 | main () | |
26465 | { | |
26466 | ||
26467 | SPBCDATA test; | |
26468 | ||
26469 | ; | |
26470 | return 0; | |
26471 | } | |
26472 | _ACEOF | |
26473 | rm -f conftest.$ac_objext | |
26474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26475 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 26476 | ac_status=$? |
ac1cb8d3 VS |
26477 | grep -v '^ *+' conftest.er1 >conftest.err |
26478 | rm -f conftest.er1 | |
26479 | cat conftest.err >&5 | |
de59c161 RD |
26480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26481 | (exit $ac_status); } && | |
d1c38808 | 26482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26484 | (eval $ac_try) 2>&5 | |
26485 | ac_status=$? | |
26486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26487 | (exit $ac_status); }; } && | |
26488 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
26489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26490 | (eval $ac_try) 2>&5 | |
26491 | ac_status=$? | |
26492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26493 | (exit $ac_status); }; }; then | |
26494 | wx_cv_spbcdata=yes | |
26495 | else | |
26496 | echo "$as_me: failed program was:" >&5 | |
26497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26498 | ||
26499 | wx_cv_spbcdata=no | |
26500 | ||
26501 | fi | |
ac1cb8d3 | 26502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26503 | |
26504 | ||
26505 | fi | |
26506 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
26507 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
26508 | ||
26509 | if test $wx_cv_spbcdata = "yes"; then | |
26510 | cat >>confdefs.h <<\_ACEOF | |
26511 | #define HAVE_SPBCDATA 1 | |
26512 | _ACEOF | |
26513 | ||
26514 | fi | |
a848cd7e SC |
26515 | fi |
26516 | ||
26517 | if test "$TOOLKIT" = "PM" ; then | |
26518 | TOOLKIT_DIR="os2" | |
26519 | else | |
26520 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
26521 | fi | |
26522 | ||
a848cd7e | 26523 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26524 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26525 | WIDGET_SET=univ | |
a848cd7e SC |
26526 | fi |
26527 | ||
26528 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26529 | DISTDIR="wx\$(TOOLKIT)" | |
26530 | else | |
26531 | USE_GUI=0 | |
26532 | ||
26533 | TOOLKIT_DIR="base" | |
26534 | ||
26535 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26536 | TOOLKIT="MSW" |
a848cd7e SC |
26537 | fi |
26538 | ||
a848cd7e SC |
26539 | GUIDIST="BASE_DIST" |
26540 | DISTDIR="wxBase" | |
26541 | fi | |
26542 | ||
26543 | ||
26544 | ||
26545 | ||
26546 | IODBC_C_SRC="" | |
26547 | ||
26548 | ||
26549 | if test "$TOOLKIT" != "MSW" ; then | |
26550 | ||
26551 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
26552 | ||
26553 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26554 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26555 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26556 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26558 | fi | |
26559 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26560 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26561 | else | |
26562 | # Is the header compilable? | |
26563 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
26564 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
26565 | cat >conftest.$ac_ext <<_ACEOF | |
26566 | /* confdefs.h. */ | |
26567 | _ACEOF | |
26568 | cat confdefs.h >>conftest.$ac_ext | |
26569 | cat >>conftest.$ac_ext <<_ACEOF | |
26570 | /* end confdefs.h. */ | |
26571 | $ac_includes_default | |
26572 | #include <sql.h> | |
26573 | _ACEOF | |
26574 | rm -f conftest.$ac_objext | |
26575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26577 | ac_status=$? |
ac1cb8d3 VS |
26578 | grep -v '^ *+' conftest.er1 >conftest.err |
26579 | rm -f conftest.er1 | |
26580 | cat conftest.err >&5 | |
a848cd7e SC |
26581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26582 | (exit $ac_status); } && | |
d1c38808 | 26583 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26585 | (eval $ac_try) 2>&5 | |
26586 | ac_status=$? | |
26587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26588 | (exit $ac_status); }; } && | |
26589 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26591 | (eval $ac_try) 2>&5 | |
26592 | ac_status=$? | |
26593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26594 | (exit $ac_status); }; }; then | |
26595 | ac_header_compiler=yes | |
26596 | else | |
26597 | echo "$as_me: failed program was:" >&5 | |
26598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26599 | ||
26600 | ac_header_compiler=no | |
26601 | fi | |
ac1cb8d3 | 26602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26603 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26604 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26605 | ||
26606 | # Is the header present? | |
26607 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
26608 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
26609 | cat >conftest.$ac_ext <<_ACEOF | |
26610 | /* confdefs.h. */ | |
26611 | _ACEOF | |
26612 | cat confdefs.h >>conftest.$ac_ext | |
26613 | cat >>conftest.$ac_ext <<_ACEOF | |
26614 | /* end confdefs.h. */ | |
26615 | #include <sql.h> | |
26616 | _ACEOF | |
26617 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26618 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26619 | ac_status=$? | |
26620 | grep -v '^ *+' conftest.er1 >conftest.err | |
26621 | rm -f conftest.er1 | |
26622 | cat conftest.err >&5 | |
26623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26624 | (exit $ac_status); } >/dev/null; then | |
26625 | if test -s conftest.err; then | |
26626 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26627 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26628 | else |
26629 | ac_cpp_err= | |
26630 | fi | |
26631 | else | |
26632 | ac_cpp_err=yes | |
26633 | fi | |
26634 | if test -z "$ac_cpp_err"; then | |
26635 | ac_header_preproc=yes | |
26636 | else | |
26637 | echo "$as_me: failed program was:" >&5 | |
26638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26639 | ||
26640 | ac_header_preproc=no | |
26641 | fi | |
26642 | rm -f conftest.err conftest.$ac_ext | |
26643 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26644 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26645 | ||
26646 | # So? What about this header? | |
ac1cb8d3 VS |
26647 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26648 | yes:no: ) | |
a848cd7e SC |
26649 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26650 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26651 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
26652 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
26653 | ac_header_preproc=yes | |
a848cd7e | 26654 | ;; |
ac1cb8d3 | 26655 | no:yes:* ) |
a848cd7e SC |
26656 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
26657 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26658 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
26659 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
26660 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
26661 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
26662 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26663 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26664 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
26665 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26666 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
26667 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26668 | ( |
26669 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26670 | ## ----------------------------------------- ## |
26671 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26672 | ## ----------------------------------------- ## | |
a848cd7e SC |
26673 | _ASBOX |
26674 | ) | | |
26675 | sed "s/^/$as_me: WARNING: /" >&2 | |
26676 | ;; | |
26677 | esac | |
26678 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
26679 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
26680 | if test "${ac_cv_header_sql_h+set}" = set; then | |
26681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26682 | else | |
26683 | ac_cv_header_sql_h=$ac_header_preproc | |
26684 | fi | |
26685 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
26686 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
26687 | ||
26688 | fi | |
26689 | if test $ac_cv_header_sql_h = yes; then | |
26690 | found_sql_h=1 | |
26691 | fi | |
26692 | ||
26693 | ||
26694 | if test "x$found_sql_h" = "x1" ; then | |
26695 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
26696 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
26697 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
26698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26699 | else | |
26700 | ac_check_lib_save_LIBS=$LIBS | |
26701 | LIBS="-liodbc $LIBS" | |
26702 | cat >conftest.$ac_ext <<_ACEOF | |
26703 | /* confdefs.h. */ | |
26704 | _ACEOF | |
26705 | cat confdefs.h >>conftest.$ac_ext | |
26706 | cat >>conftest.$ac_ext <<_ACEOF | |
26707 | /* end confdefs.h. */ | |
26708 | ||
26709 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26710 | #ifdef __cplusplus | |
26711 | extern "C" | |
26712 | #endif | |
26713 | /* We use char because int might match the return type of a gcc2 | |
26714 | builtin and then its argument prototype would still apply. */ | |
26715 | char SQLAllocEnv (); | |
26716 | int | |
26717 | main () | |
26718 | { | |
26719 | SQLAllocEnv (); | |
26720 | ; | |
26721 | return 0; | |
26722 | } | |
26723 | _ACEOF | |
26724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26726 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26727 | ac_status=$? |
ac1cb8d3 VS |
26728 | grep -v '^ *+' conftest.er1 >conftest.err |
26729 | rm -f conftest.er1 | |
26730 | cat conftest.err >&5 | |
a848cd7e SC |
26731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26732 | (exit $ac_status); } && | |
d1c38808 | 26733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26735 | (eval $ac_try) 2>&5 | |
26736 | ac_status=$? | |
26737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26738 | (exit $ac_status); }; } && | |
26739 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26741 | (eval $ac_try) 2>&5 | |
26742 | ac_status=$? | |
26743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26744 | (exit $ac_status); }; }; then | |
26745 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
26746 | else | |
26747 | echo "$as_me: failed program was:" >&5 | |
26748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26749 | ||
26750 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
26751 | fi | |
ac1cb8d3 VS |
26752 | rm -f conftest.err conftest.$ac_objext \ |
26753 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26754 | LIBS=$ac_check_lib_save_LIBS |
26755 | fi | |
26756 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
26757 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
26758 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
26759 | ODBC_LINK=" -liodbc" | |
26760 | else | |
26761 | ||
26762 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
26763 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
26764 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
26765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26766 | else | |
26767 | ac_check_lib_save_LIBS=$LIBS | |
26768 | LIBS="-lunixodbc $LIBS" | |
26769 | cat >conftest.$ac_ext <<_ACEOF | |
26770 | /* confdefs.h. */ | |
26771 | _ACEOF | |
26772 | cat confdefs.h >>conftest.$ac_ext | |
26773 | cat >>conftest.$ac_ext <<_ACEOF | |
26774 | /* end confdefs.h. */ | |
26775 | ||
26776 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26777 | #ifdef __cplusplus | |
26778 | extern "C" | |
26779 | #endif | |
26780 | /* We use char because int might match the return type of a gcc2 | |
26781 | builtin and then its argument prototype would still apply. */ | |
26782 | char SQLAllocEnv (); | |
26783 | int | |
26784 | main () | |
26785 | { | |
26786 | SQLAllocEnv (); | |
26787 | ; | |
26788 | return 0; | |
26789 | } | |
26790 | _ACEOF | |
26791 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26793 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26794 | ac_status=$? |
ac1cb8d3 VS |
26795 | grep -v '^ *+' conftest.er1 >conftest.err |
26796 | rm -f conftest.er1 | |
26797 | cat conftest.err >&5 | |
a848cd7e SC |
26798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26799 | (exit $ac_status); } && | |
d1c38808 | 26800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26802 | (eval $ac_try) 2>&5 | |
26803 | ac_status=$? | |
26804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26805 | (exit $ac_status); }; } && | |
26806 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26808 | (eval $ac_try) 2>&5 | |
26809 | ac_status=$? | |
26810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26811 | (exit $ac_status); }; }; then | |
26812 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
26813 | else | |
26814 | echo "$as_me: failed program was:" >&5 | |
26815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26816 | ||
26817 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
26818 | fi | |
ac1cb8d3 VS |
26819 | rm -f conftest.err conftest.$ac_objext \ |
26820 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26821 | LIBS=$ac_check_lib_save_LIBS |
26822 | fi | |
26823 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
26824 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
26825 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
26826 | ODBC_LINK=" -lunixodbc" | |
26827 | else | |
26828 | ||
26829 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
26830 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
26831 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
26832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26833 | else | |
26834 | ac_check_lib_save_LIBS=$LIBS | |
26835 | LIBS="-lodbc $LIBS" | |
26836 | cat >conftest.$ac_ext <<_ACEOF | |
26837 | /* confdefs.h. */ | |
26838 | _ACEOF | |
26839 | cat confdefs.h >>conftest.$ac_ext | |
26840 | cat >>conftest.$ac_ext <<_ACEOF | |
26841 | /* end confdefs.h. */ | |
26842 | ||
26843 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26844 | #ifdef __cplusplus | |
26845 | extern "C" | |
26846 | #endif | |
26847 | /* We use char because int might match the return type of a gcc2 | |
26848 | builtin and then its argument prototype would still apply. */ | |
26849 | char SQLAllocEnv (); | |
26850 | int | |
26851 | main () | |
26852 | { | |
26853 | SQLAllocEnv (); | |
26854 | ; | |
26855 | return 0; | |
26856 | } | |
26857 | _ACEOF | |
26858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26860 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26861 | ac_status=$? |
ac1cb8d3 VS |
26862 | grep -v '^ *+' conftest.er1 >conftest.err |
26863 | rm -f conftest.er1 | |
26864 | cat conftest.err >&5 | |
a848cd7e SC |
26865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26866 | (exit $ac_status); } && | |
d1c38808 | 26867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26869 | (eval $ac_try) 2>&5 | |
26870 | ac_status=$? | |
26871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26872 | (exit $ac_status); }; } && | |
26873 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26875 | (eval $ac_try) 2>&5 | |
26876 | ac_status=$? | |
26877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26878 | (exit $ac_status); }; }; then | |
26879 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
26880 | else | |
26881 | echo "$as_me: failed program was:" >&5 | |
26882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26883 | ||
26884 | ac_cv_lib_odbc_SQLAllocEnv=no | |
26885 | fi | |
ac1cb8d3 VS |
26886 | rm -f conftest.err conftest.$ac_objext \ |
26887 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26888 | LIBS=$ac_check_lib_save_LIBS |
26889 | fi | |
26890 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
26891 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
26892 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
26893 | ODBC_LINK=" -lodbc" | |
26894 | fi | |
26895 | ||
26896 | ||
26897 | fi | |
26898 | ||
26899 | ||
26900 | fi | |
26901 | ||
26902 | fi | |
26903 | if test "x$ODBC_LINK" = "x" ; then | |
26904 | if test "$wxUSE_ODBC" = "sys" ; then | |
26905 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
26906 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
26907 | { (exit 1); exit 1; }; } | |
26908 | else | |
26909 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
26910 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
26911 | wxUSE_ODBC=builtin | |
26912 | fi | |
26913 | else | |
26914 | wxUSE_ODBC=sys | |
26915 | fi | |
26916 | fi | |
26917 | if test "$wxUSE_ODBC" != "no" ; then | |
26918 | cat >>confdefs.h <<\_ACEOF | |
26919 | #define wxUSE_ODBC 1 | |
26920 | _ACEOF | |
26921 | ||
26922 | if test "$wxUSE_ODBC" = "builtin" ; then | |
26923 | cat >>confdefs.h <<\_ACEOF | |
26924 | #define wxUSE_BUILTIN_IODBC 1 | |
26925 | _ACEOF | |
26926 | ||
26927 | fi | |
26928 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
26929 | ||
26930 | WXODBCFLAG="-D_IODBC_" | |
26931 | fi | |
26932 | fi | |
26933 | ||
a848cd7e | 26934 | |
01cb68df | 26935 | |
a848cd7e | 26936 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 26937 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
26938 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
26939 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
26940 | ||
26941 | ac_find_libraries= | |
26942 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26943 | do | |
26944 | for ac_extension in a so sl dylib; do | |
26945 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26946 | ac_find_libraries=$ac_dir | |
26947 | break 2 | |
26948 | fi | |
26949 | done | |
26950 | done | |
26951 | ||
26952 | if test "$ac_find_libraries" != "" ; then | |
26953 | ||
26954 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26955 | result=$? | |
26956 | if test $result = 0; then | |
26957 | ac_path_to_link="" | |
26958 | else | |
26959 | ac_path_to_link=" -L$ac_find_libraries" | |
26960 | fi | |
26961 | ||
26962 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26963 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26964 | fi | |
26965 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26966 | echo "$as_me:$LINENO: result: yes" >&5 | |
26967 | echo "${ECHO_T}yes" >&6 | |
26968 | ||
26969 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
26970 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
26971 | ||
26972 | ac_find_libraries= | |
26973 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26974 | do | |
26975 | for ac_extension in a so sl dylib; do | |
26976 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
26977 | ac_find_libraries=$ac_dir | |
26978 | break 2 | |
26979 | fi | |
26980 | done | |
26981 | done | |
26982 | ||
26983 | if test "$ac_find_libraries" != "" ; then | |
26984 | echo "$as_me:$LINENO: result: yes" >&5 | |
26985 | echo "${ECHO_T}yes" >&6 | |
26986 | ||
26987 | for ac_header in X11/extensions/xf86vmode.h | |
26988 | do | |
26989 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26993 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26994 | else | |
26995 | cat >conftest.$ac_ext <<_ACEOF | |
26996 | /* confdefs.h. */ | |
26997 | _ACEOF | |
26998 | cat confdefs.h >>conftest.$ac_ext | |
26999 | cat >>conftest.$ac_ext <<_ACEOF | |
27000 | /* end confdefs.h. */ | |
27001 | ||
27002 | #if HAVE_X11_XLIB_H | |
27003 | #include <X11/Xlib.h> | |
27004 | #endif | |
27005 | ||
27006 | ||
27007 | #include <$ac_header> | |
27008 | _ACEOF | |
27009 | rm -f conftest.$ac_objext | |
27010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27011 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27012 | ac_status=$? |
ac1cb8d3 VS |
27013 | grep -v '^ *+' conftest.er1 >conftest.err |
27014 | rm -f conftest.er1 | |
27015 | cat conftest.err >&5 | |
a848cd7e SC |
27016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27017 | (exit $ac_status); } && | |
d1c38808 | 27018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27020 | (eval $ac_try) 2>&5 | |
27021 | ac_status=$? | |
27022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27023 | (exit $ac_status); }; } && | |
27024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27026 | (eval $ac_try) 2>&5 | |
27027 | ac_status=$? | |
27028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27029 | (exit $ac_status); }; }; then | |
27030 | eval "$as_ac_Header=yes" | |
27031 | else | |
27032 | echo "$as_me: failed program was:" >&5 | |
27033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27034 | ||
27035 | eval "$as_ac_Header=no" | |
27036 | fi | |
ac1cb8d3 | 27037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27038 | fi |
27039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27042 | cat >>confdefs.h <<_ACEOF | |
27043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27044 | _ACEOF | |
27045 | ||
27046 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27047 | ||
27048 | fi | |
27049 | ||
27050 | done | |
27051 | ||
27052 | else | |
27053 | echo "$as_me:$LINENO: result: no" >&5 | |
27054 | echo "${ECHO_T}no" >&6 | |
27055 | fi | |
27056 | ||
27057 | else | |
27058 | echo "$as_me:$LINENO: result: no" >&5 | |
27059 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
27060 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
27061 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
27062 | wxUSE_DISPLAY="no" |
27063 | fi | |
01cb68df RG |
27064 | elif test "$wxUSE_MSW" = 1; then |
27065 | ||
27066 | ||
27067 | for ac_header in multimon.h ddraw.h | |
27068 | do | |
27069 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
27070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27071 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27072 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27073 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27075 | fi | |
27076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27078 | else | |
27079 | # Is the header compilable? | |
27080 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27081 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27082 | cat >conftest.$ac_ext <<_ACEOF | |
27083 | /* confdefs.h. */ | |
27084 | _ACEOF | |
27085 | cat confdefs.h >>conftest.$ac_ext | |
27086 | cat >>conftest.$ac_ext <<_ACEOF | |
27087 | /* end confdefs.h. */ | |
27088 | $ac_includes_default | |
27089 | #include <$ac_header> | |
27090 | _ACEOF | |
27091 | rm -f conftest.$ac_objext | |
27092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27093 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 27094 | ac_status=$? |
ac1cb8d3 VS |
27095 | grep -v '^ *+' conftest.er1 >conftest.err |
27096 | rm -f conftest.er1 | |
27097 | cat conftest.err >&5 | |
01cb68df RG |
27098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27099 | (exit $ac_status); } && | |
d1c38808 | 27100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27102 | (eval $ac_try) 2>&5 | |
27103 | ac_status=$? | |
27104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27105 | (exit $ac_status); }; } && | |
27106 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
27107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27108 | (eval $ac_try) 2>&5 | |
27109 | ac_status=$? | |
27110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27111 | (exit $ac_status); }; }; then | |
27112 | ac_header_compiler=yes | |
27113 | else | |
27114 | echo "$as_me: failed program was:" >&5 | |
27115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27116 | ||
27117 | ac_header_compiler=no | |
27118 | fi | |
ac1cb8d3 | 27119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
27120 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27121 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27122 | ||
27123 | # Is the header present? | |
27124 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27125 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27126 | cat >conftest.$ac_ext <<_ACEOF | |
27127 | /* confdefs.h. */ | |
27128 | _ACEOF | |
27129 | cat confdefs.h >>conftest.$ac_ext | |
27130 | cat >>conftest.$ac_ext <<_ACEOF | |
27131 | /* end confdefs.h. */ | |
27132 | #include <$ac_header> | |
27133 | _ACEOF | |
27134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27136 | ac_status=$? | |
27137 | grep -v '^ *+' conftest.er1 >conftest.err | |
27138 | rm -f conftest.er1 | |
27139 | cat conftest.err >&5 | |
27140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27141 | (exit $ac_status); } >/dev/null; then | |
27142 | if test -s conftest.err; then | |
27143 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27144 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
01cb68df RG |
27145 | else |
27146 | ac_cpp_err= | |
27147 | fi | |
27148 | else | |
27149 | ac_cpp_err=yes | |
27150 | fi | |
27151 | if test -z "$ac_cpp_err"; then | |
27152 | ac_header_preproc=yes | |
27153 | else | |
27154 | echo "$as_me: failed program was:" >&5 | |
27155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27156 | ||
27157 | ac_header_preproc=no | |
27158 | fi | |
27159 | rm -f conftest.err conftest.$ac_ext | |
27160 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27161 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27162 | ||
27163 | # So? What about this header? | |
ac1cb8d3 VS |
27164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27165 | yes:no: ) | |
01cb68df RG |
27166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
27167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
27169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
27170 | ac_header_preproc=yes | |
01cb68df | 27171 | ;; |
ac1cb8d3 | 27172 | no:yes:* ) |
01cb68df RG |
27173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
27174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
27176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
27178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
27179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
27180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
01cb68df RG |
27181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
27182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
27184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
01cb68df RG |
27185 | ( |
27186 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27187 | ## ----------------------------------------- ## |
27188 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27189 | ## ----------------------------------------- ## | |
01cb68df RG |
27190 | _ASBOX |
27191 | ) | | |
27192 | sed "s/^/$as_me: WARNING: /" >&2 | |
27193 | ;; | |
27194 | esac | |
27195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27199 | else | |
ac1cb8d3 | 27200 | eval "$as_ac_Header=\$ac_header_preproc" |
01cb68df RG |
27201 | fi |
27202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27204 | ||
27205 | fi | |
27206 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
27207 | cat >>confdefs.h <<_ACEOF | |
27208 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27209 | _ACEOF | |
27210 | ||
27211 | else | |
27212 | ||
27213 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
27214 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
27215 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
27216 | |
27217 | fi | |
27218 | ||
27219 | done | |
27220 | ||
a848cd7e SC |
27221 | fi |
27222 | fi | |
27223 | ||
27224 | ||
27225 | USE_OPENGL=0 | |
27226 | if test "$wxUSE_OPENGL" = "yes"; then | |
27227 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
27228 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27229 | elif test "$wxUSE_MSW" = 1; then | |
27230 | OPENGL_LIBS="-lopengl32 -lglu32" | |
27231 | else | |
27232 | ||
27233 | ||
27234 | ac_find_includes= | |
27235 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
27236 | do | |
27237 | if test -f "$ac_dir/GL/gl.h"; then | |
27238 | ac_find_includes=$ac_dir | |
27239 | break | |
27240 | fi | |
27241 | done | |
27242 | ||
27243 | if test "$ac_find_includes" != "" ; then | |
27244 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
27245 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
27246 | ||
27247 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27248 | ac_path_to_include="" | |
27249 | else | |
27250 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27251 | result=$? | |
27252 | if test $result = 0; then | |
27253 | ac_path_to_include="" | |
27254 | else | |
27255 | ac_path_to_include=" -I$ac_find_includes" | |
27256 | fi | |
27257 | fi | |
27258 | ||
27259 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
27260 | fi | |
27261 | ||
27262 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27263 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27264 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27265 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27267 | fi | |
27268 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27269 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27270 | else | |
27271 | # Is the header compilable? | |
27272 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
27273 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
27274 | cat >conftest.$ac_ext <<_ACEOF | |
27275 | /* confdefs.h. */ | |
27276 | _ACEOF | |
27277 | cat confdefs.h >>conftest.$ac_ext | |
27278 | cat >>conftest.$ac_ext <<_ACEOF | |
27279 | /* end confdefs.h. */ | |
27280 | $ac_includes_default | |
27281 | #include <GL/gl.h> | |
27282 | _ACEOF | |
27283 | rm -f conftest.$ac_objext | |
27284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27286 | ac_status=$? |
ac1cb8d3 VS |
27287 | grep -v '^ *+' conftest.er1 >conftest.err |
27288 | rm -f conftest.er1 | |
27289 | cat conftest.err >&5 | |
a848cd7e SC |
27290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27291 | (exit $ac_status); } && | |
d1c38808 | 27292 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27294 | (eval $ac_try) 2>&5 | |
27295 | ac_status=$? | |
27296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27297 | (exit $ac_status); }; } && | |
27298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27300 | (eval $ac_try) 2>&5 | |
27301 | ac_status=$? | |
27302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27303 | (exit $ac_status); }; }; then | |
27304 | ac_header_compiler=yes | |
27305 | else | |
27306 | echo "$as_me: failed program was:" >&5 | |
27307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27308 | ||
27309 | ac_header_compiler=no | |
27310 | fi | |
ac1cb8d3 | 27311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27312 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
27313 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27314 | ||
27315 | # Is the header present? | |
27316 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
27317 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
27318 | cat >conftest.$ac_ext <<_ACEOF | |
27319 | /* confdefs.h. */ | |
27320 | _ACEOF | |
27321 | cat confdefs.h >>conftest.$ac_ext | |
27322 | cat >>conftest.$ac_ext <<_ACEOF | |
27323 | /* end confdefs.h. */ | |
27324 | #include <GL/gl.h> | |
27325 | _ACEOF | |
27326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27328 | ac_status=$? | |
27329 | grep -v '^ *+' conftest.er1 >conftest.err | |
27330 | rm -f conftest.er1 | |
27331 | cat conftest.err >&5 | |
27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27333 | (exit $ac_status); } >/dev/null; then | |
27334 | if test -s conftest.err; then | |
27335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27337 | else |
27338 | ac_cpp_err= | |
27339 | fi | |
27340 | else | |
27341 | ac_cpp_err=yes | |
27342 | fi | |
27343 | if test -z "$ac_cpp_err"; then | |
27344 | ac_header_preproc=yes | |
27345 | else | |
27346 | echo "$as_me: failed program was:" >&5 | |
27347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27348 | ||
27349 | ac_header_preproc=no | |
27350 | fi | |
27351 | rm -f conftest.err conftest.$ac_ext | |
27352 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27353 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27354 | ||
27355 | # So? What about this header? | |
ac1cb8d3 VS |
27356 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
27357 | yes:no: ) | |
a848cd7e SC |
27358 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
27359 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
27360 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
27361 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
27362 | ac_header_preproc=yes | |
a848cd7e | 27363 | ;; |
ac1cb8d3 | 27364 | no:yes:* ) |
a848cd7e SC |
27365 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
27366 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
27367 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
27368 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
27369 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
27370 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
27371 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
27372 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
27373 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
27374 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
27375 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
27376 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
27377 | ( |
27378 | cat <<\_ASBOX | |
ac1cb8d3 VS |
27379 | ## ----------------------------------------- ## |
27380 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
27381 | ## ----------------------------------------- ## | |
a848cd7e SC |
27382 | _ASBOX |
27383 | ) | | |
27384 | sed "s/^/$as_me: WARNING: /" >&2 | |
27385 | ;; | |
27386 | esac | |
27387 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
27388 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
27389 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
27390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27391 | else | |
27392 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
27393 | fi | |
27394 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
27395 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
27396 | ||
27397 | fi | |
27398 | if test $ac_cv_header_GL_gl_h = yes; then | |
27399 | ||
27400 | found_gl=0 | |
27401 | ||
27402 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
27403 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
27404 | ||
27405 | ac_find_libraries= | |
27406 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27407 | do | |
27408 | for ac_extension in a so sl dylib; do | |
27409 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27410 | ac_find_libraries=$ac_dir | |
27411 | break 2 | |
27412 | fi | |
27413 | done | |
27414 | done | |
27415 | ||
27416 | if test "$ac_find_libraries" != "" ; then | |
27417 | ||
27418 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27419 | result=$? | |
27420 | if test $result = 0; then | |
27421 | ac_path_to_link="" | |
27422 | else | |
27423 | ac_path_to_link=" -L$ac_find_libraries" | |
27424 | fi | |
27425 | ||
27426 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27427 | LDFLAGS_GL="$ac_path_to_link" | |
27428 | fi | |
27429 | ||
27430 | ||
27431 | ac_find_libraries= | |
27432 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27433 | do | |
27434 | for ac_extension in a so sl dylib; do | |
27435 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
27436 | ac_find_libraries=$ac_dir | |
27437 | break 2 | |
27438 | fi | |
27439 | done | |
27440 | done | |
27441 | ||
27442 | if test "$ac_find_libraries" != "" ; then | |
27443 | ||
27444 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27445 | result=$? | |
27446 | if test $result = 0; then | |
27447 | ac_path_to_link="" | |
27448 | else | |
27449 | ac_path_to_link=" -L$ac_find_libraries" | |
27450 | fi | |
27451 | ||
27452 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
27453 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
27454 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
27455 | fi | |
27456 | ||
27457 | found_gl=1 | |
27458 | OPENGL_LIBS="-lGL -lGLU" | |
27459 | echo "$as_me:$LINENO: result: yes" >&5 | |
27460 | echo "${ECHO_T}yes" >&6 | |
27461 | fi | |
27462 | fi | |
27463 | ||
27464 | if test "$found_gl" != 1; then | |
27465 | echo "$as_me:$LINENO: result: no" >&5 | |
27466 | echo "${ECHO_T}no" >&6 | |
27467 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
27468 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
27469 | ||
27470 | ac_find_libraries= | |
27471 | for ac_dir in $SEARCH_LIB /usr/lib; | |
27472 | do | |
27473 | for ac_extension in a so sl dylib; do | |
27474 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
27475 | ac_find_libraries=$ac_dir | |
27476 | break 2 | |
27477 | fi | |
27478 | done | |
27479 | done | |
27480 | ||
27481 | if test "$ac_find_libraries" != "" ; then | |
27482 | ||
27483 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27484 | result=$? | |
27485 | if test $result = 0; then | |
27486 | ac_path_to_link="" | |
27487 | else | |
27488 | ac_path_to_link=" -L$ac_find_libraries" | |
27489 | fi | |
27490 | ||
27491 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
27492 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
27493 | echo "$as_me:$LINENO: result: yes" >&5 | |
27494 | echo "${ECHO_T}yes" >&6 | |
27495 | else | |
27496 | echo "$as_me:$LINENO: result: no" >&5 | |
27497 | echo "${ECHO_T}no" >&6 | |
27498 | fi | |
27499 | fi | |
27500 | ||
27501 | fi | |
27502 | ||
27503 | ||
27504 | ||
27505 | if test "x$OPENGL_LIBS" = "x"; then | |
27506 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
27507 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
27508 | { (exit 1); exit 1; }; } | |
27509 | fi | |
27510 | fi | |
27511 | ||
27512 | if test "$wxUSE_OPENGL" = "yes"; then | |
27513 | USE_OPENGL=1 | |
27514 | cat >>confdefs.h <<\_ACEOF | |
27515 | #define wxUSE_OPENGL 1 | |
27516 | _ACEOF | |
27517 | ||
27518 | cat >>confdefs.h <<\_ACEOF | |
27519 | #define wxUSE_GLCANVAS 1 | |
27520 | _ACEOF | |
27521 | ||
27522 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
27523 | fi | |
27524 | fi | |
27525 | ||
a848cd7e SC |
27526 | |
27527 | if test -n "$TOOLKIT" ; then | |
27528 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
27529 | fi | |
27530 | ||
a848cd7e SC |
27531 | |
27532 | ||
27533 | if test "$wxUSE_SHARED" = "yes"; then | |
27534 | case "${host}" in | |
27535 | *-pc-msdosdjgpp ) | |
27536 | wxUSE_SHARED=no | |
27537 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
27538 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
27539 | ;; | |
27540 | esac | |
27541 | fi | |
27542 | ||
a848cd7e | 27543 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
27544 | |
27545 | ||
27546 | found_versioning=no | |
27547 | ||
27548 | ||
27549 | if test $found_versioning = no ; then | |
27550 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
27551 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
27552 | if test "${wx_cv_version_script+set}" = set; then | |
27553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27554 | else | |
27555 | ||
27556 | echo "VER_1 { *; };" >conftest.sym | |
27557 | echo "int main() { return 0; }" >conftest.cpp | |
27558 | ||
27559 | if { ac_try=' | |
27560 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
27561 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
27562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27563 | (eval $ac_try) 2>&5 | |
27564 | ac_status=$? | |
27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27566 | (exit $ac_status); }; } ; then | |
27567 | if test -s conftest.stderr ; then | |
27568 | wx_cv_version_script=no | |
27569 | else | |
27570 | wx_cv_version_script=yes | |
27571 | fi | |
27572 | else | |
27573 | wx_cv_version_script=no | |
27574 | fi | |
27575 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
27576 | ||
27577 | fi | |
27578 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
27579 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
27580 | if test $wx_cv_version_script = yes ; then | |
27581 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
27582 | fi | |
27583 | fi | |
27584 | ||
27585 | ||
27586 | case "${host}" in | |
27587 | *-*-linux* | *-*-gnu* ) | |
27588 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27589 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27590 | ;; |
27591 | ||
27592 | *-*-solaris2* ) | |
27593 | if test "$GCC" = yes ; then | |
27594 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
27595 | ||
27596 | saveLdflags="$LDFLAGS" | |
27597 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
27598 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
27599 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
27600 | cat >conftest.$ac_ext <<_ACEOF | |
27601 | /* confdefs.h. */ | |
27602 | _ACEOF | |
27603 | cat confdefs.h >>conftest.$ac_ext | |
27604 | cat >>conftest.$ac_ext <<_ACEOF | |
27605 | /* end confdefs.h. */ | |
27606 | ||
27607 | int | |
27608 | main () | |
27609 | { | |
27610 | ||
27611 | ; | |
27612 | return 0; | |
27613 | } | |
27614 | _ACEOF | |
27615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27617 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27618 | ac_status=$? |
ac1cb8d3 VS |
27619 | grep -v '^ *+' conftest.er1 >conftest.err |
27620 | rm -f conftest.er1 | |
27621 | cat conftest.err >&5 | |
a848cd7e SC |
27622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27623 | (exit $ac_status); } && | |
d1c38808 | 27624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27626 | (eval $ac_try) 2>&5 | |
27627 | ac_status=$? | |
27628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27629 | (exit $ac_status); }; } && | |
27630 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27632 | (eval $ac_try) 2>&5 | |
27633 | ac_status=$? | |
27634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27635 | (exit $ac_status); }; }; then | |
27636 | ||
27637 | echo "$as_me:$LINENO: result: yes" >&5 | |
27638 | echo "${ECHO_T}yes" >&6 | |
27639 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 27640 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
27641 | |
27642 | else | |
27643 | echo "$as_me: failed program was:" >&5 | |
27644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27645 | ||
27646 | ||
27647 | echo "$as_me:$LINENO: result: no" >&5 | |
27648 | echo "${ECHO_T}no" >&6 | |
27649 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
27650 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
27651 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
27652 | cat >conftest.$ac_ext <<_ACEOF | |
27653 | /* confdefs.h. */ | |
27654 | _ACEOF | |
27655 | cat confdefs.h >>conftest.$ac_ext | |
27656 | cat >>conftest.$ac_ext <<_ACEOF | |
27657 | /* end confdefs.h. */ | |
27658 | ||
27659 | int | |
27660 | main () | |
27661 | { | |
27662 | ||
27663 | ; | |
27664 | return 0; | |
27665 | } | |
27666 | _ACEOF | |
27667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27669 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27670 | ac_status=$? |
ac1cb8d3 VS |
27671 | grep -v '^ *+' conftest.er1 >conftest.err |
27672 | rm -f conftest.er1 | |
27673 | cat conftest.err >&5 | |
a848cd7e SC |
27674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27675 | (exit $ac_status); } && | |
d1c38808 | 27676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27678 | (eval $ac_try) 2>&5 | |
27679 | ac_status=$? | |
27680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27681 | (exit $ac_status); }; } && | |
27682 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27684 | (eval $ac_try) 2>&5 | |
27685 | ac_status=$? | |
27686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27687 | (exit $ac_status); }; }; then | |
27688 | ||
ffa0583f | 27689 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 27690 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
27691 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
27692 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
27693 | ||
a848cd7e SC |
27694 | else |
27695 | echo "$as_me: failed program was:" >&5 | |
27696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27697 | ||
27698 | ||
27699 | echo "$as_me:$LINENO: result: no" >&5 | |
27700 | echo "${ECHO_T}no" >&6 | |
27701 | ||
27702 | fi | |
ac1cb8d3 VS |
27703 | rm -f conftest.err conftest.$ac_objext \ |
27704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27705 | |
27706 | fi | |
ac1cb8d3 VS |
27707 | rm -f conftest.err conftest.$ac_objext \ |
27708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27709 | LDFLAGS="$saveLdflags" |
27710 | else | |
a848cd7e | 27711 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 27712 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
27713 | fi |
27714 | ;; | |
27715 | ||
27716 | powerpc-*-darwin* ) | |
27717 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
27718 | cat <<EOF >change-install-names | |
27719 | #!/bin/sh | |
27720 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
27721 | inst_cmd="install_name_tool " | |
27722 | for i in \${libnames} ; do | |
27723 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
27724 | done | |
27725 | \${inst_cmd} \${3} | |
27726 | EOF | |
27727 | chmod +x change-install-names | |
27728 | ;; | |
27729 | ||
27730 | *-*-cygwin* | *-*-mingw32* ) | |
27731 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
27732 | ;; | |
27733 | ||
27734 | esac | |
ceec2216 | 27735 | |
ffa0583f RL |
27736 | if test $wxUSE_RPATH = "no"; then |
27737 | SAMPLES_RPATH_FLAG='' | |
27738 | SAMPLES_RPATH_POSTLINK='' | |
27739 | WXCONFIG_RPATH='' | |
27740 | fi | |
27741 | ||
27742 | SHARED=1 | |
27743 | ||
27744 | else | |
27745 | ||
ceec2216 RL |
27746 | config_linkage_component="-static" |
27747 | SHARED=0 | |
ffa0583f | 27748 | |
ceec2216 | 27749 | fi |
a848cd7e | 27750 | |
a848cd7e | 27751 | |
ceec2216 RL |
27752 | UNICODE=0 |
27753 | lib_unicode_suffix= | |
27754 | WX_CHARTYPE="ansi" | |
27755 | if test "$wxUSE_UNICODE" = "yes"; then | |
27756 | lib_unicode_suffix=u | |
27757 | WX_CHARTYPE="unicode" | |
27758 | UNICODE=1 | |
a848cd7e SC |
27759 | fi |
27760 | ||
ceec2216 RL |
27761 | lib_debug_suffix= |
27762 | WX_DEBUGTYPE="release" | |
27763 | DEBUG_FLAG=0 | |
27764 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
27765 | lib_debug_suffix=d | |
27766 | WX_DEBUGTYPE="debug" | |
27767 | DEBUG_FLAG=1 | |
27768 | fi | |
a848cd7e | 27769 | |
ceec2216 RL |
27770 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
27771 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 27772 | |
ceec2216 RL |
27773 | DEBUG_INFO=0 |
27774 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
27775 | DEBUG_INFO=1 | |
27776 | fi | |
a848cd7e | 27777 | |
ceec2216 | 27778 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 27779 | |
ceec2216 | 27780 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 27781 | |
ceec2216 | 27782 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 27783 | |
ceec2216 RL |
27784 | if test "$cross_compiling" = "yes"; then |
27785 | HOST_SUFFIX="-$host_alias" | |
27786 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
27787 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
27788 | fi |
27789 | ||
dd21ced8 | 27790 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
ceec2216 RL |
27791 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
27792 | ||
27793 | ||
27794 | ||
a848cd7e | 27795 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
27796 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
27797 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 27798 | |
a848cd7e | 27799 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
27800 | |
27801 | # Extract the first word of "Rez", so it can be a program name with args. | |
27802 | set dummy Rez; ac_word=$2 | |
27803 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27804 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27805 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
27806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27807 | else | |
27808 | if test -n "$RESCOMP"; then | |
27809 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
27810 | else | |
27811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27812 | for as_dir in $PATH | |
27813 | do | |
27814 | IFS=$as_save_IFS | |
27815 | test -z "$as_dir" && as_dir=. | |
27816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27817 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27818 | ac_cv_prog_RESCOMP="Rez" | |
27819 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27820 | break 2 | |
27821 | fi | |
27822 | done | |
27823 | done | |
27824 | ||
27825 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
27826 | fi | |
27827 | fi | |
27828 | RESCOMP=$ac_cv_prog_RESCOMP | |
27829 | if test -n "$RESCOMP"; then | |
27830 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
27831 | echo "${ECHO_T}$RESCOMP" >&6 | |
27832 | else | |
27833 | echo "$as_me:$LINENO: result: no" >&5 | |
27834 | echo "${ECHO_T}no" >&6 | |
27835 | fi | |
27836 | ||
27837 | # Extract the first word of "DeRez", so it can be a program name with args. | |
27838 | set dummy DeRez; ac_word=$2 | |
27839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27841 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
27842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27843 | else | |
27844 | if test -n "$DEREZ"; then | |
27845 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
27846 | else | |
27847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27848 | for as_dir in $PATH | |
27849 | do | |
27850 | IFS=$as_save_IFS | |
27851 | test -z "$as_dir" && as_dir=. | |
27852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27854 | ac_cv_prog_DEREZ="DeRez" | |
27855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27856 | break 2 | |
27857 | fi | |
27858 | done | |
27859 | done | |
27860 | ||
27861 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
27862 | fi | |
27863 | fi | |
27864 | DEREZ=$ac_cv_prog_DEREZ | |
27865 | if test -n "$DEREZ"; then | |
27866 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
27867 | echo "${ECHO_T}$DEREZ" >&6 | |
27868 | else | |
27869 | echo "$as_me:$LINENO: result: no" >&5 | |
27870 | echo "${ECHO_T}no" >&6 | |
27871 | fi | |
27872 | ||
27873 | # Extract the first word of "SetFile", so it can be a program name with args. | |
27874 | set dummy SetFile; ac_word=$2 | |
27875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27877 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
27878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27879 | else | |
27880 | if test -n "$SETFILE"; then | |
27881 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
27882 | else | |
27883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27884 | for as_dir in $PATH | |
27885 | do | |
27886 | IFS=$as_save_IFS | |
27887 | test -z "$as_dir" && as_dir=. | |
27888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27890 | ac_cv_prog_SETFILE="SetFile" | |
27891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27892 | break 2 | |
27893 | fi | |
27894 | done | |
27895 | done | |
27896 | ||
27897 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
27898 | fi | |
27899 | fi | |
27900 | SETFILE=$ac_cv_prog_SETFILE | |
27901 | if test -n "$SETFILE"; then | |
27902 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
27903 | echo "${ECHO_T}$SETFILE" >&6 | |
27904 | else | |
27905 | echo "$as_me:$LINENO: result: no" >&5 | |
27906 | echo "${ECHO_T}no" >&6 | |
27907 | fi | |
27908 | ||
27909 | ||
27910 | MACSETFILE="\$(SETFILE)" | |
27911 | ||
27912 | if test "$wxUSE_MAC" = 1; then | |
27913 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
27914 | ||
27915 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27916 | else | |
27917 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
27918 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
27919 | fi | |
27920 | else | |
ffa0583f RL |
27921 | MACSETFILE="@true" |
27922 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
27923 | |
27924 | if test "$wxUSE_PM" = 1; then | |
27925 | MACRESCOMP="emxbind -ep" | |
27926 | else | |
ffa0583f | 27927 | MACRESCOMP="@true" |
a848cd7e SC |
27928 | fi |
27929 | fi | |
27930 | ||
27931 | ||
27932 | ||
27933 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
27934 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
27935 | if test "${ac_cv_type_mode_t+set}" = set; then | |
27936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27937 | else | |
27938 | cat >conftest.$ac_ext <<_ACEOF | |
27939 | /* confdefs.h. */ | |
27940 | _ACEOF | |
27941 | cat confdefs.h >>conftest.$ac_ext | |
27942 | cat >>conftest.$ac_ext <<_ACEOF | |
27943 | /* end confdefs.h. */ | |
27944 | $ac_includes_default | |
27945 | int | |
27946 | main () | |
27947 | { | |
27948 | if ((mode_t *) 0) | |
27949 | return 0; | |
27950 | if (sizeof (mode_t)) | |
27951 | return 0; | |
27952 | ; | |
27953 | return 0; | |
27954 | } | |
27955 | _ACEOF | |
27956 | rm -f conftest.$ac_objext | |
27957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 27958 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 27959 | ac_status=$? |
ac1cb8d3 VS |
27960 | grep -v '^ *+' conftest.er1 >conftest.err |
27961 | rm -f conftest.er1 | |
27962 | cat conftest.err >&5 | |
a848cd7e SC |
27963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27964 | (exit $ac_status); } && | |
d1c38808 | 27965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27967 | (eval $ac_try) 2>&5 | |
27968 | ac_status=$? | |
27969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27970 | (exit $ac_status); }; } && | |
27971 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
27972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27973 | (eval $ac_try) 2>&5 | |
27974 | ac_status=$? | |
27975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27976 | (exit $ac_status); }; }; then | |
27977 | ac_cv_type_mode_t=yes | |
27978 | else | |
27979 | echo "$as_me: failed program was:" >&5 | |
27980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27981 | ||
27982 | ac_cv_type_mode_t=no | |
27983 | fi | |
ac1cb8d3 | 27984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27985 | fi |
27986 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
27987 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
27988 | if test $ac_cv_type_mode_t = yes; then | |
27989 | : | |
27990 | else | |
27991 | ||
27992 | cat >>confdefs.h <<_ACEOF | |
27993 | #define mode_t int | |
27994 | _ACEOF | |
27995 | ||
27996 | fi | |
27997 | ||
27998 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
27999 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
28000 | if test "${ac_cv_type_off_t+set}" = set; then | |
28001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28002 | else | |
28003 | cat >conftest.$ac_ext <<_ACEOF | |
28004 | /* confdefs.h. */ | |
28005 | _ACEOF | |
28006 | cat confdefs.h >>conftest.$ac_ext | |
28007 | cat >>conftest.$ac_ext <<_ACEOF | |
28008 | /* end confdefs.h. */ | |
28009 | $ac_includes_default | |
28010 | int | |
28011 | main () | |
28012 | { | |
28013 | if ((off_t *) 0) | |
28014 | return 0; | |
28015 | if (sizeof (off_t)) | |
28016 | return 0; | |
28017 | ; | |
28018 | return 0; | |
28019 | } | |
28020 | _ACEOF | |
28021 | rm -f conftest.$ac_objext | |
28022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28023 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28024 | ac_status=$? |
ac1cb8d3 VS |
28025 | grep -v '^ *+' conftest.er1 >conftest.err |
28026 | rm -f conftest.er1 | |
28027 | cat conftest.err >&5 | |
a848cd7e SC |
28028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28029 | (exit $ac_status); } && | |
d1c38808 | 28030 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28032 | (eval $ac_try) 2>&5 | |
28033 | ac_status=$? | |
28034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28035 | (exit $ac_status); }; } && | |
28036 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28038 | (eval $ac_try) 2>&5 | |
28039 | ac_status=$? | |
28040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28041 | (exit $ac_status); }; }; then | |
28042 | ac_cv_type_off_t=yes | |
28043 | else | |
28044 | echo "$as_me: failed program was:" >&5 | |
28045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28046 | ||
28047 | ac_cv_type_off_t=no | |
28048 | fi | |
ac1cb8d3 | 28049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28050 | fi |
28051 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
28052 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
28053 | if test $ac_cv_type_off_t = yes; then | |
28054 | : | |
28055 | else | |
28056 | ||
28057 | cat >>confdefs.h <<_ACEOF | |
28058 | #define off_t long | |
28059 | _ACEOF | |
28060 | ||
28061 | fi | |
28062 | ||
28063 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
28064 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
28065 | if test "${ac_cv_type_pid_t+set}" = set; then | |
28066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28067 | else | |
28068 | cat >conftest.$ac_ext <<_ACEOF | |
28069 | /* confdefs.h. */ | |
28070 | _ACEOF | |
28071 | cat confdefs.h >>conftest.$ac_ext | |
28072 | cat >>conftest.$ac_ext <<_ACEOF | |
28073 | /* end confdefs.h. */ | |
28074 | $ac_includes_default | |
28075 | int | |
28076 | main () | |
28077 | { | |
28078 | if ((pid_t *) 0) | |
28079 | return 0; | |
28080 | if (sizeof (pid_t)) | |
28081 | return 0; | |
28082 | ; | |
28083 | return 0; | |
28084 | } | |
28085 | _ACEOF | |
28086 | rm -f conftest.$ac_objext | |
28087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28089 | ac_status=$? |
ac1cb8d3 VS |
28090 | grep -v '^ *+' conftest.er1 >conftest.err |
28091 | rm -f conftest.er1 | |
28092 | cat conftest.err >&5 | |
a848cd7e SC |
28093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28094 | (exit $ac_status); } && | |
d1c38808 | 28095 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28097 | (eval $ac_try) 2>&5 | |
28098 | ac_status=$? | |
28099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28100 | (exit $ac_status); }; } && | |
28101 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28103 | (eval $ac_try) 2>&5 | |
28104 | ac_status=$? | |
28105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28106 | (exit $ac_status); }; }; then | |
28107 | ac_cv_type_pid_t=yes | |
28108 | else | |
28109 | echo "$as_me: failed program was:" >&5 | |
28110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28111 | ||
28112 | ac_cv_type_pid_t=no | |
28113 | fi | |
ac1cb8d3 | 28114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28115 | fi |
28116 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
28117 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
28118 | if test $ac_cv_type_pid_t = yes; then | |
28119 | : | |
28120 | else | |
28121 | ||
28122 | cat >>confdefs.h <<_ACEOF | |
28123 | #define pid_t int | |
28124 | _ACEOF | |
28125 | ||
28126 | fi | |
28127 | ||
28128 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
28129 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
28130 | if test "${ac_cv_type_size_t+set}" = set; then | |
28131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28132 | else | |
28133 | cat >conftest.$ac_ext <<_ACEOF | |
28134 | /* confdefs.h. */ | |
28135 | _ACEOF | |
28136 | cat confdefs.h >>conftest.$ac_ext | |
28137 | cat >>conftest.$ac_ext <<_ACEOF | |
28138 | /* end confdefs.h. */ | |
28139 | $ac_includes_default | |
28140 | int | |
28141 | main () | |
28142 | { | |
28143 | if ((size_t *) 0) | |
28144 | return 0; | |
28145 | if (sizeof (size_t)) | |
28146 | return 0; | |
28147 | ; | |
28148 | return 0; | |
28149 | } | |
28150 | _ACEOF | |
28151 | rm -f conftest.$ac_objext | |
28152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28154 | ac_status=$? |
ac1cb8d3 VS |
28155 | grep -v '^ *+' conftest.er1 >conftest.err |
28156 | rm -f conftest.er1 | |
28157 | cat conftest.err >&5 | |
a848cd7e SC |
28158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28159 | (exit $ac_status); } && | |
d1c38808 | 28160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28162 | (eval $ac_try) 2>&5 | |
28163 | ac_status=$? | |
28164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28165 | (exit $ac_status); }; } && | |
28166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28168 | (eval $ac_try) 2>&5 | |
28169 | ac_status=$? | |
28170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28171 | (exit $ac_status); }; }; then | |
28172 | ac_cv_type_size_t=yes | |
28173 | else | |
28174 | echo "$as_me: failed program was:" >&5 | |
28175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28176 | ||
28177 | ac_cv_type_size_t=no | |
28178 | fi | |
ac1cb8d3 | 28179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28180 | fi |
28181 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
28182 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
28183 | if test $ac_cv_type_size_t = yes; then | |
28184 | : | |
28185 | else | |
28186 | ||
28187 | cat >>confdefs.h <<_ACEOF | |
28188 | #define size_t unsigned | |
28189 | _ACEOF | |
28190 | ||
28191 | fi | |
28192 | ||
28193 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
28194 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
28195 | if test "${ac_cv_type_uid_t+set}" = set; then | |
28196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28197 | else | |
28198 | cat >conftest.$ac_ext <<_ACEOF | |
28199 | /* confdefs.h. */ | |
28200 | _ACEOF | |
28201 | cat confdefs.h >>conftest.$ac_ext | |
28202 | cat >>conftest.$ac_ext <<_ACEOF | |
28203 | /* end confdefs.h. */ | |
28204 | #include <sys/types.h> | |
28205 | ||
28206 | _ACEOF | |
28207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
28208 | $EGREP "uid_t" >/dev/null 2>&1; then | |
28209 | ac_cv_type_uid_t=yes | |
28210 | else | |
28211 | ac_cv_type_uid_t=no | |
28212 | fi | |
28213 | rm -f conftest* | |
28214 | ||
28215 | fi | |
28216 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
28217 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
28218 | if test $ac_cv_type_uid_t = no; then | |
28219 | ||
28220 | cat >>confdefs.h <<\_ACEOF | |
28221 | #define uid_t int | |
28222 | _ACEOF | |
28223 | ||
28224 | ||
28225 | cat >>confdefs.h <<\_ACEOF | |
28226 | #define gid_t int | |
28227 | _ACEOF | |
28228 | ||
28229 | fi | |
28230 | ||
28231 | ||
28232 | ||
28233 | ||
28234 | ac_ext=cc | |
28235 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28236 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28237 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28238 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28239 | ||
28240 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
28241 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
28242 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
28243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28244 | else | |
28245 | ||
28246 | cat >conftest.$ac_ext <<_ACEOF | |
28247 | /* confdefs.h. */ | |
28248 | _ACEOF | |
28249 | cat confdefs.h >>conftest.$ac_ext | |
28250 | cat >>conftest.$ac_ext <<_ACEOF | |
28251 | /* end confdefs.h. */ | |
28252 | #include <stddef.h> | |
28253 | int | |
28254 | main () | |
28255 | { | |
28256 | ||
28257 | return 0; } | |
28258 | ||
28259 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
28260 | ||
28261 | int bar() { | |
28262 | ||
28263 | ; | |
28264 | return 0; | |
28265 | } | |
28266 | _ACEOF | |
28267 | rm -f conftest.$ac_objext | |
28268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28269 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28270 | ac_status=$? |
ac1cb8d3 VS |
28271 | grep -v '^ *+' conftest.er1 >conftest.err |
28272 | rm -f conftest.er1 | |
28273 | cat conftest.err >&5 | |
a848cd7e SC |
28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28275 | (exit $ac_status); } && | |
d1c38808 | 28276 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28278 | (eval $ac_try) 2>&5 | |
28279 | ac_status=$? | |
28280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28281 | (exit $ac_status); }; } && | |
28282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28284 | (eval $ac_try) 2>&5 | |
28285 | ac_status=$? | |
28286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28287 | (exit $ac_status); }; }; then | |
28288 | wx_cv_size_t_is_uint=no | |
28289 | else | |
28290 | echo "$as_me: failed program was:" >&5 | |
28291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28292 | ||
28293 | wx_cv_size_t_is_uint=yes | |
28294 | ||
28295 | fi | |
ac1cb8d3 | 28296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28297 | |
28298 | ||
28299 | fi | |
28300 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
28301 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
28302 | ||
28303 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
28304 | cat >>confdefs.h <<\_ACEOF | |
28305 | #define wxSIZE_T_IS_UINT 1 | |
28306 | _ACEOF | |
28307 | ||
28308 | else | |
28309 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
28310 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
28311 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
28312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28313 | else | |
28314 | cat >conftest.$ac_ext <<_ACEOF | |
28315 | /* confdefs.h. */ | |
28316 | _ACEOF | |
28317 | cat confdefs.h >>conftest.$ac_ext | |
28318 | cat >>conftest.$ac_ext <<_ACEOF | |
28319 | /* end confdefs.h. */ | |
28320 | #include <stddef.h> | |
28321 | int | |
28322 | main () | |
28323 | { | |
28324 | ||
28325 | return 0; } | |
28326 | ||
28327 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
28328 | ||
28329 | int bar() { | |
28330 | ||
28331 | ; | |
28332 | return 0; | |
28333 | } | |
28334 | _ACEOF | |
28335 | rm -f conftest.$ac_objext | |
28336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28338 | ac_status=$? |
ac1cb8d3 VS |
28339 | grep -v '^ *+' conftest.er1 >conftest.err |
28340 | rm -f conftest.er1 | |
28341 | cat conftest.err >&5 | |
a848cd7e SC |
28342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28343 | (exit $ac_status); } && | |
d1c38808 | 28344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28346 | (eval $ac_try) 2>&5 | |
28347 | ac_status=$? | |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28349 | (exit $ac_status); }; } && | |
28350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28352 | (eval $ac_try) 2>&5 | |
28353 | ac_status=$? | |
28354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28355 | (exit $ac_status); }; }; then | |
28356 | wx_cv_size_t_is_ulong=no | |
28357 | else | |
28358 | echo "$as_me: failed program was:" >&5 | |
28359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28360 | ||
28361 | wx_cv_size_t_is_ulong=yes | |
28362 | ||
28363 | fi | |
ac1cb8d3 | 28364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28365 | |
28366 | fi | |
28367 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
28368 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
28369 | ||
28370 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
28371 | cat >>confdefs.h <<\_ACEOF | |
28372 | #define wxSIZE_T_IS_ULONG 1 | |
28373 | _ACEOF | |
28374 | ||
28375 | fi | |
28376 | fi | |
28377 | ||
28378 | ac_ext=c | |
28379 | ac_cpp='$CPP $CPPFLAGS' | |
28380 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28381 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28382 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28383 | ||
28384 | ||
28385 | ||
28386 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
28387 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
28388 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
28389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28390 | else | |
28391 | ||
28392 | cat >conftest.$ac_ext <<_ACEOF | |
28393 | /* confdefs.h. */ | |
28394 | _ACEOF | |
28395 | cat confdefs.h >>conftest.$ac_ext | |
28396 | cat >>conftest.$ac_ext <<_ACEOF | |
28397 | /* end confdefs.h. */ | |
28398 | #include <pwd.h> | |
28399 | int | |
28400 | main () | |
28401 | { | |
28402 | ||
28403 | char *p; | |
28404 | struct passwd *pw; | |
28405 | p = pw->pw_gecos; | |
28406 | ||
28407 | ; | |
28408 | return 0; | |
28409 | } | |
28410 | _ACEOF | |
28411 | rm -f conftest.$ac_objext | |
28412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28413 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28414 | ac_status=$? |
ac1cb8d3 VS |
28415 | grep -v '^ *+' conftest.er1 >conftest.err |
28416 | rm -f conftest.er1 | |
28417 | cat conftest.err >&5 | |
a848cd7e SC |
28418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28419 | (exit $ac_status); } && | |
d1c38808 | 28420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28422 | (eval $ac_try) 2>&5 | |
28423 | ac_status=$? | |
28424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28425 | (exit $ac_status); }; } && | |
28426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28428 | (eval $ac_try) 2>&5 | |
28429 | ac_status=$? | |
28430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28431 | (exit $ac_status); }; }; then | |
28432 | ||
28433 | wx_cv_struct_pw_gecos=yes | |
28434 | ||
28435 | else | |
28436 | echo "$as_me: failed program was:" >&5 | |
28437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28438 | ||
28439 | ||
28440 | wx_cv_struct_pw_gecos=no | |
28441 | ||
28442 | ||
28443 | fi | |
ac1cb8d3 | 28444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28445 | |
28446 | ||
28447 | fi | |
28448 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
28449 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
28450 | ||
28451 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
28452 | cat >>confdefs.h <<\_ACEOF | |
28453 | #define HAVE_PW_GECOS 1 | |
28454 | _ACEOF | |
28455 | ||
28456 | fi | |
28457 | ||
28458 | ||
28459 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
28460 | cat >>confdefs.h <<\_ACEOF | |
28461 | #define wxUSE_WCHAR_T 1 | |
28462 | _ACEOF | |
28463 | ||
28464 | ||
28465 | WCSLEN_FOUND=0 | |
28466 | WCHAR_LINK= | |
28467 | ||
28468 | for ac_func in wcslen | |
28469 | do | |
28470 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28471 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28472 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28473 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28475 | else | |
28476 | cat >conftest.$ac_ext <<_ACEOF | |
28477 | /* confdefs.h. */ | |
28478 | _ACEOF | |
28479 | cat confdefs.h >>conftest.$ac_ext | |
28480 | cat >>conftest.$ac_ext <<_ACEOF | |
28481 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28482 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28483 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28484 | #define $ac_func innocuous_$ac_func | |
28485 | ||
a848cd7e SC |
28486 | /* System header to define __stub macros and hopefully few prototypes, |
28487 | which can conflict with char $ac_func (); below. | |
28488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28489 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28490 | |
a848cd7e SC |
28491 | #ifdef __STDC__ |
28492 | # include <limits.h> | |
28493 | #else | |
28494 | # include <assert.h> | |
28495 | #endif | |
ac1cb8d3 VS |
28496 | |
28497 | #undef $ac_func | |
28498 | ||
a848cd7e SC |
28499 | /* Override any gcc2 internal prototype to avoid an error. */ |
28500 | #ifdef __cplusplus | |
28501 | extern "C" | |
28502 | { | |
28503 | #endif | |
28504 | /* We use char because int might match the return type of a gcc2 | |
28505 | builtin and then its argument prototype would still apply. */ | |
28506 | char $ac_func (); | |
28507 | /* The GNU C library defines this for functions which it implements | |
28508 | to always fail with ENOSYS. Some functions are actually named | |
28509 | something starting with __ and the normal name is an alias. */ | |
28510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28511 | choke me | |
28512 | #else | |
28513 | char (*f) () = $ac_func; | |
28514 | #endif | |
28515 | #ifdef __cplusplus | |
28516 | } | |
28517 | #endif | |
28518 | ||
28519 | int | |
28520 | main () | |
28521 | { | |
28522 | return f != $ac_func; | |
28523 | ; | |
28524 | return 0; | |
28525 | } | |
28526 | _ACEOF | |
28527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28529 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28530 | ac_status=$? |
ac1cb8d3 VS |
28531 | grep -v '^ *+' conftest.er1 >conftest.err |
28532 | rm -f conftest.er1 | |
28533 | cat conftest.err >&5 | |
a848cd7e SC |
28534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28535 | (exit $ac_status); } && | |
d1c38808 | 28536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28538 | (eval $ac_try) 2>&5 | |
28539 | ac_status=$? | |
28540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28541 | (exit $ac_status); }; } && | |
28542 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28544 | (eval $ac_try) 2>&5 | |
28545 | ac_status=$? | |
28546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28547 | (exit $ac_status); }; }; then | |
28548 | eval "$as_ac_var=yes" | |
28549 | else | |
28550 | echo "$as_me: failed program was:" >&5 | |
28551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28552 | ||
28553 | eval "$as_ac_var=no" | |
28554 | fi | |
ac1cb8d3 VS |
28555 | rm -f conftest.err conftest.$ac_objext \ |
28556 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28557 | fi |
28558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28559 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28560 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28561 | cat >>confdefs.h <<_ACEOF | |
28562 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28563 | _ACEOF | |
28564 | WCSLEN_FOUND=1 | |
28565 | fi | |
28566 | done | |
28567 | ||
28568 | ||
28569 | if test "$WCSLEN_FOUND" = 0; then | |
28570 | if test "$TOOLKIT" = "MSW"; then | |
28571 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
28572 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
28573 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
28574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28575 | else | |
28576 | ac_check_lib_save_LIBS=$LIBS | |
28577 | LIBS="-lmsvcrt $LIBS" | |
28578 | cat >conftest.$ac_ext <<_ACEOF | |
28579 | /* confdefs.h. */ | |
28580 | _ACEOF | |
28581 | cat confdefs.h >>conftest.$ac_ext | |
28582 | cat >>conftest.$ac_ext <<_ACEOF | |
28583 | /* end confdefs.h. */ | |
28584 | ||
28585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28586 | #ifdef __cplusplus | |
28587 | extern "C" | |
28588 | #endif | |
28589 | /* We use char because int might match the return type of a gcc2 | |
28590 | builtin and then its argument prototype would still apply. */ | |
28591 | char wcslen (); | |
28592 | int | |
28593 | main () | |
28594 | { | |
28595 | wcslen (); | |
28596 | ; | |
28597 | return 0; | |
28598 | } | |
28599 | _ACEOF | |
28600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28602 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28603 | ac_status=$? |
ac1cb8d3 VS |
28604 | grep -v '^ *+' conftest.er1 >conftest.err |
28605 | rm -f conftest.er1 | |
28606 | cat conftest.err >&5 | |
a848cd7e SC |
28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28608 | (exit $ac_status); } && | |
d1c38808 | 28609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28611 | (eval $ac_try) 2>&5 | |
28612 | ac_status=$? | |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28614 | (exit $ac_status); }; } && | |
28615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28617 | (eval $ac_try) 2>&5 | |
28618 | ac_status=$? | |
28619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28620 | (exit $ac_status); }; }; then | |
28621 | ac_cv_lib_msvcrt_wcslen=yes | |
28622 | else | |
28623 | echo "$as_me: failed program was:" >&5 | |
28624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28625 | ||
28626 | ac_cv_lib_msvcrt_wcslen=no | |
28627 | fi | |
ac1cb8d3 VS |
28628 | rm -f conftest.err conftest.$ac_objext \ |
28629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28630 | LIBS=$ac_check_lib_save_LIBS |
28631 | fi | |
28632 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
28633 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
28634 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
28635 | WCHAR_OK=1 | |
28636 | fi | |
28637 | ||
28638 | else | |
28639 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
28640 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
28641 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
28642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28643 | else | |
28644 | ac_check_lib_save_LIBS=$LIBS | |
28645 | LIBS="-lw $LIBS" | |
28646 | cat >conftest.$ac_ext <<_ACEOF | |
28647 | /* confdefs.h. */ | |
28648 | _ACEOF | |
28649 | cat confdefs.h >>conftest.$ac_ext | |
28650 | cat >>conftest.$ac_ext <<_ACEOF | |
28651 | /* end confdefs.h. */ | |
28652 | ||
28653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28654 | #ifdef __cplusplus | |
28655 | extern "C" | |
28656 | #endif | |
28657 | /* We use char because int might match the return type of a gcc2 | |
28658 | builtin and then its argument prototype would still apply. */ | |
28659 | char wcslen (); | |
28660 | int | |
28661 | main () | |
28662 | { | |
28663 | wcslen (); | |
28664 | ; | |
28665 | return 0; | |
28666 | } | |
28667 | _ACEOF | |
28668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28670 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28671 | ac_status=$? |
ac1cb8d3 VS |
28672 | grep -v '^ *+' conftest.er1 >conftest.err |
28673 | rm -f conftest.er1 | |
28674 | cat conftest.err >&5 | |
a848cd7e SC |
28675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28676 | (exit $ac_status); } && | |
d1c38808 | 28677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28679 | (eval $ac_try) 2>&5 | |
28680 | ac_status=$? | |
28681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28682 | (exit $ac_status); }; } && | |
28683 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28685 | (eval $ac_try) 2>&5 | |
28686 | ac_status=$? | |
28687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28688 | (exit $ac_status); }; }; then | |
28689 | ac_cv_lib_w_wcslen=yes | |
28690 | else | |
28691 | echo "$as_me: failed program was:" >&5 | |
28692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28693 | ||
28694 | ac_cv_lib_w_wcslen=no | |
28695 | fi | |
ac1cb8d3 VS |
28696 | rm -f conftest.err conftest.$ac_objext \ |
28697 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28698 | LIBS=$ac_check_lib_save_LIBS |
28699 | fi | |
28700 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
28701 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
28702 | if test $ac_cv_lib_w_wcslen = yes; then | |
28703 | ||
28704 | WCHAR_LINK=" -lw" | |
28705 | WCSLEN_FOUND=1 | |
28706 | ||
28707 | fi | |
28708 | ||
28709 | fi | |
28710 | fi | |
28711 | ||
28712 | if test "$WCSLEN_FOUND" = 1; then | |
28713 | cat >>confdefs.h <<\_ACEOF | |
28714 | #define HAVE_WCSLEN 1 | |
28715 | _ACEOF | |
28716 | ||
28717 | fi | |
28718 | ||
473276a9 VS |
28719 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
28720 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
28721 | fi | |
28722 | ||
a848cd7e SC |
28723 | |
28724 | for ac_func in wcsrtombs | |
28725 | do | |
28726 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28727 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28729 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28731 | else | |
28732 | cat >conftest.$ac_ext <<_ACEOF | |
28733 | /* confdefs.h. */ | |
28734 | _ACEOF | |
28735 | cat confdefs.h >>conftest.$ac_ext | |
28736 | cat >>conftest.$ac_ext <<_ACEOF | |
28737 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28738 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28739 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28740 | #define $ac_func innocuous_$ac_func | |
28741 | ||
a848cd7e SC |
28742 | /* System header to define __stub macros and hopefully few prototypes, |
28743 | which can conflict with char $ac_func (); below. | |
28744 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28745 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28746 | |
a848cd7e SC |
28747 | #ifdef __STDC__ |
28748 | # include <limits.h> | |
28749 | #else | |
28750 | # include <assert.h> | |
28751 | #endif | |
ac1cb8d3 VS |
28752 | |
28753 | #undef $ac_func | |
28754 | ||
a848cd7e SC |
28755 | /* Override any gcc2 internal prototype to avoid an error. */ |
28756 | #ifdef __cplusplus | |
28757 | extern "C" | |
28758 | { | |
28759 | #endif | |
28760 | /* We use char because int might match the return type of a gcc2 | |
28761 | builtin and then its argument prototype would still apply. */ | |
28762 | char $ac_func (); | |
28763 | /* The GNU C library defines this for functions which it implements | |
28764 | to always fail with ENOSYS. Some functions are actually named | |
28765 | something starting with __ and the normal name is an alias. */ | |
28766 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28767 | choke me | |
28768 | #else | |
28769 | char (*f) () = $ac_func; | |
28770 | #endif | |
28771 | #ifdef __cplusplus | |
28772 | } | |
28773 | #endif | |
28774 | ||
28775 | int | |
28776 | main () | |
28777 | { | |
28778 | return f != $ac_func; | |
28779 | ; | |
28780 | return 0; | |
28781 | } | |
28782 | _ACEOF | |
28783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28786 | ac_status=$? |
ac1cb8d3 VS |
28787 | grep -v '^ *+' conftest.er1 >conftest.err |
28788 | rm -f conftest.er1 | |
28789 | cat conftest.err >&5 | |
a848cd7e SC |
28790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28791 | (exit $ac_status); } && | |
d1c38808 | 28792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28794 | (eval $ac_try) 2>&5 | |
28795 | ac_status=$? | |
28796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28797 | (exit $ac_status); }; } && | |
28798 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28800 | (eval $ac_try) 2>&5 | |
28801 | ac_status=$? | |
28802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28803 | (exit $ac_status); }; }; then | |
28804 | eval "$as_ac_var=yes" | |
28805 | else | |
28806 | echo "$as_me: failed program was:" >&5 | |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28808 | ||
28809 | eval "$as_ac_var=no" | |
28810 | fi | |
ac1cb8d3 VS |
28811 | rm -f conftest.err conftest.$ac_objext \ |
28812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28813 | fi |
28814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28815 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28816 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28817 | cat >>confdefs.h <<_ACEOF | |
28818 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28819 | _ACEOF | |
28820 | ||
28821 | fi | |
28822 | done | |
28823 | ||
28824 | else | |
28825 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
28826 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
28827 | fi | |
28828 | ||
28829 | ||
28830 | ||
28831 | ac_ext=cc | |
28832 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28833 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28834 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28835 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28836 | ||
28837 | ||
28838 | ||
28839 | for ac_func in vsnprintf | |
28840 | do | |
28841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28842 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28844 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28846 | else | |
28847 | cat >conftest.$ac_ext <<_ACEOF | |
28848 | /* confdefs.h. */ | |
28849 | _ACEOF | |
28850 | cat confdefs.h >>conftest.$ac_ext | |
28851 | cat >>conftest.$ac_ext <<_ACEOF | |
28852 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
28854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28855 | #define $ac_func innocuous_$ac_func | |
28856 | ||
a848cd7e SC |
28857 | /* System header to define __stub macros and hopefully few prototypes, |
28858 | which can conflict with char $ac_func (); below. | |
28859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28860 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28861 | |
a848cd7e SC |
28862 | #ifdef __STDC__ |
28863 | # include <limits.h> | |
28864 | #else | |
28865 | # include <assert.h> | |
28866 | #endif | |
ac1cb8d3 VS |
28867 | |
28868 | #undef $ac_func | |
28869 | ||
a848cd7e SC |
28870 | /* Override any gcc2 internal prototype to avoid an error. */ |
28871 | #ifdef __cplusplus | |
28872 | extern "C" | |
28873 | { | |
28874 | #endif | |
28875 | /* We use char because int might match the return type of a gcc2 | |
28876 | builtin and then its argument prototype would still apply. */ | |
28877 | char $ac_func (); | |
28878 | /* The GNU C library defines this for functions which it implements | |
28879 | to always fail with ENOSYS. Some functions are actually named | |
28880 | something starting with __ and the normal name is an alias. */ | |
28881 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28882 | choke me | |
28883 | #else | |
28884 | char (*f) () = $ac_func; | |
28885 | #endif | |
28886 | #ifdef __cplusplus | |
28887 | } | |
28888 | #endif | |
28889 | ||
28890 | int | |
28891 | main () | |
28892 | { | |
28893 | return f != $ac_func; | |
28894 | ; | |
28895 | return 0; | |
28896 | } | |
28897 | _ACEOF | |
28898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28900 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28901 | ac_status=$? |
ac1cb8d3 VS |
28902 | grep -v '^ *+' conftest.er1 >conftest.err |
28903 | rm -f conftest.er1 | |
28904 | cat conftest.err >&5 | |
a848cd7e SC |
28905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28906 | (exit $ac_status); } && | |
d1c38808 | 28907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28909 | (eval $ac_try) 2>&5 | |
28910 | ac_status=$? | |
28911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28912 | (exit $ac_status); }; } && | |
28913 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28915 | (eval $ac_try) 2>&5 | |
28916 | ac_status=$? | |
28917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28918 | (exit $ac_status); }; }; then | |
28919 | eval "$as_ac_var=yes" | |
28920 | else | |
28921 | echo "$as_me: failed program was:" >&5 | |
28922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28923 | ||
28924 | eval "$as_ac_var=no" | |
28925 | fi | |
ac1cb8d3 VS |
28926 | rm -f conftest.err conftest.$ac_objext \ |
28927 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28928 | fi |
28929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28930 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28931 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28932 | cat >>confdefs.h <<_ACEOF | |
28933 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28934 | _ACEOF | |
28935 | ||
28936 | fi | |
28937 | done | |
28938 | ||
28939 | ||
28940 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
28941 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
28942 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
28943 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
28944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28945 | else | |
28946 | ||
28947 | cat >conftest.$ac_ext <<_ACEOF | |
28948 | /* confdefs.h. */ | |
28949 | _ACEOF | |
28950 | cat confdefs.h >>conftest.$ac_ext | |
28951 | cat >>conftest.$ac_ext <<_ACEOF | |
28952 | /* end confdefs.h. */ | |
28953 | ||
28954 | #include <stdio.h> | |
28955 | #include <stdarg.h> | |
28956 | ||
28957 | int | |
28958 | main () | |
28959 | { | |
28960 | ||
28961 | char *buf; | |
28962 | va_list ap; | |
28963 | vsnprintf(buf, 10u, "%s", ap); | |
28964 | ||
28965 | ; | |
28966 | return 0; | |
28967 | } | |
28968 | _ACEOF | |
28969 | rm -f conftest.$ac_objext | |
28970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 28971 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 28972 | ac_status=$? |
ac1cb8d3 VS |
28973 | grep -v '^ *+' conftest.er1 >conftest.err |
28974 | rm -f conftest.er1 | |
28975 | cat conftest.err >&5 | |
a848cd7e SC |
28976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28977 | (exit $ac_status); } && | |
d1c38808 | 28978 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28980 | (eval $ac_try) 2>&5 | |
28981 | ac_status=$? | |
28982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28983 | (exit $ac_status); }; } && | |
28984 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
28985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28986 | (eval $ac_try) 2>&5 | |
28987 | ac_status=$? | |
28988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28989 | (exit $ac_status); }; }; then | |
28990 | wx_cv_func_vsnprintf_decl=yes | |
28991 | else | |
28992 | echo "$as_me: failed program was:" >&5 | |
28993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28994 | ||
28995 | wx_cv_func_vsnprintf_decl=no | |
28996 | ||
28997 | fi | |
ac1cb8d3 | 28998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28999 | |
29000 | ||
29001 | fi | |
29002 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
29003 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
29004 | ||
29005 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
29006 | cat >>confdefs.h <<\_ACEOF | |
29007 | #define HAVE_VSNPRINTF_DECL 1 | |
29008 | _ACEOF | |
29009 | ||
29010 | fi | |
29011 | fi | |
29012 | ||
29013 | if test "$wxUSE_UNICODE" = yes; then | |
29014 | ||
29015 | ||
29016 | ||
fbe47c7b VS |
29017 | |
29018 | ||
29019 | ||
29020 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
29021 | do |
29022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29023 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29025 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29027 | else | |
29028 | cat >conftest.$ac_ext <<_ACEOF | |
29029 | /* confdefs.h. */ | |
29030 | _ACEOF | |
29031 | cat confdefs.h >>conftest.$ac_ext | |
29032 | cat >>conftest.$ac_ext <<_ACEOF | |
29033 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29036 | #define $ac_func innocuous_$ac_func | |
29037 | ||
a848cd7e SC |
29038 | /* System header to define __stub macros and hopefully few prototypes, |
29039 | which can conflict with char $ac_func (); below. | |
29040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29041 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29042 | |
a848cd7e SC |
29043 | #ifdef __STDC__ |
29044 | # include <limits.h> | |
29045 | #else | |
29046 | # include <assert.h> | |
29047 | #endif | |
ac1cb8d3 VS |
29048 | |
29049 | #undef $ac_func | |
29050 | ||
a848cd7e SC |
29051 | /* Override any gcc2 internal prototype to avoid an error. */ |
29052 | #ifdef __cplusplus | |
29053 | extern "C" | |
29054 | { | |
29055 | #endif | |
29056 | /* We use char because int might match the return type of a gcc2 | |
29057 | builtin and then its argument prototype would still apply. */ | |
29058 | char $ac_func (); | |
29059 | /* The GNU C library defines this for functions which it implements | |
29060 | to always fail with ENOSYS. Some functions are actually named | |
29061 | something starting with __ and the normal name is an alias. */ | |
29062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29063 | choke me | |
29064 | #else | |
29065 | char (*f) () = $ac_func; | |
29066 | #endif | |
29067 | #ifdef __cplusplus | |
29068 | } | |
29069 | #endif | |
29070 | ||
29071 | int | |
29072 | main () | |
29073 | { | |
29074 | return f != $ac_func; | |
29075 | ; | |
29076 | return 0; | |
29077 | } | |
29078 | _ACEOF | |
29079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29081 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29082 | ac_status=$? |
ac1cb8d3 VS |
29083 | grep -v '^ *+' conftest.er1 >conftest.err |
29084 | rm -f conftest.er1 | |
29085 | cat conftest.err >&5 | |
a848cd7e SC |
29086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29087 | (exit $ac_status); } && | |
d1c38808 | 29088 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29090 | (eval $ac_try) 2>&5 | |
29091 | ac_status=$? | |
29092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29093 | (exit $ac_status); }; } && | |
29094 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29096 | (eval $ac_try) 2>&5 | |
29097 | ac_status=$? | |
29098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29099 | (exit $ac_status); }; }; then | |
29100 | eval "$as_ac_var=yes" | |
29101 | else | |
29102 | echo "$as_me: failed program was:" >&5 | |
29103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29104 | ||
29105 | eval "$as_ac_var=no" | |
29106 | fi | |
ac1cb8d3 VS |
29107 | rm -f conftest.err conftest.$ac_objext \ |
29108 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29109 | fi |
29110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29111 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29112 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29113 | cat >>confdefs.h <<_ACEOF | |
29114 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29115 | _ACEOF | |
29116 | ||
29117 | fi | |
29118 | done | |
29119 | ||
29120 | ||
29121 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
29122 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
29123 | cat >conftest.$ac_ext <<_ACEOF | |
29124 | /* confdefs.h. */ | |
29125 | _ACEOF | |
29126 | cat confdefs.h >>conftest.$ac_ext | |
29127 | cat >>conftest.$ac_ext <<_ACEOF | |
29128 | /* end confdefs.h. */ | |
29129 | #include <wchar.h> | |
29130 | int | |
29131 | main () | |
29132 | { | |
29133 | &_vsnwprintf; | |
29134 | ; | |
29135 | return 0; | |
29136 | } | |
29137 | _ACEOF | |
29138 | rm -f conftest.$ac_objext | |
29139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29140 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29141 | ac_status=$? |
ac1cb8d3 VS |
29142 | grep -v '^ *+' conftest.er1 >conftest.err |
29143 | rm -f conftest.er1 | |
29144 | cat conftest.err >&5 | |
a848cd7e SC |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29146 | (exit $ac_status); } && | |
d1c38808 | 29147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29149 | (eval $ac_try) 2>&5 | |
29150 | ac_status=$? | |
29151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29152 | (exit $ac_status); }; } && | |
29153 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29155 | (eval $ac_try) 2>&5 | |
29156 | ac_status=$? | |
29157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29158 | (exit $ac_status); }; }; then | |
29159 | echo "$as_me:$LINENO: result: yes" >&5 | |
29160 | echo "${ECHO_T}yes" >&6 | |
29161 | cat >>confdefs.h <<\_ACEOF | |
29162 | #define HAVE__VSNWPRINTF 1 | |
29163 | _ACEOF | |
29164 | ||
29165 | else | |
29166 | echo "$as_me: failed program was:" >&5 | |
29167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29168 | ||
29169 | echo "$as_me:$LINENO: result: no" >&5 | |
29170 | echo "${ECHO_T}no" >&6 | |
29171 | fi | |
ac1cb8d3 | 29172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
29173 | fi |
29174 | ||
29175 | ac_ext=c | |
29176 | ac_cpp='$CPP $CPPFLAGS' | |
29177 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29178 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29179 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29180 | ||
29181 | ||
29182 | ||
29183 | ||
29184 | if test "$TOOLKIT" != "MSW"; then | |
29185 | ||
29186 | ||
29187 | ||
29188 | ||
29189 | ac_ext=cc | |
29190 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29191 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29192 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29193 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29194 | ||
29195 | ||
29196 | ||
29197 | ||
29198 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
29199 | if test "${with_libiconv_prefix+set}" = set; then | |
29200 | withval="$with_libiconv_prefix" | |
29201 | ||
29202 | for dir in `echo "$withval" | tr : ' '`; do | |
29203 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
29204 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
29205 | done | |
29206 | ||
29207 | fi; | |
29208 | ||
29209 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
29210 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
29211 | if test "${am_cv_func_iconv+set}" = set; then | |
29212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29213 | else | |
29214 | ||
29215 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
29216 | am_cv_lib_iconv=no | |
29217 | cat >conftest.$ac_ext <<_ACEOF | |
29218 | /* confdefs.h. */ | |
29219 | _ACEOF | |
29220 | cat confdefs.h >>conftest.$ac_ext | |
29221 | cat >>conftest.$ac_ext <<_ACEOF | |
29222 | /* end confdefs.h. */ | |
29223 | #include <stdlib.h> | |
29224 | #include <iconv.h> | |
29225 | int | |
29226 | main () | |
29227 | { | |
29228 | iconv_t cd = iconv_open("",""); | |
29229 | iconv(cd,NULL,NULL,NULL,NULL); | |
29230 | iconv_close(cd); | |
29231 | ; | |
29232 | return 0; | |
29233 | } | |
29234 | _ACEOF | |
29235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29237 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29238 | ac_status=$? |
ac1cb8d3 VS |
29239 | grep -v '^ *+' conftest.er1 >conftest.err |
29240 | rm -f conftest.er1 | |
29241 | cat conftest.err >&5 | |
a848cd7e SC |
29242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29243 | (exit $ac_status); } && | |
d1c38808 | 29244 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29246 | (eval $ac_try) 2>&5 | |
29247 | ac_status=$? | |
29248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29249 | (exit $ac_status); }; } && | |
29250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29252 | (eval $ac_try) 2>&5 | |
29253 | ac_status=$? | |
29254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29255 | (exit $ac_status); }; }; then | |
29256 | am_cv_func_iconv=yes | |
29257 | else | |
29258 | echo "$as_me: failed program was:" >&5 | |
29259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29260 | ||
29261 | fi | |
ac1cb8d3 VS |
29262 | rm -f conftest.err conftest.$ac_objext \ |
29263 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29264 | if test "$am_cv_func_iconv" != yes; then |
29265 | am_save_LIBS="$LIBS" | |
29266 | LIBS="$LIBS -liconv" | |
29267 | cat >conftest.$ac_ext <<_ACEOF | |
29268 | /* confdefs.h. */ | |
29269 | _ACEOF | |
29270 | cat confdefs.h >>conftest.$ac_ext | |
29271 | cat >>conftest.$ac_ext <<_ACEOF | |
29272 | /* end confdefs.h. */ | |
29273 | #include <stdlib.h> | |
29274 | #include <iconv.h> | |
29275 | int | |
29276 | main () | |
29277 | { | |
29278 | iconv_t cd = iconv_open("",""); | |
29279 | iconv(cd,NULL,NULL,NULL,NULL); | |
29280 | iconv_close(cd); | |
29281 | ; | |
29282 | return 0; | |
29283 | } | |
29284 | _ACEOF | |
29285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29287 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29288 | ac_status=$? |
ac1cb8d3 VS |
29289 | grep -v '^ *+' conftest.er1 >conftest.err |
29290 | rm -f conftest.er1 | |
29291 | cat conftest.err >&5 | |
a848cd7e SC |
29292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29293 | (exit $ac_status); } && | |
d1c38808 | 29294 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29296 | (eval $ac_try) 2>&5 | |
29297 | ac_status=$? | |
29298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29299 | (exit $ac_status); }; } && | |
29300 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29302 | (eval $ac_try) 2>&5 | |
29303 | ac_status=$? | |
29304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29305 | (exit $ac_status); }; }; then | |
29306 | am_cv_lib_iconv=yes | |
29307 | am_cv_func_iconv=yes | |
29308 | else | |
29309 | echo "$as_me: failed program was:" >&5 | |
29310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29311 | ||
29312 | fi | |
ac1cb8d3 VS |
29313 | rm -f conftest.err conftest.$ac_objext \ |
29314 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29315 | LIBS="$am_save_LIBS" |
29316 | fi | |
29317 | ||
29318 | fi | |
29319 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
29320 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
29321 | if test "$am_cv_func_iconv" = yes; then | |
29322 | ||
29323 | cat >>confdefs.h <<\_ACEOF | |
29324 | #define HAVE_ICONV 1 | |
29325 | _ACEOF | |
29326 | ||
29327 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
29328 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
29329 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
29330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29331 | else | |
29332 | cat >conftest.$ac_ext <<_ACEOF | |
29333 | /* confdefs.h. */ | |
29334 | _ACEOF | |
29335 | cat confdefs.h >>conftest.$ac_ext | |
29336 | cat >>conftest.$ac_ext <<_ACEOF | |
29337 | /* end confdefs.h. */ | |
29338 | ||
29339 | #include <stdlib.h> | |
29340 | #include <iconv.h> | |
29341 | extern | |
29342 | #ifdef __cplusplus | |
29343 | "C" | |
29344 | #endif | |
29345 | #if defined(__STDC__) || defined(__cplusplus) | |
29346 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
29347 | #else | |
29348 | size_t iconv(); | |
29349 | #endif | |
29350 | ||
29351 | int | |
29352 | main () | |
29353 | { | |
29354 | ||
29355 | ; | |
29356 | return 0; | |
29357 | } | |
29358 | _ACEOF | |
29359 | rm -f conftest.$ac_objext | |
29360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29361 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29362 | ac_status=$? |
ac1cb8d3 VS |
29363 | grep -v '^ *+' conftest.er1 >conftest.err |
29364 | rm -f conftest.er1 | |
29365 | cat conftest.err >&5 | |
a848cd7e SC |
29366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29367 | (exit $ac_status); } && | |
d1c38808 | 29368 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29370 | (eval $ac_try) 2>&5 | |
29371 | ac_status=$? | |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29373 | (exit $ac_status); }; } && | |
29374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29376 | (eval $ac_try) 2>&5 | |
29377 | ac_status=$? | |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29379 | (exit $ac_status); }; }; then | |
29380 | wx_cv_func_iconv_const="no" | |
29381 | else | |
29382 | echo "$as_me: failed program was:" >&5 | |
29383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29384 | ||
29385 | wx_cv_func_iconv_const="yes" | |
29386 | ||
29387 | fi | |
ac1cb8d3 | 29388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29389 | |
29390 | fi | |
29391 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
29392 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
29393 | ||
29394 | iconv_const= | |
29395 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
29396 | iconv_const="const" | |
29397 | fi | |
29398 | ||
29399 | ||
29400 | cat >>confdefs.h <<_ACEOF | |
29401 | #define ICONV_CONST $iconv_const | |
29402 | _ACEOF | |
29403 | ||
29404 | fi | |
29405 | LIBICONV= | |
29406 | if test "$am_cv_lib_iconv" = yes; then | |
29407 | LIBICONV="-liconv" | |
29408 | fi | |
29409 | ||
29410 | ||
29411 | LIBS="$LIBICONV $LIBS" | |
29412 | ac_ext=c | |
29413 | ac_cpp='$CPP $CPPFLAGS' | |
29414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29417 | ||
29418 | ||
29419 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
29420 | ||
29421 | for ac_func in sigaction | |
29422 | do | |
29423 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29424 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29425 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29426 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29428 | else | |
29429 | cat >conftest.$ac_ext <<_ACEOF | |
29430 | /* confdefs.h. */ | |
29431 | _ACEOF | |
29432 | cat confdefs.h >>conftest.$ac_ext | |
29433 | cat >>conftest.$ac_ext <<_ACEOF | |
29434 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29435 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29436 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29437 | #define $ac_func innocuous_$ac_func | |
29438 | ||
a848cd7e SC |
29439 | /* System header to define __stub macros and hopefully few prototypes, |
29440 | which can conflict with char $ac_func (); below. | |
29441 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29442 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29443 | |
a848cd7e SC |
29444 | #ifdef __STDC__ |
29445 | # include <limits.h> | |
29446 | #else | |
29447 | # include <assert.h> | |
29448 | #endif | |
ac1cb8d3 VS |
29449 | |
29450 | #undef $ac_func | |
29451 | ||
a848cd7e SC |
29452 | /* Override any gcc2 internal prototype to avoid an error. */ |
29453 | #ifdef __cplusplus | |
29454 | extern "C" | |
29455 | { | |
29456 | #endif | |
29457 | /* We use char because int might match the return type of a gcc2 | |
29458 | builtin and then its argument prototype would still apply. */ | |
29459 | char $ac_func (); | |
29460 | /* The GNU C library defines this for functions which it implements | |
29461 | to always fail with ENOSYS. Some functions are actually named | |
29462 | something starting with __ and the normal name is an alias. */ | |
29463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29464 | choke me | |
29465 | #else | |
29466 | char (*f) () = $ac_func; | |
29467 | #endif | |
29468 | #ifdef __cplusplus | |
29469 | } | |
29470 | #endif | |
29471 | ||
29472 | int | |
29473 | main () | |
29474 | { | |
29475 | return f != $ac_func; | |
29476 | ; | |
29477 | return 0; | |
29478 | } | |
29479 | _ACEOF | |
29480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29482 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29483 | ac_status=$? |
ac1cb8d3 VS |
29484 | grep -v '^ *+' conftest.er1 >conftest.err |
29485 | rm -f conftest.er1 | |
29486 | cat conftest.err >&5 | |
a848cd7e SC |
29487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29488 | (exit $ac_status); } && | |
d1c38808 | 29489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29491 | (eval $ac_try) 2>&5 | |
29492 | ac_status=$? | |
29493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29494 | (exit $ac_status); }; } && | |
29495 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29497 | (eval $ac_try) 2>&5 | |
29498 | ac_status=$? | |
29499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29500 | (exit $ac_status); }; }; then | |
29501 | eval "$as_ac_var=yes" | |
29502 | else | |
29503 | echo "$as_me: failed program was:" >&5 | |
29504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29505 | ||
29506 | eval "$as_ac_var=no" | |
29507 | fi | |
ac1cb8d3 VS |
29508 | rm -f conftest.err conftest.$ac_objext \ |
29509 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29510 | fi |
29511 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29512 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29513 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29514 | cat >>confdefs.h <<_ACEOF | |
29515 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29516 | _ACEOF | |
29517 | ||
29518 | fi | |
29519 | done | |
29520 | ||
29521 | ||
29522 | if test "$ac_cv_func_sigaction" = "no"; then | |
29523 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
29524 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
29525 | wxUSE_ON_FATAL_EXCEPTION=no | |
29526 | fi | |
29527 | ||
29528 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
29529 | ||
29530 | ||
29531 | ac_ext=cc | |
29532 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29533 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29534 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29535 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29536 | ||
29537 | ||
29538 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
29539 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
29540 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
29541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29542 | else | |
29543 | ||
29544 | cat >conftest.$ac_ext <<_ACEOF | |
29545 | /* confdefs.h. */ | |
29546 | _ACEOF | |
29547 | cat confdefs.h >>conftest.$ac_ext | |
29548 | cat >>conftest.$ac_ext <<_ACEOF | |
29549 | /* end confdefs.h. */ | |
29550 | #include <signal.h> | |
29551 | int | |
29552 | main () | |
29553 | { | |
29554 | ||
29555 | extern void testSigHandler(int); | |
29556 | ||
29557 | struct sigaction sa; | |
29558 | sa.sa_handler = testSigHandler; | |
29559 | ||
29560 | ; | |
29561 | return 0; | |
29562 | } | |
29563 | _ACEOF | |
29564 | rm -f conftest.$ac_objext | |
29565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29566 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29567 | ac_status=$? |
ac1cb8d3 VS |
29568 | grep -v '^ *+' conftest.er1 >conftest.err |
29569 | rm -f conftest.er1 | |
29570 | cat conftest.err >&5 | |
a848cd7e SC |
29571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29572 | (exit $ac_status); } && | |
d1c38808 | 29573 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29575 | (eval $ac_try) 2>&5 | |
29576 | ac_status=$? | |
29577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29578 | (exit $ac_status); }; } && | |
29579 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29581 | (eval $ac_try) 2>&5 | |
29582 | ac_status=$? | |
29583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29584 | (exit $ac_status); }; }; then | |
29585 | ||
29586 | wx_cv_type_sa_handler=int | |
29587 | ||
29588 | else | |
29589 | echo "$as_me: failed program was:" >&5 | |
29590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29591 | ||
29592 | ||
29593 | wx_cv_type_sa_handler=void | |
29594 | ||
29595 | fi | |
ac1cb8d3 | 29596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29597 | |
29598 | fi | |
29599 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
29600 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
29601 | ||
29602 | ac_ext=c | |
29603 | ac_cpp='$CPP $CPPFLAGS' | |
29604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29607 | ||
29608 | ||
29609 | cat >>confdefs.h <<_ACEOF | |
29610 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
29611 | _ACEOF | |
29612 | ||
29613 | fi | |
29614 | fi | |
29615 | ||
29616 | ||
29617 | ||
29618 | for ac_func in mkstemp mktemp | |
29619 | do | |
29620 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29621 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29622 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29623 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29625 | else | |
29626 | cat >conftest.$ac_ext <<_ACEOF | |
29627 | /* confdefs.h. */ | |
29628 | _ACEOF | |
29629 | cat confdefs.h >>conftest.$ac_ext | |
29630 | cat >>conftest.$ac_ext <<_ACEOF | |
29631 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29632 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
29633 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29634 | #define $ac_func innocuous_$ac_func | |
29635 | ||
a848cd7e SC |
29636 | /* System header to define __stub macros and hopefully few prototypes, |
29637 | which can conflict with char $ac_func (); below. | |
29638 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29639 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29640 | |
a848cd7e SC |
29641 | #ifdef __STDC__ |
29642 | # include <limits.h> | |
29643 | #else | |
29644 | # include <assert.h> | |
29645 | #endif | |
ac1cb8d3 VS |
29646 | |
29647 | #undef $ac_func | |
29648 | ||
a848cd7e SC |
29649 | /* Override any gcc2 internal prototype to avoid an error. */ |
29650 | #ifdef __cplusplus | |
29651 | extern "C" | |
29652 | { | |
29653 | #endif | |
29654 | /* We use char because int might match the return type of a gcc2 | |
29655 | builtin and then its argument prototype would still apply. */ | |
29656 | char $ac_func (); | |
29657 | /* The GNU C library defines this for functions which it implements | |
29658 | to always fail with ENOSYS. Some functions are actually named | |
29659 | something starting with __ and the normal name is an alias. */ | |
29660 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29661 | choke me | |
29662 | #else | |
29663 | char (*f) () = $ac_func; | |
29664 | #endif | |
29665 | #ifdef __cplusplus | |
29666 | } | |
29667 | #endif | |
29668 | ||
29669 | int | |
29670 | main () | |
29671 | { | |
29672 | return f != $ac_func; | |
29673 | ; | |
29674 | return 0; | |
29675 | } | |
29676 | _ACEOF | |
29677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29679 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29680 | ac_status=$? |
ac1cb8d3 VS |
29681 | grep -v '^ *+' conftest.er1 >conftest.err |
29682 | rm -f conftest.er1 | |
29683 | cat conftest.err >&5 | |
a848cd7e SC |
29684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29685 | (exit $ac_status); } && | |
d1c38808 | 29686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29688 | (eval $ac_try) 2>&5 | |
29689 | ac_status=$? | |
29690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29691 | (exit $ac_status); }; } && | |
29692 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29694 | (eval $ac_try) 2>&5 | |
29695 | ac_status=$? | |
29696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29697 | (exit $ac_status); }; }; then | |
29698 | eval "$as_ac_var=yes" | |
29699 | else | |
29700 | echo "$as_me: failed program was:" >&5 | |
29701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29702 | ||
29703 | eval "$as_ac_var=no" | |
29704 | fi | |
ac1cb8d3 VS |
29705 | rm -f conftest.err conftest.$ac_objext \ |
29706 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29707 | fi |
29708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29709 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29710 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29711 | cat >>confdefs.h <<_ACEOF | |
29712 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29713 | _ACEOF | |
29714 | break | |
29715 | fi | |
29716 | done | |
29717 | ||
29718 | ||
29719 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
29720 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
29721 | if test "${wx_cv_func_statfs+set}" = set; then | |
29722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29723 | else | |
29724 | cat >conftest.$ac_ext <<_ACEOF | |
29725 | /* confdefs.h. */ | |
29726 | _ACEOF | |
29727 | cat confdefs.h >>conftest.$ac_ext | |
29728 | cat >>conftest.$ac_ext <<_ACEOF | |
29729 | /* end confdefs.h. */ | |
29730 | ||
29731 | #if defined(__BSD__) | |
29732 | #include <sys/param.h> | |
29733 | #include <sys/mount.h> | |
29734 | #else | |
29735 | #include <sys/vfs.h> | |
29736 | #endif | |
29737 | ||
29738 | int | |
29739 | main () | |
29740 | { | |
29741 | ||
29742 | long l; | |
29743 | struct statfs fs; | |
29744 | statfs("/", &fs); | |
29745 | l = fs.f_bsize; | |
29746 | l += fs.f_blocks; | |
29747 | l += fs.f_bavail; | |
29748 | ||
29749 | ; | |
29750 | return 0; | |
29751 | } | |
29752 | _ACEOF | |
29753 | rm -f conftest.$ac_objext | |
29754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29755 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29756 | ac_status=$? |
ac1cb8d3 VS |
29757 | grep -v '^ *+' conftest.er1 >conftest.err |
29758 | rm -f conftest.er1 | |
29759 | cat conftest.err >&5 | |
a848cd7e SC |
29760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29761 | (exit $ac_status); } && | |
d1c38808 | 29762 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29764 | (eval $ac_try) 2>&5 | |
29765 | ac_status=$? | |
29766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29767 | (exit $ac_status); }; } && | |
29768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29770 | (eval $ac_try) 2>&5 | |
29771 | ac_status=$? | |
29772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29773 | (exit $ac_status); }; }; then | |
29774 | ||
29775 | wx_cv_func_statfs=yes | |
29776 | ||
29777 | else | |
29778 | echo "$as_me: failed program was:" >&5 | |
29779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29780 | ||
29781 | ||
29782 | wx_cv_func_statfs=no | |
29783 | ||
29784 | ||
29785 | fi | |
ac1cb8d3 | 29786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29787 | |
29788 | fi | |
29789 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
29790 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
29791 | ||
29792 | if test "$wx_cv_func_statfs" = "yes"; then | |
29793 | wx_cv_type_statvfs_t="struct statfs" | |
29794 | cat >>confdefs.h <<\_ACEOF | |
29795 | #define HAVE_STATFS 1 | |
29796 | _ACEOF | |
29797 | ||
29798 | else | |
29799 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
29800 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
29801 | if test "${wx_cv_func_statvfs+set}" = set; then | |
29802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29803 | else | |
29804 | cat >conftest.$ac_ext <<_ACEOF | |
29805 | /* confdefs.h. */ | |
29806 | _ACEOF | |
29807 | cat confdefs.h >>conftest.$ac_ext | |
29808 | cat >>conftest.$ac_ext <<_ACEOF | |
29809 | /* end confdefs.h. */ | |
29810 | ||
29811 | #include <stddef.h> | |
29812 | #include <sys/statvfs.h> | |
29813 | ||
29814 | int | |
29815 | main () | |
29816 | { | |
29817 | ||
29818 | statvfs("/", NULL); | |
29819 | ||
29820 | ; | |
29821 | return 0; | |
29822 | } | |
29823 | _ACEOF | |
29824 | rm -f conftest.$ac_objext | |
29825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29827 | ac_status=$? |
ac1cb8d3 VS |
29828 | grep -v '^ *+' conftest.er1 >conftest.err |
29829 | rm -f conftest.er1 | |
29830 | cat conftest.err >&5 | |
a848cd7e SC |
29831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29832 | (exit $ac_status); } && | |
d1c38808 | 29833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29835 | (eval $ac_try) 2>&5 | |
29836 | ac_status=$? | |
29837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29838 | (exit $ac_status); }; } && | |
29839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29841 | (eval $ac_try) 2>&5 | |
29842 | ac_status=$? | |
29843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29844 | (exit $ac_status); }; }; then | |
29845 | wx_cv_func_statvfs=yes | |
29846 | else | |
29847 | echo "$as_me: failed program was:" >&5 | |
29848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29849 | ||
29850 | wx_cv_func_statvfs=no | |
29851 | ||
29852 | fi | |
ac1cb8d3 | 29853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29854 | |
29855 | fi | |
29856 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
29857 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
29858 | ||
29859 | if test "$wx_cv_func_statvfs" = "yes"; then | |
29860 | ||
29861 | ||
29862 | ac_ext=cc | |
29863 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29864 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29865 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29866 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29867 | ||
29868 | ||
29869 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
29870 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
29871 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
29872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29873 | else | |
29874 | cat >conftest.$ac_ext <<_ACEOF | |
29875 | /* confdefs.h. */ | |
29876 | _ACEOF | |
29877 | cat confdefs.h >>conftest.$ac_ext | |
29878 | cat >>conftest.$ac_ext <<_ACEOF | |
29879 | /* end confdefs.h. */ | |
29880 | ||
29881 | #include <sys/statvfs.h> | |
29882 | ||
29883 | int | |
29884 | main () | |
29885 | { | |
29886 | ||
29887 | long l; | |
29888 | statvfs_t fs; | |
29889 | statvfs("/", &fs); | |
29890 | l = fs.f_bsize; | |
29891 | l += fs.f_blocks; | |
29892 | l += fs.f_bavail; | |
29893 | ||
29894 | ; | |
29895 | return 0; | |
29896 | } | |
29897 | _ACEOF | |
29898 | rm -f conftest.$ac_objext | |
29899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29901 | ac_status=$? |
ac1cb8d3 VS |
29902 | grep -v '^ *+' conftest.er1 >conftest.err |
29903 | rm -f conftest.er1 | |
29904 | cat conftest.err >&5 | |
a848cd7e SC |
29905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29906 | (exit $ac_status); } && | |
d1c38808 | 29907 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29909 | (eval $ac_try) 2>&5 | |
29910 | ac_status=$? | |
29911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29912 | (exit $ac_status); }; } && | |
29913 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29915 | (eval $ac_try) 2>&5 | |
29916 | ac_status=$? | |
29917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29918 | (exit $ac_status); }; }; then | |
29919 | wx_cv_type_statvfs_t=statvfs_t | |
29920 | else | |
29921 | echo "$as_me: failed program was:" >&5 | |
29922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29923 | ||
29924 | ||
29925 | cat >conftest.$ac_ext <<_ACEOF | |
29926 | /* confdefs.h. */ | |
29927 | _ACEOF | |
29928 | cat confdefs.h >>conftest.$ac_ext | |
29929 | cat >>conftest.$ac_ext <<_ACEOF | |
29930 | /* end confdefs.h. */ | |
29931 | ||
29932 | #include <sys/statvfs.h> | |
29933 | ||
29934 | int | |
29935 | main () | |
29936 | { | |
29937 | ||
29938 | long l; | |
29939 | struct statvfs fs; | |
29940 | statvfs("/", &fs); | |
29941 | l = fs.f_bsize; | |
29942 | l += fs.f_blocks; | |
29943 | l += fs.f_bavail; | |
29944 | ||
29945 | ; | |
29946 | return 0; | |
29947 | } | |
29948 | _ACEOF | |
29949 | rm -f conftest.$ac_objext | |
29950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29951 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29952 | ac_status=$? |
ac1cb8d3 VS |
29953 | grep -v '^ *+' conftest.er1 >conftest.err |
29954 | rm -f conftest.er1 | |
29955 | cat conftest.err >&5 | |
a848cd7e SC |
29956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29957 | (exit $ac_status); } && | |
d1c38808 | 29958 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29960 | (eval $ac_try) 2>&5 | |
29961 | ac_status=$? | |
29962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29963 | (exit $ac_status); }; } && | |
29964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29966 | (eval $ac_try) 2>&5 | |
29967 | ac_status=$? | |
29968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29969 | (exit $ac_status); }; }; then | |
29970 | wx_cv_type_statvfs_t="struct statvfs" | |
29971 | else | |
29972 | echo "$as_me: failed program was:" >&5 | |
29973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29974 | ||
29975 | wx_cv_type_statvfs_t="unknown" | |
29976 | ||
29977 | fi | |
ac1cb8d3 | 29978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29979 | |
29980 | ||
29981 | fi | |
ac1cb8d3 | 29982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29983 | |
29984 | fi | |
29985 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
29986 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
29987 | ||
29988 | ac_ext=c | |
29989 | ac_cpp='$CPP $CPPFLAGS' | |
29990 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29991 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29992 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29993 | ||
29994 | ||
29995 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
29996 | cat >>confdefs.h <<\_ACEOF | |
29997 | #define HAVE_STATVFS 1 | |
29998 | _ACEOF | |
29999 | ||
30000 | fi | |
30001 | else | |
30002 | wx_cv_type_statvfs_t="unknown" | |
30003 | fi | |
30004 | fi | |
30005 | ||
30006 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30007 | cat >>confdefs.h <<_ACEOF | |
30008 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30009 | _ACEOF | |
30010 | ||
30011 | else | |
30012 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
30013 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
30014 | fi | |
30015 | ||
30016 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
30017 | ||
30018 | ||
30019 | for ac_func in fcntl flock | |
30020 | do | |
30021 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30022 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30023 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30024 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30026 | else | |
30027 | cat >conftest.$ac_ext <<_ACEOF | |
30028 | /* confdefs.h. */ | |
30029 | _ACEOF | |
30030 | cat confdefs.h >>conftest.$ac_ext | |
30031 | cat >>conftest.$ac_ext <<_ACEOF | |
30032 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30033 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30034 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30035 | #define $ac_func innocuous_$ac_func | |
30036 | ||
a848cd7e SC |
30037 | /* System header to define __stub macros and hopefully few prototypes, |
30038 | which can conflict with char $ac_func (); below. | |
30039 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30040 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30041 | |
a848cd7e SC |
30042 | #ifdef __STDC__ |
30043 | # include <limits.h> | |
30044 | #else | |
30045 | # include <assert.h> | |
30046 | #endif | |
ac1cb8d3 VS |
30047 | |
30048 | #undef $ac_func | |
30049 | ||
a848cd7e SC |
30050 | /* Override any gcc2 internal prototype to avoid an error. */ |
30051 | #ifdef __cplusplus | |
30052 | extern "C" | |
30053 | { | |
30054 | #endif | |
30055 | /* We use char because int might match the return type of a gcc2 | |
30056 | builtin and then its argument prototype would still apply. */ | |
30057 | char $ac_func (); | |
30058 | /* The GNU C library defines this for functions which it implements | |
30059 | to always fail with ENOSYS. Some functions are actually named | |
30060 | something starting with __ and the normal name is an alias. */ | |
30061 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30062 | choke me | |
30063 | #else | |
30064 | char (*f) () = $ac_func; | |
30065 | #endif | |
30066 | #ifdef __cplusplus | |
30067 | } | |
30068 | #endif | |
30069 | ||
30070 | int | |
30071 | main () | |
30072 | { | |
30073 | return f != $ac_func; | |
30074 | ; | |
30075 | return 0; | |
30076 | } | |
30077 | _ACEOF | |
30078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30081 | ac_status=$? |
ac1cb8d3 VS |
30082 | grep -v '^ *+' conftest.er1 >conftest.err |
30083 | rm -f conftest.er1 | |
30084 | cat conftest.err >&5 | |
a848cd7e SC |
30085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30086 | (exit $ac_status); } && | |
d1c38808 | 30087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30089 | (eval $ac_try) 2>&5 | |
30090 | ac_status=$? | |
30091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30092 | (exit $ac_status); }; } && | |
30093 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30095 | (eval $ac_try) 2>&5 | |
30096 | ac_status=$? | |
30097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30098 | (exit $ac_status); }; }; then | |
30099 | eval "$as_ac_var=yes" | |
30100 | else | |
30101 | echo "$as_me: failed program was:" >&5 | |
30102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30103 | ||
30104 | eval "$as_ac_var=no" | |
30105 | fi | |
ac1cb8d3 VS |
30106 | rm -f conftest.err conftest.$ac_objext \ |
30107 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30108 | fi |
30109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30111 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30112 | cat >>confdefs.h <<_ACEOF | |
30113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30114 | _ACEOF | |
30115 | break | |
30116 | fi | |
30117 | done | |
30118 | ||
30119 | ||
30120 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
30121 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
30122 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
30123 | wxUSE_SNGLINST_CHECKER=no | |
30124 | fi | |
30125 | fi | |
30126 | ||
30127 | ||
30128 | for ac_func in timegm | |
30129 | do | |
30130 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30131 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30132 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30133 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30135 | else | |
30136 | cat >conftest.$ac_ext <<_ACEOF | |
30137 | /* confdefs.h. */ | |
30138 | _ACEOF | |
30139 | cat confdefs.h >>conftest.$ac_ext | |
30140 | cat >>conftest.$ac_ext <<_ACEOF | |
30141 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30142 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30144 | #define $ac_func innocuous_$ac_func | |
30145 | ||
a848cd7e SC |
30146 | /* System header to define __stub macros and hopefully few prototypes, |
30147 | which can conflict with char $ac_func (); below. | |
30148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30149 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30150 | |
a848cd7e SC |
30151 | #ifdef __STDC__ |
30152 | # include <limits.h> | |
30153 | #else | |
30154 | # include <assert.h> | |
30155 | #endif | |
ac1cb8d3 VS |
30156 | |
30157 | #undef $ac_func | |
30158 | ||
a848cd7e SC |
30159 | /* Override any gcc2 internal prototype to avoid an error. */ |
30160 | #ifdef __cplusplus | |
30161 | extern "C" | |
30162 | { | |
30163 | #endif | |
30164 | /* We use char because int might match the return type of a gcc2 | |
30165 | builtin and then its argument prototype would still apply. */ | |
30166 | char $ac_func (); | |
30167 | /* The GNU C library defines this for functions which it implements | |
30168 | to always fail with ENOSYS. Some functions are actually named | |
30169 | something starting with __ and the normal name is an alias. */ | |
30170 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30171 | choke me | |
30172 | #else | |
30173 | char (*f) () = $ac_func; | |
30174 | #endif | |
30175 | #ifdef __cplusplus | |
30176 | } | |
30177 | #endif | |
30178 | ||
30179 | int | |
30180 | main () | |
30181 | { | |
30182 | return f != $ac_func; | |
30183 | ; | |
30184 | return 0; | |
30185 | } | |
30186 | _ACEOF | |
30187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30190 | ac_status=$? |
ac1cb8d3 VS |
30191 | grep -v '^ *+' conftest.er1 >conftest.err |
30192 | rm -f conftest.er1 | |
30193 | cat conftest.err >&5 | |
a848cd7e SC |
30194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30195 | (exit $ac_status); } && | |
d1c38808 | 30196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30198 | (eval $ac_try) 2>&5 | |
30199 | ac_status=$? | |
30200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30201 | (exit $ac_status); }; } && | |
30202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30204 | (eval $ac_try) 2>&5 | |
30205 | ac_status=$? | |
30206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30207 | (exit $ac_status); }; }; then | |
30208 | eval "$as_ac_var=yes" | |
30209 | else | |
30210 | echo "$as_me: failed program was:" >&5 | |
30211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30212 | ||
30213 | eval "$as_ac_var=no" | |
30214 | fi | |
ac1cb8d3 VS |
30215 | rm -f conftest.err conftest.$ac_objext \ |
30216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30217 | fi |
30218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30219 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30220 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30221 | cat >>confdefs.h <<_ACEOF | |
30222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30223 | _ACEOF | |
30224 | ||
30225 | fi | |
30226 | done | |
30227 | ||
30228 | ||
30229 | ||
30230 | ||
30231 | for ac_func in putenv setenv | |
30232 | do | |
30233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30238 | else | |
30239 | cat >conftest.$ac_ext <<_ACEOF | |
30240 | /* confdefs.h. */ | |
30241 | _ACEOF | |
30242 | cat confdefs.h >>conftest.$ac_ext | |
30243 | cat >>conftest.$ac_ext <<_ACEOF | |
30244 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30245 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30246 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30247 | #define $ac_func innocuous_$ac_func | |
30248 | ||
a848cd7e SC |
30249 | /* System header to define __stub macros and hopefully few prototypes, |
30250 | which can conflict with char $ac_func (); below. | |
30251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30252 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30253 | |
a848cd7e SC |
30254 | #ifdef __STDC__ |
30255 | # include <limits.h> | |
30256 | #else | |
30257 | # include <assert.h> | |
30258 | #endif | |
ac1cb8d3 VS |
30259 | |
30260 | #undef $ac_func | |
30261 | ||
a848cd7e SC |
30262 | /* Override any gcc2 internal prototype to avoid an error. */ |
30263 | #ifdef __cplusplus | |
30264 | extern "C" | |
30265 | { | |
30266 | #endif | |
30267 | /* We use char because int might match the return type of a gcc2 | |
30268 | builtin and then its argument prototype would still apply. */ | |
30269 | char $ac_func (); | |
30270 | /* The GNU C library defines this for functions which it implements | |
30271 | to always fail with ENOSYS. Some functions are actually named | |
30272 | something starting with __ and the normal name is an alias. */ | |
30273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30274 | choke me | |
30275 | #else | |
30276 | char (*f) () = $ac_func; | |
30277 | #endif | |
30278 | #ifdef __cplusplus | |
30279 | } | |
30280 | #endif | |
30281 | ||
30282 | int | |
30283 | main () | |
30284 | { | |
30285 | return f != $ac_func; | |
30286 | ; | |
30287 | return 0; | |
30288 | } | |
30289 | _ACEOF | |
30290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30292 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30293 | ac_status=$? |
ac1cb8d3 VS |
30294 | grep -v '^ *+' conftest.er1 >conftest.err |
30295 | rm -f conftest.er1 | |
30296 | cat conftest.err >&5 | |
a848cd7e SC |
30297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30298 | (exit $ac_status); } && | |
d1c38808 | 30299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30301 | (eval $ac_try) 2>&5 | |
30302 | ac_status=$? | |
30303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30304 | (exit $ac_status); }; } && | |
30305 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30307 | (eval $ac_try) 2>&5 | |
30308 | ac_status=$? | |
30309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30310 | (exit $ac_status); }; }; then | |
30311 | eval "$as_ac_var=yes" | |
30312 | else | |
30313 | echo "$as_me: failed program was:" >&5 | |
30314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30315 | ||
30316 | eval "$as_ac_var=no" | |
30317 | fi | |
ac1cb8d3 VS |
30318 | rm -f conftest.err conftest.$ac_objext \ |
30319 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30320 | fi |
30321 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30322 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30323 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30324 | cat >>confdefs.h <<_ACEOF | |
30325 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30326 | _ACEOF | |
30327 | break | |
30328 | fi | |
30329 | done | |
30330 | ||
30331 | ||
30332 | HAVE_SOME_SLEEP_FUNC=0 | |
30333 | if test "$USE_BEOS" = 1; then | |
30334 | cat >>confdefs.h <<\_ACEOF | |
30335 | #define HAVE_SLEEP 1 | |
30336 | _ACEOF | |
30337 | ||
30338 | HAVE_SOME_SLEEP_FUNC=1 | |
30339 | fi | |
30340 | ||
30341 | if test "$USE_DARWIN" = 1; then | |
30342 | cat >>confdefs.h <<\_ACEOF | |
30343 | #define HAVE_USLEEP 1 | |
30344 | _ACEOF | |
30345 | ||
30346 | HAVE_SOME_SLEEP_FUNC=1 | |
30347 | fi | |
30348 | ||
30349 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30350 | POSIX4_LINK= | |
30351 | ||
30352 | for ac_func in nanosleep | |
30353 | do | |
30354 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30355 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30356 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30357 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30359 | else | |
30360 | cat >conftest.$ac_ext <<_ACEOF | |
30361 | /* confdefs.h. */ | |
30362 | _ACEOF | |
30363 | cat confdefs.h >>conftest.$ac_ext | |
30364 | cat >>conftest.$ac_ext <<_ACEOF | |
30365 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30366 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30368 | #define $ac_func innocuous_$ac_func | |
30369 | ||
a848cd7e SC |
30370 | /* System header to define __stub macros and hopefully few prototypes, |
30371 | which can conflict with char $ac_func (); below. | |
30372 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30373 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30374 | |
a848cd7e SC |
30375 | #ifdef __STDC__ |
30376 | # include <limits.h> | |
30377 | #else | |
30378 | # include <assert.h> | |
30379 | #endif | |
ac1cb8d3 VS |
30380 | |
30381 | #undef $ac_func | |
30382 | ||
a848cd7e SC |
30383 | /* Override any gcc2 internal prototype to avoid an error. */ |
30384 | #ifdef __cplusplus | |
30385 | extern "C" | |
30386 | { | |
30387 | #endif | |
30388 | /* We use char because int might match the return type of a gcc2 | |
30389 | builtin and then its argument prototype would still apply. */ | |
30390 | char $ac_func (); | |
30391 | /* The GNU C library defines this for functions which it implements | |
30392 | to always fail with ENOSYS. Some functions are actually named | |
30393 | something starting with __ and the normal name is an alias. */ | |
30394 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30395 | choke me | |
30396 | #else | |
30397 | char (*f) () = $ac_func; | |
30398 | #endif | |
30399 | #ifdef __cplusplus | |
30400 | } | |
30401 | #endif | |
30402 | ||
30403 | int | |
30404 | main () | |
30405 | { | |
30406 | return f != $ac_func; | |
30407 | ; | |
30408 | return 0; | |
30409 | } | |
30410 | _ACEOF | |
30411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30413 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30414 | ac_status=$? |
ac1cb8d3 VS |
30415 | grep -v '^ *+' conftest.er1 >conftest.err |
30416 | rm -f conftest.er1 | |
30417 | cat conftest.err >&5 | |
a848cd7e SC |
30418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30419 | (exit $ac_status); } && | |
d1c38808 | 30420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30422 | (eval $ac_try) 2>&5 | |
30423 | ac_status=$? | |
30424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30425 | (exit $ac_status); }; } && | |
30426 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30428 | (eval $ac_try) 2>&5 | |
30429 | ac_status=$? | |
30430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30431 | (exit $ac_status); }; }; then | |
30432 | eval "$as_ac_var=yes" | |
30433 | else | |
30434 | echo "$as_me: failed program was:" >&5 | |
30435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30436 | ||
30437 | eval "$as_ac_var=no" | |
30438 | fi | |
ac1cb8d3 VS |
30439 | rm -f conftest.err conftest.$ac_objext \ |
30440 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30441 | fi |
30442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30443 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30444 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30445 | cat >>confdefs.h <<_ACEOF | |
30446 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30447 | _ACEOF | |
30448 | cat >>confdefs.h <<\_ACEOF | |
30449 | #define HAVE_NANOSLEEP 1 | |
30450 | _ACEOF | |
30451 | ||
30452 | else | |
30453 | ||
30454 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
30455 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
30456 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
30457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30458 | else | |
30459 | ac_check_lib_save_LIBS=$LIBS | |
30460 | LIBS="-lposix4 $LIBS" | |
30461 | cat >conftest.$ac_ext <<_ACEOF | |
30462 | /* confdefs.h. */ | |
30463 | _ACEOF | |
30464 | cat confdefs.h >>conftest.$ac_ext | |
30465 | cat >>conftest.$ac_ext <<_ACEOF | |
30466 | /* end confdefs.h. */ | |
30467 | ||
30468 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30469 | #ifdef __cplusplus | |
30470 | extern "C" | |
30471 | #endif | |
30472 | /* We use char because int might match the return type of a gcc2 | |
30473 | builtin and then its argument prototype would still apply. */ | |
30474 | char nanosleep (); | |
30475 | int | |
30476 | main () | |
30477 | { | |
30478 | nanosleep (); | |
30479 | ; | |
30480 | return 0; | |
30481 | } | |
30482 | _ACEOF | |
30483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30485 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30486 | ac_status=$? |
ac1cb8d3 VS |
30487 | grep -v '^ *+' conftest.er1 >conftest.err |
30488 | rm -f conftest.er1 | |
30489 | cat conftest.err >&5 | |
a848cd7e SC |
30490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30491 | (exit $ac_status); } && | |
d1c38808 | 30492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30494 | (eval $ac_try) 2>&5 | |
30495 | ac_status=$? | |
30496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30497 | (exit $ac_status); }; } && | |
30498 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30500 | (eval $ac_try) 2>&5 | |
30501 | ac_status=$? | |
30502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30503 | (exit $ac_status); }; }; then | |
30504 | ac_cv_lib_posix4_nanosleep=yes | |
30505 | else | |
30506 | echo "$as_me: failed program was:" >&5 | |
30507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30508 | ||
30509 | ac_cv_lib_posix4_nanosleep=no | |
30510 | fi | |
ac1cb8d3 VS |
30511 | rm -f conftest.err conftest.$ac_objext \ |
30512 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30513 | LIBS=$ac_check_lib_save_LIBS |
30514 | fi | |
30515 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
30516 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
30517 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
30518 | ||
30519 | cat >>confdefs.h <<\_ACEOF | |
30520 | #define HAVE_NANOSLEEP 1 | |
30521 | _ACEOF | |
30522 | ||
30523 | POSIX4_LINK=" -lposix4" | |
30524 | ||
30525 | else | |
30526 | ||
30527 | ||
30528 | for ac_func in usleep | |
30529 | do | |
30530 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30531 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30532 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30533 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30535 | else | |
30536 | cat >conftest.$ac_ext <<_ACEOF | |
30537 | /* confdefs.h. */ | |
30538 | _ACEOF | |
30539 | cat confdefs.h >>conftest.$ac_ext | |
30540 | cat >>conftest.$ac_ext <<_ACEOF | |
30541 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30542 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30544 | #define $ac_func innocuous_$ac_func | |
30545 | ||
a848cd7e SC |
30546 | /* System header to define __stub macros and hopefully few prototypes, |
30547 | which can conflict with char $ac_func (); below. | |
30548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30549 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30550 | |
a848cd7e SC |
30551 | #ifdef __STDC__ |
30552 | # include <limits.h> | |
30553 | #else | |
30554 | # include <assert.h> | |
30555 | #endif | |
ac1cb8d3 VS |
30556 | |
30557 | #undef $ac_func | |
30558 | ||
a848cd7e SC |
30559 | /* Override any gcc2 internal prototype to avoid an error. */ |
30560 | #ifdef __cplusplus | |
30561 | extern "C" | |
30562 | { | |
30563 | #endif | |
30564 | /* We use char because int might match the return type of a gcc2 | |
30565 | builtin and then its argument prototype would still apply. */ | |
30566 | char $ac_func (); | |
30567 | /* The GNU C library defines this for functions which it implements | |
30568 | to always fail with ENOSYS. Some functions are actually named | |
30569 | something starting with __ and the normal name is an alias. */ | |
30570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30571 | choke me | |
30572 | #else | |
30573 | char (*f) () = $ac_func; | |
30574 | #endif | |
30575 | #ifdef __cplusplus | |
30576 | } | |
30577 | #endif | |
30578 | ||
30579 | int | |
30580 | main () | |
30581 | { | |
30582 | return f != $ac_func; | |
30583 | ; | |
30584 | return 0; | |
30585 | } | |
30586 | _ACEOF | |
30587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30590 | ac_status=$? |
ac1cb8d3 VS |
30591 | grep -v '^ *+' conftest.er1 >conftest.err |
30592 | rm -f conftest.er1 | |
30593 | cat conftest.err >&5 | |
a848cd7e SC |
30594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30595 | (exit $ac_status); } && | |
d1c38808 | 30596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30598 | (eval $ac_try) 2>&5 | |
30599 | ac_status=$? | |
30600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30601 | (exit $ac_status); }; } && | |
30602 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30604 | (eval $ac_try) 2>&5 | |
30605 | ac_status=$? | |
30606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30607 | (exit $ac_status); }; }; then | |
30608 | eval "$as_ac_var=yes" | |
30609 | else | |
30610 | echo "$as_me: failed program was:" >&5 | |
30611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30612 | ||
30613 | eval "$as_ac_var=no" | |
30614 | fi | |
ac1cb8d3 VS |
30615 | rm -f conftest.err conftest.$ac_objext \ |
30616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30617 | fi |
30618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30620 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30621 | cat >>confdefs.h <<_ACEOF | |
30622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30623 | _ACEOF | |
30624 | cat >>confdefs.h <<\_ACEOF | |
30625 | #define HAVE_USLEEP 1 | |
30626 | _ACEOF | |
30627 | ||
30628 | else | |
30629 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
30630 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
30631 | ||
30632 | fi | |
30633 | done | |
30634 | ||
30635 | ||
30636 | ||
30637 | fi | |
30638 | ||
30639 | ||
30640 | ||
30641 | fi | |
30642 | done | |
30643 | ||
30644 | fi | |
30645 | ||
30646 | ||
30647 | ||
30648 | for ac_func in uname gethostname | |
30649 | do | |
30650 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30651 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30652 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30653 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30655 | else | |
30656 | cat >conftest.$ac_ext <<_ACEOF | |
30657 | /* confdefs.h. */ | |
30658 | _ACEOF | |
30659 | cat confdefs.h >>conftest.$ac_ext | |
30660 | cat >>conftest.$ac_ext <<_ACEOF | |
30661 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30662 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30664 | #define $ac_func innocuous_$ac_func | |
30665 | ||
a848cd7e SC |
30666 | /* System header to define __stub macros and hopefully few prototypes, |
30667 | which can conflict with char $ac_func (); below. | |
30668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30669 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30670 | |
a848cd7e SC |
30671 | #ifdef __STDC__ |
30672 | # include <limits.h> | |
30673 | #else | |
30674 | # include <assert.h> | |
30675 | #endif | |
ac1cb8d3 VS |
30676 | |
30677 | #undef $ac_func | |
30678 | ||
a848cd7e SC |
30679 | /* Override any gcc2 internal prototype to avoid an error. */ |
30680 | #ifdef __cplusplus | |
30681 | extern "C" | |
30682 | { | |
30683 | #endif | |
30684 | /* We use char because int might match the return type of a gcc2 | |
30685 | builtin and then its argument prototype would still apply. */ | |
30686 | char $ac_func (); | |
30687 | /* The GNU C library defines this for functions which it implements | |
30688 | to always fail with ENOSYS. Some functions are actually named | |
30689 | something starting with __ and the normal name is an alias. */ | |
30690 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30691 | choke me | |
30692 | #else | |
30693 | char (*f) () = $ac_func; | |
30694 | #endif | |
30695 | #ifdef __cplusplus | |
30696 | } | |
30697 | #endif | |
30698 | ||
30699 | int | |
30700 | main () | |
30701 | { | |
30702 | return f != $ac_func; | |
30703 | ; | |
30704 | return 0; | |
30705 | } | |
30706 | _ACEOF | |
30707 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30709 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30710 | ac_status=$? |
ac1cb8d3 VS |
30711 | grep -v '^ *+' conftest.er1 >conftest.err |
30712 | rm -f conftest.er1 | |
30713 | cat conftest.err >&5 | |
a848cd7e SC |
30714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30715 | (exit $ac_status); } && | |
d1c38808 | 30716 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30718 | (eval $ac_try) 2>&5 | |
30719 | ac_status=$? | |
30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30721 | (exit $ac_status); }; } && | |
30722 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30724 | (eval $ac_try) 2>&5 | |
30725 | ac_status=$? | |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30727 | (exit $ac_status); }; }; then | |
30728 | eval "$as_ac_var=yes" | |
30729 | else | |
30730 | echo "$as_me: failed program was:" >&5 | |
30731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30732 | ||
30733 | eval "$as_ac_var=no" | |
30734 | fi | |
ac1cb8d3 VS |
30735 | rm -f conftest.err conftest.$ac_objext \ |
30736 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30737 | fi |
30738 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30739 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30740 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30741 | cat >>confdefs.h <<_ACEOF | |
30742 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30743 | _ACEOF | |
30744 | break | |
30745 | fi | |
30746 | done | |
30747 | ||
30748 | ||
30749 | ||
30750 | ||
30751 | ac_ext=cc | |
30752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
30753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30756 | ||
30757 | ||
30758 | ||
30759 | for ac_func in strtok_r | |
30760 | do | |
30761 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30762 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30763 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30764 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30766 | else | |
30767 | cat >conftest.$ac_ext <<_ACEOF | |
30768 | /* confdefs.h. */ | |
30769 | _ACEOF | |
30770 | cat confdefs.h >>conftest.$ac_ext | |
30771 | cat >>conftest.$ac_ext <<_ACEOF | |
30772 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30773 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30775 | #define $ac_func innocuous_$ac_func | |
30776 | ||
a848cd7e SC |
30777 | /* System header to define __stub macros and hopefully few prototypes, |
30778 | which can conflict with char $ac_func (); below. | |
30779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30780 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30781 | |
a848cd7e SC |
30782 | #ifdef __STDC__ |
30783 | # include <limits.h> | |
30784 | #else | |
30785 | # include <assert.h> | |
30786 | #endif | |
ac1cb8d3 VS |
30787 | |
30788 | #undef $ac_func | |
30789 | ||
a848cd7e SC |
30790 | /* Override any gcc2 internal prototype to avoid an error. */ |
30791 | #ifdef __cplusplus | |
30792 | extern "C" | |
30793 | { | |
30794 | #endif | |
30795 | /* We use char because int might match the return type of a gcc2 | |
30796 | builtin and then its argument prototype would still apply. */ | |
30797 | char $ac_func (); | |
30798 | /* The GNU C library defines this for functions which it implements | |
30799 | to always fail with ENOSYS. Some functions are actually named | |
30800 | something starting with __ and the normal name is an alias. */ | |
30801 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30802 | choke me | |
30803 | #else | |
30804 | char (*f) () = $ac_func; | |
30805 | #endif | |
30806 | #ifdef __cplusplus | |
30807 | } | |
30808 | #endif | |
30809 | ||
30810 | int | |
30811 | main () | |
30812 | { | |
30813 | return f != $ac_func; | |
30814 | ; | |
30815 | return 0; | |
30816 | } | |
30817 | _ACEOF | |
30818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30820 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30821 | ac_status=$? |
ac1cb8d3 VS |
30822 | grep -v '^ *+' conftest.er1 >conftest.err |
30823 | rm -f conftest.er1 | |
30824 | cat conftest.err >&5 | |
a848cd7e SC |
30825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30826 | (exit $ac_status); } && | |
d1c38808 | 30827 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30829 | (eval $ac_try) 2>&5 | |
30830 | ac_status=$? | |
30831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30832 | (exit $ac_status); }; } && | |
30833 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30835 | (eval $ac_try) 2>&5 | |
30836 | ac_status=$? | |
30837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30838 | (exit $ac_status); }; }; then | |
30839 | eval "$as_ac_var=yes" | |
30840 | else | |
30841 | echo "$as_me: failed program was:" >&5 | |
30842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30843 | ||
30844 | eval "$as_ac_var=no" | |
30845 | fi | |
ac1cb8d3 VS |
30846 | rm -f conftest.err conftest.$ac_objext \ |
30847 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30848 | fi |
30849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30850 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30851 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30852 | cat >>confdefs.h <<_ACEOF | |
30853 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30854 | _ACEOF | |
30855 | ||
30856 | fi | |
30857 | done | |
30858 | ||
30859 | ||
30860 | ac_ext=c | |
30861 | ac_cpp='$CPP $CPPFLAGS' | |
30862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30865 | ||
30866 | ||
30867 | INET_LINK= | |
30868 | ||
30869 | for ac_func in inet_addr | |
30870 | do | |
30871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30872 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30874 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30876 | else | |
30877 | cat >conftest.$ac_ext <<_ACEOF | |
30878 | /* confdefs.h. */ | |
30879 | _ACEOF | |
30880 | cat confdefs.h >>conftest.$ac_ext | |
30881 | cat >>conftest.$ac_ext <<_ACEOF | |
30882 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
30883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
30884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30885 | #define $ac_func innocuous_$ac_func | |
30886 | ||
a848cd7e SC |
30887 | /* System header to define __stub macros and hopefully few prototypes, |
30888 | which can conflict with char $ac_func (); below. | |
30889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30890 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 30891 | |
a848cd7e SC |
30892 | #ifdef __STDC__ |
30893 | # include <limits.h> | |
30894 | #else | |
30895 | # include <assert.h> | |
30896 | #endif | |
ac1cb8d3 VS |
30897 | |
30898 | #undef $ac_func | |
30899 | ||
a848cd7e SC |
30900 | /* Override any gcc2 internal prototype to avoid an error. */ |
30901 | #ifdef __cplusplus | |
30902 | extern "C" | |
30903 | { | |
30904 | #endif | |
30905 | /* We use char because int might match the return type of a gcc2 | |
30906 | builtin and then its argument prototype would still apply. */ | |
30907 | char $ac_func (); | |
30908 | /* The GNU C library defines this for functions which it implements | |
30909 | to always fail with ENOSYS. Some functions are actually named | |
30910 | something starting with __ and the normal name is an alias. */ | |
30911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30912 | choke me | |
30913 | #else | |
30914 | char (*f) () = $ac_func; | |
30915 | #endif | |
30916 | #ifdef __cplusplus | |
30917 | } | |
30918 | #endif | |
30919 | ||
30920 | int | |
30921 | main () | |
30922 | { | |
30923 | return f != $ac_func; | |
30924 | ; | |
30925 | return 0; | |
30926 | } | |
30927 | _ACEOF | |
30928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30930 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30931 | ac_status=$? |
ac1cb8d3 VS |
30932 | grep -v '^ *+' conftest.er1 >conftest.err |
30933 | rm -f conftest.er1 | |
30934 | cat conftest.err >&5 | |
a848cd7e SC |
30935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30936 | (exit $ac_status); } && | |
d1c38808 | 30937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30939 | (eval $ac_try) 2>&5 | |
30940 | ac_status=$? | |
30941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30942 | (exit $ac_status); }; } && | |
30943 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30945 | (eval $ac_try) 2>&5 | |
30946 | ac_status=$? | |
30947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30948 | (exit $ac_status); }; }; then | |
30949 | eval "$as_ac_var=yes" | |
30950 | else | |
30951 | echo "$as_me: failed program was:" >&5 | |
30952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30953 | ||
30954 | eval "$as_ac_var=no" | |
30955 | fi | |
ac1cb8d3 VS |
30956 | rm -f conftest.err conftest.$ac_objext \ |
30957 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30958 | fi |
30959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30960 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30961 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30962 | cat >>confdefs.h <<_ACEOF | |
30963 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30964 | _ACEOF | |
30965 | cat >>confdefs.h <<\_ACEOF | |
30966 | #define HAVE_INET_ADDR 1 | |
30967 | _ACEOF | |
30968 | ||
30969 | else | |
30970 | ||
30971 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
30972 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
30973 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
30974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30975 | else | |
30976 | ac_check_lib_save_LIBS=$LIBS | |
30977 | LIBS="-lnsl $LIBS" | |
30978 | cat >conftest.$ac_ext <<_ACEOF | |
30979 | /* confdefs.h. */ | |
30980 | _ACEOF | |
30981 | cat confdefs.h >>conftest.$ac_ext | |
30982 | cat >>conftest.$ac_ext <<_ACEOF | |
30983 | /* end confdefs.h. */ | |
30984 | ||
30985 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30986 | #ifdef __cplusplus | |
30987 | extern "C" | |
30988 | #endif | |
30989 | /* We use char because int might match the return type of a gcc2 | |
30990 | builtin and then its argument prototype would still apply. */ | |
30991 | char inet_addr (); | |
30992 | int | |
30993 | main () | |
30994 | { | |
30995 | inet_addr (); | |
30996 | ; | |
30997 | return 0; | |
30998 | } | |
30999 | _ACEOF | |
31000 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31002 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31003 | ac_status=$? |
ac1cb8d3 VS |
31004 | grep -v '^ *+' conftest.er1 >conftest.err |
31005 | rm -f conftest.er1 | |
31006 | cat conftest.err >&5 | |
a848cd7e SC |
31007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31008 | (exit $ac_status); } && | |
d1c38808 | 31009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31011 | (eval $ac_try) 2>&5 | |
31012 | ac_status=$? | |
31013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31014 | (exit $ac_status); }; } && | |
31015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31017 | (eval $ac_try) 2>&5 | |
31018 | ac_status=$? | |
31019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31020 | (exit $ac_status); }; }; then | |
31021 | ac_cv_lib_nsl_inet_addr=yes | |
31022 | else | |
31023 | echo "$as_me: failed program was:" >&5 | |
31024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31025 | ||
31026 | ac_cv_lib_nsl_inet_addr=no | |
31027 | fi | |
ac1cb8d3 VS |
31028 | rm -f conftest.err conftest.$ac_objext \ |
31029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31030 | LIBS=$ac_check_lib_save_LIBS |
31031 | fi | |
31032 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
31033 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
31034 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
31035 | INET_LINK="nsl" | |
31036 | else | |
31037 | ||
31038 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
31039 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
31040 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
31041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31042 | else | |
31043 | ac_check_lib_save_LIBS=$LIBS | |
31044 | LIBS="-lresolv $LIBS" | |
31045 | cat >conftest.$ac_ext <<_ACEOF | |
31046 | /* confdefs.h. */ | |
31047 | _ACEOF | |
31048 | cat confdefs.h >>conftest.$ac_ext | |
31049 | cat >>conftest.$ac_ext <<_ACEOF | |
31050 | /* end confdefs.h. */ | |
31051 | ||
31052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31053 | #ifdef __cplusplus | |
31054 | extern "C" | |
31055 | #endif | |
31056 | /* We use char because int might match the return type of a gcc2 | |
31057 | builtin and then its argument prototype would still apply. */ | |
31058 | char inet_addr (); | |
31059 | int | |
31060 | main () | |
31061 | { | |
31062 | inet_addr (); | |
31063 | ; | |
31064 | return 0; | |
31065 | } | |
31066 | _ACEOF | |
31067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31069 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31070 | ac_status=$? |
ac1cb8d3 VS |
31071 | grep -v '^ *+' conftest.er1 >conftest.err |
31072 | rm -f conftest.er1 | |
31073 | cat conftest.err >&5 | |
a848cd7e SC |
31074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31075 | (exit $ac_status); } && | |
d1c38808 | 31076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31078 | (eval $ac_try) 2>&5 | |
31079 | ac_status=$? | |
31080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31081 | (exit $ac_status); }; } && | |
31082 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31084 | (eval $ac_try) 2>&5 | |
31085 | ac_status=$? | |
31086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31087 | (exit $ac_status); }; }; then | |
31088 | ac_cv_lib_resolv_inet_addr=yes | |
31089 | else | |
31090 | echo "$as_me: failed program was:" >&5 | |
31091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31092 | ||
31093 | ac_cv_lib_resolv_inet_addr=no | |
31094 | fi | |
ac1cb8d3 VS |
31095 | rm -f conftest.err conftest.$ac_objext \ |
31096 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31097 | LIBS=$ac_check_lib_save_LIBS |
31098 | fi | |
31099 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
31100 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
31101 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
31102 | INET_LINK="resolv" | |
31103 | else | |
31104 | ||
31105 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
31106 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
31107 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
31108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31109 | else | |
31110 | ac_check_lib_save_LIBS=$LIBS | |
31111 | LIBS="-lsocket $LIBS" | |
31112 | cat >conftest.$ac_ext <<_ACEOF | |
31113 | /* confdefs.h. */ | |
31114 | _ACEOF | |
31115 | cat confdefs.h >>conftest.$ac_ext | |
31116 | cat >>conftest.$ac_ext <<_ACEOF | |
31117 | /* end confdefs.h. */ | |
31118 | ||
31119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31120 | #ifdef __cplusplus | |
31121 | extern "C" | |
31122 | #endif | |
31123 | /* We use char because int might match the return type of a gcc2 | |
31124 | builtin and then its argument prototype would still apply. */ | |
31125 | char inet_addr (); | |
31126 | int | |
31127 | main () | |
31128 | { | |
31129 | inet_addr (); | |
31130 | ; | |
31131 | return 0; | |
31132 | } | |
31133 | _ACEOF | |
31134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31136 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31137 | ac_status=$? |
ac1cb8d3 VS |
31138 | grep -v '^ *+' conftest.er1 >conftest.err |
31139 | rm -f conftest.er1 | |
31140 | cat conftest.err >&5 | |
a848cd7e SC |
31141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31142 | (exit $ac_status); } && | |
d1c38808 | 31143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31145 | (eval $ac_try) 2>&5 | |
31146 | ac_status=$? | |
31147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31148 | (exit $ac_status); }; } && | |
31149 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31151 | (eval $ac_try) 2>&5 | |
31152 | ac_status=$? | |
31153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31154 | (exit $ac_status); }; }; then | |
31155 | ac_cv_lib_socket_inet_addr=yes | |
31156 | else | |
31157 | echo "$as_me: failed program was:" >&5 | |
31158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31159 | ||
31160 | ac_cv_lib_socket_inet_addr=no | |
31161 | fi | |
ac1cb8d3 VS |
31162 | rm -f conftest.err conftest.$ac_objext \ |
31163 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31164 | LIBS=$ac_check_lib_save_LIBS |
31165 | fi | |
31166 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
31167 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
31168 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
31169 | INET_LINK="socket" | |
31170 | ||
31171 | fi | |
31172 | ||
31173 | ||
31174 | ||
31175 | fi | |
31176 | ||
31177 | ||
31178 | ||
31179 | fi | |
31180 | ||
31181 | ||
31182 | ||
31183 | fi | |
31184 | done | |
31185 | ||
31186 | ||
31187 | ||
31188 | for ac_func in inet_aton | |
31189 | do | |
31190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31191 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31193 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31195 | else | |
31196 | cat >conftest.$ac_ext <<_ACEOF | |
31197 | /* confdefs.h. */ | |
31198 | _ACEOF | |
31199 | cat confdefs.h >>conftest.$ac_ext | |
31200 | cat >>conftest.$ac_ext <<_ACEOF | |
31201 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31202 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31204 | #define $ac_func innocuous_$ac_func | |
31205 | ||
a848cd7e SC |
31206 | /* System header to define __stub macros and hopefully few prototypes, |
31207 | which can conflict with char $ac_func (); below. | |
31208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31209 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31210 | |
a848cd7e SC |
31211 | #ifdef __STDC__ |
31212 | # include <limits.h> | |
31213 | #else | |
31214 | # include <assert.h> | |
31215 | #endif | |
ac1cb8d3 VS |
31216 | |
31217 | #undef $ac_func | |
31218 | ||
a848cd7e SC |
31219 | /* Override any gcc2 internal prototype to avoid an error. */ |
31220 | #ifdef __cplusplus | |
31221 | extern "C" | |
31222 | { | |
31223 | #endif | |
31224 | /* We use char because int might match the return type of a gcc2 | |
31225 | builtin and then its argument prototype would still apply. */ | |
31226 | char $ac_func (); | |
31227 | /* The GNU C library defines this for functions which it implements | |
31228 | to always fail with ENOSYS. Some functions are actually named | |
31229 | something starting with __ and the normal name is an alias. */ | |
31230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31231 | choke me | |
31232 | #else | |
31233 | char (*f) () = $ac_func; | |
31234 | #endif | |
31235 | #ifdef __cplusplus | |
31236 | } | |
31237 | #endif | |
31238 | ||
31239 | int | |
31240 | main () | |
31241 | { | |
31242 | return f != $ac_func; | |
31243 | ; | |
31244 | return 0; | |
31245 | } | |
31246 | _ACEOF | |
31247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31249 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31250 | ac_status=$? |
ac1cb8d3 VS |
31251 | grep -v '^ *+' conftest.er1 >conftest.err |
31252 | rm -f conftest.er1 | |
31253 | cat conftest.err >&5 | |
a848cd7e SC |
31254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31255 | (exit $ac_status); } && | |
d1c38808 | 31256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31258 | (eval $ac_try) 2>&5 | |
31259 | ac_status=$? | |
31260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31261 | (exit $ac_status); }; } && | |
31262 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31264 | (eval $ac_try) 2>&5 | |
31265 | ac_status=$? | |
31266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31267 | (exit $ac_status); }; }; then | |
31268 | eval "$as_ac_var=yes" | |
31269 | else | |
31270 | echo "$as_me: failed program was:" >&5 | |
31271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31272 | ||
31273 | eval "$as_ac_var=no" | |
31274 | fi | |
ac1cb8d3 VS |
31275 | rm -f conftest.err conftest.$ac_objext \ |
31276 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31277 | fi |
31278 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31279 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31280 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31281 | cat >>confdefs.h <<_ACEOF | |
31282 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31283 | _ACEOF | |
31284 | cat >>confdefs.h <<\_ACEOF | |
31285 | #define HAVE_INET_ATON 1 | |
31286 | _ACEOF | |
31287 | ||
31288 | else | |
31289 | ||
31290 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
31291 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
31292 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
31293 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
31294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31295 | else | |
31296 | ac_check_lib_save_LIBS=$LIBS | |
31297 | LIBS="-l$INET_LINK $LIBS" | |
31298 | cat >conftest.$ac_ext <<_ACEOF | |
31299 | /* confdefs.h. */ | |
31300 | _ACEOF | |
31301 | cat confdefs.h >>conftest.$ac_ext | |
31302 | cat >>conftest.$ac_ext <<_ACEOF | |
31303 | /* end confdefs.h. */ | |
31304 | ||
31305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31306 | #ifdef __cplusplus | |
31307 | extern "C" | |
31308 | #endif | |
31309 | /* We use char because int might match the return type of a gcc2 | |
31310 | builtin and then its argument prototype would still apply. */ | |
31311 | char inet_aton (); | |
31312 | int | |
31313 | main () | |
31314 | { | |
31315 | inet_aton (); | |
31316 | ; | |
31317 | return 0; | |
31318 | } | |
31319 | _ACEOF | |
31320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31322 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31323 | ac_status=$? |
ac1cb8d3 VS |
31324 | grep -v '^ *+' conftest.er1 >conftest.err |
31325 | rm -f conftest.er1 | |
31326 | cat conftest.err >&5 | |
a848cd7e SC |
31327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31328 | (exit $ac_status); } && | |
d1c38808 | 31329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31331 | (eval $ac_try) 2>&5 | |
31332 | ac_status=$? | |
31333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31334 | (exit $ac_status); }; } && | |
31335 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31337 | (eval $ac_try) 2>&5 | |
31338 | ac_status=$? | |
31339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31340 | (exit $ac_status); }; }; then | |
31341 | eval "$as_ac_Lib=yes" | |
31342 | else | |
31343 | echo "$as_me: failed program was:" >&5 | |
31344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31345 | ||
31346 | eval "$as_ac_Lib=no" | |
31347 | fi | |
ac1cb8d3 VS |
31348 | rm -f conftest.err conftest.$ac_objext \ |
31349 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31350 | LIBS=$ac_check_lib_save_LIBS |
31351 | fi | |
31352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
31353 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
31354 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
31355 | cat >>confdefs.h <<\_ACEOF | |
31356 | #define HAVE_INET_ATON 1 | |
31357 | _ACEOF | |
31358 | ||
31359 | fi | |
31360 | ||
31361 | ||
31362 | fi | |
31363 | done | |
31364 | ||
31365 | ||
31366 | if test "x$INET_LINK" != "x"; then | |
31367 | cat >>confdefs.h <<\_ACEOF | |
31368 | #define HAVE_INET_ADDR 1 | |
31369 | _ACEOF | |
31370 | ||
31371 | INET_LINK=" -l$INET_LINK" | |
31372 | fi | |
31373 | ||
31374 | fi | |
31375 | ||
31376 | ||
31377 | ||
31378 | EXTRALIBS_ESD= | |
31379 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
31380 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
31381 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
31382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31383 | else | |
31384 | ac_check_lib_save_LIBS=$LIBS | |
31385 | LIBS="-lesd $LIBS" | |
31386 | cat >conftest.$ac_ext <<_ACEOF | |
31387 | /* confdefs.h. */ | |
31388 | _ACEOF | |
31389 | cat confdefs.h >>conftest.$ac_ext | |
31390 | cat >>conftest.$ac_ext <<_ACEOF | |
31391 | /* end confdefs.h. */ | |
31392 | ||
31393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31394 | #ifdef __cplusplus | |
31395 | extern "C" | |
31396 | #endif | |
31397 | /* We use char because int might match the return type of a gcc2 | |
31398 | builtin and then its argument prototype would still apply. */ | |
31399 | char esd_close (); | |
31400 | int | |
31401 | main () | |
31402 | { | |
31403 | esd_close (); | |
31404 | ; | |
31405 | return 0; | |
31406 | } | |
31407 | _ACEOF | |
31408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31411 | ac_status=$? |
ac1cb8d3 VS |
31412 | grep -v '^ *+' conftest.er1 >conftest.err |
31413 | rm -f conftest.er1 | |
31414 | cat conftest.err >&5 | |
a848cd7e SC |
31415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31416 | (exit $ac_status); } && | |
d1c38808 | 31417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31419 | (eval $ac_try) 2>&5 | |
31420 | ac_status=$? | |
31421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31422 | (exit $ac_status); }; } && | |
31423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31425 | (eval $ac_try) 2>&5 | |
31426 | ac_status=$? | |
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31428 | (exit $ac_status); }; }; then | |
31429 | ac_cv_lib_esd_esd_close=yes | |
31430 | else | |
31431 | echo "$as_me: failed program was:" >&5 | |
31432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31433 | ||
31434 | ac_cv_lib_esd_esd_close=no | |
31435 | fi | |
ac1cb8d3 VS |
31436 | rm -f conftest.err conftest.$ac_objext \ |
31437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31438 | LIBS=$ac_check_lib_save_LIBS |
31439 | fi | |
31440 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
31441 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
31442 | if test $ac_cv_lib_esd_esd_close = yes; then | |
31443 | ||
31444 | ||
31445 | for ac_header in esd.h | |
31446 | do | |
31447 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31449 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31450 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31451 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31453 | fi | |
31454 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31455 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31456 | else | |
31457 | # Is the header compilable? | |
31458 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31459 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31460 | cat >conftest.$ac_ext <<_ACEOF | |
31461 | /* confdefs.h. */ | |
31462 | _ACEOF | |
31463 | cat confdefs.h >>conftest.$ac_ext | |
31464 | cat >>conftest.$ac_ext <<_ACEOF | |
31465 | /* end confdefs.h. */ | |
31466 | $ac_includes_default | |
31467 | #include <$ac_header> | |
31468 | _ACEOF | |
31469 | rm -f conftest.$ac_objext | |
31470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31471 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31472 | ac_status=$? |
ac1cb8d3 VS |
31473 | grep -v '^ *+' conftest.er1 >conftest.err |
31474 | rm -f conftest.er1 | |
31475 | cat conftest.err >&5 | |
a848cd7e SC |
31476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31477 | (exit $ac_status); } && | |
d1c38808 | 31478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31480 | (eval $ac_try) 2>&5 | |
31481 | ac_status=$? | |
31482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31483 | (exit $ac_status); }; } && | |
31484 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31486 | (eval $ac_try) 2>&5 | |
31487 | ac_status=$? | |
31488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31489 | (exit $ac_status); }; }; then | |
31490 | ac_header_compiler=yes | |
31491 | else | |
31492 | echo "$as_me: failed program was:" >&5 | |
31493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31494 | ||
31495 | ac_header_compiler=no | |
31496 | fi | |
ac1cb8d3 | 31497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31498 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31499 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31500 | ||
31501 | # Is the header present? | |
31502 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31503 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31504 | cat >conftest.$ac_ext <<_ACEOF | |
31505 | /* confdefs.h. */ | |
31506 | _ACEOF | |
31507 | cat confdefs.h >>conftest.$ac_ext | |
31508 | cat >>conftest.$ac_ext <<_ACEOF | |
31509 | /* end confdefs.h. */ | |
31510 | #include <$ac_header> | |
31511 | _ACEOF | |
31512 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31513 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31514 | ac_status=$? | |
31515 | grep -v '^ *+' conftest.er1 >conftest.err | |
31516 | rm -f conftest.er1 | |
31517 | cat conftest.err >&5 | |
31518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31519 | (exit $ac_status); } >/dev/null; then | |
31520 | if test -s conftest.err; then | |
31521 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31522 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31523 | else |
31524 | ac_cpp_err= | |
31525 | fi | |
31526 | else | |
31527 | ac_cpp_err=yes | |
31528 | fi | |
31529 | if test -z "$ac_cpp_err"; then | |
31530 | ac_header_preproc=yes | |
31531 | else | |
31532 | echo "$as_me: failed program was:" >&5 | |
31533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31534 | ||
31535 | ac_header_preproc=no | |
31536 | fi | |
31537 | rm -f conftest.err conftest.$ac_ext | |
31538 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31539 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31540 | ||
31541 | # So? What about this header? | |
ac1cb8d3 VS |
31542 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31543 | yes:no: ) | |
a848cd7e SC |
31544 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31545 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
31547 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31548 | ac_header_preproc=yes | |
a848cd7e | 31549 | ;; |
ac1cb8d3 | 31550 | no:yes:* ) |
a848cd7e SC |
31551 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31552 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31553 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31554 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31555 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31556 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31557 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31558 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31561 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
31562 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31563 | ( |
31564 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31565 | ## ----------------------------------------- ## |
31566 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31567 | ## ----------------------------------------- ## | |
a848cd7e SC |
31568 | _ASBOX |
31569 | ) | | |
31570 | sed "s/^/$as_me: WARNING: /" >&2 | |
31571 | ;; | |
31572 | esac | |
31573 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31577 | else | |
ac1cb8d3 | 31578 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
31579 | fi |
31580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31581 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31582 | ||
31583 | fi | |
31584 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31585 | cat >>confdefs.h <<_ACEOF | |
31586 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31587 | _ACEOF | |
31588 | ||
31589 | EXTRALIBS_ESD="-lesd" | |
31590 | ||
31591 | fi | |
31592 | ||
31593 | done | |
31594 | ||
31595 | ||
31596 | fi | |
31597 | ||
31598 | ||
31599 | ||
31600 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
31601 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
31602 | cat >conftest.$ac_ext <<_ACEOF | |
31603 | /* confdefs.h. */ | |
31604 | _ACEOF | |
31605 | cat confdefs.h >>conftest.$ac_ext | |
31606 | cat >>conftest.$ac_ext <<_ACEOF | |
31607 | /* end confdefs.h. */ | |
31608 | #ifdef __linux__ | |
31609 | #include <linux/cdrom.h> | |
31610 | #else | |
31611 | /* For Solaris */ | |
31612 | #include <sys/cdio.h> | |
31613 | #endif | |
31614 | ||
31615 | int | |
31616 | main () | |
31617 | { | |
31618 | struct cdrom_tocentry entry, old_entry; | |
31619 | ; | |
31620 | return 0; | |
31621 | } | |
31622 | _ACEOF | |
31623 | rm -f conftest.$ac_objext | |
31624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31626 | ac_status=$? |
ac1cb8d3 VS |
31627 | grep -v '^ *+' conftest.er1 >conftest.err |
31628 | rm -f conftest.er1 | |
31629 | cat conftest.err >&5 | |
a848cd7e SC |
31630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31631 | (exit $ac_status); } && | |
d1c38808 | 31632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31634 | (eval $ac_try) 2>&5 | |
31635 | ac_status=$? | |
31636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31637 | (exit $ac_status); }; } && | |
31638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31640 | (eval $ac_try) 2>&5 | |
31641 | ac_status=$? | |
31642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31643 | (exit $ac_status); }; }; then | |
31644 | echo "$as_me:$LINENO: result: yes" >&5 | |
31645 | echo "${ECHO_T}yes" >&6 | |
31646 | cat >>confdefs.h <<\_ACEOF | |
31647 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
31648 | _ACEOF | |
31649 | ||
31650 | else | |
31651 | echo "$as_me: failed program was:" >&5 | |
31652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31653 | ||
31654 | echo "$as_me:$LINENO: result: no" >&5 | |
31655 | echo "${ECHO_T}no" >&6 | |
31656 | fi | |
ac1cb8d3 | 31657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31658 | |
31659 | ||
31660 | cat >confcache <<\_ACEOF | |
31661 | # This file is a shell script that caches the results of configure | |
31662 | # tests run on this system so they can be shared between configure | |
31663 | # scripts and configure runs, see configure's option --config-cache. | |
31664 | # It is not useful on other systems. If it contains results you don't | |
31665 | # want to keep, you may remove or edit it. | |
31666 | # | |
31667 | # config.status only pays attention to the cache file if you give it | |
31668 | # the --recheck option to rerun configure. | |
31669 | # | |
31670 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31671 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31672 | # following values. | |
31673 | ||
31674 | _ACEOF | |
31675 | ||
31676 | # The following way of writing the cache mishandles newlines in values, | |
31677 | # but we know of no workaround that is simple, portable, and efficient. | |
31678 | # So, don't put newlines in cache variables' values. | |
31679 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
31680 | # and sets the high bit in the cache file unless we assign to the vars. | |
31681 | { | |
31682 | (set) 2>&1 | | |
31683 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
31684 | *ac_space=\ *) | |
31685 | # `set' does not quote correctly, so add quotes (double-quote | |
31686 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
31687 | sed -n \ | |
ac1cb8d3 VS |
31688 | "s/'/'\\\\''/g; |
31689 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
31690 | ;; |
31691 | *) | |
31692 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
31693 | sed -n \ | |
ac1cb8d3 | 31694 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
31695 | ;; |
31696 | esac; | |
31697 | } | | |
31698 | sed ' | |
31699 | t clear | |
31700 | : clear | |
31701 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
31702 | t end | |
31703 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
31704 | : end' >>confcache | |
31705 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
31706 | if test -w $cache_file; then | |
31707 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
31708 | cat confcache >$cache_file | |
31709 | else | |
31710 | echo "not updating unwritable cache $cache_file" | |
31711 | fi | |
31712 | fi | |
31713 | rm -f confcache | |
31714 | ||
31715 | ||
31716 | CPP_MT_FLAG= | |
31717 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31718 | ||
31719 | ||
31720 | THREADS_LINK= | |
31721 | THREADS_CFLAGS= | |
31722 | ||
31723 | if test "$wxUSE_THREADS" = "yes" ; then | |
31724 | if test "$USE_BEOS" = 1; then | |
31725 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
31726 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
31727 | wxUSE_THREADS="no" | |
31728 | fi | |
31729 | fi | |
31730 | ||
31731 | if test "$wxUSE_THREADS" = "yes" ; then | |
31732 | ||
31733 | ||
31734 | THREAD_OPTS="-pthread" | |
31735 | case "${host}" in | |
31736 | *-*-solaris2* | *-*-sunos4* ) | |
31737 | if test "x$GCC" = "xyes"; then | |
31738 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
31739 | else | |
31740 | THREAD_OPTS="-mt $THREAD_OPTS" | |
31741 | fi | |
31742 | ;; | |
31743 | *-*-freebsd*) | |
31744 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31745 | ;; | |
31746 | *-*-darwin* | *-*-cygwin* ) | |
31747 | THREAD_OPTS="" | |
31748 | ;; | |
31749 | *-*-aix*) | |
31750 | THREAD_OPTS="pthreads" | |
31751 | ;; | |
31752 | *-hp-hpux* ) | |
31753 | if test "x$GCC" != "xyes"; then | |
31754 | THREAD_OPTS="" | |
31755 | fi | |
31756 | ;; | |
31757 | ||
31758 | *-*-irix* ) | |
31759 | if test "x$GCC" = "xyes"; then | |
31760 | THREAD_OPTS="" | |
31761 | fi | |
31762 | ;; | |
31763 | ||
31764 | *-*-*UnixWare*) | |
31765 | if test "x$GCC" != "xyes"; then | |
31766 | THREAD_OPTS="-Ethread" | |
31767 | fi | |
31768 | ;; | |
31769 | esac | |
31770 | ||
31771 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31772 | ||
31773 | THREADS_OK=no | |
31774 | for flag in $THREAD_OPTS; do | |
31775 | case $flag in | |
31776 | none) | |
31777 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
31778 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
31779 | ;; | |
31780 | ||
31781 | -*) | |
31782 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
31783 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
31784 | THREADS_CFLAGS="$flag" | |
31785 | ;; | |
31786 | ||
31787 | *) | |
31788 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
31789 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
31790 | THREADS_LINK="-l$flag" | |
31791 | ;; | |
31792 | esac | |
31793 | ||
31794 | save_LIBS="$LIBS" | |
31795 | save_CFLAGS="$CFLAGS" | |
31796 | LIBS="$THREADS_LINK $LIBS" | |
31797 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
31798 | ||
31799 | cat >conftest.$ac_ext <<_ACEOF | |
31800 | /* confdefs.h. */ | |
31801 | _ACEOF | |
31802 | cat confdefs.h >>conftest.$ac_ext | |
31803 | cat >>conftest.$ac_ext <<_ACEOF | |
31804 | /* end confdefs.h. */ | |
31805 | #include <pthread.h> | |
31806 | int | |
31807 | main () | |
31808 | { | |
31809 | pthread_create(0,0,0,0); | |
31810 | ; | |
31811 | return 0; | |
31812 | } | |
31813 | _ACEOF | |
31814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31817 | ac_status=$? |
ac1cb8d3 VS |
31818 | grep -v '^ *+' conftest.er1 >conftest.err |
31819 | rm -f conftest.er1 | |
31820 | cat conftest.err >&5 | |
a848cd7e SC |
31821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31822 | (exit $ac_status); } && | |
d1c38808 | 31823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31825 | (eval $ac_try) 2>&5 | |
31826 | ac_status=$? | |
31827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31828 | (exit $ac_status); }; } && | |
31829 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31831 | (eval $ac_try) 2>&5 | |
31832 | ac_status=$? | |
31833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31834 | (exit $ac_status); }; }; then | |
31835 | THREADS_OK=yes | |
31836 | else | |
31837 | echo "$as_me: failed program was:" >&5 | |
31838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31839 | ||
31840 | fi | |
ac1cb8d3 VS |
31841 | rm -f conftest.err conftest.$ac_objext \ |
31842 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31843 | |
31844 | LIBS="$save_LIBS" | |
31845 | CFLAGS="$save_CFLAGS" | |
31846 | ||
31847 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
31848 | echo "${ECHO_T}$THREADS_OK" >&6 | |
31849 | if test "x$THREADS_OK" = "xyes"; then | |
31850 | break; | |
31851 | fi | |
31852 | ||
31853 | THREADS_LINK="" | |
31854 | THREADS_CFLAGS="" | |
31855 | done | |
31856 | ||
31857 | if test "x$THREADS_OK" != "xyes"; then | |
31858 | wxUSE_THREADS=no | |
31859 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
31860 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
31861 | else | |
31862 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
31863 | LIBS="$THREADS_LINK $LIBS" | |
31864 | ||
31865 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
31866 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
31867 | flag=no | |
31868 | case "${host}" in | |
31869 | *-aix*) | |
31870 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
31871 | flag="-D_THREAD_SAFE" | |
31872 | ;; | |
31873 | *-freebsd*) | |
31874 | flag="-D_THREAD_SAFE" | |
31875 | ;; | |
31876 | *-hp-hpux* ) | |
31877 | flag="-D_REENTRANT" | |
31878 | if test "x$GCC" != "xyes"; then | |
31879 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
31880 | |
31881 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
31882 | fi |
31883 | ;; | |
31884 | *solaris* | alpha*-osf*) | |
31885 | flag="-D_REENTRANT" | |
31886 | ;; | |
31887 | esac | |
31888 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
31889 | echo "${ECHO_T}${flag}" >&6 | |
31890 | if test "x$flag" != xno; then | |
31891 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
31892 | fi | |
31893 | ||
31894 | if test "x$THREADS_CFLAGS" != "x"; then | |
31895 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
31896 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
31897 | fi | |
31898 | fi | |
31899 | fi | |
31900 | ||
31901 | if test "$wxUSE_THREADS" = "yes" ; then | |
31902 | ||
31903 | for ac_func in thr_setconcurrency | |
31904 | do | |
31905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31910 | else | |
31911 | cat >conftest.$ac_ext <<_ACEOF | |
31912 | /* confdefs.h. */ | |
31913 | _ACEOF | |
31914 | cat confdefs.h >>conftest.$ac_ext | |
31915 | cat >>conftest.$ac_ext <<_ACEOF | |
31916 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
31917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
31918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
31919 | #define $ac_func innocuous_$ac_func | |
31920 | ||
a848cd7e SC |
31921 | /* System header to define __stub macros and hopefully few prototypes, |
31922 | which can conflict with char $ac_func (); below. | |
31923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31924 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 31925 | |
a848cd7e SC |
31926 | #ifdef __STDC__ |
31927 | # include <limits.h> | |
31928 | #else | |
31929 | # include <assert.h> | |
31930 | #endif | |
ac1cb8d3 VS |
31931 | |
31932 | #undef $ac_func | |
31933 | ||
a848cd7e SC |
31934 | /* Override any gcc2 internal prototype to avoid an error. */ |
31935 | #ifdef __cplusplus | |
31936 | extern "C" | |
31937 | { | |
31938 | #endif | |
31939 | /* We use char because int might match the return type of a gcc2 | |
31940 | builtin and then its argument prototype would still apply. */ | |
31941 | char $ac_func (); | |
31942 | /* The GNU C library defines this for functions which it implements | |
31943 | to always fail with ENOSYS. Some functions are actually named | |
31944 | something starting with __ and the normal name is an alias. */ | |
31945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31946 | choke me | |
31947 | #else | |
31948 | char (*f) () = $ac_func; | |
31949 | #endif | |
31950 | #ifdef __cplusplus | |
31951 | } | |
31952 | #endif | |
31953 | ||
31954 | int | |
31955 | main () | |
31956 | { | |
31957 | return f != $ac_func; | |
31958 | ; | |
31959 | return 0; | |
31960 | } | |
31961 | _ACEOF | |
31962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31964 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31965 | ac_status=$? |
ac1cb8d3 VS |
31966 | grep -v '^ *+' conftest.er1 >conftest.err |
31967 | rm -f conftest.er1 | |
31968 | cat conftest.err >&5 | |
a848cd7e SC |
31969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31970 | (exit $ac_status); } && | |
d1c38808 | 31971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31973 | (eval $ac_try) 2>&5 | |
31974 | ac_status=$? | |
31975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31976 | (exit $ac_status); }; } && | |
31977 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31979 | (eval $ac_try) 2>&5 | |
31980 | ac_status=$? | |
31981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31982 | (exit $ac_status); }; }; then | |
31983 | eval "$as_ac_var=yes" | |
31984 | else | |
31985 | echo "$as_me: failed program was:" >&5 | |
31986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31987 | ||
31988 | eval "$as_ac_var=no" | |
31989 | fi | |
ac1cb8d3 VS |
31990 | rm -f conftest.err conftest.$ac_objext \ |
31991 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31992 | fi |
31993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31996 | cat >>confdefs.h <<_ACEOF | |
31997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31998 | _ACEOF | |
31999 | ||
32000 | fi | |
32001 | done | |
32002 | ||
32003 | ||
32004 | ||
32005 | for ac_header in sched.h | |
32006 | do | |
32007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32013 | fi | |
32014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32016 | else | |
32017 | # Is the header compilable? | |
32018 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32019 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32020 | cat >conftest.$ac_ext <<_ACEOF | |
32021 | /* confdefs.h. */ | |
32022 | _ACEOF | |
32023 | cat confdefs.h >>conftest.$ac_ext | |
32024 | cat >>conftest.$ac_ext <<_ACEOF | |
32025 | /* end confdefs.h. */ | |
32026 | $ac_includes_default | |
32027 | #include <$ac_header> | |
32028 | _ACEOF | |
32029 | rm -f conftest.$ac_objext | |
32030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32032 | ac_status=$? |
ac1cb8d3 VS |
32033 | grep -v '^ *+' conftest.er1 >conftest.err |
32034 | rm -f conftest.er1 | |
32035 | cat conftest.err >&5 | |
a848cd7e SC |
32036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32037 | (exit $ac_status); } && | |
d1c38808 | 32038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32040 | (eval $ac_try) 2>&5 | |
32041 | ac_status=$? | |
32042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32043 | (exit $ac_status); }; } && | |
32044 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32046 | (eval $ac_try) 2>&5 | |
32047 | ac_status=$? | |
32048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32049 | (exit $ac_status); }; }; then | |
32050 | ac_header_compiler=yes | |
32051 | else | |
32052 | echo "$as_me: failed program was:" >&5 | |
32053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32054 | ||
32055 | ac_header_compiler=no | |
32056 | fi | |
ac1cb8d3 | 32057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32059 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32060 | ||
32061 | # Is the header present? | |
32062 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32064 | cat >conftest.$ac_ext <<_ACEOF | |
32065 | /* confdefs.h. */ | |
32066 | _ACEOF | |
32067 | cat confdefs.h >>conftest.$ac_ext | |
32068 | cat >>conftest.$ac_ext <<_ACEOF | |
32069 | /* end confdefs.h. */ | |
32070 | #include <$ac_header> | |
32071 | _ACEOF | |
32072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32074 | ac_status=$? | |
32075 | grep -v '^ *+' conftest.er1 >conftest.err | |
32076 | rm -f conftest.er1 | |
32077 | cat conftest.err >&5 | |
32078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32079 | (exit $ac_status); } >/dev/null; then | |
32080 | if test -s conftest.err; then | |
32081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 32082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
32083 | else |
32084 | ac_cpp_err= | |
32085 | fi | |
32086 | else | |
32087 | ac_cpp_err=yes | |
32088 | fi | |
32089 | if test -z "$ac_cpp_err"; then | |
32090 | ac_header_preproc=yes | |
32091 | else | |
32092 | echo "$as_me: failed program was:" >&5 | |
32093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32094 | ||
32095 | ac_header_preproc=no | |
32096 | fi | |
32097 | rm -f conftest.err conftest.$ac_ext | |
32098 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32099 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32100 | ||
32101 | # So? What about this header? | |
ac1cb8d3 VS |
32102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
32103 | yes:no: ) | |
a848cd7e SC |
32104 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32105 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
32106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
32107 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
32108 | ac_header_preproc=yes | |
a848cd7e | 32109 | ;; |
ac1cb8d3 | 32110 | no:yes:* ) |
a848cd7e SC |
32111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
32113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32115 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
32116 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
32117 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
32118 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32121 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
32122 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32123 | ( |
32124 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32125 | ## ----------------------------------------- ## |
32126 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32127 | ## ----------------------------------------- ## | |
a848cd7e SC |
32128 | _ASBOX |
32129 | ) | | |
32130 | sed "s/^/$as_me: WARNING: /" >&2 | |
32131 | ;; | |
32132 | esac | |
32133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32137 | else | |
ac1cb8d3 | 32138 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
32139 | fi |
32140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32142 | ||
32143 | fi | |
32144 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32145 | cat >>confdefs.h <<_ACEOF | |
32146 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32147 | _ACEOF | |
32148 | ||
32149 | fi | |
32150 | ||
32151 | done | |
32152 | ||
32153 | if test "$ac_cv_header_sched_h" = "yes"; then | |
32154 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
32155 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
32156 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
32157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32158 | else | |
32159 | cat >conftest.$ac_ext <<_ACEOF | |
32160 | /* confdefs.h. */ | |
32161 | _ACEOF | |
32162 | cat confdefs.h >>conftest.$ac_ext | |
32163 | cat >>conftest.$ac_ext <<_ACEOF | |
32164 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32165 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
32166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32167 | #define sched_yield innocuous_sched_yield | |
32168 | ||
a848cd7e SC |
32169 | /* System header to define __stub macros and hopefully few prototypes, |
32170 | which can conflict with char sched_yield (); below. | |
32171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32172 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32173 | |
a848cd7e SC |
32174 | #ifdef __STDC__ |
32175 | # include <limits.h> | |
32176 | #else | |
32177 | # include <assert.h> | |
32178 | #endif | |
ac1cb8d3 VS |
32179 | |
32180 | #undef sched_yield | |
32181 | ||
a848cd7e SC |
32182 | /* Override any gcc2 internal prototype to avoid an error. */ |
32183 | #ifdef __cplusplus | |
32184 | extern "C" | |
32185 | { | |
32186 | #endif | |
32187 | /* We use char because int might match the return type of a gcc2 | |
32188 | builtin and then its argument prototype would still apply. */ | |
32189 | char sched_yield (); | |
32190 | /* The GNU C library defines this for functions which it implements | |
32191 | to always fail with ENOSYS. Some functions are actually named | |
32192 | something starting with __ and the normal name is an alias. */ | |
32193 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
32194 | choke me | |
32195 | #else | |
32196 | char (*f) () = sched_yield; | |
32197 | #endif | |
32198 | #ifdef __cplusplus | |
32199 | } | |
32200 | #endif | |
32201 | ||
32202 | int | |
32203 | main () | |
32204 | { | |
32205 | return f != sched_yield; | |
32206 | ; | |
32207 | return 0; | |
32208 | } | |
32209 | _ACEOF | |
32210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32213 | ac_status=$? |
ac1cb8d3 VS |
32214 | grep -v '^ *+' conftest.er1 >conftest.err |
32215 | rm -f conftest.er1 | |
32216 | cat conftest.err >&5 | |
a848cd7e SC |
32217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32218 | (exit $ac_status); } && | |
d1c38808 | 32219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32221 | (eval $ac_try) 2>&5 | |
32222 | ac_status=$? | |
32223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32224 | (exit $ac_status); }; } && | |
32225 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32227 | (eval $ac_try) 2>&5 | |
32228 | ac_status=$? | |
32229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32230 | (exit $ac_status); }; }; then | |
32231 | ac_cv_func_sched_yield=yes | |
32232 | else | |
32233 | echo "$as_me: failed program was:" >&5 | |
32234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32235 | ||
32236 | ac_cv_func_sched_yield=no | |
32237 | fi | |
ac1cb8d3 VS |
32238 | rm -f conftest.err conftest.$ac_objext \ |
32239 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32240 | fi |
32241 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
32242 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
32243 | if test $ac_cv_func_sched_yield = yes; then | |
32244 | cat >>confdefs.h <<\_ACEOF | |
32245 | #define HAVE_SCHED_YIELD 1 | |
32246 | _ACEOF | |
32247 | ||
32248 | else | |
32249 | ||
32250 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
32251 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
32252 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
32253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32254 | else | |
32255 | ac_check_lib_save_LIBS=$LIBS | |
32256 | LIBS="-lposix4 $LIBS" | |
32257 | cat >conftest.$ac_ext <<_ACEOF | |
32258 | /* confdefs.h. */ | |
32259 | _ACEOF | |
32260 | cat confdefs.h >>conftest.$ac_ext | |
32261 | cat >>conftest.$ac_ext <<_ACEOF | |
32262 | /* end confdefs.h. */ | |
32263 | ||
32264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32265 | #ifdef __cplusplus | |
32266 | extern "C" | |
32267 | #endif | |
32268 | /* We use char because int might match the return type of a gcc2 | |
32269 | builtin and then its argument prototype would still apply. */ | |
32270 | char sched_yield (); | |
32271 | int | |
32272 | main () | |
32273 | { | |
32274 | sched_yield (); | |
32275 | ; | |
32276 | return 0; | |
32277 | } | |
32278 | _ACEOF | |
32279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32281 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32282 | ac_status=$? |
ac1cb8d3 VS |
32283 | grep -v '^ *+' conftest.er1 >conftest.err |
32284 | rm -f conftest.er1 | |
32285 | cat conftest.err >&5 | |
a848cd7e SC |
32286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32287 | (exit $ac_status); } && | |
d1c38808 | 32288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32290 | (eval $ac_try) 2>&5 | |
32291 | ac_status=$? | |
32292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32293 | (exit $ac_status); }; } && | |
32294 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32296 | (eval $ac_try) 2>&5 | |
32297 | ac_status=$? | |
32298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32299 | (exit $ac_status); }; }; then | |
32300 | ac_cv_lib_posix4_sched_yield=yes | |
32301 | else | |
32302 | echo "$as_me: failed program was:" >&5 | |
32303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32304 | ||
32305 | ac_cv_lib_posix4_sched_yield=no | |
32306 | fi | |
ac1cb8d3 VS |
32307 | rm -f conftest.err conftest.$ac_objext \ |
32308 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32309 | LIBS=$ac_check_lib_save_LIBS |
32310 | fi | |
32311 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
32312 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
32313 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
32314 | cat >>confdefs.h <<\_ACEOF | |
32315 | #define HAVE_SCHED_YIELD 1 | |
32316 | _ACEOF | |
32317 | POSIX4_LINK=" -lposix4" | |
32318 | else | |
32319 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
32320 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32321 | ||
32322 | fi | |
32323 | ||
32324 | ||
32325 | ||
32326 | fi | |
32327 | ||
32328 | fi | |
32329 | ||
32330 | HAVE_PRIOR_FUNCS=0 | |
32331 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
32332 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
32333 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
32334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32335 | else | |
32336 | cat >conftest.$ac_ext <<_ACEOF | |
32337 | /* confdefs.h. */ | |
32338 | _ACEOF | |
32339 | cat confdefs.h >>conftest.$ac_ext | |
32340 | cat >>conftest.$ac_ext <<_ACEOF | |
32341 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32342 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
32343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32344 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
32345 | ||
a848cd7e SC |
32346 | /* System header to define __stub macros and hopefully few prototypes, |
32347 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
32348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32349 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32350 | |
a848cd7e SC |
32351 | #ifdef __STDC__ |
32352 | # include <limits.h> | |
32353 | #else | |
32354 | # include <assert.h> | |
32355 | #endif | |
ac1cb8d3 VS |
32356 | |
32357 | #undef pthread_attr_getschedpolicy | |
32358 | ||
a848cd7e SC |
32359 | /* Override any gcc2 internal prototype to avoid an error. */ |
32360 | #ifdef __cplusplus | |
32361 | extern "C" | |
32362 | { | |
32363 | #endif | |
32364 | /* We use char because int might match the return type of a gcc2 | |
32365 | builtin and then its argument prototype would still apply. */ | |
32366 | char pthread_attr_getschedpolicy (); | |
32367 | /* The GNU C library defines this for functions which it implements | |
32368 | to always fail with ENOSYS. Some functions are actually named | |
32369 | something starting with __ and the normal name is an alias. */ | |
32370 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
32371 | choke me | |
32372 | #else | |
32373 | char (*f) () = pthread_attr_getschedpolicy; | |
32374 | #endif | |
32375 | #ifdef __cplusplus | |
32376 | } | |
32377 | #endif | |
32378 | ||
32379 | int | |
32380 | main () | |
32381 | { | |
32382 | return f != pthread_attr_getschedpolicy; | |
32383 | ; | |
32384 | return 0; | |
32385 | } | |
32386 | _ACEOF | |
32387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32389 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32390 | ac_status=$? |
ac1cb8d3 VS |
32391 | grep -v '^ *+' conftest.er1 >conftest.err |
32392 | rm -f conftest.er1 | |
32393 | cat conftest.err >&5 | |
a848cd7e SC |
32394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32395 | (exit $ac_status); } && | |
d1c38808 | 32396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32398 | (eval $ac_try) 2>&5 | |
32399 | ac_status=$? | |
32400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32401 | (exit $ac_status); }; } && | |
32402 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32404 | (eval $ac_try) 2>&5 | |
32405 | ac_status=$? | |
32406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32407 | (exit $ac_status); }; }; then | |
32408 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
32409 | else | |
32410 | echo "$as_me: failed program was:" >&5 | |
32411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32412 | ||
32413 | ac_cv_func_pthread_attr_getschedpolicy=no | |
32414 | fi | |
ac1cb8d3 VS |
32415 | rm -f conftest.err conftest.$ac_objext \ |
32416 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32417 | fi |
32418 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
32419 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
32420 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
32421 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
32422 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
32423 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
32424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32425 | else | |
32426 | cat >conftest.$ac_ext <<_ACEOF | |
32427 | /* confdefs.h. */ | |
32428 | _ACEOF | |
32429 | cat confdefs.h >>conftest.$ac_ext | |
32430 | cat >>conftest.$ac_ext <<_ACEOF | |
32431 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32432 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
32433 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32434 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
32435 | ||
a848cd7e SC |
32436 | /* System header to define __stub macros and hopefully few prototypes, |
32437 | which can conflict with char pthread_attr_setschedparam (); below. | |
32438 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32439 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32440 | |
a848cd7e SC |
32441 | #ifdef __STDC__ |
32442 | # include <limits.h> | |
32443 | #else | |
32444 | # include <assert.h> | |
32445 | #endif | |
ac1cb8d3 VS |
32446 | |
32447 | #undef pthread_attr_setschedparam | |
32448 | ||
a848cd7e SC |
32449 | /* Override any gcc2 internal prototype to avoid an error. */ |
32450 | #ifdef __cplusplus | |
32451 | extern "C" | |
32452 | { | |
32453 | #endif | |
32454 | /* We use char because int might match the return type of a gcc2 | |
32455 | builtin and then its argument prototype would still apply. */ | |
32456 | char pthread_attr_setschedparam (); | |
32457 | /* The GNU C library defines this for functions which it implements | |
32458 | to always fail with ENOSYS. Some functions are actually named | |
32459 | something starting with __ and the normal name is an alias. */ | |
32460 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
32461 | choke me | |
32462 | #else | |
32463 | char (*f) () = pthread_attr_setschedparam; | |
32464 | #endif | |
32465 | #ifdef __cplusplus | |
32466 | } | |
32467 | #endif | |
32468 | ||
32469 | int | |
32470 | main () | |
32471 | { | |
32472 | return f != pthread_attr_setschedparam; | |
32473 | ; | |
32474 | return 0; | |
32475 | } | |
32476 | _ACEOF | |
32477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32479 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32480 | ac_status=$? |
ac1cb8d3 VS |
32481 | grep -v '^ *+' conftest.er1 >conftest.err |
32482 | rm -f conftest.er1 | |
32483 | cat conftest.err >&5 | |
a848cd7e SC |
32484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32485 | (exit $ac_status); } && | |
d1c38808 | 32486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32488 | (eval $ac_try) 2>&5 | |
32489 | ac_status=$? | |
32490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32491 | (exit $ac_status); }; } && | |
32492 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32494 | (eval $ac_try) 2>&5 | |
32495 | ac_status=$? | |
32496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32497 | (exit $ac_status); }; }; then | |
32498 | ac_cv_func_pthread_attr_setschedparam=yes | |
32499 | else | |
32500 | echo "$as_me: failed program was:" >&5 | |
32501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32502 | ||
32503 | ac_cv_func_pthread_attr_setschedparam=no | |
32504 | fi | |
ac1cb8d3 VS |
32505 | rm -f conftest.err conftest.$ac_objext \ |
32506 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32507 | fi |
32508 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
32509 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
32510 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
32511 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
32512 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
32513 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
32514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32515 | else | |
32516 | cat >conftest.$ac_ext <<_ACEOF | |
32517 | /* confdefs.h. */ | |
32518 | _ACEOF | |
32519 | cat confdefs.h >>conftest.$ac_ext | |
32520 | cat >>conftest.$ac_ext <<_ACEOF | |
32521 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32522 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
32523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32524 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
32525 | ||
a848cd7e SC |
32526 | /* System header to define __stub macros and hopefully few prototypes, |
32527 | which can conflict with char sched_get_priority_max (); below. | |
32528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32529 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32530 | |
a848cd7e SC |
32531 | #ifdef __STDC__ |
32532 | # include <limits.h> | |
32533 | #else | |
32534 | # include <assert.h> | |
32535 | #endif | |
ac1cb8d3 VS |
32536 | |
32537 | #undef sched_get_priority_max | |
32538 | ||
a848cd7e SC |
32539 | /* Override any gcc2 internal prototype to avoid an error. */ |
32540 | #ifdef __cplusplus | |
32541 | extern "C" | |
32542 | { | |
32543 | #endif | |
32544 | /* We use char because int might match the return type of a gcc2 | |
32545 | builtin and then its argument prototype would still apply. */ | |
32546 | char sched_get_priority_max (); | |
32547 | /* The GNU C library defines this for functions which it implements | |
32548 | to always fail with ENOSYS. Some functions are actually named | |
32549 | something starting with __ and the normal name is an alias. */ | |
32550 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
32551 | choke me | |
32552 | #else | |
32553 | char (*f) () = sched_get_priority_max; | |
32554 | #endif | |
32555 | #ifdef __cplusplus | |
32556 | } | |
32557 | #endif | |
32558 | ||
32559 | int | |
32560 | main () | |
32561 | { | |
32562 | return f != sched_get_priority_max; | |
32563 | ; | |
32564 | return 0; | |
32565 | } | |
32566 | _ACEOF | |
32567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32569 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32570 | ac_status=$? |
ac1cb8d3 VS |
32571 | grep -v '^ *+' conftest.er1 >conftest.err |
32572 | rm -f conftest.er1 | |
32573 | cat conftest.err >&5 | |
a848cd7e SC |
32574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32575 | (exit $ac_status); } && | |
d1c38808 | 32576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32578 | (eval $ac_try) 2>&5 | |
32579 | ac_status=$? | |
32580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32581 | (exit $ac_status); }; } && | |
32582 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32584 | (eval $ac_try) 2>&5 | |
32585 | ac_status=$? | |
32586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32587 | (exit $ac_status); }; }; then | |
32588 | ac_cv_func_sched_get_priority_max=yes | |
32589 | else | |
32590 | echo "$as_me: failed program was:" >&5 | |
32591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32592 | ||
32593 | ac_cv_func_sched_get_priority_max=no | |
32594 | fi | |
ac1cb8d3 VS |
32595 | rm -f conftest.err conftest.$ac_objext \ |
32596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32597 | fi |
32598 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
32599 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
32600 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
32601 | HAVE_PRIOR_FUNCS=1 | |
32602 | else | |
32603 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
32604 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
32605 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
32606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32607 | else | |
32608 | ac_check_lib_save_LIBS=$LIBS | |
32609 | LIBS="-lposix4 $LIBS" | |
32610 | cat >conftest.$ac_ext <<_ACEOF | |
32611 | /* confdefs.h. */ | |
32612 | _ACEOF | |
32613 | cat confdefs.h >>conftest.$ac_ext | |
32614 | cat >>conftest.$ac_ext <<_ACEOF | |
32615 | /* end confdefs.h. */ | |
32616 | ||
32617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32618 | #ifdef __cplusplus | |
32619 | extern "C" | |
32620 | #endif | |
32621 | /* We use char because int might match the return type of a gcc2 | |
32622 | builtin and then its argument prototype would still apply. */ | |
32623 | char sched_get_priority_max (); | |
32624 | int | |
32625 | main () | |
32626 | { | |
32627 | sched_get_priority_max (); | |
32628 | ; | |
32629 | return 0; | |
32630 | } | |
32631 | _ACEOF | |
32632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32634 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32635 | ac_status=$? |
ac1cb8d3 VS |
32636 | grep -v '^ *+' conftest.er1 >conftest.err |
32637 | rm -f conftest.er1 | |
32638 | cat conftest.err >&5 | |
a848cd7e SC |
32639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32640 | (exit $ac_status); } && | |
d1c38808 | 32641 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32643 | (eval $ac_try) 2>&5 | |
32644 | ac_status=$? | |
32645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32646 | (exit $ac_status); }; } && | |
32647 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32649 | (eval $ac_try) 2>&5 | |
32650 | ac_status=$? | |
32651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32652 | (exit $ac_status); }; }; then | |
32653 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
32654 | else | |
32655 | echo "$as_me: failed program was:" >&5 | |
32656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32657 | ||
32658 | ac_cv_lib_posix4_sched_get_priority_max=no | |
32659 | fi | |
ac1cb8d3 VS |
32660 | rm -f conftest.err conftest.$ac_objext \ |
32661 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32662 | LIBS=$ac_check_lib_save_LIBS |
32663 | fi | |
32664 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32665 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
32666 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
32667 | ||
32668 | HAVE_PRIOR_FUNCS=1 | |
32669 | POSIX4_LINK=" -lposix4" | |
32670 | ||
32671 | fi | |
32672 | ||
32673 | ||
32674 | fi | |
32675 | ||
32676 | ||
32677 | fi | |
32678 | ||
32679 | ||
32680 | fi | |
32681 | ||
32682 | ||
32683 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
32684 | cat >>confdefs.h <<\_ACEOF | |
32685 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
32686 | _ACEOF | |
32687 | ||
32688 | else | |
32689 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
32690 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32691 | fi | |
32692 | ||
32693 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
32694 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
32695 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
32696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32697 | else | |
32698 | cat >conftest.$ac_ext <<_ACEOF | |
32699 | /* confdefs.h. */ | |
32700 | _ACEOF | |
32701 | cat confdefs.h >>conftest.$ac_ext | |
32702 | cat >>conftest.$ac_ext <<_ACEOF | |
32703 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32704 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
32705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32706 | #define pthread_cancel innocuous_pthread_cancel | |
32707 | ||
a848cd7e SC |
32708 | /* System header to define __stub macros and hopefully few prototypes, |
32709 | which can conflict with char pthread_cancel (); below. | |
32710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32711 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32712 | |
a848cd7e SC |
32713 | #ifdef __STDC__ |
32714 | # include <limits.h> | |
32715 | #else | |
32716 | # include <assert.h> | |
32717 | #endif | |
ac1cb8d3 VS |
32718 | |
32719 | #undef pthread_cancel | |
32720 | ||
a848cd7e SC |
32721 | /* Override any gcc2 internal prototype to avoid an error. */ |
32722 | #ifdef __cplusplus | |
32723 | extern "C" | |
32724 | { | |
32725 | #endif | |
32726 | /* We use char because int might match the return type of a gcc2 | |
32727 | builtin and then its argument prototype would still apply. */ | |
32728 | char pthread_cancel (); | |
32729 | /* The GNU C library defines this for functions which it implements | |
32730 | to always fail with ENOSYS. Some functions are actually named | |
32731 | something starting with __ and the normal name is an alias. */ | |
32732 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
32733 | choke me | |
32734 | #else | |
32735 | char (*f) () = pthread_cancel; | |
32736 | #endif | |
32737 | #ifdef __cplusplus | |
32738 | } | |
32739 | #endif | |
32740 | ||
32741 | int | |
32742 | main () | |
32743 | { | |
32744 | return f != pthread_cancel; | |
32745 | ; | |
32746 | return 0; | |
32747 | } | |
32748 | _ACEOF | |
32749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32751 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32752 | ac_status=$? |
ac1cb8d3 VS |
32753 | grep -v '^ *+' conftest.er1 >conftest.err |
32754 | rm -f conftest.er1 | |
32755 | cat conftest.err >&5 | |
a848cd7e SC |
32756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32757 | (exit $ac_status); } && | |
d1c38808 | 32758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32760 | (eval $ac_try) 2>&5 | |
32761 | ac_status=$? | |
32762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32763 | (exit $ac_status); }; } && | |
32764 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32766 | (eval $ac_try) 2>&5 | |
32767 | ac_status=$? | |
32768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32769 | (exit $ac_status); }; }; then | |
32770 | ac_cv_func_pthread_cancel=yes | |
32771 | else | |
32772 | echo "$as_me: failed program was:" >&5 | |
32773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32774 | ||
32775 | ac_cv_func_pthread_cancel=no | |
32776 | fi | |
ac1cb8d3 VS |
32777 | rm -f conftest.err conftest.$ac_objext \ |
32778 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32779 | fi |
32780 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
32781 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
32782 | if test $ac_cv_func_pthread_cancel = yes; then | |
32783 | cat >>confdefs.h <<\_ACEOF | |
32784 | #define HAVE_PTHREAD_CANCEL 1 | |
32785 | _ACEOF | |
32786 | ||
32787 | else | |
32788 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
32789 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
32790 | fi | |
32791 | ||
32792 | ||
32793 | ||
32794 | ||
32795 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
32796 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
32797 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
32798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32799 | else | |
32800 | ||
32801 | cat >conftest.$ac_ext <<_ACEOF | |
32802 | /* confdefs.h. */ | |
32803 | _ACEOF | |
32804 | cat confdefs.h >>conftest.$ac_ext | |
32805 | cat >>conftest.$ac_ext <<_ACEOF | |
32806 | /* end confdefs.h. */ | |
32807 | #include <pthread.h> | |
32808 | int | |
32809 | main () | |
32810 | { | |
32811 | ||
32812 | pthread_mutexattr_t attr; | |
32813 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32814 | ||
32815 | ; | |
32816 | return 0; | |
32817 | } | |
32818 | _ACEOF | |
32819 | rm -f conftest.$ac_objext | |
32820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32821 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32822 | ac_status=$? |
ac1cb8d3 VS |
32823 | grep -v '^ *+' conftest.er1 >conftest.err |
32824 | rm -f conftest.er1 | |
32825 | cat conftest.err >&5 | |
a848cd7e SC |
32826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32827 | (exit $ac_status); } && | |
d1c38808 | 32828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32830 | (eval $ac_try) 2>&5 | |
32831 | ac_status=$? | |
32832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32833 | (exit $ac_status); }; } && | |
32834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32836 | (eval $ac_try) 2>&5 | |
32837 | ac_status=$? | |
32838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32839 | (exit $ac_status); }; }; then | |
32840 | ||
32841 | wx_cv_type_pthread_mutexattr_t=yes | |
32842 | ||
32843 | else | |
32844 | echo "$as_me: failed program was:" >&5 | |
32845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32846 | ||
32847 | ||
32848 | wx_cv_type_pthread_mutexattr_t=no | |
32849 | ||
32850 | ||
32851 | fi | |
ac1cb8d3 | 32852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32853 | |
32854 | fi | |
32855 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
32856 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
32857 | ||
32858 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
32859 | cat >>confdefs.h <<\_ACEOF | |
32860 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
32861 | _ACEOF | |
32862 | ||
32863 | else | |
32864 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
32865 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
32866 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
32867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32868 | else | |
32869 | ||
32870 | cat >conftest.$ac_ext <<_ACEOF | |
32871 | /* confdefs.h. */ | |
32872 | _ACEOF | |
32873 | cat confdefs.h >>conftest.$ac_ext | |
32874 | cat >>conftest.$ac_ext <<_ACEOF | |
32875 | /* end confdefs.h. */ | |
32876 | #include <pthread.h> | |
32877 | int | |
32878 | main () | |
32879 | { | |
32880 | ||
32881 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32882 | ||
32883 | ; | |
32884 | return 0; | |
32885 | } | |
32886 | _ACEOF | |
32887 | rm -f conftest.$ac_objext | |
32888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32889 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32890 | ac_status=$? |
ac1cb8d3 VS |
32891 | grep -v '^ *+' conftest.er1 >conftest.err |
32892 | rm -f conftest.er1 | |
32893 | cat conftest.err >&5 | |
a848cd7e SC |
32894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32895 | (exit $ac_status); } && | |
d1c38808 | 32896 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32898 | (eval $ac_try) 2>&5 | |
32899 | ac_status=$? | |
32900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32901 | (exit $ac_status); }; } && | |
32902 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32904 | (eval $ac_try) 2>&5 | |
32905 | ac_status=$? | |
32906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32907 | (exit $ac_status); }; }; then | |
32908 | ||
32909 | wx_cv_type_pthread_rec_mutex_init=yes | |
32910 | ||
32911 | else | |
32912 | echo "$as_me: failed program was:" >&5 | |
32913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32914 | ||
32915 | ||
32916 | wx_cv_type_pthread_rec_mutex_init=no | |
32917 | ||
32918 | ||
32919 | fi | |
ac1cb8d3 | 32920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32921 | |
32922 | fi | |
32923 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
32924 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
32925 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
32926 | cat >>confdefs.h <<\_ACEOF | |
32927 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
32928 | _ACEOF | |
32929 | ||
32930 | else | |
32931 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
32932 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
32933 | fi | |
32934 | fi | |
32935 | fi | |
32936 | ||
32937 | else | |
32938 | if test "$wxUSE_THREADS" = "yes" ; then | |
32939 | case "${host}" in | |
32940 | *-*-mingw32* ) | |
32941 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
32942 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
32943 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
32944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32945 | else | |
32946 | ||
32947 | CFLAGS_OLD="$CFLAGS" | |
32948 | CFLAGS="$CFLAGS -mthreads" | |
32949 | cat >conftest.$ac_ext <<_ACEOF | |
32950 | /* confdefs.h. */ | |
32951 | _ACEOF | |
32952 | cat confdefs.h >>conftest.$ac_ext | |
32953 | cat >>conftest.$ac_ext <<_ACEOF | |
32954 | /* end confdefs.h. */ | |
32955 | ||
32956 | int | |
32957 | main () | |
32958 | { | |
32959 | ||
32960 | ; | |
32961 | return 0; | |
32962 | } | |
32963 | _ACEOF | |
32964 | rm -f conftest.$ac_objext | |
32965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32967 | ac_status=$? |
ac1cb8d3 VS |
32968 | grep -v '^ *+' conftest.er1 >conftest.err |
32969 | rm -f conftest.er1 | |
32970 | cat conftest.err >&5 | |
a848cd7e SC |
32971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32972 | (exit $ac_status); } && | |
d1c38808 | 32973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32975 | (eval $ac_try) 2>&5 | |
32976 | ac_status=$? | |
32977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32978 | (exit $ac_status); }; } && | |
32979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32981 | (eval $ac_try) 2>&5 | |
32982 | ac_status=$? | |
32983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32984 | (exit $ac_status); }; }; then | |
32985 | wx_cv_cflags_mthread=yes | |
32986 | else | |
32987 | echo "$as_me: failed program was:" >&5 | |
32988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32989 | ||
32990 | wx_cv_cflags_mthread=no | |
32991 | ||
32992 | fi | |
ac1cb8d3 | 32993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32994 | |
32995 | ||
32996 | fi | |
32997 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
32998 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
32999 | ||
33000 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
33001 | CXXFLAGS="$CXXFLAGS -mthreads" | |
33002 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
33003 | LDFLAGS="$LDFLAGS -mthreads" | |
33004 | else | |
33005 | CFLAGS="$CFLAGS_OLD" | |
33006 | fi | |
33007 | ;; | |
33008 | *-pc-os2*emx ) | |
33009 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33010 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
33011 | LDFLAGS="$LDFLAGS -Zmt" | |
33012 | ;; | |
33013 | esac | |
33014 | fi | |
33015 | fi | |
33016 | ||
33017 | if test "$wxUSE_THREADS" = "yes"; then | |
33018 | cat >>confdefs.h <<\_ACEOF | |
33019 | #define wxUSE_THREADS 1 | |
33020 | _ACEOF | |
33021 | ||
33022 | ||
33023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
33024 | else | |
33025 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
33026 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
33027 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
33028 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
33029 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
33030 | echo "$as_me:$LINENO: result: yes" >&5 | |
33031 | echo "${ECHO_T}yes" >&6 | |
33032 | else | |
33033 | echo "$as_me:$LINENO: result: no" >&5 | |
33034 | echo "${ECHO_T}no" >&6 | |
33035 | fi | |
33036 | fi | |
33037 | fi | |
33038 | ||
33039 | if test "$WXGTK20" = 1 ; then | |
33040 | cat >>confdefs.h <<_ACEOF | |
33041 | #define __WXGTK20__ $WXGTK20 | |
33042 | _ACEOF | |
33043 | ||
33044 | WXGTK12=1 | |
33045 | fi | |
33046 | ||
33047 | if test "$WXGTK12" = 1 ; then | |
33048 | cat >>confdefs.h <<_ACEOF | |
33049 | #define __WXGTK12__ $WXGTK12 | |
33050 | _ACEOF | |
33051 | ||
33052 | fi | |
33053 | ||
33054 | if test "$WXGTK127" = 1 ; then | |
33055 | cat >>confdefs.h <<_ACEOF | |
33056 | #define __WXGTK127__ $WXGTK127 | |
33057 | _ACEOF | |
33058 | ||
33059 | fi | |
33060 | ||
33061 | if test "$WXGPE" = 1 ; then | |
33062 | cat >>confdefs.h <<_ACEOF | |
33063 | #define __WXGPE__ $WXGPE | |
33064 | _ACEOF | |
33065 | ||
33066 | fi | |
33067 | ||
33068 | WXDEBUG= | |
33069 | ||
33070 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
33071 | WXDEBUG="-g" | |
33072 | wxUSE_OPTIMISE=no | |
33073 | fi | |
33074 | ||
33075 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
33076 | wxUSE_DEBUG_INFO=yes | |
33077 | WXDEBUG="-ggdb" | |
33078 | fi | |
33079 | ||
33080 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
33081 | cat >>confdefs.h <<\_ACEOF | |
33082 | #define WXDEBUG 1 | |
33083 | _ACEOF | |
33084 | ||
33085 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
33086 | else | |
33087 | if test "$wxUSE_GTK" = 1 ; then | |
33088 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
33089 | fi | |
33090 | fi | |
33091 | ||
33092 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
33093 | cat >>confdefs.h <<\_ACEOF | |
33094 | #define wxUSE_MEMORY_TRACING 1 | |
33095 | _ACEOF | |
33096 | ||
33097 | cat >>confdefs.h <<\_ACEOF | |
33098 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
33099 | _ACEOF | |
33100 | ||
33101 | cat >>confdefs.h <<\_ACEOF | |
33102 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
33103 | _ACEOF | |
33104 | ||
33105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33106 | fi | |
33107 | ||
33108 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33109 | DMALLOC_LIBS="-ldmalloc" | |
33110 | fi | |
33111 | ||
33112 | PROFILE= | |
33113 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33114 | PROFILE=" -pg" | |
33115 | fi | |
33116 | ||
33117 | CODE_GEN_FLAGS= | |
33118 | CODE_GEN_FLAGS_CXX= | |
33119 | if test "$GCC" = "yes" ; then | |
33120 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
33121 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
33122 | fi | |
33123 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33124 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
33125 | fi | |
33126 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33127 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
33128 | fi | |
33129 | ||
33130 | case "${host}" in | |
33131 | powerpc*-*-aix* ) | |
33132 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
33133 | ;; | |
33134 | *-hppa* ) | |
33135 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
33136 | ;; | |
33137 | esac | |
33138 | fi | |
33139 | ||
33140 | OPTIMISE= | |
33141 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
33142 | if test "$GCC" = yes ; then | |
33143 | OPTIMISE="-O0" | |
33144 | fi | |
33145 | else | |
33146 | if test "$GCC" = yes ; then | |
33147 | OPTIMISE="-O2" | |
33148 | ||
33149 | case "${host}" in | |
33150 | i586-*-*|i686-*-* ) | |
33151 | OPTIMISE="${OPTIMISE} " | |
33152 | ;; | |
33153 | esac | |
33154 | else | |
33155 | OPTIMISE="-O" | |
33156 | fi | |
33157 | fi | |
33158 | ||
33159 | ||
33160 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
33161 | cat >>confdefs.h <<\_ACEOF | |
33162 | #define WXWIN_COMPATIBILITY_2_2 1 | |
33163 | _ACEOF | |
33164 | ||
33165 | ||
33166 | WXWIN_COMPATIBILITY_2_4="yes" | |
33167 | fi | |
33168 | ||
33169 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
33170 | cat >>confdefs.h <<\_ACEOF | |
33171 | #define WXWIN_COMPATIBILITY_2_4 1 | |
33172 | _ACEOF | |
33173 | ||
33174 | fi | |
33175 | ||
33176 | ||
33177 | if test "$wxUSE_GUI" = "yes"; then | |
33178 | cat >>confdefs.h <<\_ACEOF | |
33179 | #define wxUSE_GUI 1 | |
33180 | _ACEOF | |
33181 | ||
33182 | ||
33183 | else | |
33184 | cat >>confdefs.h <<\_ACEOF | |
33185 | #define wxUSE_NOGUI 1 | |
33186 | _ACEOF | |
33187 | ||
33188 | fi | |
33189 | ||
33190 | ||
33191 | if test "$wxUSE_UNIX" = "yes"; then | |
33192 | cat >>confdefs.h <<\_ACEOF | |
33193 | #define wxUSE_UNIX 1 | |
33194 | _ACEOF | |
33195 | ||
33196 | fi | |
33197 | ||
33198 | ||
33199 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33200 | ||
33201 | HAVE_DL_FUNCS=0 | |
33202 | HAVE_SHL_FUNCS=0 | |
33203 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33204 | if test "$USE_DARWIN" = 1; then | |
33205 | HAVE_DL_FUNCS=1 | |
33206 | else | |
33207 | ||
33208 | for ac_func in dlopen | |
33209 | do | |
33210 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33211 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33212 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33213 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33215 | else | |
33216 | cat >conftest.$ac_ext <<_ACEOF | |
33217 | /* confdefs.h. */ | |
33218 | _ACEOF | |
33219 | cat confdefs.h >>conftest.$ac_ext | |
33220 | cat >>conftest.$ac_ext <<_ACEOF | |
33221 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33222 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33224 | #define $ac_func innocuous_$ac_func | |
33225 | ||
a848cd7e SC |
33226 | /* System header to define __stub macros and hopefully few prototypes, |
33227 | which can conflict with char $ac_func (); below. | |
33228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33229 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33230 | |
a848cd7e SC |
33231 | #ifdef __STDC__ |
33232 | # include <limits.h> | |
33233 | #else | |
33234 | # include <assert.h> | |
33235 | #endif | |
ac1cb8d3 VS |
33236 | |
33237 | #undef $ac_func | |
33238 | ||
a848cd7e SC |
33239 | /* Override any gcc2 internal prototype to avoid an error. */ |
33240 | #ifdef __cplusplus | |
33241 | extern "C" | |
33242 | { | |
33243 | #endif | |
33244 | /* We use char because int might match the return type of a gcc2 | |
33245 | builtin and then its argument prototype would still apply. */ | |
33246 | char $ac_func (); | |
33247 | /* The GNU C library defines this for functions which it implements | |
33248 | to always fail with ENOSYS. Some functions are actually named | |
33249 | something starting with __ and the normal name is an alias. */ | |
33250 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33251 | choke me | |
33252 | #else | |
33253 | char (*f) () = $ac_func; | |
33254 | #endif | |
33255 | #ifdef __cplusplus | |
33256 | } | |
33257 | #endif | |
33258 | ||
33259 | int | |
33260 | main () | |
33261 | { | |
33262 | return f != $ac_func; | |
33263 | ; | |
33264 | return 0; | |
33265 | } | |
33266 | _ACEOF | |
33267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33269 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33270 | ac_status=$? |
ac1cb8d3 VS |
33271 | grep -v '^ *+' conftest.er1 >conftest.err |
33272 | rm -f conftest.er1 | |
33273 | cat conftest.err >&5 | |
a848cd7e SC |
33274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33275 | (exit $ac_status); } && | |
d1c38808 | 33276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33278 | (eval $ac_try) 2>&5 | |
33279 | ac_status=$? | |
33280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33281 | (exit $ac_status); }; } && | |
33282 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33284 | (eval $ac_try) 2>&5 | |
33285 | ac_status=$? | |
33286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33287 | (exit $ac_status); }; }; then | |
33288 | eval "$as_ac_var=yes" | |
33289 | else | |
33290 | echo "$as_me: failed program was:" >&5 | |
33291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33292 | ||
33293 | eval "$as_ac_var=no" | |
33294 | fi | |
ac1cb8d3 VS |
33295 | rm -f conftest.err conftest.$ac_objext \ |
33296 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33297 | fi |
33298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33299 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33300 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33301 | cat >>confdefs.h <<_ACEOF | |
33302 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33303 | _ACEOF | |
33304 | ||
33305 | cat >>confdefs.h <<\_ACEOF | |
33306 | #define HAVE_DLOPEN 1 | |
33307 | _ACEOF | |
33308 | ||
33309 | HAVE_DL_FUNCS=1 | |
33310 | ||
33311 | else | |
33312 | ||
33313 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
33314 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
33315 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
33316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33317 | else | |
33318 | ac_check_lib_save_LIBS=$LIBS | |
33319 | LIBS="-ldl $LIBS" | |
33320 | cat >conftest.$ac_ext <<_ACEOF | |
33321 | /* confdefs.h. */ | |
33322 | _ACEOF | |
33323 | cat confdefs.h >>conftest.$ac_ext | |
33324 | cat >>conftest.$ac_ext <<_ACEOF | |
33325 | /* end confdefs.h. */ | |
33326 | ||
33327 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33328 | #ifdef __cplusplus | |
33329 | extern "C" | |
33330 | #endif | |
33331 | /* We use char because int might match the return type of a gcc2 | |
33332 | builtin and then its argument prototype would still apply. */ | |
33333 | char dlopen (); | |
33334 | int | |
33335 | main () | |
33336 | { | |
33337 | dlopen (); | |
33338 | ; | |
33339 | return 0; | |
33340 | } | |
33341 | _ACEOF | |
33342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33344 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33345 | ac_status=$? |
ac1cb8d3 VS |
33346 | grep -v '^ *+' conftest.er1 >conftest.err |
33347 | rm -f conftest.er1 | |
33348 | cat conftest.err >&5 | |
a848cd7e SC |
33349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33350 | (exit $ac_status); } && | |
d1c38808 | 33351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33353 | (eval $ac_try) 2>&5 | |
33354 | ac_status=$? | |
33355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33356 | (exit $ac_status); }; } && | |
33357 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33359 | (eval $ac_try) 2>&5 | |
33360 | ac_status=$? | |
33361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33362 | (exit $ac_status); }; }; then | |
33363 | ac_cv_lib_dl_dlopen=yes | |
33364 | else | |
33365 | echo "$as_me: failed program was:" >&5 | |
33366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33367 | ||
33368 | ac_cv_lib_dl_dlopen=no | |
33369 | fi | |
ac1cb8d3 VS |
33370 | rm -f conftest.err conftest.$ac_objext \ |
33371 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33372 | LIBS=$ac_check_lib_save_LIBS |
33373 | fi | |
33374 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
33375 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
33376 | if test $ac_cv_lib_dl_dlopen = yes; then | |
33377 | ||
33378 | cat >>confdefs.h <<\_ACEOF | |
33379 | #define HAVE_DLOPEN 1 | |
33380 | _ACEOF | |
33381 | ||
33382 | HAVE_DL_FUNCS=1 | |
33383 | DL_LINK=" -ldl$DL_LINK" | |
33384 | ||
33385 | else | |
33386 | ||
33387 | ||
33388 | for ac_func in shl_load | |
33389 | do | |
33390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33391 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33393 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33395 | else | |
33396 | cat >conftest.$ac_ext <<_ACEOF | |
33397 | /* confdefs.h. */ | |
33398 | _ACEOF | |
33399 | cat confdefs.h >>conftest.$ac_ext | |
33400 | cat >>conftest.$ac_ext <<_ACEOF | |
33401 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33402 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33404 | #define $ac_func innocuous_$ac_func | |
33405 | ||
a848cd7e SC |
33406 | /* System header to define __stub macros and hopefully few prototypes, |
33407 | which can conflict with char $ac_func (); below. | |
33408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33409 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33410 | |
a848cd7e SC |
33411 | #ifdef __STDC__ |
33412 | # include <limits.h> | |
33413 | #else | |
33414 | # include <assert.h> | |
33415 | #endif | |
ac1cb8d3 VS |
33416 | |
33417 | #undef $ac_func | |
33418 | ||
a848cd7e SC |
33419 | /* Override any gcc2 internal prototype to avoid an error. */ |
33420 | #ifdef __cplusplus | |
33421 | extern "C" | |
33422 | { | |
33423 | #endif | |
33424 | /* We use char because int might match the return type of a gcc2 | |
33425 | builtin and then its argument prototype would still apply. */ | |
33426 | char $ac_func (); | |
33427 | /* The GNU C library defines this for functions which it implements | |
33428 | to always fail with ENOSYS. Some functions are actually named | |
33429 | something starting with __ and the normal name is an alias. */ | |
33430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33431 | choke me | |
33432 | #else | |
33433 | char (*f) () = $ac_func; | |
33434 | #endif | |
33435 | #ifdef __cplusplus | |
33436 | } | |
33437 | #endif | |
33438 | ||
33439 | int | |
33440 | main () | |
33441 | { | |
33442 | return f != $ac_func; | |
33443 | ; | |
33444 | return 0; | |
33445 | } | |
33446 | _ACEOF | |
33447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33449 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33450 | ac_status=$? |
ac1cb8d3 VS |
33451 | grep -v '^ *+' conftest.er1 >conftest.err |
33452 | rm -f conftest.er1 | |
33453 | cat conftest.err >&5 | |
a848cd7e SC |
33454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33455 | (exit $ac_status); } && | |
d1c38808 | 33456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33458 | (eval $ac_try) 2>&5 | |
33459 | ac_status=$? | |
33460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33461 | (exit $ac_status); }; } && | |
33462 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33464 | (eval $ac_try) 2>&5 | |
33465 | ac_status=$? | |
33466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33467 | (exit $ac_status); }; }; then | |
33468 | eval "$as_ac_var=yes" | |
33469 | else | |
33470 | echo "$as_me: failed program was:" >&5 | |
33471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33472 | ||
33473 | eval "$as_ac_var=no" | |
33474 | fi | |
ac1cb8d3 VS |
33475 | rm -f conftest.err conftest.$ac_objext \ |
33476 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33477 | fi |
33478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33479 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33480 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33481 | cat >>confdefs.h <<_ACEOF | |
33482 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33483 | _ACEOF | |
33484 | ||
33485 | cat >>confdefs.h <<\_ACEOF | |
33486 | #define HAVE_SHL_LOAD 1 | |
33487 | _ACEOF | |
33488 | ||
33489 | HAVE_SHL_FUNCS=1 | |
33490 | ||
33491 | else | |
33492 | ||
33493 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
33494 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
33495 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
33496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33497 | else | |
33498 | ac_check_lib_save_LIBS=$LIBS | |
33499 | LIBS="-lshl_load $LIBS" | |
33500 | cat >conftest.$ac_ext <<_ACEOF | |
33501 | /* confdefs.h. */ | |
33502 | _ACEOF | |
33503 | cat confdefs.h >>conftest.$ac_ext | |
33504 | cat >>conftest.$ac_ext <<_ACEOF | |
33505 | /* end confdefs.h. */ | |
33506 | ||
33507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33508 | #ifdef __cplusplus | |
33509 | extern "C" | |
33510 | #endif | |
33511 | /* We use char because int might match the return type of a gcc2 | |
33512 | builtin and then its argument prototype would still apply. */ | |
33513 | char dld (); | |
33514 | int | |
33515 | main () | |
33516 | { | |
33517 | dld (); | |
33518 | ; | |
33519 | return 0; | |
33520 | } | |
33521 | _ACEOF | |
33522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33525 | ac_status=$? |
ac1cb8d3 VS |
33526 | grep -v '^ *+' conftest.er1 >conftest.err |
33527 | rm -f conftest.er1 | |
33528 | cat conftest.err >&5 | |
a848cd7e SC |
33529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33530 | (exit $ac_status); } && | |
d1c38808 | 33531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33533 | (eval $ac_try) 2>&5 | |
33534 | ac_status=$? | |
33535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33536 | (exit $ac_status); }; } && | |
33537 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33539 | (eval $ac_try) 2>&5 | |
33540 | ac_status=$? | |
33541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33542 | (exit $ac_status); }; }; then | |
33543 | ac_cv_lib_shl_load_dld=yes | |
33544 | else | |
33545 | echo "$as_me: failed program was:" >&5 | |
33546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33547 | ||
33548 | ac_cv_lib_shl_load_dld=no | |
33549 | fi | |
ac1cb8d3 VS |
33550 | rm -f conftest.err conftest.$ac_objext \ |
33551 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33552 | LIBS=$ac_check_lib_save_LIBS |
33553 | fi | |
33554 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
33555 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
33556 | if test $ac_cv_lib_shl_load_dld = yes; then | |
33557 | ||
33558 | HAVE_SHL_FUNCS=1 | |
33559 | DL_LINK=" -ldld$DL_LINK" | |
33560 | ||
33561 | fi | |
33562 | ||
33563 | ||
33564 | fi | |
33565 | done | |
33566 | ||
33567 | ||
33568 | fi | |
33569 | ||
33570 | ||
33571 | fi | |
33572 | done | |
33573 | ||
33574 | ||
33575 | if test "$HAVE_DL_FUNCS" = 1; then | |
33576 | ||
33577 | for ac_func in dlerror | |
33578 | do | |
33579 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33580 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33581 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33582 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33584 | else | |
33585 | cat >conftest.$ac_ext <<_ACEOF | |
33586 | /* confdefs.h. */ | |
33587 | _ACEOF | |
33588 | cat confdefs.h >>conftest.$ac_ext | |
33589 | cat >>conftest.$ac_ext <<_ACEOF | |
33590 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33591 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33593 | #define $ac_func innocuous_$ac_func | |
33594 | ||
a848cd7e SC |
33595 | /* System header to define __stub macros and hopefully few prototypes, |
33596 | which can conflict with char $ac_func (); below. | |
33597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33598 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33599 | |
a848cd7e SC |
33600 | #ifdef __STDC__ |
33601 | # include <limits.h> | |
33602 | #else | |
33603 | # include <assert.h> | |
33604 | #endif | |
ac1cb8d3 VS |
33605 | |
33606 | #undef $ac_func | |
33607 | ||
a848cd7e SC |
33608 | /* Override any gcc2 internal prototype to avoid an error. */ |
33609 | #ifdef __cplusplus | |
33610 | extern "C" | |
33611 | { | |
33612 | #endif | |
33613 | /* We use char because int might match the return type of a gcc2 | |
33614 | builtin and then its argument prototype would still apply. */ | |
33615 | char $ac_func (); | |
33616 | /* The GNU C library defines this for functions which it implements | |
33617 | to always fail with ENOSYS. Some functions are actually named | |
33618 | something starting with __ and the normal name is an alias. */ | |
33619 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33620 | choke me | |
33621 | #else | |
33622 | char (*f) () = $ac_func; | |
33623 | #endif | |
33624 | #ifdef __cplusplus | |
33625 | } | |
33626 | #endif | |
33627 | ||
33628 | int | |
33629 | main () | |
33630 | { | |
33631 | return f != $ac_func; | |
33632 | ; | |
33633 | return 0; | |
33634 | } | |
33635 | _ACEOF | |
33636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33638 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33639 | ac_status=$? |
ac1cb8d3 VS |
33640 | grep -v '^ *+' conftest.er1 >conftest.err |
33641 | rm -f conftest.er1 | |
33642 | cat conftest.err >&5 | |
a848cd7e SC |
33643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33644 | (exit $ac_status); } && | |
d1c38808 | 33645 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33647 | (eval $ac_try) 2>&5 | |
33648 | ac_status=$? | |
33649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33650 | (exit $ac_status); }; } && | |
33651 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33653 | (eval $ac_try) 2>&5 | |
33654 | ac_status=$? | |
33655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33656 | (exit $ac_status); }; }; then | |
33657 | eval "$as_ac_var=yes" | |
33658 | else | |
33659 | echo "$as_me: failed program was:" >&5 | |
33660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33661 | ||
33662 | eval "$as_ac_var=no" | |
33663 | fi | |
ac1cb8d3 VS |
33664 | rm -f conftest.err conftest.$ac_objext \ |
33665 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33666 | fi |
33667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33668 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33669 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33670 | cat >>confdefs.h <<_ACEOF | |
33671 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33672 | _ACEOF | |
33673 | cat >>confdefs.h <<\_ACEOF | |
33674 | #define HAVE_DLERROR 1 | |
33675 | _ACEOF | |
33676 | ||
33677 | else | |
33678 | ||
33679 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
33680 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
33681 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
33682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33683 | else | |
33684 | ac_check_lib_save_LIBS=$LIBS | |
33685 | LIBS="-ldl $LIBS" | |
33686 | cat >conftest.$ac_ext <<_ACEOF | |
33687 | /* confdefs.h. */ | |
33688 | _ACEOF | |
33689 | cat confdefs.h >>conftest.$ac_ext | |
33690 | cat >>conftest.$ac_ext <<_ACEOF | |
33691 | /* end confdefs.h. */ | |
33692 | ||
33693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33694 | #ifdef __cplusplus | |
33695 | extern "C" | |
33696 | #endif | |
33697 | /* We use char because int might match the return type of a gcc2 | |
33698 | builtin and then its argument prototype would still apply. */ | |
33699 | char dlerror (); | |
33700 | int | |
33701 | main () | |
33702 | { | |
33703 | dlerror (); | |
33704 | ; | |
33705 | return 0; | |
33706 | } | |
33707 | _ACEOF | |
33708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33710 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33711 | ac_status=$? |
ac1cb8d3 VS |
33712 | grep -v '^ *+' conftest.er1 >conftest.err |
33713 | rm -f conftest.er1 | |
33714 | cat conftest.err >&5 | |
a848cd7e SC |
33715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33716 | (exit $ac_status); } && | |
d1c38808 | 33717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33719 | (eval $ac_try) 2>&5 | |
33720 | ac_status=$? | |
33721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33722 | (exit $ac_status); }; } && | |
33723 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33725 | (eval $ac_try) 2>&5 | |
33726 | ac_status=$? | |
33727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33728 | (exit $ac_status); }; }; then | |
33729 | ac_cv_lib_dl_dlerror=yes | |
33730 | else | |
33731 | echo "$as_me: failed program was:" >&5 | |
33732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33733 | ||
33734 | ac_cv_lib_dl_dlerror=no | |
33735 | fi | |
ac1cb8d3 VS |
33736 | rm -f conftest.err conftest.$ac_objext \ |
33737 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33738 | LIBS=$ac_check_lib_save_LIBS |
33739 | fi | |
33740 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
33741 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
33742 | if test $ac_cv_lib_dl_dlerror = yes; then | |
33743 | cat >>confdefs.h <<\_ACEOF | |
33744 | #define HAVE_DLERROR 1 | |
33745 | _ACEOF | |
33746 | ||
33747 | fi | |
33748 | ||
33749 | ||
33750 | ||
33751 | fi | |
33752 | done | |
33753 | ||
33754 | fi | |
33755 | fi | |
33756 | ||
33757 | if test "$HAVE_DL_FUNCS" = 0; then | |
33758 | if test "$HAVE_SHL_FUNCS" = 0; then | |
33759 | if test "$USE_UNIX" = 1; then | |
33760 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
33761 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
33762 | wxUSE_DYNAMIC_LOADER=no | |
33763 | wxUSE_DYNLIB_CLASS=no | |
33764 | else | |
33765 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
33766 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
33767 | fi | |
33768 | fi | |
33769 | fi | |
33770 | fi | |
33771 | fi | |
33772 | ||
33773 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
33774 | cat >>confdefs.h <<\_ACEOF | |
33775 | #define wxUSE_DYNAMIC_LOADER 1 | |
33776 | _ACEOF | |
33777 | ||
33778 | fi | |
33779 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
33780 | cat >>confdefs.h <<\_ACEOF | |
33781 | #define wxUSE_DYNLIB_CLASS 1 | |
33782 | _ACEOF | |
33783 | ||
33784 | fi | |
33785 | ||
33786 | ||
33787 | ||
33788 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33789 | if test "$wxUSE_SHARED" = "no" ; then | |
33790 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
33791 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
33792 | wxUSE_PLUGINS=no | |
33793 | fi | |
33794 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
33795 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
33796 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
33797 | wxUSE_PLUGINS=no | |
33798 | fi | |
33799 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
33800 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
33801 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
33802 | wxUSE_PLUGINS=no | |
33803 | fi | |
33804 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33805 | cat >>confdefs.h <<\_ACEOF | |
33806 | #define wxUSE_PLUGINS 1 | |
33807 | _ACEOF | |
33808 | ||
33809 | fi | |
33810 | fi | |
33811 | ||
33812 | ||
33813 | if test "$wxUSE_STL" = "yes"; then | |
33814 | cat >>confdefs.h <<\_ACEOF | |
33815 | #define wxUSE_STL 1 | |
33816 | _ACEOF | |
33817 | ||
33818 | fi | |
33819 | ||
33820 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
33821 | cat >>confdefs.h <<\_ACEOF | |
33822 | #define wxUSE_APPLE_IEEE 1 | |
33823 | _ACEOF | |
33824 | ||
33825 | fi | |
33826 | ||
33827 | if test "$wxUSE_TIMER" = "yes"; then | |
33828 | cat >>confdefs.h <<\_ACEOF | |
33829 | #define wxUSE_TIMER 1 | |
33830 | _ACEOF | |
33831 | ||
33832 | fi | |
33833 | ||
33834 | WITH_PLUGIN_SDL=0 | |
33835 | if test "$wxUSE_SOUND" = "yes"; then | |
33836 | if test "$USE_UNIX" = "1" ; then | |
33837 | ||
33838 | for ac_header in sys/soundcard.h | |
33839 | do | |
33840 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33841 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33842 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33846 | fi | |
33847 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33848 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33849 | else | |
33850 | # Is the header compilable? | |
33851 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33852 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33853 | cat >conftest.$ac_ext <<_ACEOF | |
33854 | /* confdefs.h. */ | |
33855 | _ACEOF | |
33856 | cat confdefs.h >>conftest.$ac_ext | |
33857 | cat >>conftest.$ac_ext <<_ACEOF | |
33858 | /* end confdefs.h. */ | |
33859 | $ac_includes_default | |
33860 | #include <$ac_header> | |
33861 | _ACEOF | |
33862 | rm -f conftest.$ac_objext | |
33863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33865 | ac_status=$? |
ac1cb8d3 VS |
33866 | grep -v '^ *+' conftest.er1 >conftest.err |
33867 | rm -f conftest.er1 | |
33868 | cat conftest.err >&5 | |
a848cd7e SC |
33869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33870 | (exit $ac_status); } && | |
d1c38808 | 33871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33873 | (eval $ac_try) 2>&5 | |
33874 | ac_status=$? | |
33875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33876 | (exit $ac_status); }; } && | |
33877 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33879 | (eval $ac_try) 2>&5 | |
33880 | ac_status=$? | |
33881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33882 | (exit $ac_status); }; }; then | |
33883 | ac_header_compiler=yes | |
33884 | else | |
33885 | echo "$as_me: failed program was:" >&5 | |
33886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33887 | ||
33888 | ac_header_compiler=no | |
33889 | fi | |
ac1cb8d3 | 33890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33891 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33892 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33893 | ||
33894 | # Is the header present? | |
33895 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33896 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33897 | cat >conftest.$ac_ext <<_ACEOF | |
33898 | /* confdefs.h. */ | |
33899 | _ACEOF | |
33900 | cat confdefs.h >>conftest.$ac_ext | |
33901 | cat >>conftest.$ac_ext <<_ACEOF | |
33902 | /* end confdefs.h. */ | |
33903 | #include <$ac_header> | |
33904 | _ACEOF | |
33905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33907 | ac_status=$? | |
33908 | grep -v '^ *+' conftest.er1 >conftest.err | |
33909 | rm -f conftest.er1 | |
33910 | cat conftest.err >&5 | |
33911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33912 | (exit $ac_status); } >/dev/null; then | |
33913 | if test -s conftest.err; then | |
33914 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 33915 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
33916 | else |
33917 | ac_cpp_err= | |
33918 | fi | |
33919 | else | |
33920 | ac_cpp_err=yes | |
33921 | fi | |
33922 | if test -z "$ac_cpp_err"; then | |
33923 | ac_header_preproc=yes | |
33924 | else | |
33925 | echo "$as_me: failed program was:" >&5 | |
33926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33927 | ||
33928 | ac_header_preproc=no | |
33929 | fi | |
33930 | rm -f conftest.err conftest.$ac_ext | |
33931 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33932 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33933 | ||
33934 | # So? What about this header? | |
ac1cb8d3 VS |
33935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
33936 | yes:no: ) | |
a848cd7e SC |
33937 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33938 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
33939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
33940 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
33941 | ac_header_preproc=yes | |
a848cd7e | 33942 | ;; |
ac1cb8d3 | 33943 | no:yes:* ) |
a848cd7e SC |
33944 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33945 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
33946 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33947 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
33948 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
33949 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
33950 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
33951 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
33952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
33954 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
33955 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
33956 | ( |
33957 | cat <<\_ASBOX | |
ac1cb8d3 VS |
33958 | ## ----------------------------------------- ## |
33959 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
33960 | ## ----------------------------------------- ## | |
a848cd7e SC |
33961 | _ASBOX |
33962 | ) | | |
33963 | sed "s/^/$as_me: WARNING: /" >&2 | |
33964 | ;; | |
33965 | esac | |
33966 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33967 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33968 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33970 | else | |
ac1cb8d3 | 33971 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
33972 | fi |
33973 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33974 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33975 | ||
33976 | fi | |
33977 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33978 | cat >>confdefs.h <<_ACEOF | |
33979 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33980 | _ACEOF | |
33981 | ||
33982 | fi | |
33983 | ||
33984 | done | |
33985 | ||
33986 | ||
33987 | if test "$wxUSE_LIBSDL" != "no"; then | |
33988 | ||
33989 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
33990 | if test "${with_sdl_prefix+set}" = set; then | |
33991 | withval="$with_sdl_prefix" | |
33992 | sdl_prefix="$withval" | |
33993 | else | |
33994 | sdl_prefix="" | |
33995 | fi; | |
33996 | ||
33997 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
33998 | if test "${with_sdl_exec_prefix+set}" = set; then | |
33999 | withval="$with_sdl_exec_prefix" | |
34000 | sdl_exec_prefix="$withval" | |
34001 | else | |
34002 | sdl_exec_prefix="" | |
34003 | fi; | |
34004 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
34005 | if test "${enable_sdltest+set}" = set; then | |
34006 | enableval="$enable_sdltest" | |
34007 | ||
34008 | else | |
34009 | enable_sdltest=yes | |
34010 | fi; | |
34011 | ||
34012 | if test x$sdl_exec_prefix != x ; then | |
34013 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
34014 | if test x${SDL_CONFIG+set} != xset ; then | |
34015 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
34016 | fi | |
34017 | fi | |
34018 | if test x$sdl_prefix != x ; then | |
34019 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
34020 | if test x${SDL_CONFIG+set} != xset ; then | |
34021 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
34022 | fi | |
34023 | fi | |
34024 | ||
34025 | ||
34026 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
34027 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
34028 | set dummy sdl-config; ac_word=$2 | |
34029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34031 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
34032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34033 | else | |
34034 | case $SDL_CONFIG in | |
34035 | [\\/]* | ?:[\\/]*) | |
34036 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
34037 | ;; | |
34038 | *) | |
34039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34040 | for as_dir in $PATH | |
34041 | do | |
34042 | IFS=$as_save_IFS | |
34043 | test -z "$as_dir" && as_dir=. | |
34044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34046 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34048 | break 2 | |
34049 | fi | |
34050 | done | |
34051 | done | |
34052 | ||
34053 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
34054 | ;; | |
34055 | esac | |
34056 | fi | |
34057 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
34058 | ||
34059 | if test -n "$SDL_CONFIG"; then | |
34060 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
34061 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
34062 | else | |
34063 | echo "$as_me:$LINENO: result: no" >&5 | |
34064 | echo "${ECHO_T}no" >&6 | |
34065 | fi | |
34066 | ||
34067 | min_sdl_version=1.2.0 | |
34068 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
34069 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
34070 | no_sdl="" | |
34071 | if test "$SDL_CONFIG" = "no" ; then | |
34072 | no_sdl=yes | |
34073 | else | |
34074 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
34075 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
34076 | ||
34077 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
34078 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
34079 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
34080 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
34081 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
34082 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
34083 | if test "x$enable_sdltest" = "xyes" ; then | |
34084 | ac_save_CFLAGS="$CFLAGS" | |
34085 | ac_save_LIBS="$LIBS" | |
34086 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34087 | LIBS="$LIBS $SDL_LIBS" | |
34088 | rm -f conf.sdltest | |
34089 | if test "$cross_compiling" = yes; then | |
34090 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
34091 | else | |
34092 | cat >conftest.$ac_ext <<_ACEOF | |
34093 | /* confdefs.h. */ | |
34094 | _ACEOF | |
34095 | cat confdefs.h >>conftest.$ac_ext | |
34096 | cat >>conftest.$ac_ext <<_ACEOF | |
34097 | /* end confdefs.h. */ | |
34098 | ||
34099 | #include <stdio.h> | |
34100 | #include <stdlib.h> | |
34101 | #include <string.h> | |
34102 | #include "SDL.h" | |
34103 | ||
34104 | char* | |
34105 | my_strdup (char *str) | |
34106 | { | |
34107 | char *new_str; | |
34108 | ||
34109 | if (str) | |
34110 | { | |
34111 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
34112 | strcpy (new_str, str); | |
34113 | } | |
34114 | else | |
34115 | new_str = NULL; | |
34116 | ||
34117 | return new_str; | |
34118 | } | |
34119 | ||
34120 | int main (int argc, char *argv[]) | |
34121 | { | |
34122 | int major, minor, micro; | |
34123 | char *tmp_version; | |
34124 | ||
34125 | /* This hangs on some systems (?) | |
34126 | system ("touch conf.sdltest"); | |
34127 | */ | |
34128 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
34129 | ||
34130 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
34131 | tmp_version = my_strdup("$min_sdl_version"); | |
34132 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
34133 | printf("%s, bad version string\n", "$min_sdl_version"); | |
34134 | exit(1); | |
34135 | } | |
34136 | ||
34137 | if (($sdl_major_version > major) || | |
34138 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
34139 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
34140 | { | |
34141 | return 0; | |
34142 | } | |
34143 | else | |
34144 | { | |
34145 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
34146 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
34147 | printf("*** best to upgrade to the required version.\n"); | |
34148 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
34149 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
34150 | printf("*** config.cache before re-running configure\n"); | |
34151 | return 1; | |
34152 | } | |
34153 | } | |
34154 | ||
34155 | ||
34156 | _ACEOF | |
34157 | rm -f conftest$ac_exeext | |
34158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34159 | (eval $ac_link) 2>&5 | |
34160 | ac_status=$? | |
34161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34162 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34164 | (eval $ac_try) 2>&5 | |
34165 | ac_status=$? | |
34166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34167 | (exit $ac_status); }; }; then | |
34168 | : | |
34169 | else | |
34170 | echo "$as_me: program exited with status $ac_status" >&5 | |
34171 | echo "$as_me: failed program was:" >&5 | |
34172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34173 | ||
34174 | ( exit $ac_status ) | |
34175 | no_sdl=yes | |
34176 | fi | |
ac1cb8d3 | 34177 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34178 | fi |
34179 | CFLAGS="$ac_save_CFLAGS" | |
34180 | LIBS="$ac_save_LIBS" | |
34181 | fi | |
34182 | fi | |
34183 | if test "x$no_sdl" = x ; then | |
34184 | echo "$as_me:$LINENO: result: yes" >&5 | |
34185 | echo "${ECHO_T}yes" >&6 | |
34186 | ||
34187 | EXTRALIBS_SDL="$SDL_LIBS" | |
34188 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
34189 | cat >>confdefs.h <<\_ACEOF | |
34190 | #define wxUSE_LIBSDL 1 | |
34191 | _ACEOF | |
34192 | ||
34193 | ||
34194 | else | |
34195 | echo "$as_me:$LINENO: result: no" >&5 | |
34196 | echo "${ECHO_T}no" >&6 | |
34197 | if test "$SDL_CONFIG" = "no" ; then | |
34198 | echo "*** The sdl-config script installed by SDL could not be found" | |
34199 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
34200 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
34201 | echo "*** full path to sdl-config." | |
34202 | else | |
34203 | if test -f conf.sdltest ; then | |
34204 | : | |
34205 | else | |
34206 | echo "*** Could not run SDL test program, checking why..." | |
34207 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
34208 | LIBS="$LIBS $SDL_LIBS" | |
34209 | cat >conftest.$ac_ext <<_ACEOF | |
34210 | /* confdefs.h. */ | |
34211 | _ACEOF | |
34212 | cat confdefs.h >>conftest.$ac_ext | |
34213 | cat >>conftest.$ac_ext <<_ACEOF | |
34214 | /* end confdefs.h. */ | |
34215 | ||
34216 | #include <stdio.h> | |
34217 | #include "SDL.h" | |
34218 | ||
34219 | int main(int argc, char *argv[]) | |
34220 | { return 0; } | |
34221 | #undef main | |
34222 | #define main K_and_R_C_main | |
34223 | ||
34224 | int | |
34225 | main () | |
34226 | { | |
34227 | return 0; | |
34228 | ; | |
34229 | return 0; | |
34230 | } | |
34231 | _ACEOF | |
34232 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34234 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34235 | ac_status=$? |
ac1cb8d3 VS |
34236 | grep -v '^ *+' conftest.er1 >conftest.err |
34237 | rm -f conftest.er1 | |
34238 | cat conftest.err >&5 | |
a848cd7e SC |
34239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34240 | (exit $ac_status); } && | |
d1c38808 | 34241 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34243 | (eval $ac_try) 2>&5 | |
34244 | ac_status=$? | |
34245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34246 | (exit $ac_status); }; } && | |
34247 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34249 | (eval $ac_try) 2>&5 | |
34250 | ac_status=$? | |
34251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34252 | (exit $ac_status); }; }; then | |
34253 | echo "*** The test program compiled, but did not run. This usually means" | |
34254 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
34255 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
34256 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
34257 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
34258 | echo "*** is required on your system" | |
34259 | echo "***" | |
34260 | echo "*** If you have an old version installed, it is best to remove it, although" | |
34261 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
34262 | else | |
34263 | echo "$as_me: failed program was:" >&5 | |
34264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34265 | ||
34266 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
34267 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
34268 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
34269 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
34270 | fi | |
ac1cb8d3 VS |
34271 | rm -f conftest.err conftest.$ac_objext \ |
34272 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34273 | CFLAGS="$ac_save_CFLAGS" |
34274 | LIBS="$ac_save_LIBS" | |
34275 | fi | |
34276 | fi | |
34277 | SDL_CFLAGS="" | |
34278 | SDL_LIBS="" | |
34279 | wxUSE_LIBSDL="no" | |
34280 | fi | |
34281 | ||
34282 | ||
34283 | rm -f conf.sdltest | |
34284 | ||
34285 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
34286 | WITH_PLUGIN_SDL=1 | |
34287 | fi | |
34288 | fi | |
34289 | fi | |
34290 | ||
34291 | cat >>confdefs.h <<\_ACEOF | |
34292 | #define wxUSE_SOUND 1 | |
34293 | _ACEOF | |
34294 | ||
34295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
34296 | fi | |
34297 | ||
d1c38808 VZ |
34298 | if test "$WXGTK20" = 1; then |
34299 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
34300 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
34301 | ||
34302 | ||
34303 | succeeded=no | |
34304 | ||
34305 | if test -z "$PKG_CONFIG"; then | |
34306 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
34307 | set dummy pkg-config; ac_word=$2 | |
34308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34310 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
34311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34312 | else | |
34313 | case $PKG_CONFIG in | |
34314 | [\\/]* | ?:[\\/]*) | |
34315 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
34316 | ;; | |
34317 | *) | |
34318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34319 | for as_dir in $PATH | |
34320 | do | |
34321 | IFS=$as_save_IFS | |
34322 | test -z "$as_dir" && as_dir=. | |
34323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34325 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
34326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34327 | break 2 | |
34328 | fi | |
34329 | done | |
34330 | done | |
34331 | ||
34332 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
34333 | ;; | |
34334 | esac | |
34335 | fi | |
34336 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
34337 | ||
34338 | if test -n "$PKG_CONFIG"; then | |
34339 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
34340 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
34341 | else | |
34342 | echo "$as_me:$LINENO: result: no" >&5 | |
34343 | echo "${ECHO_T}no" >&6 | |
34344 | fi | |
34345 | ||
34346 | fi | |
34347 | ||
34348 | if test "$PKG_CONFIG" = "no" ; then | |
34349 | echo "*** The pkg-config script could not be found. Make sure it is" | |
34350 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
34351 | echo "*** to the full path to pkg-config." | |
34352 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
34353 | else | |
34354 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
34355 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
34356 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2" >&5 | |
34357 | echo $ECHO_N "checking for libgnomeprintui-2.2... $ECHO_C" >&6 | |
34358 | ||
34359 | if $PKG_CONFIG --exists "libgnomeprintui-2.2" ; then | |
34360 | echo "$as_me:$LINENO: result: yes" >&5 | |
34361 | echo "${ECHO_T}yes" >&6 | |
34362 | succeeded=yes | |
34363 | ||
34364 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34365 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
34366 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2"` | |
34367 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 | |
34368 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
34369 | ||
34370 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
34371 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
34372 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2"` | |
34373 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 | |
34374 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
34375 | else | |
34376 | LIBGNOMEPRINTUI_CFLAGS="" | |
34377 | LIBGNOMEPRINTUI_LIBS="" | |
34378 | ## If we have a custom action on failure, don't print errors, but | |
34379 | ## do set a variable so people can do so. | |
34380 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2"` | |
34381 | ||
34382 | fi | |
34383 | ||
34384 | ||
34385 | ||
34386 | else | |
34387 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
34388 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
34389 | fi | |
34390 | fi | |
34391 | ||
34392 | if test $succeeded = yes; then | |
34393 | ||
34394 | EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS" | |
34395 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" | |
34396 | cat >>confdefs.h <<\_ACEOF | |
34397 | #define wxUSE_LIBGNOMEPRINT 1 | |
34398 | _ACEOF | |
34399 | ||
34400 | ||
34401 | else | |
34402 | ||
34403 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
34404 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
34405 | wxUSE_LIBGNOMEPRINT="no" | |
34406 | ||
34407 | ||
34408 | fi | |
34409 | ||
34410 | fi | |
34411 | fi | |
34412 | fi | |
34413 | ||
34414 | ||
a848cd7e SC |
34415 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
34416 | cat >>confdefs.h <<\_ACEOF | |
34417 | #define wxUSE_CMDLINE_PARSER 1 | |
34418 | _ACEOF | |
34419 | ||
34420 | fi | |
34421 | ||
34422 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
34423 | cat >>confdefs.h <<\_ACEOF | |
34424 | #define wxUSE_STOPWATCH 1 | |
34425 | _ACEOF | |
34426 | ||
34427 | fi | |
34428 | ||
34429 | if test "$wxUSE_DATETIME" = "yes"; then | |
34430 | cat >>confdefs.h <<\_ACEOF | |
34431 | #define wxUSE_DATETIME 1 | |
34432 | _ACEOF | |
34433 | ||
34434 | fi | |
34435 | ||
34436 | if test "$wxUSE_FILE" = "yes"; then | |
34437 | cat >>confdefs.h <<\_ACEOF | |
34438 | #define wxUSE_FILE 1 | |
34439 | _ACEOF | |
34440 | ||
34441 | fi | |
34442 | ||
34443 | if test "$wxUSE_FFILE" = "yes"; then | |
34444 | cat >>confdefs.h <<\_ACEOF | |
34445 | #define wxUSE_FFILE 1 | |
34446 | _ACEOF | |
34447 | ||
34448 | fi | |
34449 | ||
34450 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
34451 | cat >>confdefs.h <<\_ACEOF | |
34452 | #define wxUSE_FILESYSTEM 1 | |
34453 | _ACEOF | |
34454 | ||
34455 | fi | |
34456 | ||
34457 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
34458 | cat >>confdefs.h <<\_ACEOF | |
34459 | #define wxUSE_FS_ZIP 1 | |
34460 | _ACEOF | |
34461 | ||
34462 | fi | |
34463 | ||
34464 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
34465 | cat >>confdefs.h <<\_ACEOF | |
34466 | #define wxUSE_ZIPSTREAM 1 | |
34467 | _ACEOF | |
34468 | ||
34469 | fi | |
34470 | ||
a848cd7e SC |
34471 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34472 | cat >>confdefs.h <<\_ACEOF | |
34473 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
34474 | _ACEOF | |
34475 | ||
34476 | fi | |
34477 | ||
34478 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34479 | cat >>confdefs.h <<\_ACEOF | |
34480 | #define wxUSE_SNGLINST_CHECKER 1 | |
34481 | _ACEOF | |
34482 | ||
34483 | fi | |
34484 | ||
34485 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
34486 | cat >>confdefs.h <<\_ACEOF | |
34487 | #define wxUSE_BUSYINFO 1 | |
34488 | _ACEOF | |
34489 | ||
34490 | fi | |
34491 | ||
34492 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
34493 | cat >>confdefs.h <<\_ACEOF | |
34494 | #define wxUSE_STD_IOSTREAM 1 | |
34495 | _ACEOF | |
34496 | ||
34497 | fi | |
34498 | ||
34499 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
34500 | cat >>confdefs.h <<\_ACEOF | |
34501 | #define wxUSE_TEXTBUFFER 1 | |
34502 | _ACEOF | |
34503 | ||
34504 | fi | |
34505 | ||
34506 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34507 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
34508 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
34509 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
34510 | else | |
34511 | cat >>confdefs.h <<\_ACEOF | |
34512 | #define wxUSE_TEXTFILE 1 | |
34513 | _ACEOF | |
34514 | ||
34515 | fi | |
34516 | fi | |
34517 | ||
34518 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34519 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
34520 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
34521 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
34522 | else | |
34523 | cat >>confdefs.h <<\_ACEOF | |
34524 | #define wxUSE_CONFIG 1 | |
34525 | _ACEOF | |
34526 | ||
34527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34528 | fi | |
34529 | fi | |
34530 | ||
34531 | if test "$wxUSE_INTL" = "yes" ; then | |
34532 | if test "$wxUSE_FILE" != "yes"; then | |
34533 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
34534 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
34535 | else | |
34536 | cat >>confdefs.h <<\_ACEOF | |
34537 | #define wxUSE_INTL 1 | |
34538 | _ACEOF | |
34539 | ||
34540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34541 | GUIDIST="$GUIDIST INTL_DIST" | |
34542 | fi | |
34543 | fi | |
34544 | ||
34545 | if test "$wxUSE_LOG" = "yes"; then | |
34546 | cat >>confdefs.h <<\_ACEOF | |
34547 | #define wxUSE_LOG 1 | |
34548 | _ACEOF | |
34549 | ||
34550 | ||
34551 | if test "$wxUSE_LOGGUI" = "yes"; then | |
34552 | cat >>confdefs.h <<\_ACEOF | |
34553 | #define wxUSE_LOGGUI 1 | |
34554 | _ACEOF | |
34555 | ||
34556 | fi | |
34557 | ||
34558 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
34559 | cat >>confdefs.h <<\_ACEOF | |
34560 | #define wxUSE_LOGWINDOW 1 | |
34561 | _ACEOF | |
34562 | ||
34563 | fi | |
34564 | ||
34565 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
34566 | cat >>confdefs.h <<\_ACEOF | |
34567 | #define wxUSE_LOG_DIALOG 1 | |
34568 | _ACEOF | |
34569 | ||
34570 | fi | |
34571 | fi | |
34572 | ||
34573 | if test "$wxUSE_LONGLONG" = "yes"; then | |
34574 | cat >>confdefs.h <<\_ACEOF | |
34575 | #define wxUSE_LONGLONG 1 | |
34576 | _ACEOF | |
34577 | ||
34578 | fi | |
34579 | ||
34580 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
34581 | cat >>confdefs.h <<\_ACEOF | |
34582 | #define wxUSE_GEOMETRY 1 | |
34583 | _ACEOF | |
34584 | ||
34585 | fi | |
34586 | ||
34587 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
34588 | cat >>confdefs.h <<\_ACEOF | |
34589 | #define wxUSE_DIALUP_MANAGER 1 | |
34590 | _ACEOF | |
34591 | ||
34592 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
34593 | fi | |
34594 | ||
34595 | if test "$wxUSE_STREAMS" = "yes" ; then | |
34596 | cat >>confdefs.h <<\_ACEOF | |
34597 | #define wxUSE_STREAMS 1 | |
34598 | _ACEOF | |
34599 | ||
34600 | fi | |
34601 | ||
34602 | ||
34603 | if test "$wxUSE_DATETIME" = "yes"; then | |
34604 | ||
34605 | for ac_func in strptime | |
34606 | do | |
34607 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34608 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34609 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34610 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34612 | else | |
34613 | cat >conftest.$ac_ext <<_ACEOF | |
34614 | /* confdefs.h. */ | |
34615 | _ACEOF | |
34616 | cat confdefs.h >>conftest.$ac_ext | |
34617 | cat >>conftest.$ac_ext <<_ACEOF | |
34618 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34619 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34620 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34621 | #define $ac_func innocuous_$ac_func | |
34622 | ||
a848cd7e SC |
34623 | /* System header to define __stub macros and hopefully few prototypes, |
34624 | which can conflict with char $ac_func (); below. | |
34625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34626 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34627 | |
a848cd7e SC |
34628 | #ifdef __STDC__ |
34629 | # include <limits.h> | |
34630 | #else | |
34631 | # include <assert.h> | |
34632 | #endif | |
ac1cb8d3 VS |
34633 | |
34634 | #undef $ac_func | |
34635 | ||
a848cd7e SC |
34636 | /* Override any gcc2 internal prototype to avoid an error. */ |
34637 | #ifdef __cplusplus | |
34638 | extern "C" | |
34639 | { | |
34640 | #endif | |
34641 | /* We use char because int might match the return type of a gcc2 | |
34642 | builtin and then its argument prototype would still apply. */ | |
34643 | char $ac_func (); | |
34644 | /* The GNU C library defines this for functions which it implements | |
34645 | to always fail with ENOSYS. Some functions are actually named | |
34646 | something starting with __ and the normal name is an alias. */ | |
34647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34648 | choke me | |
34649 | #else | |
34650 | char (*f) () = $ac_func; | |
34651 | #endif | |
34652 | #ifdef __cplusplus | |
34653 | } | |
34654 | #endif | |
34655 | ||
34656 | int | |
34657 | main () | |
34658 | { | |
34659 | return f != $ac_func; | |
34660 | ; | |
34661 | return 0; | |
34662 | } | |
34663 | _ACEOF | |
34664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34666 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34667 | ac_status=$? |
ac1cb8d3 VS |
34668 | grep -v '^ *+' conftest.er1 >conftest.err |
34669 | rm -f conftest.er1 | |
34670 | cat conftest.err >&5 | |
a848cd7e SC |
34671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34672 | (exit $ac_status); } && | |
d1c38808 | 34673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34675 | (eval $ac_try) 2>&5 | |
34676 | ac_status=$? | |
34677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34678 | (exit $ac_status); }; } && | |
34679 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34681 | (eval $ac_try) 2>&5 | |
34682 | ac_status=$? | |
34683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34684 | (exit $ac_status); }; }; then | |
34685 | eval "$as_ac_var=yes" | |
34686 | else | |
34687 | echo "$as_me: failed program was:" >&5 | |
34688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34689 | ||
34690 | eval "$as_ac_var=no" | |
34691 | fi | |
ac1cb8d3 VS |
34692 | rm -f conftest.err conftest.$ac_objext \ |
34693 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34694 | fi |
34695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34696 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34697 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34698 | cat >>confdefs.h <<_ACEOF | |
34699 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34700 | _ACEOF | |
34701 | ||
34702 | fi | |
34703 | done | |
34704 | ||
34705 | ||
34706 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
34707 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
34708 | if test "${wx_cv_var_timezone+set}" = set; then | |
34709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34710 | else | |
34711 | ||
34712 | cat >conftest.$ac_ext <<_ACEOF | |
34713 | /* confdefs.h. */ | |
34714 | _ACEOF | |
34715 | cat confdefs.h >>conftest.$ac_ext | |
34716 | cat >>conftest.$ac_ext <<_ACEOF | |
34717 | /* end confdefs.h. */ | |
34718 | ||
34719 | #include <time.h> | |
34720 | ||
34721 | int | |
34722 | main () | |
34723 | { | |
34724 | ||
34725 | int tz; | |
34726 | tz = timezone; | |
34727 | ||
34728 | ; | |
34729 | return 0; | |
34730 | } | |
34731 | _ACEOF | |
34732 | rm -f conftest.$ac_objext | |
34733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34735 | ac_status=$? |
ac1cb8d3 VS |
34736 | grep -v '^ *+' conftest.er1 >conftest.err |
34737 | rm -f conftest.er1 | |
34738 | cat conftest.err >&5 | |
a848cd7e SC |
34739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34740 | (exit $ac_status); } && | |
d1c38808 | 34741 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34743 | (eval $ac_try) 2>&5 | |
34744 | ac_status=$? | |
34745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34746 | (exit $ac_status); }; } && | |
34747 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34749 | (eval $ac_try) 2>&5 | |
34750 | ac_status=$? | |
34751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34752 | (exit $ac_status); }; }; then | |
34753 | ||
34754 | wx_cv_var_timezone=timezone | |
34755 | ||
34756 | else | |
34757 | echo "$as_me: failed program was:" >&5 | |
34758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34759 | ||
34760 | ||
34761 | cat >conftest.$ac_ext <<_ACEOF | |
34762 | /* confdefs.h. */ | |
34763 | _ACEOF | |
34764 | cat confdefs.h >>conftest.$ac_ext | |
34765 | cat >>conftest.$ac_ext <<_ACEOF | |
34766 | /* end confdefs.h. */ | |
34767 | ||
34768 | #include <time.h> | |
34769 | ||
34770 | int | |
34771 | main () | |
34772 | { | |
34773 | ||
34774 | int tz; | |
34775 | tz = _timezone; | |
34776 | ||
34777 | ; | |
34778 | return 0; | |
34779 | } | |
34780 | _ACEOF | |
34781 | rm -f conftest.$ac_objext | |
34782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34783 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34784 | ac_status=$? |
ac1cb8d3 VS |
34785 | grep -v '^ *+' conftest.er1 >conftest.err |
34786 | rm -f conftest.er1 | |
34787 | cat conftest.err >&5 | |
a848cd7e SC |
34788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34789 | (exit $ac_status); } && | |
d1c38808 | 34790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34792 | (eval $ac_try) 2>&5 | |
34793 | ac_status=$? | |
34794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34795 | (exit $ac_status); }; } && | |
34796 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34798 | (eval $ac_try) 2>&5 | |
34799 | ac_status=$? | |
34800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34801 | (exit $ac_status); }; }; then | |
34802 | ||
34803 | wx_cv_var_timezone=_timezone | |
34804 | ||
34805 | else | |
34806 | echo "$as_me: failed program was:" >&5 | |
34807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34808 | ||
34809 | ||
34810 | cat >conftest.$ac_ext <<_ACEOF | |
34811 | /* confdefs.h. */ | |
34812 | _ACEOF | |
34813 | cat confdefs.h >>conftest.$ac_ext | |
34814 | cat >>conftest.$ac_ext <<_ACEOF | |
34815 | /* end confdefs.h. */ | |
34816 | ||
34817 | #include <time.h> | |
34818 | ||
34819 | int | |
34820 | main () | |
34821 | { | |
34822 | ||
34823 | int tz; | |
34824 | tz = __timezone; | |
34825 | ||
34826 | ; | |
34827 | return 0; | |
34828 | } | |
34829 | _ACEOF | |
34830 | rm -f conftest.$ac_objext | |
34831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34833 | ac_status=$? |
ac1cb8d3 VS |
34834 | grep -v '^ *+' conftest.er1 >conftest.err |
34835 | rm -f conftest.er1 | |
34836 | cat conftest.err >&5 | |
a848cd7e SC |
34837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34838 | (exit $ac_status); } && | |
d1c38808 | 34839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34841 | (eval $ac_try) 2>&5 | |
34842 | ac_status=$? | |
34843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34844 | (exit $ac_status); }; } && | |
34845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34847 | (eval $ac_try) 2>&5 | |
34848 | ac_status=$? | |
34849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34850 | (exit $ac_status); }; }; then | |
34851 | ||
34852 | wx_cv_var_timezone=__timezone | |
34853 | ||
34854 | else | |
34855 | echo "$as_me: failed program was:" >&5 | |
34856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34857 | ||
34858 | ||
34859 | if test "$USE_DOS" = 0 ; then | |
34860 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
34861 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
34862 | fi | |
34863 | ||
34864 | ||
34865 | fi | |
ac1cb8d3 | 34866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34867 | |
34868 | ||
34869 | fi | |
ac1cb8d3 | 34870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34871 | |
34872 | ||
34873 | fi | |
ac1cb8d3 | 34874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34875 | |
34876 | ||
34877 | fi | |
34878 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
34879 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
34880 | ||
34881 | if test "x$wx_cv_var_timezone" != x ; then | |
34882 | cat >>confdefs.h <<_ACEOF | |
34883 | #define WX_TIMEZONE $wx_cv_var_timezone | |
34884 | _ACEOF | |
34885 | ||
34886 | fi | |
34887 | ||
34888 | ||
34889 | for ac_func in localtime | |
34890 | do | |
34891 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34892 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34893 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34894 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34896 | else | |
34897 | cat >conftest.$ac_ext <<_ACEOF | |
34898 | /* confdefs.h. */ | |
34899 | _ACEOF | |
34900 | cat confdefs.h >>conftest.$ac_ext | |
34901 | cat >>conftest.$ac_ext <<_ACEOF | |
34902 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34903 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34905 | #define $ac_func innocuous_$ac_func | |
34906 | ||
a848cd7e SC |
34907 | /* System header to define __stub macros and hopefully few prototypes, |
34908 | which can conflict with char $ac_func (); below. | |
34909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34910 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34911 | |
a848cd7e SC |
34912 | #ifdef __STDC__ |
34913 | # include <limits.h> | |
34914 | #else | |
34915 | # include <assert.h> | |
34916 | #endif | |
ac1cb8d3 VS |
34917 | |
34918 | #undef $ac_func | |
34919 | ||
a848cd7e SC |
34920 | /* Override any gcc2 internal prototype to avoid an error. */ |
34921 | #ifdef __cplusplus | |
34922 | extern "C" | |
34923 | { | |
34924 | #endif | |
34925 | /* We use char because int might match the return type of a gcc2 | |
34926 | builtin and then its argument prototype would still apply. */ | |
34927 | char $ac_func (); | |
34928 | /* The GNU C library defines this for functions which it implements | |
34929 | to always fail with ENOSYS. Some functions are actually named | |
34930 | something starting with __ and the normal name is an alias. */ | |
34931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34932 | choke me | |
34933 | #else | |
34934 | char (*f) () = $ac_func; | |
34935 | #endif | |
34936 | #ifdef __cplusplus | |
34937 | } | |
34938 | #endif | |
34939 | ||
34940 | int | |
34941 | main () | |
34942 | { | |
34943 | return f != $ac_func; | |
34944 | ; | |
34945 | return 0; | |
34946 | } | |
34947 | _ACEOF | |
34948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34950 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34951 | ac_status=$? |
ac1cb8d3 VS |
34952 | grep -v '^ *+' conftest.er1 >conftest.err |
34953 | rm -f conftest.er1 | |
34954 | cat conftest.err >&5 | |
a848cd7e SC |
34955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34956 | (exit $ac_status); } && | |
d1c38808 | 34957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34959 | (eval $ac_try) 2>&5 | |
34960 | ac_status=$? | |
34961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34962 | (exit $ac_status); }; } && | |
34963 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34965 | (eval $ac_try) 2>&5 | |
34966 | ac_status=$? | |
34967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34968 | (exit $ac_status); }; }; then | |
34969 | eval "$as_ac_var=yes" | |
34970 | else | |
34971 | echo "$as_me: failed program was:" >&5 | |
34972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34973 | ||
34974 | eval "$as_ac_var=no" | |
34975 | fi | |
ac1cb8d3 VS |
34976 | rm -f conftest.err conftest.$ac_objext \ |
34977 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34978 | fi |
34979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34980 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34981 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34982 | cat >>confdefs.h <<_ACEOF | |
34983 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34984 | _ACEOF | |
34985 | ||
34986 | fi | |
34987 | done | |
34988 | ||
34989 | ||
34990 | if test "$ac_cv_func_localtime" = "yes"; then | |
34991 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
34992 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
34993 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
34994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34995 | else | |
34996 | ||
34997 | cat >conftest.$ac_ext <<_ACEOF | |
34998 | /* confdefs.h. */ | |
34999 | _ACEOF | |
35000 | cat confdefs.h >>conftest.$ac_ext | |
35001 | cat >>conftest.$ac_ext <<_ACEOF | |
35002 | /* end confdefs.h. */ | |
35003 | ||
35004 | #include <time.h> | |
35005 | ||
35006 | int | |
35007 | main () | |
35008 | { | |
35009 | ||
35010 | struct tm tm; | |
35011 | tm.tm_gmtoff++; | |
35012 | ||
35013 | ; | |
35014 | return 0; | |
35015 | } | |
35016 | _ACEOF | |
35017 | rm -f conftest.$ac_objext | |
35018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35019 | (eval $ac_compile) 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); } && | |
d1c38808 | 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_objext' | |
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 | ||
35039 | wx_cv_struct_tm_has_gmtoff=yes | |
35040 | ||
35041 | else | |
35042 | echo "$as_me: failed program was:" >&5 | |
35043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35044 | ||
35045 | wx_cv_struct_tm_has_gmtoff=no | |
35046 | ||
35047 | fi | |
ac1cb8d3 | 35048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35049 | |
35050 | fi | |
35051 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
35052 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
35053 | fi | |
35054 | ||
35055 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
35056 | cat >>confdefs.h <<\_ACEOF | |
35057 | #define WX_GMTOFF_IN_TM 1 | |
35058 | _ACEOF | |
35059 | ||
35060 | fi | |
35061 | ||
35062 | ||
35063 | ||
35064 | for ac_func in gettimeofday ftime | |
35065 | do | |
35066 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35067 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35068 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35069 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35071 | else | |
35072 | cat >conftest.$ac_ext <<_ACEOF | |
35073 | /* confdefs.h. */ | |
35074 | _ACEOF | |
35075 | cat confdefs.h >>conftest.$ac_ext | |
35076 | cat >>conftest.$ac_ext <<_ACEOF | |
35077 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35078 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35079 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35080 | #define $ac_func innocuous_$ac_func | |
35081 | ||
a848cd7e SC |
35082 | /* System header to define __stub macros and hopefully few prototypes, |
35083 | which can conflict with char $ac_func (); below. | |
35084 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35085 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35086 | |
a848cd7e SC |
35087 | #ifdef __STDC__ |
35088 | # include <limits.h> | |
35089 | #else | |
35090 | # include <assert.h> | |
35091 | #endif | |
ac1cb8d3 VS |
35092 | |
35093 | #undef $ac_func | |
35094 | ||
a848cd7e SC |
35095 | /* Override any gcc2 internal prototype to avoid an error. */ |
35096 | #ifdef __cplusplus | |
35097 | extern "C" | |
35098 | { | |
35099 | #endif | |
35100 | /* We use char because int might match the return type of a gcc2 | |
35101 | builtin and then its argument prototype would still apply. */ | |
35102 | char $ac_func (); | |
35103 | /* The GNU C library defines this for functions which it implements | |
35104 | to always fail with ENOSYS. Some functions are actually named | |
35105 | something starting with __ and the normal name is an alias. */ | |
35106 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35107 | choke me | |
35108 | #else | |
35109 | char (*f) () = $ac_func; | |
35110 | #endif | |
35111 | #ifdef __cplusplus | |
35112 | } | |
35113 | #endif | |
35114 | ||
35115 | int | |
35116 | main () | |
35117 | { | |
35118 | return f != $ac_func; | |
35119 | ; | |
35120 | return 0; | |
35121 | } | |
35122 | _ACEOF | |
35123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35125 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35126 | ac_status=$? |
ac1cb8d3 VS |
35127 | grep -v '^ *+' conftest.er1 >conftest.err |
35128 | rm -f conftest.er1 | |
35129 | cat conftest.err >&5 | |
a848cd7e SC |
35130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35131 | (exit $ac_status); } && | |
d1c38808 | 35132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35134 | (eval $ac_try) 2>&5 | |
35135 | ac_status=$? | |
35136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35137 | (exit $ac_status); }; } && | |
35138 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35140 | (eval $ac_try) 2>&5 | |
35141 | ac_status=$? | |
35142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35143 | (exit $ac_status); }; }; then | |
35144 | eval "$as_ac_var=yes" | |
35145 | else | |
35146 | echo "$as_me: failed program was:" >&5 | |
35147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35148 | ||
35149 | eval "$as_ac_var=no" | |
35150 | fi | |
ac1cb8d3 VS |
35151 | rm -f conftest.err conftest.$ac_objext \ |
35152 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35153 | fi |
35154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35155 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35156 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35157 | cat >>confdefs.h <<_ACEOF | |
35158 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35159 | _ACEOF | |
35160 | break | |
35161 | fi | |
35162 | done | |
35163 | ||
35164 | ||
35165 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
35166 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
35167 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
35168 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
35169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35170 | else | |
35171 | ||
35172 | ||
35173 | ||
35174 | ac_ext=cc | |
35175 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35176 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35177 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35178 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35179 | ||
35180 | ||
35181 | cat >conftest.$ac_ext <<_ACEOF | |
35182 | /* confdefs.h. */ | |
35183 | _ACEOF | |
35184 | cat confdefs.h >>conftest.$ac_ext | |
35185 | cat >>conftest.$ac_ext <<_ACEOF | |
35186 | /* end confdefs.h. */ | |
35187 | ||
35188 | #include <sys/time.h> | |
35189 | #include <unistd.h> | |
35190 | ||
35191 | int | |
35192 | main () | |
35193 | { | |
35194 | ||
35195 | struct timeval tv; | |
35196 | gettimeofday(&tv, NULL); | |
35197 | ||
35198 | ; | |
35199 | return 0; | |
35200 | } | |
35201 | _ACEOF | |
35202 | rm -f conftest.$ac_objext | |
35203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35204 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35205 | ac_status=$? |
ac1cb8d3 VS |
35206 | grep -v '^ *+' conftest.er1 >conftest.err |
35207 | rm -f conftest.er1 | |
35208 | cat conftest.err >&5 | |
a848cd7e SC |
35209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35210 | (exit $ac_status); } && | |
d1c38808 | 35211 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35213 | (eval $ac_try) 2>&5 | |
35214 | ac_status=$? | |
35215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35216 | (exit $ac_status); }; } && | |
35217 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35219 | (eval $ac_try) 2>&5 | |
35220 | ac_status=$? | |
35221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35222 | (exit $ac_status); }; }; then | |
35223 | wx_cv_func_gettimeofday_has_2_args=yes | |
35224 | else | |
35225 | echo "$as_me: failed program was:" >&5 | |
35226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35227 | ||
35228 | cat >conftest.$ac_ext <<_ACEOF | |
35229 | /* confdefs.h. */ | |
35230 | _ACEOF | |
35231 | cat confdefs.h >>conftest.$ac_ext | |
35232 | cat >>conftest.$ac_ext <<_ACEOF | |
35233 | /* end confdefs.h. */ | |
35234 | ||
35235 | #include <sys/time.h> | |
35236 | #include <unistd.h> | |
35237 | ||
35238 | int | |
35239 | main () | |
35240 | { | |
35241 | ||
35242 | struct timeval tv; | |
35243 | gettimeofday(&tv); | |
35244 | ||
35245 | ; | |
35246 | return 0; | |
35247 | } | |
35248 | _ACEOF | |
35249 | rm -f conftest.$ac_objext | |
35250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35251 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35252 | ac_status=$? |
ac1cb8d3 VS |
35253 | grep -v '^ *+' conftest.er1 >conftest.err |
35254 | rm -f conftest.er1 | |
35255 | cat conftest.err >&5 | |
a848cd7e SC |
35256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35257 | (exit $ac_status); } && | |
d1c38808 | 35258 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35260 | (eval $ac_try) 2>&5 | |
35261 | ac_status=$? | |
35262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35263 | (exit $ac_status); }; } && | |
35264 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35266 | (eval $ac_try) 2>&5 | |
35267 | ac_status=$? | |
35268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35269 | (exit $ac_status); }; }; then | |
35270 | wx_cv_func_gettimeofday_has_2_args=no | |
35271 | else | |
35272 | echo "$as_me: failed program was:" >&5 | |
35273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35274 | ||
35275 | ||
35276 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
35277 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
35278 | wx_cv_func_gettimeofday_has_2_args=unknown | |
35279 | ||
35280 | ||
35281 | fi | |
ac1cb8d3 | 35282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35283 | |
35284 | fi | |
ac1cb8d3 | 35285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35286 | ac_ext=c |
35287 | ac_cpp='$CPP $CPPFLAGS' | |
35288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35291 | ||
35292 | ||
35293 | fi | |
35294 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
35295 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
35296 | ||
35297 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
35298 | cat >>confdefs.h <<\_ACEOF | |
35299 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
35300 | _ACEOF | |
35301 | ||
35302 | fi | |
35303 | fi | |
35304 | ||
35305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
35306 | fi | |
35307 | ||
35308 | ||
35309 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35310 | if test "$wxUSE_MGL" = "1"; then | |
35311 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
35312 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
35313 | wxUSE_SOCKETS="no" | |
35314 | fi | |
35315 | fi | |
35316 | ||
35317 | if test "$wxUSE_SOCKETS" = "yes"; then | |
35318 | if test "$TOOLKIT" != "MSW"; then | |
35319 | echo "$as_me:$LINENO: checking for socket" >&5 | |
35320 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
35321 | if test "${ac_cv_func_socket+set}" = set; then | |
35322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35323 | else | |
35324 | cat >conftest.$ac_ext <<_ACEOF | |
35325 | /* confdefs.h. */ | |
35326 | _ACEOF | |
35327 | cat confdefs.h >>conftest.$ac_ext | |
35328 | cat >>conftest.$ac_ext <<_ACEOF | |
35329 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35330 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
35331 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35332 | #define socket innocuous_socket | |
35333 | ||
a848cd7e SC |
35334 | /* System header to define __stub macros and hopefully few prototypes, |
35335 | which can conflict with char socket (); below. | |
35336 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35337 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35338 | |
a848cd7e SC |
35339 | #ifdef __STDC__ |
35340 | # include <limits.h> | |
35341 | #else | |
35342 | # include <assert.h> | |
35343 | #endif | |
ac1cb8d3 VS |
35344 | |
35345 | #undef socket | |
35346 | ||
a848cd7e SC |
35347 | /* Override any gcc2 internal prototype to avoid an error. */ |
35348 | #ifdef __cplusplus | |
35349 | extern "C" | |
35350 | { | |
35351 | #endif | |
35352 | /* We use char because int might match the return type of a gcc2 | |
35353 | builtin and then its argument prototype would still apply. */ | |
35354 | char socket (); | |
35355 | /* The GNU C library defines this for functions which it implements | |
35356 | to always fail with ENOSYS. Some functions are actually named | |
35357 | something starting with __ and the normal name is an alias. */ | |
35358 | #if defined (__stub_socket) || defined (__stub___socket) | |
35359 | choke me | |
35360 | #else | |
35361 | char (*f) () = socket; | |
35362 | #endif | |
35363 | #ifdef __cplusplus | |
35364 | } | |
35365 | #endif | |
35366 | ||
35367 | int | |
35368 | main () | |
35369 | { | |
35370 | return f != socket; | |
35371 | ; | |
35372 | return 0; | |
35373 | } | |
35374 | _ACEOF | |
35375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35377 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35378 | ac_status=$? |
ac1cb8d3 VS |
35379 | grep -v '^ *+' conftest.er1 >conftest.err |
35380 | rm -f conftest.er1 | |
35381 | cat conftest.err >&5 | |
a848cd7e SC |
35382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35383 | (exit $ac_status); } && | |
d1c38808 | 35384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35386 | (eval $ac_try) 2>&5 | |
35387 | ac_status=$? | |
35388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35389 | (exit $ac_status); }; } && | |
35390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35392 | (eval $ac_try) 2>&5 | |
35393 | ac_status=$? | |
35394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35395 | (exit $ac_status); }; }; then | |
35396 | ac_cv_func_socket=yes | |
35397 | else | |
35398 | echo "$as_me: failed program was:" >&5 | |
35399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35400 | ||
35401 | ac_cv_func_socket=no | |
35402 | fi | |
ac1cb8d3 VS |
35403 | rm -f conftest.err conftest.$ac_objext \ |
35404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35405 | fi |
35406 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
35407 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
35408 | if test $ac_cv_func_socket = yes; then | |
35409 | : | |
35410 | else | |
35411 | ||
35412 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
35413 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
35414 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
35415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35416 | else | |
35417 | ac_check_lib_save_LIBS=$LIBS | |
35418 | LIBS="-lsocket $LIBS" | |
35419 | cat >conftest.$ac_ext <<_ACEOF | |
35420 | /* confdefs.h. */ | |
35421 | _ACEOF | |
35422 | cat confdefs.h >>conftest.$ac_ext | |
35423 | cat >>conftest.$ac_ext <<_ACEOF | |
35424 | /* end confdefs.h. */ | |
35425 | ||
35426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35427 | #ifdef __cplusplus | |
35428 | extern "C" | |
35429 | #endif | |
35430 | /* We use char because int might match the return type of a gcc2 | |
35431 | builtin and then its argument prototype would still apply. */ | |
35432 | char socket (); | |
35433 | int | |
35434 | main () | |
35435 | { | |
35436 | socket (); | |
35437 | ; | |
35438 | return 0; | |
35439 | } | |
35440 | _ACEOF | |
35441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35443 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35444 | ac_status=$? |
ac1cb8d3 VS |
35445 | grep -v '^ *+' conftest.er1 >conftest.err |
35446 | rm -f conftest.er1 | |
35447 | cat conftest.err >&5 | |
a848cd7e SC |
35448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35449 | (exit $ac_status); } && | |
d1c38808 | 35450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35452 | (eval $ac_try) 2>&5 | |
35453 | ac_status=$? | |
35454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35455 | (exit $ac_status); }; } && | |
35456 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35458 | (eval $ac_try) 2>&5 | |
35459 | ac_status=$? | |
35460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35461 | (exit $ac_status); }; }; then | |
35462 | ac_cv_lib_socket_socket=yes | |
35463 | else | |
35464 | echo "$as_me: failed program was:" >&5 | |
35465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35466 | ||
35467 | ac_cv_lib_socket_socket=no | |
35468 | fi | |
ac1cb8d3 VS |
35469 | rm -f conftest.err conftest.$ac_objext \ |
35470 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35471 | LIBS=$ac_check_lib_save_LIBS |
35472 | fi | |
35473 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
35474 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
35475 | if test $ac_cv_lib_socket_socket = yes; then | |
35476 | if test "$INET_LINK" != " -lsocket"; then | |
35477 | INET_LINK="$INET_LINK -lsocket" | |
35478 | fi | |
35479 | else | |
35480 | ||
35481 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
35482 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
35483 | wxUSE_SOCKETS=no | |
35484 | ||
35485 | ||
35486 | fi | |
35487 | ||
35488 | ||
35489 | ||
35490 | fi | |
35491 | ||
35492 | fi | |
35493 | fi | |
35494 | ||
35495 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35496 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
35497 | ac_ext=cc |
35498 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35502 | ||
35503 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
35504 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
35505 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
35506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35507 | else | |
35508 | ||
35509 | cat >conftest.$ac_ext <<_ACEOF | |
35510 | /* confdefs.h. */ | |
35511 | _ACEOF | |
35512 | cat confdefs.h >>conftest.$ac_ext | |
35513 | cat >>conftest.$ac_ext <<_ACEOF | |
35514 | /* end confdefs.h. */ | |
35515 | ||
35516 | #include <sys/types.h> | |
35517 | #include <sys/socket.h> | |
35518 | ||
35519 | int | |
35520 | main () | |
35521 | { | |
35522 | ||
35523 | socklen_t len; | |
35524 | getsockname(0, 0, &len); | |
35525 | ||
35526 | ; | |
35527 | return 0; | |
35528 | } | |
35529 | _ACEOF | |
35530 | rm -f conftest.$ac_objext | |
35531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35532 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35533 | ac_status=$? |
ac1cb8d3 VS |
35534 | grep -v '^ *+' conftest.er1 >conftest.err |
35535 | rm -f conftest.er1 | |
35536 | cat conftest.err >&5 | |
a848cd7e SC |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35538 | (exit $ac_status); } && | |
d1c38808 | 35539 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
35545 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35547 | (eval $ac_try) 2>&5 | |
35548 | ac_status=$? | |
35549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35550 | (exit $ac_status); }; }; then | |
35551 | wx_cv_type_getsockname3=socklen_t | |
35552 | else | |
35553 | echo "$as_me: failed program was:" >&5 | |
35554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35555 | ||
35556 | ||
35557 | CFLAGS_OLD="$CFLAGS" | |
35558 | if test "$GCC" = yes ; then | |
35559 | CFLAGS="$CFLAGS -Werror" | |
35560 | fi | |
35561 | ||
35562 | cat >conftest.$ac_ext <<_ACEOF | |
35563 | /* confdefs.h. */ | |
35564 | _ACEOF | |
35565 | cat confdefs.h >>conftest.$ac_ext | |
35566 | cat >>conftest.$ac_ext <<_ACEOF | |
35567 | /* end confdefs.h. */ | |
35568 | ||
35569 | #include <sys/types.h> | |
35570 | #include <sys/socket.h> | |
35571 | ||
35572 | int | |
35573 | main () | |
35574 | { | |
35575 | ||
35576 | size_t len; | |
35577 | getsockname(0, 0, &len); | |
35578 | ||
35579 | ; | |
35580 | return 0; | |
35581 | } | |
35582 | _ACEOF | |
35583 | rm -f conftest.$ac_objext | |
35584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35586 | ac_status=$? |
ac1cb8d3 VS |
35587 | grep -v '^ *+' conftest.er1 >conftest.err |
35588 | rm -f conftest.er1 | |
35589 | cat conftest.err >&5 | |
a848cd7e SC |
35590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35591 | (exit $ac_status); } && | |
d1c38808 | 35592 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35594 | (eval $ac_try) 2>&5 | |
35595 | ac_status=$? | |
35596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35597 | (exit $ac_status); }; } && | |
35598 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35600 | (eval $ac_try) 2>&5 | |
35601 | ac_status=$? | |
35602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35603 | (exit $ac_status); }; }; then | |
35604 | wx_cv_type_getsockname3=size_t | |
35605 | else | |
35606 | echo "$as_me: failed program was:" >&5 | |
35607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35608 | ||
35609 | cat >conftest.$ac_ext <<_ACEOF | |
35610 | /* confdefs.h. */ | |
35611 | _ACEOF | |
35612 | cat confdefs.h >>conftest.$ac_ext | |
35613 | cat >>conftest.$ac_ext <<_ACEOF | |
35614 | /* end confdefs.h. */ | |
35615 | ||
35616 | #include <sys/types.h> | |
35617 | #include <sys/socket.h> | |
35618 | ||
35619 | int | |
35620 | main () | |
35621 | { | |
35622 | ||
35623 | int len; | |
35624 | getsockname(0, 0, &len); | |
35625 | ||
35626 | ; | |
35627 | return 0; | |
35628 | } | |
35629 | _ACEOF | |
35630 | rm -f conftest.$ac_objext | |
35631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35632 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35633 | ac_status=$? |
ac1cb8d3 VS |
35634 | grep -v '^ *+' conftest.er1 >conftest.err |
35635 | rm -f conftest.er1 | |
35636 | cat conftest.err >&5 | |
a848cd7e SC |
35637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35638 | (exit $ac_status); } && | |
d1c38808 | 35639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35641 | (eval $ac_try) 2>&5 | |
35642 | ac_status=$? | |
35643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35644 | (exit $ac_status); }; } && | |
35645 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35647 | (eval $ac_try) 2>&5 | |
35648 | ac_status=$? | |
35649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35650 | (exit $ac_status); }; }; then | |
35651 | wx_cv_type_getsockname3=int | |
35652 | else | |
35653 | echo "$as_me: failed program was:" >&5 | |
35654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35655 | ||
35656 | wx_cv_type_getsockname3=unknown | |
35657 | ||
35658 | fi | |
ac1cb8d3 | 35659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35660 | |
35661 | fi | |
ac1cb8d3 | 35662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35663 | |
35664 | CFLAGS="$CFLAGS_OLD" | |
35665 | ||
35666 | ||
35667 | fi | |
ac1cb8d3 | 35668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35669 | |
35670 | fi | |
35671 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
35672 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
35673 | ||
35674 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35675 | wxUSE_SOCKETS=no | |
35676 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
35677 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
35678 | else | |
35679 | cat >>confdefs.h <<_ACEOF | |
35680 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
35681 | _ACEOF | |
35682 | ||
35683 | fi | |
4d4ff94c VZ |
35684 | ac_ext=c |
35685 | ac_cpp='$CPP $CPPFLAGS' | |
35686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35689 | ||
a848cd7e SC |
35690 | fi |
35691 | fi | |
35692 | ||
35693 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35694 | cat >>confdefs.h <<\_ACEOF | |
35695 | #define wxUSE_SOCKETS 1 | |
35696 | _ACEOF | |
35697 | ||
35698 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35699 | fi | |
35700 | ||
35701 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35702 | if test "$wxUSE_SOCKETS" != "yes"; then | |
35703 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
35704 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
35705 | wxUSE_PROTOCOL=no | |
35706 | fi | |
35707 | fi | |
35708 | ||
35709 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35710 | cat >>confdefs.h <<\_ACEOF | |
35711 | #define wxUSE_PROTOCOL 1 | |
35712 | _ACEOF | |
35713 | ||
35714 | ||
35715 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
35716 | cat >>confdefs.h <<\_ACEOF | |
35717 | #define wxUSE_PROTOCOL_HTTP 1 | |
35718 | _ACEOF | |
35719 | ||
35720 | fi | |
35721 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
35722 | cat >>confdefs.h <<\_ACEOF | |
35723 | #define wxUSE_PROTOCOL_FTP 1 | |
35724 | _ACEOF | |
35725 | ||
35726 | fi | |
35727 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
35728 | cat >>confdefs.h <<\_ACEOF | |
35729 | #define wxUSE_PROTOCOL_FILE 1 | |
35730 | _ACEOF | |
35731 | ||
35732 | fi | |
35733 | else | |
35734 | if test "$wxUSE_FS_INET" = "yes"; then | |
35735 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
35736 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
35737 | wxUSE_FS_INET="no" | |
35738 | fi | |
35739 | fi | |
35740 | ||
35741 | if test "$wxUSE_URL" = "yes"; then | |
35742 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
35743 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
35744 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
35745 | wxUSE_URL=no | |
35746 | fi | |
35747 | if test "$wxUSE_URL" = "yes"; then | |
35748 | cat >>confdefs.h <<\_ACEOF | |
35749 | #define wxUSE_URL 1 | |
35750 | _ACEOF | |
35751 | ||
35752 | fi | |
35753 | fi | |
35754 | ||
35755 | if test "$wxUSE_FS_INET" = "yes"; then | |
35756 | cat >>confdefs.h <<\_ACEOF | |
35757 | #define wxUSE_FS_INET 1 | |
35758 | _ACEOF | |
35759 | ||
35760 | fi | |
35761 | ||
35762 | ||
35763 | if test "$wxUSE_GUI" = "yes"; then | |
35764 | ||
35765 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
35766 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
35767 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
35768 | wxUSE_JOYSTICK=no | |
35769 | fi | |
35770 | ||
35771 | if test "$TOOLKIT" != "MSW"; then | |
35772 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35773 | ||
35774 | for ac_header in linux/joystick.h | |
35775 | do | |
35776 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
35777 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35778 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35782 | fi | |
35783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35785 | else | |
35786 | # Is the header compilable? | |
35787 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
35788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
35789 | cat >conftest.$ac_ext <<_ACEOF | |
35790 | /* confdefs.h. */ | |
35791 | _ACEOF | |
35792 | cat confdefs.h >>conftest.$ac_ext | |
35793 | cat >>conftest.$ac_ext <<_ACEOF | |
35794 | /* end confdefs.h. */ | |
35795 | $ac_includes_default | |
35796 | #include <$ac_header> | |
35797 | _ACEOF | |
35798 | rm -f conftest.$ac_objext | |
35799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35801 | ac_status=$? |
ac1cb8d3 VS |
35802 | grep -v '^ *+' conftest.er1 >conftest.err |
35803 | rm -f conftest.er1 | |
35804 | cat conftest.err >&5 | |
a848cd7e SC |
35805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35806 | (exit $ac_status); } && | |
d1c38808 | 35807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35809 | (eval $ac_try) 2>&5 | |
35810 | ac_status=$? | |
35811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35812 | (exit $ac_status); }; } && | |
35813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35815 | (eval $ac_try) 2>&5 | |
35816 | ac_status=$? | |
35817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35818 | (exit $ac_status); }; }; then | |
35819 | ac_header_compiler=yes | |
35820 | else | |
35821 | echo "$as_me: failed program was:" >&5 | |
35822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35823 | ||
35824 | ac_header_compiler=no | |
35825 | fi | |
ac1cb8d3 | 35826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35827 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
35828 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
35829 | ||
35830 | # Is the header present? | |
35831 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
35832 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
35833 | cat >conftest.$ac_ext <<_ACEOF | |
35834 | /* confdefs.h. */ | |
35835 | _ACEOF | |
35836 | cat confdefs.h >>conftest.$ac_ext | |
35837 | cat >>conftest.$ac_ext <<_ACEOF | |
35838 | /* end confdefs.h. */ | |
35839 | #include <$ac_header> | |
35840 | _ACEOF | |
35841 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
35842 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
35843 | ac_status=$? | |
35844 | grep -v '^ *+' conftest.er1 >conftest.err | |
35845 | rm -f conftest.er1 | |
35846 | cat conftest.err >&5 | |
35847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35848 | (exit $ac_status); } >/dev/null; then | |
35849 | if test -s conftest.err; then | |
35850 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 35851 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
35852 | else |
35853 | ac_cpp_err= | |
35854 | fi | |
35855 | else | |
35856 | ac_cpp_err=yes | |
35857 | fi | |
35858 | if test -z "$ac_cpp_err"; then | |
35859 | ac_header_preproc=yes | |
35860 | else | |
35861 | echo "$as_me: failed program was:" >&5 | |
35862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35863 | ||
35864 | ac_header_preproc=no | |
35865 | fi | |
35866 | rm -f conftest.err conftest.$ac_ext | |
35867 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
35868 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
35869 | ||
35870 | # So? What about this header? | |
ac1cb8d3 VS |
35871 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
35872 | yes:no: ) | |
a848cd7e SC |
35873 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
35874 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
35875 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
35876 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
35877 | ac_header_preproc=yes | |
a848cd7e | 35878 | ;; |
ac1cb8d3 | 35879 | no:yes:* ) |
a848cd7e SC |
35880 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
35881 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
35882 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
35883 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
35884 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
35885 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
35886 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
35887 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
35888 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
35889 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
35890 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
35891 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
35892 | ( |
35893 | cat <<\_ASBOX | |
ac1cb8d3 VS |
35894 | ## ----------------------------------------- ## |
35895 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
35896 | ## ----------------------------------------- ## | |
a848cd7e SC |
35897 | _ASBOX |
35898 | ) | | |
35899 | sed "s/^/$as_me: WARNING: /" >&2 | |
35900 | ;; | |
35901 | esac | |
35902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
35903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
35904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
35905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35906 | else | |
ac1cb8d3 | 35907 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
35908 | fi |
35909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
35910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
35911 | ||
35912 | fi | |
35913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
35914 | cat >>confdefs.h <<_ACEOF | |
35915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
35916 | _ACEOF | |
35917 | ||
35918 | fi | |
35919 | ||
35920 | done | |
35921 | ||
35922 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
35923 | wxUSE_JOYSTICK=no | |
35924 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
35925 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
35926 | fi | |
35927 | fi | |
35928 | fi | |
35929 | ||
35930 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
35931 | cat >>confdefs.h <<\_ACEOF | |
35932 | #define wxUSE_JOYSTICK 1 | |
35933 | _ACEOF | |
35934 | ||
35935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
35936 | fi | |
35937 | fi | |
35938 | ||
35939 | ||
35940 | ||
35941 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
35942 | cat >>confdefs.h <<\_ACEOF | |
35943 | #define wxUSE_FONTMAP 1 | |
35944 | _ACEOF | |
35945 | ||
35946 | fi | |
35947 | ||
35948 | if test "$wxUSE_UNICODE" = "yes" ; then | |
35949 | cat >>confdefs.h <<\_ACEOF | |
35950 | #define wxUSE_UNICODE 1 | |
35951 | _ACEOF | |
35952 | ||
35953 | ||
35954 | if test "$USE_WIN32" != 1; then | |
35955 | wxUSE_UNICODE_MSLU=no | |
35956 | fi | |
35957 | ||
35958 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
35959 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
35960 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
35961 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
35962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35963 | else | |
35964 | ac_check_lib_save_LIBS=$LIBS | |
35965 | LIBS="-lunicows $LIBS" | |
35966 | cat >conftest.$ac_ext <<_ACEOF | |
35967 | /* confdefs.h. */ | |
35968 | _ACEOF | |
35969 | cat confdefs.h >>conftest.$ac_ext | |
35970 | cat >>conftest.$ac_ext <<_ACEOF | |
35971 | /* end confdefs.h. */ | |
35972 | ||
35973 | ||
35974 | int | |
35975 | main () | |
35976 | { | |
35977 | main (); | |
35978 | ; | |
35979 | return 0; | |
35980 | } | |
35981 | _ACEOF | |
35982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35984 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35985 | ac_status=$? |
ac1cb8d3 VS |
35986 | grep -v '^ *+' conftest.er1 >conftest.err |
35987 | rm -f conftest.er1 | |
35988 | cat conftest.err >&5 | |
a848cd7e SC |
35989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35990 | (exit $ac_status); } && | |
d1c38808 | 35991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35993 | (eval $ac_try) 2>&5 | |
35994 | ac_status=$? | |
35995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35996 | (exit $ac_status); }; } && | |
35997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35999 | (eval $ac_try) 2>&5 | |
36000 | ac_status=$? | |
36001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36002 | (exit $ac_status); }; }; then | |
36003 | ac_cv_lib_unicows_main=yes | |
36004 | else | |
36005 | echo "$as_me: failed program was:" >&5 | |
36006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36007 | ||
36008 | ac_cv_lib_unicows_main=no | |
36009 | fi | |
ac1cb8d3 VS |
36010 | rm -f conftest.err conftest.$ac_objext \ |
36011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36012 | LIBS=$ac_check_lib_save_LIBS |
36013 | fi | |
36014 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
36015 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
36016 | if test $ac_cv_lib_unicows_main = yes; then | |
36017 | ||
36018 | cat >>confdefs.h <<\_ACEOF | |
36019 | #define wxUSE_UNICODE_MSLU 1 | |
36020 | _ACEOF | |
36021 | ||
36022 | ||
36023 | else | |
36024 | ||
36025 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36026 | Applications will only run on Windows NT/2000/XP!" >&5 | |
36027 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
36028 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
36029 | wxUSE_UNICODE_MSLU=no | |
36030 | ||
36031 | fi | |
36032 | ||
36033 | fi | |
36034 | fi | |
36035 | ||
36036 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
36037 | cat >>confdefs.h <<\_ACEOF | |
36038 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
36039 | _ACEOF | |
36040 | ||
36041 | fi | |
36042 | ||
36043 | ||
36044 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
36045 | cat >>confdefs.h <<\_ACEOF | |
36046 | #define wxUSE_POSTSCRIPT 1 | |
36047 | _ACEOF | |
36048 | ||
36049 | fi | |
36050 | ||
36051 | cat >>confdefs.h <<\_ACEOF | |
36052 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
36053 | _ACEOF | |
36054 | ||
36055 | ||
36056 | cat >>confdefs.h <<\_ACEOF | |
36057 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
36058 | _ACEOF | |
36059 | ||
36060 | ||
36061 | ||
36062 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
36063 | cat >>confdefs.h <<\_ACEOF | |
36064 | #define wxUSE_CONSTRAINTS 1 | |
36065 | _ACEOF | |
36066 | ||
36067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
36068 | fi | |
36069 | ||
8a7b1113 VZ |
36070 | if test "$wxUSE_MDI" = "yes"; then |
36071 | cat >>confdefs.h <<\_ACEOF | |
36072 | #define wxUSE_MDI 1 | |
36073 | _ACEOF | |
36074 | ||
36075 | ||
36076 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36077 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36078 | #define wxUSE_MDI_ARCHITECTURE 1 |
36079 | _ACEOF | |
36080 | ||
8a7b1113 VZ |
36081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
36082 | fi | |
a848cd7e SC |
36083 | fi |
36084 | ||
36085 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
36086 | cat >>confdefs.h <<\_ACEOF | |
36087 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
36088 | _ACEOF | |
36089 | ||
36090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
36091 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
36092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
36093 | fi | |
36094 | fi | |
36095 | ||
36096 | if test "$wxUSE_HELP" = "yes"; then | |
36097 | cat >>confdefs.h <<\_ACEOF | |
36098 | #define wxUSE_HELP 1 | |
36099 | _ACEOF | |
36100 | ||
36101 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
36102 | ||
36103 | if test "$wxUSE_MSW" = 1; then | |
36104 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
36105 | cat >>confdefs.h <<\_ACEOF | |
36106 | #define wxUSE_MS_HTML_HELP 1 | |
36107 | _ACEOF | |
36108 | ||
36109 | fi | |
36110 | fi | |
36111 | ||
36112 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
36113 | if test "$wxUSE_HTML" = "yes"; then | |
36114 | cat >>confdefs.h <<\_ACEOF | |
36115 | #define wxUSE_WXHTML_HELP 1 | |
36116 | _ACEOF | |
36117 | ||
36118 | else | |
36119 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
36120 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
36121 | wxUSE_WXHTML_HELP=no | |
36122 | fi | |
36123 | fi | |
36124 | fi | |
36125 | ||
36126 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
36127 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
36128 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
36129 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
36130 | else | |
36131 | cat >>confdefs.h <<\_ACEOF | |
36132 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
36133 | _ACEOF | |
36134 | ||
36135 | fi | |
36136 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
36137 | fi | |
36138 | ||
36139 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
36140 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
36141 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
36142 | { (exit 1); exit 1; }; } | |
36143 | fi | |
36144 | ||
36145 | ||
36146 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
36147 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
36148 | -o "$wxUSE_OLE" = "yes" \ | |
36149 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
36150 | ||
36151 | for ac_header in ole2.h | |
36152 | do | |
36153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36154 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36155 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36156 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36159 | fi | |
36160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36161 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36162 | else | |
36163 | # Is the header compilable? | |
36164 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36165 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36166 | cat >conftest.$ac_ext <<_ACEOF | |
36167 | /* confdefs.h. */ | |
36168 | _ACEOF | |
36169 | cat confdefs.h >>conftest.$ac_ext | |
36170 | cat >>conftest.$ac_ext <<_ACEOF | |
36171 | /* end confdefs.h. */ | |
36172 | $ac_includes_default | |
36173 | #include <$ac_header> | |
36174 | _ACEOF | |
36175 | rm -f conftest.$ac_objext | |
36176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36177 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36178 | ac_status=$? |
ac1cb8d3 VS |
36179 | grep -v '^ *+' conftest.er1 >conftest.err |
36180 | rm -f conftest.er1 | |
36181 | cat conftest.err >&5 | |
a848cd7e SC |
36182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36183 | (exit $ac_status); } && | |
d1c38808 | 36184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36186 | (eval $ac_try) 2>&5 | |
36187 | ac_status=$? | |
36188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36189 | (exit $ac_status); }; } && | |
36190 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36192 | (eval $ac_try) 2>&5 | |
36193 | ac_status=$? | |
36194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36195 | (exit $ac_status); }; }; then | |
36196 | ac_header_compiler=yes | |
36197 | else | |
36198 | echo "$as_me: failed program was:" >&5 | |
36199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36200 | ||
36201 | ac_header_compiler=no | |
36202 | fi | |
ac1cb8d3 | 36203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36204 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36205 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36206 | ||
36207 | # Is the header present? | |
36208 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36209 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36210 | cat >conftest.$ac_ext <<_ACEOF | |
36211 | /* confdefs.h. */ | |
36212 | _ACEOF | |
36213 | cat confdefs.h >>conftest.$ac_ext | |
36214 | cat >>conftest.$ac_ext <<_ACEOF | |
36215 | /* end confdefs.h. */ | |
36216 | #include <$ac_header> | |
36217 | _ACEOF | |
36218 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36219 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36220 | ac_status=$? | |
36221 | grep -v '^ *+' conftest.er1 >conftest.err | |
36222 | rm -f conftest.er1 | |
36223 | cat conftest.err >&5 | |
36224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36225 | (exit $ac_status); } >/dev/null; then | |
36226 | if test -s conftest.err; then | |
36227 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36228 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36229 | else |
36230 | ac_cpp_err= | |
36231 | fi | |
36232 | else | |
36233 | ac_cpp_err=yes | |
36234 | fi | |
36235 | if test -z "$ac_cpp_err"; then | |
36236 | ac_header_preproc=yes | |
36237 | else | |
36238 | echo "$as_me: failed program was:" >&5 | |
36239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36240 | ||
36241 | ac_header_preproc=no | |
36242 | fi | |
36243 | rm -f conftest.err conftest.$ac_ext | |
36244 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36245 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36246 | ||
36247 | # So? What about this header? | |
ac1cb8d3 VS |
36248 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36249 | yes:no: ) | |
a848cd7e SC |
36250 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36251 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36252 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36253 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36254 | ac_header_preproc=yes | |
a848cd7e | 36255 | ;; |
ac1cb8d3 | 36256 | no:yes:* ) |
a848cd7e SC |
36257 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36258 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36259 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36260 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36261 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36262 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36263 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36264 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36265 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36266 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36267 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36268 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36269 | ( |
36270 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36271 | ## ----------------------------------------- ## |
36272 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36273 | ## ----------------------------------------- ## | |
a848cd7e SC |
36274 | _ASBOX |
36275 | ) | | |
36276 | sed "s/^/$as_me: WARNING: /" >&2 | |
36277 | ;; | |
36278 | esac | |
36279 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36280 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36281 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36283 | else | |
ac1cb8d3 | 36284 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36285 | fi |
36286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36287 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36288 | ||
36289 | fi | |
36290 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36291 | cat >>confdefs.h <<_ACEOF | |
36292 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36293 | _ACEOF | |
36294 | ||
36295 | fi | |
36296 | ||
36297 | done | |
36298 | ||
36299 | ||
36300 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
36301 | if test "$GCC" = yes ; then | |
36302 | ||
36303 | ||
36304 | ac_ext=cc | |
36305 | ac_cpp='$CXXCPP $CPPFLAGS' | |
36306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
36309 | ||
36310 | ||
36311 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
36312 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
36313 | cat >conftest.$ac_ext <<_ACEOF | |
36314 | /* confdefs.h. */ | |
36315 | _ACEOF | |
36316 | cat confdefs.h >>conftest.$ac_ext | |
36317 | cat >>conftest.$ac_ext <<_ACEOF | |
36318 | /* end confdefs.h. */ | |
36319 | #include <windows.h> | |
36320 | #include <ole2.h> | |
36321 | int | |
36322 | main () | |
36323 | { | |
36324 | ||
36325 | ; | |
36326 | return 0; | |
36327 | } | |
36328 | _ACEOF | |
36329 | rm -f conftest.$ac_objext | |
36330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36331 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36332 | ac_status=$? |
ac1cb8d3 VS |
36333 | grep -v '^ *+' conftest.er1 >conftest.err |
36334 | rm -f conftest.er1 | |
36335 | cat conftest.err >&5 | |
a848cd7e SC |
36336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36337 | (exit $ac_status); } && | |
d1c38808 | 36338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36340 | (eval $ac_try) 2>&5 | |
36341 | ac_status=$? | |
36342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36343 | (exit $ac_status); }; } && | |
36344 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36346 | (eval $ac_try) 2>&5 | |
36347 | ac_status=$? | |
36348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36349 | (exit $ac_status); }; }; then | |
36350 | echo "$as_me:$LINENO: result: no" >&5 | |
36351 | echo "${ECHO_T}no" >&6 | |
36352 | else | |
36353 | echo "$as_me: failed program was:" >&5 | |
36354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36355 | ||
36356 | echo "$as_me:$LINENO: result: yes" >&5 | |
36357 | echo "${ECHO_T}yes" >&6 | |
36358 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
36359 | fi | |
ac1cb8d3 | 36360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36361 | ac_ext=c |
36362 | ac_cpp='$CPP $CPPFLAGS' | |
36363 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
36364 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
36365 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
36366 | ||
a848cd7e SC |
36367 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
36368 | if test "$wxUSE_OLE" = "yes" ; then | |
36369 | cat >>confdefs.h <<\_ACEOF | |
36370 | #define wxUSE_OLE 1 | |
36371 | _ACEOF | |
36372 | ||
36373 | fi | |
36374 | fi | |
36375 | ||
36376 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
36377 | cat >>confdefs.h <<\_ACEOF | |
36378 | #define wxUSE_DATAOBJ 1 | |
36379 | _ACEOF | |
36380 | ||
36381 | fi | |
36382 | else | |
36383 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
36384 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
36385 | ||
36386 | wxUSE_CLIPBOARD=no | |
36387 | wxUSE_DRAG_AND_DROP=no | |
36388 | wxUSE_DATAOBJ=no | |
36389 | wxUSE_OLE=no | |
36390 | fi | |
36391 | ||
36392 | if test "$wxUSE_METAFILE" = "yes"; then | |
36393 | cat >>confdefs.h <<\_ACEOF | |
36394 | #define wxUSE_METAFILE 1 | |
36395 | _ACEOF | |
36396 | ||
36397 | ||
36398 | cat >>confdefs.h <<\_ACEOF | |
36399 | #define wxUSE_ENH_METAFILE 1 | |
36400 | _ACEOF | |
36401 | ||
36402 | fi | |
36403 | fi | |
36404 | ||
36405 | if test "$wxUSE_IPC" = "yes"; then | |
36406 | if test "$wxUSE_SOCKETS" != "yes"; then | |
77ffb593 JS |
36407 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
36408 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
a848cd7e SC |
36409 | fi |
36410 | ||
36411 | cat >>confdefs.h <<\_ACEOF | |
36412 | #define wxUSE_IPC 1 | |
36413 | _ACEOF | |
36414 | ||
36415 | fi | |
36416 | ||
36417 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36418 | if test "$wxUSE_MGL" = 1; then | |
36419 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
36420 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
36421 | wxUSE_CLIPBOARD=no | |
36422 | fi | |
36423 | ||
36424 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
36425 | cat >>confdefs.h <<\_ACEOF | |
36426 | #define wxUSE_CLIPBOARD 1 | |
36427 | _ACEOF | |
36428 | ||
36429 | ||
36430 | cat >>confdefs.h <<\_ACEOF | |
36431 | #define wxUSE_DATAOBJ 1 | |
36432 | _ACEOF | |
36433 | ||
36434 | fi | |
36435 | fi | |
36436 | ||
36437 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
36438 | if test "$wxUSE_GTK" = 1; then | |
36439 | if test "$WXGTK12" != 1; then | |
36440 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
36441 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
36442 | wxUSE_DRAG_AND_DROP=no | |
36443 | fi | |
36444 | fi | |
36445 | ||
36446 | if test "$wxUSE_MOTIF" = 1; then | |
36447 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
36448 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
36449 | wxUSE_DRAG_AND_DROP=no | |
36450 | fi | |
36451 | ||
36452 | if test "$wxUSE_X11" = 1; then | |
36453 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
36454 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
36455 | wxUSE_DRAG_AND_DROP=no | |
36456 | fi | |
36457 | ||
36458 | if test "$wxUSE_MGL" = 1; then | |
36459 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
36460 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
36461 | wxUSE_DRAG_AND_DROP=no | |
36462 | fi | |
36463 | ||
36464 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
36465 | cat >>confdefs.h <<\_ACEOF | |
36466 | #define wxUSE_DRAG_AND_DROP 1 | |
36467 | _ACEOF | |
36468 | ||
36469 | fi | |
36470 | ||
36471 | fi | |
36472 | ||
36473 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
36474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
36475 | fi | |
36476 | ||
36477 | if test "$wxUSE_SPLINES" = "yes" ; then | |
36478 | cat >>confdefs.h <<\_ACEOF | |
36479 | #define wxUSE_SPLINES 1 | |
36480 | _ACEOF | |
36481 | ||
36482 | fi | |
36483 | ||
36484 | ||
36485 | USES_CONTROLS=0 | |
36486 | if test "$wxUSE_CONTROLS" = "yes"; then | |
36487 | USES_CONTROLS=1 | |
36488 | fi | |
36489 | ||
36490 | if test "$wxUSE_ACCEL" = "yes"; then | |
36491 | cat >>confdefs.h <<\_ACEOF | |
36492 | #define wxUSE_ACCEL 1 | |
36493 | _ACEOF | |
36494 | ||
36495 | USES_CONTROLS=1 | |
36496 | fi | |
36497 | ||
36498 | if test "$wxUSE_BUTTON" = "yes"; then | |
36499 | cat >>confdefs.h <<\_ACEOF | |
36500 | #define wxUSE_BUTTON 1 | |
36501 | _ACEOF | |
36502 | ||
36503 | USES_CONTROLS=1 | |
36504 | fi | |
36505 | ||
36506 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
36507 | cat >>confdefs.h <<\_ACEOF | |
36508 | #define wxUSE_BMPBUTTON 1 | |
36509 | _ACEOF | |
36510 | ||
36511 | USES_CONTROLS=1 | |
36512 | fi | |
36513 | ||
36514 | if test "$wxUSE_CALCTRL" = "yes"; then | |
36515 | cat >>confdefs.h <<\_ACEOF | |
36516 | #define wxUSE_CALENDARCTRL 1 | |
36517 | _ACEOF | |
36518 | ||
36519 | USES_CONTROLS=1 | |
36520 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36521 | fi | |
36522 | ||
36523 | if test "$wxUSE_CARET" = "yes"; then | |
36524 | cat >>confdefs.h <<\_ACEOF | |
36525 | #define wxUSE_CARET 1 | |
36526 | _ACEOF | |
36527 | ||
36528 | USES_CONTROLS=1 | |
36529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36530 | fi | |
36531 | ||
36532 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
36533 | cat >>confdefs.h <<\_ACEOF | |
36534 | #define wxUSE_COMBOBOX 1 | |
36535 | _ACEOF | |
36536 | ||
36537 | USES_CONTROLS=1 | |
36538 | fi | |
36539 | ||
36540 | if test "$wxUSE_CHOICE" = "yes"; then | |
36541 | cat >>confdefs.h <<\_ACEOF | |
36542 | #define wxUSE_CHOICE 1 | |
36543 | _ACEOF | |
36544 | ||
36545 | USES_CONTROLS=1 | |
36546 | fi | |
36547 | ||
92bbdbcd WS |
36548 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
36549 | cat >>confdefs.h <<\_ACEOF | |
36550 | #define wxUSE_CHOICEBOOK 1 | |
36551 | _ACEOF | |
36552 | ||
36553 | USES_CONTROLS=1 | |
36554 | fi | |
36555 | ||
a848cd7e SC |
36556 | if test "$wxUSE_CHECKBOX" = "yes"; then |
36557 | cat >>confdefs.h <<\_ACEOF | |
36558 | #define wxUSE_CHECKBOX 1 | |
36559 | _ACEOF | |
36560 | ||
36561 | USES_CONTROLS=1 | |
36562 | fi | |
36563 | ||
36564 | if test "$wxUSE_CHECKLST" = "yes"; then | |
36565 | cat >>confdefs.h <<\_ACEOF | |
36566 | #define wxUSE_CHECKLISTBOX 1 | |
36567 | _ACEOF | |
36568 | ||
36569 | USES_CONTROLS=1 | |
36570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
36571 | fi | |
36572 | ||
36573 | if test "$wxUSE_DISPLAY" = "yes"; then | |
36574 | cat >>confdefs.h <<\_ACEOF | |
36575 | #define wxUSE_DISPLAY 1 | |
36576 | _ACEOF | |
36577 | ||
36578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
36579 | fi | |
36580 | ||
36581 | if test "$wxUSE_GAUGE" = "yes"; then | |
36582 | cat >>confdefs.h <<\_ACEOF | |
36583 | #define wxUSE_GAUGE 1 | |
36584 | _ACEOF | |
36585 | ||
36586 | USES_CONTROLS=1 | |
36587 | fi | |
36588 | ||
36589 | if test "$wxUSE_GRID" = "yes"; then | |
36590 | cat >>confdefs.h <<\_ACEOF | |
36591 | #define wxUSE_GRID 1 | |
36592 | _ACEOF | |
36593 | ||
36594 | USES_CONTROLS=1 | |
36595 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36596 | fi | |
36597 | ||
36598 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36599 | cat >>confdefs.h <<\_ACEOF | |
36600 | #define wxUSE_IMAGLIST 1 | |
36601 | _ACEOF | |
36602 | ||
36603 | fi | |
36604 | ||
36605 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
36606 | cat >>confdefs.h <<\_ACEOF | |
36607 | #define wxUSE_LISTBOOK 1 | |
36608 | _ACEOF | |
36609 | ||
36610 | USES_CONTROLS=1 | |
36611 | fi | |
36612 | ||
36613 | if test "$wxUSE_LISTBOX" = "yes"; then | |
36614 | cat >>confdefs.h <<\_ACEOF | |
36615 | #define wxUSE_LISTBOX 1 | |
36616 | _ACEOF | |
36617 | ||
36618 | USES_CONTROLS=1 | |
36619 | fi | |
36620 | ||
36621 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36622 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36623 | cat >>confdefs.h <<\_ACEOF | |
36624 | #define wxUSE_LISTCTRL 1 | |
36625 | _ACEOF | |
36626 | ||
36627 | USES_CONTROLS=1 | |
36628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36629 | else | |
36630 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
36631 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36632 | fi | |
36633 | fi | |
36634 | ||
36635 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
36636 | cat >>confdefs.h <<\_ACEOF | |
36637 | #define wxUSE_NOTEBOOK 1 | |
36638 | _ACEOF | |
36639 | ||
36640 | USES_CONTROLS=1 | |
36641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36642 | fi | |
36643 | ||
36644 | ||
36645 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
36646 | cat >>confdefs.h <<\_ACEOF | |
36647 | #define wxUSE_RADIOBOX 1 | |
36648 | _ACEOF | |
36649 | ||
36650 | USES_CONTROLS=1 | |
36651 | fi | |
36652 | ||
36653 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
36654 | cat >>confdefs.h <<\_ACEOF | |
36655 | #define wxUSE_RADIOBTN 1 | |
36656 | _ACEOF | |
36657 | ||
36658 | USES_CONTROLS=1 | |
36659 | fi | |
36660 | ||
36661 | if test "$wxUSE_SASH" = "yes"; then | |
36662 | cat >>confdefs.h <<\_ACEOF | |
36663 | #define wxUSE_SASH 1 | |
36664 | _ACEOF | |
36665 | ||
36666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36667 | fi | |
36668 | ||
36669 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
36670 | cat >>confdefs.h <<\_ACEOF | |
36671 | #define wxUSE_SCROLLBAR 1 | |
36672 | _ACEOF | |
36673 | ||
36674 | USES_CONTROLS=1 | |
36675 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
36676 | fi | |
36677 | ||
36678 | if test "$wxUSE_SLIDER" = "yes"; then | |
36679 | cat >>confdefs.h <<\_ACEOF | |
36680 | #define wxUSE_SLIDER 1 | |
36681 | _ACEOF | |
36682 | ||
36683 | USES_CONTROLS=1 | |
36684 | fi | |
36685 | ||
36686 | if test "$wxUSE_SPINBTN" = "yes"; then | |
36687 | cat >>confdefs.h <<\_ACEOF | |
36688 | #define wxUSE_SPINBTN 1 | |
36689 | _ACEOF | |
36690 | ||
36691 | USES_CONTROLS=1 | |
36692 | fi | |
36693 | ||
36694 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
36695 | cat >>confdefs.h <<\_ACEOF | |
36696 | #define wxUSE_SPINCTRL 1 | |
36697 | _ACEOF | |
36698 | ||
36699 | USES_CONTROLS=1 | |
36700 | fi | |
36701 | ||
36702 | if test "$wxUSE_SPLITTER" = "yes"; then | |
36703 | cat >>confdefs.h <<\_ACEOF | |
36704 | #define wxUSE_SPLITTER 1 | |
36705 | _ACEOF | |
36706 | ||
36707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36708 | fi | |
36709 | ||
36710 | if test "$wxUSE_STATBMP" = "yes"; then | |
36711 | cat >>confdefs.h <<\_ACEOF | |
36712 | #define wxUSE_STATBMP 1 | |
36713 | _ACEOF | |
36714 | ||
36715 | USES_CONTROLS=1 | |
36716 | fi | |
36717 | ||
36718 | if test "$wxUSE_STATBOX" = "yes"; then | |
36719 | cat >>confdefs.h <<\_ACEOF | |
36720 | #define wxUSE_STATBOX 1 | |
36721 | _ACEOF | |
36722 | ||
36723 | USES_CONTROLS=1 | |
36724 | fi | |
36725 | ||
36726 | if test "$wxUSE_STATTEXT" = "yes"; then | |
36727 | cat >>confdefs.h <<\_ACEOF | |
36728 | #define wxUSE_STATTEXT 1 | |
36729 | _ACEOF | |
36730 | ||
36731 | USES_CONTROLS=1 | |
36732 | fi | |
36733 | ||
36734 | if test "$wxUSE_STATLINE" = "yes"; then | |
36735 | cat >>confdefs.h <<\_ACEOF | |
36736 | #define wxUSE_STATLINE 1 | |
36737 | _ACEOF | |
36738 | ||
36739 | USES_CONTROLS=1 | |
36740 | fi | |
36741 | ||
36742 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
36743 | cat >>confdefs.h <<\_ACEOF | |
36744 | #define wxUSE_STATUSBAR 1 | |
36745 | _ACEOF | |
36746 | ||
36747 | USES_CONTROLS=1 | |
36748 | ||
36749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36750 | fi | |
36751 | ||
36752 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
36753 | cat >>confdefs.h <<\_ACEOF | |
36754 | #define wxUSE_TAB_DIALOG 1 | |
36755 | _ACEOF | |
36756 | ||
36757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
36758 | fi | |
36759 | ||
36760 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
36761 | cat >>confdefs.h <<\_ACEOF | |
36762 | #define wxUSE_TEXTCTRL 1 | |
36763 | _ACEOF | |
36764 | ||
36765 | USES_CONTROLS=1 | |
36766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
36767 | fi | |
36768 | ||
36769 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36770 | if test "$wxUSE_COCOA" = 1 ; then | |
36771 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
36772 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
36773 | wxUSE_TOGGLEBTN=no | |
bdcade0a MB |
36774 | else |
36775 | if test "$wxUSE_PM" = 1; then | |
36776 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5 | |
36777 | echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;} | |
36778 | wxUSE_TOGGLEBTN=no | |
36779 | fi | |
a848cd7e SC |
36780 | fi |
36781 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36782 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
36783 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
36784 | wxUSE_TOGGLEBTN=no | |
36785 | fi | |
36786 | ||
36787 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
36788 | cat >>confdefs.h <<\_ACEOF | |
36789 | #define wxUSE_TOGGLEBTN 1 | |
36790 | _ACEOF | |
36791 | ||
36792 | USES_CONTROLS=1 | |
36793 | fi | |
36794 | fi | |
36795 | ||
36796 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
36797 | cat >>confdefs.h <<\_ACEOF | |
36798 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
36799 | _ACEOF | |
36800 | ||
36801 | wxUSE_TOOLBAR="yes" | |
36802 | USES_CONTROLS=1 | |
36803 | fi | |
36804 | ||
36805 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
36806 | cat >>confdefs.h <<\_ACEOF | |
36807 | #define wxUSE_TOOLBAR 1 | |
36808 | _ACEOF | |
36809 | ||
36810 | USES_CONTROLS=1 | |
36811 | ||
36812 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
36813 | wxUSE_TOOLBAR_NATIVE="yes" | |
36814 | fi | |
36815 | ||
36816 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
36817 | cat >>confdefs.h <<\_ACEOF | |
36818 | #define wxUSE_TOOLBAR_NATIVE 1 | |
36819 | _ACEOF | |
36820 | ||
36821 | USES_CONTROLS=1 | |
36822 | fi | |
36823 | ||
36824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36825 | fi | |
36826 | ||
36827 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36828 | if test "$wxUSE_MOTIF" = 1; then | |
36829 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
36830 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
36831 | else | |
36832 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
36833 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
36834 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
36835 | else | |
36836 | cat >>confdefs.h <<\_ACEOF | |
36837 | #define wxUSE_TOOLTIPS 1 | |
36838 | _ACEOF | |
36839 | ||
36840 | fi | |
36841 | fi | |
36842 | fi | |
36843 | ||
36844 | if test "$wxUSE_TREECTRL" = "yes"; then | |
36845 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
36846 | cat >>confdefs.h <<\_ACEOF | |
36847 | #define wxUSE_TREECTRL 1 | |
36848 | _ACEOF | |
36849 | ||
36850 | USES_CONTROLS=1 | |
36851 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36852 | else | |
36853 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
36854 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
36855 | fi | |
36856 | fi | |
36857 | ||
36858 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
36859 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
36860 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
36861 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
36862 | else | |
36863 | if test "$wxUSE_PM" = 1; then | |
36864 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
36865 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
36866 | else | |
36867 | cat >>confdefs.h <<\_ACEOF | |
36868 | #define wxUSE_POPUPWIN 1 | |
36869 | _ACEOF | |
36870 | ||
36871 | ||
36872 | USES_CONTROLS=1 | |
36873 | fi | |
36874 | fi | |
36875 | fi | |
36876 | ||
36877 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
36878 | if test "$wxUSE_PM" = 1; then | |
36879 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
36880 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
36881 | else | |
36882 | cat >>confdefs.h <<\_ACEOF | |
36883 | #define wxUSE_TIPWINDOW 1 | |
36884 | _ACEOF | |
36885 | ||
36886 | fi | |
36887 | fi | |
36888 | ||
36889 | if test "$USES_CONTROLS" = 1; then | |
36890 | cat >>confdefs.h <<\_ACEOF | |
36891 | #define wxUSE_CONTROLS 1 | |
36892 | _ACEOF | |
36893 | ||
36894 | fi | |
36895 | ||
36896 | ||
36897 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
36898 | cat >>confdefs.h <<\_ACEOF | |
36899 | #define wxUSE_ACCESSIBILITY 1 | |
36900 | _ACEOF | |
36901 | ||
36902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36903 | fi | |
36904 | ||
36905 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
36906 | cat >>confdefs.h <<\_ACEOF | |
36907 | #define wxUSE_DRAGIMAGE 1 | |
36908 | _ACEOF | |
36909 | ||
36910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36911 | fi | |
36912 | ||
36913 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
36914 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
36915 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
36916 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
36917 | else | |
36918 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
36919 | #define wxUSE_EXCEPTIONS 1 |
36920 | _ACEOF | |
36921 | ||
07bea8f0 VS |
36922 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36923 | fi | |
a848cd7e SC |
36924 | fi |
36925 | ||
36926 | USE_HTML=0 | |
36927 | if test "$wxUSE_HTML" = "yes"; then | |
36928 | cat >>confdefs.h <<\_ACEOF | |
36929 | #define wxUSE_HTML 1 | |
36930 | _ACEOF | |
36931 | ||
36932 | USE_HTML=1 | |
36933 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
36934 | if test "$wxUSE_MAC" = 1; then |
36935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36936 | fi | |
a848cd7e | 36937 | fi |
646b6ec1 | 36938 | if test "$wxUSE_WEBKIT" = "yes"; then |
07bea8f0 VS |
36939 | if test "$wxUSE_MAC" = 1; then |
36940 | old_CPPFLAGS="$CPPFLAGS" | |
36941 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
36942 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
36943 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
36944 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
36945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36946 | else | |
36947 | cat >conftest.$ac_ext <<_ACEOF | |
36948 | /* confdefs.h. */ | |
36949 | _ACEOF | |
36950 | cat confdefs.h >>conftest.$ac_ext | |
36951 | cat >>conftest.$ac_ext <<_ACEOF | |
36952 | /* end confdefs.h. */ | |
36953 | #include <Carbon/Carbon.h> | |
36954 | ||
36955 | #include <WebKit/HIWebView.h> | |
36956 | _ACEOF | |
36957 | rm -f conftest.$ac_objext | |
36958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36959 | (eval $ac_compile) 2>conftest.er1 | |
36960 | ac_status=$? | |
36961 | grep -v '^ *+' conftest.er1 >conftest.err | |
36962 | rm -f conftest.er1 | |
36963 | cat conftest.err >&5 | |
36964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36965 | (exit $ac_status); } && | |
d1c38808 | 36966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
36967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36968 | (eval $ac_try) 2>&5 | |
36969 | ac_status=$? | |
36970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36971 | (exit $ac_status); }; } && | |
36972 | { ac_try='test -s conftest.$ac_objext' | |
36973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36974 | (eval $ac_try) 2>&5 | |
36975 | ac_status=$? | |
36976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36977 | (exit $ac_status); }; }; then | |
36978 | ac_cv_header_WebKit_HIWebView_h=yes | |
36979 | else | |
36980 | echo "$as_me: failed program was:" >&5 | |
36981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36982 | ||
36983 | ac_cv_header_WebKit_HIWebView_h=no | |
36984 | fi | |
36985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36986 | fi | |
36987 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
36988 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
36989 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
36990 | ||
36991 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
36992 | #define wxUSE_WEBKIT 1 |
36993 | _ACEOF | |
36994 | ||
07bea8f0 VS |
36995 | WEBKIT_LINK="-framework WebKit" |
36996 | ||
36997 | else | |
36998 | ||
36999 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
37000 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
37001 | wxUSE_WEBKIT=no | |
37002 | ||
646b6ec1 VS |
37003 | fi |
37004 | ||
07bea8f0 VS |
37005 | |
37006 | CPPFLAGS="$old_CPPFLAGS" | |
37007 | elif test "$wxUSE_COCOA" = 1; then | |
37008 | cat >>confdefs.h <<\_ACEOF | |
37009 | #define wxUSE_WEBKIT 1 | |
37010 | _ACEOF | |
37011 | ||
37012 | else | |
37013 | wxUSE_WEBKIT=no | |
37014 | fi | |
37015 | fi | |
37016 | ||
9a8f0513 VS |
37017 | USE_XRC=0 |
37018 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
37019 | if test "$wxUSE_XML" != "yes"; then |
37020 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
37021 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
37022 | wxUSE_XRC=no | |
37023 | else | |
37024 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
37025 | #define wxUSE_XRC 1 |
37026 | _ACEOF | |
37027 | ||
d2ebf0b7 VS |
37028 | USE_XRC=1 |
37029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
37030 | fi | |
9a8f0513 | 37031 | fi |
07bea8f0 | 37032 | |
a848cd7e SC |
37033 | if test "$wxUSE_MENUS" = "yes"; then |
37034 | cat >>confdefs.h <<\_ACEOF | |
37035 | #define wxUSE_MENUS 1 | |
37036 | _ACEOF | |
37037 | ||
37038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
37039 | fi | |
37040 | ||
37041 | if test "$wxUSE_METAFILE" = "yes"; then | |
37042 | cat >>confdefs.h <<\_ACEOF | |
37043 | #define wxUSE_METAFILE 1 | |
37044 | _ACEOF | |
37045 | ||
37046 | fi | |
37047 | ||
37048 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
37049 | cat >>confdefs.h <<\_ACEOF | |
37050 | #define wxUSE_MIMETYPE 1 | |
37051 | _ACEOF | |
37052 | ||
37053 | fi | |
37054 | ||
37055 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
37056 | cat >>confdefs.h <<\_ACEOF | |
37057 | #define wxUSE_MINIFRAME 1 | |
37058 | _ACEOF | |
37059 | ||
37060 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
37061 | fi | |
37062 | ||
37063 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
37064 | cat >>confdefs.h <<\_ACEOF | |
37065 | #define wxUSE_SYSTEM_OPTIONS 1 | |
37066 | _ACEOF | |
37067 | ||
37068 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 37069 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
37070 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
37071 | fi | |
37072 | fi | |
37073 | ||
37074 | ||
37075 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
37076 | cat >>confdefs.h <<\_ACEOF | |
37077 | #define wxUSE_VALIDATORS 1 | |
37078 | _ACEOF | |
37079 | ||
37080 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
37081 | fi | |
37082 | ||
37083 | if test "$wxUSE_PALETTE" = "yes" ; then | |
37084 | cat >>confdefs.h <<\_ACEOF | |
37085 | #define wxUSE_PALETTE 1 | |
37086 | _ACEOF | |
37087 | ||
37088 | fi | |
37089 | ||
37090 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
37091 | LIBS=" -lunicows $LIBS" | |
37092 | fi | |
37093 | ||
37094 | ||
37095 | if test "$wxUSE_IMAGE" = "yes" ; then | |
37096 | cat >>confdefs.h <<\_ACEOF | |
37097 | #define wxUSE_IMAGE 1 | |
37098 | _ACEOF | |
37099 | ||
37100 | ||
37101 | if test "$wxUSE_GIF" = "yes" ; then | |
37102 | cat >>confdefs.h <<\_ACEOF | |
37103 | #define wxUSE_GIF 1 | |
37104 | _ACEOF | |
37105 | ||
37106 | fi | |
37107 | ||
37108 | if test "$wxUSE_PCX" = "yes" ; then | |
37109 | cat >>confdefs.h <<\_ACEOF | |
37110 | #define wxUSE_PCX 1 | |
37111 | _ACEOF | |
37112 | ||
37113 | fi | |
37114 | ||
37115 | if test "$wxUSE_IFF" = "yes" ; then | |
37116 | cat >>confdefs.h <<\_ACEOF | |
37117 | #define wxUSE_IFF 1 | |
37118 | _ACEOF | |
37119 | ||
37120 | fi | |
37121 | ||
37122 | if test "$wxUSE_PNM" = "yes" ; then | |
37123 | cat >>confdefs.h <<\_ACEOF | |
37124 | #define wxUSE_PNM 1 | |
37125 | _ACEOF | |
37126 | ||
37127 | fi | |
37128 | ||
37129 | if test "$wxUSE_XPM" = "yes" ; then | |
37130 | cat >>confdefs.h <<\_ACEOF | |
37131 | #define wxUSE_XPM 1 | |
37132 | _ACEOF | |
37133 | ||
37134 | fi | |
37135 | ||
37136 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
37137 | cat >>confdefs.h <<\_ACEOF | |
37138 | #define wxUSE_ICO_CUR 1 | |
37139 | _ACEOF | |
37140 | ||
37141 | fi | |
37142 | fi | |
37143 | ||
37144 | ||
37145 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
37146 | cat >>confdefs.h <<\_ACEOF | |
37147 | #define wxUSE_CHOICEDLG 1 | |
37148 | _ACEOF | |
37149 | ||
37150 | fi | |
37151 | ||
37152 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
37153 | cat >>confdefs.h <<\_ACEOF | |
37154 | #define wxUSE_COLOURDLG 1 | |
37155 | _ACEOF | |
37156 | ||
37157 | fi | |
37158 | ||
37159 | if test "$wxUSE_FILEDLG" = "yes"; then | |
37160 | cat >>confdefs.h <<\_ACEOF | |
37161 | #define wxUSE_FILEDLG 1 | |
37162 | _ACEOF | |
37163 | ||
37164 | fi | |
37165 | ||
37166 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
37167 | cat >>confdefs.h <<\_ACEOF | |
37168 | #define wxUSE_FINDREPLDLG 1 | |
37169 | _ACEOF | |
37170 | ||
37171 | fi | |
37172 | ||
37173 | if test "$wxUSE_FONTDLG" = "yes"; then | |
37174 | cat >>confdefs.h <<\_ACEOF | |
37175 | #define wxUSE_FONTDLG 1 | |
37176 | _ACEOF | |
37177 | ||
37178 | fi | |
37179 | ||
37180 | if test "$wxUSE_DIRDLG" = "yes"; then | |
37181 | if test "$wxUSE_TREECTRL" != "yes"; then | |
37182 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
37183 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
37184 | else | |
37185 | cat >>confdefs.h <<\_ACEOF | |
37186 | #define wxUSE_DIRDLG 1 | |
37187 | _ACEOF | |
37188 | ||
37189 | fi | |
37190 | fi | |
37191 | ||
37192 | if test "$wxUSE_MSGDLG" = "yes"; then | |
37193 | cat >>confdefs.h <<\_ACEOF | |
37194 | #define wxUSE_MSGDLG 1 | |
37195 | _ACEOF | |
37196 | ||
37197 | fi | |
37198 | ||
37199 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
37200 | cat >>confdefs.h <<\_ACEOF | |
37201 | #define wxUSE_NUMBERDLG 1 | |
37202 | _ACEOF | |
37203 | ||
37204 | fi | |
37205 | ||
37206 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
37207 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37208 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
37209 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
37210 | else | |
37211 | cat >>confdefs.h <<\_ACEOF | |
37212 | #define wxUSE_PROGRESSDLG 1 | |
37213 | _ACEOF | |
37214 | ||
37215 | fi | |
37216 | fi | |
37217 | ||
37218 | if test "$wxUSE_SPLASH" = "yes"; then | |
37219 | cat >>confdefs.h <<\_ACEOF | |
37220 | #define wxUSE_SPLASH 1 | |
37221 | _ACEOF | |
37222 | ||
2057db16 | 37223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
37224 | fi |
37225 | ||
37226 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
37227 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
37228 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
37229 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
37230 | else | |
37231 | cat >>confdefs.h <<\_ACEOF | |
37232 | #define wxUSE_STARTUP_TIPS 1 | |
37233 | _ACEOF | |
37234 | ||
37235 | fi | |
37236 | fi | |
37237 | ||
37238 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
37239 | cat >>confdefs.h <<\_ACEOF | |
37240 | #define wxUSE_TEXTDLG 1 | |
37241 | _ACEOF | |
37242 | ||
37243 | fi | |
37244 | ||
37245 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
37246 | cat >>confdefs.h <<\_ACEOF | |
37247 | #define wxUSE_WIZARDDLG 1 | |
37248 | _ACEOF | |
37249 | ||
37250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
37251 | fi | |
37252 | ||
37253 | ||
37254 | if test "$cross_compiling" = "yes"; then | |
37255 | OSINFO="\"$host\"" | |
37256 | else | |
37257 | OSINFO=`uname -s -r -m` | |
37258 | OSINFO="\"$OSINFO\"" | |
37259 | fi | |
37260 | ||
37261 | cat >>confdefs.h <<_ACEOF | |
37262 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37263 | _ACEOF | |
37264 | ||
37265 | ||
37266 | ||
37267 | if test "x$prefix" != "xNONE"; then | |
37268 | wxPREFIX=$prefix | |
37269 | else | |
37270 | wxPREFIX=$ac_default_prefix | |
37271 | fi | |
37272 | ||
37273 | cat >>confdefs.h <<_ACEOF | |
37274 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37275 | _ACEOF | |
37276 | ||
37277 | ||
a848cd7e SC |
37278 | |
37279 | ||
37280 | CORE_BASE_LIBS="net base" | |
37281 | CORE_GUI_LIBS="adv core" | |
37282 | ||
37283 | if test "$wxUSE_XML" = "yes" ; then | |
37284 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
37285 | fi | |
37286 | if test "$wxUSE_ODBC" != "no" ; then | |
37287 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
37288 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
37289 | fi | |
37290 | if test "$wxUSE_HTML" = "yes" ; then | |
37291 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
37292 | fi | |
9a8f0513 VS |
37293 | if test "$wxUSE_XRC" = "yes" ; then |
37294 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
37295 | fi | |
a848cd7e SC |
37296 | |
37297 | if test "$wxUSE_GUI" != "yes"; then | |
37298 | CORE_GUI_LIBS="" | |
37299 | fi | |
37300 | ||
37301 | ||
37302 | ||
37303 | ||
37304 | ||
37305 | ||
37306 | ||
37307 | ||
37308 | if test "$wxUSE_MAC" = 1 ; then | |
07bea8f0 VS |
37309 | if test "$wxUSE_SOUND" = "yes"; then |
37310 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
37311 | fi | |
5dcf30a0 RN |
37312 | if test "$USE_DARWIN" = 1; then |
37313 | LDFLAGS="$LDFLAGS -framework IOKit" | |
37314 | fi | |
07bea8f0 | 37315 | LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" |
a848cd7e SC |
37316 | fi |
37317 | if test "$wxUSE_COCOA" = 1 ; then | |
f7e98dee | 37318 | LDFLAGS="$LDFLAGS -framework Cocoa" |
a848cd7e SC |
37319 | fi |
37320 | ||
37321 | ||
37322 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
37323 | ||
37324 | have_cos=0 | |
37325 | have_floor=0 | |
37326 | ||
37327 | for ac_func in cos | |
37328 | do | |
37329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37330 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37332 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37334 | else | |
37335 | cat >conftest.$ac_ext <<_ACEOF | |
37336 | /* confdefs.h. */ | |
37337 | _ACEOF | |
37338 | cat confdefs.h >>conftest.$ac_ext | |
37339 | cat >>conftest.$ac_ext <<_ACEOF | |
37340 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37341 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37342 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37343 | #define $ac_func innocuous_$ac_func | |
37344 | ||
a848cd7e SC |
37345 | /* System header to define __stub macros and hopefully few prototypes, |
37346 | which can conflict with char $ac_func (); below. | |
37347 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37348 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37349 | |
a848cd7e SC |
37350 | #ifdef __STDC__ |
37351 | # include <limits.h> | |
37352 | #else | |
37353 | # include <assert.h> | |
37354 | #endif | |
ac1cb8d3 VS |
37355 | |
37356 | #undef $ac_func | |
37357 | ||
a848cd7e SC |
37358 | /* Override any gcc2 internal prototype to avoid an error. */ |
37359 | #ifdef __cplusplus | |
37360 | extern "C" | |
37361 | { | |
37362 | #endif | |
37363 | /* We use char because int might match the return type of a gcc2 | |
37364 | builtin and then its argument prototype would still apply. */ | |
37365 | char $ac_func (); | |
37366 | /* The GNU C library defines this for functions which it implements | |
37367 | to always fail with ENOSYS. Some functions are actually named | |
37368 | something starting with __ and the normal name is an alias. */ | |
37369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37370 | choke me | |
37371 | #else | |
37372 | char (*f) () = $ac_func; | |
37373 | #endif | |
37374 | #ifdef __cplusplus | |
37375 | } | |
37376 | #endif | |
37377 | ||
37378 | int | |
37379 | main () | |
37380 | { | |
37381 | return f != $ac_func; | |
37382 | ; | |
37383 | return 0; | |
37384 | } | |
37385 | _ACEOF | |
37386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37388 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37389 | ac_status=$? |
ac1cb8d3 VS |
37390 | grep -v '^ *+' conftest.er1 >conftest.err |
37391 | rm -f conftest.er1 | |
37392 | cat conftest.err >&5 | |
a848cd7e SC |
37393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37394 | (exit $ac_status); } && | |
d1c38808 | 37395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37397 | (eval $ac_try) 2>&5 | |
37398 | ac_status=$? | |
37399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37400 | (exit $ac_status); }; } && | |
37401 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37403 | (eval $ac_try) 2>&5 | |
37404 | ac_status=$? | |
37405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37406 | (exit $ac_status); }; }; then | |
37407 | eval "$as_ac_var=yes" | |
37408 | else | |
37409 | echo "$as_me: failed program was:" >&5 | |
37410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37411 | ||
37412 | eval "$as_ac_var=no" | |
37413 | fi | |
ac1cb8d3 VS |
37414 | rm -f conftest.err conftest.$ac_objext \ |
37415 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37416 | fi |
37417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37418 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37419 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37420 | cat >>confdefs.h <<_ACEOF | |
37421 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37422 | _ACEOF | |
37423 | have_cos=1 | |
37424 | fi | |
37425 | done | |
37426 | ||
37427 | ||
37428 | for ac_func in floor | |
37429 | do | |
37430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37433 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37435 | else | |
37436 | cat >conftest.$ac_ext <<_ACEOF | |
37437 | /* confdefs.h. */ | |
37438 | _ACEOF | |
37439 | cat confdefs.h >>conftest.$ac_ext | |
37440 | cat >>conftest.$ac_ext <<_ACEOF | |
37441 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37442 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37444 | #define $ac_func innocuous_$ac_func | |
37445 | ||
a848cd7e SC |
37446 | /* System header to define __stub macros and hopefully few prototypes, |
37447 | which can conflict with char $ac_func (); below. | |
37448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37449 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37450 | |
a848cd7e SC |
37451 | #ifdef __STDC__ |
37452 | # include <limits.h> | |
37453 | #else | |
37454 | # include <assert.h> | |
37455 | #endif | |
ac1cb8d3 VS |
37456 | |
37457 | #undef $ac_func | |
37458 | ||
a848cd7e SC |
37459 | /* Override any gcc2 internal prototype to avoid an error. */ |
37460 | #ifdef __cplusplus | |
37461 | extern "C" | |
37462 | { | |
37463 | #endif | |
37464 | /* We use char because int might match the return type of a gcc2 | |
37465 | builtin and then its argument prototype would still apply. */ | |
37466 | char $ac_func (); | |
37467 | /* The GNU C library defines this for functions which it implements | |
37468 | to always fail with ENOSYS. Some functions are actually named | |
37469 | something starting with __ and the normal name is an alias. */ | |
37470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37471 | choke me | |
37472 | #else | |
37473 | char (*f) () = $ac_func; | |
37474 | #endif | |
37475 | #ifdef __cplusplus | |
37476 | } | |
37477 | #endif | |
37478 | ||
37479 | int | |
37480 | main () | |
37481 | { | |
37482 | return f != $ac_func; | |
37483 | ; | |
37484 | return 0; | |
37485 | } | |
37486 | _ACEOF | |
37487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37489 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37490 | ac_status=$? |
ac1cb8d3 VS |
37491 | grep -v '^ *+' conftest.er1 >conftest.err |
37492 | rm -f conftest.er1 | |
37493 | cat conftest.err >&5 | |
a848cd7e SC |
37494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37495 | (exit $ac_status); } && | |
d1c38808 | 37496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37498 | (eval $ac_try) 2>&5 | |
37499 | ac_status=$? | |
37500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37501 | (exit $ac_status); }; } && | |
37502 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37504 | (eval $ac_try) 2>&5 | |
37505 | ac_status=$? | |
37506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37507 | (exit $ac_status); }; }; then | |
37508 | eval "$as_ac_var=yes" | |
37509 | else | |
37510 | echo "$as_me: failed program was:" >&5 | |
37511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37512 | ||
37513 | eval "$as_ac_var=no" | |
37514 | fi | |
ac1cb8d3 VS |
37515 | rm -f conftest.err conftest.$ac_objext \ |
37516 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37517 | fi |
37518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37521 | cat >>confdefs.h <<_ACEOF | |
37522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37523 | _ACEOF | |
37524 | have_floor=1 | |
37525 | fi | |
37526 | done | |
37527 | ||
37528 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
37529 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
37530 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
37531 | echo "$as_me:$LINENO: result: yes" >&5 | |
37532 | echo "${ECHO_T}yes" >&6 | |
37533 | else | |
37534 | echo "$as_me:$LINENO: result: no" >&5 | |
37535 | echo "${ECHO_T}no" >&6 | |
37536 | LIBS="$LIBS -lm" | |
37537 | # use different functions to avoid configure caching | |
37538 | have_sin=0 | |
37539 | have_ceil=0 | |
37540 | ||
37541 | for ac_func in sin | |
37542 | do | |
37543 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37544 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37545 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37546 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37548 | else | |
37549 | cat >conftest.$ac_ext <<_ACEOF | |
37550 | /* confdefs.h. */ | |
37551 | _ACEOF | |
37552 | cat confdefs.h >>conftest.$ac_ext | |
37553 | cat >>conftest.$ac_ext <<_ACEOF | |
37554 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37555 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37556 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37557 | #define $ac_func innocuous_$ac_func | |
37558 | ||
a848cd7e SC |
37559 | /* System header to define __stub macros and hopefully few prototypes, |
37560 | which can conflict with char $ac_func (); below. | |
37561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37562 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37563 | |
a848cd7e SC |
37564 | #ifdef __STDC__ |
37565 | # include <limits.h> | |
37566 | #else | |
37567 | # include <assert.h> | |
37568 | #endif | |
ac1cb8d3 VS |
37569 | |
37570 | #undef $ac_func | |
37571 | ||
a848cd7e SC |
37572 | /* Override any gcc2 internal prototype to avoid an error. */ |
37573 | #ifdef __cplusplus | |
37574 | extern "C" | |
37575 | { | |
37576 | #endif | |
37577 | /* We use char because int might match the return type of a gcc2 | |
37578 | builtin and then its argument prototype would still apply. */ | |
37579 | char $ac_func (); | |
37580 | /* The GNU C library defines this for functions which it implements | |
37581 | to always fail with ENOSYS. Some functions are actually named | |
37582 | something starting with __ and the normal name is an alias. */ | |
37583 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37584 | choke me | |
37585 | #else | |
37586 | char (*f) () = $ac_func; | |
37587 | #endif | |
37588 | #ifdef __cplusplus | |
37589 | } | |
37590 | #endif | |
37591 | ||
37592 | int | |
37593 | main () | |
37594 | { | |
37595 | return f != $ac_func; | |
37596 | ; | |
37597 | return 0; | |
37598 | } | |
37599 | _ACEOF | |
37600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37602 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37603 | ac_status=$? |
ac1cb8d3 VS |
37604 | grep -v '^ *+' conftest.er1 >conftest.err |
37605 | rm -f conftest.er1 | |
37606 | cat conftest.err >&5 | |
a848cd7e SC |
37607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37608 | (exit $ac_status); } && | |
d1c38808 | 37609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37611 | (eval $ac_try) 2>&5 | |
37612 | ac_status=$? | |
37613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37614 | (exit $ac_status); }; } && | |
37615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37617 | (eval $ac_try) 2>&5 | |
37618 | ac_status=$? | |
37619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37620 | (exit $ac_status); }; }; then | |
37621 | eval "$as_ac_var=yes" | |
37622 | else | |
37623 | echo "$as_me: failed program was:" >&5 | |
37624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37625 | ||
37626 | eval "$as_ac_var=no" | |
37627 | fi | |
ac1cb8d3 VS |
37628 | rm -f conftest.err conftest.$ac_objext \ |
37629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37630 | fi |
37631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37632 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37633 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37634 | cat >>confdefs.h <<_ACEOF | |
37635 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37636 | _ACEOF | |
37637 | have_sin=1 | |
37638 | fi | |
37639 | done | |
37640 | ||
37641 | ||
37642 | for ac_func in ceil | |
37643 | do | |
37644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37649 | else | |
37650 | cat >conftest.$ac_ext <<_ACEOF | |
37651 | /* confdefs.h. */ | |
37652 | _ACEOF | |
37653 | cat confdefs.h >>conftest.$ac_ext | |
37654 | cat >>conftest.$ac_ext <<_ACEOF | |
37655 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37658 | #define $ac_func innocuous_$ac_func | |
37659 | ||
a848cd7e SC |
37660 | /* System header to define __stub macros and hopefully few prototypes, |
37661 | which can conflict with char $ac_func (); below. | |
37662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37663 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37664 | |
a848cd7e SC |
37665 | #ifdef __STDC__ |
37666 | # include <limits.h> | |
37667 | #else | |
37668 | # include <assert.h> | |
37669 | #endif | |
ac1cb8d3 VS |
37670 | |
37671 | #undef $ac_func | |
37672 | ||
a848cd7e SC |
37673 | /* Override any gcc2 internal prototype to avoid an error. */ |
37674 | #ifdef __cplusplus | |
37675 | extern "C" | |
37676 | { | |
37677 | #endif | |
37678 | /* We use char because int might match the return type of a gcc2 | |
37679 | builtin and then its argument prototype would still apply. */ | |
37680 | char $ac_func (); | |
37681 | /* The GNU C library defines this for functions which it implements | |
37682 | to always fail with ENOSYS. Some functions are actually named | |
37683 | something starting with __ and the normal name is an alias. */ | |
37684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37685 | choke me | |
37686 | #else | |
37687 | char (*f) () = $ac_func; | |
37688 | #endif | |
37689 | #ifdef __cplusplus | |
37690 | } | |
37691 | #endif | |
37692 | ||
37693 | int | |
37694 | main () | |
37695 | { | |
37696 | return f != $ac_func; | |
37697 | ; | |
37698 | return 0; | |
37699 | } | |
37700 | _ACEOF | |
37701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37704 | ac_status=$? |
ac1cb8d3 VS |
37705 | grep -v '^ *+' conftest.er1 >conftest.err |
37706 | rm -f conftest.er1 | |
37707 | cat conftest.err >&5 | |
a848cd7e SC |
37708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37709 | (exit $ac_status); } && | |
d1c38808 | 37710 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37712 | (eval $ac_try) 2>&5 | |
37713 | ac_status=$? | |
37714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37715 | (exit $ac_status); }; } && | |
37716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37718 | (eval $ac_try) 2>&5 | |
37719 | ac_status=$? | |
37720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37721 | (exit $ac_status); }; }; then | |
37722 | eval "$as_ac_var=yes" | |
37723 | else | |
37724 | echo "$as_me: failed program was:" >&5 | |
37725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37726 | ||
37727 | eval "$as_ac_var=no" | |
37728 | fi | |
ac1cb8d3 VS |
37729 | rm -f conftest.err conftest.$ac_objext \ |
37730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37731 | fi |
37732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37734 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37735 | cat >>confdefs.h <<_ACEOF | |
37736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37737 | _ACEOF | |
37738 | have_ceil=1 | |
37739 | fi | |
37740 | done | |
37741 | ||
37742 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
37743 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
37744 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
37745 | echo "$as_me:$LINENO: result: yes" >&5 | |
37746 | echo "${ECHO_T}yes" >&6 | |
37747 | else | |
37748 | echo "$as_me:$LINENO: result: no" >&5 | |
37749 | echo "${ECHO_T}no" >&6 | |
37750 | # not sure we should warn the user, crash, etc. | |
37751 | fi | |
37752 | fi | |
37753 | ||
37754 | if test "$wxUSE_GUI" = "yes"; then | |
37755 | ||
37756 | ||
37757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
37758 | drawing dynamic erase event exec font image \ | |
37759 | minimal propsize rotate shaped widgets render" | |
37760 | ||
37761 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37763 | fi | |
37764 | else | |
37765 | SAMPLES_SUBDIRS="console" | |
37766 | fi | |
37767 | ||
37768 | ||
ceec2216 | 37769 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
37770 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
37771 | ||
37772 | if test "$GXX" = yes ; then | |
37773 | CXXWARNINGS="-Wall" | |
37774 | fi | |
37775 | ||
37776 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
37777 | ||
0c3c69fc VS |
37778 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
37779 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS` | |
37780 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` | |
a848cd7e SC |
37781 | |
37782 | ||
0c3c69fc | 37783 | LIBS=`echo $LIBS` |
a848cd7e SC |
37784 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37785 | EXTRALIBS_XML="$EXPAT_LINK" | |
37786 | EXTRALIBS_HTML="$MSPACK_LINK" | |
37787 | EXTRALIBS_ODBC="$ODBC_LINK" | |
37788 | if test "$wxUSE_GUI" = "yes"; then | |
0c3c69fc | 37789 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37790 | fi |
37791 | if test "$wxUSE_OPENGL" = "yes"; then | |
37792 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37793 | fi | |
37794 | ||
37795 | LDFLAGS="$LDFLAGS $PROFILE" | |
37796 | ||
37797 | if test "$wxUSE_GTK" = 1; then | |
37798 | WXCONFIG_INCLUDE= | |
37799 | else | |
37800 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
37801 | fi | |
37802 | ||
37803 | WXCONFIG_EXTRALIBS="$LIBS" | |
37804 | ||
37805 | if test "$wxUSE_REGEX" = "builtin" ; then | |
37806 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
37807 | fi | |
37808 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
37809 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
37810 | fi | |
37811 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37812 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37813 | fi | |
37814 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
37815 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
37816 | fi | |
37817 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
37818 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
37819 | fi | |
37820 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
37821 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
37822 | fi | |
37823 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
37824 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
37825 | fi | |
37826 | if test "$wxUSE_ODBC" = "builtin" ; then | |
37827 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
37828 | fi | |
37829 | ||
37830 | for i in $wxconfig_3rdparty ; do | |
ceec2216 | 37831 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e SC |
37832 | done |
37833 | ||
37834 | ||
37835 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37836 | WXUNIV=1 | |
37837 | else | |
37838 | WXUNIV=0 | |
37839 | fi | |
37840 | ||
37841 | ||
37842 | ||
37843 | ||
37844 | ||
37845 | ||
37846 | ||
37847 | ||
37848 | ||
37849 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
37850 | MONOLITHIC=1 | |
37851 | else | |
37852 | MONOLITHIC=0 | |
37853 | fi | |
37854 | ||
37855 | if test $wxUSE_PLUGINS = "yes" ; then | |
37856 | USE_PLUGINS=1 | |
37857 | else | |
37858 | USE_PLUGINS=0 | |
37859 | fi | |
37860 | ||
37861 | if test $wxUSE_ODBC != "no" ; then | |
37862 | USE_ODBC=1 | |
37863 | else | |
37864 | USE_ODBC=0 | |
37865 | fi | |
37866 | ||
37867 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
37868 | OFFICIAL_BUILD=1 | |
37869 | else | |
37870 | OFFICIAL_BUILD=0 | |
37871 | fi | |
37872 | ||
37873 | ||
37874 | ||
37875 | ||
37876 | ||
37877 | ||
37878 | ||
37879 | ||
37880 | ||
37881 | ||
37882 | ||
37883 | ||
37884 | ||
37885 | ||
37886 | ||
37887 | ||
37888 | ||
37889 | ||
37890 | ||
ceec2216 | 37891 | |
d1c38808 | 37892 | |
a848cd7e SC |
37893 | |
37894 | ||
37895 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
37896 | ||
37897 | ||
37898 | ||
37899 | ||
37900 | ||
37901 | ||
37902 | ||
37903 | ||
4d4ff94c VZ |
37904 | case "$TOOLKIT" in |
37905 | GTK) | |
37906 | TOOLKIT_USER="GTK+" | |
37907 | if test "$WXGTK20" = 1; then | |
37908 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
37909 | fi | |
9a8f0513 | 37910 | ;; |
4d4ff94c VZ |
37911 | |
37912 | *) | |
37913 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 37914 | ;; |
4d4ff94c | 37915 | esac |
a848cd7e | 37916 | |
9a8f0513 | 37917 | |
a848cd7e SC |
37918 | if test "x$BAKEFILE_HOST" = "x"; then |
37919 | BAKEFILE_HOST="${host}" | |
37920 | fi | |
37921 | ||
37922 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37923 | ||
37924 | if test -n "$ac_tool_prefix"; then | |
37925 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37926 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
37927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37929 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
37930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37931 | else | |
37932 | if test -n "$RANLIB"; then | |
37933 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
37934 | else | |
37935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37936 | for as_dir in $PATH | |
37937 | do | |
37938 | IFS=$as_save_IFS | |
37939 | test -z "$as_dir" && as_dir=. | |
37940 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37942 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
37943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37944 | break 2 | |
37945 | fi | |
37946 | done | |
37947 | done | |
37948 | ||
37949 | fi | |
37950 | fi | |
37951 | RANLIB=$ac_cv_prog_RANLIB | |
37952 | if test -n "$RANLIB"; then | |
37953 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
37954 | echo "${ECHO_T}$RANLIB" >&6 | |
37955 | else | |
37956 | echo "$as_me:$LINENO: result: no" >&5 | |
37957 | echo "${ECHO_T}no" >&6 | |
37958 | fi | |
37959 | ||
37960 | fi | |
37961 | if test -z "$ac_cv_prog_RANLIB"; then | |
37962 | ac_ct_RANLIB=$RANLIB | |
37963 | # Extract the first word of "ranlib", so it can be a program name with args. | |
37964 | set dummy ranlib; ac_word=$2 | |
37965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37967 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
37968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37969 | else | |
37970 | if test -n "$ac_ct_RANLIB"; then | |
37971 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
37972 | else | |
37973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37974 | for as_dir in $PATH | |
37975 | do | |
37976 | IFS=$as_save_IFS | |
37977 | test -z "$as_dir" && as_dir=. | |
37978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37980 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
37981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37982 | break 2 | |
37983 | fi | |
37984 | done | |
37985 | done | |
37986 | ||
37987 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
37988 | fi | |
37989 | fi | |
37990 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
37991 | if test -n "$ac_ct_RANLIB"; then | |
37992 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
37993 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
37994 | else | |
37995 | echo "$as_me:$LINENO: result: no" >&5 | |
37996 | echo "${ECHO_T}no" >&6 | |
37997 | fi | |
37998 | ||
37999 | RANLIB=$ac_ct_RANLIB | |
38000 | else | |
38001 | RANLIB="$ac_cv_prog_RANLIB" | |
38002 | fi | |
38003 | ||
38004 | # Find a good install program. We prefer a C program (faster), | |
38005 | # so one script is as good as another. But avoid the broken or | |
38006 | # incompatible versions: | |
38007 | # SysV /etc/install, /usr/sbin/install | |
38008 | # SunOS /usr/etc/install | |
38009 | # IRIX /sbin/install | |
38010 | # AIX /bin/install | |
38011 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
38012 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
38013 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
38014 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 38015 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
38016 | # ./install, which can be erroneously created by make from ./install.sh. |
38017 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
38018 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
38019 | if test -z "$INSTALL"; then | |
38020 | if test "${ac_cv_path_install+set}" = set; then | |
38021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38022 | else | |
38023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38024 | for as_dir in $PATH | |
38025 | do | |
38026 | IFS=$as_save_IFS | |
38027 | test -z "$as_dir" && as_dir=. | |
38028 | # Account for people who put trailing slashes in PATH elements. | |
38029 | case $as_dir/ in | |
38030 | ./ | .// | /cC/* | \ | |
38031 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 38032 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
38033 | /usr/ucb/* ) ;; |
38034 | *) | |
38035 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
38036 | # Don't use installbsd from OSF since it installs stuff as root | |
38037 | # by default. | |
38038 | for ac_prog in ginstall scoinst install; do | |
38039 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
38040 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
38041 | if test $ac_prog = install && | |
38042 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38043 | # AIX install. It has an incompatible calling convention. | |
38044 | : | |
38045 | elif test $ac_prog = install && | |
38046 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
38047 | # program-specific install script used by HP pwplus--don't use. | |
38048 | : | |
38049 | else | |
38050 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
38051 | break 3 | |
38052 | fi | |
38053 | fi | |
a848cd7e SC |
38054 | done |
38055 | done | |
38056 | ;; | |
38057 | esac | |
38058 | done | |
38059 | ||
38060 | ||
38061 | fi | |
38062 | if test "${ac_cv_path_install+set}" = set; then | |
38063 | INSTALL=$ac_cv_path_install | |
38064 | else | |
38065 | # As a last resort, use the slow shell script. We don't cache a | |
38066 | # path for INSTALL within a source directory, because that will | |
38067 | # break other packages using the cache if that directory is | |
38068 | # removed, or if the path is relative. | |
38069 | INSTALL=$ac_install_sh | |
38070 | fi | |
38071 | fi | |
38072 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
38073 | echo "${ECHO_T}$INSTALL" >&6 | |
38074 | ||
38075 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
38076 | # It thinks the first close brace ends the variable substitution. | |
38077 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
38078 | ||
38079 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
38080 | ||
38081 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
38082 | ||
38083 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
38084 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
38085 | LN_S=$as_ln_s | |
38086 | if test "$LN_S" = "ln -s"; then | |
38087 | echo "$as_me:$LINENO: result: yes" >&5 | |
38088 | echo "${ECHO_T}yes" >&6 | |
38089 | else | |
38090 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
38091 | echo "${ECHO_T}no, using $LN_S" >&6 | |
38092 | fi | |
38093 | ||
38094 | ||
38095 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38096 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 38097 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
38098 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38100 | else | |
38101 | cat >conftest.make <<\_ACEOF | |
38102 | all: | |
38103 | @echo 'ac_maketemp="$(MAKE)"' | |
38104 | _ACEOF | |
38105 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38106 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38107 | if test -n "$ac_maketemp"; then | |
38108 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38109 | else | |
38110 | eval ac_cv_prog_make_${ac_make}_set=no | |
38111 | fi | |
38112 | rm -f conftest.make | |
38113 | fi | |
38114 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38115 | echo "$as_me:$LINENO: result: yes" >&5 | |
38116 | echo "${ECHO_T}yes" >&6 | |
38117 | SET_MAKE= | |
38118 | else | |
38119 | echo "$as_me:$LINENO: result: no" >&5 | |
38120 | echo "${ECHO_T}no" >&6 | |
38121 | SET_MAKE="MAKE=${MAKE-make}" | |
38122 | fi | |
38123 | ||
38124 | ||
38125 | ||
38126 | if test -n "$ac_tool_prefix"; then | |
38127 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
38128 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
38129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38131 | if test "${ac_cv_prog_AR+set}" = set; then | |
38132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38133 | else | |
38134 | if test -n "$AR"; then | |
38135 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38136 | else | |
38137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38138 | for as_dir in $PATH | |
38139 | do | |
38140 | IFS=$as_save_IFS | |
38141 | test -z "$as_dir" && as_dir=. | |
38142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38144 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
38145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38146 | break 2 | |
38147 | fi | |
38148 | done | |
38149 | done | |
38150 | ||
38151 | fi | |
38152 | fi | |
38153 | AR=$ac_cv_prog_AR | |
38154 | if test -n "$AR"; then | |
38155 | echo "$as_me:$LINENO: result: $AR" >&5 | |
38156 | echo "${ECHO_T}$AR" >&6 | |
38157 | else | |
38158 | echo "$as_me:$LINENO: result: no" >&5 | |
38159 | echo "${ECHO_T}no" >&6 | |
38160 | fi | |
38161 | ||
38162 | fi | |
38163 | if test -z "$ac_cv_prog_AR"; then | |
38164 | ac_ct_AR=$AR | |
38165 | # Extract the first word of "ar", so it can be a program name with args. | |
38166 | set dummy ar; ac_word=$2 | |
38167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38169 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
38170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38171 | else | |
38172 | if test -n "$ac_ct_AR"; then | |
38173 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38174 | else | |
38175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38176 | for as_dir in $PATH | |
38177 | do | |
38178 | IFS=$as_save_IFS | |
38179 | test -z "$as_dir" && as_dir=. | |
38180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38182 | ac_cv_prog_ac_ct_AR="ar" | |
38183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38184 | break 2 | |
38185 | fi | |
38186 | done | |
38187 | done | |
38188 | ||
38189 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
38190 | fi | |
38191 | fi | |
38192 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38193 | if test -n "$ac_ct_AR"; then | |
38194 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
38195 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
38196 | else | |
38197 | echo "$as_me:$LINENO: result: no" >&5 | |
38198 | echo "${ECHO_T}no" >&6 | |
38199 | fi | |
38200 | ||
38201 | AR=$ac_ct_AR | |
38202 | else | |
38203 | AR="$ac_cv_prog_AR" | |
38204 | fi | |
38205 | ||
38206 | if test -n "$ac_tool_prefix"; then | |
38207 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38208 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
38209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38211 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
38212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38213 | else | |
38214 | if test -n "$STRIP"; then | |
38215 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38216 | else | |
38217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38218 | for as_dir in $PATH | |
38219 | do | |
38220 | IFS=$as_save_IFS | |
38221 | test -z "$as_dir" && as_dir=. | |
38222 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38224 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
38225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38226 | break 2 | |
38227 | fi | |
38228 | done | |
38229 | done | |
38230 | ||
38231 | fi | |
38232 | fi | |
38233 | STRIP=$ac_cv_prog_STRIP | |
38234 | if test -n "$STRIP"; then | |
38235 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
38236 | echo "${ECHO_T}$STRIP" >&6 | |
38237 | else | |
38238 | echo "$as_me:$LINENO: result: no" >&5 | |
38239 | echo "${ECHO_T}no" >&6 | |
38240 | fi | |
38241 | ||
38242 | fi | |
38243 | if test -z "$ac_cv_prog_STRIP"; then | |
38244 | ac_ct_STRIP=$STRIP | |
38245 | # Extract the first word of "strip", so it can be a program name with args. | |
38246 | set dummy strip; ac_word=$2 | |
38247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38249 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
38250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38251 | else | |
38252 | if test -n "$ac_ct_STRIP"; then | |
38253 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38254 | else | |
38255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38256 | for as_dir in $PATH | |
38257 | do | |
38258 | IFS=$as_save_IFS | |
38259 | test -z "$as_dir" && as_dir=. | |
38260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38262 | ac_cv_prog_ac_ct_STRIP="strip" | |
38263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38264 | break 2 | |
38265 | fi | |
38266 | done | |
38267 | done | |
38268 | ||
38269 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
38270 | fi | |
38271 | fi | |
38272 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38273 | if test -n "$ac_ct_STRIP"; then | |
38274 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
38275 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
38276 | else | |
38277 | echo "$as_me:$LINENO: result: no" >&5 | |
38278 | echo "${ECHO_T}no" >&6 | |
38279 | fi | |
38280 | ||
38281 | STRIP=$ac_ct_STRIP | |
38282 | else | |
38283 | STRIP="$ac_cv_prog_STRIP" | |
38284 | fi | |
38285 | ||
38286 | if test -n "$ac_tool_prefix"; then | |
38287 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38288 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
38289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38291 | if test "${ac_cv_prog_NM+set}" = set; then | |
38292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38293 | else | |
38294 | if test -n "$NM"; then | |
38295 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38296 | else | |
38297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38298 | for as_dir in $PATH | |
38299 | do | |
38300 | IFS=$as_save_IFS | |
38301 | test -z "$as_dir" && as_dir=. | |
38302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38304 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
38305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38306 | break 2 | |
38307 | fi | |
38308 | done | |
38309 | done | |
38310 | ||
38311 | fi | |
38312 | fi | |
38313 | NM=$ac_cv_prog_NM | |
38314 | if test -n "$NM"; then | |
38315 | echo "$as_me:$LINENO: result: $NM" >&5 | |
38316 | echo "${ECHO_T}$NM" >&6 | |
38317 | else | |
38318 | echo "$as_me:$LINENO: result: no" >&5 | |
38319 | echo "${ECHO_T}no" >&6 | |
38320 | fi | |
38321 | ||
38322 | fi | |
38323 | if test -z "$ac_cv_prog_NM"; then | |
38324 | ac_ct_NM=$NM | |
38325 | # Extract the first word of "nm", so it can be a program name with args. | |
38326 | set dummy nm; ac_word=$2 | |
38327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38329 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
38330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38331 | else | |
38332 | if test -n "$ac_ct_NM"; then | |
38333 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38334 | else | |
38335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38336 | for as_dir in $PATH | |
38337 | do | |
38338 | IFS=$as_save_IFS | |
38339 | test -z "$as_dir" && as_dir=. | |
38340 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38342 | ac_cv_prog_ac_ct_NM="nm" | |
38343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38344 | break 2 | |
38345 | fi | |
38346 | done | |
38347 | done | |
38348 | ||
38349 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
38350 | fi | |
38351 | fi | |
38352 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38353 | if test -n "$ac_ct_NM"; then | |
38354 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
38355 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
38356 | else | |
38357 | echo "$as_me:$LINENO: result: no" >&5 | |
38358 | echo "${ECHO_T}no" >&6 | |
38359 | fi | |
38360 | ||
38361 | NM=$ac_ct_NM | |
38362 | else | |
38363 | NM="$ac_cv_prog_NM" | |
38364 | fi | |
38365 | ||
38366 | ||
38367 | case ${BAKEFILE_HOST} in | |
38368 | *-hp-hpux* ) | |
a49baeab | 38369 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38370 | ;; |
38371 | *) INSTALL_DIR="$INSTALL -d" | |
38372 | ;; | |
38373 | esac | |
38374 | ||
38375 | ||
38376 | LDFLAGS_GUI= | |
38377 | case ${BAKEFILE_HOST} in | |
38378 | *-*-cygwin* | *-*-mingw32* ) | |
38379 | LDFLAGS_GUI="-mwindows" | |
38380 | esac | |
38381 | ||
38382 | ||
38383 | fi | |
38384 | ||
38385 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
38386 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
38387 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
38388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38389 | else | |
38390 | ||
38391 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38392 | egrep -s GNU > /dev/null); then | |
38393 | bakefile_cv_prog_makeisgnu="yes" | |
38394 | else | |
38395 | bakefile_cv_prog_makeisgnu="no" | |
38396 | fi | |
38397 | ||
38398 | fi | |
38399 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
38400 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
38401 | ||
38402 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38403 | IF_GNU_MAKE="" | |
38404 | else | |
38405 | IF_GNU_MAKE="#" | |
38406 | fi | |
38407 | ||
38408 | ||
38409 | ||
38410 | PLATFORM_UNIX=0 | |
38411 | PLATFORM_WIN32=0 | |
38412 | PLATFORM_MSDOS=0 | |
38413 | PLATFORM_MAC=0 | |
38414 | PLATFORM_MACOSX=0 | |
38415 | PLATFORM_OS2=0 | |
38416 | ||
38417 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38418 | case "${BAKEFILE_HOST}" in | |
38419 | *-*-cygwin* | *-*-mingw32* ) | |
38420 | PLATFORM_WIN32=1 | |
38421 | ;; | |
38422 | *-pc-msdosdjgpp ) | |
38423 | PLATFORM_MSDOS=1 | |
38424 | ;; | |
38425 | *-pc-os2_emx | *-pc-os2-emx ) | |
38426 | PLATFORM_OS2=1 | |
38427 | ;; | |
38428 | powerpc-*-darwin* ) | |
38429 | PLATFORM_MAC=1 | |
38430 | PLATFORM_MACOSX=1 | |
38431 | ;; | |
38432 | * ) | |
38433 | PLATFORM_UNIX=1 | |
38434 | ;; | |
38435 | esac | |
38436 | else | |
38437 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38438 | win32 ) | |
38439 | PLATFORM_WIN32=1 | |
38440 | ;; | |
38441 | msdos ) | |
38442 | PLATFORM_MSDOS=1 | |
38443 | ;; | |
38444 | os2 ) | |
38445 | PLATFORM_OS2=1 | |
38446 | ;; | |
38447 | darwin ) | |
38448 | PLATFORM_MAC=1 | |
38449 | PLATFORM_MACOSX=1 | |
38450 | ;; | |
38451 | unix ) | |
38452 | PLATFORM_UNIX=1 | |
38453 | ;; | |
38454 | * ) | |
38455 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
38456 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
38457 | { (exit 1); exit 1; }; } | |
38458 | ;; | |
38459 | esac | |
38460 | fi | |
38461 | ||
38462 | ||
38463 | ||
38464 | ||
38465 | ||
38466 | ||
38467 | ||
38468 | ||
38469 | ||
38470 | # Check whether --enable-omf or --disable-omf was given. | |
38471 | if test "${enable_omf+set}" = set; then | |
38472 | enableval="$enable_omf" | |
38473 | bk_os2_use_omf="$enableval" | |
38474 | fi; | |
38475 | ||
38476 | case "${BAKEFILE_HOST}" in | |
38477 | *-*-darwin* ) | |
38478 | CFLAGS="$CFLAGS -fno-common" | |
38479 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38480 | ;; | |
38481 | ||
38482 | *-pc-os2_emx | *-pc-os2-emx ) | |
38483 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38484 | AR=emxomfar | |
38485 | RANLIB=: | |
38486 | LDFLAGS="-Zomf $LDFLAGS" | |
38487 | CFLAGS="-Zomf $CFLAGS" | |
38488 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38489 | OS2_LIBEXT="lib" | |
38490 | else | |
38491 | OS2_LIBEXT="a" | |
38492 | fi | |
38493 | ;; | |
38494 | esac | |
38495 | ||
38496 | ||
38497 | SO_SUFFIX="so" | |
38498 | SO_SUFFIX_MODULE="so" | |
38499 | EXEEXT="" | |
38500 | LIBPREFIX="lib" | |
38501 | LIBEXT=".a" | |
38502 | DLLPREFIX="lib" | |
38503 | DLLPREFIX_MODULE="" | |
38504 | DLLIMP_SUFFIX="" | |
38505 | ||
38506 | case "${BAKEFILE_HOST}" in | |
38507 | *-hp-hpux* ) | |
38508 | SO_SUFFIX="sl" | |
38509 | SO_SUFFIX_MODULE="sl" | |
38510 | ;; | |
38511 | *-*-aix* ) | |
38512 | SO_SUFFIX="a" | |
38513 | SO_SUFFIX_MODULE="a" | |
38514 | ;; | |
38515 | *-*-cygwin* | *-*-mingw32* ) | |
38516 | SO_SUFFIX="dll" | |
38517 | SO_SUFFIX_MODULE="dll" | |
38518 | DLLIMP_SUFFIX="dll.a" | |
38519 | EXEEXT=".exe" | |
38520 | DLLPREFIX="" | |
38521 | ;; | |
38522 | *-pc-msdosdjgpp ) | |
38523 | EXEEXT=".exe" | |
38524 | DLLPREFIX="" | |
38525 | ;; | |
38526 | *-pc-os2_emx | *-pc-os2-emx ) | |
38527 | SO_SUFFIX="dll" | |
38528 | SO_SUFFIX_MODULE="dll" | |
38529 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38530 | EXEEXT=".exe" | |
38531 | DLLPREFIX="" | |
38532 | LIBPREFIX="" | |
38533 | LIBEXT=".$OS2_LIBEXT" | |
38534 | ;; | |
38535 | powerpc-*-darwin* ) | |
38536 | SO_SUFFIX="dylib" | |
38537 | SO_SUFFIX_MODULE="bundle" | |
38538 | ;; | |
38539 | esac | |
38540 | ||
38541 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38542 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38543 | fi | |
38544 | ||
38545 | ||
38546 | ||
38547 | ||
38548 | ||
38549 | ||
38550 | ||
38551 | ||
38552 | ||
38553 | ||
38554 | ||
38555 | SHARED_LD_CC="\$(CC) -shared -o" | |
38556 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
38557 | ||
38558 | if test "x$GCC" = "xyes"; then | |
38559 | PIC_FLAG="-fPIC" | |
38560 | fi | |
38561 | ||
38562 | case "${BAKEFILE_HOST}" in | |
38563 | *-hp-hpux* ) | |
38564 | if test "x$GCC" = "xyes"; then | |
38565 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
38566 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
38567 | else | |
38568 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
38569 | ||
38570 | SHARED_LD_CC="${CC} -b -o" | |
38571 | SHARED_LD_CXX="${CXX} -b -o" | |
38572 | PIC_FLAG="+Z" | |
38573 | fi | |
38574 | ;; | |
38575 | ||
38576 | *-*-linux* ) | |
38577 | if test "x$GCC" != "xyes"; then | |
38578 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
38579 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
38580 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
38581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38582 | else | |
38583 | ||
38584 | cat >conftest.$ac_ext <<_ACEOF | |
38585 | /* confdefs.h. */ | |
38586 | _ACEOF | |
38587 | cat confdefs.h >>conftest.$ac_ext | |
38588 | cat >>conftest.$ac_ext <<_ACEOF | |
38589 | /* end confdefs.h. */ | |
38590 | ||
38591 | int | |
38592 | main () | |
38593 | { | |
38594 | ||
38595 | #ifndef __INTEL_COMPILER | |
38596 | #error Not icc | |
38597 | #endif | |
38598 | ||
38599 | ; | |
38600 | return 0; | |
38601 | } | |
38602 | _ACEOF | |
38603 | rm -f conftest.$ac_objext | |
38604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38606 | ac_status=$? |
ac1cb8d3 VS |
38607 | grep -v '^ *+' conftest.er1 >conftest.err |
38608 | rm -f conftest.er1 | |
38609 | cat conftest.err >&5 | |
a848cd7e SC |
38610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38611 | (exit $ac_status); } && | |
d1c38808 | 38612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38614 | (eval $ac_try) 2>&5 | |
38615 | ac_status=$? | |
38616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38617 | (exit $ac_status); }; } && | |
38618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38620 | (eval $ac_try) 2>&5 | |
38621 | ac_status=$? | |
38622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38623 | (exit $ac_status); }; }; then | |
38624 | bakefile_cv_prog_icc=yes | |
38625 | else | |
38626 | echo "$as_me: failed program was:" >&5 | |
38627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38628 | ||
38629 | bakefile_cv_prog_icc=no | |
38630 | ||
38631 | fi | |
ac1cb8d3 | 38632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38633 | |
38634 | fi | |
38635 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
38636 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
38637 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
38638 | PIC_FLAG="-KPIC" | |
38639 | fi | |
38640 | fi | |
38641 | ;; | |
38642 | ||
38643 | *-*-solaris2* ) | |
38644 | if test "x$GCC" != xyes ; then | |
38645 | SHARED_LD_CC="${CC} -G -o" | |
38646 | SHARED_LD_CXX="${CXX} -G -o" | |
38647 | PIC_FLAG="-KPIC" | |
38648 | fi | |
38649 | ;; | |
38650 | ||
38651 | *-*-darwin* ) | |
38652 | ||
38653 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
38654 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
38655 | if test "${wx_cv_gcc31+set}" = set; then | |
38656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38657 | else | |
38658 | ||
38659 | cat >conftest.$ac_ext <<_ACEOF | |
38660 | /* confdefs.h. */ | |
38661 | _ACEOF | |
38662 | cat confdefs.h >>conftest.$ac_ext | |
38663 | cat >>conftest.$ac_ext <<_ACEOF | |
38664 | /* end confdefs.h. */ | |
38665 | ||
38666 | int | |
38667 | main () | |
38668 | { | |
38669 | ||
38670 | #if (__GNUC__ < 3) || \ | |
38671 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
38672 | #error old gcc | |
38673 | #endif | |
38674 | ||
38675 | ; | |
38676 | return 0; | |
38677 | } | |
38678 | _ACEOF | |
38679 | rm -f conftest.$ac_objext | |
38680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38681 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38682 | ac_status=$? |
ac1cb8d3 VS |
38683 | grep -v '^ *+' conftest.er1 >conftest.err |
38684 | rm -f conftest.er1 | |
38685 | cat conftest.err >&5 | |
a848cd7e SC |
38686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38687 | (exit $ac_status); } && | |
d1c38808 | 38688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38690 | (eval $ac_try) 2>&5 | |
38691 | ac_status=$? | |
38692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38693 | (exit $ac_status); }; } && | |
38694 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38696 | (eval $ac_try) 2>&5 | |
38697 | ac_status=$? | |
38698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38699 | (exit $ac_status); }; }; then | |
38700 | ||
38701 | wx_cv_gcc31=yes | |
38702 | ||
38703 | else | |
38704 | echo "$as_me: failed program was:" >&5 | |
38705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38706 | ||
38707 | ||
38708 | wx_cv_gcc31=no | |
38709 | ||
38710 | ||
38711 | fi | |
ac1cb8d3 | 38712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38713 | |
38714 | fi | |
38715 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
38716 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
38717 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
38718 | |
38719 | D='$' | |
38720 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38721 | #!/bin/sh |
38722 | #----------------------------------------------------------------------------- | |
38723 | #-- Name: distrib/mac/shared-ld-sh | |
38724 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38725 | #-- Author: Gilles Depeyrot | |
38726 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38727 | #-- Licence: any use permitted | |
38728 | #----------------------------------------------------------------------------- | |
38729 | ||
38730 | verbose=0 | |
38731 | args="" | |
38732 | objects="" | |
38733 | linking_flag="-dynamiclib" | |
38734 | ||
473276a9 VS |
38735 | while test ${D}# -gt 0; do |
38736 | case ${D}1 in | |
a848cd7e SC |
38737 | |
38738 | -v) | |
38739 | verbose=1 | |
38740 | ;; | |
38741 | ||
38742 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38743 | # collect these options and values | |
473276a9 | 38744 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38745 | shift |
38746 | ;; | |
38747 | ||
38748 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
38749 | # collect these options | |
473276a9 | 38750 | args="${D}{args} ${D}1" |
a848cd7e SC |
38751 | ;; |
38752 | ||
38753 | -dynamiclib|-bundle) | |
473276a9 | 38754 | linking_flag="${D}1" |
a848cd7e SC |
38755 | ;; |
38756 | ||
38757 | -*) | |
473276a9 | 38758 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38759 | exit 1 |
38760 | ;; | |
38761 | ||
38762 | *.o | *.a | *.dylib) | |
38763 | # collect object files | |
473276a9 | 38764 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38765 | ;; |
38766 | ||
38767 | *) | |
473276a9 | 38768 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38769 | exit 1 |
38770 | ;; | |
38771 | ||
38772 | esac | |
38773 | shift | |
38774 | done | |
38775 | ||
38776 | # | |
38777 | # Link one module containing all the others | |
38778 | # | |
473276a9 VS |
38779 | if test ${D}{verbose} = 1; then |
38780 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 38781 | fi |
473276a9 VS |
38782 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
38783 | status=${D}? | |
38784 | if test ${D}{status} != 0; then | |
38785 | exit ${D}{status} | |
a848cd7e SC |
38786 | fi |
38787 | ||
38788 | # | |
38789 | # Link the shared library from the single module created | |
38790 | # | |
473276a9 VS |
38791 | if test ${D}{verbose} = 1; then |
38792 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 38793 | fi |
473276a9 VS |
38794 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
38795 | status=${D}? | |
38796 | if test ${D}{status} != 0; then | |
38797 | exit ${D}{status} | |
a848cd7e SC |
38798 | fi |
38799 | ||
38800 | # | |
38801 | # Remove intermediate module | |
38802 | # | |
473276a9 | 38803 | rm -f master.${D}${D}.o |
a848cd7e SC |
38804 | |
38805 | exit 0 | |
38806 | EOF | |
473276a9 | 38807 | |
a848cd7e SC |
38808 | chmod +x shared-ld-sh |
38809 | ||
38810 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
38811 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
38812 | SHARED_LD_CXX="$SHARED_LD_CC" | |
38813 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
38814 | else | |
38815 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38816 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
38817 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
38818 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
38819 | fi | |
38820 | ||
38821 | PIC_FLAG="-dynamic -fPIC" | |
38822 | ;; | |
38823 | ||
38824 | *-*-aix* ) | |
38825 | if test "x$GCC" != "xyes"; then | |
38826 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
38827 | set dummy makeC++SharedLib; ac_word=$2 | |
38828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38830 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
38831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38832 | else | |
38833 | if test -n "$AIX_CXX_LD"; then | |
38834 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38835 | else | |
38836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38837 | for as_dir in $PATH | |
38838 | do | |
38839 | IFS=$as_save_IFS | |
38840 | test -z "$as_dir" && as_dir=. | |
38841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38843 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
38844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38845 | break 2 | |
38846 | fi | |
38847 | done | |
38848 | done | |
38849 | ||
38850 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38851 | fi | |
38852 | fi | |
38853 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38854 | if test -n "$AIX_CXX_LD"; then | |
38855 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
38856 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
38857 | else | |
38858 | echo "$as_me:$LINENO: result: no" >&5 | |
38859 | echo "${ECHO_T}no" >&6 | |
38860 | fi | |
38861 | ||
38862 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
38863 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
38864 | fi | |
38865 | ;; | |
38866 | ||
38867 | *-*-beos* ) | |
38868 | SHARED_LD_CC="${LD} -shared -o" | |
38869 | SHARED_LD_CXX="${LD} -shared -o" | |
38870 | ;; | |
38871 | ||
38872 | *-*-irix* ) | |
38873 | if test "x$GCC" != "xyes"; then | |
38874 | PIC_FLAG="-KPIC" | |
38875 | fi | |
38876 | ;; | |
38877 | ||
38878 | *-*-cygwin* | *-*-mingw32* ) | |
38879 | PIC_FLAG="" | |
38880 | ;; | |
38881 | ||
38882 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
38883 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
38884 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 38885 | PIC_FLAG="" |
473276a9 VS |
38886 | |
38887 | D='$' | |
38888 | cat <<EOF >dllar.sh | |
38889 | #!/bin/sh | |
38890 | # | |
38891 | # dllar - a tool to build both a .dll and an .a file | |
38892 | # from a set of object (.o) files for EMX/OS2. | |
38893 | # | |
38894 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38895 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38896 | # | |
38897 | # This script will accept a set of files on the command line. | |
38898 | # All the public symbols from the .o files will be exported into | |
38899 | # a .DEF file, then linker will be run (through gcc) against them to | |
38900 | # build a shared library consisting of all given .o files. All libraries | |
38901 | # (.a) will be first decompressed into component .o files then act as | |
38902 | # described above. You can optionally give a description (-d "description") | |
38903 | # which will be put into .DLL. To see the list of accepted options (as well | |
38904 | # as command-line format) simply run this program without options. The .DLL | |
38905 | # is built to be imported by name (there is no guarantee that new versions | |
38906 | # of the library you build will have same ordinals for same symbols). | |
38907 | # | |
38908 | # dllar is free software; you can redistribute it and/or modify | |
38909 | # it under the terms of the GNU General Public License as published by | |
38910 | # the Free Software Foundation; either version 2, or (at your option) | |
38911 | # any later version. | |
38912 | # | |
38913 | # dllar is distributed in the hope that it will be useful, | |
38914 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38915 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38916 | # GNU General Public License for more details. | |
38917 | # | |
38918 | # You should have received a copy of the GNU General Public License | |
38919 | # along with dllar; see the file COPYING. If not, write to the Free | |
38920 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38921 | # 02111-1307, USA. | |
38922 | ||
38923 | # To successfuly run this program you will need: | |
38924 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38925 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38926 | # - gcc | |
38927 | # (used to build the .dll) | |
38928 | # - emxexp | |
38929 | # (used to create .def file from .o files) | |
38930 | # - emximp | |
38931 | # (used to create .a file from .def file) | |
38932 | # - GNU text utilites (cat, sort, uniq) | |
38933 | # used to process emxexp output | |
38934 | # - GNU file utilities (mv, rm) | |
38935 | # - GNU sed | |
38936 | # - lxlite (optional, see flag below) | |
38937 | # (used for general .dll cleanup) | |
38938 | # | |
38939 | ||
38940 | flag_USE_LXLITE=1; | |
38941 | ||
38942 | # | |
38943 | # helper functions | |
38944 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38945 | # second argument (suffix to remove) is given | |
38946 | basnam(){ | |
38947 | case ${D}# in | |
38948 | 1) | |
38949 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
38950 | ;; | |
38951 | 2) | |
38952 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38953 | ;; | |
38954 | *) | |
38955 | echo "error in basnam ${D}*" | |
38956 | exit 8 | |
38957 | ;; | |
38958 | esac | |
38959 | } | |
38960 | ||
38961 | # Cleanup temporary files and output | |
38962 | CleanUp() { | |
38963 | cd ${D}curDir | |
38964 | for i in ${D}inputFiles ; do | |
38965 | case ${D}i in | |
38966 | *!) | |
38967 | rm -rf \`basnam ${D}i !\` | |
38968 | ;; | |
38969 | *) | |
38970 | ;; | |
38971 | esac | |
38972 | done | |
38973 | ||
38974 | # Kill result in case of failure as there is just to many stupid make/nmake | |
38975 | # things out there which doesn't do this. | |
2057db16 | 38976 | if [] ${D}# -eq 0 []; then |
473276a9 VS |
38977 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
38978 | fi | |
38979 | } | |
38980 | ||
38981 | # Print usage and exit script with rc=1. | |
38982 | PrintHelp() { | |
2057db16 VS |
38983 | echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]' |
38984 | echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]' | |
38985 | echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"' | |
38986 | echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]' | |
38987 | echo ' []*.o[] []*.a[]' | |
473276a9 VS |
38988 | echo '*> "output_file" should have no extension.' |
38989 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
38990 | echo ' The import library name is derived from this and is set to "name".a,' | |
38991 | echo ' unless overridden by -import' | |
38992 | echo '*> "importlib_name" should have no extension.' | |
38993 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
38994 | echo ' This name is used as the import library name and may be longer and' | |
38995 | echo ' more descriptive than the DLL name which has to follow the old ' | |
38996 | echo ' 8.3 convention of FAT.' | |
38997 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
38998 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
38999 | echo ' These flags will be put at the start of GCC command line.' | |
2057db16 VS |
39000 | echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.' |
39001 | echo '*> -ex[]clude[] defines symbols which will not be exported. You can define' | |
473276a9 VS |
39002 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39003 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39004 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
2057db16 | 39005 | echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39006 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
2057db16 | 39007 | echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s' |
473276a9 | 39008 | echo ' C runtime DLLs.' |
2057db16 | 39009 | echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39010 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39011 | echo ' unchanged to GCC at the end of command line.' | |
39012 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39013 | echo ' the basename for DLL and import library will be set to library name,' | |
39014 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39015 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39016 | echo ' library will be renamed into gcc_s.a.' | |
39017 | echo '--------' | |
39018 | echo 'Example:' | |
39019 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39020 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39021 | CleanUp | |
39022 | exit 1 | |
39023 | } | |
39024 | ||
39025 | # Execute a command. | |
39026 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39027 | # @Uses Whatever CleanUp() uses. | |
39028 | doCommand() { | |
39029 | echo "${D}*" | |
39030 | eval ${D}* | |
39031 | rcCmd=${D}? | |
39032 | ||
2057db16 | 39033 | if [] ${D}rcCmd -ne 0 []; then |
473276a9 VS |
39034 | echo "command failed, exit code="${D}rcCmd |
39035 | CleanUp | |
39036 | exit ${D}rcCmd | |
39037 | fi | |
39038 | } | |
39039 | ||
39040 | # main routine | |
39041 | # setup globals | |
39042 | cmdLine=${D}* | |
39043 | outFile="" | |
39044 | outimpFile="" | |
39045 | inputFiles="" | |
39046 | description="" | |
39047 | CC=gcc.exe | |
39048 | CFLAGS="-s -Zcrtdll" | |
39049 | EXTRA_CFLAGS="" | |
39050 | EXPORT_BY_ORDINALS=0 | |
39051 | exclude_symbols="" | |
39052 | library_flags="" | |
39053 | curDir=\`pwd\` | |
39054 | curDirS=curDir | |
39055 | case ${D}curDirS in | |
39056 | */) | |
39057 | ;; | |
39058 | *) | |
39059 | curDirS=${D}{curDirS}"/" | |
39060 | ;; | |
39061 | esac | |
39062 | # Parse commandline | |
39063 | libsToLink=0 | |
2057db16 | 39064 | while [] ${D}1 []; do |
473276a9 VS |
39065 | case ${D}1 in |
39066 | -ord*) | |
39067 | EXPORT_BY_ORDINALS=1; | |
39068 | ;; | |
39069 | -o*) | |
39070 | shift | |
39071 | outFile=${D}1 | |
39072 | ;; | |
39073 | -i*) | |
39074 | shift | |
39075 | outimpFile=${D}1 | |
39076 | ;; | |
39077 | -d*) | |
39078 | shift | |
39079 | description=${D}1 | |
39080 | ;; | |
39081 | -f*) | |
39082 | shift | |
39083 | CFLAGS=${D}1 | |
39084 | ;; | |
39085 | -c*) | |
39086 | shift | |
39087 | CC=${D}1 | |
39088 | ;; | |
39089 | -h*) | |
39090 | PrintHelp | |
39091 | ;; | |
39092 | -ex*) | |
39093 | shift | |
39094 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39095 | ;; | |
39096 | -libf*) | |
39097 | shift | |
39098 | library_flags=${D}{library_flags}${D}1" " | |
39099 | ;; | |
39100 | -nocrt*) | |
39101 | CFLAGS="-s" | |
39102 | ;; | |
39103 | -nolxl*) | |
39104 | flag_USE_LXLITE=0 | |
39105 | ;; | |
39106 | -* | /*) | |
39107 | case ${D}1 in | |
39108 | -L* | -l*) | |
39109 | libsToLink=1 | |
39110 | ;; | |
39111 | *) | |
39112 | ;; | |
39113 | esac | |
39114 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39115 | ;; | |
39116 | *) | |
39117 | found=0; | |
2057db16 | 39118 | if [] ${D}libsToLink -ne 0 []; then |
473276a9 VS |
39119 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39120 | else | |
39121 | for file in ${D}1 ; do | |
2057db16 | 39122 | if [] -f ${D}file []; then |
473276a9 VS |
39123 | inputFiles="${D}{inputFiles} ${D}file" |
39124 | found=1 | |
39125 | fi | |
39126 | done | |
2057db16 | 39127 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39128 | echo "ERROR: No file(s) found: "${D}1 |
39129 | exit 8 | |
39130 | fi | |
39131 | fi | |
39132 | ;; | |
39133 | esac | |
39134 | shift | |
39135 | done # iterate cmdline words | |
39136 | ||
39137 | # | |
2057db16 | 39138 | if [] -z "${D}inputFiles" []; then |
473276a9 VS |
39139 | echo "dllar: no input files" |
39140 | PrintHelp | |
39141 | fi | |
39142 | ||
39143 | # Now extract all .o files from .a files | |
39144 | newInputFiles="" | |
39145 | for file in ${D}inputFiles ; do | |
39146 | case ${D}file in | |
39147 | *.a | *.lib) | |
39148 | case ${D}file in | |
39149 | *.a) | |
39150 | suffix=".a" | |
39151 | AR="ar" | |
39152 | ;; | |
39153 | *.lib) | |
39154 | suffix=".lib" | |
39155 | AR="emxomfar" | |
39156 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39157 | ;; | |
39158 | *) | |
39159 | ;; | |
39160 | esac | |
39161 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39162 | mkdir ${D}dirname | |
2057db16 | 39163 | if [] ${D}? -ne 0 []; then |
473276a9 VS |
39164 | echo "Failed to create subdirectory ./${D}dirname" |
39165 | CleanUp | |
39166 | exit 8; | |
39167 | fi | |
39168 | # Append '!' to indicate archive | |
39169 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39170 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39171 | cd ${D}curDir | |
39172 | found=0; | |
39173 | for subfile in ${D}dirname/*.o* ; do | |
2057db16 | 39174 | if [] -f ${D}subfile []; then |
473276a9 | 39175 | found=1 |
2057db16 | 39176 | if [] -s ${D}subfile []; then |
473276a9 VS |
39177 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39178 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39179 | fi | |
39180 | fi | |
39181 | done | |
2057db16 | 39182 | if [] ${D}found -eq 0 []; then |
473276a9 VS |
39183 | echo "WARNING: there are no files in archive \'${D}file\'" |
39184 | fi | |
39185 | ;; | |
39186 | *) | |
39187 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39188 | ;; | |
39189 | esac | |
39190 | done | |
39191 | inputFiles="${D}newInputFiles" | |
39192 | ||
39193 | # Output filename(s). | |
39194 | do_backup=0; | |
2057db16 | 39195 | if [] -z ${D}outFile []; then |
473276a9 VS |
39196 | do_backup=1; |
39197 | set outFile ${D}inputFiles; outFile=${D}2 | |
39198 | fi | |
39199 | ||
39200 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39201 | case ${D}outFile in | |
39202 | *_%!) | |
39203 | outFile=\`basnam ${D}outFile _%!\` | |
39204 | ;; | |
39205 | *) | |
39206 | ;; | |
39207 | esac | |
39208 | case ${D}outFile in | |
39209 | *.dll) | |
39210 | outFile=\`basnam ${D}outFile .dll\` | |
39211 | ;; | |
39212 | *.DLL) | |
39213 | outFile=\`basnam ${D}outFile .DLL\` | |
39214 | ;; | |
39215 | *.o) | |
39216 | outFile=\`basnam ${D}outFile .o\` | |
39217 | ;; | |
39218 | *.obj) | |
39219 | outFile=\`basnam ${D}outFile .obj\` | |
39220 | ;; | |
39221 | *.a) | |
39222 | outFile=\`basnam ${D}outFile .a\` | |
39223 | ;; | |
39224 | *.lib) | |
39225 | outFile=\`basnam ${D}outFile .lib\` | |
39226 | ;; | |
39227 | *) | |
39228 | ;; | |
39229 | esac | |
39230 | case ${D}outimpFile in | |
39231 | *.a) | |
39232 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39233 | ;; | |
39234 | *.lib) | |
39235 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39236 | ;; | |
39237 | *) | |
39238 | ;; | |
39239 | esac | |
2057db16 | 39240 | if [] -z ${D}outimpFile []; then |
473276a9 VS |
39241 | outimpFile=${D}outFile |
39242 | fi | |
39243 | defFile="${D}{outFile}.def" | |
39244 | arcFile="${D}{outimpFile}.a" | |
39245 | arcFile2="${D}{outimpFile}.lib" | |
39246 | dllFile="${D}outFile" | |
39247 | # Add suffix to dllFile later, first we need a version to use as | |
39248 | # name in .def file. | |
39249 | ||
2057db16 VS |
39250 | if [] ${D}do_backup -ne 0 [] ; then |
39251 | if [] -f ${D}arcFile [] ; then | |
473276a9 VS |
39252 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39253 | fi | |
2057db16 | 39254 | if [] -f ${D}arcFile2 [] ; then |
473276a9 VS |
39255 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39256 | fi | |
39257 | fi | |
39258 | ||
39259 | # Extract public symbols from all the object files. | |
39260 | tmpdefFile=${D}{defFile}_% | |
39261 | rm -f ${D}tmpdefFile | |
39262 | for file in ${D}inputFiles ; do | |
39263 | case ${D}file in | |
39264 | *!) | |
39265 | ;; | |
39266 | *) | |
39267 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39268 | ;; | |
39269 | esac | |
39270 | done | |
39271 | ||
39272 | # Create the def file. | |
39273 | rm -f ${D}defFile | |
39274 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
39275 | dllFile="${D}dllFile.dll" | |
2057db16 | 39276 | if [] -n ${D}description []; then |
473276a9 VS |
39277 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile |
39278 | fi | |
39279 | echo "EXPORTS" >> ${D}defFile | |
39280 | ||
39281 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39282 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39283 | ||
39284 | # Checks if the export is ok or not. | |
39285 | for word in ${D}exclude_symbols; do | |
39286 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39287 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39288 | done | |
39289 | ||
39290 | ||
2057db16 | 39291 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39292 | sed "=" < ${D}tmpdefFile | \ |
39293 | sed ' | |
39294 | N | |
39295 | : loop | |
2057db16 | 39296 | s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/ |
473276a9 VS |
39297 | t loop |
39298 | ' > ${D}{tmpdefFile}% | |
39299 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39300 | else | |
39301 | rm -f ${D}{tmpdefFile}% | |
39302 | fi | |
39303 | cat ${D}tmpdefFile >> ${D}defFile | |
39304 | rm -f ${D}tmpdefFile | |
39305 | ||
39306 | # Do linking, create implib, and apply lxlite. | |
39307 | gccCmdl=""; | |
39308 | for file in ${D}inputFiles ; do | |
39309 | case ${D}file in | |
39310 | *!) | |
39311 | ;; | |
39312 | *) | |
39313 | gccCmdl="${D}gccCmdl ${D}file" | |
39314 | ;; | |
39315 | esac | |
39316 | done | |
39317 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39318 | touch "${D}{outFile}.dll" | |
39319 | ||
39320 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
2057db16 | 39321 | if [] ${D}flag_USE_LXLITE -ne 0 []; then |
473276a9 | 39322 | add_flags=""; |
2057db16 | 39323 | if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then |
473276a9 VS |
39324 | add_flags="-ynd" |
39325 | fi | |
39326 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39327 | fi | |
39328 | doCommand "emxomf -s -l ${D}arcFile" | |
39329 | ||
39330 | # Successful exit. | |
39331 | CleanUp 1 | |
39332 | exit 0 | |
39333 | EOF | |
39334 | ||
39335 | chmod +x dllar.sh | |
a848cd7e SC |
39336 | ;; |
39337 | ||
39338 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
39339 | *-*-sunos4* | \ | |
39340 | *-*-osf* | \ | |
39341 | *-*-dgux5* | \ | |
39342 | *-*-sysv5* ) | |
39343 | ;; | |
39344 | ||
39345 | *) | |
39346 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
39347 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
39348 | { (exit 1); exit 1; }; } | |
39349 | esac | |
39350 | ||
2057db16 VS |
39351 | if test "x$PIC_FLAG" != "x" ; then |
39352 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39353 | fi | |
39354 | ||
a848cd7e SC |
39355 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39356 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39357 | fi | |
39358 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39359 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39360 | fi | |
39361 | ||
39362 | ||
39363 | ||
39364 | ||
39365 | ||
39366 | ||
39367 | ||
39368 | ||
39369 | USE_SOVERSION=0 | |
39370 | USE_SOVERLINUX=0 | |
39371 | USE_SOVERSOLARIS=0 | |
39372 | USE_SOSYMLINKS=0 | |
39373 | USE_MACVERSION=0 | |
39374 | SONAME_FLAG= | |
39375 | ||
39376 | case "${BAKEFILE_HOST}" in | |
39377 | *-*-linux* ) | |
39378 | SONAME_FLAG="-Wl,-soname," | |
39379 | USE_SOVERSION=1 | |
39380 | USE_SOVERLINUX=1 | |
39381 | USE_SOSYMLINKS=1 | |
39382 | ;; | |
39383 | ||
39384 | *-*-solaris2* ) | |
39385 | SONAME_FLAG="-h " | |
39386 | USE_SOVERSION=1 | |
39387 | USE_SOVERSOLARIS=1 | |
39388 | USE_SOSYMLINKS=1 | |
39389 | ;; | |
39390 | ||
39391 | *-*-darwin* ) | |
39392 | USE_MACVERSION=1 | |
39393 | USE_SOVERSION=1 | |
39394 | USE_SOSYMLINKS=1 | |
39395 | ;; | |
39396 | esac | |
39397 | ||
39398 | ||
39399 | ||
39400 | ||
39401 | ||
39402 | ||
39403 | ||
39404 | ||
39405 | ||
39406 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
39407 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
39408 | DEPS_TRACKING=0 | |
39409 | ||
39410 | if test "x$GCC" = "xyes"; then | |
39411 | DEPSMODE=gcc | |
39412 | DEPS_TRACKING=1 | |
39413 | case "${BAKEFILE_HOST}" in | |
39414 | powerpc-*-darwin* ) | |
39415 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
39416 | ;; | |
39417 | * ) | |
39418 | DEPSFLAG_GCC="-MMD" | |
39419 | ;; | |
39420 | esac | |
39421 | echo "$as_me:$LINENO: result: gcc" >&5 | |
39422 | echo "${ECHO_T}gcc" >&6 | |
39423 | else | |
39424 | echo "$as_me:$LINENO: result: none" >&5 | |
39425 | echo "${ECHO_T}none" >&6 | |
39426 | fi | |
39427 | ||
39428 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
39429 | |
39430 | D='$' | |
39431 | cat <<EOF >bk-deps | |
a848cd7e SC |
39432 | #!/bin/sh |
39433 | ||
39434 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39435 | # script. It is used to track C/C++ files dependencies in portable way. | |
39436 | # | |
39437 | # Permission is given to use this file in any way. | |
39438 | ||
473276a9 | 39439 | DEPSMODE=${DEPSMODE} |
a848cd7e | 39440 | DEPSDIR=.deps |
473276a9 | 39441 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 39442 | |
473276a9 | 39443 | mkdir -p ${D}DEPSDIR |
a848cd7e | 39444 | |
473276a9 VS |
39445 | if test ${D}DEPSMODE = gcc ; then |
39446 | ${D}* ${D}{DEPSFLAG_GCC} | |
39447 | status=${D}? | |
39448 | if test ${D}{status} != 0 ; then | |
39449 | exit ${D}{status} | |
a848cd7e SC |
39450 | fi |
39451 | # move created file to the location we want it in: | |
473276a9 VS |
39452 | while test ${D}# -gt 0; do |
39453 | case "${D}1" in | |
a848cd7e SC |
39454 | -o ) |
39455 | shift | |
473276a9 | 39456 | objfile=${D}1 |
a848cd7e SC |
39457 | ;; |
39458 | -* ) | |
39459 | ;; | |
39460 | * ) | |
473276a9 | 39461 | srcfile=${D}1 |
a848cd7e SC |
39462 | ;; |
39463 | esac | |
39464 | shift | |
39465 | done | |
473276a9 VS |
39466 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
39467 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
39468 | if test -f ${D}depfile ; then | |
39469 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39470 | rm -f ${D}depfile | |
a848cd7e | 39471 | else |
473276a9 VS |
39472 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
39473 | if test -f ${D}depfile ; then | |
39474 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
39475 | rm -f ${D}depfile | |
a848cd7e SC |
39476 | fi |
39477 | fi | |
39478 | exit 0 | |
39479 | else | |
473276a9 VS |
39480 | ${D}* |
39481 | exit ${D}? | |
a848cd7e SC |
39482 | fi |
39483 | EOF | |
473276a9 | 39484 | |
a848cd7e SC |
39485 | chmod +x bk-deps |
39486 | fi | |
39487 | ||
39488 | ||
39489 | ||
39490 | ||
39491 | RESCOMP= | |
39492 | SETFILE= | |
39493 | ||
39494 | case ${BAKEFILE_HOST} in | |
39495 | *-*-cygwin* | *-*-mingw32* ) | |
39496 | if test "$build" != "$host" ; then | |
39497 | RESCOMP=$host_alias-windres | |
39498 | else | |
39499 | # Extract the first word of "windres", so it can be a program name with args. | |
39500 | set dummy windres; ac_word=$2 | |
39501 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39503 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39505 | else | |
39506 | if test -n "$RESCOMP"; then | |
39507 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39508 | else | |
39509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39510 | for as_dir in $PATH | |
39511 | do | |
39512 | IFS=$as_save_IFS | |
39513 | test -z "$as_dir" && as_dir=. | |
39514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39515 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39516 | ac_cv_prog_RESCOMP="windres" | |
39517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39518 | break 2 | |
39519 | fi | |
39520 | done | |
39521 | done | |
39522 | ||
39523 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
39524 | fi | |
39525 | fi | |
39526 | RESCOMP=$ac_cv_prog_RESCOMP | |
39527 | if test -n "$RESCOMP"; then | |
39528 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39529 | echo "${ECHO_T}$RESCOMP" >&6 | |
39530 | else | |
39531 | echo "$as_me:$LINENO: result: no" >&5 | |
39532 | echo "${ECHO_T}no" >&6 | |
39533 | fi | |
39534 | ||
39535 | fi | |
39536 | ;; | |
39537 | ||
39538 | *-*-darwin* ) | |
39539 | # Extract the first word of "Rez", so it can be a program name with args. | |
39540 | set dummy Rez; ac_word=$2 | |
39541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39543 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
39544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39545 | else | |
39546 | if test -n "$RESCOMP"; then | |
39547 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
39548 | else | |
39549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39550 | for as_dir in $PATH | |
39551 | do | |
39552 | IFS=$as_save_IFS | |
39553 | test -z "$as_dir" && as_dir=. | |
39554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39556 | ac_cv_prog_RESCOMP="Rez" | |
39557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39558 | break 2 | |
39559 | fi | |
39560 | done | |
39561 | done | |
39562 | ||
39563 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
39564 | fi | |
39565 | fi | |
39566 | RESCOMP=$ac_cv_prog_RESCOMP | |
39567 | if test -n "$RESCOMP"; then | |
39568 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
39569 | echo "${ECHO_T}$RESCOMP" >&6 | |
39570 | else | |
39571 | echo "$as_me:$LINENO: result: no" >&5 | |
39572 | echo "${ECHO_T}no" >&6 | |
39573 | fi | |
39574 | ||
39575 | # Extract the first word of "SetFile", so it can be a program name with args. | |
39576 | set dummy SetFile; ac_word=$2 | |
39577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39579 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
39580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39581 | else | |
39582 | if test -n "$SETFILE"; then | |
39583 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39584 | else | |
39585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39586 | for as_dir in $PATH | |
39587 | do | |
39588 | IFS=$as_save_IFS | |
39589 | test -z "$as_dir" && as_dir=. | |
39590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39592 | ac_cv_prog_SETFILE="SetFile" | |
39593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39594 | break 2 | |
39595 | fi | |
39596 | done | |
39597 | done | |
39598 | ||
39599 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39600 | fi | |
39601 | fi | |
39602 | SETFILE=$ac_cv_prog_SETFILE | |
39603 | if test -n "$SETFILE"; then | |
39604 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
39605 | echo "${ECHO_T}$SETFILE" >&6 | |
39606 | else | |
39607 | echo "$as_me:$LINENO: result: no" >&5 | |
39608 | echo "${ECHO_T}no" >&6 | |
39609 | fi | |
39610 | ||
39611 | ;; | |
39612 | esac | |
39613 | ||
39614 | ||
39615 | ||
39616 | ||
39617 | ||
2057db16 | 39618 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.4" |
a848cd7e | 39619 | |
dcc1b6ad | 39620 | |
a49baeab DE |
39621 | |
39622 | ||
39623 | ||
9f45f08e | 39624 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
a848cd7e | 39625 | |
646b6ec1 | 39626 | |
74b84332 | 39627 | |
a848cd7e SC |
39628 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
39629 | if test "${enable_precomp_headers+set}" = set; then | |
39630 | enableval="$enable_precomp_headers" | |
39631 | bk_use_pch="$enableval" | |
39632 | fi; | |
39633 | ||
39634 | GCC_PCH=0 | |
39635 | ||
39636 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39637 | if test "x$GCC" = "xyes"; then | |
39638 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39639 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39640 | cat >conftest.$ac_ext <<_ACEOF | |
39641 | /* confdefs.h. */ | |
39642 | _ACEOF | |
39643 | cat confdefs.h >>conftest.$ac_ext | |
39644 | cat >>conftest.$ac_ext <<_ACEOF | |
39645 | /* end confdefs.h. */ | |
39646 | ||
39647 | int | |
39648 | main () | |
39649 | { | |
39650 | ||
39651 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39652 | #error "no pch support" | |
39653 | #endif | |
39654 | #if (__GNUC__ < 3) | |
39655 | #error "no pch support" | |
39656 | #endif | |
39657 | #if (__GNUC__ == 3) && \ | |
39658 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39659 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39660 | #error "no pch support" | |
39661 | #endif | |
39662 | ||
39663 | ; | |
39664 | return 0; | |
39665 | } | |
39666 | _ACEOF | |
39667 | rm -f conftest.$ac_objext | |
39668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39669 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39670 | ac_status=$? |
ac1cb8d3 VS |
39671 | grep -v '^ *+' conftest.er1 >conftest.err |
39672 | rm -f conftest.er1 | |
39673 | cat conftest.err >&5 | |
a848cd7e SC |
39674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39675 | (exit $ac_status); } && | |
d1c38808 | 39676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39678 | (eval $ac_try) 2>&5 | |
39679 | ac_status=$? | |
39680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39681 | (exit $ac_status); }; } && | |
39682 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39684 | (eval $ac_try) 2>&5 | |
39685 | ac_status=$? | |
39686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39687 | (exit $ac_status); }; }; then | |
39688 | ||
39689 | echo "$as_me:$LINENO: result: yes" >&5 | |
39690 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
39691 | GCC_PCH=1 |
39692 | ||
39693 | else | |
39694 | echo "$as_me: failed program was:" >&5 | |
39695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39696 | ||
39697 | ||
39698 | echo "$as_me:$LINENO: result: no" >&5 | |
39699 | echo "${ECHO_T}no" >&6 | |
39700 | ||
39701 | fi | |
ac1cb8d3 | 39702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39703 | if test $GCC_PCH = 1 ; then |
39704 | cat <<EOF >bk-make-pch | |
39705 | #!/bin/sh | |
39706 | ||
39707 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39708 | # script. It is used to generated precompiled headers. | |
39709 | # | |
39710 | # Permission is given to use this file in any way. | |
39711 | ||
39712 | outfile="\${1}" | |
39713 | header="\${2}" | |
39714 | shift | |
39715 | shift | |
39716 | ||
39717 | compiler= | |
39718 | headerfile= | |
39719 | while test \${#} -gt 0; do | |
39720 | case "\${1}" in | |
39721 | -I* ) | |
39722 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39723 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39724 | headerfile="\${incdir}/\${header}" | |
39725 | fi | |
39726 | ;; | |
39727 | esac | |
39728 | compiler="\${compiler} \${1}" | |
39729 | shift | |
39730 | done | |
39731 | ||
39732 | if test "x\${headerfile}" = "x" ; then | |
39733 | echo "error: can't find header \${header} in include paths" >2 | |
39734 | else | |
39735 | if test -f \${outfile} ; then | |
39736 | rm -f \${outfile} | |
39737 | else | |
39738 | mkdir -p \`dirname \${outfile}\` | |
39739 | fi | |
39740 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39741 | mkdir -p .deps | |
39742 | # can do this because gcc is >= 3.4: | |
39743 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39744 | exit \${?} | |
39745 | fi | |
39746 | EOF | |
39747 | chmod +x bk-make-pch | |
39748 | fi | |
39749 | fi | |
39750 | fi | |
39751 | ||
39752 | ||
39753 | ||
39754 | ||
39755 | ||
dcc1b6ad VS |
39756 | |
39757 | ||
39758 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
39759 | if test "${enable_precomp_headers+set}" = set; then | |
39760 | enableval="$enable_precomp_headers" | |
39761 | bk_use_pch="$enableval" | |
39762 | fi; | |
39763 | ||
39764 | GCC_PCH=0 | |
39765 | ||
39766 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
39767 | if test "x$GCC" = "xyes"; then | |
39768 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
39769 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
39770 | cat >conftest.$ac_ext <<_ACEOF | |
39771 | /* confdefs.h. */ | |
39772 | _ACEOF | |
39773 | cat confdefs.h >>conftest.$ac_ext | |
39774 | cat >>conftest.$ac_ext <<_ACEOF | |
39775 | /* end confdefs.h. */ | |
39776 | ||
39777 | int | |
39778 | main () | |
39779 | { | |
39780 | ||
39781 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
39782 | #error "no pch support" | |
39783 | #endif | |
39784 | #if (__GNUC__ < 3) | |
39785 | #error "no pch support" | |
39786 | #endif | |
39787 | #if (__GNUC__ == 3) && \ | |
39788 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
39789 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
39790 | #error "no pch support" | |
39791 | #endif | |
39792 | ||
39793 | ; | |
39794 | return 0; | |
39795 | } | |
39796 | _ACEOF | |
39797 | rm -f conftest.$ac_objext | |
39798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39799 | (eval $ac_compile) 2>conftest.er1 |
dcc1b6ad | 39800 | ac_status=$? |
ac1cb8d3 VS |
39801 | grep -v '^ *+' conftest.er1 >conftest.err |
39802 | rm -f conftest.er1 | |
39803 | cat conftest.err >&5 | |
dcc1b6ad VS |
39804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39805 | (exit $ac_status); } && | |
d1c38808 | 39806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39808 | (eval $ac_try) 2>&5 | |
39809 | ac_status=$? | |
39810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39811 | (exit $ac_status); }; } && | |
39812 | { ac_try='test -s conftest.$ac_objext' | |
dcc1b6ad VS |
39813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39814 | (eval $ac_try) 2>&5 | |
39815 | ac_status=$? | |
39816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39817 | (exit $ac_status); }; }; then | |
39818 | ||
39819 | echo "$as_me:$LINENO: result: yes" >&5 | |
39820 | echo "${ECHO_T}yes" >&6 | |
dcc1b6ad VS |
39821 | GCC_PCH=1 |
39822 | ||
39823 | else | |
39824 | echo "$as_me: failed program was:" >&5 | |
39825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39826 | ||
39827 | ||
39828 | echo "$as_me:$LINENO: result: no" >&5 | |
39829 | echo "${ECHO_T}no" >&6 | |
39830 | ||
39831 | fi | |
ac1cb8d3 | 39832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
39833 | if test $GCC_PCH = 1 ; then |
39834 | cat <<EOF >bk-make-pch | |
39835 | #!/bin/sh | |
39836 | ||
39837 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
39838 | # script. It is used to generated precompiled headers. | |
39839 | # | |
39840 | # Permission is given to use this file in any way. | |
39841 | ||
39842 | outfile="\${1}" | |
39843 | header="\${2}" | |
39844 | shift | |
39845 | shift | |
39846 | ||
39847 | compiler= | |
39848 | headerfile= | |
39849 | while test \${#} -gt 0; do | |
39850 | case "\${1}" in | |
39851 | -I* ) | |
39852 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
39853 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
39854 | headerfile="\${incdir}/\${header}" | |
39855 | fi | |
39856 | ;; | |
39857 | esac | |
39858 | compiler="\${compiler} \${1}" | |
39859 | shift | |
39860 | done | |
39861 | ||
39862 | if test "x\${headerfile}" = "x" ; then | |
39863 | echo "error: can't find header \${header} in include paths" >2 | |
39864 | else | |
39865 | if test -f \${outfile} ; then | |
39866 | rm -f \${outfile} | |
39867 | else | |
39868 | mkdir -p \`dirname \${outfile}\` | |
39869 | fi | |
39870 | depsfile=".deps/\`basename \${outfile}\`.d" | |
39871 | mkdir -p .deps | |
39872 | # can do this because gcc is >= 3.4: | |
39873 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
39874 | exit \${?} | |
39875 | fi | |
39876 | EOF | |
39877 | chmod +x bk-make-pch | |
39878 | fi | |
39879 | fi | |
39880 | fi | |
39881 | ||
39882 | ||
39883 | ||
a848cd7e SC |
39884 | COND_BUILD_DEBUG="#" |
39885 | if test "x$BUILD" = "xdebug" ; then | |
39886 | COND_BUILD_DEBUG="" | |
39887 | fi | |
39888 | ||
39889 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
39890 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
39891 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
39892 | fi | |
39893 | ||
39894 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
39895 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39896 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
39897 | fi | |
39898 | ||
39899 | COND_BUILD_DEBUG_UNICODE_0="#" | |
39900 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
39901 | COND_BUILD_DEBUG_UNICODE_0="" | |
39902 | fi | |
39903 | ||
39904 | COND_BUILD_DEBUG_UNICODE_1="#" | |
39905 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
39906 | COND_BUILD_DEBUG_UNICODE_1="" | |
39907 | fi | |
39908 | ||
39909 | COND_BUILD_RELEASE="#" | |
39910 | if test "x$BUILD" = "xrelease" ; then | |
39911 | COND_BUILD_RELEASE="" | |
39912 | fi | |
39913 | ||
39914 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
39915 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
39916 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
39917 | fi | |
39918 | ||
39919 | COND_BUILD_RELEASE_UNICODE_0="#" | |
39920 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
39921 | COND_BUILD_RELEASE_UNICODE_0="" | |
39922 | fi | |
39923 | ||
39924 | COND_BUILD_RELEASE_UNICODE_1="#" | |
39925 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
39926 | COND_BUILD_RELEASE_UNICODE_1="" | |
39927 | fi | |
39928 | ||
39929 | COND_DEBUG_FLAG_1="#" | |
39930 | if test "x$DEBUG_FLAG" = "x1" ; then | |
39931 | COND_DEBUG_FLAG_1="" | |
39932 | fi | |
39933 | ||
39934 | COND_DEBUG_INFO_0="#" | |
39935 | if test "x$DEBUG_INFO" = "x0" ; then | |
39936 | COND_DEBUG_INFO_0="" | |
39937 | fi | |
39938 | ||
39939 | COND_DEBUG_INFO_1="#" | |
39940 | if test "x$DEBUG_INFO" = "x1" ; then | |
39941 | COND_DEBUG_INFO_1="" | |
39942 | fi | |
39943 | ||
39944 | COND_DEPS_TRACKING_0="#" | |
39945 | if test "x$DEPS_TRACKING" = "x0" ; then | |
39946 | COND_DEPS_TRACKING_0="" | |
39947 | fi | |
39948 | ||
39949 | COND_DEPS_TRACKING_1="#" | |
39950 | if test "x$DEPS_TRACKING" = "x1" ; then | |
39951 | COND_DEPS_TRACKING_1="" | |
39952 | fi | |
39953 | ||
39954 | COND_GCC_PCH_1="#" | |
39955 | if test "x$GCC_PCH" = "x1" ; then | |
39956 | COND_GCC_PCH_1="" | |
39957 | fi | |
39958 | ||
39959 | COND_MONOLITHIC_0="#" | |
39960 | if test "x$MONOLITHIC" = "x0" ; then | |
39961 | COND_MONOLITHIC_0="" | |
39962 | fi | |
39963 | ||
39964 | COND_MONOLITHIC_0_SHARED_0="#" | |
39965 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
39966 | COND_MONOLITHIC_0_SHARED_0="" | |
39967 | fi | |
39968 | ||
39969 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
39970 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
39971 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
39972 | fi | |
39973 | ||
39974 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
39975 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
39976 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
39977 | fi | |
39978 | ||
39979 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
39980 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
39981 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
39982 | fi | |
39983 | ||
39984 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
39985 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
39986 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
39987 | fi | |
39988 | ||
ceec2216 RL |
39989 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
39990 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
39991 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
39992 | fi | |
39993 | ||
a848cd7e SC |
39994 | COND_MONOLITHIC_0_SHARED_1="#" |
39995 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
39996 | COND_MONOLITHIC_0_SHARED_1="" | |
39997 | fi | |
39998 | ||
39999 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40000 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40001 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40002 | fi | |
40003 | ||
40004 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40005 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40006 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40007 | fi | |
40008 | ||
40009 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40010 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40011 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40012 | fi | |
40013 | ||
40014 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40015 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40016 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40017 | fi | |
40018 | ||
ceec2216 RL |
40019 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40020 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40021 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40022 | fi | |
40023 | ||
a848cd7e SC |
40024 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40025 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40026 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40027 | fi | |
40028 | ||
40029 | COND_MONOLITHIC_1="#" | |
40030 | if test "x$MONOLITHIC" = "x1" ; then | |
40031 | COND_MONOLITHIC_1="" | |
40032 | fi | |
40033 | ||
40034 | COND_MONOLITHIC_1_SHARED_0="#" | |
40035 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40036 | COND_MONOLITHIC_1_SHARED_0="" | |
40037 | fi | |
40038 | ||
40039 | COND_MONOLITHIC_1_SHARED_1="#" | |
40040 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40041 | COND_MONOLITHIC_1_SHARED_1="" | |
40042 | fi | |
40043 | ||
40044 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40045 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40046 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40047 | fi | |
40048 | ||
40049 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40050 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40051 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40052 | fi | |
40053 | ||
40054 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40055 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40056 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40057 | fi | |
40058 | ||
40059 | COND_PLATFORM_MACOSX_1="#" | |
40060 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40061 | COND_PLATFORM_MACOSX_1="" | |
40062 | fi | |
40063 | ||
a30f955f VS |
40064 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
40065 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
40066 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
40067 | fi | |
40068 | ||
a848cd7e SC |
40069 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
40070 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40071 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40072 | fi | |
40073 | ||
40074 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40075 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40076 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40077 | fi | |
40078 | ||
40079 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40080 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40081 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40082 | fi | |
40083 | ||
ebee3cd0 VS |
40084 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40085 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40086 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40087 | fi | |
40088 | ||
40089 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40090 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40091 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40092 | fi | |
40093 | ||
a848cd7e SC |
40094 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40095 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40096 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40097 | fi | |
40098 | ||
40099 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40100 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40101 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40102 | fi | |
40103 | ||
b48a2016 DE |
40104 | COND_PLATFORM_MACOS_1="#" |
40105 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
40106 | COND_PLATFORM_MACOS_1="" | |
40107 | fi | |
40108 | ||
a848cd7e SC |
40109 | COND_PLATFORM_MAC_1="#" |
40110 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40111 | COND_PLATFORM_MAC_1="" | |
40112 | fi | |
40113 | ||
40114 | COND_PLATFORM_OS2_1="#" | |
40115 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40116 | COND_PLATFORM_OS2_1="" | |
40117 | fi | |
40118 | ||
40119 | COND_PLATFORM_UNIX_0="#" | |
40120 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40121 | COND_PLATFORM_UNIX_0="" | |
40122 | fi | |
40123 | ||
40124 | COND_PLATFORM_UNIX_1="#" | |
40125 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40126 | COND_PLATFORM_UNIX_1="" | |
40127 | fi | |
40128 | ||
40129 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40130 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40131 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40132 | fi | |
40133 | ||
40134 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40135 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40136 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40137 | fi | |
40138 | ||
40139 | COND_PLATFORM_WIN32_0="#" | |
40140 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40141 | COND_PLATFORM_WIN32_0="" | |
40142 | fi | |
40143 | ||
40144 | COND_PLATFORM_WIN32_1="#" | |
40145 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40146 | COND_PLATFORM_WIN32_1="" | |
40147 | fi | |
40148 | ||
40149 | COND_SHARED_0="#" | |
40150 | if test "x$SHARED" = "x0" ; then | |
40151 | COND_SHARED_0="" | |
40152 | fi | |
40153 | ||
ceec2216 RL |
40154 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40155 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40156 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40157 | fi | |
40158 | ||
40159 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40160 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40161 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40162 | fi | |
40163 | ||
40164 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40165 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40166 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40167 | fi | |
40168 | ||
a848cd7e SC |
40169 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40170 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40171 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40172 | fi | |
40173 | ||
40174 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40175 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40176 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40177 | fi | |
40178 | ||
40179 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40180 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40181 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40182 | fi | |
40183 | ||
40184 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40185 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40186 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40187 | fi | |
40188 | ||
40189 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40190 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40191 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40192 | fi | |
40193 | ||
40194 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40195 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40196 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40197 | fi | |
40198 | ||
40199 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40200 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40201 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40202 | fi | |
40203 | ||
40204 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40205 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40206 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40207 | fi | |
40208 | ||
40209 | COND_SHARED_1="#" | |
40210 | if test "x$SHARED" = "x1" ; then | |
40211 | COND_SHARED_1="" | |
40212 | fi | |
40213 | ||
40214 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40215 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40216 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40217 | fi | |
40218 | ||
a30f955f VS |
40219 | COND_TOOLKIT_="#" |
40220 | if test "x$TOOLKIT" = "x" ; then | |
40221 | COND_TOOLKIT_="" | |
40222 | fi | |
40223 | ||
a848cd7e SC |
40224 | COND_TOOLKIT_COCOA="#" |
40225 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40226 | COND_TOOLKIT_COCOA="" | |
40227 | fi | |
40228 | ||
a49baeab DE |
40229 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
40230 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
40231 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
40232 | fi | |
40233 | ||
a848cd7e SC |
40234 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
40235 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40236 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40237 | fi | |
40238 | ||
40239 | COND_TOOLKIT_GTK="#" | |
40240 | if test "x$TOOLKIT" = "xGTK" ; then | |
40241 | COND_TOOLKIT_GTK="" | |
40242 | fi | |
40243 | ||
40244 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40245 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40246 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40247 | fi | |
40248 | ||
40249 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40250 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40251 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40252 | fi | |
40253 | ||
40254 | COND_TOOLKIT_MAC="#" | |
40255 | if test "x$TOOLKIT" = "xMAC" ; then | |
40256 | COND_TOOLKIT_MAC="" | |
40257 | fi | |
40258 | ||
40259 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40260 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40261 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40262 | fi | |
40263 | ||
40264 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40265 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40266 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40267 | fi | |
40268 | ||
40269 | COND_TOOLKIT_MGL="#" | |
40270 | if test "x$TOOLKIT" = "xMGL" ; then | |
40271 | COND_TOOLKIT_MGL="" | |
40272 | fi | |
40273 | ||
40274 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40275 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40276 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40277 | fi | |
40278 | ||
40279 | COND_TOOLKIT_MOTIF="#" | |
40280 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40281 | COND_TOOLKIT_MOTIF="" | |
40282 | fi | |
40283 | ||
40284 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40285 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40286 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40287 | fi | |
40288 | ||
40289 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40290 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40291 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40292 | fi | |
40293 | ||
40294 | COND_TOOLKIT_MSW="#" | |
40295 | if test "x$TOOLKIT" = "xMSW" ; then | |
40296 | COND_TOOLKIT_MSW="" | |
40297 | fi | |
40298 | ||
40299 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40300 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40301 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40302 | fi | |
40303 | ||
40304 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40305 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40306 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40307 | fi | |
40308 | ||
40309 | COND_TOOLKIT_PM="#" | |
40310 | if test "x$TOOLKIT" = "xPM" ; then | |
40311 | COND_TOOLKIT_PM="" | |
40312 | fi | |
40313 | ||
40314 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40315 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40316 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40317 | fi | |
40318 | ||
40319 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40320 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40321 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40322 | fi | |
40323 | ||
3fd9c298 DE |
40324 | COND_TOOLKIT_WINCE="#" |
40325 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40326 | COND_TOOLKIT_WINCE="" | |
40327 | fi | |
40328 | ||
40329 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40330 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40331 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40332 | fi | |
40333 | ||
40334 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40335 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40336 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40337 | fi | |
40338 | ||
a848cd7e SC |
40339 | COND_TOOLKIT_X11="#" |
40340 | if test "x$TOOLKIT" = "xX11" ; then | |
40341 | COND_TOOLKIT_X11="" | |
40342 | fi | |
40343 | ||
40344 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40345 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40346 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40347 | fi | |
40348 | ||
40349 | COND_UNICODE_1="#" | |
40350 | if test "x$UNICODE" = "x1" ; then | |
40351 | COND_UNICODE_1="" | |
40352 | fi | |
40353 | ||
40354 | COND_USE_EXCEPTIONS_0="#" | |
40355 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40356 | COND_USE_EXCEPTIONS_0="" | |
40357 | fi | |
40358 | ||
40359 | COND_USE_EXCEPTIONS_1="#" | |
40360 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40361 | COND_USE_EXCEPTIONS_1="" | |
40362 | fi | |
40363 | ||
40364 | COND_USE_GUI_0="#" | |
40365 | if test "x$USE_GUI" = "x0" ; then | |
40366 | COND_USE_GUI_0="" | |
40367 | fi | |
40368 | ||
40369 | COND_USE_GUI_1="#" | |
40370 | if test "x$USE_GUI" = "x1" ; then | |
40371 | COND_USE_GUI_1="" | |
40372 | fi | |
40373 | ||
40374 | COND_USE_GUI_1_WXUNIV_0="#" | |
40375 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40376 | COND_USE_GUI_1_WXUNIV_0="" | |
40377 | fi | |
40378 | ||
40379 | COND_USE_GUI_1_WXUNIV_1="#" | |
40380 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40381 | COND_USE_GUI_1_WXUNIV_1="" | |
40382 | fi | |
40383 | ||
40384 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40385 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40386 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40387 | fi | |
40388 | ||
40389 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40390 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40391 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40392 | fi | |
40393 | ||
40394 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40395 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40396 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40397 | fi | |
40398 | ||
ceec2216 RL |
40399 | COND_USE_ODBC_1="#" |
40400 | if test "x$USE_ODBC" = "x1" ; then | |
40401 | COND_USE_ODBC_1="" | |
40402 | fi | |
40403 | ||
ffa0583f RL |
40404 | COND_USE_OPENGL_1="#" |
40405 | if test "x$USE_OPENGL" = "x1" ; then | |
40406 | COND_USE_OPENGL_1="" | |
40407 | fi | |
40408 | ||
a848cd7e SC |
40409 | COND_USE_PLUGINS_0="#" |
40410 | if test "x$USE_PLUGINS" = "x0" ; then | |
40411 | COND_USE_PLUGINS_0="" | |
40412 | fi | |
40413 | ||
40414 | COND_USE_SOSYMLINKS_1="#" | |
40415 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40416 | COND_USE_SOSYMLINKS_1="" | |
40417 | fi | |
40418 | ||
40419 | COND_USE_SOVERLINUX_1="#" | |
40420 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40421 | COND_USE_SOVERLINUX_1="" | |
40422 | fi | |
40423 | ||
40424 | COND_USE_SOVERSION_0="#" | |
40425 | if test "x$USE_SOVERSION" = "x0" ; then | |
40426 | COND_USE_SOVERSION_0="" | |
40427 | fi | |
40428 | ||
40429 | COND_USE_SOVERSOLARIS_1="#" | |
40430 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40431 | COND_USE_SOVERSOLARIS_1="" | |
40432 | fi | |
40433 | ||
a13a7f89 RL |
40434 | COND_USE_XRC_1="#" |
40435 | if test "x$USE_XRC" = "x1" ; then | |
40436 | COND_USE_XRC_1="" | |
40437 | fi | |
40438 | ||
a848cd7e SC |
40439 | COND_WITH_PLUGIN_SDL_1="#" |
40440 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
40441 | COND_WITH_PLUGIN_SDL_1="" | |
40442 | fi | |
40443 | ||
a848cd7e SC |
40444 | COND_WXUNIV_1="#" |
40445 | if test "x$WXUNIV" = "x1" ; then | |
40446 | COND_WXUNIV_1="" | |
40447 | fi | |
40448 | ||
40449 | COND_WXUSE_EXPAT_BUILTIN="#" | |
40450 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40451 | COND_WXUSE_EXPAT_BUILTIN="" | |
40452 | fi | |
40453 | ||
40454 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
40455 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40456 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
40457 | fi | |
40458 | ||
40459 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
40460 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40461 | COND_WXUSE_LIBPNG_BUILTIN="" | |
40462 | fi | |
40463 | ||
40464 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
40465 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40466 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
40467 | fi | |
40468 | ||
40469 | COND_WXUSE_ODBC_BUILTIN="#" | |
40470 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40471 | COND_WXUSE_ODBC_BUILTIN="" | |
40472 | fi | |
40473 | ||
40474 | COND_WXUSE_REGEX_BUILTIN="#" | |
40475 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40476 | COND_WXUSE_REGEX_BUILTIN="" | |
40477 | fi | |
40478 | ||
40479 | COND_WXUSE_ZLIB_BUILTIN="#" | |
40480 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40481 | COND_WXUSE_ZLIB_BUILTIN="" | |
40482 | fi | |
40483 | ||
dcc1b6ad VS |
40484 | COND_BUILD_DEBUG="#" |
40485 | if test "x$BUILD" = "xdebug" ; then | |
40486 | COND_BUILD_DEBUG="" | |
40487 | fi | |
40488 | ||
40489 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40490 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40491 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40492 | fi | |
40493 | ||
40494 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40495 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40496 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40497 | fi | |
40498 | ||
40499 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40500 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40501 | COND_BUILD_DEBUG_UNICODE_0="" | |
40502 | fi | |
40503 | ||
40504 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40505 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40506 | COND_BUILD_DEBUG_UNICODE_1="" | |
40507 | fi | |
40508 | ||
40509 | COND_BUILD_RELEASE="#" | |
40510 | if test "x$BUILD" = "xrelease" ; then | |
40511 | COND_BUILD_RELEASE="" | |
40512 | fi | |
40513 | ||
40514 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40515 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40516 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40517 | fi | |
40518 | ||
40519 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40520 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40521 | COND_BUILD_RELEASE_UNICODE_0="" | |
40522 | fi | |
40523 | ||
40524 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40525 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40526 | COND_BUILD_RELEASE_UNICODE_1="" | |
40527 | fi | |
40528 | ||
40529 | COND_DEBUG_FLAG_1="#" | |
40530 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40531 | COND_DEBUG_FLAG_1="" | |
40532 | fi | |
40533 | ||
40534 | COND_DEBUG_INFO_0="#" | |
40535 | if test "x$DEBUG_INFO" = "x0" ; then | |
40536 | COND_DEBUG_INFO_0="" | |
40537 | fi | |
40538 | ||
40539 | COND_DEBUG_INFO_1="#" | |
40540 | if test "x$DEBUG_INFO" = "x1" ; then | |
40541 | COND_DEBUG_INFO_1="" | |
40542 | fi | |
40543 | ||
40544 | COND_DEPS_TRACKING_0="#" | |
40545 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40546 | COND_DEPS_TRACKING_0="" | |
40547 | fi | |
40548 | ||
40549 | COND_DEPS_TRACKING_1="#" | |
40550 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40551 | COND_DEPS_TRACKING_1="" | |
40552 | fi | |
40553 | ||
40554 | COND_GCC_PCH_1="#" | |
40555 | if test "x$GCC_PCH" = "x1" ; then | |
40556 | COND_GCC_PCH_1="" | |
40557 | fi | |
40558 | ||
40559 | COND_MONOLITHIC_0="#" | |
40560 | if test "x$MONOLITHIC" = "x0" ; then | |
40561 | COND_MONOLITHIC_0="" | |
40562 | fi | |
40563 | ||
40564 | COND_MONOLITHIC_0_SHARED_0="#" | |
40565 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40566 | COND_MONOLITHIC_0_SHARED_0="" | |
40567 | fi | |
40568 | ||
40569 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
40570 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40571 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40572 | fi | |
40573 | ||
40574 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
40575 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40576 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
40577 | fi | |
40578 | ||
40579 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
40580 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40581 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
40582 | fi | |
40583 | ||
40584 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
40585 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40586 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
40587 | fi | |
40588 | ||
9a8f0513 VS |
40589 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40590 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40591 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40592 | fi | |
40593 | ||
dcc1b6ad VS |
40594 | COND_MONOLITHIC_0_SHARED_1="#" |
40595 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40596 | COND_MONOLITHIC_0_SHARED_1="" | |
40597 | fi | |
40598 | ||
40599 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
40600 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40601 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40602 | fi | |
40603 | ||
40604 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
40605 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40606 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
40607 | fi | |
40608 | ||
40609 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
40610 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40611 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
40612 | fi | |
40613 | ||
40614 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
40615 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
40616 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
40617 | fi | |
40618 | ||
9a8f0513 VS |
40619 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40620 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40621 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40622 | fi | |
40623 | ||
dcc1b6ad VS |
40624 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
40625 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
40626 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
40627 | fi | |
40628 | ||
40629 | COND_MONOLITHIC_1="#" | |
40630 | if test "x$MONOLITHIC" = "x1" ; then | |
40631 | COND_MONOLITHIC_1="" | |
40632 | fi | |
40633 | ||
40634 | COND_MONOLITHIC_1_SHARED_0="#" | |
40635 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40636 | COND_MONOLITHIC_1_SHARED_0="" | |
40637 | fi | |
40638 | ||
40639 | COND_MONOLITHIC_1_SHARED_1="#" | |
40640 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40641 | COND_MONOLITHIC_1_SHARED_1="" | |
40642 | fi | |
40643 | ||
40644 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40645 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40646 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40647 | fi | |
40648 | ||
40649 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40650 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40651 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40652 | fi | |
40653 | ||
40654 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
40655 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40656 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40657 | fi | |
40658 | ||
40659 | COND_PLATFORM_MACOSX_1="#" | |
40660 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40661 | COND_PLATFORM_MACOSX_1="" | |
40662 | fi | |
40663 | ||
40664 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
40665 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
40666 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
40667 | fi | |
40668 | ||
40669 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
40670 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
40671 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
40672 | fi | |
40673 | ||
40674 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
40675 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
40676 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
40677 | fi | |
40678 | ||
9a8f0513 VS |
40679 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
40680 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
40681 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
40682 | fi | |
40683 | ||
40684 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
40685 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
40686 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
40687 | fi | |
40688 | ||
dcc1b6ad VS |
40689 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40690 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40691 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40692 | fi | |
40693 | ||
40694 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
40695 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40696 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40697 | fi | |
40698 | ||
40699 | COND_PLATFORM_MAC_1="#" | |
40700 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40701 | COND_PLATFORM_MAC_1="" | |
40702 | fi | |
40703 | ||
40704 | COND_PLATFORM_OS2_1="#" | |
40705 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40706 | COND_PLATFORM_OS2_1="" | |
40707 | fi | |
40708 | ||
40709 | COND_PLATFORM_UNIX_0="#" | |
40710 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40711 | COND_PLATFORM_UNIX_0="" | |
40712 | fi | |
40713 | ||
40714 | COND_PLATFORM_UNIX_1="#" | |
40715 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40716 | COND_PLATFORM_UNIX_1="" | |
40717 | fi | |
40718 | ||
40719 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
40720 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40721 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40722 | fi | |
40723 | ||
40724 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40725 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40726 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40727 | fi | |
40728 | ||
40729 | COND_PLATFORM_WIN32_0="#" | |
40730 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40731 | COND_PLATFORM_WIN32_0="" | |
40732 | fi | |
40733 | ||
40734 | COND_PLATFORM_WIN32_1="#" | |
40735 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40736 | COND_PLATFORM_WIN32_1="" | |
40737 | fi | |
40738 | ||
40739 | COND_SHARED_0="#" | |
40740 | if test "x$SHARED" = "x0" ; then | |
40741 | COND_SHARED_0="" | |
40742 | fi | |
40743 | ||
40744 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
40745 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40746 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40747 | fi | |
40748 | ||
40749 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40750 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40751 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40752 | fi | |
40753 | ||
40754 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40755 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40756 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40757 | fi | |
40758 | ||
40759 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40760 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40761 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40762 | fi | |
40763 | ||
40764 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
40765 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
40766 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
40767 | fi | |
40768 | ||
40769 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
40770 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
40771 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
40772 | fi | |
40773 | ||
40774 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
40775 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
40776 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
40777 | fi | |
40778 | ||
40779 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
40780 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
40781 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
40782 | fi | |
40783 | ||
40784 | COND_SHARED_1="#" | |
40785 | if test "x$SHARED" = "x1" ; then | |
40786 | COND_SHARED_1="" | |
40787 | fi | |
40788 | ||
40789 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40790 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40791 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40792 | fi | |
40793 | ||
40794 | COND_TOOLKIT_COCOA="#" | |
40795 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40796 | COND_TOOLKIT_COCOA="" | |
40797 | fi | |
40798 | ||
40799 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
40800 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40801 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40802 | fi | |
40803 | ||
40804 | COND_TOOLKIT_GTK="#" | |
40805 | if test "x$TOOLKIT" = "xGTK" ; then | |
40806 | COND_TOOLKIT_GTK="" | |
40807 | fi | |
40808 | ||
40809 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
40810 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40811 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40812 | fi | |
40813 | ||
40814 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
40815 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40816 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
40817 | fi | |
40818 | ||
40819 | COND_TOOLKIT_MAC="#" | |
40820 | if test "x$TOOLKIT" = "xMAC" ; then | |
40821 | COND_TOOLKIT_MAC="" | |
40822 | fi | |
40823 | ||
40824 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
40825 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
40826 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
40827 | fi | |
40828 | ||
40829 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
40830 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40831 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
40832 | fi | |
40833 | ||
9a8f0513 VS |
40834 | COND_TOOLKIT_MAC_WXUNIV_0="#" |
40835 | if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40836 | COND_TOOLKIT_MAC_WXUNIV_0="" | |
40837 | fi | |
40838 | ||
dcc1b6ad VS |
40839 | COND_TOOLKIT_MGL="#" |
40840 | if test "x$TOOLKIT" = "xMGL" ; then | |
40841 | COND_TOOLKIT_MGL="" | |
40842 | fi | |
40843 | ||
40844 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
40845 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
40846 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
40847 | fi | |
40848 | ||
40849 | COND_TOOLKIT_MOTIF="#" | |
40850 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40851 | COND_TOOLKIT_MOTIF="" | |
40852 | fi | |
40853 | ||
40854 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40855 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40856 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40857 | fi | |
40858 | ||
40859 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40860 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40861 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40862 | fi | |
40863 | ||
40864 | COND_TOOLKIT_MSW="#" | |
40865 | if test "x$TOOLKIT" = "xMSW" ; then | |
40866 | COND_TOOLKIT_MSW="" | |
40867 | fi | |
40868 | ||
40869 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40870 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40871 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40872 | fi | |
40873 | ||
40874 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40875 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40876 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40877 | fi | |
40878 | ||
9a8f0513 VS |
40879 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40880 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40881 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40882 | fi | |
40883 | ||
dcc1b6ad VS |
40884 | COND_TOOLKIT_PM="#" |
40885 | if test "x$TOOLKIT" = "xPM" ; then | |
40886 | COND_TOOLKIT_PM="" | |
40887 | fi | |
40888 | ||
40889 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40890 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40891 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40892 | fi | |
40893 | ||
40894 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40895 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40896 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40897 | fi | |
40898 | ||
9a8f0513 VS |
40899 | COND_TOOLKIT_PM_WXUNIV_0="#" |
40900 | if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40901 | COND_TOOLKIT_PM_WXUNIV_0="" | |
40902 | fi | |
40903 | ||
dcc1b6ad VS |
40904 | COND_TOOLKIT_WINCE="#" |
40905 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40906 | COND_TOOLKIT_WINCE="" | |
40907 | fi | |
40908 | ||
40909 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40910 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40911 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40912 | fi | |
40913 | ||
40914 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40915 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40916 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40917 | fi | |
40918 | ||
40919 | COND_TOOLKIT_X11="#" | |
40920 | if test "x$TOOLKIT" = "xX11" ; then | |
40921 | COND_TOOLKIT_X11="" | |
40922 | fi | |
40923 | ||
40924 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40925 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40926 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40927 | fi | |
40928 | ||
40929 | COND_UNICODE_1="#" | |
40930 | if test "x$UNICODE" = "x1" ; then | |
40931 | COND_UNICODE_1="" | |
40932 | fi | |
40933 | ||
40934 | COND_USE_EXCEPTIONS_0="#" | |
40935 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40936 | COND_USE_EXCEPTIONS_0="" | |
40937 | fi | |
40938 | ||
40939 | COND_USE_EXCEPTIONS_1="#" | |
40940 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40941 | COND_USE_EXCEPTIONS_1="" | |
40942 | fi | |
40943 | ||
40944 | COND_USE_GUI_0="#" | |
40945 | if test "x$USE_GUI" = "x0" ; then | |
40946 | COND_USE_GUI_0="" | |
40947 | fi | |
40948 | ||
40949 | COND_USE_GUI_1="#" | |
40950 | if test "x$USE_GUI" = "x1" ; then | |
40951 | COND_USE_GUI_1="" | |
40952 | fi | |
40953 | ||
40954 | COND_USE_GUI_1_WXUNIV_0="#" | |
40955 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40956 | COND_USE_GUI_1_WXUNIV_0="" | |
40957 | fi | |
40958 | ||
40959 | COND_USE_GUI_1_WXUNIV_1="#" | |
40960 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40961 | COND_USE_GUI_1_WXUNIV_1="" | |
40962 | fi | |
40963 | ||
40964 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40965 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40966 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40967 | fi | |
40968 | ||
40969 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40970 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40971 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40972 | fi | |
40973 | ||
40974 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40975 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40976 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40977 | fi | |
40978 | ||
40979 | COND_USE_ODBC_1="#" | |
40980 | if test "x$USE_ODBC" = "x1" ; then | |
40981 | COND_USE_ODBC_1="" | |
40982 | fi | |
40983 | ||
40984 | COND_USE_PLUGINS_0="#" | |
40985 | if test "x$USE_PLUGINS" = "x0" ; then | |
40986 | COND_USE_PLUGINS_0="" | |
40987 | fi | |
40988 | ||
40989 | COND_USE_SOSYMLINKS_1="#" | |
40990 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
40991 | COND_USE_SOSYMLINKS_1="" | |
40992 | fi | |
40993 | ||
40994 | COND_USE_SOVERLINUX_1="#" | |
40995 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40996 | COND_USE_SOVERLINUX_1="" | |
40997 | fi | |
40998 | ||
40999 | COND_USE_SOVERSION_0="#" | |
41000 | if test "x$USE_SOVERSION" = "x0" ; then | |
41001 | COND_USE_SOVERSION_0="" | |
41002 | fi | |
41003 | ||
41004 | COND_USE_SOVERSOLARIS_1="#" | |
41005 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
41006 | COND_USE_SOVERSOLARIS_1="" | |
41007 | fi | |
41008 | ||
41009 | COND_WITH_PLUGIN_SDL_1="#" | |
41010 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41011 | COND_WITH_PLUGIN_SDL_1="" | |
41012 | fi | |
41013 | ||
41014 | COND_WXUNIV_1="#" | |
41015 | if test "x$WXUNIV" = "x1" ; then | |
41016 | COND_WXUNIV_1="" | |
41017 | fi | |
41018 | ||
41019 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41020 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41021 | COND_WXUSE_EXPAT_BUILTIN="" | |
41022 | fi | |
41023 | ||
41024 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41025 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41026 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41027 | fi | |
41028 | ||
41029 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41030 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41031 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41032 | fi | |
41033 | ||
41034 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41035 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41036 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41037 | fi | |
41038 | ||
41039 | COND_WXUSE_ODBC_BUILTIN="#" | |
41040 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
41041 | COND_WXUSE_ODBC_BUILTIN="" | |
41042 | fi | |
41043 | ||
41044 | COND_WXUSE_REGEX_BUILTIN="#" | |
41045 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41046 | COND_WXUSE_REGEX_BUILTIN="" | |
41047 | fi | |
41048 | ||
41049 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41050 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41051 | COND_WXUSE_ZLIB_BUILTIN="" | |
41052 | fi | |
41053 | ||
a848cd7e SC |
41054 | |
41055 | ||
2057db16 VS |
41056 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
41057 | { { 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 | |
41058 | 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;} | |
41059 | { (exit 1); exit 1; }; } | |
41060 | fi | |
41061 | ||
a848cd7e | 41062 | |
ceec2216 RL |
41063 | if test "$wxUSE_SHARED" = "yes"; then |
41064 | ||
41065 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
41066 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
41067 | ||
41068 | else | |
41069 | ||
41070 | EXE_LINKER="$CXX -o" | |
41071 | ||
41072 | fi | |
a848cd7e | 41073 | |
74b84332 | 41074 | GCC_PRAGMA_FLAGS="" |
a848cd7e | 41075 | if test $GCC_PCH = 1 ; then |
74b84332 | 41076 | GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA" |
a848cd7e SC |
41077 | else |
41078 | case "${host}" in | |
41079 | powerpc-*-darwin* ) | |
74b84332 | 41080 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
a848cd7e | 41081 | ;; |
bea8e651 | 41082 | *-*-mingw32* ) |
1f344abf VS |
41083 | if test "$wxUSE_STL" = "yes" -o \ |
41084 | "$wxUSE_NO_EXCEPTIONS" != "yes" -o \ | |
41085 | "$wxUSE_NO_RTTI" != "yes"; then | |
41086 | echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
41087 | echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
bea8e651 MB |
41088 | cat >conftest.$ac_ext <<_ACEOF |
41089 | /* confdefs.h. */ | |
41090 | _ACEOF | |
41091 | cat confdefs.h >>conftest.$ac_ext | |
41092 | cat >>conftest.$ac_ext <<_ACEOF | |
41093 | /* end confdefs.h. */ | |
41094 | ||
41095 | int | |
41096 | main () | |
41097 | { | |
1f344abf | 41098 | #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) |
bea8e651 MB |
41099 | #error "Not GCC 3.2 or greater" |
41100 | #endif | |
41101 | ||
41102 | ; | |
41103 | return 0; | |
41104 | } | |
41105 | _ACEOF | |
41106 | rm -f conftest.$ac_objext | |
41107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41108 | (eval $ac_compile) 2>conftest.er1 |
bea8e651 | 41109 | ac_status=$? |
ac1cb8d3 VS |
41110 | grep -v '^ *+' conftest.er1 >conftest.err |
41111 | rm -f conftest.er1 | |
41112 | cat conftest.err >&5 | |
bea8e651 MB |
41113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41114 | (exit $ac_status); } && | |
d1c38808 | 41115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41117 | (eval $ac_try) 2>&5 | |
41118 | ac_status=$? | |
41119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41120 | (exit $ac_status); }; } && | |
41121 | { ac_try='test -s conftest.$ac_objext' | |
bea8e651 MB |
41122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41123 | (eval $ac_try) 2>&5 | |
41124 | ac_status=$? | |
41125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41126 | (exit $ac_status); }; }; then | |
74b84332 | 41127 | GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA" |
bea8e651 MB |
41128 | echo "$as_me:$LINENO: result: yes" >&5 |
41129 | echo "${ECHO_T}yes" >&6 | |
41130 | else | |
41131 | echo "$as_me: failed program was:" >&5 | |
41132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41133 | ||
41134 | echo "$as_me:$LINENO: result: no" >&5 | |
41135 | echo "${ECHO_T}no" >&6 | |
41136 | fi | |
ac1cb8d3 | 41137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
41138 | fi |
41139 | ;; | |
a848cd7e SC |
41140 | esac |
41141 | fi | |
74b84332 | 41142 | CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS" |
a848cd7e SC |
41143 | |
41144 | ||
41145 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
41146 | ||
41147 | ||
41148 | ||
41149 | ||
41150 | ||
41151 | ||
41152 | ||
41153 | ||
41154 | ||
41155 | ||
41156 | ||
41157 | ||
41158 | ||
41159 | ||
41160 | ||
41161 | ||
41162 | ||
41163 | ||
41164 | ||
41165 | ||
41166 | ||
41167 | ||
41168 | ||
41169 | ||
41170 | ||
41171 | ||
41172 | ||
41173 | ||
41174 | ||
41175 | ||
41176 | ||
41177 | ||
41178 | ||
41179 | ||
41180 | ||
41181 | ||
41182 | ||
41183 | ||
41184 | ||
41185 | ||
41186 | ||
41187 | ||
a848cd7e SC |
41188 | |
41189 | ||
41190 | ||
41191 | ||
41192 | ||
41193 | ||
41194 | ||
41195 | ||
41196 | ||
41197 | ||
41198 | ||
41199 | ||
41200 | ||
41201 | ||
41202 | ||
41203 | ||
41204 | ||
41205 | ||
74b84332 | 41206 | |
a848cd7e SC |
41207 | |
41208 | ||
41209 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
41210 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 41211 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
41212 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
41213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41214 | else | |
41215 | cat >conftest.make <<\_ACEOF | |
41216 | all: | |
41217 | @echo 'ac_maketemp="$(MAKE)"' | |
41218 | _ACEOF | |
41219 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
41220 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
41221 | if test -n "$ac_maketemp"; then | |
41222 | eval ac_cv_prog_make_${ac_make}_set=yes | |
41223 | else | |
41224 | eval ac_cv_prog_make_${ac_make}_set=no | |
41225 | fi | |
41226 | rm -f conftest.make | |
41227 | fi | |
41228 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
41229 | echo "$as_me:$LINENO: result: yes" >&5 | |
41230 | echo "${ECHO_T}yes" >&6 | |
41231 | SET_MAKE= | |
41232 | else | |
41233 | echo "$as_me:$LINENO: result: no" >&5 | |
41234 | echo "${ECHO_T}no" >&6 | |
41235 | SET_MAKE="MAKE=${MAKE-make}" | |
41236 | fi | |
41237 | ||
41238 | ||
a848cd7e | 41239 | |
ceec2216 RL |
41240 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
41241 | ||
a848cd7e | 41242 | |
ceec2216 | 41243 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41244 | |
a848cd7e | 41245 | |
ceec2216 | 41246 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41247 | |
ceec2216 RL |
41248 | |
41249 | ac_config_files="$ac_config_files version-script Makefile" | |
41250 | ||
41251 | ||
41252 | ac_config_commands="$ac_config_commands wx-config | |
41253 | " | |
a848cd7e SC |
41254 | |
41255 | ||
9103d280 RL |
41256 | |
41257 | ||
a848cd7e SC |
41258 | if test "$wxUSE_GUI" = "yes"; then |
41259 | SUBDIRS="samples demos utils contrib" | |
41260 | else SUBDIRS="samples utils" | |
41261 | fi | |
41262 | ||
41263 | ||
41264 | ||
41265 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
41266 | if test "${with_cppunit_prefix+set}" = set; then | |
41267 | withval="$with_cppunit_prefix" | |
41268 | cppunit_config_prefix="$withval" | |
41269 | else | |
41270 | cppunit_config_prefix="" | |
41271 | fi; | |
41272 | ||
41273 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
41274 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
41275 | withval="$with_cppunit_exec_prefix" | |
41276 | cppunit_config_exec_prefix="$withval" | |
41277 | else | |
41278 | cppunit_config_exec_prefix="" | |
41279 | fi; | |
41280 | ||
41281 | if test x$cppunit_config_exec_prefix != x ; then | |
41282 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41283 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41284 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41285 | fi | |
41286 | fi | |
41287 | if test x$cppunit_config_prefix != x ; then | |
41288 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41289 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41290 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41291 | fi | |
41292 | fi | |
41293 | ||
41294 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41295 | set dummy cppunit-config; ac_word=$2 | |
41296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41298 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
41299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41300 | else | |
41301 | case $CPPUNIT_CONFIG in | |
41302 | [\\/]* | ?:[\\/]*) | |
41303 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41304 | ;; | |
41305 | *) | |
41306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41307 | for as_dir in $PATH | |
41308 | do | |
41309 | IFS=$as_save_IFS | |
41310 | test -z "$as_dir" && as_dir=. | |
41311 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41312 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41313 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41314 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41315 | break 2 | |
41316 | fi | |
41317 | done | |
41318 | done | |
41319 | ||
41320 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41321 | ;; | |
41322 | esac | |
41323 | fi | |
41324 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
41325 | ||
41326 | if test -n "$CPPUNIT_CONFIG"; then | |
41327 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
41328 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
41329 | else | |
41330 | echo "$as_me:$LINENO: result: no" >&5 | |
41331 | echo "${ECHO_T}no" >&6 | |
41332 | fi | |
41333 | ||
41334 | cppunit_version_min=1.8.0 | |
41335 | ||
41336 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
41337 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
41338 | no_cppunit="" | |
41339 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
41340 | no_cppunit=yes | |
41341 | else | |
41342 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41343 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41344 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41345 | ||
41346 | cppunit_major_version=`echo $cppunit_version | \ | |
41347 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41348 | cppunit_minor_version=`echo $cppunit_version | \ | |
41349 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41350 | cppunit_micro_version=`echo $cppunit_version | \ | |
41351 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41352 | ||
41353 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41354 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41355 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41356 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41357 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41358 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41359 | ||
41360 | cppunit_version_proper=`expr \ | |
41361 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41362 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41363 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41364 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41365 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41366 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41367 | ||
41368 | if test "$cppunit_version_proper" = "1" ; then | |
41369 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
41370 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
41371 | else | |
41372 | echo "$as_me:$LINENO: result: no" >&5 | |
41373 | echo "${ECHO_T}no" >&6 | |
41374 | no_cppunit=yes | |
41375 | fi | |
41376 | fi | |
41377 | ||
41378 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41379 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41380 | else |
41381 | CPPUNIT_CFLAGS="" | |
41382 | CPPUNIT_LIBS="" | |
c2218763 | 41383 | : |
a848cd7e SC |
41384 | fi |
41385 | ||
41386 | ||
41387 | ||
41388 | ||
41389 | ||
41390 | for subdir in `echo $SUBDIRS`; do | |
41391 | if test -d ${srcdir}/${subdir} ; then | |
41392 | if test "$wxUSE_GUI" = "yes"; then | |
41393 | if test ${subdir} = "samples"; then | |
41394 | makefiles="samples/Makefile.in $makefiles" | |
41395 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41396 | if test -d $srcdir/samples/$sample; then | |
41397 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41398 | fi | |
41399 | done | |
41400 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
41401 | fi | |
41402 | else if test ${subdir} = "samples"; then | |
41403 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
41404 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
41405 | makefiles="" |
41406 | for util in HelpGen tex2rtf ; do | |
41407 | if test -d $srcdir/utils/$util ; then | |
41408 | makefiles="utils/$util/Makefile.in \ | |
41409 | utils/$util/src/Makefile.in \ | |
41410 | $makefiles" | |
41411 | fi | |
41412 | done | |
a848cd7e SC |
41413 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
41414 | fi | |
41415 | fi | |
41416 | ||
41417 | for mkin in $makefiles ; do | |
41418 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
41419 | ac_config_files="$ac_config_files $mk" | |
41420 | ||
41421 | done | |
41422 | fi | |
41423 | done | |
41424 | ||
41425 | ||
41426 | cat >confcache <<\_ACEOF | |
41427 | # This file is a shell script that caches the results of configure | |
41428 | # tests run on this system so they can be shared between configure | |
41429 | # scripts and configure runs, see configure's option --config-cache. | |
41430 | # It is not useful on other systems. If it contains results you don't | |
41431 | # want to keep, you may remove or edit it. | |
41432 | # | |
41433 | # config.status only pays attention to the cache file if you give it | |
41434 | # the --recheck option to rerun configure. | |
41435 | # | |
41436 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41437 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41438 | # following values. | |
41439 | ||
41440 | _ACEOF | |
41441 | ||
41442 | # The following way of writing the cache mishandles newlines in values, | |
41443 | # but we know of no workaround that is simple, portable, and efficient. | |
41444 | # So, don't put newlines in cache variables' values. | |
41445 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
41446 | # and sets the high bit in the cache file unless we assign to the vars. | |
41447 | { | |
41448 | (set) 2>&1 | | |
41449 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
41450 | *ac_space=\ *) | |
41451 | # `set' does not quote correctly, so add quotes (double-quote | |
41452 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
41453 | sed -n \ | |
ac1cb8d3 VS |
41454 | "s/'/'\\\\''/g; |
41455 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
41456 | ;; |
41457 | *) | |
41458 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
41459 | sed -n \ | |
ac1cb8d3 | 41460 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
41461 | ;; |
41462 | esac; | |
41463 | } | | |
41464 | sed ' | |
41465 | t clear | |
41466 | : clear | |
41467 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
41468 | t end | |
41469 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
41470 | : end' >>confcache | |
41471 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
41472 | if test -w $cache_file; then | |
41473 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
41474 | cat confcache >$cache_file | |
41475 | else | |
41476 | echo "not updating unwritable cache $cache_file" | |
41477 | fi | |
41478 | fi | |
41479 | rm -f confcache | |
41480 | ||
41481 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41482 | # Let make expand exec_prefix. | |
41483 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41484 | ||
41485 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
41486 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
41487 | # trailing colons and then remove the whole line if VPATH becomes empty | |
41488 | # (actually we leave an empty line to preserve line numbers). | |
41489 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 41490 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
41491 | s/:*\$(srcdir):*/:/; |
41492 | s/:*\${srcdir}:*/:/; | |
41493 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 41494 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 41495 | s/:*$//; |
ac1cb8d3 | 41496 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
41497 | }' |
41498 | fi | |
41499 | ||
41500 | DEFS=-DHAVE_CONFIG_H | |
41501 | ||
41502 | ac_libobjs= | |
41503 | ac_ltlibobjs= | |
41504 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
41505 | # 1. Remove the extension, and $U if already installed. | |
41506 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 41507 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
41508 | # 2. Add them. |
41509 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
41510 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
41511 | done | |
41512 | LIBOBJS=$ac_libobjs | |
41513 | ||
41514 | LTLIBOBJS=$ac_ltlibobjs | |
41515 | ||
41516 | ||
41517 | ||
41518 | : ${CONFIG_STATUS=./config.status} | |
41519 | ac_clean_files_save=$ac_clean_files | |
41520 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
41521 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
41522 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41523 | cat >$CONFIG_STATUS <<_ACEOF | |
41524 | #! $SHELL | |
41525 | # Generated by $as_me. | |
41526 | # Run this file to recreate the current configuration. | |
41527 | # Compiler output produced by configure, useful for debugging | |
41528 | # configure, is in config.log if it exists. | |
41529 | ||
41530 | debug=false | |
41531 | ac_cs_recheck=false | |
41532 | ac_cs_silent=false | |
41533 | SHELL=\${CONFIG_SHELL-$SHELL} | |
41534 | _ACEOF | |
41535 | ||
41536 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41537 | ## --------------------- ## | |
41538 | ## M4sh Initialization. ## | |
41539 | ## --------------------- ## | |
41540 | ||
41541 | # Be Bourne compatible | |
41542 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
41543 | emulate sh | |
41544 | NULLCMD=: | |
41545 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
41546 | # is contrary to our usage. Disable this feature. | |
41547 | alias -g '${1+"$@"}'='"$@"' | |
41548 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41549 | set -o posix | |
41550 | fi | |
ac1cb8d3 | 41551 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
41552 | |
41553 | # Support unset when possible. | |
ac1cb8d3 | 41554 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
41555 | as_unset=unset |
41556 | else | |
41557 | as_unset=false | |
41558 | fi | |
41559 | ||
41560 | ||
41561 | # Work around bugs in pre-3.0 UWIN ksh. | |
41562 | $as_unset ENV MAIL MAILPATH | |
41563 | PS1='$ ' | |
41564 | PS2='> ' | |
41565 | PS4='+ ' | |
41566 | ||
41567 | # NLS nuisances. | |
41568 | for as_var in \ | |
41569 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41570 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
41571 | LC_TELEPHONE LC_TIME | |
41572 | do | |
ac1cb8d3 | 41573 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
41574 | eval $as_var=C; export $as_var |
41575 | else | |
41576 | $as_unset $as_var | |
41577 | fi | |
41578 | done | |
41579 | ||
41580 | # Required to use basename. | |
41581 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41582 | as_expr=expr | |
41583 | else | |
41584 | as_expr=false | |
41585 | fi | |
41586 | ||
41587 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
41588 | as_basename=basename | |
41589 | else | |
41590 | as_basename=false | |
41591 | fi | |
41592 | ||
41593 | ||
41594 | # Name of the executable. | |
41595 | as_me=`$as_basename "$0" || | |
41596 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
41597 | X"$0" : 'X\(//\)$' \| \ | |
41598 | X"$0" : 'X\(/\)$' \| \ | |
41599 | . : '\(.\)' 2>/dev/null || | |
41600 | echo X/"$0" | | |
41601 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
41602 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
41603 | /^X\/\(\/\).*/{ s//\1/; q; } | |
41604 | s/.*/./; q'` | |
41605 | ||
41606 | ||
41607 | # PATH needs CR, and LINENO needs CR and PATH. | |
41608 | # Avoid depending upon Character Ranges. | |
41609 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41610 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41611 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41612 | as_cr_digits='0123456789' | |
41613 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41614 | ||
41615 | # The user is always right. | |
41616 | if test "${PATH_SEPARATOR+set}" != set; then | |
41617 | echo "#! /bin/sh" >conf$$.sh | |
41618 | echo "exit 0" >>conf$$.sh | |
41619 | chmod +x conf$$.sh | |
41620 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
41621 | PATH_SEPARATOR=';' | |
41622 | else | |
41623 | PATH_SEPARATOR=: | |
41624 | fi | |
41625 | rm -f conf$$.sh | |
41626 | fi | |
41627 | ||
41628 | ||
41629 | as_lineno_1=$LINENO | |
41630 | as_lineno_2=$LINENO | |
41631 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41632 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41633 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
41634 | # Find who we are. Look in the path if we contain no path at all | |
41635 | # relative or not. | |
41636 | case $0 in | |
41637 | *[\\/]* ) as_myself=$0 ;; | |
41638 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41639 | for as_dir in $PATH | |
41640 | do | |
41641 | IFS=$as_save_IFS | |
41642 | test -z "$as_dir" && as_dir=. | |
41643 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
41644 | done | |
41645 | ||
41646 | ;; | |
41647 | esac | |
41648 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41649 | # in which case we are not to be found in the path. | |
41650 | if test "x$as_myself" = x; then | |
41651 | as_myself=$0 | |
41652 | fi | |
41653 | if test ! -f "$as_myself"; then | |
41654 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
41655 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
41656 | { (exit 1); exit 1; }; } | |
41657 | fi | |
41658 | case $CONFIG_SHELL in | |
41659 | '') | |
41660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41661 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
41662 | do | |
41663 | IFS=$as_save_IFS | |
41664 | test -z "$as_dir" && as_dir=. | |
41665 | for as_base in sh bash ksh sh5; do | |
41666 | case $as_dir in | |
41667 | /*) | |
41668 | if ("$as_dir/$as_base" -c ' | |
41669 | as_lineno_1=$LINENO | |
41670 | as_lineno_2=$LINENO | |
41671 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
41672 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
41673 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
41674 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
41675 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
41676 | CONFIG_SHELL=$as_dir/$as_base | |
41677 | export CONFIG_SHELL | |
41678 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
41679 | fi;; | |
41680 | esac | |
41681 | done | |
41682 | done | |
41683 | ;; | |
41684 | esac | |
41685 | ||
41686 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
41687 | # uniformly replaced by the line number. The first 'sed' inserts a | |
41688 | # line-number line before each line; the second 'sed' does the real | |
41689 | # work. The second script uses 'N' to pair each line-number line | |
41690 | # with the numbered line, and appends trailing '-' during | |
41691 | # substitution so that $LINENO is not a special case at line end. | |
41692 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
41693 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
41694 | sed '=' <$as_myself | | |
41695 | sed ' | |
41696 | N | |
41697 | s,$,-, | |
41698 | : loop | |
41699 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
41700 | t loop | |
41701 | s,-$,, | |
41702 | s,^['$as_cr_digits']*\n,, | |
41703 | ' >$as_me.lineno && | |
41704 | chmod +x $as_me.lineno || | |
41705 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
41706 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
41707 | { (exit 1); exit 1; }; } | |
41708 | ||
41709 | # Don't try to exec as it changes $[0], causing all sort of problems | |
41710 | # (the dirname of $[0] is not the place where we might find the | |
41711 | # original and so on. Autoconf is especially sensible to this). | |
41712 | . ./$as_me.lineno | |
41713 | # Exit status is that of the last command. | |
41714 | exit | |
41715 | } | |
41716 | ||
41717 | ||
41718 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
41719 | *c*,-n*) ECHO_N= ECHO_C=' | |
41720 | ' ECHO_T=' ' ;; | |
41721 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
41722 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
41723 | esac | |
41724 | ||
41725 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
41726 | as_expr=expr | |
41727 | else | |
41728 | as_expr=false | |
41729 | fi | |
41730 | ||
41731 | rm -f conf$$ conf$$.exe conf$$.file | |
41732 | echo >conf$$.file | |
41733 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41734 | # We could just check for DJGPP; but this test a) works b) is more generic | |
41735 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
41736 | if test -f conf$$.exe; then | |
41737 | # Don't use ln at all; we don't have any links | |
41738 | as_ln_s='cp -p' | |
41739 | else | |
41740 | as_ln_s='ln -s' | |
41741 | fi | |
41742 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
41743 | as_ln_s=ln | |
41744 | else | |
41745 | as_ln_s='cp -p' | |
41746 | fi | |
41747 | rm -f conf$$ conf$$.exe conf$$.file | |
41748 | ||
41749 | if mkdir -p . 2>/dev/null; then | |
41750 | as_mkdir_p=: | |
41751 | else | |
ac1cb8d3 | 41752 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
41753 | as_mkdir_p=false |
41754 | fi | |
41755 | ||
41756 | as_executable_p="test -f" | |
41757 | ||
41758 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 41759 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41760 | |
41761 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 41762 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
41763 | |
41764 | ||
41765 | # IFS | |
41766 | # We need space, tab and new line, in precisely that order. | |
41767 | as_nl=' | |
41768 | ' | |
41769 | IFS=" $as_nl" | |
41770 | ||
41771 | # CDPATH. | |
41772 | $as_unset CDPATH | |
41773 | ||
41774 | exec 6>&1 | |
41775 | ||
41776 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
41777 | # report actual input values of CONFIG_FILES etc. instead of their | |
41778 | # values after options handling. Logging --version etc. is OK. | |
41779 | exec 5>>config.log | |
41780 | { | |
41781 | echo | |
41782 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
41783 | ## Running $as_me. ## | |
41784 | _ASBOX | |
41785 | } >&5 | |
41786 | cat >&5 <<_CSEOF | |
41787 | ||
7714864e | 41788 | This file was extended by wxWidgets $as_me 2.5.3, which was |
ac1cb8d3 | 41789 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
41790 | |
41791 | CONFIG_FILES = $CONFIG_FILES | |
41792 | CONFIG_HEADERS = $CONFIG_HEADERS | |
41793 | CONFIG_LINKS = $CONFIG_LINKS | |
41794 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
41795 | $ $0 $@ | |
41796 | ||
41797 | _CSEOF | |
41798 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
41799 | echo >&5 | |
41800 | _ACEOF | |
41801 | ||
41802 | # Files that config.status was made for. | |
41803 | if test -n "$ac_config_files"; then | |
41804 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
41805 | fi | |
41806 | ||
41807 | if test -n "$ac_config_headers"; then | |
41808 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
41809 | fi | |
41810 | ||
41811 | if test -n "$ac_config_links"; then | |
41812 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
41813 | fi | |
41814 | ||
41815 | if test -n "$ac_config_commands"; then | |
41816 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
41817 | fi | |
41818 | ||
41819 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41820 | ||
41821 | ac_cs_usage="\ | |
41822 | \`$as_me' instantiates files from templates according to the | |
41823 | current configuration. | |
41824 | ||
41825 | Usage: $0 [OPTIONS] [FILE]... | |
41826 | ||
41827 | -h, --help print this help, then exit | |
41828 | -V, --version print version number, then exit | |
41829 | -q, --quiet do not print progress messages | |
41830 | -d, --debug don't remove temporary files | |
41831 | --recheck update $as_me by reconfiguring in the same conditions | |
41832 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 41833 | instantiate the configuration file FILE |
a848cd7e | 41834 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 41835 | instantiate the configuration header FILE |
a848cd7e SC |
41836 | |
41837 | Configuration files: | |
41838 | $config_files | |
41839 | ||
41840 | Configuration headers: | |
41841 | $config_headers | |
41842 | ||
41843 | Configuration commands: | |
41844 | $config_commands | |
41845 | ||
41846 | Report bugs to <bug-autoconf@gnu.org>." | |
41847 | _ACEOF | |
41848 | ||
41849 | cat >>$CONFIG_STATUS <<_ACEOF | |
41850 | ac_cs_version="\\ | |
7714864e | 41851 | wxWidgets config.status 2.5.3 |
ac1cb8d3 | 41852 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
41853 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
41854 | ||
ac1cb8d3 | 41855 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
41856 | This config.status script is free software; the Free Software Foundation |
41857 | gives unlimited permission to copy, distribute and modify it." | |
41858 | srcdir=$srcdir | |
41859 | INSTALL="$INSTALL" | |
41860 | _ACEOF | |
41861 | ||
41862 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41863 | # If no file are specified by the user, then we need to provide default | |
41864 | # value. By we need to know if files were specified by the user. | |
41865 | ac_need_defaults=: | |
41866 | while test $# != 0 | |
41867 | do | |
41868 | case $1 in | |
41869 | --*=*) | |
41870 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
41871 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
41872 | ac_shift=: | |
41873 | ;; | |
41874 | -*) | |
41875 | ac_option=$1 | |
41876 | ac_optarg=$2 | |
41877 | ac_shift=shift | |
41878 | ;; | |
41879 | *) # This is not an option, so the user has probably given explicit | |
41880 | # arguments. | |
41881 | ac_option=$1 | |
41882 | ac_need_defaults=false;; | |
41883 | esac | |
41884 | ||
41885 | case $ac_option in | |
41886 | # Handling of the options. | |
41887 | _ACEOF | |
41888 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41889 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
41890 | ac_cs_recheck=: ;; | |
41891 | --version | --vers* | -V ) | |
41892 | echo "$ac_cs_version"; exit 0 ;; | |
41893 | --he | --h) | |
41894 | # Conflict between --help and --header | |
41895 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
41896 | Try \`$0 --help' for more information." >&5 | |
41897 | echo "$as_me: error: ambiguous option: $1 | |
41898 | Try \`$0 --help' for more information." >&2;} | |
41899 | { (exit 1); exit 1; }; };; | |
41900 | --help | --hel | -h ) | |
41901 | echo "$ac_cs_usage"; exit 0 ;; | |
41902 | --debug | --d* | -d ) | |
41903 | debug=: ;; | |
41904 | --file | --fil | --fi | --f ) | |
41905 | $ac_shift | |
41906 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
41907 | ac_need_defaults=false;; | |
41908 | --header | --heade | --head | --hea ) | |
41909 | $ac_shift | |
41910 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
41911 | ac_need_defaults=false;; | |
41912 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
41913 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
41914 | ac_cs_silent=: ;; | |
41915 | ||
41916 | # This is an error. | |
41917 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
41918 | Try \`$0 --help' for more information." >&5 | |
41919 | echo "$as_me: error: unrecognized option: $1 | |
41920 | Try \`$0 --help' for more information." >&2;} | |
41921 | { (exit 1); exit 1; }; } ;; | |
41922 | ||
41923 | *) ac_config_targets="$ac_config_targets $1" ;; | |
41924 | ||
41925 | esac | |
41926 | shift | |
41927 | done | |
41928 | ||
41929 | ac_configure_extra_args= | |
41930 | ||
41931 | if $ac_cs_silent; then | |
41932 | exec 6>/dev/null | |
41933 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
41934 | fi | |
41935 | ||
41936 | _ACEOF | |
41937 | cat >>$CONFIG_STATUS <<_ACEOF | |
41938 | if \$ac_cs_recheck; then | |
41939 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
41940 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
41941 | fi | |
41942 | ||
41943 | _ACEOF | |
41944 | ||
41945 | cat >>$CONFIG_STATUS <<_ACEOF | |
41946 | # | |
41947 | # INIT-COMMANDS section. | |
41948 | # | |
41949 | ||
ceec2216 RL |
41950 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
41951 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41952 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
41953 | LN_S="${LN_S}" | |
a848cd7e SC |
41954 | |
41955 | ||
41956 | _ACEOF | |
41957 | ||
41958 | ||
41959 | ||
41960 | cat >>$CONFIG_STATUS <<\_ACEOF | |
41961 | for ac_config_target in $ac_config_targets | |
41962 | do | |
41963 | case "$ac_config_target" in | |
41964 | # Handling of arguments. | |
ceec2216 RL |
41965 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
41966 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
41967 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
41968 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
41969 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
41970 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
41971 | "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 |
41972 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
41973 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
41974 | { (exit 1); exit 1; }; };; | |
41975 | esac | |
41976 | done | |
41977 | ||
41978 | # If the user did not use the arguments to specify the items to instantiate, | |
41979 | # then the envvar interface is used. Set only those that are not. | |
41980 | # We use the long form for the default assignment because of an extremely | |
41981 | # bizarre bug on SunOS 4.1.3. | |
41982 | if $ac_need_defaults; then | |
41983 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
41984 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
41985 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
41986 | fi | |
41987 | ||
41988 | # Have a temporary directory for convenience. Make it in the build tree | |
41989 | # simply because there is no reason to put it here, and in addition, | |
41990 | # creating and moving files from /tmp can sometimes cause problems. | |
41991 | # Create a temporary directory, and hook for its removal unless debugging. | |
41992 | $debug || | |
41993 | { | |
41994 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
41995 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
41996 | } | |
41997 | ||
41998 | # Create a (secure) tmp directory for tmp files. | |
41999 | ||
42000 | { | |
42001 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
42002 | test -n "$tmp" && test -d "$tmp" | |
42003 | } || | |
42004 | { | |
42005 | tmp=./confstat$$-$RANDOM | |
42006 | (umask 077 && mkdir $tmp) | |
42007 | } || | |
42008 | { | |
42009 | echo "$me: cannot create a temporary directory in ." >&2 | |
42010 | { (exit 1); exit 1; } | |
42011 | } | |
42012 | ||
42013 | _ACEOF | |
42014 | ||
42015 | cat >>$CONFIG_STATUS <<_ACEOF | |
42016 | ||
42017 | # | |
42018 | # CONFIG_FILES section. | |
42019 | # | |
42020 | ||
42021 | # No need to generate the scripts if there are no CONFIG_FILES. | |
42022 | # This happens for instance when ./config.status config.h | |
42023 | if test -n "\$CONFIG_FILES"; then | |
42024 | # Protect against being on the right side of a sed subst in config.status. | |
42025 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
42026 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
42027 | s,@SHELL@,$SHELL,;t t | |
42028 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
42029 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
42030 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
42031 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
42032 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
42033 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
42034 | s,@exec_prefix@,$exec_prefix,;t t | |
42035 | s,@prefix@,$prefix,;t t | |
42036 | s,@program_transform_name@,$program_transform_name,;t t | |
42037 | s,@bindir@,$bindir,;t t | |
42038 | s,@sbindir@,$sbindir,;t t | |
42039 | s,@libexecdir@,$libexecdir,;t t | |
42040 | s,@datadir@,$datadir,;t t | |
42041 | s,@sysconfdir@,$sysconfdir,;t t | |
42042 | s,@sharedstatedir@,$sharedstatedir,;t t | |
42043 | s,@localstatedir@,$localstatedir,;t t | |
42044 | s,@libdir@,$libdir,;t t | |
42045 | s,@includedir@,$includedir,;t t | |
42046 | s,@oldincludedir@,$oldincludedir,;t t | |
42047 | s,@infodir@,$infodir,;t t | |
42048 | s,@mandir@,$mandir,;t t | |
42049 | s,@build_alias@,$build_alias,;t t | |
42050 | s,@host_alias@,$host_alias,;t t | |
42051 | s,@target_alias@,$target_alias,;t t | |
42052 | s,@DEFS@,$DEFS,;t t | |
42053 | s,@ECHO_C@,$ECHO_C,;t t | |
42054 | s,@ECHO_N@,$ECHO_N,;t t | |
42055 | s,@ECHO_T@,$ECHO_T,;t t | |
42056 | s,@LIBS@,$LIBS,;t t | |
42057 | s,@build@,$build,;t t | |
42058 | s,@build_cpu@,$build_cpu,;t t | |
42059 | s,@build_vendor@,$build_vendor,;t t | |
42060 | s,@build_os@,$build_os,;t t | |
42061 | s,@host@,$host,;t t | |
42062 | s,@host_cpu@,$host_cpu,;t t | |
42063 | s,@host_vendor@,$host_vendor,;t t | |
42064 | s,@host_os@,$host_os,;t t | |
42065 | s,@target@,$target,;t t | |
42066 | s,@target_cpu@,$target_cpu,;t t | |
42067 | s,@target_vendor@,$target_vendor,;t t | |
42068 | s,@target_os@,$target_os,;t t | |
42069 | s,@CC@,$CC,;t t | |
42070 | s,@CFLAGS@,$CFLAGS,;t t | |
42071 | s,@LDFLAGS@,$LDFLAGS,;t t | |
42072 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
42073 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
42074 | s,@EXEEXT@,$EXEEXT,;t t | |
42075 | s,@OBJEXT@,$OBJEXT,;t t | |
42076 | s,@CPP@,$CPP,;t t | |
42077 | s,@EGREP@,$EGREP,;t t | |
42078 | s,@CXX@,$CXX,;t t | |
42079 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
42080 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
42081 | s,@RANLIB@,$RANLIB,;t t | |
42082 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
42083 | s,@AR@,$AR,;t t | |
42084 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
42085 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
42086 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
42087 | s,@STRIP@,$STRIP,;t t | |
42088 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
42089 | s,@LN_S@,$LN_S,;t t | |
42090 | s,@CXXCPP@,$CXXCPP,;t t | |
42091 | s,@subdirs@,$subdirs,;t t | |
42092 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
42093 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
42094 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
42095 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
42096 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
42097 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
42098 | s,@X_LIBS@,$X_LIBS,;t t | |
42099 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
42100 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
42101 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
42102 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
42103 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
42104 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
42105 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
42106 | s,@RESCOMP@,$RESCOMP,;t t | |
42107 | s,@DEREZ@,$DEREZ,;t t | |
42108 | s,@SETFILE@,$SETFILE,;t t | |
42109 | s,@LIBICONV@,$LIBICONV,;t t | |
42110 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
42111 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
42112 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
42113 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
42114 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
42115 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
a848cd7e SC |
42116 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
42117 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
42118 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
42119 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
42120 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
42121 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
42122 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
42123 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
42124 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
42125 | s,@VENDOR@,$VENDOR,;t t | |
42126 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
42127 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
42128 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
42129 | s,@WXUNIV@,$WXUNIV,;t t |
42130 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
42131 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
42132 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
42133 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
42134 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
42135 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
42136 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
42137 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
42138 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
42139 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 42140 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
42141 | s,@UNICODE@,$UNICODE,;t t |
42142 | s,@BUILD@,$BUILD,;t t | |
42143 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
42144 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
42145 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
42146 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
42147 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
42148 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
42149 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
42150 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
42151 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
42152 | s,@SET_MAKE@,$SET_MAKE,;t t | |
42153 | s,@MAKE_SET@,$MAKE_SET,;t t | |
42154 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
42155 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
42156 | s,@NM@,$NM,;t t | |
42157 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
42158 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
42159 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
42160 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
42161 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
42162 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
42163 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
42164 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
42165 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
42166 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
42167 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
42168 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
42169 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
42170 | s,@LIBEXT@,$LIBEXT,;t t | |
42171 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
42172 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
42173 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
42174 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
42175 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
42176 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
42177 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
42178 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
42179 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
42180 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
42181 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
42182 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
42183 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
42184 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
42185 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
42186 | s,@GCC_PCH@,$GCC_PCH,;t t | |
42187 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
42188 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
42189 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
42190 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
42191 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
42192 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
42193 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
42194 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
42195 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
42196 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
42197 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
42198 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
42199 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
42200 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
42201 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
42202 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
42203 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
42204 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
42205 | 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 | |
42206 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
42207 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
ceec2216 | 42208 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
42209 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
42210 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
42211 | 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 | |
42212 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
42213 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
ceec2216 | 42214 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
42215 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
42216 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
42217 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
42218 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
42219 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
42220 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
42221 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
42222 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 42223 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
42224 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
42225 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
42226 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
ebee3cd0 VS |
42227 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
42228 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
42229 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
42230 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 42231 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
a848cd7e SC |
42232 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
42233 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
42234 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
42235 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
42236 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
42237 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
42238 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
42239 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
42240 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
ceec2216 RL |
42241 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
42242 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
42243 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
42244 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
42245 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42246 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42247 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
42248 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
42249 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
42250 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
42251 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
42252 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
42253 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
a30f955f | 42254 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 42255 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 42256 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
42257 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
42258 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
42259 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
42260 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
42261 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
42262 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
42263 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
42264 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
42265 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
42266 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
42267 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
42268 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
42269 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
42270 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
42271 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
42272 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
42273 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
42274 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
42275 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
42276 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
42277 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
42278 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
42279 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
42280 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
42281 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
42282 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
42283 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
42284 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
42285 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
42286 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
42287 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
42288 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
42289 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
ceec2216 | 42290 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
ffa0583f | 42291 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t |
a848cd7e SC |
42292 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
42293 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
42294 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
42295 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
42296 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
a13a7f89 | 42297 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
a848cd7e | 42298 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
a848cd7e SC |
42299 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
42300 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
42301 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
42302 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
42303 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
42304 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
42305 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
42306 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
9a8f0513 VS |
42307 | s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t |
42308 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t | |
42309 | s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t | |
ceec2216 | 42310 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
42311 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
42312 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
42313 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
42314 | s,@USE_GUI@,$USE_GUI,;t t | |
42315 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
42316 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
42317 | s,@TOOLKIT@,$TOOLKIT,;t t | |
42318 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 42319 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 42320 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
42321 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
42322 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 42323 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
42324 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
42325 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
42326 | s,@WX_VERSION@,$WX_VERSION,;t t | |
42327 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
42328 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
42329 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 42330 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
42331 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
42332 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
42333 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
42334 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
74b84332 | 42335 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
42336 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
42337 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 42338 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 42339 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
42340 | s,@DISTDIR@,$DISTDIR,;t t |
42341 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
42342 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
42343 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
42344 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
42345 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
42346 | s,@RESFLAGS@,$RESFLAGS,;t t | |
42347 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
42348 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
42349 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
42350 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
42351 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
42352 | s,@MACSETFILE@,$MACSETFILE,;t t | |
42353 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
42354 | s,@GCC@,$GCC,;t t | |
a848cd7e | 42355 | s,@DLLTOOL@,$DLLTOOL,;t t |
a848cd7e SC |
42356 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
42357 | s,@LIBOBJS@,$LIBOBJS,;t t | |
42358 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
42359 | CEOF | |
42360 | ||
42361 | _ACEOF | |
42362 | ||
42363 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42364 | # Split the substitutions into bite-sized pieces for seds with | |
42365 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
42366 | ac_max_sed_lines=48 | |
42367 | ac_sed_frag=1 # Number of current file. | |
42368 | ac_beg=1 # First line for current file. | |
42369 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
42370 | ac_more_lines=: | |
42371 | ac_sed_cmds= | |
42372 | while $ac_more_lines; do | |
42373 | if test $ac_beg -gt 1; then | |
42374 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42375 | else | |
42376 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
42377 | fi | |
42378 | if test ! -s $tmp/subs.frag; then | |
42379 | ac_more_lines=false | |
42380 | else | |
42381 | # The purpose of the label and of the branching condition is to | |
42382 | # speed up the sed processing (if there are no `@' at all, there | |
42383 | # is no need to browse any of the substitutions). | |
42384 | # These are the two extra sed commands mentioned above. | |
42385 | (echo ':t | |
42386 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
42387 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 42388 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 42389 | else |
ac1cb8d3 | 42390 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
42391 | fi |
42392 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
42393 | ac_beg=$ac_end | |
42394 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
42395 | fi | |
42396 | done | |
42397 | if test -z "$ac_sed_cmds"; then | |
42398 | ac_sed_cmds=cat | |
42399 | fi | |
42400 | fi # test -n "$CONFIG_FILES" | |
42401 | ||
42402 | _ACEOF | |
42403 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42404 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
42405 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42406 | case $ac_file in | |
42407 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42408 | cat >$tmp/stdin |
42409 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42410 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42411 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42412 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42413 | * ) ac_file_in=$ac_file.in ;; |
42414 | esac | |
42415 | ||
42416 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
42417 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42418 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42419 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42420 | X"$ac_file" : 'X\(//\)$' \| \ | |
42421 | X"$ac_file" : 'X\(/\)' \| \ | |
42422 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42423 | echo X"$ac_file" | |
42424 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42425 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42426 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42427 | /^X\(\/\).*/{ s//\1/; q; } | |
42428 | s/.*/./; q'` | |
42429 | { if $as_mkdir_p; then | |
42430 | mkdir -p "$ac_dir" | |
42431 | else | |
42432 | as_dir="$ac_dir" | |
42433 | as_dirs= | |
42434 | while test ! -d "$as_dir"; do | |
42435 | as_dirs="$as_dir $as_dirs" | |
42436 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42437 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42438 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42439 | X"$as_dir" : 'X\(//\)$' \| \ | |
42440 | X"$as_dir" : 'X\(/\)' \| \ | |
42441 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42442 | echo X"$as_dir" | |
42443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42445 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42446 | /^X\(\/\).*/{ s//\1/; q; } | |
42447 | s/.*/./; q'` | |
42448 | done | |
42449 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42450 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42451 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42452 | { (exit 1); exit 1; }; }; } | |
42453 | ||
42454 | ac_builddir=. | |
42455 | ||
42456 | if test "$ac_dir" != .; then | |
42457 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42458 | # A "../" for each directory in $ac_dir_suffix. | |
42459 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42460 | else | |
42461 | ac_dir_suffix= ac_top_builddir= | |
42462 | fi | |
42463 | ||
42464 | case $srcdir in | |
42465 | .) # No --srcdir option. We are building in place. | |
42466 | ac_srcdir=. | |
42467 | if test -z "$ac_top_builddir"; then | |
42468 | ac_top_srcdir=. | |
42469 | else | |
42470 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42471 | fi ;; | |
42472 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42473 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42474 | ac_top_srcdir=$srcdir ;; | |
42475 | *) # Relative path. | |
42476 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42477 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42478 | esac | |
ac1cb8d3 VS |
42479 | |
42480 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42481 | # the directories may not exist. | |
42482 | case `pwd` in | |
42483 | .) ac_abs_builddir="$ac_dir";; | |
42484 | *) | |
42485 | case "$ac_dir" in | |
42486 | .) ac_abs_builddir=`pwd`;; | |
42487 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42488 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42489 | esac;; | |
42490 | esac | |
42491 | case $ac_abs_builddir in | |
42492 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42493 | *) | |
42494 | case ${ac_top_builddir}. in | |
42495 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42496 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42497 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42498 | esac;; | |
42499 | esac | |
42500 | case $ac_abs_builddir in | |
42501 | .) ac_abs_srcdir=$ac_srcdir;; | |
42502 | *) | |
42503 | case $ac_srcdir in | |
42504 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42505 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42506 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42507 | esac;; | |
42508 | esac | |
42509 | case $ac_abs_builddir in | |
42510 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42511 | *) | |
42512 | case $ac_top_srcdir in | |
42513 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42514 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42515 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42516 | esac;; | |
42517 | esac | |
a848cd7e SC |
42518 | |
42519 | ||
42520 | case $INSTALL in | |
42521 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
42522 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
42523 | esac | |
42524 | ||
a848cd7e SC |
42525 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
42526 | # use $as_me), people would be surprised to read: | |
42527 | # /* config.h. Generated by config.status. */ | |
42528 | if test x"$ac_file" = x-; then | |
42529 | configure_input= | |
42530 | else | |
42531 | configure_input="$ac_file. " | |
42532 | fi | |
42533 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 42534 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
42535 | |
42536 | # First look for the input files in the build tree, otherwise in the | |
42537 | # src tree. | |
42538 | ac_file_inputs=`IFS=: | |
42539 | for f in $ac_file_in; do | |
42540 | case $f in | |
42541 | -) echo $tmp/stdin ;; | |
42542 | [\\/$]*) | |
ac1cb8d3 VS |
42543 | # Absolute (can't be DOS-style, as IFS=:) |
42544 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42545 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42546 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42547 | echo "$f";; |
a848cd7e | 42548 | *) # Relative |
ac1cb8d3 VS |
42549 | if test -f "$f"; then |
42550 | # Build tree | |
42551 | echo "$f" | |
42552 | elif test -f "$srcdir/$f"; then | |
42553 | # Source tree | |
42554 | echo "$srcdir/$f" | |
42555 | else | |
42556 | # /dev/null tree | |
42557 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42558 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42559 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42560 | fi;; |
a848cd7e SC |
42561 | esac |
42562 | done` || { (exit 1); exit 1; } | |
d1c38808 VZ |
42563 | |
42564 | if test x"$ac_file" != x-; then | |
42565 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42566 | echo "$as_me: creating $ac_file" >&6;} | |
42567 | rm -f "$ac_file" | |
42568 | fi | |
a848cd7e SC |
42569 | _ACEOF |
42570 | cat >>$CONFIG_STATUS <<_ACEOF | |
42571 | sed "$ac_vpsub | |
42572 | $extrasub | |
42573 | _ACEOF | |
42574 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42575 | :t | |
42576 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
42577 | s,@configure_input@,$configure_input,;t t | |
42578 | s,@srcdir@,$ac_srcdir,;t t | |
42579 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
42580 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
42581 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
42582 | s,@builddir@,$ac_builddir,;t t | |
42583 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
42584 | s,@top_builddir@,$ac_top_builddir,;t t | |
42585 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
42586 | s,@INSTALL@,$ac_INSTALL,;t t | |
42587 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
42588 | rm -f $tmp/stdin | |
42589 | if test x"$ac_file" != x-; then | |
42590 | mv $tmp/out $ac_file | |
42591 | else | |
42592 | cat $tmp/out | |
42593 | rm -f $tmp/out | |
42594 | fi | |
42595 | ||
ceec2216 RL |
42596 | # Run the commands associated with the file. |
42597 | case $ac_file in | |
42598 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
42599 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
42600 | esac | |
a848cd7e SC |
42601 | done |
42602 | _ACEOF | |
42603 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42604 | ||
42605 | # | |
42606 | # CONFIG_HEADER section. | |
42607 | # | |
42608 | ||
42609 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
42610 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
42611 | # | |
42612 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
42613 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
42614 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
42615 | ac_dC=' ' |
42616 | ac_dD=',;t' | |
42617 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 42618 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
42619 | ac_uB='$,\1#\2define\3' |
42620 | ac_uC=' ' | |
42621 | ac_uD=',;t' | |
42622 | ||
42623 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
42624 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
42625 | case $ac_file in | |
42626 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
42627 | cat >$tmp/stdin |
42628 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42629 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 42630 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 42631 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
42632 | * ) ac_file_in=$ac_file.in ;; |
42633 | esac | |
42634 | ||
42635 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
42636 | echo "$as_me: creating $ac_file" >&6;} | |
42637 | ||
42638 | # First look for the input files in the build tree, otherwise in the | |
42639 | # src tree. | |
42640 | ac_file_inputs=`IFS=: | |
42641 | for f in $ac_file_in; do | |
42642 | case $f in | |
42643 | -) echo $tmp/stdin ;; | |
42644 | [\\/$]*) | |
ac1cb8d3 VS |
42645 | # Absolute (can't be DOS-style, as IFS=:) |
42646 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42647 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42648 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
42649 | # Do quote $f, to prevent DOS paths from being IFS'd. |
42650 | echo "$f";; | |
a848cd7e | 42651 | *) # Relative |
ac1cb8d3 VS |
42652 | if test -f "$f"; then |
42653 | # Build tree | |
42654 | echo "$f" | |
42655 | elif test -f "$srcdir/$f"; then | |
42656 | # Source tree | |
42657 | echo "$srcdir/$f" | |
42658 | else | |
42659 | # /dev/null tree | |
42660 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
42661 | echo "$as_me: error: cannot find input file: $f" >&2;} |
42662 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 42663 | fi;; |
a848cd7e SC |
42664 | esac |
42665 | done` || { (exit 1); exit 1; } | |
42666 | # Remove the trailing spaces. | |
ac1cb8d3 | 42667 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
42668 | |
42669 | _ACEOF | |
42670 | ||
42671 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
42672 | # `conftest.undefs', that substitutes the proper values into | |
42673 | # config.h.in to produce config.h. The first handles `#define' | |
42674 | # templates, and the second `#undef' templates. | |
42675 | # And first: Protect against being on the right side of a sed subst in | |
42676 | # config.status. Protect against being in an unquoted here document | |
42677 | # in config.status. | |
42678 | rm -f conftest.defines conftest.undefs | |
42679 | # Using a here document instead of a string reduces the quoting nightmare. | |
42680 | # Putting comments in sed scripts is not portable. | |
42681 | # | |
42682 | # `end' is used to avoid that the second main sed command (meant for | |
42683 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
42684 | # See the Autoconf documentation for `clear'. | |
42685 | cat >confdef2sed.sed <<\_ACEOF | |
42686 | s/[\\&,]/\\&/g | |
42687 | s,[\\$`],\\&,g | |
42688 | t clear | |
42689 | : clear | |
ac1cb8d3 | 42690 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 42691 | t end |
ac1cb8d3 | 42692 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
42693 | : end |
42694 | _ACEOF | |
42695 | # If some macros were called several times there might be several times | |
42696 | # the same #defines, which is useless. Nevertheless, we may not want to | |
42697 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
42698 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
42699 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
42700 | rm -f confdef2sed.sed | |
42701 | ||
42702 | # This sed command replaces #undef with comments. This is necessary, for | |
42703 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
42704 | # on some systems where configure will not decide to define it. | |
42705 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 42706 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
42707 | _ACEOF |
42708 | ||
42709 | # Break up conftest.defines because some shells have a limit on the size | |
42710 | # of here documents, and old seds have small limits too (100 cmds). | |
42711 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 42712 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
42713 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
42714 | echo ' :' >>$CONFIG_STATUS | |
42715 | rm -f conftest.tail | |
42716 | while grep . conftest.defines >/dev/null | |
42717 | do | |
42718 | # Write a limited-size here document to $tmp/defines.sed. | |
42719 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
42720 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 42721 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42722 | # Work around the forget-to-reset-the-flag bug. |
42723 | echo 't clr' >>$CONFIG_STATUS | |
42724 | echo ': clr' >>$CONFIG_STATUS | |
42725 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
42726 | echo 'CEOF | |
42727 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
42728 | rm -f $tmp/in | |
42729 | mv $tmp/out $tmp/in | |
42730 | ' >>$CONFIG_STATUS | |
42731 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
42732 | rm -f conftest.defines | |
42733 | mv conftest.tail conftest.defines | |
42734 | done | |
42735 | rm -f conftest.defines | |
42736 | echo ' fi # grep' >>$CONFIG_STATUS | |
42737 | echo >>$CONFIG_STATUS | |
42738 | ||
42739 | # Break up conftest.undefs because some shells have a limit on the size | |
42740 | # of here documents, and old seds have small limits too (100 cmds). | |
42741 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
42742 | rm -f conftest.tail | |
42743 | while grep . conftest.undefs >/dev/null | |
42744 | do | |
42745 | # Write a limited-size here document to $tmp/undefs.sed. | |
42746 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
42747 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 42748 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
42749 | # Work around the forget-to-reset-the-flag bug. |
42750 | echo 't clr' >>$CONFIG_STATUS | |
42751 | echo ': clr' >>$CONFIG_STATUS | |
42752 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
42753 | echo 'CEOF | |
42754 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
42755 | rm -f $tmp/in | |
42756 | mv $tmp/out $tmp/in | |
42757 | ' >>$CONFIG_STATUS | |
42758 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
42759 | rm -f conftest.undefs | |
42760 | mv conftest.tail conftest.undefs | |
42761 | done | |
42762 | rm -f conftest.undefs | |
42763 | ||
42764 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42765 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42766 | # use $as_me), people would be surprised to read: | |
42767 | # /* config.h. Generated by config.status. */ | |
42768 | if test x"$ac_file" = x-; then | |
42769 | echo "/* Generated by configure. */" >$tmp/config.h | |
42770 | else | |
42771 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
42772 | fi | |
42773 | cat $tmp/in >>$tmp/config.h | |
42774 | rm -f $tmp/in | |
42775 | if test x"$ac_file" != x-; then | |
42776 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
42777 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
42778 | echo "$as_me: $ac_file is unchanged" >&6;} | |
42779 | else | |
42780 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
42781 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42782 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42783 | X"$ac_file" : 'X\(//\)$' \| \ | |
42784 | X"$ac_file" : 'X\(/\)' \| \ | |
42785 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42786 | echo X"$ac_file" | |
42787 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42788 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42789 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42790 | /^X\(\/\).*/{ s//\1/; q; } | |
42791 | s/.*/./; q'` | |
42792 | { if $as_mkdir_p; then | |
42793 | mkdir -p "$ac_dir" | |
42794 | else | |
42795 | as_dir="$ac_dir" | |
42796 | as_dirs= | |
42797 | while test ! -d "$as_dir"; do | |
42798 | as_dirs="$as_dir $as_dirs" | |
42799 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42800 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42801 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
42802 | X"$as_dir" : 'X\(//\)$' \| \ | |
42803 | X"$as_dir" : 'X\(/\)' \| \ | |
42804 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42805 | echo X"$as_dir" | |
42806 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42807 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42808 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42809 | /^X\(\/\).*/{ s//\1/; q; } | |
42810 | s/.*/./; q'` | |
42811 | done | |
42812 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42813 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42814 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42815 | { (exit 1); exit 1; }; }; } | |
42816 | ||
42817 | rm -f $ac_file | |
42818 | mv $tmp/config.h $ac_file | |
42819 | fi | |
42820 | else | |
42821 | cat $tmp/config.h | |
42822 | rm -f $tmp/config.h | |
42823 | fi | |
42824 | done | |
42825 | _ACEOF | |
42826 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42827 | ||
42828 | # | |
42829 | # CONFIG_COMMANDS section. | |
42830 | # | |
42831 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
42832 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
42833 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
42834 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
42835 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
42836 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
42837 | X"$ac_dest" : 'X\(//\)$' \| \ | |
42838 | X"$ac_dest" : 'X\(/\)' \| \ | |
42839 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
42840 | echo X"$ac_dest" | |
42841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42842 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42843 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42844 | /^X\(\/\).*/{ s//\1/; q; } | |
42845 | s/.*/./; q'` | |
ac1cb8d3 VS |
42846 | { if $as_mkdir_p; then |
42847 | mkdir -p "$ac_dir" | |
42848 | else | |
42849 | as_dir="$ac_dir" | |
42850 | as_dirs= | |
42851 | while test ! -d "$as_dir"; do | |
42852 | as_dirs="$as_dir $as_dirs" | |
42853 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
42854 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42855 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42856 | X"$as_dir" : 'X\(//\)$' \| \ | |
42857 | X"$as_dir" : 'X\(/\)' \| \ | |
42858 | . : '\(.\)' 2>/dev/null || | |
42859 | echo X"$as_dir" | | |
42860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
42861 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
42862 | /^X\(\/\/\)$/{ s//\1/; q; } | |
42863 | /^X\(\/\).*/{ s//\1/; q; } | |
42864 | s/.*/./; q'` | |
42865 | done | |
42866 | test ! -n "$as_dirs" || mkdir $as_dirs | |
42867 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
42868 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
42869 | { (exit 1); exit 1; }; }; } | |
42870 | ||
a848cd7e SC |
42871 | ac_builddir=. |
42872 | ||
42873 | if test "$ac_dir" != .; then | |
42874 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
42875 | # A "../" for each directory in $ac_dir_suffix. | |
42876 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
42877 | else | |
42878 | ac_dir_suffix= ac_top_builddir= | |
42879 | fi | |
42880 | ||
42881 | case $srcdir in | |
42882 | .) # No --srcdir option. We are building in place. | |
42883 | ac_srcdir=. | |
42884 | if test -z "$ac_top_builddir"; then | |
42885 | ac_top_srcdir=. | |
42886 | else | |
42887 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
42888 | fi ;; | |
42889 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
42890 | ac_srcdir=$srcdir$ac_dir_suffix; | |
42891 | ac_top_srcdir=$srcdir ;; | |
42892 | *) # Relative path. | |
42893 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
42894 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
42895 | esac | |
ac1cb8d3 VS |
42896 | |
42897 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
42898 | # the directories may not exist. | |
42899 | case `pwd` in | |
42900 | .) ac_abs_builddir="$ac_dir";; | |
42901 | *) | |
42902 | case "$ac_dir" in | |
42903 | .) ac_abs_builddir=`pwd`;; | |
42904 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
42905 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
42906 | esac;; | |
42907 | esac | |
42908 | case $ac_abs_builddir in | |
42909 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42910 | *) | |
42911 | case ${ac_top_builddir}. in | |
42912 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
42913 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
42914 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
42915 | esac;; | |
42916 | esac | |
42917 | case $ac_abs_builddir in | |
42918 | .) ac_abs_srcdir=$ac_srcdir;; | |
42919 | *) | |
42920 | case $ac_srcdir in | |
42921 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
42922 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
42923 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
42924 | esac;; | |
42925 | esac | |
42926 | case $ac_abs_builddir in | |
42927 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42928 | *) | |
42929 | case $ac_top_srcdir in | |
42930 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
42931 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
42932 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
42933 | esac;; | |
42934 | esac | |
a848cd7e SC |
42935 | |
42936 | ||
42937 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
42938 | echo "$as_me: executing $ac_dest commands" >&6;} | |
42939 | case $ac_dest in | |
ceec2216 RL |
42940 | wx-config ) rm -f wx-config |
42941 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
42942 | ;; | |
a848cd7e SC |
42943 | esac |
42944 | done | |
42945 | _ACEOF | |
42946 | ||
42947 | cat >>$CONFIG_STATUS <<\_ACEOF | |
42948 | ||
42949 | { (exit 0); exit 0; } | |
42950 | _ACEOF | |
42951 | chmod +x $CONFIG_STATUS | |
42952 | ac_clean_files=$ac_clean_files_save | |
42953 | ||
42954 | ||
42955 | # configure is writing to config.log, and then calls config.status. | |
42956 | # config.status does its own redirection, appending to config.log. | |
42957 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42958 | # by configure, so config.status won't be able to write to it; its | |
42959 | # output is simply discarded. So we exec the FD to /dev/null, | |
42960 | # effectively closing config.log, so it can be properly (re)opened and | |
42961 | # appended to by config.status. When coming back to configure, we | |
42962 | # need to make the FD available again. | |
42963 | if test "$no_create" != yes; then | |
42964 | ac_cs_success=: | |
42965 | ac_config_status_args= | |
42966 | test "$silent" = yes && | |
42967 | ac_config_status_args="$ac_config_status_args --quiet" | |
42968 | exec 5>/dev/null | |
42969 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42970 | exec 5>>config.log | |
42971 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42972 | # would make configure fail if this is the last instruction. | |
42973 | $ac_cs_success || { (exit 1); exit 1; } | |
42974 | fi | |
42975 | ||
42976 | # | |
42977 | # CONFIG_SUBDIRS section. | |
42978 | # | |
42979 | if test "$no_recursion" != yes; then | |
42980 | ||
42981 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
42982 | ac_sub_configure_args= | |
42983 | ac_prev= | |
42984 | for ac_arg in $ac_configure_args; do | |
42985 | if test -n "$ac_prev"; then | |
42986 | ac_prev= | |
42987 | continue | |
42988 | fi | |
42989 | case $ac_arg in | |
42990 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42991 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42992 | ac_prev=cache_file ;; | |
42993 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42994 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42995 | | --c=*) | |
42996 | ;; | |
42997 | --config-cache | -C) | |
42998 | ;; | |
42999 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
43000 | ac_prev=srcdir ;; | |
43001 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
43002 | ;; | |
43003 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
43004 | ac_prev=prefix ;; | |
43005 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
43006 | ;; | |
43007 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
43008 | esac | |
43009 | done | |
43010 | ||
43011 | # Always prepend --prefix to ensure using the same prefix | |
43012 | # in subdir configurations. | |
43013 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
43014 | ||
43015 | ac_popdir=`pwd` | |
43016 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
43017 | ||
43018 | # Do not complain, so a configure script can configure whichever | |
43019 | # parts of a large source tree are present. | |
43020 | test -d $srcdir/$ac_dir || continue | |
43021 | ||
43022 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
43023 | echo "$as_me: configuring in $ac_dir" >&6;} | |
43024 | { if $as_mkdir_p; then | |
43025 | mkdir -p "$ac_dir" | |
43026 | else | |
43027 | as_dir="$ac_dir" | |
43028 | as_dirs= | |
43029 | while test ! -d "$as_dir"; do | |
43030 | as_dirs="$as_dir $as_dirs" | |
43031 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
43032 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
43033 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
43034 | X"$as_dir" : 'X\(//\)$' \| \ | |
43035 | X"$as_dir" : 'X\(/\)' \| \ | |
43036 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
43037 | echo X"$as_dir" | |
43038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
43039 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
43040 | /^X\(\/\/\)$/{ s//\1/; q; } | |
43041 | /^X\(\/\).*/{ s//\1/; q; } | |
43042 | s/.*/./; q'` | |
43043 | done | |
43044 | test ! -n "$as_dirs" || mkdir $as_dirs | |
43045 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
43046 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
43047 | { (exit 1); exit 1; }; }; } | |
43048 | ||
43049 | ac_builddir=. | |
43050 | ||
43051 | if test "$ac_dir" != .; then | |
43052 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
43053 | # A "../" for each directory in $ac_dir_suffix. | |
43054 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
43055 | else | |
43056 | ac_dir_suffix= ac_top_builddir= | |
43057 | fi | |
43058 | ||
43059 | case $srcdir in | |
43060 | .) # No --srcdir option. We are building in place. | |
43061 | ac_srcdir=. | |
43062 | if test -z "$ac_top_builddir"; then | |
43063 | ac_top_srcdir=. | |
43064 | else | |
43065 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
43066 | fi ;; | |
43067 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
43068 | ac_srcdir=$srcdir$ac_dir_suffix; | |
43069 | ac_top_srcdir=$srcdir ;; | |
43070 | *) # Relative path. | |
43071 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
43072 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
43073 | esac | |
ac1cb8d3 VS |
43074 | |
43075 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
43076 | # the directories may not exist. | |
43077 | case `pwd` in | |
43078 | .) ac_abs_builddir="$ac_dir";; | |
43079 | *) | |
43080 | case "$ac_dir" in | |
43081 | .) ac_abs_builddir=`pwd`;; | |
43082 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
43083 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
43084 | esac;; | |
43085 | esac | |
43086 | case $ac_abs_builddir in | |
43087 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43088 | *) | |
43089 | case ${ac_top_builddir}. in | |
43090 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
43091 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
43092 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
43093 | esac;; | |
43094 | esac | |
43095 | case $ac_abs_builddir in | |
43096 | .) ac_abs_srcdir=$ac_srcdir;; | |
43097 | *) | |
43098 | case $ac_srcdir in | |
43099 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
43100 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
43101 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
43102 | esac;; | |
43103 | esac | |
43104 | case $ac_abs_builddir in | |
43105 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43106 | *) | |
43107 | case $ac_top_srcdir in | |
43108 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
43109 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
43110 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
43111 | esac;; | |
43112 | esac | |
a848cd7e SC |
43113 | |
43114 | ||
43115 | cd $ac_dir | |
43116 | ||
43117 | # Check for guested configure; otherwise get Cygnus style configure. | |
43118 | if test -f $ac_srcdir/configure.gnu; then | |
43119 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
43120 | elif test -f $ac_srcdir/configure; then | |
43121 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
43122 | elif test -f $ac_srcdir/configure.in; then | |
43123 | ac_sub_configure=$ac_configure | |
43124 | else | |
43125 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
43126 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
43127 | ac_sub_configure= | |
43128 | fi | |
43129 | ||
43130 | # The recursion is here. | |
43131 | if test -n "$ac_sub_configure"; then | |
43132 | # Make the cache file name correct relative to the subdirectory. | |
43133 | case $cache_file in | |
43134 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
43135 | *) # Relative path. | |
ac1cb8d3 | 43136 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
43137 | esac |
43138 | ||
43139 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
43140 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
43141 | # The eval makes quoting arguments work. | |
43142 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
43143 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
43144 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
43145 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
43146 | { (exit 1); exit 1; }; } | |
43147 | fi | |
43148 | ||
d1c38808 | 43149 | cd "$ac_popdir" |
a848cd7e SC |
43150 | done |
43151 | fi | |
43152 | ||
43153 | ||
43154 | echo | |
77ffb593 | 43155 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43156 | echo "" |
4d4ff94c | 43157 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 43158 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 43159 | |
77ffb593 JS |
43160 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
43161 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
43162 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 43163 | |
77ffb593 JS |
43164 | echo " What level of wxWidgets compatibility should be enabled?" |
43165 | echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
43166 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
a848cd7e | 43167 | |
77ffb593 | 43168 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
43169 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43170 | echo " png ${wxUSE_LIBPNG-none}" | |
43171 | echo " regex ${wxUSE_REGEX}" | |
43172 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43173 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43174 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43175 | fi | |
43176 | echo " zlib ${wxUSE_ZLIB}" | |
43177 | echo " odbc ${wxUSE_ODBC}" | |
43178 | echo " expat ${wxUSE_EXPAT}" | |
43179 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43180 | echo " sdl ${wxUSE_LIBSDL}" | |
d1c38808 | 43181 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT}" |
a848cd7e SC |
43182 | |
43183 | echo "" | |
43184 |