]>
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. | |
dd8df4fc | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0. |
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' | |
dd8df4fc VZ |
273 | PACKAGE_VERSION='2.7.0' |
274 | PACKAGE_STRING='wxWidgets 2.7.0' | |
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" | |
0ee4059d | 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL 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 DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_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_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_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_SOVERCYGWIN_0_USE_SOVERSION_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_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 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_MSDOS_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_USE_XRC_1 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_SHARED_1_USE_XRC_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_MSW_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_WINCE_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 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 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 | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 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 | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
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 |
f34ca037 | 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 | |
dee1a63f MB |
892 | --enable-compat24 enable wxWidgets 2.4 compatibility |
893 | --disable-compat26 disable wxWidgets 2.6 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 | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
1007 | --enable-treectrl use wxTreeCtrl class | |
1008 | --enable-tipwindow use wxTipWindow class | |
1009 | --enable-popupwin use wxPopUpWindow class | |
1010 | --enable-commondlg use all common dialogs | |
1011 | --enable-choicedlg use wxChoiceDialog | |
1012 | --enable-coldlg use wxColourDialog | |
1013 | --enable-filedlg use wxFileDialog | |
1014 | --enable-finddlg use wxFindReplaceDialog | |
1015 | --enable-fontdlg use wxFontDialog | |
1016 | --enable-dirdlg use wxDirDialog | |
1017 | --enable-msgdlg use wxMessageDialog | |
1018 | --enable-numberdlg use wxNumberEntryDialog | |
1019 | --enable-splash use wxSplashScreen | |
1020 | --enable-textdlg use wxTextDialog | |
1021 | --enable-tipdlg use startup tips | |
1022 | --enable-progressdlg use wxProgressDialog | |
1023 | --enable-wizarddlg use wxWizard | |
1024 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1025 | --enable-miniframe use wxMiniFrame class | |
1026 | --enable-tooltips use wxToolTip class | |
1027 | --enable-splines use spline drawing code | |
fbe2ca43 | 1028 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1029 | --enable-validators use wxValidator and derived classes |
1030 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1031 | --enable-joystick use wxJoystick |
38b4a946 | 1032 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1033 | --enable-dragimage use wxDragImage |
1034 | --enable-accessibility enable accessibility support | |
38b4a946 | 1035 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1036 | --enable-palette use wxPalette class |
1037 | --enable-image use wxImage class | |
1038 | --enable-gif use gif images (GIF file format) | |
1039 | --enable-pcx use pcx images (PCX file format) | |
1040 | --enable-iff use iff images (IFF file format) | |
1041 | --enable-pnm use pnm images (PNM file format) | |
1042 | --enable-xpm use xpm images (XPM file format) | |
1043 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1044 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1045 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1046 | --disable-largefile omit support for large files | |
1047 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1048 | --disable-gtktest Do not try to compile and run a test GTK program | |
1049 | --disable-sdltest Do not try to compile and run a test SDL program | |
1050 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1051 | --disable-precomp-headers |
1052 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1053 | |
1054 | Optional Packages: | |
1055 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1056 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1057 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1058 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1059 | --with-motif use Motif/Lesstif |
1060 | --with-mac use Mac OS X | |
1061 | --with-cocoa use Cocoa | |
1062 | --with-wine use Wine | |
1063 | --with-msw use MS-Windows | |
1064 | --with-pm use OS/2 Presentation Manager | |
1065 | --with-mgl use SciTech MGL | |
1066 | --with-microwin use MicroWindows | |
1067 | --with-x11 use X11 | |
1068 | --with-libpng use libpng (PNG image format) | |
1069 | --with-libjpeg use libjpeg (JPEG file format) | |
1070 | --with-libtiff use libtiff (TIFF file format) | |
1071 | --with-libxpm use libxpm (XPM file format) | |
1072 | --with-libmspack use libmspack (CHM help files loading) | |
1073 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1074 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1075 | --with-opengl use OpenGL (or Mesa) |
1076 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1077 | --with-regex enable support for wxRegEx class | |
1078 | --with-zlib use zlib for LZW compression | |
1079 | --with-odbc use the IODBC and wxODBC classes | |
1080 | --with-expat enable XML support using expat parser | |
ceec2216 | 1081 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1082 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1083 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1084 | --with-x use the X Window System | |
1085 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1086 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1087 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1088 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1089 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1090 | ||
1091 | Some influential environment variables: | |
dcc1b6ad VS |
1092 | CC C compiler command |
1093 | CFLAGS C compiler flags | |
1094 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1095 | nonstandard directory <lib dir> | |
1096 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1097 | headers in a nonstandard directory <include dir> | |
1098 | CPP C preprocessor | |
1099 | CXX C++ compiler command | |
1100 | CXXFLAGS C++ compiler flags | |
1101 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1102 | |
1103 | Use these variables to override the choices made by `configure' or to help | |
1104 | it to find libraries and programs with nonstandard names/locations. | |
1105 | ||
77ffb593 | 1106 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1107 | _ACEOF |
1108 | fi | |
1109 | ||
1110 | if test "$ac_init_help" = "recursive"; then | |
1111 | # If there are subdirs, report their specific --help. | |
1112 | ac_popdir=`pwd` | |
1113 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1114 | test -d $ac_dir || continue | |
1115 | ac_builddir=. | |
1116 | ||
1117 | if test "$ac_dir" != .; then | |
1118 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1119 | # A "../" for each directory in $ac_dir_suffix. | |
1120 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1121 | else | |
1122 | ac_dir_suffix= ac_top_builddir= | |
1123 | fi | |
1124 | ||
1125 | case $srcdir in | |
1126 | .) # No --srcdir option. We are building in place. | |
1127 | ac_srcdir=. | |
1128 | if test -z "$ac_top_builddir"; then | |
1129 | ac_top_srcdir=. | |
1130 | else | |
1131 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1132 | fi ;; | |
1133 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1134 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1135 | ac_top_srcdir=$srcdir ;; | |
1136 | *) # Relative path. | |
1137 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1138 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1139 | esac | |
ac1cb8d3 VS |
1140 | |
1141 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1142 | # the directories may not exist. | |
1143 | case `pwd` in | |
1144 | .) ac_abs_builddir="$ac_dir";; | |
1145 | *) | |
1146 | case "$ac_dir" in | |
1147 | .) ac_abs_builddir=`pwd`;; | |
1148 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1149 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1150 | esac;; | |
1151 | esac | |
1152 | case $ac_abs_builddir in | |
1153 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1154 | *) | |
1155 | case ${ac_top_builddir}. in | |
1156 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1157 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1158 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1159 | esac;; | |
1160 | esac | |
1161 | case $ac_abs_builddir in | |
1162 | .) ac_abs_srcdir=$ac_srcdir;; | |
1163 | *) | |
1164 | case $ac_srcdir in | |
1165 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1166 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1167 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1168 | esac;; | |
1169 | esac | |
1170 | case $ac_abs_builddir in | |
1171 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1172 | *) | |
1173 | case $ac_top_srcdir in | |
1174 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1175 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1176 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1177 | esac;; | |
1178 | esac | |
a848cd7e SC |
1179 | |
1180 | cd $ac_dir | |
1181 | # Check for guested configure; otherwise get Cygnus style configure. | |
1182 | if test -f $ac_srcdir/configure.gnu; then | |
1183 | echo | |
1184 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1185 | elif test -f $ac_srcdir/configure; then | |
1186 | echo | |
1187 | $SHELL $ac_srcdir/configure --help=recursive | |
1188 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1189 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1190 | echo |
1191 | $ac_configure --help | |
1192 | else | |
1193 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1194 | fi | |
dee1a63f | 1195 | cd $ac_popdir |
a848cd7e SC |
1196 | done |
1197 | fi | |
1198 | ||
1199 | test -n "$ac_init_help" && exit 0 | |
1200 | if $ac_init_version; then | |
1201 | cat <<\_ACEOF | |
dd8df4fc | 1202 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1203 | generated by GNU Autoconf 2.59 |
a848cd7e | 1204 | |
ac1cb8d3 | 1205 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1206 | This configure script is free software; the Free Software Foundation |
1207 | gives unlimited permission to copy, distribute and modify it. | |
1208 | _ACEOF | |
1209 | exit 0 | |
1210 | fi | |
1211 | exec 5>config.log | |
1212 | cat >&5 <<_ACEOF | |
1213 | This file contains any messages produced by compilers while | |
1214 | running configure, to aid debugging if configure makes a mistake. | |
1215 | ||
dd8df4fc | 1216 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1217 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1218 | |
1219 | $ $0 $@ | |
1220 | ||
1221 | _ACEOF | |
1222 | { | |
1223 | cat <<_ASUNAME | |
1224 | ## --------- ## | |
1225 | ## Platform. ## | |
1226 | ## --------- ## | |
1227 | ||
1228 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1229 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1230 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1231 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1232 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1233 | ||
1234 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1235 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1236 | ||
1237 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1238 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1239 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1240 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1241 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1242 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1243 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1244 | ||
1245 | _ASUNAME | |
1246 | ||
1247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1248 | for as_dir in $PATH | |
1249 | do | |
1250 | IFS=$as_save_IFS | |
1251 | test -z "$as_dir" && as_dir=. | |
1252 | echo "PATH: $as_dir" | |
1253 | done | |
1254 | ||
1255 | } >&5 | |
1256 | ||
1257 | cat >&5 <<_ACEOF | |
1258 | ||
1259 | ||
1260 | ## ----------- ## | |
1261 | ## Core tests. ## | |
1262 | ## ----------- ## | |
1263 | ||
1264 | _ACEOF | |
1265 | ||
1266 | ||
1267 | # Keep a trace of the command line. | |
1268 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1269 | # Strip out --silent because we don't want to record it for future runs. | |
1270 | # Also quote any args containing shell meta-characters. | |
1271 | # Make two passes to allow for proper duplicate-argument suppression. | |
1272 | ac_configure_args= | |
1273 | ac_configure_args0= | |
1274 | ac_configure_args1= | |
1275 | ac_sep= | |
1276 | ac_must_keep_next=false | |
1277 | for ac_pass in 1 2 | |
1278 | do | |
1279 | for ac_arg | |
1280 | do | |
1281 | case $ac_arg in | |
1282 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1283 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1284 | | -silent | --silent | --silen | --sile | --sil) | |
1285 | continue ;; | |
1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1287 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1288 | esac | |
1289 | case $ac_pass in | |
1290 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1291 | 2) | |
1292 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1293 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1294 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1295 | else |
ac1cb8d3 VS |
1296 | case $ac_arg in |
1297 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1298 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1299 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1300 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1301 | case "$ac_configure_args0 " in | |
1302 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1303 | esac | |
1304 | ;; | |
1305 | -* ) ac_must_keep_next=true ;; | |
1306 | esac | |
a848cd7e SC |
1307 | fi |
1308 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1309 | # Get rid of the leading space. | |
1310 | ac_sep=" " | |
1311 | ;; | |
1312 | esac | |
1313 | done | |
1314 | done | |
1315 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1316 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1317 | ||
1318 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1319 | # config.log. We remove comments because anyway the quotes in there | |
1320 | # would cause problems or look ugly. | |
1321 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1322 | # such as our DU 5.0 friend, will then `close' the trap. | |
1323 | trap 'exit_status=$? | |
1324 | # Save into config.log some information that might help in debugging. | |
1325 | { | |
1326 | echo | |
1327 | ||
1328 | cat <<\_ASBOX | |
1329 | ## ---------------- ## | |
1330 | ## Cache variables. ## | |
1331 | ## ---------------- ## | |
1332 | _ASBOX | |
1333 | echo | |
1334 | # The following way of writing the cache mishandles newlines in values, | |
1335 | { | |
1336 | (set) 2>&1 | | |
1337 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1338 | *ac_space=\ *) | |
1339 | sed -n \ | |
ac1cb8d3 VS |
1340 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1341 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1342 | ;; |
1343 | *) | |
1344 | sed -n \ | |
ac1cb8d3 | 1345 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1346 | ;; |
1347 | esac; | |
1348 | } | |
1349 | echo | |
1350 | ||
1351 | cat <<\_ASBOX | |
1352 | ## ----------------- ## | |
1353 | ## Output variables. ## | |
1354 | ## ----------------- ## | |
1355 | _ASBOX | |
1356 | echo | |
1357 | for ac_var in $ac_subst_vars | |
1358 | do | |
1359 | eval ac_val=$`echo $ac_var` | |
1360 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1361 | done | sort | |
1362 | echo | |
1363 | ||
1364 | if test -n "$ac_subst_files"; then | |
1365 | cat <<\_ASBOX | |
1366 | ## ------------- ## | |
1367 | ## Output files. ## | |
1368 | ## ------------- ## | |
1369 | _ASBOX | |
1370 | echo | |
1371 | for ac_var in $ac_subst_files | |
1372 | do | |
1373 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1374 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1375 | done | sort |
1376 | echo | |
1377 | fi | |
1378 | ||
1379 | if test -s confdefs.h; then | |
1380 | cat <<\_ASBOX | |
1381 | ## ----------- ## | |
1382 | ## confdefs.h. ## | |
1383 | ## ----------- ## | |
1384 | _ASBOX | |
1385 | echo | |
1386 | sed "/^$/d" confdefs.h | sort | |
1387 | echo | |
1388 | fi | |
1389 | test "$ac_signal" != 0 && | |
1390 | echo "$as_me: caught signal $ac_signal" | |
1391 | echo "$as_me: exit $exit_status" | |
1392 | } >&5 | |
ac1cb8d3 | 1393 | rm -f core *.core && |
a848cd7e SC |
1394 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1395 | exit $exit_status | |
1396 | ' 0 | |
1397 | for ac_signal in 1 2 13 15; do | |
1398 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1399 | done | |
1400 | ac_signal=0 | |
1401 | ||
1402 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1403 | rm -rf conftest* confdefs.h | |
1404 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1405 | echo >confdefs.h | |
1406 | ||
1407 | # Predefined preprocessor variables. | |
1408 | ||
1409 | cat >>confdefs.h <<_ACEOF | |
1410 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1411 | _ACEOF | |
1412 | ||
1413 | ||
1414 | cat >>confdefs.h <<_ACEOF | |
1415 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1416 | _ACEOF | |
1417 | ||
1418 | ||
1419 | cat >>confdefs.h <<_ACEOF | |
1420 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1421 | _ACEOF | |
1422 | ||
1423 | ||
1424 | cat >>confdefs.h <<_ACEOF | |
1425 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1426 | _ACEOF | |
1427 | ||
1428 | ||
1429 | cat >>confdefs.h <<_ACEOF | |
1430 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1431 | _ACEOF | |
1432 | ||
1433 | ||
1434 | # Let the site file select an alternate cache file if it wants to. | |
1435 | # Prefer explicitly selected file to automatically selected ones. | |
1436 | if test -z "$CONFIG_SITE"; then | |
1437 | if test "x$prefix" != xNONE; then | |
1438 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1439 | else | |
1440 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1441 | fi | |
1442 | fi | |
1443 | for ac_site_file in $CONFIG_SITE; do | |
1444 | if test -r "$ac_site_file"; then | |
1445 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1446 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1447 | sed 's/^/| /' "$ac_site_file" >&5 | |
1448 | . "$ac_site_file" | |
1449 | fi | |
1450 | done | |
1451 | ||
1452 | if test -r "$cache_file"; then | |
1453 | # Some versions of bash will fail to source /dev/null (special | |
1454 | # files actually), so we avoid doing that. | |
1455 | if test -f "$cache_file"; then | |
1456 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1457 | echo "$as_me: loading cache $cache_file" >&6;} | |
1458 | case $cache_file in | |
1459 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1460 | *) . ./$cache_file;; | |
1461 | esac | |
1462 | fi | |
1463 | else | |
1464 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1465 | echo "$as_me: creating cache $cache_file" >&6;} | |
1466 | >$cache_file | |
1467 | fi | |
1468 | ||
1469 | # Check that the precious variables saved in the cache have kept the same | |
1470 | # value. | |
1471 | ac_cache_corrupted=false | |
1472 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1473 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1474 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1475 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1476 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1477 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1478 | case $ac_old_set,$ac_new_set in | |
1479 | set,) | |
1480 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1481 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1482 | ac_cache_corrupted=: ;; | |
1483 | ,set) | |
1484 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1485 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1486 | ac_cache_corrupted=: ;; | |
1487 | ,);; | |
1488 | *) | |
1489 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1490 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1491 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1492 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1493 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1494 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1495 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1496 | ac_cache_corrupted=: |
a848cd7e SC |
1497 | fi;; |
1498 | esac | |
1499 | # Pass precious variables to config.status. | |
1500 | if test "$ac_new_set" = set; then | |
1501 | case $ac_new_val in | |
1502 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1503 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1504 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1505 | esac | |
1506 | case " $ac_configure_args " in | |
1507 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1508 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1509 | esac | |
1510 | fi | |
1511 | done | |
1512 | if $ac_cache_corrupted; then | |
1513 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1514 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1515 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1516 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1517 | { (exit 1); exit 1; }; } | |
1518 | fi | |
1519 | ||
1520 | ac_ext=c | |
1521 | ac_cpp='$CPP $CPPFLAGS' | |
1522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1525 | ||
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ac_aux_dir= | |
1556 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1557 | if test -f $ac_dir/install-sh; then | |
1558 | ac_aux_dir=$ac_dir | |
1559 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1560 | break | |
1561 | elif test -f $ac_dir/install.sh; then | |
1562 | ac_aux_dir=$ac_dir | |
1563 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1564 | break | |
1565 | elif test -f $ac_dir/shtool; then | |
1566 | ac_aux_dir=$ac_dir | |
1567 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1568 | break | |
1569 | fi | |
1570 | done | |
1571 | if test -z "$ac_aux_dir"; then | |
1572 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1573 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1574 | { (exit 1); exit 1; }; } | |
1575 | fi | |
1576 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1577 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1578 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1579 | ||
1580 | # Make sure we can run config.sub. | |
1581 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1582 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1583 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1584 | { (exit 1); exit 1; }; } | |
1585 | ||
1586 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1587 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1588 | if test "${ac_cv_build+set}" = set; then | |
1589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1590 | else | |
1591 | ac_cv_build_alias=$build_alias | |
1592 | test -z "$ac_cv_build_alias" && | |
1593 | ac_cv_build_alias=`$ac_config_guess` | |
1594 | test -z "$ac_cv_build_alias" && | |
1595 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1596 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1597 | { (exit 1); exit 1; }; } | |
1598 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1599 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1600 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | ||
1603 | fi | |
1604 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1605 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1606 | build=$ac_cv_build | |
1607 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1608 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1609 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1610 | ||
1611 | ||
1612 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1613 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1614 | if test "${ac_cv_host+set}" = set; then | |
1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1616 | else | |
1617 | ac_cv_host_alias=$host_alias | |
1618 | test -z "$ac_cv_host_alias" && | |
1619 | ac_cv_host_alias=$ac_cv_build_alias | |
1620 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1621 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1622 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1623 | { (exit 1); exit 1; }; } | |
1624 | ||
1625 | fi | |
1626 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1627 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1628 | host=$ac_cv_host | |
1629 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1630 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1631 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1632 | ||
1633 | ||
1634 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1635 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1636 | if test "${ac_cv_target+set}" = set; then | |
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1638 | else | |
1639 | ac_cv_target_alias=$target_alias | |
1640 | test "x$ac_cv_target_alias" = "x" && | |
1641 | ac_cv_target_alias=$ac_cv_host_alias | |
1642 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1643 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1644 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1645 | { (exit 1); exit 1; }; } | |
1646 | ||
1647 | fi | |
1648 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1649 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1650 | target=$ac_cv_target | |
1651 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1652 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1653 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1654 | ||
1655 | ||
1656 | # The aliases save the names the user supplied, while $host etc. | |
1657 | # will get canonicalized. | |
1658 | test -n "$target_alias" && | |
1659 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1660 | NONENONEs,x,x, && | |
1661 | program_prefix=${target_alias}- | |
1662 | ||
1663 | ||
1664 | ||
ceec2216 | 1665 | wx_major_version_number=2 |
dd8df4fc VZ |
1666 | wx_minor_version_number=7 |
1667 | wx_release_number=0 | |
1668 | wx_subrelease_number=0 | |
a848cd7e | 1669 | |
ceec2216 RL |
1670 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1671 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1672 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1673 | |
ceec2216 | 1674 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1675 | |
a848cd7e SC |
1676 | |
1677 | ||
1678 | ||
1679 | USE_UNIX=1 | |
1680 | USE_OS2=0 | |
1681 | USE_WIN32=0 | |
1682 | USE_DOS=0 | |
1683 | USE_BEOS=0 | |
1684 | USE_MAC=0 | |
1685 | ||
1686 | USE_AIX= | |
1687 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1688 | USE_GNU= USE_HPUX= | |
1689 | USE_LINUX= | |
1690 | USE_NETBSD= | |
1691 | USE_OPENBSD= | |
1692 | USE_OSF= USE_SGI= | |
1693 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1694 | USE_ULTRIX= | |
1695 | USE_UNIXWARE= | |
1696 | ||
1697 | USE_ALPHA= | |
1698 | ||
1699 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1700 | ||
1701 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1702 | ||
1703 | DEFAULT_wxUSE_COCOA=0 | |
1704 | DEFAULT_wxUSE_GTK=0 | |
1705 | DEFAULT_wxUSE_MAC=0 | |
1706 | DEFAULT_wxUSE_MGL=0 | |
1707 | DEFAULT_wxUSE_MICROWIN=0 | |
1708 | DEFAULT_wxUSE_MOTIF=0 | |
1709 | DEFAULT_wxUSE_MSW=0 | |
1710 | DEFAULT_wxUSE_PM=0 | |
1711 | DEFAULT_wxUSE_X11=0 | |
1712 | ||
1713 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1714 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1722 | ||
1723 | PROGRAM_EXT= | |
1724 | SO_SUFFIX=so | |
1725 | SAMPLES_RPATH_FLAG= | |
1726 | SAMPLES_RPATH_POSTLINK= | |
1727 | ||
a03b8b04 RD |
1728 | DEFAULT_STD_FLAG=yes |
1729 | ||
a848cd7e SC |
1730 | case "${host}" in |
1731 | *-hp-hpux* ) | |
1732 | USE_HPUX=1 | |
1733 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1734 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1735 | SO_SUFFIX=sl | |
1736 | cat >>confdefs.h <<\_ACEOF | |
1737 | #define __HPUX__ 1 | |
1738 | _ACEOF | |
1739 | ||
2eef8513 VZ |
1740 | |
1741 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" | |
a848cd7e SC |
1742 | ;; |
1743 | *-*-linux* ) | |
1744 | USE_LINUX=1 | |
1745 | cat >>confdefs.h <<\_ACEOF | |
1746 | #define __LINUX__ 1 | |
1747 | _ACEOF | |
1748 | ||
1749 | TMP=`uname -m` | |
1750 | if test "x$TMP" = "xalpha"; then | |
1751 | USE_ALPHA=1 | |
1752 | cat >>confdefs.h <<\_ACEOF | |
1753 | #define __ALPHA__ 1 | |
1754 | _ACEOF | |
1755 | ||
1756 | fi | |
1757 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1758 | ;; | |
1759 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1760 | USE_GNU=1 | |
1761 | TMP=`uname -m` | |
1762 | if test "x$TMP" = "xalpha"; then | |
1763 | USE_ALPHA=1 | |
1764 | cat >>confdefs.h <<\_ACEOF | |
1765 | #define __ALPHA__ 1 | |
1766 | _ACEOF | |
1767 | ||
1768 | fi | |
1769 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1770 | ;; | |
1771 | *-*-irix5* | *-*-irix6* ) | |
1772 | USE_SGI=1 | |
1773 | USE_SVR4=1 | |
1774 | cat >>confdefs.h <<\_ACEOF | |
1775 | #define __SGI__ 1 | |
1776 | _ACEOF | |
1777 | ||
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SVR4__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1783 | ;; | |
1784 | *-*-solaris2* ) | |
1785 | USE_SUN=1 | |
1786 | USE_SOLARIS=1 | |
1787 | USE_SVR4=1 | |
1788 | cat >>confdefs.h <<\_ACEOF | |
1789 | #define __SUN__ 1 | |
1790 | _ACEOF | |
1791 | ||
1792 | cat >>confdefs.h <<\_ACEOF | |
1793 | #define __SOLARIS__ 1 | |
1794 | _ACEOF | |
1795 | ||
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SVR4__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1801 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1802 | ;; | |
1803 | *-*-sunos4* ) | |
1804 | USE_SUN=1 | |
1805 | USE_SUNOS=1 | |
1806 | USE_BSD=1 | |
1807 | cat >>confdefs.h <<\_ACEOF | |
1808 | #define __SUN__ 1 | |
1809 | _ACEOF | |
1810 | ||
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __SUNOS__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __BSD__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1820 | ;; | |
1821 | *-*-freebsd*) | |
1822 | USE_BSD=1 | |
1823 | USE_FREEBSD=1 | |
1824 | cat >>confdefs.h <<\_ACEOF | |
1825 | #define __FREEBSD__ 1 | |
1826 | _ACEOF | |
1827 | ||
1828 | cat >>confdefs.h <<\_ACEOF | |
1829 | #define __BSD__ 1 | |
1830 | _ACEOF | |
1831 | ||
1832 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1833 | ;; | |
1834 | *-*-openbsd*) | |
1835 | USE_BSD=1 | |
1836 | USE_OPENBSD=1 | |
1837 | cat >>confdefs.h <<\_ACEOF | |
1838 | #define __OPENBSD__ 1 | |
1839 | _ACEOF | |
1840 | ||
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __BSD__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1846 | ;; | |
1847 | *-*-netbsd*) | |
1848 | USE_BSD=1 | |
1849 | USE_NETBSD=1 | |
1850 | cat >>confdefs.h <<\_ACEOF | |
1851 | #define __NETBSD__ 1 | |
1852 | _ACEOF | |
1853 | ||
1854 | cat >>confdefs.h <<\_ACEOF | |
1855 | #define __BSD__ 1 | |
1856 | _ACEOF | |
1857 | ||
1858 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1859 | ;; | |
1860 | *-*-osf* ) | |
1861 | USE_ALPHA=1 | |
1862 | USE_OSF=1 | |
1863 | cat >>confdefs.h <<\_ACEOF | |
1864 | #define __ALPHA__ 1 | |
1865 | _ACEOF | |
1866 | ||
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __OSF__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1872 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1873 | ;; | |
1874 | *-*-dgux5* ) | |
1875 | USE_ALPHA=1 | |
1876 | USE_SVR4=1 | |
1877 | cat >>confdefs.h <<\_ACEOF | |
1878 | #define __ALPHA__ 1 | |
1879 | _ACEOF | |
1880 | ||
1881 | cat >>confdefs.h <<\_ACEOF | |
1882 | #define __SVR4__ 1 | |
1883 | _ACEOF | |
1884 | ||
1885 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1886 | ;; | |
1887 | *-*-sysv5* ) | |
1888 | USE_SYSV=1 | |
1889 | USE_SVR4=1 | |
1890 | cat >>confdefs.h <<\_ACEOF | |
1891 | #define __SYSV__ 1 | |
1892 | _ACEOF | |
1893 | ||
1894 | cat >>confdefs.h <<\_ACEOF | |
1895 | #define __SVR4__ 1 | |
1896 | _ACEOF | |
1897 | ||
1898 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1899 | ;; | |
1900 | *-*-aix* ) | |
1901 | USE_AIX=1 | |
1902 | USE_SYSV=1 | |
1903 | USE_SVR4=1 | |
1904 | SO_SUFFIX=a | |
1905 | cat >>confdefs.h <<\_ACEOF | |
1906 | #define __AIX__ 1 | |
1907 | _ACEOF | |
1908 | ||
1909 | cat >>confdefs.h <<\_ACEOF | |
1910 | #define __SYSV__ 1 | |
1911 | _ACEOF | |
1912 | ||
1913 | cat >>confdefs.h <<\_ACEOF | |
1914 | #define __SVR4__ 1 | |
1915 | _ACEOF | |
1916 | ||
1917 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1918 | ;; | |
1919 | ||
1920 | *-*-*UnixWare*) | |
1921 | USE_SYSV=1 | |
1922 | USE_SVR4=1 | |
1923 | USE_UNIXWARE=1 | |
1924 | cat >>confdefs.h <<\_ACEOF | |
1925 | #define __UNIXWARE__ 1 | |
1926 | _ACEOF | |
1927 | ||
1928 | ;; | |
1929 | ||
1930 | *-*-cygwin* | *-*-mingw32* ) | |
1931 | SO_SUFFIX=dll | |
1932 | PROGRAM_EXT=".exe" | |
a848cd7e | 1933 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1934 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1935 | ;; |
1936 | ||
1937 | *-pc-msdosdjgpp ) | |
1938 | USE_UNIX=0 | |
1939 | USE_DOS=1 | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __DOS__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | PROGRAM_EXT=".exe" | |
1945 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1946 | ;; |
1947 | ||
1948 | *-pc-os2_emx | *-pc-os2-emx ) | |
1949 | cat >>confdefs.h <<\_ACEOF | |
1950 | #define __EMX__ 1 | |
1951 | _ACEOF | |
1952 | ||
1953 | USE_OS2=1 | |
1954 | cat >>confdefs.h <<\_ACEOF | |
1955 | #define __OS2__ 1 | |
1956 | _ACEOF | |
1957 | ||
1958 | PROGRAM_EXT=".exe" | |
1959 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1960 | CXX=gcc | |
1961 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1962 | ac_executable_extensions=".exe" | |
1963 | export ac_executable_extensions | |
1964 | ac_save_IFS="$IFS" | |
1965 | IFS='\\' | |
1966 | ac_TEMP_PATH= | |
1967 | for ac_dir in $PATH; do | |
1968 | IFS=$ac_save_IFS | |
1969 | if test -z "$ac_TEMP_PATH"; then | |
1970 | ac_TEMP_PATH="$ac_dir" | |
1971 | else | |
1972 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1973 | fi | |
1974 | done | |
1975 | export PATH="$ac_TEMP_PATH" | |
1976 | unset ac_TEMP_PATH | |
a03b8b04 | 1977 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1978 | ;; |
1979 | ||
cfda0ea8 | 1980 | *-*-darwin* ) |
a848cd7e SC |
1981 | USE_BSD=1 |
1982 | USE_DARWIN=1 | |
1983 | SO_SUFFIX=dylib | |
1984 | cat >>confdefs.h <<\_ACEOF | |
1985 | #define __BSD__ 1 | |
1986 | _ACEOF | |
1987 | ||
1988 | cat >>confdefs.h <<\_ACEOF | |
1989 | #define __DARWIN__ 1 | |
a848cd7e SC |
1990 | _ACEOF |
1991 | ||
1992 | cat >>confdefs.h <<\_ACEOF | |
1993 | #define TARGET_CARBON 1 | |
1994 | _ACEOF | |
1995 | ||
1996 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1997 | DEFAULT_STD_FLAG=no |
a848cd7e | 1998 | ;; |
1e9e8aba DE |
1999 | powerpc-apple-macos* ) |
2000 | USE_UNIX=0 | |
2001 | ac_cv_c_bigendian=yes | |
2002 | SO_SUFFIX=shlib | |
2003 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2004 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2005 | ;; |
a848cd7e SC |
2006 | |
2007 | *-*-beos* ) | |
2008 | USE_BEOS=1 | |
2009 | cat >>confdefs.h <<\_ACEOF | |
2010 | #define __BEOS__ 1 | |
2011 | _ACEOF | |
2012 | ||
2013 | ;; | |
2014 | ||
2015 | *) | |
2016 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2017 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2018 | { (exit 1); exit 1; }; } | |
2019 | esac | |
2020 | ||
2021 | ||
2022 | ||
2023 | ||
2024 | wx_arg_cache_file="configarg.cache" | |
2025 | echo "loading argument cache $wx_arg_cache_file" | |
2026 | rm -f ${wx_arg_cache_file}.tmp | |
2027 | touch ${wx_arg_cache_file}.tmp | |
2028 | touch ${wx_arg_cache_file} | |
2029 | ||
2030 | ||
2031 | DEBUG_CONFIGURE=0 | |
2032 | if test $DEBUG_CONFIGURE = 1; then | |
2033 | DEFAULT_wxUSE_UNIVERSAL=no | |
2034 | DEFAULT_wxUSE_STL=no | |
2035 | ||
2036 | DEFAULT_wxUSE_NANOX=no | |
2037 | ||
2038 | DEFAULT_wxUSE_THREADS=yes | |
2039 | ||
2040 | DEFAULT_wxUSE_SHARED=yes | |
2041 | DEFAULT_wxUSE_OPTIMISE=no | |
2042 | DEFAULT_wxUSE_PROFILE=no | |
2043 | DEFAULT_wxUSE_NO_DEPS=no | |
2044 | DEFAULT_wxUSE_NO_RTTI=no | |
2045 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2046 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2047 | DEFAULT_wxUSE_PERMISSIVE=no |
2048 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2049 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2050 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2051 | DEFAULT_wxUSE_MEM_TRACING=no | |
2052 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2053 | DEFAULT_wxUSE_DMALLOC=no | |
2054 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2055 | ||
2056 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2057 | DEFAULT_wxUSE_LOG=yes | |
2058 | DEFAULT_wxUSE_LOGWINDOW=no | |
2059 | DEFAULT_wxUSE_LOGGUI=no | |
2060 | DEFAULT_wxUSE_LOGDIALOG=no | |
2061 | ||
2062 | DEFAULT_wxUSE_GUI=yes | |
2063 | DEFAULT_wxUSE_CONTROLS=no | |
2064 | ||
2065 | DEFAULT_wxUSE_REGEX=no | |
2066 | DEFAULT_wxUSE_XML=no | |
2067 | DEFAULT_wxUSE_EXPAT=no | |
2068 | DEFAULT_wxUSE_ZLIB=no | |
2069 | DEFAULT_wxUSE_LIBPNG=no | |
2070 | DEFAULT_wxUSE_LIBJPEG=no | |
2071 | DEFAULT_wxUSE_LIBTIFF=no | |
2072 | DEFAULT_wxUSE_LIBXPM=no | |
2073 | DEFAULT_wxUSE_LIBMSPACK=no | |
2074 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2075 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2076 | DEFAULT_wxUSE_ODBC=no |
2077 | DEFAULT_wxUSE_OPENGL=no | |
2078 | ||
2079 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2080 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2081 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2082 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2083 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2084 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2085 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2086 | DEFAULT_wxUSE_DATETIME=no | |
2087 | DEFAULT_wxUSE_TIMER=no | |
2088 | DEFAULT_wxUSE_STOPWATCH=no | |
2089 | DEFAULT_wxUSE_FILE=no | |
2090 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2091 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2092 | DEFAULT_wxUSE_TEXTBUFFER=no |
2093 | DEFAULT_wxUSE_TEXTFILE=no | |
2094 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2095 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2096 | DEFAULT_wxUSE_INTL=no |
2097 | DEFAULT_wxUSE_CONFIG=no | |
2098 | DEFAULT_wxUSE_FONTMAP=no | |
2099 | DEFAULT_wxUSE_STREAMS=no | |
2100 | DEFAULT_wxUSE_SOCKETS=no | |
2101 | DEFAULT_wxUSE_OLE=no | |
2102 | DEFAULT_wxUSE_DATAOBJ=no | |
2103 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2104 | DEFAULT_wxUSE_JOYSTICK=no | |
2105 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2106 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2107 | DEFAULT_wxUSE_LONGLONG=no | |
2108 | DEFAULT_wxUSE_GEOMETRY=no | |
2109 | ||
2110 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2111 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2112 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2113 | ||
2114 | DEFAULT_wxUSE_CLIPBOARD=no | |
2115 | DEFAULT_wxUSE_TOOLTIPS=no | |
2116 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2117 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2118 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2119 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2120 | |
8a7b1113 | 2121 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2122 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2123 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2124 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2125 | ||
2126 | DEFAULT_wxUSE_RESOURCES=no | |
2127 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2128 | DEFAULT_wxUSE_IPC=no | |
2129 | DEFAULT_wxUSE_HELP=no | |
2130 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2131 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2132 | DEFAULT_wxUSE_TREELAYOUT=no | |
2133 | DEFAULT_wxUSE_METAFILE=no | |
2134 | DEFAULT_wxUSE_MIMETYPE=no | |
2135 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2136 | DEFAULT_wxUSE_PROTOCOL=no | |
2137 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2138 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2139 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2140 | DEFAULT_wxUSE_URL=no | |
2141 | ||
2142 | DEFAULT_wxUSE_COMMONDLGS=no | |
2143 | DEFAULT_wxUSE_CHOICEDLG=no | |
2144 | DEFAULT_wxUSE_COLOURDLG=no | |
2145 | DEFAULT_wxUSE_DIRDLG=no | |
2146 | DEFAULT_wxUSE_FILEDLG=no | |
2147 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2148 | DEFAULT_wxUSE_FONTDLG=no | |
2149 | DEFAULT_wxUSE_MSGDLG=no | |
2150 | DEFAULT_wxUSE_NUMBERDLG=no | |
2151 | DEFAULT_wxUSE_TEXTDLG=no | |
2152 | DEFAULT_wxUSE_SPLASH=no | |
2153 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2154 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2155 | DEFAULT_wxUSE_WIZARDDLG=no | |
2156 | ||
2157 | DEFAULT_wxUSE_MENUS=no | |
2158 | DEFAULT_wxUSE_MINIFRAME=no | |
2159 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2160 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2161 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2162 | DEFAULT_wxUSE_FILESYSTEM=no |
2163 | DEFAULT_wxUSE_FS_INET=no | |
2164 | DEFAULT_wxUSE_FS_ZIP=no | |
2165 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2166 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2167 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2168 | DEFAULT_wxUSE_VALIDATORS=no |
2169 | ||
2170 | DEFAULT_wxUSE_ACCEL=no | |
2171 | DEFAULT_wxUSE_BUTTON=no | |
2172 | DEFAULT_wxUSE_BMPBUTTON=no | |
2173 | DEFAULT_wxUSE_CALCTRL=no | |
2174 | DEFAULT_wxUSE_CARET=no | |
2175 | DEFAULT_wxUSE_CHECKBOX=no | |
2176 | DEFAULT_wxUSE_CHECKLST=no | |
2177 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2178 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2179 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2180 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2181 | DEFAULT_wxUSE_DISPLAY=no |
2182 | DEFAULT_wxUSE_GAUGE=no | |
2183 | DEFAULT_wxUSE_GRID=no | |
2184 | DEFAULT_wxUSE_IMAGLIST=no | |
2185 | DEFAULT_wxUSE_LISTBOOK=no | |
2186 | DEFAULT_wxUSE_LISTBOX=no | |
2187 | DEFAULT_wxUSE_LISTCTRL=no | |
2188 | DEFAULT_wxUSE_NOTEBOOK=no | |
2189 | DEFAULT_wxUSE_RADIOBOX=no | |
2190 | DEFAULT_wxUSE_RADIOBTN=no | |
2191 | DEFAULT_wxUSE_SASH=no | |
2192 | DEFAULT_wxUSE_SCROLLBAR=no | |
2193 | DEFAULT_wxUSE_SLIDER=no | |
2194 | DEFAULT_wxUSE_SPINBTN=no | |
2195 | DEFAULT_wxUSE_SPINCTRL=no | |
2196 | DEFAULT_wxUSE_SPLITTER=no | |
2197 | DEFAULT_wxUSE_STATBMP=no | |
2198 | DEFAULT_wxUSE_STATBOX=no | |
2199 | DEFAULT_wxUSE_STATLINE=no | |
2200 | DEFAULT_wxUSE_STATTEXT=no | |
2201 | DEFAULT_wxUSE_STATUSBAR=yes | |
2202 | DEFAULT_wxUSE_TABDIALOG=no | |
2203 | DEFAULT_wxUSE_TEXTCTRL=no | |
2204 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2205 | DEFAULT_wxUSE_TOOLBAR=no | |
2206 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2207 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2208 | DEFAULT_wxUSE_TREECTRL=no | |
2209 | DEFAULT_wxUSE_POPUPWIN=no | |
2210 | DEFAULT_wxUSE_TIPWINDOW=no | |
2211 | ||
2212 | DEFAULT_wxUSE_UNICODE=no | |
2213 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2214 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2215 | ||
2216 | DEFAULT_wxUSE_PALETTE=no | |
2217 | DEFAULT_wxUSE_IMAGE=no | |
2218 | DEFAULT_wxUSE_GIF=no | |
2219 | DEFAULT_wxUSE_PCX=no | |
2220 | DEFAULT_wxUSE_PNM=no | |
2221 | DEFAULT_wxUSE_IFF=no | |
2222 | DEFAULT_wxUSE_XPM=no | |
2223 | DEFAULT_wxUSE_ICO_CUR=no | |
2224 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2225 | ||
2226 | DEFAULT_wxUSE_MONOLITHIC=no | |
2227 | DEFAULT_wxUSE_PLUGINS=no | |
2228 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2229 | else | |
2230 | DEFAULT_wxUSE_UNIVERSAL=no | |
2231 | DEFAULT_wxUSE_STL=no | |
2232 | ||
2233 | DEFAULT_wxUSE_NANOX=no | |
2234 | ||
2235 | DEFAULT_wxUSE_THREADS=yes | |
2236 | ||
2237 | DEFAULT_wxUSE_SHARED=yes | |
2238 | DEFAULT_wxUSE_OPTIMISE=yes | |
2239 | DEFAULT_wxUSE_PROFILE=no | |
2240 | DEFAULT_wxUSE_NO_DEPS=no | |
2241 | DEFAULT_wxUSE_NO_RTTI=no | |
2242 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2243 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2244 | DEFAULT_wxUSE_PERMISSIVE=no |
2245 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2246 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2247 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2248 | DEFAULT_wxUSE_MEM_TRACING=no | |
2249 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2250 | DEFAULT_wxUSE_DMALLOC=no | |
2251 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2252 | ||
2253 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2254 | DEFAULT_wxUSE_LOG=yes | |
2255 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2256 | DEFAULT_wxUSE_LOGGUI=yes | |
2257 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2258 | ||
2259 | DEFAULT_wxUSE_GUI=yes | |
2260 | ||
2261 | DEFAULT_wxUSE_REGEX=yes | |
2262 | DEFAULT_wxUSE_XML=yes | |
2263 | DEFAULT_wxUSE_EXPAT=yes | |
2264 | DEFAULT_wxUSE_ZLIB=yes | |
2265 | DEFAULT_wxUSE_LIBPNG=yes | |
2266 | DEFAULT_wxUSE_LIBJPEG=yes | |
2267 | DEFAULT_wxUSE_LIBTIFF=yes | |
2268 | DEFAULT_wxUSE_LIBXPM=yes | |
2269 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2270 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2271 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2272 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2273 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2274 | |
2275 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2276 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2277 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2278 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2279 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2280 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2281 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2282 | DEFAULT_wxUSE_DATETIME=yes | |
2283 | DEFAULT_wxUSE_TIMER=yes | |
2284 | DEFAULT_wxUSE_STOPWATCH=yes | |
2285 | DEFAULT_wxUSE_FILE=yes | |
2286 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2287 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2288 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2289 | DEFAULT_wxUSE_TEXTFILE=yes | |
2290 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2291 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2292 | DEFAULT_wxUSE_INTL=yes |
2293 | DEFAULT_wxUSE_CONFIG=yes | |
2294 | DEFAULT_wxUSE_FONTMAP=yes | |
2295 | DEFAULT_wxUSE_STREAMS=yes | |
2296 | DEFAULT_wxUSE_SOCKETS=yes | |
2297 | DEFAULT_wxUSE_OLE=yes | |
2298 | DEFAULT_wxUSE_DATAOBJ=yes | |
2299 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2300 | DEFAULT_wxUSE_JOYSTICK=yes | |
2301 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2302 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2303 | DEFAULT_wxUSE_LONGLONG=yes | |
2304 | DEFAULT_wxUSE_GEOMETRY=yes | |
2305 | ||
2306 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2307 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2308 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2309 | ||
2310 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2311 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2312 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2313 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2314 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2315 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2316 | |
8a7b1113 | 2317 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2318 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2319 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2320 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2321 | ||
2322 | DEFAULT_wxUSE_RESOURCES=no | |
2323 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2324 | DEFAULT_wxUSE_IPC=yes | |
2325 | DEFAULT_wxUSE_HELP=yes | |
2326 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2327 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2328 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2329 | DEFAULT_wxUSE_METAFILE=yes | |
2330 | DEFAULT_wxUSE_MIMETYPE=yes | |
2331 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2332 | DEFAULT_wxUSE_PROTOCOL=yes | |
2333 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2334 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2335 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2336 | DEFAULT_wxUSE_URL=yes | |
2337 | ||
2338 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2339 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2340 | DEFAULT_wxUSE_COLOURDLG=yes | |
2341 | DEFAULT_wxUSE_DIRDLG=yes | |
2342 | DEFAULT_wxUSE_FILEDLG=yes | |
2343 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2344 | DEFAULT_wxUSE_FONTDLG=yes | |
2345 | DEFAULT_wxUSE_MSGDLG=yes | |
2346 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2347 | DEFAULT_wxUSE_TEXTDLG=yes | |
2348 | DEFAULT_wxUSE_SPLASH=yes | |
2349 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2350 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2351 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2352 | ||
2353 | DEFAULT_wxUSE_MENUS=yes | |
2354 | DEFAULT_wxUSE_MINIFRAME=yes | |
2355 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2356 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2357 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2358 | DEFAULT_wxUSE_FILESYSTEM=yes |
2359 | DEFAULT_wxUSE_FS_INET=yes | |
2360 | DEFAULT_wxUSE_FS_ZIP=yes | |
2361 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2362 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2363 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2364 | DEFAULT_wxUSE_VALIDATORS=yes |
2365 | ||
2366 | DEFAULT_wxUSE_ACCEL=yes | |
2367 | DEFAULT_wxUSE_BUTTON=yes | |
2368 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2369 | DEFAULT_wxUSE_CALCTRL=yes | |
2370 | DEFAULT_wxUSE_CARET=yes | |
2371 | DEFAULT_wxUSE_CHECKBOX=yes | |
2372 | DEFAULT_wxUSE_CHECKLST=yes | |
2373 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2374 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2375 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2376 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2377 | DEFAULT_wxUSE_DISPLAY=yes |
2378 | DEFAULT_wxUSE_GAUGE=yes | |
2379 | DEFAULT_wxUSE_GRID=yes | |
2380 | DEFAULT_wxUSE_IMAGLIST=yes | |
2381 | DEFAULT_wxUSE_LISTBOOK=yes | |
2382 | DEFAULT_wxUSE_LISTBOX=yes | |
2383 | DEFAULT_wxUSE_LISTCTRL=yes | |
2384 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2385 | DEFAULT_wxUSE_RADIOBOX=yes | |
2386 | DEFAULT_wxUSE_RADIOBTN=yes | |
2387 | DEFAULT_wxUSE_SASH=yes | |
2388 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2389 | DEFAULT_wxUSE_SLIDER=yes | |
2390 | DEFAULT_wxUSE_SPINBTN=yes | |
2391 | DEFAULT_wxUSE_SPINCTRL=yes | |
2392 | DEFAULT_wxUSE_SPLITTER=yes | |
2393 | DEFAULT_wxUSE_STATBMP=yes | |
2394 | DEFAULT_wxUSE_STATBOX=yes | |
2395 | DEFAULT_wxUSE_STATLINE=yes | |
2396 | DEFAULT_wxUSE_STATTEXT=yes | |
2397 | DEFAULT_wxUSE_STATUSBAR=yes | |
2398 | DEFAULT_wxUSE_TABDIALOG=no | |
2399 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2400 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2401 | DEFAULT_wxUSE_TOOLBAR=yes | |
2402 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2403 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2404 | DEFAULT_wxUSE_TREECTRL=yes | |
2405 | DEFAULT_wxUSE_POPUPWIN=yes | |
2406 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2407 | ||
78de529b | 2408 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2409 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2410 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2411 | ||
2412 | DEFAULT_wxUSE_PALETTE=yes | |
2413 | DEFAULT_wxUSE_IMAGE=yes | |
2414 | DEFAULT_wxUSE_GIF=yes | |
2415 | DEFAULT_wxUSE_PCX=yes | |
2416 | DEFAULT_wxUSE_IFF=no | |
2417 | DEFAULT_wxUSE_PNM=yes | |
2418 | DEFAULT_wxUSE_XPM=yes | |
2419 | DEFAULT_wxUSE_ICO_CUR=yes | |
2420 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2421 | ||
2422 | DEFAULT_wxUSE_MONOLITHIC=no | |
2423 | DEFAULT_wxUSE_PLUGINS=no | |
2424 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2425 | |
f34ca037 | 2426 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2427 | fi |
2428 | ||
2429 | ||
2430 | ||
f34ca037 | 2431 | |
a848cd7e SC |
2432 | for toolkit in `echo $ALL_TOOLKITS`; do |
2433 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2434 | if test "x$LINE" != "x" ; then | |
2435 | has_toolkit_in_cache=1 | |
2436 | eval "DEFAULT_$LINE" | |
2437 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2438 | |
2439 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2440 | if test "x$LINE" != "x" ; then | |
2441 | eval "DEFAULT_$LINE" | |
2442 | fi | |
a848cd7e SC |
2443 | fi |
2444 | done | |
2445 | ||
2446 | ||
2447 | ||
2448 | enablestring= | |
2449 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2450 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2451 | no_cache=0 | |
2452 | # Check whether --enable-gui or --disable-gui was given. | |
2453 | if test "${enable_gui+set}" = set; then | |
2454 | enableval="$enable_gui" | |
2455 | ||
2456 | if test "$enableval" = yes; then | |
2457 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2458 | else | |
2459 | ac_cv_use_gui='wxUSE_GUI=no' | |
2460 | fi | |
2461 | ||
2462 | else | |
2463 | ||
2464 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2465 | if test "x$LINE" != x ; then | |
2466 | eval "DEFAULT_$LINE" | |
2467 | else | |
2468 | no_cache=1 | |
2469 | fi | |
2470 | ||
2471 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2472 | ||
2473 | fi; | |
2474 | ||
2475 | eval "$ac_cv_use_gui" | |
2476 | if test "$no_cache" != 1; then | |
2477 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2478 | fi | |
2479 | ||
2480 | if test "$wxUSE_GUI" = yes; then | |
2481 | echo "$as_me:$LINENO: result: yes" >&5 | |
2482 | echo "${ECHO_T}yes" >&6 | |
2483 | else | |
2484 | echo "$as_me:$LINENO: result: no" >&5 | |
2485 | echo "${ECHO_T}no" >&6 | |
2486 | fi | |
2487 | ||
2488 | ||
2489 | enablestring= | |
2490 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2491 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2492 | no_cache=0 | |
2493 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2494 | if test "${enable_monolithic+set}" = set; then | |
2495 | enableval="$enable_monolithic" | |
2496 | ||
2497 | if test "$enableval" = yes; then | |
2498 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2499 | else | |
2500 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2501 | fi | |
2502 | ||
2503 | else | |
2504 | ||
2505 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2506 | if test "x$LINE" != x ; then | |
2507 | eval "DEFAULT_$LINE" | |
2508 | else | |
2509 | no_cache=1 | |
2510 | fi | |
2511 | ||
2512 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2513 | ||
2514 | fi; | |
2515 | ||
2516 | eval "$ac_cv_use_monolithic" | |
2517 | if test "$no_cache" != 1; then | |
2518 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2519 | fi | |
2520 | ||
2521 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2522 | echo "$as_me:$LINENO: result: yes" >&5 | |
2523 | echo "${ECHO_T}yes" >&6 | |
2524 | else | |
2525 | echo "$as_me:$LINENO: result: no" >&5 | |
2526 | echo "${ECHO_T}no" >&6 | |
2527 | fi | |
2528 | ||
2529 | ||
2530 | enablestring= | |
2531 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2532 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2533 | no_cache=0 | |
2534 | # Check whether --enable-plugins or --disable-plugins was given. | |
2535 | if test "${enable_plugins+set}" = set; then | |
2536 | enableval="$enable_plugins" | |
2537 | ||
2538 | if test "$enableval" = yes; then | |
2539 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2540 | else | |
2541 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2542 | fi | |
2543 | ||
2544 | else | |
2545 | ||
2546 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2547 | if test "x$LINE" != x ; then | |
2548 | eval "DEFAULT_$LINE" | |
2549 | else | |
2550 | no_cache=1 | |
2551 | fi | |
2552 | ||
2553 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2554 | ||
2555 | fi; | |
2556 | ||
2557 | eval "$ac_cv_use_plugins" | |
2558 | if test "$no_cache" != 1; then | |
2559 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2560 | fi | |
2561 | ||
2562 | if test "$wxUSE_PLUGINS" = yes; then | |
2563 | echo "$as_me:$LINENO: result: yes" >&5 | |
2564 | echo "${ECHO_T}yes" >&6 | |
2565 | else | |
2566 | echo "$as_me:$LINENO: result: no" >&5 | |
2567 | echo "${ECHO_T}no" >&6 | |
2568 | fi | |
2569 | ||
2570 | ||
1c14217d VZ |
2571 | withstring=without |
2572 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2573 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2574 | no_cache=0 | |
2575 | ||
2576 | # Check whether --with-subdirs or --without-subdirs was given. | |
2577 | if test "${with_subdirs+set}" = set; then | |
2578 | withval="$with_subdirs" | |
2579 | ||
2580 | if test "$withval" = yes; then | |
2581 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2582 | else | |
2583 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2584 | fi | |
2585 | ||
2586 | else | |
2587 | ||
2588 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2589 | if test "x$LINE" != x ; then | |
2590 | eval "DEFAULT_$LINE" | |
2591 | else | |
2592 | no_cache=1 | |
2593 | fi | |
2594 | ||
2595 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2596 | ||
2597 | fi; | |
2598 | ||
2599 | eval "$ac_cv_use_subdirs" | |
2600 | if test "$no_cache" != 1; then | |
2601 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2602 | fi | |
2603 | ||
2604 | if test "$wxWITH_SUBDIRS" = yes; then | |
2605 | echo "$as_me:$LINENO: result: yes" >&5 | |
2606 | echo "${ECHO_T}yes" >&6 | |
2607 | else | |
2608 | echo "$as_me:$LINENO: result: no" >&5 | |
2609 | echo "${ECHO_T}no" >&6 | |
2610 | fi | |
2611 | ||
2612 | ||
a848cd7e SC |
2613 | if test "$wxUSE_GUI" = "yes"; then |
2614 | ||
2615 | ||
2616 | enablestring= | |
2617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2618 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2619 | no_cache=0 | |
2620 | # Check whether --enable-universal or --disable-universal was given. | |
2621 | if test "${enable_universal+set}" = set; then | |
2622 | enableval="$enable_universal" | |
2623 | ||
2624 | if test "$enableval" = yes; then | |
2625 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2626 | else | |
2627 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2628 | fi | |
2629 | ||
2630 | else | |
2631 | ||
2632 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2633 | if test "x$LINE" != x ; then | |
2634 | eval "DEFAULT_$LINE" | |
2635 | else | |
2636 | no_cache=1 | |
2637 | fi | |
2638 | ||
2639 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2640 | ||
2641 | fi; | |
2642 | ||
2643 | eval "$ac_cv_use_universal" | |
2644 | if test "$no_cache" != 1; then | |
2645 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2646 | fi | |
2647 | ||
2648 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2649 | echo "$as_me:$LINENO: result: yes" >&5 | |
2650 | echo "${ECHO_T}yes" >&6 | |
2651 | else | |
2652 | echo "$as_me:$LINENO: result: no" >&5 | |
2653 | echo "${ECHO_T}no" >&6 | |
2654 | fi | |
2655 | ||
2656 | ||
2657 | # Check whether --with-gtk or --without-gtk was given. | |
2658 | if test "${with_gtk+set}" = set; then | |
2659 | withval="$with_gtk" | |
2660 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2661 | fi; | |
2662 | ||
2663 | # Check whether --with-motif or --without-motif was given. | |
2664 | if test "${with_motif+set}" = set; then | |
2665 | withval="$with_motif" | |
2666 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2667 | fi; | |
2668 | ||
2669 | # Check whether --with-mac or --without-mac was given. | |
2670 | if test "${with_mac+set}" = set; then | |
2671 | withval="$with_mac" | |
c228d3a4 | 2672 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2673 | fi; |
2674 | ||
2675 | # Check whether --with-cocoa or --without-cocoa was given. | |
2676 | if test "${with_cocoa+set}" = set; then | |
2677 | withval="$with_cocoa" | |
c228d3a4 | 2678 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2679 | fi; |
2680 | ||
2681 | # Check whether --with-wine or --without-wine was given. | |
2682 | if test "${with_wine+set}" = set; then | |
2683 | withval="$with_wine" | |
2684 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2685 | fi; | |
2686 | ||
2687 | # Check whether --with-msw or --without-msw was given. | |
2688 | if test "${with_msw+set}" = set; then | |
2689 | withval="$with_msw" | |
2690 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2691 | fi; | |
2692 | ||
2693 | # Check whether --with-pm or --without-pm was given. | |
2694 | if test "${with_pm+set}" = set; then | |
2695 | withval="$with_pm" | |
2696 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2697 | fi; | |
2698 | ||
2699 | # Check whether --with-mgl or --without-mgl was given. | |
2700 | if test "${with_mgl+set}" = set; then | |
2701 | withval="$with_mgl" | |
2702 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2703 | fi; | |
2704 | ||
2705 | # Check whether --with-microwin or --without-microwin was given. | |
2706 | if test "${with_microwin+set}" = set; then | |
2707 | withval="$with_microwin" | |
2708 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2709 | fi; | |
2710 | ||
2711 | # Check whether --with-x11 or --without-x11 was given. | |
2712 | if test "${with_x11+set}" = set; then | |
2713 | withval="$with_x11" | |
2714 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2715 | fi; | |
2716 | ||
2717 | enablestring= | |
2718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2719 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2720 | no_cache=0 | |
2721 | # Check whether --enable-nanox or --disable-nanox was given. | |
2722 | if test "${enable_nanox+set}" = set; then | |
2723 | enableval="$enable_nanox" | |
2724 | ||
2725 | if test "$enableval" = yes; then | |
2726 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2727 | else | |
2728 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2729 | fi | |
2730 | ||
2731 | else | |
2732 | ||
2733 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2741 | ||
2742 | fi; | |
2743 | ||
2744 | eval "$ac_cv_use_nanox" | |
2745 | if test "$no_cache" != 1; then | |
2746 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2747 | fi | |
2748 | ||
2749 | if test "$wxUSE_NANOX" = yes; then | |
2750 | echo "$as_me:$LINENO: result: yes" >&5 | |
2751 | echo "${ECHO_T}yes" >&6 | |
2752 | else | |
2753 | echo "$as_me:$LINENO: result: no" >&5 | |
2754 | echo "${ECHO_T}no" >&6 | |
2755 | fi | |
2756 | ||
2757 | ||
f34ca037 MW |
2758 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2759 | if test "${enable_gtk2+set}" = set; then | |
2760 | enableval="$enable_gtk2" | |
2761 | wxUSE_GTK2="$enableval" | |
2762 | fi; | |
a848cd7e | 2763 | |
a848cd7e SC |
2764 | enablestring= |
2765 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2766 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2767 | no_cache=0 | |
2768 | # Check whether --enable-gpe or --disable-gpe was given. | |
2769 | if test "${enable_gpe+set}" = set; then | |
2770 | enableval="$enable_gpe" | |
2771 | ||
2772 | if test "$enableval" = yes; then | |
2773 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2774 | else | |
2775 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2776 | fi | |
2777 | ||
2778 | else | |
2779 | ||
2780 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2781 | if test "x$LINE" != x ; then | |
2782 | eval "DEFAULT_$LINE" | |
2783 | else | |
2784 | no_cache=1 | |
2785 | fi | |
2786 | ||
2787 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2788 | ||
2789 | fi; | |
2790 | ||
2791 | eval "$ac_cv_use_gpe" | |
2792 | if test "$no_cache" != 1; then | |
2793 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2794 | fi | |
2795 | ||
2796 | if test "$wxUSE_GPE" = yes; then | |
2797 | echo "$as_me:$LINENO: result: yes" >&5 | |
2798 | echo "${ECHO_T}yes" >&6 | |
2799 | else | |
2800 | echo "$as_me:$LINENO: result: no" >&5 | |
2801 | echo "${ECHO_T}no" >&6 | |
2802 | fi | |
2803 | ||
2804 | ||
2805 | ||
2806 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2807 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2808 | no_cache=0 | |
2809 | ||
2810 | # Check whether --with-libpng or --without-libpng was given. | |
2811 | if test "${with_libpng+set}" = set; then | |
2812 | withval="$with_libpng" | |
2813 | ||
2814 | if test "$withval" = yes; then | |
2815 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2816 | elif test "$withval" = no; then | |
2817 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2818 | elif test "$withval" = sys; then | |
2819 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2820 | elif test "$withval" = builtin; then | |
2821 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2822 | else | |
2823 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2824 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2825 | { (exit 1); exit 1; }; } | |
2826 | fi | |
2827 | ||
2828 | else | |
2829 | ||
2830 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2831 | if test "x$LINE" != x ; then | |
2832 | eval "DEFAULT_$LINE" | |
2833 | else | |
2834 | no_cache=1 | |
2835 | fi | |
2836 | ||
2837 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2838 | ||
2839 | fi; | |
2840 | ||
2841 | eval "$ac_cv_use_libpng" | |
2842 | if test "$no_cache" != 1; then | |
2843 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2844 | fi | |
2845 | ||
2846 | if test "$wxUSE_LIBPNG" = yes; then | |
2847 | echo "$as_me:$LINENO: result: yes" >&5 | |
2848 | echo "${ECHO_T}yes" >&6 | |
2849 | elif test "$wxUSE_LIBPNG" = no; then | |
2850 | echo "$as_me:$LINENO: result: no" >&5 | |
2851 | echo "${ECHO_T}no" >&6 | |
2852 | elif test "$wxUSE_LIBPNG" = sys; then | |
2853 | echo "$as_me:$LINENO: result: system version" >&5 | |
2854 | echo "${ECHO_T}system version" >&6 | |
2855 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2856 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2857 | echo "${ECHO_T}builtin version" >&6 | |
2858 | else | |
2859 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2860 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
2862 | fi | |
2863 | ||
2864 | ||
2865 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2866 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2867 | no_cache=0 | |
2868 | ||
2869 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2870 | if test "${with_libjpeg+set}" = set; then | |
2871 | withval="$with_libjpeg" | |
2872 | ||
2873 | if test "$withval" = yes; then | |
2874 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2875 | elif test "$withval" = no; then | |
2876 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2877 | elif test "$withval" = sys; then | |
2878 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2879 | elif test "$withval" = builtin; then | |
2880 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2881 | else | |
2882 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2883 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2884 | { (exit 1); exit 1; }; } | |
2885 | fi | |
2886 | ||
2887 | else | |
2888 | ||
2889 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2890 | if test "x$LINE" != x ; then | |
2891 | eval "DEFAULT_$LINE" | |
2892 | else | |
2893 | no_cache=1 | |
2894 | fi | |
2895 | ||
2896 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2897 | ||
2898 | fi; | |
2899 | ||
2900 | eval "$ac_cv_use_libjpeg" | |
2901 | if test "$no_cache" != 1; then | |
2902 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2903 | fi | |
2904 | ||
2905 | if test "$wxUSE_LIBJPEG" = yes; then | |
2906 | echo "$as_me:$LINENO: result: yes" >&5 | |
2907 | echo "${ECHO_T}yes" >&6 | |
2908 | elif test "$wxUSE_LIBJPEG" = no; then | |
2909 | echo "$as_me:$LINENO: result: no" >&5 | |
2910 | echo "${ECHO_T}no" >&6 | |
2911 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2912 | echo "$as_me:$LINENO: result: system version" >&5 | |
2913 | echo "${ECHO_T}system version" >&6 | |
2914 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2915 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2916 | echo "${ECHO_T}builtin version" >&6 | |
2917 | else | |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2919 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
2921 | fi | |
2922 | ||
2923 | ||
2924 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2925 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2926 | no_cache=0 | |
2927 | ||
2928 | # Check whether --with-libtiff or --without-libtiff was given. | |
2929 | if test "${with_libtiff+set}" = set; then | |
2930 | withval="$with_libtiff" | |
2931 | ||
2932 | if test "$withval" = yes; then | |
2933 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2934 | elif test "$withval" = no; then | |
2935 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2936 | elif test "$withval" = sys; then | |
2937 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2938 | elif test "$withval" = builtin; then | |
2939 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2940 | else | |
2941 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2942 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2943 | { (exit 1); exit 1; }; } | |
2944 | fi | |
2945 | ||
2946 | else | |
2947 | ||
2948 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2949 | if test "x$LINE" != x ; then | |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
2955 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2956 | ||
2957 | fi; | |
2958 | ||
2959 | eval "$ac_cv_use_libtiff" | |
2960 | if test "$no_cache" != 1; then | |
2961 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2962 | fi | |
2963 | ||
2964 | if test "$wxUSE_LIBTIFF" = yes; then | |
2965 | echo "$as_me:$LINENO: result: yes" >&5 | |
2966 | echo "${ECHO_T}yes" >&6 | |
2967 | elif test "$wxUSE_LIBTIFF" = no; then | |
2968 | echo "$as_me:$LINENO: result: no" >&5 | |
2969 | echo "${ECHO_T}no" >&6 | |
2970 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2971 | echo "$as_me:$LINENO: result: system version" >&5 | |
2972 | echo "${ECHO_T}system version" >&6 | |
2973 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2974 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2975 | echo "${ECHO_T}builtin version" >&6 | |
2976 | else | |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2978 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
2980 | fi | |
2981 | ||
2982 | ||
2983 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2984 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2985 | no_cache=0 | |
2986 | ||
2987 | # Check whether --with-libxpm or --without-libxpm was given. | |
2988 | if test "${with_libxpm+set}" = set; then | |
2989 | withval="$with_libxpm" | |
2990 | ||
2991 | if test "$withval" = yes; then | |
2992 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2993 | elif test "$withval" = no; then | |
2994 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2995 | elif test "$withval" = sys; then | |
2996 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2997 | elif test "$withval" = builtin; then | |
2998 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2999 | else | |
3000 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3001 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3002 | { (exit 1); exit 1; }; } | |
3003 | fi | |
3004 | ||
3005 | else | |
3006 | ||
3007 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3015 | ||
3016 | fi; | |
3017 | ||
3018 | eval "$ac_cv_use_libxpm" | |
3019 | if test "$no_cache" != 1; then | |
3020 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3021 | fi | |
3022 | ||
3023 | if test "$wxUSE_LIBXPM" = yes; then | |
3024 | echo "$as_me:$LINENO: result: yes" >&5 | |
3025 | echo "${ECHO_T}yes" >&6 | |
3026 | elif test "$wxUSE_LIBXPM" = no; then | |
3027 | echo "$as_me:$LINENO: result: no" >&5 | |
3028 | echo "${ECHO_T}no" >&6 | |
3029 | elif test "$wxUSE_LIBXPM" = sys; then | |
3030 | echo "$as_me:$LINENO: result: system version" >&5 | |
3031 | echo "${ECHO_T}system version" >&6 | |
3032 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3033 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3034 | echo "${ECHO_T}builtin version" >&6 | |
3035 | else | |
3036 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3037 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3038 | { (exit 1); exit 1; }; } | |
3039 | fi | |
3040 | ||
3041 | ||
1c14217d VZ |
3042 | withstring= |
3043 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3044 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3045 | no_cache=0 |
3046 | ||
3047 | # Check whether --with-libmspack or --without-libmspack was given. | |
3048 | if test "${with_libmspack+set}" = set; then | |
3049 | withval="$with_libmspack" | |
3050 | ||
3051 | if test "$withval" = yes; then | |
3052 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3053 | else | |
3054 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3055 | fi | |
3056 | ||
3057 | else | |
3058 | ||
3059 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3060 | if test "x$LINE" != x ; then | |
3061 | eval "DEFAULT_$LINE" | |
3062 | else | |
3063 | no_cache=1 | |
3064 | fi | |
3065 | ||
3066 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3067 | ||
3068 | fi; | |
3069 | ||
3070 | eval "$ac_cv_use_libmspack" | |
3071 | if test "$no_cache" != 1; then | |
3072 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3073 | fi | |
3074 | ||
3075 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3076 | echo "$as_me:$LINENO: result: yes" >&5 | |
3077 | echo "${ECHO_T}yes" >&6 | |
3078 | else | |
3079 | echo "$as_me:$LINENO: result: no" >&5 | |
3080 | echo "${ECHO_T}no" >&6 | |
3081 | fi | |
3082 | ||
3083 | ||
1c14217d VZ |
3084 | withstring= |
3085 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3086 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3087 | no_cache=0 |
3088 | ||
3089 | # Check whether --with-sdl or --without-sdl was given. | |
3090 | if test "${with_sdl+set}" = set; then | |
3091 | withval="$with_sdl" | |
3092 | ||
3093 | if test "$withval" = yes; then | |
3094 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3095 | else | |
3096 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3097 | fi | |
3098 | ||
3099 | else | |
3100 | ||
3101 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3102 | if test "x$LINE" != x ; then | |
3103 | eval "DEFAULT_$LINE" | |
3104 | else | |
3105 | no_cache=1 | |
3106 | fi | |
3107 | ||
3108 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3109 | ||
3110 | fi; | |
3111 | ||
3112 | eval "$ac_cv_use_sdl" | |
3113 | if test "$no_cache" != 1; then | |
3114 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3115 | fi | |
3116 | ||
3117 | if test "$wxUSE_LIBSDL" = yes; then | |
3118 | echo "$as_me:$LINENO: result: yes" >&5 | |
3119 | echo "${ECHO_T}yes" >&6 | |
3120 | else | |
3121 | echo "$as_me:$LINENO: result: no" >&5 | |
3122 | echo "${ECHO_T}no" >&6 | |
3123 | fi | |
3124 | ||
3125 | ||
1c14217d VZ |
3126 | withstring= |
3127 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3128 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3129 | no_cache=0 |
3130 | ||
3131 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3132 | if test "${with_gnomeprint+set}" = set; then | |
3133 | withval="$with_gnomeprint" | |
3134 | ||
3135 | if test "$withval" = yes; then | |
3136 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3137 | else | |
3138 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3139 | fi | |
3140 | ||
3141 | else | |
3142 | ||
3143 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3144 | if test "x$LINE" != x ; then | |
3145 | eval "DEFAULT_$LINE" | |
3146 | else | |
3147 | no_cache=1 | |
3148 | fi | |
3149 | ||
3150 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3151 | ||
3152 | fi; | |
3153 | ||
3154 | eval "$ac_cv_use_gnomeprint" | |
3155 | if test "$no_cache" != 1; then | |
3156 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3157 | fi | |
3158 | ||
3159 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3160 | echo "$as_me:$LINENO: result: yes" >&5 | |
3161 | echo "${ECHO_T}yes" >&6 | |
3162 | else | |
3163 | echo "$as_me:$LINENO: result: no" >&5 | |
3164 | echo "${ECHO_T}no" >&6 | |
3165 | fi | |
3166 | ||
3167 | ||
1c14217d VZ |
3168 | withstring= |
3169 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3170 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3171 | no_cache=0 |
3172 | ||
3173 | # Check whether --with-opengl or --without-opengl was given. | |
3174 | if test "${with_opengl+set}" = set; then | |
3175 | withval="$with_opengl" | |
3176 | ||
3177 | if test "$withval" = yes; then | |
3178 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3179 | else | |
3180 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3181 | fi | |
3182 | ||
3183 | else | |
3184 | ||
3185 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3186 | if test "x$LINE" != x ; then | |
3187 | eval "DEFAULT_$LINE" | |
3188 | else | |
3189 | no_cache=1 | |
3190 | fi | |
3191 | ||
3192 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3193 | ||
3194 | fi; | |
3195 | ||
3196 | eval "$ac_cv_use_opengl" | |
3197 | if test "$no_cache" != 1; then | |
3198 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3199 | fi | |
3200 | ||
3201 | if test "$wxUSE_OPENGL" = yes; then | |
3202 | echo "$as_me:$LINENO: result: yes" >&5 | |
3203 | echo "${ECHO_T}yes" >&6 | |
3204 | else | |
3205 | echo "$as_me:$LINENO: result: no" >&5 | |
3206 | echo "${ECHO_T}no" >&6 | |
3207 | fi | |
3208 | ||
3209 | ||
3210 | fi | |
3211 | ||
3212 | ||
1c14217d VZ |
3213 | withstring= |
3214 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3215 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3216 | no_cache=0 |
3217 | ||
3218 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3219 | if test "${with_dmalloc+set}" = set; then | |
3220 | withval="$with_dmalloc" | |
3221 | ||
3222 | if test "$withval" = yes; then | |
3223 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3224 | else | |
3225 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3226 | fi | |
3227 | ||
3228 | else | |
3229 | ||
3230 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3231 | if test "x$LINE" != x ; then | |
3232 | eval "DEFAULT_$LINE" | |
3233 | else | |
3234 | no_cache=1 | |
3235 | fi | |
3236 | ||
3237 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3238 | ||
3239 | fi; | |
3240 | ||
3241 | eval "$ac_cv_use_dmalloc" | |
3242 | if test "$no_cache" != 1; then | |
3243 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3244 | fi | |
3245 | ||
3246 | if test "$wxUSE_DMALLOC" = yes; then | |
3247 | echo "$as_me:$LINENO: result: yes" >&5 | |
3248 | echo "${ECHO_T}yes" >&6 | |
3249 | else | |
3250 | echo "$as_me:$LINENO: result: no" >&5 | |
3251 | echo "${ECHO_T}no" >&6 | |
3252 | fi | |
3253 | ||
3254 | ||
3255 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3256 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3257 | no_cache=0 | |
3258 | ||
3259 | # Check whether --with-regex or --without-regex was given. | |
3260 | if test "${with_regex+set}" = set; then | |
3261 | withval="$with_regex" | |
3262 | ||
3263 | if test "$withval" = yes; then | |
3264 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3265 | elif test "$withval" = no; then | |
3266 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3267 | elif test "$withval" = sys; then | |
3268 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3269 | elif test "$withval" = builtin; then | |
3270 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3271 | else | |
3272 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3273 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3274 | { (exit 1); exit 1; }; } | |
3275 | fi | |
3276 | ||
3277 | else | |
3278 | ||
3279 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3280 | if test "x$LINE" != x ; then | |
3281 | eval "DEFAULT_$LINE" | |
3282 | else | |
3283 | no_cache=1 | |
3284 | fi | |
3285 | ||
3286 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3287 | ||
3288 | fi; | |
3289 | ||
3290 | eval "$ac_cv_use_regex" | |
3291 | if test "$no_cache" != 1; then | |
3292 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3293 | fi | |
3294 | ||
3295 | if test "$wxUSE_REGEX" = yes; then | |
3296 | echo "$as_me:$LINENO: result: yes" >&5 | |
3297 | echo "${ECHO_T}yes" >&6 | |
3298 | elif test "$wxUSE_REGEX" = no; then | |
3299 | echo "$as_me:$LINENO: result: no" >&5 | |
3300 | echo "${ECHO_T}no" >&6 | |
3301 | elif test "$wxUSE_REGEX" = sys; then | |
3302 | echo "$as_me:$LINENO: result: system version" >&5 | |
3303 | echo "${ECHO_T}system version" >&6 | |
3304 | elif test "$wxUSE_REGEX" = builtin; then | |
3305 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3306 | echo "${ECHO_T}builtin version" >&6 | |
3307 | else | |
3308 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3309 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3310 | { (exit 1); exit 1; }; } | |
3311 | fi | |
3312 | ||
3313 | ||
3314 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3315 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3316 | no_cache=0 | |
3317 | ||
3318 | # Check whether --with-zlib or --without-zlib was given. | |
3319 | if test "${with_zlib+set}" = set; then | |
3320 | withval="$with_zlib" | |
3321 | ||
3322 | if test "$withval" = yes; then | |
3323 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3324 | elif test "$withval" = no; then | |
3325 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3326 | elif test "$withval" = sys; then | |
3327 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3328 | elif test "$withval" = builtin; then | |
3329 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3330 | else | |
3331 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3332 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3333 | { (exit 1); exit 1; }; } | |
3334 | fi | |
3335 | ||
3336 | else | |
3337 | ||
3338 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3339 | if test "x$LINE" != x ; then | |
3340 | eval "DEFAULT_$LINE" | |
3341 | else | |
3342 | no_cache=1 | |
3343 | fi | |
3344 | ||
3345 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3346 | ||
3347 | fi; | |
3348 | ||
3349 | eval "$ac_cv_use_zlib" | |
3350 | if test "$no_cache" != 1; then | |
3351 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3352 | fi | |
3353 | ||
3354 | if test "$wxUSE_ZLIB" = yes; then | |
3355 | echo "$as_me:$LINENO: result: yes" >&5 | |
3356 | echo "${ECHO_T}yes" >&6 | |
3357 | elif test "$wxUSE_ZLIB" = no; then | |
3358 | echo "$as_me:$LINENO: result: no" >&5 | |
3359 | echo "${ECHO_T}no" >&6 | |
3360 | elif test "$wxUSE_ZLIB" = sys; then | |
3361 | echo "$as_me:$LINENO: result: system version" >&5 | |
3362 | echo "${ECHO_T}system version" >&6 | |
3363 | elif test "$wxUSE_ZLIB" = builtin; then | |
3364 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3365 | echo "${ECHO_T}builtin version" >&6 | |
3366 | else | |
3367 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3368 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3369 | { (exit 1); exit 1; }; } | |
3370 | fi | |
3371 | ||
3372 | ||
3373 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3374 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3375 | no_cache=0 | |
3376 | ||
3377 | # Check whether --with-odbc or --without-odbc was given. | |
3378 | if test "${with_odbc+set}" = set; then | |
3379 | withval="$with_odbc" | |
3380 | ||
3381 | if test "$withval" = yes; then | |
3382 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3383 | elif test "$withval" = no; then | |
3384 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3385 | elif test "$withval" = sys; then | |
3386 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3387 | elif test "$withval" = builtin; then | |
3388 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3389 | else | |
3390 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3391 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3392 | { (exit 1); exit 1; }; } | |
3393 | fi | |
3394 | ||
3395 | else | |
3396 | ||
3397 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3398 | if test "x$LINE" != x ; then | |
3399 | eval "DEFAULT_$LINE" | |
3400 | else | |
3401 | no_cache=1 | |
3402 | fi | |
3403 | ||
3404 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3405 | ||
3406 | fi; | |
3407 | ||
3408 | eval "$ac_cv_use_odbc" | |
3409 | if test "$no_cache" != 1; then | |
3410 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3411 | fi | |
3412 | ||
3413 | if test "$wxUSE_ODBC" = yes; then | |
3414 | echo "$as_me:$LINENO: result: yes" >&5 | |
3415 | echo "${ECHO_T}yes" >&6 | |
3416 | elif test "$wxUSE_ODBC" = no; then | |
3417 | echo "$as_me:$LINENO: result: no" >&5 | |
3418 | echo "${ECHO_T}no" >&6 | |
3419 | elif test "$wxUSE_ODBC" = sys; then | |
3420 | echo "$as_me:$LINENO: result: system version" >&5 | |
3421 | echo "${ECHO_T}system version" >&6 | |
3422 | elif test "$wxUSE_ODBC" = builtin; then | |
3423 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3424 | echo "${ECHO_T}builtin version" >&6 | |
3425 | else | |
3426 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3427 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3428 | { (exit 1); exit 1; }; } | |
3429 | fi | |
3430 | ||
3431 | ||
3432 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3433 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3434 | no_cache=0 | |
3435 | ||
3436 | # Check whether --with-expat or --without-expat was given. | |
3437 | if test "${with_expat+set}" = set; then | |
3438 | withval="$with_expat" | |
3439 | ||
3440 | if test "$withval" = yes; then | |
3441 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3442 | elif test "$withval" = no; then | |
3443 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3444 | elif test "$withval" = sys; then | |
3445 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3446 | elif test "$withval" = builtin; then | |
3447 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3448 | else | |
3449 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3450 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3451 | { (exit 1); exit 1; }; } | |
3452 | fi | |
3453 | ||
3454 | else | |
3455 | ||
3456 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3457 | if test "x$LINE" != x ; then | |
3458 | eval "DEFAULT_$LINE" | |
3459 | else | |
3460 | no_cache=1 | |
3461 | fi | |
3462 | ||
3463 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3464 | ||
3465 | fi; | |
3466 | ||
3467 | eval "$ac_cv_use_expat" | |
3468 | if test "$no_cache" != 1; then | |
3469 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3470 | fi | |
3471 | ||
3472 | if test "$wxUSE_EXPAT" = yes; then | |
3473 | echo "$as_me:$LINENO: result: yes" >&5 | |
3474 | echo "${ECHO_T}yes" >&6 | |
3475 | elif test "$wxUSE_EXPAT" = no; then | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
3478 | elif test "$wxUSE_EXPAT" = sys; then | |
3479 | echo "$as_me:$LINENO: result: system version" >&5 | |
3480 | echo "${ECHO_T}system version" >&6 | |
3481 | elif test "$wxUSE_EXPAT" = builtin; then | |
3482 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3483 | echo "${ECHO_T}builtin version" >&6 | |
3484 | else | |
3485 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3486 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3487 | { (exit 1); exit 1; }; } | |
3488 | fi | |
3489 | ||
3490 | ||
3491 | ||
3492 | ||
3493 | enablestring= | |
3494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3495 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3496 | no_cache=0 | |
3497 | # Check whether --enable-shared or --disable-shared was given. | |
3498 | if test "${enable_shared+set}" = set; then | |
3499 | enableval="$enable_shared" | |
3500 | ||
3501 | if test "$enableval" = yes; then | |
3502 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3503 | else | |
3504 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3505 | fi | |
3506 | ||
3507 | else | |
3508 | ||
3509 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3510 | if test "x$LINE" != x ; then | |
3511 | eval "DEFAULT_$LINE" | |
3512 | else | |
3513 | no_cache=1 | |
3514 | fi | |
3515 | ||
3516 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3517 | ||
3518 | fi; | |
3519 | ||
3520 | eval "$ac_cv_use_shared" | |
3521 | if test "$no_cache" != 1; then | |
3522 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3523 | fi | |
3524 | ||
3525 | if test "$wxUSE_SHARED" = yes; then | |
3526 | echo "$as_me:$LINENO: result: yes" >&5 | |
3527 | echo "${ECHO_T}yes" >&6 | |
3528 | else | |
3529 | echo "$as_me:$LINENO: result: no" >&5 | |
3530 | echo "${ECHO_T}no" >&6 | |
3531 | fi | |
3532 | ||
3533 | ||
3534 | enablestring= | |
3535 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3536 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3537 | no_cache=0 | |
3538 | # Check whether --enable-optimise or --disable-optimise was given. | |
3539 | if test "${enable_optimise+set}" = set; then | |
3540 | enableval="$enable_optimise" | |
3541 | ||
3542 | if test "$enableval" = yes; then | |
3543 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3544 | else | |
3545 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3546 | fi | |
3547 | ||
3548 | else | |
3549 | ||
3550 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3551 | if test "x$LINE" != x ; then | |
3552 | eval "DEFAULT_$LINE" | |
3553 | else | |
3554 | no_cache=1 | |
3555 | fi | |
3556 | ||
3557 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3558 | ||
3559 | fi; | |
3560 | ||
3561 | eval "$ac_cv_use_optimise" | |
3562 | if test "$no_cache" != 1; then | |
3563 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3564 | fi | |
3565 | ||
3566 | if test "$wxUSE_OPTIMISE" = yes; then | |
3567 | echo "$as_me:$LINENO: result: yes" >&5 | |
3568 | echo "${ECHO_T}yes" >&6 | |
3569 | else | |
3570 | echo "$as_me:$LINENO: result: no" >&5 | |
3571 | echo "${ECHO_T}no" >&6 | |
3572 | fi | |
3573 | ||
3574 | ||
3575 | enablestring= | |
3576 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3577 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3578 | no_cache=0 | |
3579 | # Check whether --enable-debug or --disable-debug was given. | |
3580 | if test "${enable_debug+set}" = set; then | |
3581 | enableval="$enable_debug" | |
3582 | ||
3583 | if test "$enableval" = yes; then | |
3584 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3585 | else | |
3586 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3587 | fi | |
3588 | ||
3589 | else | |
3590 | ||
3591 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3592 | if test "x$LINE" != x ; then | |
3593 | eval "DEFAULT_$LINE" | |
3594 | else | |
3595 | no_cache=1 | |
3596 | fi | |
3597 | ||
3598 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3599 | ||
3600 | fi; | |
3601 | ||
3602 | eval "$ac_cv_use_debug" | |
3603 | if test "$no_cache" != 1; then | |
3604 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3605 | fi | |
3606 | ||
3607 | if test "$wxUSE_DEBUG" = yes; then | |
3608 | echo "$as_me:$LINENO: result: yes" >&5 | |
3609 | echo "${ECHO_T}yes" >&6 | |
3610 | else | |
3611 | echo "$as_me:$LINENO: result: no" >&5 | |
3612 | echo "${ECHO_T}no" >&6 | |
3613 | fi | |
3614 | ||
3615 | ||
3616 | enablestring= | |
3617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3618 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3619 | no_cache=0 | |
3620 | # Check whether --enable-stl or --disable-stl was given. | |
3621 | if test "${enable_stl+set}" = set; then | |
3622 | enableval="$enable_stl" | |
3623 | ||
3624 | if test "$enableval" = yes; then | |
3625 | ac_cv_use_stl='wxUSE_STL=yes' | |
3626 | else | |
3627 | ac_cv_use_stl='wxUSE_STL=no' | |
3628 | fi | |
3629 | ||
3630 | else | |
3631 | ||
3632 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3633 | if test "x$LINE" != x ; then | |
3634 | eval "DEFAULT_$LINE" | |
3635 | else | |
3636 | no_cache=1 | |
3637 | fi | |
3638 | ||
3639 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3640 | ||
3641 | fi; | |
3642 | ||
3643 | eval "$ac_cv_use_stl" | |
3644 | if test "$no_cache" != 1; then | |
3645 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3646 | fi | |
3647 | ||
3648 | if test "$wxUSE_STL" = yes; then | |
3649 | echo "$as_me:$LINENO: result: yes" >&5 | |
3650 | echo "${ECHO_T}yes" >&6 | |
3651 | else | |
3652 | echo "$as_me:$LINENO: result: no" >&5 | |
3653 | echo "${ECHO_T}no" >&6 | |
3654 | fi | |
3655 | ||
3656 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3657 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3658 | |
3659 | enablestring= | |
3660 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3661 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3662 | no_cache=0 | |
3663 | # Check whether --enable-omf or --disable-omf was given. | |
3664 | if test "${enable_omf+set}" = set; then | |
3665 | enableval="$enable_omf" | |
3666 | ||
3667 | if test "$enableval" = yes; then | |
3668 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3669 | else | |
3670 | ac_cv_use_omf='wxUSE_OMF=no' | |
3671 | fi | |
3672 | ||
3673 | else | |
3674 | ||
3675 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3676 | if test "x$LINE" != x ; then | |
3677 | eval "DEFAULT_$LINE" | |
3678 | else | |
3679 | no_cache=1 | |
3680 | fi | |
3681 | ||
3682 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3683 | ||
3684 | fi; | |
3685 | ||
3686 | eval "$ac_cv_use_omf" | |
3687 | if test "$no_cache" != 1; then | |
3688 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3689 | fi | |
3690 | ||
3691 | if test "$wxUSE_OMF" = yes; then | |
3692 | echo "$as_me:$LINENO: result: yes" >&5 | |
3693 | echo "${ECHO_T}yes" >&6 | |
3694 | else | |
3695 | echo "$as_me:$LINENO: result: no" >&5 | |
3696 | echo "${ECHO_T}no" >&6 | |
3697 | fi | |
3698 | ||
3699 | fi | |
3700 | ||
3701 | if test "$wxUSE_DEBUG" = "yes"; then | |
3702 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3703 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3704 | BUILD=debug | |
3705 | elif test "$wxUSE_DEBUG" = "no"; then | |
3706 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3707 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3708 | BUILD=release | |
3709 | fi | |
3710 | ||
3711 | ||
3712 | enablestring= | |
3713 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3714 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3715 | no_cache=0 | |
3716 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3717 | if test "${enable_debug_flag+set}" = set; then | |
3718 | enableval="$enable_debug_flag" | |
3719 | ||
3720 | if test "$enableval" = yes; then | |
3721 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3722 | else | |
3723 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3724 | fi | |
3725 | ||
3726 | else | |
3727 | ||
3728 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3729 | if test "x$LINE" != x ; then | |
3730 | eval "DEFAULT_$LINE" | |
3731 | else | |
3732 | no_cache=1 | |
3733 | fi | |
3734 | ||
3735 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3736 | ||
3737 | fi; | |
3738 | ||
3739 | eval "$ac_cv_use_debug_flag" | |
3740 | if test "$no_cache" != 1; then | |
3741 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3742 | fi | |
3743 | ||
3744 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3745 | echo "$as_me:$LINENO: result: yes" >&5 | |
3746 | echo "${ECHO_T}yes" >&6 | |
3747 | else | |
3748 | echo "$as_me:$LINENO: result: no" >&5 | |
3749 | echo "${ECHO_T}no" >&6 | |
3750 | fi | |
3751 | ||
3752 | ||
3753 | enablestring= | |
3754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3755 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3756 | no_cache=0 | |
3757 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3758 | if test "${enable_debug_info+set}" = set; then | |
3759 | enableval="$enable_debug_info" | |
3760 | ||
3761 | if test "$enableval" = yes; then | |
3762 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3763 | else | |
3764 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3765 | fi | |
3766 | ||
3767 | else | |
3768 | ||
3769 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3770 | if test "x$LINE" != x ; then | |
3771 | eval "DEFAULT_$LINE" | |
3772 | else | |
3773 | no_cache=1 | |
3774 | fi | |
3775 | ||
3776 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3777 | ||
3778 | fi; | |
3779 | ||
3780 | eval "$ac_cv_use_debug_info" | |
3781 | if test "$no_cache" != 1; then | |
3782 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3783 | fi | |
3784 | ||
3785 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3786 | echo "$as_me:$LINENO: result: yes" >&5 | |
3787 | echo "${ECHO_T}yes" >&6 | |
3788 | else | |
3789 | echo "$as_me:$LINENO: result: no" >&5 | |
3790 | echo "${ECHO_T}no" >&6 | |
3791 | fi | |
3792 | ||
3793 | ||
3794 | enablestring= | |
3795 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3796 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3797 | no_cache=0 | |
3798 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3799 | if test "${enable_debug_gdb+set}" = set; then | |
3800 | enableval="$enable_debug_gdb" | |
3801 | ||
3802 | if test "$enableval" = yes; then | |
3803 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3804 | else | |
3805 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3806 | fi | |
3807 | ||
3808 | else | |
3809 | ||
3810 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3811 | if test "x$LINE" != x ; then | |
3812 | eval "DEFAULT_$LINE" | |
3813 | else | |
3814 | no_cache=1 | |
3815 | fi | |
3816 | ||
3817 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3818 | ||
3819 | fi; | |
3820 | ||
3821 | eval "$ac_cv_use_debug_gdb" | |
3822 | if test "$no_cache" != 1; then | |
3823 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3824 | fi | |
3825 | ||
3826 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3827 | echo "$as_me:$LINENO: result: yes" >&5 | |
3828 | echo "${ECHO_T}yes" >&6 | |
3829 | else | |
3830 | echo "$as_me:$LINENO: result: no" >&5 | |
3831 | echo "${ECHO_T}no" >&6 | |
3832 | fi | |
3833 | ||
3834 | ||
3835 | enablestring= | |
3836 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3837 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3838 | no_cache=0 | |
3839 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3840 | if test "${enable_debug_cntxt+set}" = set; then | |
3841 | enableval="$enable_debug_cntxt" | |
3842 | ||
3843 | if test "$enableval" = yes; then | |
3844 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3845 | else | |
3846 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3847 | fi | |
3848 | ||
3849 | else | |
3850 | ||
3851 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3852 | if test "x$LINE" != x ; then | |
3853 | eval "DEFAULT_$LINE" | |
3854 | else | |
3855 | no_cache=1 | |
3856 | fi | |
3857 | ||
3858 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3859 | ||
3860 | fi; | |
3861 | ||
3862 | eval "$ac_cv_use_debug_cntxt" | |
3863 | if test "$no_cache" != 1; then | |
3864 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3865 | fi | |
3866 | ||
3867 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3868 | echo "$as_me:$LINENO: result: yes" >&5 | |
3869 | echo "${ECHO_T}yes" >&6 | |
3870 | else | |
3871 | echo "$as_me:$LINENO: result: no" >&5 | |
3872 | echo "${ECHO_T}no" >&6 | |
3873 | fi | |
3874 | ||
3875 | ||
3876 | enablestring= | |
3877 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3878 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3879 | no_cache=0 | |
3880 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3881 | if test "${enable_mem_tracing+set}" = set; then | |
3882 | enableval="$enable_mem_tracing" | |
3883 | ||
3884 | if test "$enableval" = yes; then | |
3885 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3886 | else | |
3887 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3888 | fi | |
3889 | ||
3890 | else | |
3891 | ||
3892 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3893 | if test "x$LINE" != x ; then | |
3894 | eval "DEFAULT_$LINE" | |
3895 | else | |
3896 | no_cache=1 | |
3897 | fi | |
3898 | ||
3899 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3900 | ||
3901 | fi; | |
3902 | ||
3903 | eval "$ac_cv_use_mem_tracing" | |
3904 | if test "$no_cache" != 1; then | |
3905 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3906 | fi | |
3907 | ||
3908 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3909 | echo "$as_me:$LINENO: result: yes" >&5 | |
3910 | echo "${ECHO_T}yes" >&6 | |
3911 | else | |
3912 | echo "$as_me:$LINENO: result: no" >&5 | |
3913 | echo "${ECHO_T}no" >&6 | |
3914 | fi | |
3915 | ||
3916 | ||
3917 | enablestring= | |
3918 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3919 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3920 | no_cache=0 | |
3921 | # Check whether --enable-profile or --disable-profile was given. | |
3922 | if test "${enable_profile+set}" = set; then | |
3923 | enableval="$enable_profile" | |
3924 | ||
3925 | if test "$enableval" = yes; then | |
3926 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3927 | else | |
3928 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3929 | fi | |
3930 | ||
3931 | else | |
3932 | ||
3933 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3934 | if test "x$LINE" != x ; then | |
3935 | eval "DEFAULT_$LINE" | |
3936 | else | |
3937 | no_cache=1 | |
3938 | fi | |
3939 | ||
3940 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3941 | ||
3942 | fi; | |
3943 | ||
3944 | eval "$ac_cv_use_profile" | |
3945 | if test "$no_cache" != 1; then | |
3946 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3947 | fi | |
3948 | ||
3949 | if test "$wxUSE_PROFILE" = yes; then | |
3950 | echo "$as_me:$LINENO: result: yes" >&5 | |
3951 | echo "${ECHO_T}yes" >&6 | |
3952 | else | |
3953 | echo "$as_me:$LINENO: result: no" >&5 | |
3954 | echo "${ECHO_T}no" >&6 | |
3955 | fi | |
3956 | ||
3957 | ||
3958 | enablestring= | |
3959 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3960 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3961 | no_cache=0 | |
3962 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3963 | if test "${enable_no_rtti+set}" = set; then | |
3964 | enableval="$enable_no_rtti" | |
3965 | ||
3966 | if test "$enableval" = yes; then | |
3967 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3968 | else | |
3969 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3970 | fi | |
3971 | ||
3972 | else | |
3973 | ||
3974 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3975 | if test "x$LINE" != x ; then | |
3976 | eval "DEFAULT_$LINE" | |
3977 | else | |
3978 | no_cache=1 | |
3979 | fi | |
3980 | ||
3981 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3982 | ||
3983 | fi; | |
3984 | ||
3985 | eval "$ac_cv_use_no_rtti" | |
3986 | if test "$no_cache" != 1; then | |
3987 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3988 | fi | |
3989 | ||
3990 | if test "$wxUSE_NO_RTTI" = yes; then | |
3991 | echo "$as_me:$LINENO: result: yes" >&5 | |
3992 | echo "${ECHO_T}yes" >&6 | |
3993 | else | |
3994 | echo "$as_me:$LINENO: result: no" >&5 | |
3995 | echo "${ECHO_T}no" >&6 | |
3996 | fi | |
3997 | ||
3998 | ||
3999 | enablestring= | |
4000 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4001 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4002 | no_cache=0 | |
4003 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4004 | if test "${enable_no_exceptions+set}" = set; then | |
4005 | enableval="$enable_no_exceptions" | |
4006 | ||
4007 | if test "$enableval" = yes; then | |
4008 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4009 | else | |
4010 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4011 | fi | |
4012 | ||
4013 | else | |
4014 | ||
4015 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4016 | if test "x$LINE" != x ; then | |
4017 | eval "DEFAULT_$LINE" | |
4018 | else | |
4019 | no_cache=1 | |
4020 | fi | |
4021 | ||
4022 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4023 | ||
4024 | fi; | |
4025 | ||
4026 | eval "$ac_cv_use_no_exceptions" | |
4027 | if test "$no_cache" != 1; then | |
4028 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4029 | fi | |
4030 | ||
4031 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4032 | echo "$as_me:$LINENO: result: yes" >&5 | |
4033 | echo "${ECHO_T}yes" >&6 | |
4034 | else | |
4035 | echo "$as_me:$LINENO: result: no" >&5 | |
4036 | echo "${ECHO_T}no" >&6 | |
4037 | fi | |
4038 | ||
4039 | ||
4040 | enablestring= | |
4041 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4042 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4043 | no_cache=0 | |
4044 | # Check whether --enable-permissive or --disable-permissive was given. | |
4045 | if test "${enable_permissive+set}" = set; then | |
4046 | enableval="$enable_permissive" | |
4047 | ||
4048 | if test "$enableval" = yes; then | |
4049 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4050 | else | |
4051 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4052 | fi | |
4053 | ||
4054 | else | |
4055 | ||
4056 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4057 | if test "x$LINE" != x ; then | |
4058 | eval "DEFAULT_$LINE" | |
4059 | else | |
4060 | no_cache=1 | |
4061 | fi | |
4062 | ||
4063 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4064 | ||
4065 | fi; | |
4066 | ||
4067 | eval "$ac_cv_use_permissive" | |
4068 | if test "$no_cache" != 1; then | |
4069 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4070 | fi | |
4071 | ||
4072 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4073 | echo "$as_me:$LINENO: result: yes" >&5 | |
4074 | echo "${ECHO_T}yes" >&6 | |
4075 | else | |
4076 | echo "$as_me:$LINENO: result: no" >&5 | |
4077 | echo "${ECHO_T}no" >&6 | |
4078 | fi | |
4079 | ||
4080 | ||
4081 | enablestring= | |
4082 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4083 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4084 | no_cache=0 | |
4085 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4086 | if test "${enable_no_deps+set}" = set; then | |
4087 | enableval="$enable_no_deps" | |
4088 | ||
4089 | if test "$enableval" = yes; then | |
4090 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4091 | else | |
4092 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4093 | fi | |
4094 | ||
4095 | else | |
4096 | ||
4097 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4098 | if test "x$LINE" != x ; then | |
4099 | eval "DEFAULT_$LINE" | |
4100 | else | |
4101 | no_cache=1 | |
4102 | fi | |
4103 | ||
4104 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4105 | ||
4106 | fi; | |
4107 | ||
4108 | eval "$ac_cv_use_no_deps" | |
4109 | if test "$no_cache" != 1; then | |
4110 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4111 | fi | |
4112 | ||
4113 | if test "$wxUSE_NO_DEPS" = yes; then | |
4114 | echo "$as_me:$LINENO: result: yes" >&5 | |
4115 | echo "${ECHO_T}yes" >&6 | |
4116 | else | |
4117 | echo "$as_me:$LINENO: result: no" >&5 | |
4118 | echo "${ECHO_T}no" >&6 | |
4119 | fi | |
4120 | ||
4121 | ||
4122 | ||
dee1a63f MB |
4123 | enablestring=enable |
4124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4125 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4126 | no_cache=0 |
dee1a63f MB |
4127 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4128 | if test "${enable_compat24+set}" = set; then | |
4129 | enableval="$enable_compat24" | |
a848cd7e SC |
4130 | |
4131 | if test "$enableval" = yes; then | |
dee1a63f | 4132 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4133 | else |
dee1a63f | 4134 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4135 | fi |
4136 | ||
4137 | else | |
4138 | ||
dee1a63f | 4139 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4140 | if test "x$LINE" != x ; then |
4141 | eval "DEFAULT_$LINE" | |
4142 | else | |
4143 | no_cache=1 | |
4144 | fi | |
4145 | ||
dee1a63f | 4146 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4147 | |
4148 | fi; | |
4149 | ||
dee1a63f | 4150 | eval "$ac_cv_use_compat24" |
a848cd7e | 4151 | if test "$no_cache" != 1; then |
dee1a63f | 4152 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4153 | fi |
4154 | ||
dee1a63f | 4155 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4156 | echo "$as_me:$LINENO: result: yes" >&5 |
4157 | echo "${ECHO_T}yes" >&6 | |
4158 | else | |
4159 | echo "$as_me:$LINENO: result: no" >&5 | |
4160 | echo "${ECHO_T}no" >&6 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | enablestring=disable | |
dee1a63f MB |
4165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4166 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4167 | no_cache=0 |
dee1a63f MB |
4168 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4169 | if test "${enable_compat26+set}" = set; then | |
4170 | enableval="$enable_compat26" | |
a848cd7e SC |
4171 | |
4172 | if test "$enableval" = yes; then | |
dee1a63f | 4173 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4174 | else |
dee1a63f | 4175 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4176 | fi |
4177 | ||
4178 | else | |
4179 | ||
dee1a63f | 4180 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4181 | if test "x$LINE" != x ; then |
4182 | eval "DEFAULT_$LINE" | |
4183 | else | |
4184 | no_cache=1 | |
4185 | fi | |
4186 | ||
dee1a63f | 4187 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4188 | |
4189 | fi; | |
4190 | ||
dee1a63f | 4191 | eval "$ac_cv_use_compat26" |
a848cd7e | 4192 | if test "$no_cache" != 1; then |
dee1a63f | 4193 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4194 | fi |
4195 | ||
dee1a63f | 4196 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4197 | echo "$as_me:$LINENO: result: yes" >&5 |
4198 | echo "${ECHO_T}yes" >&6 | |
4199 | else | |
4200 | echo "$as_me:$LINENO: result: no" >&5 | |
4201 | echo "${ECHO_T}no" >&6 | |
4202 | fi | |
4203 | ||
4204 | ||
ffa0583f RL |
4205 | |
4206 | enablestring= | |
4207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4208 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4211 | if test "${enable_rpath+set}" = set; then |
4212 | enableval="$enable_rpath" | |
ffa0583f RL |
4213 | |
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4216 | else | |
4217 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4230 | ||
a848cd7e SC |
4231 | fi; |
4232 | ||
ffa0583f RL |
4233 | eval "$ac_cv_use_rpath" |
4234 | if test "$no_cache" != 1; then | |
4235 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4236 | fi | |
4237 | ||
4238 | if test "$wxUSE_RPATH" = yes; then | |
4239 | echo "$as_me:$LINENO: result: yes" >&5 | |
4240 | echo "${ECHO_T}yes" >&6 | |
4241 | else | |
4242 | echo "$as_me:$LINENO: result: no" >&5 | |
4243 | echo "${ECHO_T}no" >&6 | |
4244 | fi | |
4245 | ||
a848cd7e SC |
4246 | |
4247 | ||
4248 | ||
4249 | ||
4250 | enablestring= | |
4251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4252 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4253 | no_cache=0 | |
4254 | # Check whether --enable-intl or --disable-intl was given. | |
4255 | if test "${enable_intl+set}" = set; then | |
4256 | enableval="$enable_intl" | |
4257 | ||
4258 | if test "$enableval" = yes; then | |
4259 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4260 | else | |
4261 | ac_cv_use_intl='wxUSE_INTL=no' | |
4262 | fi | |
4263 | ||
4264 | else | |
4265 | ||
4266 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4267 | if test "x$LINE" != x ; then | |
4268 | eval "DEFAULT_$LINE" | |
4269 | else | |
4270 | no_cache=1 | |
4271 | fi | |
4272 | ||
4273 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4274 | ||
4275 | fi; | |
4276 | ||
4277 | eval "$ac_cv_use_intl" | |
4278 | if test "$no_cache" != 1; then | |
4279 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4280 | fi | |
4281 | ||
4282 | if test "$wxUSE_INTL" = yes; then | |
4283 | echo "$as_me:$LINENO: result: yes" >&5 | |
4284 | echo "${ECHO_T}yes" >&6 | |
4285 | else | |
4286 | echo "$as_me:$LINENO: result: no" >&5 | |
4287 | echo "${ECHO_T}no" >&6 | |
4288 | fi | |
4289 | ||
4290 | ||
4291 | enablestring= | |
4292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4293 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4294 | no_cache=0 | |
4295 | # Check whether --enable-config or --disable-config was given. | |
4296 | if test "${enable_config+set}" = set; then | |
4297 | enableval="$enable_config" | |
4298 | ||
4299 | if test "$enableval" = yes; then | |
4300 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4301 | else | |
4302 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4303 | fi | |
4304 | ||
4305 | else | |
4306 | ||
4307 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4308 | if test "x$LINE" != x ; then | |
4309 | eval "DEFAULT_$LINE" | |
4310 | else | |
4311 | no_cache=1 | |
4312 | fi | |
4313 | ||
4314 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4315 | ||
4316 | fi; | |
4317 | ||
4318 | eval "$ac_cv_use_config" | |
4319 | if test "$no_cache" != 1; then | |
4320 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4321 | fi | |
4322 | ||
4323 | if test "$wxUSE_CONFIG" = yes; then | |
4324 | echo "$as_me:$LINENO: result: yes" >&5 | |
4325 | echo "${ECHO_T}yes" >&6 | |
4326 | else | |
4327 | echo "$as_me:$LINENO: result: no" >&5 | |
4328 | echo "${ECHO_T}no" >&6 | |
4329 | fi | |
4330 | ||
4331 | ||
4332 | ||
4333 | enablestring= | |
4334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4335 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4336 | no_cache=0 | |
4337 | # Check whether --enable-protocols or --disable-protocols was given. | |
4338 | if test "${enable_protocols+set}" = set; then | |
4339 | enableval="$enable_protocols" | |
4340 | ||
4341 | if test "$enableval" = yes; then | |
4342 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4343 | else | |
4344 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4345 | fi | |
4346 | ||
4347 | else | |
4348 | ||
4349 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4350 | if test "x$LINE" != x ; then | |
4351 | eval "DEFAULT_$LINE" | |
4352 | else | |
4353 | no_cache=1 | |
4354 | fi | |
4355 | ||
4356 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4357 | ||
4358 | fi; | |
4359 | ||
4360 | eval "$ac_cv_use_protocols" | |
4361 | if test "$no_cache" != 1; then | |
4362 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4363 | fi | |
4364 | ||
4365 | if test "$wxUSE_PROTOCOL" = yes; then | |
4366 | echo "$as_me:$LINENO: result: yes" >&5 | |
4367 | echo "${ECHO_T}yes" >&6 | |
4368 | else | |
4369 | echo "$as_me:$LINENO: result: no" >&5 | |
4370 | echo "${ECHO_T}no" >&6 | |
4371 | fi | |
4372 | ||
4373 | ||
4374 | enablestring= | |
4375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4376 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4377 | no_cache=0 | |
4378 | # Check whether --enable-ftp or --disable-ftp was given. | |
4379 | if test "${enable_ftp+set}" = set; then | |
4380 | enableval="$enable_ftp" | |
4381 | ||
4382 | if test "$enableval" = yes; then | |
4383 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4384 | else | |
4385 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4386 | fi | |
4387 | ||
4388 | else | |
4389 | ||
4390 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4391 | if test "x$LINE" != x ; then | |
4392 | eval "DEFAULT_$LINE" | |
4393 | else | |
4394 | no_cache=1 | |
4395 | fi | |
4396 | ||
4397 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4398 | ||
4399 | fi; | |
4400 | ||
4401 | eval "$ac_cv_use_ftp" | |
4402 | if test "$no_cache" != 1; then | |
4403 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4404 | fi | |
4405 | ||
4406 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4407 | echo "$as_me:$LINENO: result: yes" >&5 | |
4408 | echo "${ECHO_T}yes" >&6 | |
4409 | else | |
4410 | echo "$as_me:$LINENO: result: no" >&5 | |
4411 | echo "${ECHO_T}no" >&6 | |
4412 | fi | |
4413 | ||
4414 | ||
4415 | enablestring= | |
4416 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4417 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4418 | no_cache=0 | |
4419 | # Check whether --enable-http or --disable-http was given. | |
4420 | if test "${enable_http+set}" = set; then | |
4421 | enableval="$enable_http" | |
4422 | ||
4423 | if test "$enableval" = yes; then | |
4424 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4425 | else | |
4426 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4427 | fi | |
4428 | ||
4429 | else | |
4430 | ||
4431 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4432 | if test "x$LINE" != x ; then | |
4433 | eval "DEFAULT_$LINE" | |
4434 | else | |
4435 | no_cache=1 | |
4436 | fi | |
4437 | ||
4438 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4439 | ||
4440 | fi; | |
4441 | ||
4442 | eval "$ac_cv_use_http" | |
4443 | if test "$no_cache" != 1; then | |
4444 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4445 | fi | |
4446 | ||
4447 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4448 | echo "$as_me:$LINENO: result: yes" >&5 | |
4449 | echo "${ECHO_T}yes" >&6 | |
4450 | else | |
4451 | echo "$as_me:$LINENO: result: no" >&5 | |
4452 | echo "${ECHO_T}no" >&6 | |
4453 | fi | |
4454 | ||
4455 | ||
4456 | enablestring= | |
4457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4458 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4459 | no_cache=0 | |
4460 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4461 | if test "${enable_fileproto+set}" = set; then | |
4462 | enableval="$enable_fileproto" | |
4463 | ||
4464 | if test "$enableval" = yes; then | |
4465 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4466 | else | |
4467 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4468 | fi | |
4469 | ||
4470 | else | |
4471 | ||
4472 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4473 | if test "x$LINE" != x ; then | |
4474 | eval "DEFAULT_$LINE" | |
4475 | else | |
4476 | no_cache=1 | |
4477 | fi | |
4478 | ||
4479 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4480 | ||
4481 | fi; | |
4482 | ||
4483 | eval "$ac_cv_use_fileproto" | |
4484 | if test "$no_cache" != 1; then | |
4485 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4486 | fi | |
4487 | ||
4488 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4489 | echo "$as_me:$LINENO: result: yes" >&5 | |
4490 | echo "${ECHO_T}yes" >&6 | |
4491 | else | |
4492 | echo "$as_me:$LINENO: result: no" >&5 | |
4493 | echo "${ECHO_T}no" >&6 | |
4494 | fi | |
4495 | ||
4496 | ||
4497 | enablestring= | |
4498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4499 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4500 | no_cache=0 | |
4501 | # Check whether --enable-sockets or --disable-sockets was given. | |
4502 | if test "${enable_sockets+set}" = set; then | |
4503 | enableval="$enable_sockets" | |
4504 | ||
4505 | if test "$enableval" = yes; then | |
4506 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4507 | else | |
4508 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4509 | fi | |
4510 | ||
4511 | else | |
4512 | ||
4513 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4514 | if test "x$LINE" != x ; then | |
4515 | eval "DEFAULT_$LINE" | |
4516 | else | |
4517 | no_cache=1 | |
4518 | fi | |
4519 | ||
4520 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4521 | ||
4522 | fi; | |
4523 | ||
4524 | eval "$ac_cv_use_sockets" | |
4525 | if test "$no_cache" != 1; then | |
4526 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4527 | fi | |
4528 | ||
4529 | if test "$wxUSE_SOCKETS" = yes; then | |
4530 | echo "$as_me:$LINENO: result: yes" >&5 | |
4531 | echo "${ECHO_T}yes" >&6 | |
4532 | else | |
4533 | echo "$as_me:$LINENO: result: no" >&5 | |
4534 | echo "${ECHO_T}no" >&6 | |
4535 | fi | |
4536 | ||
4537 | ||
4538 | enablestring= | |
4539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4540 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4541 | no_cache=0 | |
4542 | # Check whether --enable-ole or --disable-ole was given. | |
4543 | if test "${enable_ole+set}" = set; then | |
4544 | enableval="$enable_ole" | |
4545 | ||
4546 | if test "$enableval" = yes; then | |
4547 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4548 | else | |
4549 | ac_cv_use_ole='wxUSE_OLE=no' | |
4550 | fi | |
4551 | ||
4552 | else | |
4553 | ||
4554 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4555 | if test "x$LINE" != x ; then | |
4556 | eval "DEFAULT_$LINE" | |
4557 | else | |
4558 | no_cache=1 | |
4559 | fi | |
4560 | ||
4561 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4562 | ||
4563 | fi; | |
4564 | ||
4565 | eval "$ac_cv_use_ole" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_OLE" = yes; then | |
4571 | echo "$as_me:$LINENO: result: yes" >&5 | |
4572 | echo "${ECHO_T}yes" >&6 | |
4573 | else | |
4574 | echo "$as_me:$LINENO: result: no" >&5 | |
4575 | echo "${ECHO_T}no" >&6 | |
4576 | fi | |
4577 | ||
4578 | ||
4579 | enablestring= | |
4580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4581 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4582 | no_cache=0 | |
4583 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4584 | if test "${enable_dataobj+set}" = set; then | |
4585 | enableval="$enable_dataobj" | |
4586 | ||
4587 | if test "$enableval" = yes; then | |
4588 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4589 | else | |
4590 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4591 | fi | |
4592 | ||
4593 | else | |
4594 | ||
4595 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4596 | if test "x$LINE" != x ; then | |
4597 | eval "DEFAULT_$LINE" | |
4598 | else | |
4599 | no_cache=1 | |
4600 | fi | |
4601 | ||
4602 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4603 | ||
4604 | fi; | |
4605 | ||
4606 | eval "$ac_cv_use_dataobj" | |
4607 | if test "$no_cache" != 1; then | |
4608 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4609 | fi | |
4610 | ||
4611 | if test "$wxUSE_DATAOBJ" = yes; then | |
4612 | echo "$as_me:$LINENO: result: yes" >&5 | |
4613 | echo "${ECHO_T}yes" >&6 | |
4614 | else | |
4615 | echo "$as_me:$LINENO: result: no" >&5 | |
4616 | echo "${ECHO_T}no" >&6 | |
4617 | fi | |
4618 | ||
4619 | ||
4620 | ||
4621 | enablestring= | |
4622 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4623 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4624 | no_cache=0 | |
4625 | # Check whether --enable-ipc or --disable-ipc was given. | |
4626 | if test "${enable_ipc+set}" = set; then | |
4627 | enableval="$enable_ipc" | |
4628 | ||
4629 | if test "$enableval" = yes; then | |
4630 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4631 | else | |
4632 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4633 | fi | |
4634 | ||
4635 | else | |
4636 | ||
4637 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4638 | if test "x$LINE" != x ; then | |
4639 | eval "DEFAULT_$LINE" | |
4640 | else | |
4641 | no_cache=1 | |
4642 | fi | |
4643 | ||
4644 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4645 | ||
4646 | fi; | |
4647 | ||
4648 | eval "$ac_cv_use_ipc" | |
4649 | if test "$no_cache" != 1; then | |
4650 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4651 | fi | |
4652 | ||
4653 | if test "$wxUSE_IPC" = yes; then | |
4654 | echo "$as_me:$LINENO: result: yes" >&5 | |
4655 | echo "${ECHO_T}yes" >&6 | |
4656 | else | |
4657 | echo "$as_me:$LINENO: result: no" >&5 | |
4658 | echo "${ECHO_T}no" >&6 | |
4659 | fi | |
4660 | ||
4661 | ||
4662 | ||
4663 | enablestring= | |
4664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4665 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4666 | no_cache=0 | |
4667 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4668 | if test "${enable_apple_ieee+set}" = set; then | |
4669 | enableval="$enable_apple_ieee" | |
4670 | ||
4671 | if test "$enableval" = yes; then | |
4672 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4673 | else | |
4674 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4675 | fi | |
4676 | ||
4677 | else | |
4678 | ||
4679 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4680 | if test "x$LINE" != x ; then | |
4681 | eval "DEFAULT_$LINE" | |
4682 | else | |
4683 | no_cache=1 | |
4684 | fi | |
4685 | ||
4686 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4687 | ||
4688 | fi; | |
4689 | ||
4690 | eval "$ac_cv_use_apple_ieee" | |
4691 | if test "$no_cache" != 1; then | |
4692 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4693 | fi | |
4694 | ||
4695 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4696 | echo "$as_me:$LINENO: result: yes" >&5 | |
4697 | echo "${ECHO_T}yes" >&6 | |
4698 | else | |
4699 | echo "$as_me:$LINENO: result: no" >&5 | |
4700 | echo "${ECHO_T}no" >&6 | |
4701 | fi | |
4702 | ||
4703 | ||
81f90336 MW |
4704 | enablestring= |
4705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4706 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4707 | no_cache=0 | |
4708 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4709 | if test "${enable_arcstream+set}" = set; then | |
4710 | enableval="$enable_arcstream" | |
4711 | ||
4712 | if test "$enableval" = yes; then | |
9e8e867f | 4713 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4714 | else |
9e8e867f | 4715 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4716 | fi |
4717 | ||
4718 | else | |
4719 | ||
9e8e867f | 4720 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4721 | if test "x$LINE" != x ; then |
4722 | eval "DEFAULT_$LINE" | |
4723 | else | |
4724 | no_cache=1 | |
4725 | fi | |
4726 | ||
9e8e867f | 4727 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4728 | |
4729 | fi; | |
4730 | ||
4731 | eval "$ac_cv_use_arcstream" | |
4732 | if test "$no_cache" != 1; then | |
4733 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4734 | fi | |
4735 | ||
9e8e867f | 4736 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4737 | echo "$as_me:$LINENO: result: yes" >&5 |
4738 | echo "${ECHO_T}yes" >&6 | |
4739 | else | |
4740 | echo "$as_me:$LINENO: result: no" >&5 | |
4741 | echo "${ECHO_T}no" >&6 | |
4742 | fi | |
4743 | ||
4744 | ||
a848cd7e | 4745 | enablestring= |
36b6448c VZ |
4746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4747 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4748 | no_cache=0 |
36b6448c VZ |
4749 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4750 | if test "${enable_backtrace+set}" = set; then | |
4751 | enableval="$enable_backtrace" | |
a848cd7e SC |
4752 | |
4753 | if test "$enableval" = yes; then | |
36b6448c | 4754 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4755 | else |
36b6448c | 4756 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4757 | fi |
4758 | ||
4759 | else | |
4760 | ||
36b6448c | 4761 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4762 | if test "x$LINE" != x ; then |
4763 | eval "DEFAULT_$LINE" | |
4764 | else | |
4765 | no_cache=1 | |
4766 | fi | |
4767 | ||
36b6448c | 4768 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4769 | |
4770 | fi; | |
4771 | ||
36b6448c | 4772 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4773 | if test "$no_cache" != 1; then |
36b6448c | 4774 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4775 | fi |
4776 | ||
36b6448c | 4777 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4778 | echo "$as_me:$LINENO: result: yes" >&5 |
4779 | echo "${ECHO_T}yes" >&6 | |
4780 | else | |
4781 | echo "$as_me:$LINENO: result: no" >&5 | |
4782 | echo "${ECHO_T}no" >&6 | |
4783 | fi | |
4784 | ||
4785 | ||
eaff0f0d | 4786 | enablestring= |
36b6448c VZ |
4787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4788 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4789 | no_cache=0 |
36b6448c VZ |
4790 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4791 | if test "${enable_catch_segvs+set}" = set; then | |
4792 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4793 | |
4794 | if test "$enableval" = yes; then | |
36b6448c | 4795 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4796 | else |
36b6448c | 4797 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4798 | fi |
4799 | ||
4800 | else | |
4801 | ||
36b6448c | 4802 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4803 | if test "x$LINE" != x ; then |
4804 | eval "DEFAULT_$LINE" | |
4805 | else | |
4806 | no_cache=1 | |
4807 | fi | |
4808 | ||
36b6448c | 4809 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4810 | |
4811 | fi; | |
4812 | ||
36b6448c | 4813 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4814 | if test "$no_cache" != 1; then |
36b6448c | 4815 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4816 | fi |
4817 | ||
36b6448c | 4818 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4819 | echo "$as_me:$LINENO: result: yes" >&5 |
4820 | echo "${ECHO_T}yes" >&6 | |
4821 | else | |
4822 | echo "$as_me:$LINENO: result: no" >&5 | |
4823 | echo "${ECHO_T}no" >&6 | |
4824 | fi | |
4825 | ||
4826 | ||
a848cd7e SC |
4827 | enablestring= |
4828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4829 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4830 | no_cache=0 | |
4831 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4832 | if test "${enable_cmdline+set}" = set; then | |
4833 | enableval="$enable_cmdline" | |
4834 | ||
4835 | if test "$enableval" = yes; then | |
4836 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4837 | else | |
4838 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4839 | fi | |
4840 | ||
4841 | else | |
4842 | ||
4843 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4844 | if test "x$LINE" != x ; then | |
4845 | eval "DEFAULT_$LINE" | |
4846 | else | |
4847 | no_cache=1 | |
4848 | fi | |
4849 | ||
4850 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4851 | ||
4852 | fi; | |
4853 | ||
4854 | eval "$ac_cv_use_cmdline" | |
4855 | if test "$no_cache" != 1; then | |
4856 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4857 | fi | |
4858 | ||
4859 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4860 | echo "$as_me:$LINENO: result: yes" >&5 | |
4861 | echo "${ECHO_T}yes" >&6 | |
4862 | else | |
4863 | echo "$as_me:$LINENO: result: no" >&5 | |
4864 | echo "${ECHO_T}no" >&6 | |
4865 | fi | |
4866 | ||
4867 | ||
4868 | enablestring= | |
4869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4870 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4871 | no_cache=0 | |
4872 | # Check whether --enable-datetime or --disable-datetime was given. | |
4873 | if test "${enable_datetime+set}" = set; then | |
4874 | enableval="$enable_datetime" | |
4875 | ||
4876 | if test "$enableval" = yes; then | |
4877 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4878 | else | |
4879 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4880 | fi | |
4881 | ||
4882 | else | |
4883 | ||
4884 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4885 | if test "x$LINE" != x ; then | |
4886 | eval "DEFAULT_$LINE" | |
4887 | else | |
4888 | no_cache=1 | |
4889 | fi | |
4890 | ||
4891 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4892 | ||
4893 | fi; | |
4894 | ||
4895 | eval "$ac_cv_use_datetime" | |
4896 | if test "$no_cache" != 1; then | |
4897 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4898 | fi | |
4899 | ||
4900 | if test "$wxUSE_DATETIME" = yes; then | |
4901 | echo "$as_me:$LINENO: result: yes" >&5 | |
4902 | echo "${ECHO_T}yes" >&6 | |
4903 | else | |
4904 | echo "$as_me:$LINENO: result: no" >&5 | |
4905 | echo "${ECHO_T}no" >&6 | |
4906 | fi | |
4907 | ||
4908 | ||
36b6448c VZ |
4909 | enablestring= |
4910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4911 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4912 | no_cache=0 | |
4913 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4914 | if test "${enable_debugreport+set}" = set; then | |
4915 | enableval="$enable_debugreport" | |
4916 | ||
4917 | if test "$enableval" = yes; then | |
4918 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4919 | else | |
4920 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4921 | fi | |
4922 | ||
4923 | else | |
4924 | ||
4925 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4926 | if test "x$LINE" != x ; then | |
4927 | eval "DEFAULT_$LINE" | |
4928 | else | |
4929 | no_cache=1 | |
4930 | fi | |
4931 | ||
4932 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4933 | ||
4934 | fi; | |
4935 | ||
4936 | eval "$ac_cv_use_debugreport" | |
4937 | if test "$no_cache" != 1; then | |
4938 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4939 | fi | |
4940 | ||
4941 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
4942 | echo "$as_me:$LINENO: result: yes" >&5 | |
4943 | echo "${ECHO_T}yes" >&6 | |
4944 | else | |
4945 | echo "$as_me:$LINENO: result: no" >&5 | |
4946 | echo "${ECHO_T}no" >&6 | |
4947 | fi | |
4948 | ||
4949 | ||
a848cd7e SC |
4950 | enablestring= |
4951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4952 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4953 | no_cache=0 | |
4954 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4955 | if test "${enable_dialupman+set}" = set; then | |
4956 | enableval="$enable_dialupman" | |
4957 | ||
4958 | if test "$enableval" = yes; then | |
4959 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4960 | else | |
4961 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4962 | fi | |
4963 | ||
4964 | else | |
4965 | ||
4966 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4967 | if test "x$LINE" != x ; then | |
4968 | eval "DEFAULT_$LINE" | |
4969 | else | |
4970 | no_cache=1 | |
4971 | fi | |
4972 | ||
4973 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4974 | ||
4975 | fi; | |
4976 | ||
4977 | eval "$ac_cv_use_dialupman" | |
4978 | if test "$no_cache" != 1; then | |
4979 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4980 | fi | |
4981 | ||
4982 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4983 | echo "$as_me:$LINENO: result: yes" >&5 | |
4984 | echo "${ECHO_T}yes" >&6 | |
4985 | else | |
4986 | echo "$as_me:$LINENO: result: no" >&5 | |
4987 | echo "${ECHO_T}no" >&6 | |
4988 | fi | |
4989 | ||
4990 | ||
4991 | enablestring= | |
4992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4993 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4994 | no_cache=0 | |
4995 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4996 | if test "${enable_dynlib+set}" = set; then | |
4997 | enableval="$enable_dynlib" | |
4998 | ||
4999 | if test "$enableval" = yes; then | |
5000 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5001 | else | |
5002 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5003 | fi | |
5004 | ||
5005 | else | |
5006 | ||
5007 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5008 | if test "x$LINE" != x ; then | |
5009 | eval "DEFAULT_$LINE" | |
5010 | else | |
5011 | no_cache=1 | |
5012 | fi | |
5013 | ||
5014 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5015 | ||
5016 | fi; | |
5017 | ||
5018 | eval "$ac_cv_use_dynlib" | |
5019 | if test "$no_cache" != 1; then | |
5020 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5021 | fi | |
5022 | ||
5023 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5024 | echo "$as_me:$LINENO: result: yes" >&5 | |
5025 | echo "${ECHO_T}yes" >&6 | |
5026 | else | |
5027 | echo "$as_me:$LINENO: result: no" >&5 | |
5028 | echo "${ECHO_T}no" >&6 | |
5029 | fi | |
5030 | ||
5031 | ||
5032 | enablestring= | |
5033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5034 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5035 | no_cache=0 | |
5036 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5037 | if test "${enable_dynamicloader+set}" = set; then | |
5038 | enableval="$enable_dynamicloader" | |
5039 | ||
5040 | if test "$enableval" = yes; then | |
5041 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5042 | else | |
5043 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5044 | fi | |
5045 | ||
5046 | else | |
5047 | ||
5048 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5049 | if test "x$LINE" != x ; then | |
5050 | eval "DEFAULT_$LINE" | |
5051 | else | |
5052 | no_cache=1 | |
5053 | fi | |
5054 | ||
5055 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5056 | ||
5057 | fi; | |
5058 | ||
5059 | eval "$ac_cv_use_dynamicloader" | |
5060 | if test "$no_cache" != 1; then | |
5061 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5062 | fi | |
5063 | ||
5064 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5065 | echo "$as_me:$LINENO: result: yes" >&5 | |
5066 | echo "${ECHO_T}yes" >&6 | |
5067 | else | |
5068 | echo "$as_me:$LINENO: result: no" >&5 | |
5069 | echo "${ECHO_T}no" >&6 | |
5070 | fi | |
5071 | ||
5072 | ||
5073 | enablestring= | |
5074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5075 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5076 | no_cache=0 | |
5077 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5078 | if test "${enable_exceptions+set}" = set; then | |
5079 | enableval="$enable_exceptions" | |
5080 | ||
5081 | if test "$enableval" = yes; then | |
5082 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5083 | else | |
5084 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5085 | fi | |
5086 | ||
5087 | else | |
5088 | ||
5089 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5090 | if test "x$LINE" != x ; then | |
5091 | eval "DEFAULT_$LINE" | |
5092 | else | |
5093 | no_cache=1 | |
5094 | fi | |
5095 | ||
5096 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5097 | ||
5098 | fi; | |
5099 | ||
5100 | eval "$ac_cv_use_exceptions" | |
5101 | if test "$no_cache" != 1; then | |
5102 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5103 | fi | |
5104 | ||
5105 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5106 | echo "$as_me:$LINENO: result: yes" >&5 | |
5107 | echo "${ECHO_T}yes" >&6 | |
5108 | else | |
5109 | echo "$as_me:$LINENO: result: no" >&5 | |
5110 | echo "${ECHO_T}no" >&6 | |
5111 | fi | |
5112 | ||
5113 | ||
5114 | enablestring= | |
5115 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5116 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5117 | no_cache=0 | |
5118 | # Check whether --enable-ffile or --disable-ffile was given. | |
5119 | if test "${enable_ffile+set}" = set; then | |
5120 | enableval="$enable_ffile" | |
5121 | ||
5122 | if test "$enableval" = yes; then | |
5123 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5124 | else | |
5125 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5126 | fi | |
5127 | ||
5128 | else | |
5129 | ||
5130 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5131 | if test "x$LINE" != x ; then | |
5132 | eval "DEFAULT_$LINE" | |
5133 | else | |
5134 | no_cache=1 | |
5135 | fi | |
5136 | ||
5137 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5138 | ||
5139 | fi; | |
5140 | ||
5141 | eval "$ac_cv_use_ffile" | |
5142 | if test "$no_cache" != 1; then | |
5143 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5144 | fi | |
5145 | ||
5146 | if test "$wxUSE_FFILE" = yes; then | |
5147 | echo "$as_me:$LINENO: result: yes" >&5 | |
5148 | echo "${ECHO_T}yes" >&6 | |
5149 | else | |
5150 | echo "$as_me:$LINENO: result: no" >&5 | |
5151 | echo "${ECHO_T}no" >&6 | |
5152 | fi | |
5153 | ||
5154 | ||
5155 | enablestring= | |
5156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5157 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5158 | no_cache=0 | |
5159 | # Check whether --enable-file or --disable-file was given. | |
5160 | if test "${enable_file+set}" = set; then | |
5161 | enableval="$enable_file" | |
5162 | ||
5163 | if test "$enableval" = yes; then | |
5164 | ac_cv_use_file='wxUSE_FILE=yes' | |
5165 | else | |
5166 | ac_cv_use_file='wxUSE_FILE=no' | |
5167 | fi | |
5168 | ||
5169 | else | |
5170 | ||
5171 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5172 | if test "x$LINE" != x ; then | |
5173 | eval "DEFAULT_$LINE" | |
5174 | else | |
5175 | no_cache=1 | |
5176 | fi | |
5177 | ||
5178 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5179 | ||
5180 | fi; | |
5181 | ||
5182 | eval "$ac_cv_use_file" | |
5183 | if test "$no_cache" != 1; then | |
5184 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5185 | fi | |
5186 | ||
5187 | if test "$wxUSE_FILE" = yes; then | |
5188 | echo "$as_me:$LINENO: result: yes" >&5 | |
5189 | echo "${ECHO_T}yes" >&6 | |
5190 | else | |
5191 | echo "$as_me:$LINENO: result: no" >&5 | |
5192 | echo "${ECHO_T}no" >&6 | |
5193 | fi | |
5194 | ||
5195 | ||
5196 | enablestring= | |
5197 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5198 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5199 | no_cache=0 | |
5200 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5201 | if test "${enable_filesystem+set}" = set; then | |
5202 | enableval="$enable_filesystem" | |
5203 | ||
5204 | if test "$enableval" = yes; then | |
5205 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5206 | else | |
5207 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5208 | fi | |
5209 | ||
5210 | else | |
5211 | ||
5212 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5213 | if test "x$LINE" != x ; then | |
5214 | eval "DEFAULT_$LINE" | |
5215 | else | |
5216 | no_cache=1 | |
5217 | fi | |
5218 | ||
5219 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5220 | ||
5221 | fi; | |
5222 | ||
5223 | eval "$ac_cv_use_filesystem" | |
5224 | if test "$no_cache" != 1; then | |
5225 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5226 | fi | |
5227 | ||
5228 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5229 | echo "$as_me:$LINENO: result: yes" >&5 | |
5230 | echo "${ECHO_T}yes" >&6 | |
5231 | else | |
5232 | echo "$as_me:$LINENO: result: no" >&5 | |
5233 | echo "${ECHO_T}no" >&6 | |
5234 | fi | |
5235 | ||
5236 | ||
5237 | enablestring= | |
5238 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5239 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5240 | no_cache=0 | |
5241 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5242 | if test "${enable_fontmap+set}" = set; then | |
5243 | enableval="$enable_fontmap" | |
5244 | ||
5245 | if test "$enableval" = yes; then | |
5246 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5247 | else | |
5248 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5249 | fi | |
5250 | ||
5251 | else | |
5252 | ||
5253 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5254 | if test "x$LINE" != x ; then | |
5255 | eval "DEFAULT_$LINE" | |
5256 | else | |
5257 | no_cache=1 | |
5258 | fi | |
5259 | ||
5260 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5261 | ||
5262 | fi; | |
5263 | ||
5264 | eval "$ac_cv_use_fontmap" | |
5265 | if test "$no_cache" != 1; then | |
5266 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5267 | fi | |
5268 | ||
5269 | if test "$wxUSE_FONTMAP" = yes; then | |
5270 | echo "$as_me:$LINENO: result: yes" >&5 | |
5271 | echo "${ECHO_T}yes" >&6 | |
5272 | else | |
5273 | echo "$as_me:$LINENO: result: no" >&5 | |
5274 | echo "${ECHO_T}no" >&6 | |
5275 | fi | |
5276 | ||
5277 | ||
5278 | enablestring= | |
5279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5280 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5281 | no_cache=0 | |
5282 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5283 | if test "${enable_fs_inet+set}" = set; then | |
5284 | enableval="$enable_fs_inet" | |
5285 | ||
5286 | if test "$enableval" = yes; then | |
5287 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5288 | else | |
5289 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5290 | fi | |
5291 | ||
5292 | else | |
5293 | ||
5294 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5295 | if test "x$LINE" != x ; then | |
5296 | eval "DEFAULT_$LINE" | |
5297 | else | |
5298 | no_cache=1 | |
5299 | fi | |
5300 | ||
5301 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5302 | ||
5303 | fi; | |
5304 | ||
5305 | eval "$ac_cv_use_fs_inet" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_FS_INET" = yes; then | |
5311 | echo "$as_me:$LINENO: result: yes" >&5 | |
5312 | echo "${ECHO_T}yes" >&6 | |
5313 | else | |
5314 | echo "$as_me:$LINENO: result: no" >&5 | |
5315 | echo "${ECHO_T}no" >&6 | |
5316 | fi | |
5317 | ||
5318 | ||
5319 | enablestring= | |
5320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5321 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5322 | no_cache=0 | |
5323 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5324 | if test "${enable_fs_zip+set}" = set; then | |
5325 | enableval="$enable_fs_zip" | |
5326 | ||
5327 | if test "$enableval" = yes; then | |
5328 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5329 | else | |
5330 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5331 | fi | |
5332 | ||
5333 | else | |
5334 | ||
5335 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5336 | if test "x$LINE" != x ; then | |
5337 | eval "DEFAULT_$LINE" | |
5338 | else | |
5339 | no_cache=1 | |
5340 | fi | |
5341 | ||
5342 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5343 | ||
5344 | fi; | |
5345 | ||
5346 | eval "$ac_cv_use_fs_zip" | |
5347 | if test "$no_cache" != 1; then | |
5348 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5349 | fi | |
5350 | ||
5351 | if test "$wxUSE_FS_ZIP" = yes; then | |
5352 | echo "$as_me:$LINENO: result: yes" >&5 | |
5353 | echo "${ECHO_T}yes" >&6 | |
5354 | else | |
5355 | echo "$as_me:$LINENO: result: no" >&5 | |
5356 | echo "${ECHO_T}no" >&6 | |
5357 | fi | |
5358 | ||
5359 | ||
5360 | enablestring= | |
5361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5362 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5363 | no_cache=0 | |
5364 | # Check whether --enable-geometry or --disable-geometry was given. | |
5365 | if test "${enable_geometry+set}" = set; then | |
5366 | enableval="$enable_geometry" | |
5367 | ||
5368 | if test "$enableval" = yes; then | |
5369 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5370 | else | |
5371 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5372 | fi | |
5373 | ||
5374 | else | |
5375 | ||
5376 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5377 | if test "x$LINE" != x ; then | |
5378 | eval "DEFAULT_$LINE" | |
5379 | else | |
5380 | no_cache=1 | |
5381 | fi | |
5382 | ||
5383 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5384 | ||
5385 | fi; | |
5386 | ||
5387 | eval "$ac_cv_use_geometry" | |
5388 | if test "$no_cache" != 1; then | |
5389 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5390 | fi | |
5391 | ||
5392 | if test "$wxUSE_GEOMETRY" = yes; then | |
5393 | echo "$as_me:$LINENO: result: yes" >&5 | |
5394 | echo "${ECHO_T}yes" >&6 | |
5395 | else | |
5396 | echo "$as_me:$LINENO: result: no" >&5 | |
5397 | echo "${ECHO_T}no" >&6 | |
5398 | fi | |
5399 | ||
5400 | ||
5401 | enablestring= | |
5402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5403 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5404 | no_cache=0 | |
5405 | # Check whether --enable-log or --disable-log was given. | |
5406 | if test "${enable_log+set}" = set; then | |
5407 | enableval="$enable_log" | |
5408 | ||
5409 | if test "$enableval" = yes; then | |
5410 | ac_cv_use_log='wxUSE_LOG=yes' | |
5411 | else | |
5412 | ac_cv_use_log='wxUSE_LOG=no' | |
5413 | fi | |
5414 | ||
5415 | else | |
5416 | ||
5417 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5418 | if test "x$LINE" != x ; then | |
5419 | eval "DEFAULT_$LINE" | |
5420 | else | |
5421 | no_cache=1 | |
5422 | fi | |
5423 | ||
5424 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5425 | ||
5426 | fi; | |
5427 | ||
5428 | eval "$ac_cv_use_log" | |
5429 | if test "$no_cache" != 1; then | |
5430 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5431 | fi | |
5432 | ||
5433 | if test "$wxUSE_LOG" = yes; then | |
5434 | echo "$as_me:$LINENO: result: yes" >&5 | |
5435 | echo "${ECHO_T}yes" >&6 | |
5436 | else | |
5437 | echo "$as_me:$LINENO: result: no" >&5 | |
5438 | echo "${ECHO_T}no" >&6 | |
5439 | fi | |
5440 | ||
5441 | ||
5442 | enablestring= | |
5443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5444 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5445 | no_cache=0 | |
5446 | # Check whether --enable-longlong or --disable-longlong was given. | |
5447 | if test "${enable_longlong+set}" = set; then | |
5448 | enableval="$enable_longlong" | |
5449 | ||
5450 | if test "$enableval" = yes; then | |
5451 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5452 | else | |
5453 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5454 | fi | |
5455 | ||
5456 | else | |
5457 | ||
5458 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5459 | if test "x$LINE" != x ; then | |
5460 | eval "DEFAULT_$LINE" | |
5461 | else | |
5462 | no_cache=1 | |
5463 | fi | |
5464 | ||
5465 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5466 | ||
5467 | fi; | |
5468 | ||
5469 | eval "$ac_cv_use_longlong" | |
5470 | if test "$no_cache" != 1; then | |
5471 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5472 | fi | |
5473 | ||
5474 | if test "$wxUSE_LONGLONG" = yes; then | |
5475 | echo "$as_me:$LINENO: result: yes" >&5 | |
5476 | echo "${ECHO_T}yes" >&6 | |
5477 | else | |
5478 | echo "$as_me:$LINENO: result: no" >&5 | |
5479 | echo "${ECHO_T}no" >&6 | |
5480 | fi | |
5481 | ||
5482 | ||
5483 | enablestring= | |
5484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5485 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5486 | no_cache=0 | |
5487 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5488 | if test "${enable_mimetype+set}" = set; then | |
5489 | enableval="$enable_mimetype" | |
5490 | ||
5491 | if test "$enableval" = yes; then | |
5492 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5493 | else | |
5494 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5495 | fi | |
5496 | ||
5497 | else | |
5498 | ||
5499 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5500 | if test "x$LINE" != x ; then | |
5501 | eval "DEFAULT_$LINE" | |
5502 | else | |
5503 | no_cache=1 | |
5504 | fi | |
5505 | ||
5506 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5507 | ||
5508 | fi; | |
5509 | ||
5510 | eval "$ac_cv_use_mimetype" | |
5511 | if test "$no_cache" != 1; then | |
5512 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5513 | fi | |
5514 | ||
5515 | if test "$wxUSE_MIMETYPE" = yes; then | |
5516 | echo "$as_me:$LINENO: result: yes" >&5 | |
5517 | echo "${ECHO_T}yes" >&6 | |
5518 | else | |
5519 | echo "$as_me:$LINENO: result: no" >&5 | |
5520 | echo "${ECHO_T}no" >&6 | |
5521 | fi | |
5522 | ||
5523 | ||
5524 | enablestring= | |
5525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5526 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5527 | no_cache=0 | |
5528 | # Check whether --enable-mslu or --disable-mslu was given. | |
5529 | if test "${enable_mslu+set}" = set; then | |
5530 | enableval="$enable_mslu" | |
5531 | ||
5532 | if test "$enableval" = yes; then | |
5533 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5534 | else | |
5535 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5536 | fi | |
5537 | ||
5538 | else | |
5539 | ||
5540 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5541 | if test "x$LINE" != x ; then | |
5542 | eval "DEFAULT_$LINE" | |
5543 | else | |
5544 | no_cache=1 | |
5545 | fi | |
5546 | ||
5547 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5548 | ||
5549 | fi; | |
5550 | ||
5551 | eval "$ac_cv_use_mslu" | |
5552 | if test "$no_cache" != 1; then | |
5553 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5554 | fi | |
5555 | ||
5556 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5557 | echo "$as_me:$LINENO: result: yes" >&5 | |
5558 | echo "${ECHO_T}yes" >&6 | |
5559 | else | |
5560 | echo "$as_me:$LINENO: result: no" >&5 | |
5561 | echo "${ECHO_T}no" >&6 | |
5562 | fi | |
5563 | ||
5564 | ||
5565 | enablestring= | |
5566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5567 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5568 | no_cache=0 | |
5569 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5570 | if test "${enable_snglinst+set}" = set; then | |
5571 | enableval="$enable_snglinst" | |
5572 | ||
5573 | if test "$enableval" = yes; then | |
5574 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5575 | else | |
5576 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5577 | fi | |
5578 | ||
5579 | else | |
5580 | ||
5581 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5582 | if test "x$LINE" != x ; then | |
5583 | eval "DEFAULT_$LINE" | |
5584 | else | |
5585 | no_cache=1 | |
5586 | fi | |
5587 | ||
5588 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5589 | ||
5590 | fi; | |
5591 | ||
5592 | eval "$ac_cv_use_snglinst" | |
5593 | if test "$no_cache" != 1; then | |
5594 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5595 | fi | |
5596 | ||
5597 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5598 | echo "$as_me:$LINENO: result: yes" >&5 | |
5599 | echo "${ECHO_T}yes" >&6 | |
5600 | else | |
5601 | echo "$as_me:$LINENO: result: no" >&5 | |
5602 | echo "${ECHO_T}no" >&6 | |
5603 | fi | |
5604 | ||
5605 | ||
5606 | enablestring= | |
07158944 VZ |
5607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5608 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5609 | no_cache=0 |
07158944 VZ |
5610 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5611 | if test "${enable_std_iostreams+set}" = set; then | |
5612 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5613 | |
5614 | if test "$enableval" = yes; then | |
07158944 | 5615 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5616 | else |
07158944 | 5617 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5618 | fi |
5619 | ||
5620 | else | |
5621 | ||
07158944 | 5622 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5623 | if test "x$LINE" != x ; then |
5624 | eval "DEFAULT_$LINE" | |
5625 | else | |
5626 | no_cache=1 | |
5627 | fi | |
5628 | ||
07158944 | 5629 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5630 | |
5631 | fi; | |
5632 | ||
07158944 | 5633 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5634 | if test "$no_cache" != 1; then |
07158944 | 5635 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5636 | fi |
5637 | ||
07158944 | 5638 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5639 | echo "$as_me:$LINENO: result: yes" >&5 |
5640 | echo "${ECHO_T}yes" >&6 | |
5641 | else | |
5642 | echo "$as_me:$LINENO: result: no" >&5 | |
5643 | echo "${ECHO_T}no" >&6 | |
5644 | fi | |
5645 | ||
5646 | ||
59746b65 MW |
5647 | enablestring= |
5648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5649 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5650 | no_cache=0 | |
5651 | # Check whether --enable-std_string or --disable-std_string was given. | |
5652 | if test "${enable_std_string+set}" = set; then | |
5653 | enableval="$enable_std_string" | |
5654 | ||
5655 | if test "$enableval" = yes; then | |
5656 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5657 | else | |
5658 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5659 | fi | |
5660 | ||
5661 | else | |
5662 | ||
5663 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5664 | if test "x$LINE" != x ; then | |
5665 | eval "DEFAULT_$LINE" | |
5666 | else | |
5667 | no_cache=1 | |
5668 | fi | |
5669 | ||
5670 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5671 | ||
5672 | fi; | |
5673 | ||
5674 | eval "$ac_cv_use_std_string" | |
5675 | if test "$no_cache" != 1; then | |
5676 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5677 | fi | |
5678 | ||
5679 | if test "$wxUSE_STD_STRING" = yes; then | |
5680 | echo "$as_me:$LINENO: result: yes" >&5 | |
5681 | echo "${ECHO_T}yes" >&6 | |
5682 | else | |
5683 | echo "$as_me:$LINENO: result: no" >&5 | |
5684 | echo "${ECHO_T}no" >&6 | |
5685 | fi | |
5686 | ||
5687 | ||
a848cd7e | 5688 | enablestring= |
07158944 VZ |
5689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5690 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5691 | no_cache=0 |
07158944 VZ |
5692 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5693 | if test "${enable_stdpaths+set}" = set; then | |
5694 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5695 | |
5696 | if test "$enableval" = yes; then | |
07158944 | 5697 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5698 | else |
07158944 | 5699 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5700 | fi |
5701 | ||
5702 | else | |
5703 | ||
07158944 | 5704 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5705 | if test "x$LINE" != x ; then |
5706 | eval "DEFAULT_$LINE" | |
5707 | else | |
5708 | no_cache=1 | |
5709 | fi | |
5710 | ||
07158944 | 5711 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5712 | |
5713 | fi; | |
5714 | ||
07158944 | 5715 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5716 | if test "$no_cache" != 1; then |
07158944 | 5717 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5718 | fi |
5719 | ||
07158944 | 5720 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5721 | echo "$as_me:$LINENO: result: yes" >&5 |
5722 | echo "${ECHO_T}yes" >&6 | |
5723 | else | |
5724 | echo "$as_me:$LINENO: result: no" >&5 | |
5725 | echo "${ECHO_T}no" >&6 | |
5726 | fi | |
5727 | ||
5728 | ||
5729 | enablestring= | |
5730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5731 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5732 | no_cache=0 | |
5733 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5734 | if test "${enable_stopwatch+set}" = set; then | |
5735 | enableval="$enable_stopwatch" | |
5736 | ||
5737 | if test "$enableval" = yes; then | |
5738 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5739 | else | |
5740 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5741 | fi | |
5742 | ||
5743 | else | |
5744 | ||
5745 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5746 | if test "x$LINE" != x ; then | |
5747 | eval "DEFAULT_$LINE" | |
5748 | else | |
5749 | no_cache=1 | |
5750 | fi | |
5751 | ||
5752 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5753 | ||
5754 | fi; | |
5755 | ||
5756 | eval "$ac_cv_use_stopwatch" | |
5757 | if test "$no_cache" != 1; then | |
5758 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5759 | fi | |
5760 | ||
5761 | if test "$wxUSE_STOPWATCH" = yes; then | |
5762 | echo "$as_me:$LINENO: result: yes" >&5 | |
5763 | echo "${ECHO_T}yes" >&6 | |
5764 | else | |
5765 | echo "$as_me:$LINENO: result: no" >&5 | |
5766 | echo "${ECHO_T}no" >&6 | |
5767 | fi | |
5768 | ||
5769 | ||
07158944 VZ |
5770 | enablestring= |
5771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5772 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5773 | no_cache=0 | |
5774 | # Check whether --enable-streams or --disable-streams was given. | |
5775 | if test "${enable_streams+set}" = set; then | |
5776 | enableval="$enable_streams" | |
5777 | ||
5778 | if test "$enableval" = yes; then | |
5779 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5780 | else | |
5781 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5782 | fi | |
5783 | ||
5784 | else | |
5785 | ||
5786 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5787 | if test "x$LINE" != x ; then | |
5788 | eval "DEFAULT_$LINE" | |
5789 | else | |
5790 | no_cache=1 | |
5791 | fi | |
5792 | ||
5793 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5794 | ||
5795 | fi; | |
5796 | ||
5797 | eval "$ac_cv_use_streams" | |
5798 | if test "$no_cache" != 1; then | |
5799 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5800 | fi | |
5801 | ||
5802 | if test "$wxUSE_STREAMS" = yes; then | |
5803 | echo "$as_me:$LINENO: result: yes" >&5 | |
5804 | echo "${ECHO_T}yes" >&6 | |
5805 | else | |
5806 | echo "$as_me:$LINENO: result: no" >&5 | |
5807 | echo "${ECHO_T}no" >&6 | |
5808 | fi | |
5809 | ||
5810 | ||
a848cd7e SC |
5811 | enablestring= |
5812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5813 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5814 | no_cache=0 | |
5815 | # Check whether --enable-system_options or --disable-system_options was given. | |
5816 | if test "${enable_system_options+set}" = set; then | |
5817 | enableval="$enable_system_options" | |
5818 | ||
5819 | if test "$enableval" = yes; then | |
5820 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5821 | else | |
5822 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5823 | fi | |
5824 | ||
5825 | else | |
5826 | ||
5827 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5828 | if test "x$LINE" != x ; then | |
5829 | eval "DEFAULT_$LINE" | |
5830 | else | |
5831 | no_cache=1 | |
5832 | fi | |
5833 | ||
5834 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5835 | ||
5836 | fi; | |
5837 | ||
5838 | eval "$ac_cv_use_system_options" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5844 | echo "$as_me:$LINENO: result: yes" >&5 | |
5845 | echo "${ECHO_T}yes" >&6 | |
5846 | else | |
5847 | echo "$as_me:$LINENO: result: no" >&5 | |
5848 | echo "${ECHO_T}no" >&6 | |
5849 | fi | |
5850 | ||
5851 | ||
5852 | enablestring= | |
5853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5854 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5855 | no_cache=0 | |
5856 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5857 | if test "${enable_textbuf+set}" = set; then | |
5858 | enableval="$enable_textbuf" | |
5859 | ||
5860 | if test "$enableval" = yes; then | |
5861 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5862 | else | |
5863 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5864 | fi | |
5865 | ||
5866 | else | |
5867 | ||
5868 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5869 | if test "x$LINE" != x ; then | |
5870 | eval "DEFAULT_$LINE" | |
5871 | else | |
5872 | no_cache=1 | |
5873 | fi | |
5874 | ||
5875 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5876 | ||
5877 | fi; | |
5878 | ||
5879 | eval "$ac_cv_use_textbuf" | |
5880 | if test "$no_cache" != 1; then | |
5881 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5882 | fi | |
5883 | ||
5884 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5885 | echo "$as_me:$LINENO: result: yes" >&5 | |
5886 | echo "${ECHO_T}yes" >&6 | |
5887 | else | |
5888 | echo "$as_me:$LINENO: result: no" >&5 | |
5889 | echo "${ECHO_T}no" >&6 | |
5890 | fi | |
5891 | ||
5892 | ||
5893 | enablestring= | |
5894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5895 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5896 | no_cache=0 | |
5897 | # Check whether --enable-textfile or --disable-textfile was given. | |
5898 | if test "${enable_textfile+set}" = set; then | |
5899 | enableval="$enable_textfile" | |
5900 | ||
5901 | if test "$enableval" = yes; then | |
5902 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5903 | else | |
5904 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5905 | fi | |
5906 | ||
5907 | else | |
5908 | ||
5909 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5910 | if test "x$LINE" != x ; then | |
5911 | eval "DEFAULT_$LINE" | |
5912 | else | |
5913 | no_cache=1 | |
5914 | fi | |
5915 | ||
5916 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5917 | ||
5918 | fi; | |
5919 | ||
5920 | eval "$ac_cv_use_textfile" | |
5921 | if test "$no_cache" != 1; then | |
5922 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5923 | fi | |
5924 | ||
5925 | if test "$wxUSE_TEXTFILE" = yes; then | |
5926 | echo "$as_me:$LINENO: result: yes" >&5 | |
5927 | echo "${ECHO_T}yes" >&6 | |
5928 | else | |
5929 | echo "$as_me:$LINENO: result: no" >&5 | |
5930 | echo "${ECHO_T}no" >&6 | |
5931 | fi | |
5932 | ||
5933 | ||
5934 | enablestring= | |
5935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5936 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5937 | no_cache=0 | |
5938 | # Check whether --enable-timer or --disable-timer was given. | |
5939 | if test "${enable_timer+set}" = set; then | |
5940 | enableval="$enable_timer" | |
5941 | ||
5942 | if test "$enableval" = yes; then | |
5943 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5944 | else | |
5945 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5946 | fi | |
5947 | ||
5948 | else | |
5949 | ||
5950 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5951 | if test "x$LINE" != x ; then | |
5952 | eval "DEFAULT_$LINE" | |
5953 | else | |
5954 | no_cache=1 | |
5955 | fi | |
5956 | ||
5957 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5958 | ||
5959 | fi; | |
5960 | ||
5961 | eval "$ac_cv_use_timer" | |
5962 | if test "$no_cache" != 1; then | |
5963 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5964 | fi | |
5965 | ||
5966 | if test "$wxUSE_TIMER" = yes; then | |
5967 | echo "$as_me:$LINENO: result: yes" >&5 | |
5968 | echo "${ECHO_T}yes" >&6 | |
5969 | else | |
5970 | echo "$as_me:$LINENO: result: no" >&5 | |
5971 | echo "${ECHO_T}no" >&6 | |
5972 | fi | |
5973 | ||
5974 | ||
5975 | enablestring= | |
5976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5977 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5978 | no_cache=0 | |
5979 | # Check whether --enable-unicode or --disable-unicode was given. | |
5980 | if test "${enable_unicode+set}" = set; then | |
5981 | enableval="$enable_unicode" | |
5982 | ||
5983 | if test "$enableval" = yes; then | |
5984 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5985 | else | |
5986 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5987 | fi | |
5988 | ||
5989 | else | |
5990 | ||
5991 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5992 | if test "x$LINE" != x ; then | |
5993 | eval "DEFAULT_$LINE" | |
5994 | else | |
5995 | no_cache=1 | |
5996 | fi | |
5997 | ||
5998 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5999 | ||
6000 | fi; | |
6001 | ||
6002 | eval "$ac_cv_use_unicode" | |
6003 | if test "$no_cache" != 1; then | |
6004 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6005 | fi | |
6006 | ||
6007 | if test "$wxUSE_UNICODE" = yes; then | |
6008 | echo "$as_me:$LINENO: result: yes" >&5 | |
6009 | echo "${ECHO_T}yes" >&6 | |
6010 | else | |
6011 | echo "$as_me:$LINENO: result: no" >&5 | |
6012 | echo "${ECHO_T}no" >&6 | |
6013 | fi | |
6014 | ||
6015 | ||
6016 | enablestring= | |
6017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6018 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6019 | no_cache=0 | |
6020 | # Check whether --enable-sound or --disable-sound was given. | |
6021 | if test "${enable_sound+set}" = set; then | |
6022 | enableval="$enable_sound" | |
6023 | ||
6024 | if test "$enableval" = yes; then | |
6025 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6026 | else | |
6027 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6028 | fi | |
6029 | ||
6030 | else | |
6031 | ||
6032 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6033 | if test "x$LINE" != x ; then | |
6034 | eval "DEFAULT_$LINE" | |
6035 | else | |
6036 | no_cache=1 | |
6037 | fi | |
6038 | ||
6039 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6040 | ||
6041 | fi; | |
6042 | ||
6043 | eval "$ac_cv_use_sound" | |
6044 | if test "$no_cache" != 1; then | |
6045 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6046 | fi | |
6047 | ||
6048 | if test "$wxUSE_SOUND" = yes; then | |
6049 | echo "$as_me:$LINENO: result: yes" >&5 | |
6050 | echo "${ECHO_T}yes" >&6 | |
6051 | else | |
6052 | echo "$as_me:$LINENO: result: no" >&5 | |
6053 | echo "${ECHO_T}no" >&6 | |
6054 | fi | |
6055 | ||
6056 | ||
3b57de8b RL |
6057 | enablestring= |
6058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6059 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6060 | no_cache=0 | |
6061 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6062 | if test "${enable_mediactrl+set}" = set; then | |
6063 | enableval="$enable_mediactrl" | |
6064 | ||
6065 | if test "$enableval" = yes; then | |
6066 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6067 | else | |
6068 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6069 | fi | |
6070 | ||
6071 | else | |
6072 | ||
6073 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6074 | if test "x$LINE" != x ; then | |
6075 | eval "DEFAULT_$LINE" | |
6076 | else | |
6077 | no_cache=1 | |
6078 | fi | |
6079 | ||
6080 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6081 | ||
6082 | fi; | |
6083 | ||
6084 | eval "$ac_cv_use_mediactrl" | |
6085 | if test "$no_cache" != 1; then | |
6086 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6087 | fi | |
6088 | ||
6089 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6090 | echo "$as_me:$LINENO: result: yes" >&5 | |
6091 | echo "${ECHO_T}yes" >&6 | |
6092 | else | |
6093 | echo "$as_me:$LINENO: result: no" >&5 | |
6094 | echo "${ECHO_T}no" >&6 | |
6095 | fi | |
6096 | ||
6097 | ||
a848cd7e SC |
6098 | enablestring= |
6099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6100 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6101 | no_cache=0 | |
6102 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6103 | if test "${enable_wxprintfv+set}" = set; then | |
6104 | enableval="$enable_wxprintfv" | |
6105 | ||
6106 | if test "$enableval" = yes; then | |
6107 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6108 | else | |
6109 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6110 | fi | |
6111 | ||
6112 | else | |
6113 | ||
6114 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6115 | if test "x$LINE" != x ; then | |
6116 | eval "DEFAULT_$LINE" | |
6117 | else | |
6118 | no_cache=1 | |
6119 | fi | |
6120 | ||
6121 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6122 | ||
6123 | fi; | |
6124 | ||
6125 | eval "$ac_cv_use_wxprintfv" | |
6126 | if test "$no_cache" != 1; then | |
6127 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6128 | fi | |
6129 | ||
6130 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6131 | echo "$as_me:$LINENO: result: yes" >&5 | |
6132 | echo "${ECHO_T}yes" >&6 | |
6133 | else | |
6134 | echo "$as_me:$LINENO: result: no" >&5 | |
6135 | echo "${ECHO_T}no" >&6 | |
6136 | fi | |
6137 | ||
6138 | ||
6139 | enablestring= | |
6140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6141 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6142 | no_cache=0 | |
6143 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6144 | if test "${enable_zipstream+set}" = set; then | |
6145 | enableval="$enable_zipstream" | |
6146 | ||
6147 | if test "$enableval" = yes; then | |
6148 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6149 | else | |
6150 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6151 | fi | |
6152 | ||
6153 | else | |
6154 | ||
6155 | LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6163 | ||
6164 | fi; | |
6165 | ||
6166 | eval "$ac_cv_use_zipstream" | |
6167 | if test "$no_cache" != 1; then | |
6168 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6169 | fi | |
6170 | ||
6171 | if test "$wxUSE_ZIPSTREAM" = 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 | ||
a848cd7e SC |
6180 | |
6181 | enablestring= | |
6182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6183 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6184 | no_cache=0 | |
6185 | # Check whether --enable-url or --disable-url was given. | |
6186 | if test "${enable_url+set}" = set; then | |
6187 | enableval="$enable_url" | |
6188 | ||
6189 | if test "$enableval" = yes; then | |
6190 | ac_cv_use_url='wxUSE_URL=yes' | |
6191 | else | |
6192 | ac_cv_use_url='wxUSE_URL=no' | |
6193 | fi | |
6194 | ||
6195 | else | |
6196 | ||
6197 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6198 | if test "x$LINE" != x ; then | |
6199 | eval "DEFAULT_$LINE" | |
6200 | else | |
6201 | no_cache=1 | |
6202 | fi | |
6203 | ||
6204 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6205 | ||
6206 | fi; | |
6207 | ||
6208 | eval "$ac_cv_use_url" | |
6209 | if test "$no_cache" != 1; then | |
6210 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6211 | fi | |
6212 | ||
6213 | if test "$wxUSE_URL" = yes; then | |
6214 | echo "$as_me:$LINENO: result: yes" >&5 | |
6215 | echo "${ECHO_T}yes" >&6 | |
6216 | else | |
6217 | echo "$as_me:$LINENO: result: no" >&5 | |
6218 | echo "${ECHO_T}no" >&6 | |
6219 | fi | |
6220 | ||
6221 | ||
6222 | enablestring= | |
6223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6224 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6225 | no_cache=0 | |
6226 | # Check whether --enable-protocol or --disable-protocol was given. | |
6227 | if test "${enable_protocol+set}" = set; then | |
6228 | enableval="$enable_protocol" | |
6229 | ||
6230 | if test "$enableval" = yes; then | |
6231 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6232 | else | |
6233 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6234 | fi | |
6235 | ||
6236 | else | |
6237 | ||
6238 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6239 | if test "x$LINE" != x ; then | |
6240 | eval "DEFAULT_$LINE" | |
6241 | else | |
6242 | no_cache=1 | |
6243 | fi | |
6244 | ||
6245 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6246 | ||
6247 | fi; | |
6248 | ||
6249 | eval "$ac_cv_use_protocol" | |
6250 | if test "$no_cache" != 1; then | |
6251 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6252 | fi | |
6253 | ||
6254 | if test "$wxUSE_PROTOCOL" = yes; then | |
6255 | echo "$as_me:$LINENO: result: yes" >&5 | |
6256 | echo "${ECHO_T}yes" >&6 | |
6257 | else | |
6258 | echo "$as_me:$LINENO: result: no" >&5 | |
6259 | echo "${ECHO_T}no" >&6 | |
6260 | fi | |
6261 | ||
6262 | ||
6263 | enablestring= | |
6264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6265 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6266 | no_cache=0 | |
6267 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6268 | if test "${enable_protocol_http+set}" = set; then | |
6269 | enableval="$enable_protocol_http" | |
6270 | ||
6271 | if test "$enableval" = yes; then | |
6272 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6273 | else | |
6274 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6275 | fi | |
6276 | ||
6277 | else | |
6278 | ||
6279 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6280 | if test "x$LINE" != x ; then | |
6281 | eval "DEFAULT_$LINE" | |
6282 | else | |
6283 | no_cache=1 | |
6284 | fi | |
6285 | ||
6286 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6287 | ||
6288 | fi; | |
6289 | ||
6290 | eval "$ac_cv_use_protocol_http" | |
6291 | if test "$no_cache" != 1; then | |
6292 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6293 | fi | |
6294 | ||
6295 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6296 | echo "$as_me:$LINENO: result: yes" >&5 | |
6297 | echo "${ECHO_T}yes" >&6 | |
6298 | else | |
6299 | echo "$as_me:$LINENO: result: no" >&5 | |
6300 | echo "${ECHO_T}no" >&6 | |
6301 | fi | |
6302 | ||
6303 | ||
6304 | enablestring= | |
6305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6306 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6307 | no_cache=0 | |
6308 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6309 | if test "${enable_protocol_ftp+set}" = set; then | |
6310 | enableval="$enable_protocol_ftp" | |
6311 | ||
6312 | if test "$enableval" = yes; then | |
6313 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6314 | else | |
6315 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6316 | fi | |
6317 | ||
6318 | else | |
6319 | ||
6320 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6328 | ||
6329 | fi; | |
6330 | ||
6331 | eval "$ac_cv_use_protocol_ftp" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6337 | echo "$as_me:$LINENO: result: yes" >&5 | |
6338 | echo "${ECHO_T}yes" >&6 | |
6339 | else | |
6340 | echo "$as_me:$LINENO: result: no" >&5 | |
6341 | echo "${ECHO_T}no" >&6 | |
6342 | fi | |
6343 | ||
6344 | ||
6345 | enablestring= | |
6346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6347 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6348 | no_cache=0 | |
6349 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6350 | if test "${enable_protocol_file+set}" = set; then | |
6351 | enableval="$enable_protocol_file" | |
6352 | ||
6353 | if test "$enableval" = yes; then | |
6354 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6355 | else | |
6356 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6357 | fi | |
6358 | ||
6359 | else | |
6360 | ||
6361 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6362 | if test "x$LINE" != x ; then | |
6363 | eval "DEFAULT_$LINE" | |
6364 | else | |
6365 | no_cache=1 | |
6366 | fi | |
6367 | ||
6368 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6369 | ||
6370 | fi; | |
6371 | ||
6372 | eval "$ac_cv_use_protocol_file" | |
6373 | if test "$no_cache" != 1; then | |
6374 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6375 | fi | |
6376 | ||
6377 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6378 | echo "$as_me:$LINENO: result: yes" >&5 | |
6379 | echo "${ECHO_T}yes" >&6 | |
6380 | else | |
6381 | echo "$as_me:$LINENO: result: no" >&5 | |
6382 | echo "${ECHO_T}no" >&6 | |
6383 | fi | |
6384 | ||
6385 | ||
6386 | ||
6387 | ||
6388 | ||
6389 | enablestring= | |
6390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6391 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6392 | no_cache=0 | |
6393 | # Check whether --enable-threads or --disable-threads was given. | |
6394 | if test "${enable_threads+set}" = set; then | |
6395 | enableval="$enable_threads" | |
6396 | ||
6397 | if test "$enableval" = yes; then | |
6398 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6399 | else | |
6400 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6401 | fi | |
6402 | ||
6403 | else | |
6404 | ||
6405 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6406 | if test "x$LINE" != x ; then | |
6407 | eval "DEFAULT_$LINE" | |
6408 | else | |
6409 | no_cache=1 | |
6410 | fi | |
6411 | ||
6412 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6413 | ||
6414 | fi; | |
6415 | ||
6416 | eval "$ac_cv_use_threads" | |
6417 | if test "$no_cache" != 1; then | |
6418 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6419 | fi | |
6420 | ||
6421 | if test "$wxUSE_THREADS" = yes; then | |
6422 | echo "$as_me:$LINENO: result: yes" >&5 | |
6423 | echo "${ECHO_T}yes" >&6 | |
6424 | else | |
6425 | echo "$as_me:$LINENO: result: no" >&5 | |
6426 | echo "${ECHO_T}no" >&6 | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | if test "$wxUSE_GUI" = "yes"; then | |
6431 | ||
6432 | ||
6433 | ||
6434 | enablestring= | |
6435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6436 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6437 | no_cache=0 | |
6438 | # Check whether --enable-docview or --disable-docview was given. | |
6439 | if test "${enable_docview+set}" = set; then | |
6440 | enableval="$enable_docview" | |
6441 | ||
6442 | if test "$enableval" = yes; then | |
6443 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6444 | else | |
6445 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6446 | fi | |
6447 | ||
6448 | else | |
6449 | ||
6450 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6451 | if test "x$LINE" != x ; then | |
6452 | eval "DEFAULT_$LINE" | |
6453 | else | |
6454 | no_cache=1 | |
6455 | fi | |
6456 | ||
6457 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6458 | ||
6459 | fi; | |
6460 | ||
6461 | eval "$ac_cv_use_docview" | |
6462 | if test "$no_cache" != 1; then | |
6463 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6464 | fi | |
6465 | ||
6466 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6467 | echo "$as_me:$LINENO: result: yes" >&5 | |
6468 | echo "${ECHO_T}yes" >&6 | |
6469 | else | |
6470 | echo "$as_me:$LINENO: result: no" >&5 | |
6471 | echo "${ECHO_T}no" >&6 | |
6472 | fi | |
6473 | ||
6474 | ||
6475 | enablestring= | |
6476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6477 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6478 | no_cache=0 | |
6479 | # Check whether --enable-help or --disable-help was given. | |
6480 | if test "${enable_help+set}" = set; then | |
6481 | enableval="$enable_help" | |
6482 | ||
6483 | if test "$enableval" = yes; then | |
6484 | ac_cv_use_help='wxUSE_HELP=yes' | |
6485 | else | |
6486 | ac_cv_use_help='wxUSE_HELP=no' | |
6487 | fi | |
6488 | ||
6489 | else | |
6490 | ||
6491 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6492 | if test "x$LINE" != x ; then | |
6493 | eval "DEFAULT_$LINE" | |
6494 | else | |
6495 | no_cache=1 | |
6496 | fi | |
6497 | ||
6498 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6499 | ||
6500 | fi; | |
6501 | ||
6502 | eval "$ac_cv_use_help" | |
6503 | if test "$no_cache" != 1; then | |
6504 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6505 | fi | |
6506 | ||
6507 | if test "$wxUSE_HELP" = yes; then | |
6508 | echo "$as_me:$LINENO: result: yes" >&5 | |
6509 | echo "${ECHO_T}yes" >&6 | |
6510 | else | |
6511 | echo "$as_me:$LINENO: result: no" >&5 | |
6512 | echo "${ECHO_T}no" >&6 | |
6513 | fi | |
6514 | ||
6515 | ||
6516 | enablestring= | |
6517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6518 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6519 | no_cache=0 | |
6520 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6521 | if test "${enable_mshtmlhelp+set}" = set; then | |
6522 | enableval="$enable_mshtmlhelp" | |
6523 | ||
6524 | if test "$enableval" = yes; then | |
6525 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6526 | else | |
6527 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6528 | fi | |
6529 | ||
6530 | else | |
6531 | ||
6532 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6533 | if test "x$LINE" != x ; then | |
6534 | eval "DEFAULT_$LINE" | |
6535 | else | |
6536 | no_cache=1 | |
6537 | fi | |
6538 | ||
6539 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6540 | ||
6541 | fi; | |
6542 | ||
6543 | eval "$ac_cv_use_mshtmlhelp" | |
6544 | if test "$no_cache" != 1; then | |
6545 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6546 | fi | |
6547 | ||
6548 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6549 | echo "$as_me:$LINENO: result: yes" >&5 | |
6550 | echo "${ECHO_T}yes" >&6 | |
6551 | else | |
6552 | echo "$as_me:$LINENO: result: no" >&5 | |
6553 | echo "${ECHO_T}no" >&6 | |
6554 | fi | |
6555 | ||
6556 | ||
6557 | enablestring= | |
6558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6559 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6560 | no_cache=0 | |
6561 | # Check whether --enable-html or --disable-html was given. | |
6562 | if test "${enable_html+set}" = set; then | |
6563 | enableval="$enable_html" | |
6564 | ||
6565 | if test "$enableval" = yes; then | |
6566 | ac_cv_use_html='wxUSE_HTML=yes' | |
6567 | else | |
6568 | ac_cv_use_html='wxUSE_HTML=no' | |
6569 | fi | |
6570 | ||
6571 | else | |
6572 | ||
6573 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6574 | if test "x$LINE" != x ; then | |
6575 | eval "DEFAULT_$LINE" | |
6576 | else | |
6577 | no_cache=1 | |
6578 | fi | |
6579 | ||
6580 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6581 | ||
6582 | fi; | |
6583 | ||
6584 | eval "$ac_cv_use_html" | |
6585 | if test "$no_cache" != 1; then | |
6586 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6587 | fi | |
6588 | ||
6589 | if test "$wxUSE_HTML" = yes; then | |
6590 | echo "$as_me:$LINENO: result: yes" >&5 | |
6591 | echo "${ECHO_T}yes" >&6 | |
6592 | else | |
6593 | echo "$as_me:$LINENO: result: no" >&5 | |
6594 | echo "${ECHO_T}no" >&6 | |
6595 | fi | |
6596 | ||
6597 | ||
6598 | enablestring= | |
6599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6600 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6601 | no_cache=0 | |
6602 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6603 | if test "${enable_htmlhelp+set}" = set; then | |
6604 | enableval="$enable_htmlhelp" | |
6605 | ||
6606 | if test "$enableval" = yes; then | |
6607 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6608 | else | |
6609 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6610 | fi | |
6611 | ||
6612 | else | |
6613 | ||
6614 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6615 | if test "x$LINE" != x ; then | |
6616 | eval "DEFAULT_$LINE" | |
6617 | else | |
6618 | no_cache=1 | |
6619 | fi | |
6620 | ||
6621 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6622 | ||
6623 | fi; | |
6624 | ||
6625 | eval "$ac_cv_use_htmlhelp" | |
6626 | if test "$no_cache" != 1; then | |
6627 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6628 | fi | |
6629 | ||
6630 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6631 | echo "$as_me:$LINENO: result: yes" >&5 | |
6632 | echo "${ECHO_T}yes" >&6 | |
6633 | else | |
6634 | echo "$as_me:$LINENO: result: no" >&5 | |
6635 | echo "${ECHO_T}no" >&6 | |
6636 | fi | |
6637 | ||
6638 | ||
9a8f0513 VS |
6639 | enablestring= |
6640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6641 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6642 | no_cache=0 | |
6643 | # Check whether --enable-xrc or --disable-xrc was given. | |
6644 | if test "${enable_xrc+set}" = set; then | |
6645 | enableval="$enable_xrc" | |
6646 | ||
6647 | if test "$enableval" = yes; then | |
6648 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6649 | else | |
6650 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6651 | fi | |
6652 | ||
6653 | else | |
6654 | ||
6655 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6656 | if test "x$LINE" != x ; then | |
6657 | eval "DEFAULT_$LINE" | |
6658 | else | |
6659 | no_cache=1 | |
6660 | fi | |
6661 | ||
6662 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6663 | ||
6664 | fi; | |
6665 | ||
6666 | eval "$ac_cv_use_xrc" | |
6667 | if test "$no_cache" != 1; then | |
6668 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6669 | fi | |
6670 | ||
6671 | if test "$wxUSE_XRC" = yes; then | |
6672 | echo "$as_me:$LINENO: result: yes" >&5 | |
6673 | echo "${ECHO_T}yes" >&6 | |
6674 | else | |
6675 | echo "$as_me:$LINENO: result: no" >&5 | |
6676 | echo "${ECHO_T}no" >&6 | |
6677 | fi | |
6678 | ||
6679 | ||
a848cd7e SC |
6680 | enablestring= |
6681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6682 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6683 | no_cache=0 | |
6684 | # Check whether --enable-constraints or --disable-constraints was given. | |
6685 | if test "${enable_constraints+set}" = set; then | |
6686 | enableval="$enable_constraints" | |
6687 | ||
6688 | if test "$enableval" = yes; then | |
6689 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6690 | else | |
6691 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6692 | fi | |
6693 | ||
6694 | else | |
6695 | ||
6696 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6697 | if test "x$LINE" != x ; then | |
6698 | eval "DEFAULT_$LINE" | |
6699 | else | |
6700 | no_cache=1 | |
6701 | fi | |
6702 | ||
6703 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6704 | ||
6705 | fi; | |
6706 | ||
6707 | eval "$ac_cv_use_constraints" | |
6708 | if test "$no_cache" != 1; then | |
6709 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6710 | fi | |
6711 | ||
6712 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6713 | echo "$as_me:$LINENO: result: yes" >&5 | |
6714 | echo "${ECHO_T}yes" >&6 | |
6715 | else | |
6716 | echo "$as_me:$LINENO: result: no" >&5 | |
6717 | echo "${ECHO_T}no" >&6 | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | enablestring= | |
6722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6723 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6724 | no_cache=0 | |
6725 | # Check whether --enable-printarch or --disable-printarch was given. | |
6726 | if test "${enable_printarch+set}" = set; then | |
6727 | enableval="$enable_printarch" | |
6728 | ||
6729 | if test "$enableval" = yes; then | |
6730 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6731 | else | |
6732 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6733 | fi | |
6734 | ||
6735 | else | |
6736 | ||
6737 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6738 | if test "x$LINE" != x ; then | |
6739 | eval "DEFAULT_$LINE" | |
6740 | else | |
6741 | no_cache=1 | |
6742 | fi | |
6743 | ||
6744 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6745 | ||
6746 | fi; | |
6747 | ||
6748 | eval "$ac_cv_use_printarch" | |
6749 | if test "$no_cache" != 1; then | |
6750 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6751 | fi | |
6752 | ||
6753 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6754 | echo "$as_me:$LINENO: result: yes" >&5 | |
6755 | echo "${ECHO_T}yes" >&6 | |
6756 | else | |
6757 | echo "$as_me:$LINENO: result: no" >&5 | |
6758 | echo "${ECHO_T}no" >&6 | |
6759 | fi | |
6760 | ||
6761 | ||
6762 | enablestring= | |
6763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6764 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6765 | no_cache=0 | |
6766 | # Check whether --enable-mdi or --disable-mdi was given. | |
6767 | if test "${enable_mdi+set}" = set; then | |
6768 | enableval="$enable_mdi" | |
6769 | ||
6770 | if test "$enableval" = yes; then | |
8a7b1113 | 6771 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6772 | else |
8a7b1113 | 6773 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6774 | fi |
6775 | ||
6776 | else | |
6777 | ||
8a7b1113 | 6778 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6779 | if test "x$LINE" != x ; then |
6780 | eval "DEFAULT_$LINE" | |
6781 | else | |
6782 | no_cache=1 | |
6783 | fi | |
6784 | ||
8a7b1113 | 6785 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6786 | |
6787 | fi; | |
6788 | ||
6789 | eval "$ac_cv_use_mdi" | |
6790 | if test "$no_cache" != 1; then | |
6791 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6792 | fi | |
6793 | ||
8a7b1113 VZ |
6794 | if test "$wxUSE_MDI" = yes; then |
6795 | echo "$as_me:$LINENO: result: yes" >&5 | |
6796 | echo "${ECHO_T}yes" >&6 | |
6797 | else | |
6798 | echo "$as_me:$LINENO: result: no" >&5 | |
6799 | echo "${ECHO_T}no" >&6 | |
6800 | fi | |
6801 | ||
6802 | ||
6803 | enablestring= | |
6804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6805 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6806 | no_cache=0 | |
6807 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6808 | if test "${enable_mdidoc+set}" = set; then | |
6809 | enableval="$enable_mdidoc" | |
6810 | ||
6811 | if test "$enableval" = yes; then | |
6812 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6813 | else | |
6814 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6815 | fi | |
6816 | ||
6817 | else | |
6818 | ||
6819 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6820 | if test "x$LINE" != x ; then | |
6821 | eval "DEFAULT_$LINE" | |
6822 | else | |
6823 | no_cache=1 | |
6824 | fi | |
6825 | ||
6826 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6827 | ||
6828 | fi; | |
6829 | ||
6830 | eval "$ac_cv_use_mdidoc" | |
6831 | if test "$no_cache" != 1; then | |
6832 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6833 | fi | |
6834 | ||
a848cd7e SC |
6835 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6836 | echo "$as_me:$LINENO: result: yes" >&5 | |
6837 | echo "${ECHO_T}yes" >&6 | |
6838 | else | |
6839 | echo "$as_me:$LINENO: result: no" >&5 | |
6840 | echo "${ECHO_T}no" >&6 | |
6841 | fi | |
6842 | ||
6843 | ||
6844 | enablestring= | |
6845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6846 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6847 | no_cache=0 | |
6848 | # Check whether --enable-loggui or --disable-loggui was given. | |
6849 | if test "${enable_loggui+set}" = set; then | |
6850 | enableval="$enable_loggui" | |
6851 | ||
6852 | if test "$enableval" = yes; then | |
6853 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6854 | else | |
6855 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6856 | fi | |
6857 | ||
6858 | else | |
6859 | ||
6860 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6861 | if test "x$LINE" != x ; then | |
6862 | eval "DEFAULT_$LINE" | |
6863 | else | |
6864 | no_cache=1 | |
6865 | fi | |
6866 | ||
6867 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6868 | ||
6869 | fi; | |
6870 | ||
6871 | eval "$ac_cv_use_loggui" | |
6872 | if test "$no_cache" != 1; then | |
6873 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6874 | fi | |
6875 | ||
6876 | if test "$wxUSE_LOGGUI" = yes; then | |
6877 | echo "$as_me:$LINENO: result: yes" >&5 | |
6878 | echo "${ECHO_T}yes" >&6 | |
6879 | else | |
6880 | echo "$as_me:$LINENO: result: no" >&5 | |
6881 | echo "${ECHO_T}no" >&6 | |
6882 | fi | |
6883 | ||
6884 | ||
6885 | enablestring= | |
6886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6887 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6888 | no_cache=0 | |
6889 | # Check whether --enable-logwin or --disable-logwin was given. | |
6890 | if test "${enable_logwin+set}" = set; then | |
6891 | enableval="$enable_logwin" | |
6892 | ||
6893 | if test "$enableval" = yes; then | |
6894 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6895 | else | |
6896 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6897 | fi | |
6898 | ||
6899 | else | |
6900 | ||
6901 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6902 | if test "x$LINE" != x ; then | |
6903 | eval "DEFAULT_$LINE" | |
6904 | else | |
6905 | no_cache=1 | |
6906 | fi | |
6907 | ||
6908 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6909 | ||
6910 | fi; | |
6911 | ||
6912 | eval "$ac_cv_use_logwin" | |
6913 | if test "$no_cache" != 1; then | |
6914 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6915 | fi | |
6916 | ||
6917 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6918 | echo "$as_me:$LINENO: result: yes" >&5 | |
6919 | echo "${ECHO_T}yes" >&6 | |
6920 | else | |
6921 | echo "$as_me:$LINENO: result: no" >&5 | |
6922 | echo "${ECHO_T}no" >&6 | |
6923 | fi | |
6924 | ||
6925 | ||
6926 | enablestring= | |
6927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6928 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6929 | no_cache=0 | |
6930 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6931 | if test "${enable_logdialog+set}" = set; then | |
6932 | enableval="$enable_logdialog" | |
6933 | ||
6934 | if test "$enableval" = yes; then | |
6935 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6936 | else | |
6937 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6938 | fi | |
6939 | ||
6940 | else | |
6941 | ||
6942 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6943 | if test "x$LINE" != x ; then | |
6944 | eval "DEFAULT_$LINE" | |
6945 | else | |
6946 | no_cache=1 | |
6947 | fi | |
6948 | ||
6949 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6950 | ||
6951 | fi; | |
6952 | ||
6953 | eval "$ac_cv_use_logdialog" | |
6954 | if test "$no_cache" != 1; then | |
6955 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6956 | fi | |
6957 | ||
6958 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6959 | echo "$as_me:$LINENO: result: yes" >&5 | |
6960 | echo "${ECHO_T}yes" >&6 | |
6961 | else | |
6962 | echo "$as_me:$LINENO: result: no" >&5 | |
6963 | echo "${ECHO_T}no" >&6 | |
6964 | fi | |
6965 | ||
6966 | ||
646b6ec1 VS |
6967 | enablestring= |
6968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6969 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6970 | no_cache=0 | |
6971 | # Check whether --enable-webkit or --disable-webkit was given. | |
6972 | if test "${enable_webkit+set}" = set; then | |
6973 | enableval="$enable_webkit" | |
6974 | ||
6975 | if test "$enableval" = yes; then | |
6976 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6977 | else | |
6978 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6979 | fi | |
6980 | ||
6981 | else | |
6982 | ||
6983 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6984 | if test "x$LINE" != x ; then | |
6985 | eval "DEFAULT_$LINE" | |
6986 | else | |
6987 | no_cache=1 | |
6988 | fi | |
6989 | ||
6990 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6991 | ||
6992 | fi; | |
6993 | ||
6994 | eval "$ac_cv_use_webkit" | |
6995 | if test "$no_cache" != 1; then | |
6996 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
6997 | fi | |
6998 | ||
6999 | if test "$wxUSE_WEBKIT" = yes; then | |
7000 | echo "$as_me:$LINENO: result: yes" >&5 | |
7001 | echo "${ECHO_T}yes" >&6 | |
7002 | else | |
7003 | echo "$as_me:$LINENO: result: no" >&5 | |
7004 | echo "${ECHO_T}no" >&6 | |
7005 | fi | |
7006 | ||
7007 | ||
a848cd7e SC |
7008 | |
7009 | enablestring= | |
7010 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7011 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7012 | no_cache=0 | |
7013 | # Check whether --enable-postscript or --disable-postscript was given. | |
7014 | if test "${enable_postscript+set}" = set; then | |
7015 | enableval="$enable_postscript" | |
7016 | ||
7017 | if test "$enableval" = yes; then | |
7018 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7019 | else | |
7020 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7021 | fi | |
7022 | ||
7023 | else | |
7024 | ||
7025 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7026 | if test "x$LINE" != x ; then | |
7027 | eval "DEFAULT_$LINE" | |
7028 | else | |
7029 | no_cache=1 | |
7030 | fi | |
7031 | ||
7032 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7033 | ||
7034 | fi; | |
7035 | ||
7036 | eval "$ac_cv_use_postscript" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7042 | echo "$as_me:$LINENO: result: yes" >&5 | |
7043 | echo "${ECHO_T}yes" >&6 | |
7044 | else | |
7045 | echo "$as_me:$LINENO: result: no" >&5 | |
7046 | echo "${ECHO_T}no" >&6 | |
7047 | fi | |
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | enablestring= | |
7054 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7055 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7056 | no_cache=0 | |
7057 | # Check whether --enable-prologio or --disable-prologio was given. | |
7058 | if test "${enable_prologio+set}" = set; then | |
7059 | enableval="$enable_prologio" | |
7060 | ||
7061 | if test "$enableval" = yes; then | |
7062 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7063 | else | |
7064 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7065 | fi | |
7066 | ||
7067 | else | |
7068 | ||
7069 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7070 | if test "x$LINE" != x ; then | |
7071 | eval "DEFAULT_$LINE" | |
7072 | else | |
7073 | no_cache=1 | |
7074 | fi | |
7075 | ||
7076 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7077 | ||
7078 | fi; | |
7079 | ||
7080 | eval "$ac_cv_use_prologio" | |
7081 | if test "$no_cache" != 1; then | |
7082 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7083 | fi | |
7084 | ||
7085 | if test "$wxUSE_PROLOGIO" = yes; then | |
7086 | echo "$as_me:$LINENO: result: yes" >&5 | |
7087 | echo "${ECHO_T}yes" >&6 | |
7088 | else | |
7089 | echo "$as_me:$LINENO: result: no" >&5 | |
7090 | echo "${ECHO_T}no" >&6 | |
7091 | fi | |
7092 | ||
7093 | ||
7094 | enablestring= | |
7095 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7096 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7097 | no_cache=0 | |
7098 | # Check whether --enable-resources or --disable-resources was given. | |
7099 | if test "${enable_resources+set}" = set; then | |
7100 | enableval="$enable_resources" | |
7101 | ||
7102 | if test "$enableval" = yes; then | |
7103 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7104 | else | |
7105 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7106 | fi | |
7107 | ||
7108 | else | |
7109 | ||
7110 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7111 | if test "x$LINE" != x ; then | |
7112 | eval "DEFAULT_$LINE" | |
7113 | else | |
7114 | no_cache=1 | |
7115 | fi | |
7116 | ||
7117 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7118 | ||
7119 | fi; | |
7120 | ||
7121 | eval "$ac_cv_use_resources" | |
7122 | if test "$no_cache" != 1; then | |
7123 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7124 | fi | |
7125 | ||
7126 | if test "$wxUSE_RESOURCES" = yes; then | |
7127 | echo "$as_me:$LINENO: result: yes" >&5 | |
7128 | echo "${ECHO_T}yes" >&6 | |
7129 | else | |
7130 | echo "$as_me:$LINENO: result: no" >&5 | |
7131 | echo "${ECHO_T}no" >&6 | |
7132 | fi | |
7133 | ||
7134 | ||
7135 | ||
7136 | ||
7137 | enablestring= | |
7138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7139 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7140 | no_cache=0 | |
7141 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7142 | if test "${enable_clipboard+set}" = set; then | |
7143 | enableval="$enable_clipboard" | |
7144 | ||
7145 | if test "$enableval" = yes; then | |
7146 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7147 | else | |
7148 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7149 | fi | |
7150 | ||
7151 | else | |
7152 | ||
7153 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7154 | if test "x$LINE" != x ; then | |
7155 | eval "DEFAULT_$LINE" | |
7156 | else | |
7157 | no_cache=1 | |
7158 | fi | |
7159 | ||
7160 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7161 | ||
7162 | fi; | |
7163 | ||
7164 | eval "$ac_cv_use_clipboard" | |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7170 | echo "$as_me:$LINENO: result: yes" >&5 | |
7171 | echo "${ECHO_T}yes" >&6 | |
7172 | else | |
7173 | echo "$as_me:$LINENO: result: no" >&5 | |
7174 | echo "${ECHO_T}no" >&6 | |
7175 | fi | |
7176 | ||
7177 | ||
7178 | enablestring= | |
7179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7180 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7181 | no_cache=0 | |
7182 | # Check whether --enable-dnd or --disable-dnd was given. | |
7183 | if test "${enable_dnd+set}" = set; then | |
7184 | enableval="$enable_dnd" | |
7185 | ||
7186 | if test "$enableval" = yes; then | |
7187 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7188 | else | |
7189 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7190 | fi | |
7191 | ||
7192 | else | |
7193 | ||
7194 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7195 | if test "x$LINE" != x ; then | |
7196 | eval "DEFAULT_$LINE" | |
7197 | else | |
7198 | no_cache=1 | |
7199 | fi | |
7200 | ||
7201 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7202 | ||
7203 | fi; | |
7204 | ||
7205 | eval "$ac_cv_use_dnd" | |
7206 | if test "$no_cache" != 1; then | |
7207 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7208 | fi | |
7209 | ||
7210 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7211 | echo "$as_me:$LINENO: result: yes" >&5 | |
7212 | echo "${ECHO_T}yes" >&6 | |
7213 | else | |
7214 | echo "$as_me:$LINENO: result: no" >&5 | |
7215 | echo "${ECHO_T}no" >&6 | |
7216 | fi | |
7217 | ||
7218 | ||
7219 | enablestring= | |
7220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7221 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7222 | no_cache=0 | |
7223 | # Check whether --enable-metafile or --disable-metafile was given. | |
7224 | if test "${enable_metafile+set}" = set; then | |
7225 | enableval="$enable_metafile" | |
7226 | ||
7227 | if test "$enableval" = yes; then | |
7228 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7229 | else | |
7230 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7231 | fi | |
7232 | ||
7233 | else | |
7234 | ||
7235 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7236 | if test "x$LINE" != x ; then | |
7237 | eval "DEFAULT_$LINE" | |
7238 | else | |
7239 | no_cache=1 | |
7240 | fi | |
7241 | ||
7242 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7243 | ||
7244 | fi; | |
7245 | ||
7246 | eval "$ac_cv_use_metafile" | |
7247 | if test "$no_cache" != 1; then | |
7248 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7249 | fi | |
7250 | ||
7251 | if test "$wxUSE_METAFILE" = yes; then | |
7252 | echo "$as_me:$LINENO: result: yes" >&5 | |
7253 | echo "${ECHO_T}yes" >&6 | |
7254 | else | |
7255 | echo "$as_me:$LINENO: result: no" >&5 | |
7256 | echo "${ECHO_T}no" >&6 | |
7257 | fi | |
7258 | ||
7259 | ||
7260 | ||
7261 | ||
7262 | ||
7263 | enablestring= | |
7264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7265 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7266 | no_cache=0 | |
7267 | # Check whether --enable-controls or --disable-controls was given. | |
7268 | if test "${enable_controls+set}" = set; then | |
7269 | enableval="$enable_controls" | |
7270 | ||
7271 | if test "$enableval" = yes; then | |
7272 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7273 | else | |
7274 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7275 | fi | |
7276 | ||
7277 | else | |
7278 | ||
7279 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7280 | if test "x$LINE" != x ; then | |
7281 | eval "DEFAULT_$LINE" | |
7282 | else | |
7283 | no_cache=1 | |
7284 | fi | |
7285 | ||
7286 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7287 | ||
7288 | fi; | |
7289 | ||
7290 | eval "$ac_cv_use_controls" | |
7291 | if test "$no_cache" != 1; then | |
7292 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7293 | fi | |
7294 | ||
7295 | if test "$wxUSE_CONTROLS" = yes; then | |
7296 | echo "$as_me:$LINENO: result: yes" >&5 | |
7297 | echo "${ECHO_T}yes" >&6 | |
7298 | else | |
7299 | echo "$as_me:$LINENO: result: no" >&5 | |
7300 | echo "${ECHO_T}no" >&6 | |
7301 | fi | |
7302 | ||
7303 | ||
7304 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7305 | DEFAULT_wxUSE_ACCEL=yes | |
7306 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7307 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7308 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7309 | DEFAULT_wxUSE_CARET=yes |
7310 | DEFAULT_wxUSE_COMBOBOX=yes | |
7311 | DEFAULT_wxUSE_CHECKBOX=yes | |
7312 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7313 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7314 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7315 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7316 | DEFAULT_wxUSE_GAUGE=yes |
7317 | DEFAULT_wxUSE_GRID=yes | |
7318 | DEFAULT_wxUSE_IMAGLIST=yes | |
7319 | DEFAULT_wxUSE_LISTBOOK=yes | |
7320 | DEFAULT_wxUSE_LISTBOX=yes | |
7321 | DEFAULT_wxUSE_LISTCTRL=yes | |
7322 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7323 | DEFAULT_wxUSE_RADIOBOX=yes | |
7324 | DEFAULT_wxUSE_RADIOBTN=yes | |
7325 | DEFAULT_wxUSE_SASH=yes | |
7326 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7327 | DEFAULT_wxUSE_SLIDER=yes | |
7328 | DEFAULT_wxUSE_SPINBTN=yes | |
7329 | DEFAULT_wxUSE_SPINCTRL=yes | |
7330 | DEFAULT_wxUSE_SPLITTER=yes | |
7331 | DEFAULT_wxUSE_STATBMP=yes | |
7332 | DEFAULT_wxUSE_STATBOX=yes | |
7333 | DEFAULT_wxUSE_STATLINE=yes | |
7334 | DEFAULT_wxUSE_STATUSBAR=yes | |
7335 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7336 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7337 | DEFAULT_wxUSE_TOOLBAR=yes | |
7338 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7339 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7340 | DEFAULT_wxUSE_TOOLTIPS=yes | |
7341 | DEFAULT_wxUSE_TREECTRL=yes | |
7342 | DEFAULT_wxUSE_POPUPWIN=yes | |
7343 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7344 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7345 | DEFAULT_wxUSE_ACCEL=no | |
7346 | DEFAULT_wxUSE_BMPBUTTON=no | |
7347 | DEFAULT_wxUSE_BUTTON=no | |
7348 | DEFAULT_wxUSE_CALCTRL=no | |
7349 | DEFAULT_wxUSE_CARET=no | |
7350 | DEFAULT_wxUSE_COMBOBOX=no | |
7351 | DEFAULT_wxUSE_CHECKBOX=no | |
7352 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7353 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7354 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7355 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7356 | DEFAULT_wxUSE_GAUGE=no |
7357 | DEFAULT_wxUSE_GRID=no | |
7358 | DEFAULT_wxUSE_IMAGLIST=no | |
7359 | DEFAULT_wxUSE_LISTBOOK=no | |
7360 | DEFAULT_wxUSE_LISTBOX=no | |
7361 | DEFAULT_wxUSE_LISTCTRL=no | |
7362 | DEFAULT_wxUSE_NOTEBOOK=no | |
7363 | DEFAULT_wxUSE_RADIOBOX=no | |
7364 | DEFAULT_wxUSE_RADIOBTN=no | |
7365 | DEFAULT_wxUSE_SASH=no | |
7366 | DEFAULT_wxUSE_SCROLLBAR=no | |
7367 | DEFAULT_wxUSE_SLIDER=no | |
7368 | DEFAULT_wxUSE_SPINBTN=no | |
7369 | DEFAULT_wxUSE_SPINCTRL=no | |
7370 | DEFAULT_wxUSE_SPLITTER=no | |
7371 | DEFAULT_wxUSE_STATBMP=no | |
7372 | DEFAULT_wxUSE_STATBOX=no | |
7373 | DEFAULT_wxUSE_STATLINE=no | |
7374 | DEFAULT_wxUSE_STATUSBAR=no | |
7375 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7376 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7377 | DEFAULT_wxUSE_TOOLBAR=no | |
7378 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7379 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7380 | DEFAULT_wxUSE_TOOLTIPS=no | |
7381 | DEFAULT_wxUSE_TREECTRL=no | |
7382 | DEFAULT_wxUSE_POPUPWIN=no | |
7383 | DEFAULT_wxUSE_TIPWINDOW=no | |
7384 | fi | |
7385 | ||
a848cd7e SC |
7386 | |
7387 | enablestring= | |
7388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7389 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7390 | no_cache=0 | |
7391 | # Check whether --enable-accel or --disable-accel was given. | |
7392 | if test "${enable_accel+set}" = set; then | |
7393 | enableval="$enable_accel" | |
7394 | ||
7395 | if test "$enableval" = yes; then | |
7396 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7397 | else | |
7398 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7399 | fi | |
7400 | ||
7401 | else | |
7402 | ||
7403 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7404 | if test "x$LINE" != x ; then | |
7405 | eval "DEFAULT_$LINE" | |
7406 | else | |
7407 | no_cache=1 | |
7408 | fi | |
7409 | ||
7410 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7411 | ||
7412 | fi; | |
7413 | ||
7414 | eval "$ac_cv_use_accel" | |
7415 | if test "$no_cache" != 1; then | |
7416 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7417 | fi | |
7418 | ||
7419 | if test "$wxUSE_ACCEL" = yes; then | |
7420 | echo "$as_me:$LINENO: result: yes" >&5 | |
7421 | echo "${ECHO_T}yes" >&6 | |
7422 | else | |
7423 | echo "$as_me:$LINENO: result: no" >&5 | |
7424 | echo "${ECHO_T}no" >&6 | |
7425 | fi | |
7426 | ||
7427 | ||
7428 | enablestring= | |
7429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7430 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7431 | no_cache=0 | |
7432 | # Check whether --enable-button or --disable-button was given. | |
7433 | if test "${enable_button+set}" = set; then | |
7434 | enableval="$enable_button" | |
7435 | ||
7436 | if test "$enableval" = yes; then | |
7437 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7438 | else | |
7439 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7440 | fi | |
7441 | ||
7442 | else | |
7443 | ||
7444 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7445 | if test "x$LINE" != x ; then | |
7446 | eval "DEFAULT_$LINE" | |
7447 | else | |
7448 | no_cache=1 | |
7449 | fi | |
7450 | ||
7451 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7452 | ||
7453 | fi; | |
7454 | ||
7455 | eval "$ac_cv_use_button" | |
7456 | if test "$no_cache" != 1; then | |
7457 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7458 | fi | |
7459 | ||
7460 | if test "$wxUSE_BUTTON" = yes; then | |
7461 | echo "$as_me:$LINENO: result: yes" >&5 | |
7462 | echo "${ECHO_T}yes" >&6 | |
7463 | else | |
7464 | echo "$as_me:$LINENO: result: no" >&5 | |
7465 | echo "${ECHO_T}no" >&6 | |
7466 | fi | |
7467 | ||
7468 | ||
7469 | enablestring= | |
7470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7471 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7472 | no_cache=0 | |
7473 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7474 | if test "${enable_bmpbutton+set}" = set; then | |
7475 | enableval="$enable_bmpbutton" | |
7476 | ||
7477 | if test "$enableval" = yes; then | |
7478 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7479 | else | |
7480 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7481 | fi | |
7482 | ||
7483 | else | |
7484 | ||
7485 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7486 | if test "x$LINE" != x ; then | |
7487 | eval "DEFAULT_$LINE" | |
7488 | else | |
7489 | no_cache=1 | |
7490 | fi | |
7491 | ||
7492 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7493 | ||
7494 | fi; | |
7495 | ||
7496 | eval "$ac_cv_use_bmpbutton" | |
7497 | if test "$no_cache" != 1; then | |
7498 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7499 | fi | |
7500 | ||
7501 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7502 | echo "$as_me:$LINENO: result: yes" >&5 | |
7503 | echo "${ECHO_T}yes" >&6 | |
7504 | else | |
7505 | echo "$as_me:$LINENO: result: no" >&5 | |
7506 | echo "${ECHO_T}no" >&6 | |
7507 | fi | |
7508 | ||
7509 | ||
7510 | enablestring= | |
7511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7512 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7513 | no_cache=0 | |
7514 | # Check whether --enable-calendar or --disable-calendar was given. | |
7515 | if test "${enable_calendar+set}" = set; then | |
7516 | enableval="$enable_calendar" | |
7517 | ||
7518 | if test "$enableval" = yes; then | |
7519 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7520 | else | |
7521 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7522 | fi | |
7523 | ||
7524 | else | |
7525 | ||
7526 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7527 | if test "x$LINE" != x ; then | |
7528 | eval "DEFAULT_$LINE" | |
7529 | else | |
7530 | no_cache=1 | |
7531 | fi | |
7532 | ||
7533 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7534 | ||
7535 | fi; | |
7536 | ||
7537 | eval "$ac_cv_use_calendar" | |
7538 | if test "$no_cache" != 1; then | |
7539 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7540 | fi | |
7541 | ||
7542 | if test "$wxUSE_CALCTRL" = yes; then | |
7543 | echo "$as_me:$LINENO: result: yes" >&5 | |
7544 | echo "${ECHO_T}yes" >&6 | |
7545 | else | |
7546 | echo "$as_me:$LINENO: result: no" >&5 | |
7547 | echo "${ECHO_T}no" >&6 | |
7548 | fi | |
7549 | ||
7550 | ||
7551 | enablestring= | |
7552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7553 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7554 | no_cache=0 | |
7555 | # Check whether --enable-caret or --disable-caret was given. | |
7556 | if test "${enable_caret+set}" = set; then | |
7557 | enableval="$enable_caret" | |
7558 | ||
7559 | if test "$enableval" = yes; then | |
7560 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7561 | else | |
7562 | ac_cv_use_caret='wxUSE_CARET=no' | |
7563 | fi | |
7564 | ||
7565 | else | |
7566 | ||
7567 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7568 | if test "x$LINE" != x ; then | |
7569 | eval "DEFAULT_$LINE" | |
7570 | else | |
7571 | no_cache=1 | |
7572 | fi | |
7573 | ||
7574 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7575 | ||
7576 | fi; | |
7577 | ||
7578 | eval "$ac_cv_use_caret" | |
7579 | if test "$no_cache" != 1; then | |
7580 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7581 | fi | |
7582 | ||
7583 | if test "$wxUSE_CARET" = yes; then | |
7584 | echo "$as_me:$LINENO: result: yes" >&5 | |
7585 | echo "${ECHO_T}yes" >&6 | |
7586 | else | |
7587 | echo "$as_me:$LINENO: result: no" >&5 | |
7588 | echo "${ECHO_T}no" >&6 | |
7589 | fi | |
7590 | ||
7591 | ||
7592 | enablestring= | |
7593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7594 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7595 | no_cache=0 | |
7596 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7597 | if test "${enable_checkbox+set}" = set; then | |
7598 | enableval="$enable_checkbox" | |
7599 | ||
7600 | if test "$enableval" = yes; then | |
7601 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7602 | else | |
7603 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7604 | fi | |
7605 | ||
7606 | else | |
7607 | ||
7608 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7609 | if test "x$LINE" != x ; then | |
7610 | eval "DEFAULT_$LINE" | |
7611 | else | |
7612 | no_cache=1 | |
7613 | fi | |
7614 | ||
7615 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7616 | ||
7617 | fi; | |
7618 | ||
7619 | eval "$ac_cv_use_checkbox" | |
7620 | if test "$no_cache" != 1; then | |
7621 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7622 | fi | |
7623 | ||
7624 | if test "$wxUSE_CHECKBOX" = yes; then | |
7625 | echo "$as_me:$LINENO: result: yes" >&5 | |
7626 | echo "${ECHO_T}yes" >&6 | |
7627 | else | |
7628 | echo "$as_me:$LINENO: result: no" >&5 | |
7629 | echo "${ECHO_T}no" >&6 | |
7630 | fi | |
7631 | ||
7632 | ||
7633 | enablestring= | |
7634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7635 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7636 | no_cache=0 | |
7637 | # Check whether --enable-checklst or --disable-checklst was given. | |
7638 | if test "${enable_checklst+set}" = set; then | |
7639 | enableval="$enable_checklst" | |
7640 | ||
7641 | if test "$enableval" = yes; then | |
7642 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7643 | else | |
7644 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7645 | fi | |
7646 | ||
7647 | else | |
7648 | ||
7649 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7650 | if test "x$LINE" != x ; then | |
7651 | eval "DEFAULT_$LINE" | |
7652 | else | |
7653 | no_cache=1 | |
7654 | fi | |
7655 | ||
7656 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7657 | ||
7658 | fi; | |
7659 | ||
7660 | eval "$ac_cv_use_checklst" | |
7661 | if test "$no_cache" != 1; then | |
7662 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7663 | fi | |
7664 | ||
7665 | if test "$wxUSE_CHECKLST" = yes; then | |
7666 | echo "$as_me:$LINENO: result: yes" >&5 | |
7667 | echo "${ECHO_T}yes" >&6 | |
7668 | else | |
7669 | echo "$as_me:$LINENO: result: no" >&5 | |
7670 | echo "${ECHO_T}no" >&6 | |
7671 | fi | |
7672 | ||
7673 | ||
7674 | enablestring= | |
7675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7676 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7677 | no_cache=0 | |
7678 | # Check whether --enable-choice or --disable-choice was given. | |
7679 | if test "${enable_choice+set}" = set; then | |
7680 | enableval="$enable_choice" | |
7681 | ||
7682 | if test "$enableval" = yes; then | |
7683 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7684 | else | |
7685 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7686 | fi | |
7687 | ||
7688 | else | |
7689 | ||
7690 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7691 | if test "x$LINE" != x ; then | |
7692 | eval "DEFAULT_$LINE" | |
7693 | else | |
7694 | no_cache=1 | |
7695 | fi | |
7696 | ||
7697 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7698 | ||
7699 | fi; | |
7700 | ||
7701 | eval "$ac_cv_use_choice" | |
7702 | if test "$no_cache" != 1; then | |
7703 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7704 | fi | |
7705 | ||
7706 | if test "$wxUSE_CHOICE" = yes; then | |
7707 | echo "$as_me:$LINENO: result: yes" >&5 | |
7708 | echo "${ECHO_T}yes" >&6 | |
7709 | else | |
7710 | echo "$as_me:$LINENO: result: no" >&5 | |
7711 | echo "${ECHO_T}no" >&6 | |
7712 | fi | |
7713 | ||
7714 | ||
92bbdbcd WS |
7715 | enablestring= |
7716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7717 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7718 | no_cache=0 | |
7719 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7720 | if test "${enable_choicebook+set}" = set; then | |
7721 | enableval="$enable_choicebook" | |
7722 | ||
7723 | if test "$enableval" = yes; then | |
7724 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7725 | else | |
7726 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7727 | fi | |
7728 | ||
7729 | else | |
7730 | ||
7731 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7732 | if test "x$LINE" != x ; then | |
7733 | eval "DEFAULT_$LINE" | |
7734 | else | |
7735 | no_cache=1 | |
7736 | fi | |
7737 | ||
7738 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7739 | ||
7740 | fi; | |
7741 | ||
7742 | eval "$ac_cv_use_choicebook" | |
7743 | if test "$no_cache" != 1; then | |
7744 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7745 | fi | |
7746 | ||
7747 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7748 | echo "$as_me:$LINENO: result: yes" >&5 | |
7749 | echo "${ECHO_T}yes" >&6 | |
7750 | else | |
7751 | echo "$as_me:$LINENO: result: no" >&5 | |
7752 | echo "${ECHO_T}no" >&6 | |
7753 | fi | |
7754 | ||
7755 | ||
a848cd7e SC |
7756 | enablestring= |
7757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7758 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7759 | no_cache=0 | |
7760 | # Check whether --enable-combobox or --disable-combobox was given. | |
7761 | if test "${enable_combobox+set}" = set; then | |
7762 | enableval="$enable_combobox" | |
7763 | ||
7764 | if test "$enableval" = yes; then | |
7765 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7766 | else | |
7767 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7768 | fi | |
7769 | ||
7770 | else | |
7771 | ||
7772 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7773 | if test "x$LINE" != x ; then | |
7774 | eval "DEFAULT_$LINE" | |
7775 | else | |
7776 | no_cache=1 | |
7777 | fi | |
7778 | ||
7779 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7780 | ||
7781 | fi; | |
7782 | ||
7783 | eval "$ac_cv_use_combobox" | |
7784 | if test "$no_cache" != 1; then | |
7785 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7786 | fi | |
7787 | ||
7788 | if test "$wxUSE_COMBOBOX" = yes; then | |
7789 | echo "$as_me:$LINENO: result: yes" >&5 | |
7790 | echo "${ECHO_T}yes" >&6 | |
7791 | else | |
7792 | echo "$as_me:$LINENO: result: no" >&5 | |
7793 | echo "${ECHO_T}no" >&6 | |
7794 | fi | |
7795 | ||
7796 | ||
da98e9be VZ |
7797 | enablestring= |
7798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7799 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7800 | no_cache=0 | |
7801 | # Check whether --enable-datepick or --disable-datepick was given. | |
7802 | if test "${enable_datepick+set}" = set; then | |
7803 | enableval="$enable_datepick" | |
7804 | ||
7805 | if test "$enableval" = yes; then | |
7806 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7807 | else | |
7808 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7809 | fi | |
7810 | ||
7811 | else | |
7812 | ||
7813 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7814 | if test "x$LINE" != x ; then | |
7815 | eval "DEFAULT_$LINE" | |
7816 | else | |
7817 | no_cache=1 | |
7818 | fi | |
7819 | ||
7820 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7821 | ||
7822 | fi; | |
7823 | ||
7824 | eval "$ac_cv_use_datepick" | |
7825 | if test "$no_cache" != 1; then | |
7826 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7827 | fi | |
7828 | ||
7829 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7830 | echo "$as_me:$LINENO: result: yes" >&5 | |
7831 | echo "${ECHO_T}yes" >&6 | |
7832 | else | |
7833 | echo "$as_me:$LINENO: result: no" >&5 | |
7834 | echo "${ECHO_T}no" >&6 | |
7835 | fi | |
7836 | ||
7837 | ||
a848cd7e SC |
7838 | enablestring= |
7839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7840 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7841 | no_cache=0 | |
7842 | # Check whether --enable-display or --disable-display was given. | |
7843 | if test "${enable_display+set}" = set; then | |
7844 | enableval="$enable_display" | |
7845 | ||
7846 | if test "$enableval" = yes; then | |
7847 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7848 | else | |
7849 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7850 | fi | |
7851 | ||
7852 | else | |
7853 | ||
7854 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7855 | if test "x$LINE" != x ; then | |
7856 | eval "DEFAULT_$LINE" | |
7857 | else | |
7858 | no_cache=1 | |
7859 | fi | |
7860 | ||
7861 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7862 | ||
7863 | fi; | |
7864 | ||
7865 | eval "$ac_cv_use_display" | |
7866 | if test "$no_cache" != 1; then | |
7867 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7868 | fi | |
7869 | ||
7870 | if test "$wxUSE_DISPLAY" = yes; then | |
7871 | echo "$as_me:$LINENO: result: yes" >&5 | |
7872 | echo "${ECHO_T}yes" >&6 | |
7873 | else | |
7874 | echo "$as_me:$LINENO: result: no" >&5 | |
7875 | echo "${ECHO_T}no" >&6 | |
7876 | fi | |
7877 | ||
7878 | ||
7879 | enablestring= | |
7880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7881 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7882 | no_cache=0 | |
7883 | # Check whether --enable-gauge or --disable-gauge was given. | |
7884 | if test "${enable_gauge+set}" = set; then | |
7885 | enableval="$enable_gauge" | |
7886 | ||
7887 | if test "$enableval" = yes; then | |
7888 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7889 | else | |
7890 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7891 | fi | |
7892 | ||
7893 | else | |
7894 | ||
7895 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7896 | if test "x$LINE" != x ; then | |
7897 | eval "DEFAULT_$LINE" | |
7898 | else | |
7899 | no_cache=1 | |
7900 | fi | |
7901 | ||
7902 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7903 | ||
7904 | fi; | |
7905 | ||
7906 | eval "$ac_cv_use_gauge" | |
7907 | if test "$no_cache" != 1; then | |
7908 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7909 | fi | |
7910 | ||
7911 | if test "$wxUSE_GAUGE" = yes; then | |
7912 | echo "$as_me:$LINENO: result: yes" >&5 | |
7913 | echo "${ECHO_T}yes" >&6 | |
7914 | else | |
7915 | echo "$as_me:$LINENO: result: no" >&5 | |
7916 | echo "${ECHO_T}no" >&6 | |
7917 | fi | |
7918 | ||
7919 | ||
7920 | enablestring= | |
7921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7922 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7923 | no_cache=0 | |
7924 | # Check whether --enable-grid or --disable-grid was given. | |
7925 | if test "${enable_grid+set}" = set; then | |
7926 | enableval="$enable_grid" | |
7927 | ||
7928 | if test "$enableval" = yes; then | |
7929 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7930 | else | |
7931 | ac_cv_use_grid='wxUSE_GRID=no' | |
7932 | fi | |
7933 | ||
7934 | else | |
7935 | ||
7936 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7944 | ||
7945 | fi; | |
7946 | ||
7947 | eval "$ac_cv_use_grid" | |
7948 | if test "$no_cache" != 1; then | |
7949 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7950 | fi | |
7951 | ||
7952 | if test "$wxUSE_GRID" = yes; then | |
7953 | echo "$as_me:$LINENO: result: yes" >&5 | |
7954 | echo "${ECHO_T}yes" >&6 | |
7955 | else | |
7956 | echo "$as_me:$LINENO: result: no" >&5 | |
7957 | echo "${ECHO_T}no" >&6 | |
7958 | fi | |
7959 | ||
7960 | ||
7961 | enablestring= | |
7962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7963 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7964 | no_cache=0 | |
7965 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7966 | if test "${enable_imaglist+set}" = set; then | |
7967 | enableval="$enable_imaglist" | |
7968 | ||
7969 | if test "$enableval" = yes; then | |
7970 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7971 | else | |
7972 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7973 | fi | |
7974 | ||
7975 | else | |
7976 | ||
7977 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7978 | if test "x$LINE" != x ; then | |
7979 | eval "DEFAULT_$LINE" | |
7980 | else | |
7981 | no_cache=1 | |
7982 | fi | |
7983 | ||
7984 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7985 | ||
7986 | fi; | |
7987 | ||
7988 | eval "$ac_cv_use_imaglist" | |
7989 | if test "$no_cache" != 1; then | |
7990 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7991 | fi | |
7992 | ||
7993 | if test "$wxUSE_IMAGLIST" = yes; then | |
7994 | echo "$as_me:$LINENO: result: yes" >&5 | |
7995 | echo "${ECHO_T}yes" >&6 | |
7996 | else | |
7997 | echo "$as_me:$LINENO: result: no" >&5 | |
7998 | echo "${ECHO_T}no" >&6 | |
7999 | fi | |
8000 | ||
8001 | ||
8002 | enablestring= | |
8003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8004 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8005 | no_cache=0 | |
8006 | # Check whether --enable-listbook or --disable-listbook was given. | |
8007 | if test "${enable_listbook+set}" = set; then | |
8008 | enableval="$enable_listbook" | |
8009 | ||
8010 | if test "$enableval" = yes; then | |
8011 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8012 | else | |
8013 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8014 | fi | |
8015 | ||
8016 | else | |
8017 | ||
8018 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8019 | if test "x$LINE" != x ; then | |
8020 | eval "DEFAULT_$LINE" | |
8021 | else | |
8022 | no_cache=1 | |
8023 | fi | |
8024 | ||
8025 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8026 | ||
8027 | fi; | |
8028 | ||
8029 | eval "$ac_cv_use_listbook" | |
8030 | if test "$no_cache" != 1; then | |
8031 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8032 | fi | |
8033 | ||
8034 | if test "$wxUSE_LISTBOOK" = yes; then | |
8035 | echo "$as_me:$LINENO: result: yes" >&5 | |
8036 | echo "${ECHO_T}yes" >&6 | |
8037 | else | |
8038 | echo "$as_me:$LINENO: result: no" >&5 | |
8039 | echo "${ECHO_T}no" >&6 | |
8040 | fi | |
8041 | ||
8042 | ||
8043 | enablestring= | |
8044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8045 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8046 | no_cache=0 | |
8047 | # Check whether --enable-listbox or --disable-listbox was given. | |
8048 | if test "${enable_listbox+set}" = set; then | |
8049 | enableval="$enable_listbox" | |
8050 | ||
8051 | if test "$enableval" = yes; then | |
8052 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8053 | else | |
8054 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8055 | fi | |
8056 | ||
8057 | else | |
8058 | ||
8059 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8060 | if test "x$LINE" != x ; then | |
8061 | eval "DEFAULT_$LINE" | |
8062 | else | |
8063 | no_cache=1 | |
8064 | fi | |
8065 | ||
8066 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8067 | ||
8068 | fi; | |
8069 | ||
8070 | eval "$ac_cv_use_listbox" | |
8071 | if test "$no_cache" != 1; then | |
8072 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8073 | fi | |
8074 | ||
8075 | if test "$wxUSE_LISTBOX" = yes; then | |
8076 | echo "$as_me:$LINENO: result: yes" >&5 | |
8077 | echo "${ECHO_T}yes" >&6 | |
8078 | else | |
8079 | echo "$as_me:$LINENO: result: no" >&5 | |
8080 | echo "${ECHO_T}no" >&6 | |
8081 | fi | |
8082 | ||
8083 | ||
8084 | enablestring= | |
8085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8086 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8087 | no_cache=0 | |
8088 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8089 | if test "${enable_listctrl+set}" = set; then | |
8090 | enableval="$enable_listctrl" | |
8091 | ||
8092 | if test "$enableval" = yes; then | |
8093 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8094 | else | |
8095 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8096 | fi | |
8097 | ||
8098 | else | |
8099 | ||
8100 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8101 | if test "x$LINE" != x ; then | |
8102 | eval "DEFAULT_$LINE" | |
8103 | else | |
8104 | no_cache=1 | |
8105 | fi | |
8106 | ||
8107 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8108 | ||
8109 | fi; | |
8110 | ||
8111 | eval "$ac_cv_use_listctrl" | |
8112 | if test "$no_cache" != 1; then | |
8113 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8114 | fi | |
8115 | ||
8116 | if test "$wxUSE_LISTCTRL" = yes; then | |
8117 | echo "$as_me:$LINENO: result: yes" >&5 | |
8118 | echo "${ECHO_T}yes" >&6 | |
8119 | else | |
8120 | echo "$as_me:$LINENO: result: no" >&5 | |
8121 | echo "${ECHO_T}no" >&6 | |
8122 | fi | |
8123 | ||
8124 | ||
8125 | enablestring= | |
8126 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8127 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8128 | no_cache=0 | |
8129 | # Check whether --enable-notebook or --disable-notebook was given. | |
8130 | if test "${enable_notebook+set}" = set; then | |
8131 | enableval="$enable_notebook" | |
8132 | ||
8133 | if test "$enableval" = yes; then | |
8134 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8135 | else | |
8136 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8137 | fi | |
8138 | ||
8139 | else | |
8140 | ||
8141 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8142 | if test "x$LINE" != x ; then | |
8143 | eval "DEFAULT_$LINE" | |
8144 | else | |
8145 | no_cache=1 | |
8146 | fi | |
8147 | ||
8148 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8149 | ||
8150 | fi; | |
8151 | ||
8152 | eval "$ac_cv_use_notebook" | |
8153 | if test "$no_cache" != 1; then | |
8154 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8155 | fi | |
8156 | ||
8157 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8158 | echo "$as_me:$LINENO: result: yes" >&5 | |
8159 | echo "${ECHO_T}yes" >&6 | |
8160 | else | |
8161 | echo "$as_me:$LINENO: result: no" >&5 | |
8162 | echo "${ECHO_T}no" >&6 | |
8163 | fi | |
8164 | ||
8165 | ||
8166 | enablestring= | |
8167 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8168 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8169 | no_cache=0 | |
8170 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8171 | if test "${enable_radiobox+set}" = set; then | |
8172 | enableval="$enable_radiobox" | |
8173 | ||
8174 | if test "$enableval" = yes; then | |
8175 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8176 | else | |
8177 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8178 | fi | |
8179 | ||
8180 | else | |
8181 | ||
8182 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8183 | if test "x$LINE" != x ; then | |
8184 | eval "DEFAULT_$LINE" | |
8185 | else | |
8186 | no_cache=1 | |
8187 | fi | |
8188 | ||
8189 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8190 | ||
8191 | fi; | |
8192 | ||
8193 | eval "$ac_cv_use_radiobox" | |
8194 | if test "$no_cache" != 1; then | |
8195 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8196 | fi | |
8197 | ||
8198 | if test "$wxUSE_RADIOBOX" = yes; then | |
8199 | echo "$as_me:$LINENO: result: yes" >&5 | |
8200 | echo "${ECHO_T}yes" >&6 | |
8201 | else | |
8202 | echo "$as_me:$LINENO: result: no" >&5 | |
8203 | echo "${ECHO_T}no" >&6 | |
8204 | fi | |
8205 | ||
8206 | ||
8207 | enablestring= | |
8208 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8209 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8210 | no_cache=0 | |
8211 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8212 | if test "${enable_radiobtn+set}" = set; then | |
8213 | enableval="$enable_radiobtn" | |
8214 | ||
8215 | if test "$enableval" = yes; then | |
8216 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8217 | else | |
8218 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8219 | fi | |
8220 | ||
8221 | else | |
8222 | ||
8223 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8224 | if test "x$LINE" != x ; then | |
8225 | eval "DEFAULT_$LINE" | |
8226 | else | |
8227 | no_cache=1 | |
8228 | fi | |
8229 | ||
8230 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8231 | ||
8232 | fi; | |
8233 | ||
8234 | eval "$ac_cv_use_radiobtn" | |
8235 | if test "$no_cache" != 1; then | |
8236 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8237 | fi | |
8238 | ||
8239 | if test "$wxUSE_RADIOBTN" = yes; then | |
8240 | echo "$as_me:$LINENO: result: yes" >&5 | |
8241 | echo "${ECHO_T}yes" >&6 | |
8242 | else | |
8243 | echo "$as_me:$LINENO: result: no" >&5 | |
8244 | echo "${ECHO_T}no" >&6 | |
8245 | fi | |
8246 | ||
8247 | ||
8248 | enablestring= | |
8249 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8250 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8251 | no_cache=0 | |
8252 | # Check whether --enable-sash or --disable-sash was given. | |
8253 | if test "${enable_sash+set}" = set; then | |
8254 | enableval="$enable_sash" | |
8255 | ||
8256 | if test "$enableval" = yes; then | |
8257 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8258 | else | |
8259 | ac_cv_use_sash='wxUSE_SASH=no' | |
8260 | fi | |
8261 | ||
8262 | else | |
8263 | ||
8264 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8265 | if test "x$LINE" != x ; then | |
8266 | eval "DEFAULT_$LINE" | |
8267 | else | |
8268 | no_cache=1 | |
8269 | fi | |
8270 | ||
8271 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8272 | ||
8273 | fi; | |
8274 | ||
8275 | eval "$ac_cv_use_sash" | |
8276 | if test "$no_cache" != 1; then | |
8277 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8278 | fi | |
8279 | ||
8280 | if test "$wxUSE_SASH" = yes; then | |
8281 | echo "$as_me:$LINENO: result: yes" >&5 | |
8282 | echo "${ECHO_T}yes" >&6 | |
8283 | else | |
8284 | echo "$as_me:$LINENO: result: no" >&5 | |
8285 | echo "${ECHO_T}no" >&6 | |
8286 | fi | |
8287 | ||
8288 | ||
8289 | enablestring= | |
8290 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8291 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8292 | no_cache=0 | |
8293 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8294 | if test "${enable_scrollbar+set}" = set; then | |
8295 | enableval="$enable_scrollbar" | |
8296 | ||
8297 | if test "$enableval" = yes; then | |
8298 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8299 | else | |
8300 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8301 | fi | |
8302 | ||
8303 | else | |
8304 | ||
8305 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8306 | if test "x$LINE" != x ; then | |
8307 | eval "DEFAULT_$LINE" | |
8308 | else | |
8309 | no_cache=1 | |
8310 | fi | |
8311 | ||
8312 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8313 | ||
8314 | fi; | |
8315 | ||
8316 | eval "$ac_cv_use_scrollbar" | |
8317 | if test "$no_cache" != 1; then | |
8318 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8319 | fi | |
8320 | ||
8321 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8322 | echo "$as_me:$LINENO: result: yes" >&5 | |
8323 | echo "${ECHO_T}yes" >&6 | |
8324 | else | |
8325 | echo "$as_me:$LINENO: result: no" >&5 | |
8326 | echo "${ECHO_T}no" >&6 | |
8327 | fi | |
8328 | ||
8329 | ||
8330 | enablestring= | |
8331 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8332 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8333 | no_cache=0 | |
8334 | # Check whether --enable-slider or --disable-slider was given. | |
8335 | if test "${enable_slider+set}" = set; then | |
8336 | enableval="$enable_slider" | |
8337 | ||
8338 | if test "$enableval" = yes; then | |
8339 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8340 | else | |
8341 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8342 | fi | |
8343 | ||
8344 | else | |
8345 | ||
8346 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8347 | if test "x$LINE" != x ; then | |
8348 | eval "DEFAULT_$LINE" | |
8349 | else | |
8350 | no_cache=1 | |
8351 | fi | |
8352 | ||
8353 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8354 | ||
8355 | fi; | |
8356 | ||
8357 | eval "$ac_cv_use_slider" | |
8358 | if test "$no_cache" != 1; then | |
8359 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8360 | fi | |
8361 | ||
8362 | if test "$wxUSE_SLIDER" = yes; then | |
8363 | echo "$as_me:$LINENO: result: yes" >&5 | |
8364 | echo "${ECHO_T}yes" >&6 | |
8365 | else | |
8366 | echo "$as_me:$LINENO: result: no" >&5 | |
8367 | echo "${ECHO_T}no" >&6 | |
8368 | fi | |
8369 | ||
8370 | ||
8371 | enablestring= | |
8372 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8373 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8374 | no_cache=0 | |
8375 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8376 | if test "${enable_spinbtn+set}" = set; then | |
8377 | enableval="$enable_spinbtn" | |
8378 | ||
8379 | if test "$enableval" = yes; then | |
8380 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8381 | else | |
8382 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8383 | fi | |
8384 | ||
8385 | else | |
8386 | ||
8387 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8388 | if test "x$LINE" != x ; then | |
8389 | eval "DEFAULT_$LINE" | |
8390 | else | |
8391 | no_cache=1 | |
8392 | fi | |
8393 | ||
8394 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8395 | ||
8396 | fi; | |
8397 | ||
8398 | eval "$ac_cv_use_spinbtn" | |
8399 | if test "$no_cache" != 1; then | |
8400 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8401 | fi | |
8402 | ||
8403 | if test "$wxUSE_SPINBTN" = yes; then | |
8404 | echo "$as_me:$LINENO: result: yes" >&5 | |
8405 | echo "${ECHO_T}yes" >&6 | |
8406 | else | |
8407 | echo "$as_me:$LINENO: result: no" >&5 | |
8408 | echo "${ECHO_T}no" >&6 | |
8409 | fi | |
8410 | ||
8411 | ||
8412 | enablestring= | |
8413 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8414 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8415 | no_cache=0 | |
8416 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8417 | if test "${enable_spinctrl+set}" = set; then | |
8418 | enableval="$enable_spinctrl" | |
8419 | ||
8420 | if test "$enableval" = yes; then | |
8421 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8422 | else | |
8423 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8424 | fi | |
8425 | ||
8426 | else | |
8427 | ||
8428 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8429 | if test "x$LINE" != x ; then | |
8430 | eval "DEFAULT_$LINE" | |
8431 | else | |
8432 | no_cache=1 | |
8433 | fi | |
8434 | ||
8435 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8436 | ||
8437 | fi; | |
8438 | ||
8439 | eval "$ac_cv_use_spinctrl" | |
8440 | if test "$no_cache" != 1; then | |
8441 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8442 | fi | |
8443 | ||
8444 | if test "$wxUSE_SPINCTRL" = yes; then | |
8445 | echo "$as_me:$LINENO: result: yes" >&5 | |
8446 | echo "${ECHO_T}yes" >&6 | |
8447 | else | |
8448 | echo "$as_me:$LINENO: result: no" >&5 | |
8449 | echo "${ECHO_T}no" >&6 | |
8450 | fi | |
8451 | ||
8452 | ||
8453 | enablestring= | |
8454 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8455 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8456 | no_cache=0 | |
8457 | # Check whether --enable-splitter or --disable-splitter was given. | |
8458 | if test "${enable_splitter+set}" = set; then | |
8459 | enableval="$enable_splitter" | |
8460 | ||
8461 | if test "$enableval" = yes; then | |
8462 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8463 | else | |
8464 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8465 | fi | |
8466 | ||
8467 | else | |
8468 | ||
8469 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8470 | if test "x$LINE" != x ; then | |
8471 | eval "DEFAULT_$LINE" | |
8472 | else | |
8473 | no_cache=1 | |
8474 | fi | |
8475 | ||
8476 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8477 | ||
8478 | fi; | |
8479 | ||
8480 | eval "$ac_cv_use_splitter" | |
8481 | if test "$no_cache" != 1; then | |
8482 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8483 | fi | |
8484 | ||
8485 | if test "$wxUSE_SPLITTER" = yes; then | |
8486 | echo "$as_me:$LINENO: result: yes" >&5 | |
8487 | echo "${ECHO_T}yes" >&6 | |
8488 | else | |
8489 | echo "$as_me:$LINENO: result: no" >&5 | |
8490 | echo "${ECHO_T}no" >&6 | |
8491 | fi | |
8492 | ||
8493 | ||
8494 | enablestring= | |
8495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8496 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8497 | no_cache=0 | |
8498 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8499 | if test "${enable_statbmp+set}" = set; then | |
8500 | enableval="$enable_statbmp" | |
8501 | ||
8502 | if test "$enableval" = yes; then | |
8503 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8504 | else | |
8505 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8506 | fi | |
8507 | ||
8508 | else | |
8509 | ||
8510 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8511 | if test "x$LINE" != x ; then | |
8512 | eval "DEFAULT_$LINE" | |
8513 | else | |
8514 | no_cache=1 | |
8515 | fi | |
8516 | ||
8517 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8518 | ||
8519 | fi; | |
8520 | ||
8521 | eval "$ac_cv_use_statbmp" | |
8522 | if test "$no_cache" != 1; then | |
8523 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8524 | fi | |
8525 | ||
8526 | if test "$wxUSE_STATBMP" = yes; then | |
8527 | echo "$as_me:$LINENO: result: yes" >&5 | |
8528 | echo "${ECHO_T}yes" >&6 | |
8529 | else | |
8530 | echo "$as_me:$LINENO: result: no" >&5 | |
8531 | echo "${ECHO_T}no" >&6 | |
8532 | fi | |
8533 | ||
8534 | ||
8535 | enablestring= | |
8536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8537 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8538 | no_cache=0 | |
8539 | # Check whether --enable-statbox or --disable-statbox was given. | |
8540 | if test "${enable_statbox+set}" = set; then | |
8541 | enableval="$enable_statbox" | |
8542 | ||
8543 | if test "$enableval" = yes; then | |
8544 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8545 | else | |
8546 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8547 | fi | |
8548 | ||
8549 | else | |
8550 | ||
8551 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8552 | if test "x$LINE" != x ; then | |
8553 | eval "DEFAULT_$LINE" | |
8554 | else | |
8555 | no_cache=1 | |
8556 | fi | |
8557 | ||
8558 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8559 | ||
8560 | fi; | |
8561 | ||
8562 | eval "$ac_cv_use_statbox" | |
8563 | if test "$no_cache" != 1; then | |
8564 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8565 | fi | |
8566 | ||
8567 | if test "$wxUSE_STATBOX" = yes; then | |
8568 | echo "$as_me:$LINENO: result: yes" >&5 | |
8569 | echo "${ECHO_T}yes" >&6 | |
8570 | else | |
8571 | echo "$as_me:$LINENO: result: no" >&5 | |
8572 | echo "${ECHO_T}no" >&6 | |
8573 | fi | |
8574 | ||
8575 | ||
8576 | enablestring= | |
8577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8578 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8579 | no_cache=0 | |
8580 | # Check whether --enable-statline or --disable-statline was given. | |
8581 | if test "${enable_statline+set}" = set; then | |
8582 | enableval="$enable_statline" | |
8583 | ||
8584 | if test "$enableval" = yes; then | |
8585 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8586 | else | |
8587 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8588 | fi | |
8589 | ||
8590 | else | |
8591 | ||
8592 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8593 | if test "x$LINE" != x ; then | |
8594 | eval "DEFAULT_$LINE" | |
8595 | else | |
8596 | no_cache=1 | |
8597 | fi | |
8598 | ||
8599 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8600 | ||
8601 | fi; | |
8602 | ||
8603 | eval "$ac_cv_use_statline" | |
8604 | if test "$no_cache" != 1; then | |
8605 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8606 | fi | |
8607 | ||
8608 | if test "$wxUSE_STATLINE" = yes; then | |
8609 | echo "$as_me:$LINENO: result: yes" >&5 | |
8610 | echo "${ECHO_T}yes" >&6 | |
8611 | else | |
8612 | echo "$as_me:$LINENO: result: no" >&5 | |
8613 | echo "${ECHO_T}no" >&6 | |
8614 | fi | |
8615 | ||
8616 | ||
8617 | enablestring= | |
8618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8619 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8620 | no_cache=0 | |
8621 | # Check whether --enable-stattext or --disable-stattext was given. | |
8622 | if test "${enable_stattext+set}" = set; then | |
8623 | enableval="$enable_stattext" | |
8624 | ||
8625 | if test "$enableval" = yes; then | |
8626 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8627 | else | |
8628 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8629 | fi | |
8630 | ||
8631 | else | |
8632 | ||
8633 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8634 | if test "x$LINE" != x ; then | |
8635 | eval "DEFAULT_$LINE" | |
8636 | else | |
8637 | no_cache=1 | |
8638 | fi | |
8639 | ||
8640 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8641 | ||
8642 | fi; | |
8643 | ||
8644 | eval "$ac_cv_use_stattext" | |
8645 | if test "$no_cache" != 1; then | |
8646 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8647 | fi | |
8648 | ||
8649 | if test "$wxUSE_STATTEXT" = yes; then | |
8650 | echo "$as_me:$LINENO: result: yes" >&5 | |
8651 | echo "${ECHO_T}yes" >&6 | |
8652 | else | |
8653 | echo "$as_me:$LINENO: result: no" >&5 | |
8654 | echo "${ECHO_T}no" >&6 | |
8655 | fi | |
8656 | ||
8657 | ||
8658 | enablestring= | |
8659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8660 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8661 | no_cache=0 | |
8662 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8663 | if test "${enable_statusbar+set}" = set; then | |
8664 | enableval="$enable_statusbar" | |
8665 | ||
8666 | if test "$enableval" = yes; then | |
8667 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8668 | else | |
8669 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8670 | fi | |
8671 | ||
8672 | else | |
8673 | ||
8674 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8675 | if test "x$LINE" != x ; then | |
8676 | eval "DEFAULT_$LINE" | |
8677 | else | |
8678 | no_cache=1 | |
8679 | fi | |
8680 | ||
8681 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8682 | ||
8683 | fi; | |
8684 | ||
8685 | eval "$ac_cv_use_statusbar" | |
8686 | if test "$no_cache" != 1; then | |
8687 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8688 | fi | |
8689 | ||
8690 | if test "$wxUSE_STATUSBAR" = yes; then | |
8691 | echo "$as_me:$LINENO: result: yes" >&5 | |
8692 | echo "${ECHO_T}yes" >&6 | |
8693 | else | |
8694 | echo "$as_me:$LINENO: result: no" >&5 | |
8695 | echo "${ECHO_T}no" >&6 | |
8696 | fi | |
8697 | ||
8698 | ||
8699 | enablestring= | |
8700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8701 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8702 | no_cache=0 | |
8703 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8704 | if test "${enable_tabdialog+set}" = set; then | |
8705 | enableval="$enable_tabdialog" | |
8706 | ||
8707 | if test "$enableval" = yes; then | |
8708 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8709 | else | |
8710 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8711 | fi | |
8712 | ||
8713 | else | |
8714 | ||
8715 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8716 | if test "x$LINE" != x ; then | |
8717 | eval "DEFAULT_$LINE" | |
8718 | else | |
8719 | no_cache=1 | |
8720 | fi | |
8721 | ||
8722 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8723 | ||
8724 | fi; | |
8725 | ||
8726 | eval "$ac_cv_use_tabdialog" | |
8727 | if test "$no_cache" != 1; then | |
8728 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8729 | fi | |
8730 | ||
8731 | if test "$wxUSE_TABDIALOG" = yes; then | |
8732 | echo "$as_me:$LINENO: result: yes" >&5 | |
8733 | echo "${ECHO_T}yes" >&6 | |
8734 | else | |
8735 | echo "$as_me:$LINENO: result: no" >&5 | |
8736 | echo "${ECHO_T}no" >&6 | |
8737 | fi | |
8738 | ||
8739 | ||
8740 | enablestring= | |
8741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8742 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8743 | no_cache=0 | |
8744 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8745 | if test "${enable_textctrl+set}" = set; then | |
8746 | enableval="$enable_textctrl" | |
8747 | ||
8748 | if test "$enableval" = yes; then | |
8749 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8750 | else | |
8751 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8752 | fi | |
8753 | ||
8754 | else | |
8755 | ||
8756 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8757 | if test "x$LINE" != x ; then | |
8758 | eval "DEFAULT_$LINE" | |
8759 | else | |
8760 | no_cache=1 | |
8761 | fi | |
8762 | ||
8763 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8764 | ||
8765 | fi; | |
8766 | ||
8767 | eval "$ac_cv_use_textctrl" | |
8768 | if test "$no_cache" != 1; then | |
8769 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8770 | fi | |
8771 | ||
8772 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8773 | echo "$as_me:$LINENO: result: yes" >&5 | |
8774 | echo "${ECHO_T}yes" >&6 | |
8775 | else | |
8776 | echo "$as_me:$LINENO: result: no" >&5 | |
8777 | echo "${ECHO_T}no" >&6 | |
8778 | fi | |
8779 | ||
8780 | ||
8781 | enablestring= | |
8782 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8783 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8784 | no_cache=0 | |
8785 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8786 | if test "${enable_togglebtn+set}" = set; then | |
8787 | enableval="$enable_togglebtn" | |
8788 | ||
8789 | if test "$enableval" = yes; then | |
8790 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8791 | else | |
8792 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8793 | fi | |
8794 | ||
8795 | else | |
8796 | ||
8797 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8798 | if test "x$LINE" != x ; then | |
8799 | eval "DEFAULT_$LINE" | |
8800 | else | |
8801 | no_cache=1 | |
8802 | fi | |
8803 | ||
8804 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8805 | ||
8806 | fi; | |
8807 | ||
8808 | eval "$ac_cv_use_togglebtn" | |
8809 | if test "$no_cache" != 1; then | |
8810 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8811 | fi | |
8812 | ||
8813 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8814 | echo "$as_me:$LINENO: result: yes" >&5 | |
8815 | echo "${ECHO_T}yes" >&6 | |
8816 | else | |
8817 | echo "$as_me:$LINENO: result: no" >&5 | |
8818 | echo "${ECHO_T}no" >&6 | |
8819 | fi | |
8820 | ||
8821 | ||
8822 | enablestring= | |
8823 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8824 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8825 | no_cache=0 | |
8826 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8827 | if test "${enable_toolbar+set}" = set; then | |
8828 | enableval="$enable_toolbar" | |
8829 | ||
8830 | if test "$enableval" = yes; then | |
8831 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8832 | else | |
8833 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8834 | fi | |
8835 | ||
8836 | else | |
8837 | ||
8838 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8839 | if test "x$LINE" != x ; then | |
8840 | eval "DEFAULT_$LINE" | |
8841 | else | |
8842 | no_cache=1 | |
8843 | fi | |
8844 | ||
8845 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8846 | ||
8847 | fi; | |
8848 | ||
8849 | eval "$ac_cv_use_toolbar" | |
8850 | if test "$no_cache" != 1; then | |
8851 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8852 | fi | |
8853 | ||
8854 | if test "$wxUSE_TOOLBAR" = yes; then | |
8855 | echo "$as_me:$LINENO: result: yes" >&5 | |
8856 | echo "${ECHO_T}yes" >&6 | |
8857 | else | |
8858 | echo "$as_me:$LINENO: result: no" >&5 | |
8859 | echo "${ECHO_T}no" >&6 | |
8860 | fi | |
8861 | ||
8862 | ||
8863 | enablestring= | |
8864 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8865 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8866 | no_cache=0 | |
8867 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8868 | if test "${enable_tbarnative+set}" = set; then | |
8869 | enableval="$enable_tbarnative" | |
8870 | ||
8871 | if test "$enableval" = yes; then | |
8872 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8873 | else | |
8874 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8875 | fi | |
8876 | ||
8877 | else | |
8878 | ||
8879 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8880 | if test "x$LINE" != x ; then | |
8881 | eval "DEFAULT_$LINE" | |
8882 | else | |
8883 | no_cache=1 | |
8884 | fi | |
8885 | ||
8886 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8887 | ||
8888 | fi; | |
8889 | ||
8890 | eval "$ac_cv_use_tbarnative" | |
8891 | if test "$no_cache" != 1; then | |
8892 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8893 | fi | |
8894 | ||
8895 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8896 | echo "$as_me:$LINENO: result: yes" >&5 | |
8897 | echo "${ECHO_T}yes" >&6 | |
8898 | else | |
8899 | echo "$as_me:$LINENO: result: no" >&5 | |
8900 | echo "${ECHO_T}no" >&6 | |
8901 | fi | |
8902 | ||
8903 | ||
8904 | enablestring= | |
8905 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8906 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8907 | no_cache=0 | |
8908 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8909 | if test "${enable_tbarsmpl+set}" = set; then | |
8910 | enableval="$enable_tbarsmpl" | |
8911 | ||
8912 | if test "$enableval" = yes; then | |
8913 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8914 | else | |
8915 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8916 | fi | |
8917 | ||
8918 | else | |
8919 | ||
8920 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8921 | if test "x$LINE" != x ; then | |
8922 | eval "DEFAULT_$LINE" | |
8923 | else | |
8924 | no_cache=1 | |
8925 | fi | |
8926 | ||
8927 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8928 | ||
8929 | fi; | |
8930 | ||
8931 | eval "$ac_cv_use_tbarsmpl" | |
8932 | if test "$no_cache" != 1; then | |
8933 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8934 | fi | |
8935 | ||
8936 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8937 | echo "$as_me:$LINENO: result: yes" >&5 | |
8938 | echo "${ECHO_T}yes" >&6 | |
8939 | else | |
8940 | echo "$as_me:$LINENO: result: no" >&5 | |
8941 | echo "${ECHO_T}no" >&6 | |
8942 | fi | |
8943 | ||
8944 | ||
8945 | enablestring= | |
8946 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8947 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8948 | no_cache=0 | |
8949 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8950 | if test "${enable_treectrl+set}" = set; then | |
8951 | enableval="$enable_treectrl" | |
8952 | ||
8953 | if test "$enableval" = yes; then | |
8954 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8955 | else | |
8956 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8957 | fi | |
8958 | ||
8959 | else | |
8960 | ||
8961 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8962 | if test "x$LINE" != x ; then | |
8963 | eval "DEFAULT_$LINE" | |
8964 | else | |
8965 | no_cache=1 | |
8966 | fi | |
8967 | ||
8968 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8969 | ||
8970 | fi; | |
8971 | ||
8972 | eval "$ac_cv_use_treectrl" | |
8973 | if test "$no_cache" != 1; then | |
8974 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8975 | fi | |
8976 | ||
8977 | if test "$wxUSE_TREECTRL" = yes; then | |
8978 | echo "$as_me:$LINENO: result: yes" >&5 | |
8979 | echo "${ECHO_T}yes" >&6 | |
8980 | else | |
8981 | echo "$as_me:$LINENO: result: no" >&5 | |
8982 | echo "${ECHO_T}no" >&6 | |
8983 | fi | |
8984 | ||
8985 | ||
8986 | enablestring= | |
8987 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8988 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8989 | no_cache=0 | |
8990 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8991 | if test "${enable_tipwindow+set}" = set; then | |
8992 | enableval="$enable_tipwindow" | |
8993 | ||
8994 | if test "$enableval" = yes; then | |
8995 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8996 | else | |
8997 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8998 | fi | |
8999 | ||
9000 | else | |
9001 | ||
9002 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9003 | if test "x$LINE" != x ; then | |
9004 | eval "DEFAULT_$LINE" | |
9005 | else | |
9006 | no_cache=1 | |
9007 | fi | |
9008 | ||
9009 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9010 | ||
9011 | fi; | |
9012 | ||
9013 | eval "$ac_cv_use_tipwindow" | |
9014 | if test "$no_cache" != 1; then | |
9015 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9016 | fi | |
9017 | ||
9018 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9019 | echo "$as_me:$LINENO: result: yes" >&5 | |
9020 | echo "${ECHO_T}yes" >&6 | |
9021 | else | |
9022 | echo "$as_me:$LINENO: result: no" >&5 | |
9023 | echo "${ECHO_T}no" >&6 | |
9024 | fi | |
9025 | ||
9026 | ||
9027 | enablestring= | |
9028 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9029 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9030 | no_cache=0 | |
9031 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9032 | if test "${enable_popupwin+set}" = set; then | |
9033 | enableval="$enable_popupwin" | |
9034 | ||
9035 | if test "$enableval" = yes; then | |
9036 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9037 | else | |
9038 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9039 | fi | |
9040 | ||
9041 | else | |
9042 | ||
9043 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9044 | if test "x$LINE" != x ; then | |
9045 | eval "DEFAULT_$LINE" | |
9046 | else | |
9047 | no_cache=1 | |
9048 | fi | |
9049 | ||
9050 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9051 | ||
9052 | fi; | |
9053 | ||
9054 | eval "$ac_cv_use_popupwin" | |
9055 | if test "$no_cache" != 1; then | |
9056 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9057 | fi | |
9058 | ||
9059 | if test "$wxUSE_POPUPWIN" = yes; then | |
9060 | echo "$as_me:$LINENO: result: yes" >&5 | |
9061 | echo "${ECHO_T}yes" >&6 | |
9062 | else | |
9063 | echo "$as_me:$LINENO: result: no" >&5 | |
9064 | echo "${ECHO_T}no" >&6 | |
9065 | fi | |
9066 | ||
9067 | ||
9068 | ||
9069 | ||
9070 | enablestring= | |
9071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9072 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9073 | no_cache=0 | |
9074 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9075 | if test "${enable_commondlg+set}" = set; then | |
9076 | enableval="$enable_commondlg" | |
9077 | ||
9078 | if test "$enableval" = yes; then | |
9079 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9080 | else | |
9081 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9082 | fi | |
9083 | ||
9084 | else | |
9085 | ||
9086 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9087 | if test "x$LINE" != x ; then | |
9088 | eval "DEFAULT_$LINE" | |
9089 | else | |
9090 | no_cache=1 | |
9091 | fi | |
9092 | ||
9093 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9094 | ||
9095 | fi; | |
9096 | ||
9097 | eval "$ac_cv_use_commondlg" | |
9098 | if test "$no_cache" != 1; then | |
9099 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9100 | fi | |
9101 | ||
9102 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9103 | echo "$as_me:$LINENO: result: yes" >&5 | |
9104 | echo "${ECHO_T}yes" >&6 | |
9105 | else | |
9106 | echo "$as_me:$LINENO: result: no" >&5 | |
9107 | echo "${ECHO_T}no" >&6 | |
9108 | fi | |
9109 | ||
9110 | ||
9111 | enablestring= | |
9112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9113 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9114 | no_cache=0 | |
9115 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9116 | if test "${enable_choicedlg+set}" = set; then | |
9117 | enableval="$enable_choicedlg" | |
9118 | ||
9119 | if test "$enableval" = yes; then | |
9120 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9121 | else | |
9122 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9123 | fi | |
9124 | ||
9125 | else | |
9126 | ||
9127 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9128 | if test "x$LINE" != x ; then | |
9129 | eval "DEFAULT_$LINE" | |
9130 | else | |
9131 | no_cache=1 | |
9132 | fi | |
9133 | ||
9134 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9135 | ||
9136 | fi; | |
9137 | ||
9138 | eval "$ac_cv_use_choicedlg" | |
9139 | if test "$no_cache" != 1; then | |
9140 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9141 | fi | |
9142 | ||
9143 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9144 | echo "$as_me:$LINENO: result: yes" >&5 | |
9145 | echo "${ECHO_T}yes" >&6 | |
9146 | else | |
9147 | echo "$as_me:$LINENO: result: no" >&5 | |
9148 | echo "${ECHO_T}no" >&6 | |
9149 | fi | |
9150 | ||
9151 | ||
9152 | enablestring= | |
9153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9154 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9155 | no_cache=0 | |
9156 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9157 | if test "${enable_coldlg+set}" = set; then | |
9158 | enableval="$enable_coldlg" | |
9159 | ||
9160 | if test "$enableval" = yes; then | |
9161 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9162 | else | |
9163 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9164 | fi | |
9165 | ||
9166 | else | |
9167 | ||
9168 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9169 | if test "x$LINE" != x ; then | |
9170 | eval "DEFAULT_$LINE" | |
9171 | else | |
9172 | no_cache=1 | |
9173 | fi | |
9174 | ||
9175 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9176 | ||
9177 | fi; | |
9178 | ||
9179 | eval "$ac_cv_use_coldlg" | |
9180 | if test "$no_cache" != 1; then | |
9181 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9182 | fi | |
9183 | ||
9184 | if test "$wxUSE_COLOURDLG" = yes; then | |
9185 | echo "$as_me:$LINENO: result: yes" >&5 | |
9186 | echo "${ECHO_T}yes" >&6 | |
9187 | else | |
9188 | echo "$as_me:$LINENO: result: no" >&5 | |
9189 | echo "${ECHO_T}no" >&6 | |
9190 | fi | |
9191 | ||
9192 | ||
9193 | enablestring= | |
9194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9195 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9196 | no_cache=0 | |
9197 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9198 | if test "${enable_filedlg+set}" = set; then | |
9199 | enableval="$enable_filedlg" | |
9200 | ||
9201 | if test "$enableval" = yes; then | |
9202 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9203 | else | |
9204 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9205 | fi | |
9206 | ||
9207 | else | |
9208 | ||
9209 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9210 | if test "x$LINE" != x ; then | |
9211 | eval "DEFAULT_$LINE" | |
9212 | else | |
9213 | no_cache=1 | |
9214 | fi | |
9215 | ||
9216 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9217 | ||
9218 | fi; | |
9219 | ||
9220 | eval "$ac_cv_use_filedlg" | |
9221 | if test "$no_cache" != 1; then | |
9222 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9223 | fi | |
9224 | ||
9225 | if test "$wxUSE_FILEDLG" = yes; then | |
9226 | echo "$as_me:$LINENO: result: yes" >&5 | |
9227 | echo "${ECHO_T}yes" >&6 | |
9228 | else | |
9229 | echo "$as_me:$LINENO: result: no" >&5 | |
9230 | echo "${ECHO_T}no" >&6 | |
9231 | fi | |
9232 | ||
9233 | ||
9234 | enablestring= | |
9235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9236 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9237 | no_cache=0 | |
9238 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9239 | if test "${enable_finddlg+set}" = set; then | |
9240 | enableval="$enable_finddlg" | |
9241 | ||
9242 | if test "$enableval" = yes; then | |
9243 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9244 | else | |
9245 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9246 | fi | |
9247 | ||
9248 | else | |
9249 | ||
9250 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9251 | if test "x$LINE" != x ; then | |
9252 | eval "DEFAULT_$LINE" | |
9253 | else | |
9254 | no_cache=1 | |
9255 | fi | |
9256 | ||
9257 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9258 | ||
9259 | fi; | |
9260 | ||
9261 | eval "$ac_cv_use_finddlg" | |
9262 | if test "$no_cache" != 1; then | |
9263 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9264 | fi | |
9265 | ||
9266 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9267 | echo "$as_me:$LINENO: result: yes" >&5 | |
9268 | echo "${ECHO_T}yes" >&6 | |
9269 | else | |
9270 | echo "$as_me:$LINENO: result: no" >&5 | |
9271 | echo "${ECHO_T}no" >&6 | |
9272 | fi | |
9273 | ||
9274 | ||
9275 | enablestring= | |
9276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9277 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9278 | no_cache=0 | |
9279 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9280 | if test "${enable_fontdlg+set}" = set; then | |
9281 | enableval="$enable_fontdlg" | |
9282 | ||
9283 | if test "$enableval" = yes; then | |
9284 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9285 | else | |
9286 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9287 | fi | |
9288 | ||
9289 | else | |
9290 | ||
9291 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9292 | if test "x$LINE" != x ; then | |
9293 | eval "DEFAULT_$LINE" | |
9294 | else | |
9295 | no_cache=1 | |
9296 | fi | |
9297 | ||
9298 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9299 | ||
9300 | fi; | |
9301 | ||
9302 | eval "$ac_cv_use_fontdlg" | |
9303 | if test "$no_cache" != 1; then | |
9304 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9305 | fi | |
9306 | ||
9307 | if test "$wxUSE_FONTDLG" = yes; then | |
9308 | echo "$as_me:$LINENO: result: yes" >&5 | |
9309 | echo "${ECHO_T}yes" >&6 | |
9310 | else | |
9311 | echo "$as_me:$LINENO: result: no" >&5 | |
9312 | echo "${ECHO_T}no" >&6 | |
9313 | fi | |
9314 | ||
9315 | ||
9316 | enablestring= | |
9317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9318 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9319 | no_cache=0 | |
9320 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9321 | if test "${enable_dirdlg+set}" = set; then | |
9322 | enableval="$enable_dirdlg" | |
9323 | ||
9324 | if test "$enableval" = yes; then | |
9325 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9326 | else | |
9327 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9328 | fi | |
9329 | ||
9330 | else | |
9331 | ||
9332 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9333 | if test "x$LINE" != x ; then | |
9334 | eval "DEFAULT_$LINE" | |
9335 | else | |
9336 | no_cache=1 | |
9337 | fi | |
9338 | ||
9339 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9340 | ||
9341 | fi; | |
9342 | ||
9343 | eval "$ac_cv_use_dirdlg" | |
9344 | if test "$no_cache" != 1; then | |
9345 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9346 | fi | |
9347 | ||
9348 | if test "$wxUSE_DIRDLG" = yes; then | |
9349 | echo "$as_me:$LINENO: result: yes" >&5 | |
9350 | echo "${ECHO_T}yes" >&6 | |
9351 | else | |
9352 | echo "$as_me:$LINENO: result: no" >&5 | |
9353 | echo "${ECHO_T}no" >&6 | |
9354 | fi | |
9355 | ||
9356 | ||
9357 | enablestring= | |
9358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9359 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9360 | no_cache=0 | |
9361 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9362 | if test "${enable_msgdlg+set}" = set; then | |
9363 | enableval="$enable_msgdlg" | |
9364 | ||
9365 | if test "$enableval" = yes; then | |
9366 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9367 | else | |
9368 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9369 | fi | |
9370 | ||
9371 | else | |
9372 | ||
9373 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9374 | if test "x$LINE" != x ; then | |
9375 | eval "DEFAULT_$LINE" | |
9376 | else | |
9377 | no_cache=1 | |
9378 | fi | |
9379 | ||
9380 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9381 | ||
9382 | fi; | |
9383 | ||
9384 | eval "$ac_cv_use_msgdlg" | |
9385 | if test "$no_cache" != 1; then | |
9386 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9387 | fi | |
9388 | ||
9389 | if test "$wxUSE_MSGDLG" = yes; then | |
9390 | echo "$as_me:$LINENO: result: yes" >&5 | |
9391 | echo "${ECHO_T}yes" >&6 | |
9392 | else | |
9393 | echo "$as_me:$LINENO: result: no" >&5 | |
9394 | echo "${ECHO_T}no" >&6 | |
9395 | fi | |
9396 | ||
9397 | ||
9398 | enablestring= | |
9399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9400 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9401 | no_cache=0 | |
9402 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9403 | if test "${enable_numberdlg+set}" = set; then | |
9404 | enableval="$enable_numberdlg" | |
9405 | ||
9406 | if test "$enableval" = yes; then | |
9407 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9408 | else | |
9409 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9410 | fi | |
9411 | ||
9412 | else | |
9413 | ||
9414 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9415 | if test "x$LINE" != x ; then | |
9416 | eval "DEFAULT_$LINE" | |
9417 | else | |
9418 | no_cache=1 | |
9419 | fi | |
9420 | ||
9421 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9422 | ||
9423 | fi; | |
9424 | ||
9425 | eval "$ac_cv_use_numberdlg" | |
9426 | if test "$no_cache" != 1; then | |
9427 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9428 | fi | |
9429 | ||
9430 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9431 | echo "$as_me:$LINENO: result: yes" >&5 | |
9432 | echo "${ECHO_T}yes" >&6 | |
9433 | else | |
9434 | echo "$as_me:$LINENO: result: no" >&5 | |
9435 | echo "${ECHO_T}no" >&6 | |
9436 | fi | |
9437 | ||
9438 | ||
9439 | enablestring= | |
9440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9441 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9442 | no_cache=0 | |
9443 | # Check whether --enable-splash or --disable-splash was given. | |
9444 | if test "${enable_splash+set}" = set; then | |
9445 | enableval="$enable_splash" | |
9446 | ||
9447 | if test "$enableval" = yes; then | |
9448 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9449 | else | |
9450 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9451 | fi | |
9452 | ||
9453 | else | |
9454 | ||
9455 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9456 | if test "x$LINE" != x ; then | |
9457 | eval "DEFAULT_$LINE" | |
9458 | else | |
9459 | no_cache=1 | |
9460 | fi | |
9461 | ||
9462 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9463 | ||
9464 | fi; | |
9465 | ||
9466 | eval "$ac_cv_use_splash" | |
9467 | if test "$no_cache" != 1; then | |
9468 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9469 | fi | |
9470 | ||
9471 | if test "$wxUSE_SPLASH" = yes; then | |
9472 | echo "$as_me:$LINENO: result: yes" >&5 | |
9473 | echo "${ECHO_T}yes" >&6 | |
9474 | else | |
9475 | echo "$as_me:$LINENO: result: no" >&5 | |
9476 | echo "${ECHO_T}no" >&6 | |
9477 | fi | |
9478 | ||
9479 | ||
9480 | enablestring= | |
9481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9482 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9483 | no_cache=0 | |
9484 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9485 | if test "${enable_textdlg+set}" = set; then | |
9486 | enableval="$enable_textdlg" | |
9487 | ||
9488 | if test "$enableval" = yes; then | |
9489 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9490 | else | |
9491 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9492 | fi | |
9493 | ||
9494 | else | |
9495 | ||
9496 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9497 | if test "x$LINE" != x ; then | |
9498 | eval "DEFAULT_$LINE" | |
9499 | else | |
9500 | no_cache=1 | |
9501 | fi | |
9502 | ||
9503 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9504 | ||
9505 | fi; | |
9506 | ||
9507 | eval "$ac_cv_use_textdlg" | |
9508 | if test "$no_cache" != 1; then | |
9509 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9510 | fi | |
9511 | ||
9512 | if test "$wxUSE_TEXTDLG" = yes; then | |
9513 | echo "$as_me:$LINENO: result: yes" >&5 | |
9514 | echo "${ECHO_T}yes" >&6 | |
9515 | else | |
9516 | echo "$as_me:$LINENO: result: no" >&5 | |
9517 | echo "${ECHO_T}no" >&6 | |
9518 | fi | |
9519 | ||
9520 | ||
9521 | enablestring= | |
9522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9523 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9524 | no_cache=0 | |
9525 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9526 | if test "${enable_tipdlg+set}" = set; then | |
9527 | enableval="$enable_tipdlg" | |
9528 | ||
9529 | if test "$enableval" = yes; then | |
9530 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9531 | else | |
9532 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9533 | fi | |
9534 | ||
9535 | else | |
9536 | ||
9537 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9538 | if test "x$LINE" != x ; then | |
9539 | eval "DEFAULT_$LINE" | |
9540 | else | |
9541 | no_cache=1 | |
9542 | fi | |
9543 | ||
9544 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9545 | ||
9546 | fi; | |
9547 | ||
9548 | eval "$ac_cv_use_tipdlg" | |
9549 | if test "$no_cache" != 1; then | |
9550 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9551 | fi | |
9552 | ||
9553 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9554 | echo "$as_me:$LINENO: result: yes" >&5 | |
9555 | echo "${ECHO_T}yes" >&6 | |
9556 | else | |
9557 | echo "$as_me:$LINENO: result: no" >&5 | |
9558 | echo "${ECHO_T}no" >&6 | |
9559 | fi | |
9560 | ||
9561 | ||
9562 | enablestring= | |
9563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9564 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9565 | no_cache=0 | |
9566 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9567 | if test "${enable_progressdlg+set}" = set; then | |
9568 | enableval="$enable_progressdlg" | |
9569 | ||
9570 | if test "$enableval" = yes; then | |
9571 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9572 | else | |
9573 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9574 | fi | |
9575 | ||
9576 | else | |
9577 | ||
9578 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9579 | if test "x$LINE" != x ; then | |
9580 | eval "DEFAULT_$LINE" | |
9581 | else | |
9582 | no_cache=1 | |
9583 | fi | |
9584 | ||
9585 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9586 | ||
9587 | fi; | |
9588 | ||
9589 | eval "$ac_cv_use_progressdlg" | |
9590 | if test "$no_cache" != 1; then | |
9591 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9592 | fi | |
9593 | ||
9594 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9595 | echo "$as_me:$LINENO: result: yes" >&5 | |
9596 | echo "${ECHO_T}yes" >&6 | |
9597 | else | |
9598 | echo "$as_me:$LINENO: result: no" >&5 | |
9599 | echo "${ECHO_T}no" >&6 | |
9600 | fi | |
9601 | ||
9602 | ||
9603 | enablestring= | |
9604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9605 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9606 | no_cache=0 | |
9607 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9608 | if test "${enable_wizarddlg+set}" = set; then | |
9609 | enableval="$enable_wizarddlg" | |
9610 | ||
9611 | if test "$enableval" = yes; then | |
9612 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9613 | else | |
9614 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9615 | fi | |
9616 | ||
9617 | else | |
9618 | ||
9619 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9620 | if test "x$LINE" != x ; then | |
9621 | eval "DEFAULT_$LINE" | |
9622 | else | |
9623 | no_cache=1 | |
9624 | fi | |
9625 | ||
9626 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9627 | ||
9628 | fi; | |
9629 | ||
9630 | eval "$ac_cv_use_wizarddlg" | |
9631 | if test "$no_cache" != 1; then | |
9632 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9633 | fi | |
9634 | ||
9635 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9636 | echo "$as_me:$LINENO: result: yes" >&5 | |
9637 | echo "${ECHO_T}yes" >&6 | |
9638 | else | |
9639 | echo "$as_me:$LINENO: result: no" >&5 | |
9640 | echo "${ECHO_T}no" >&6 | |
9641 | fi | |
9642 | ||
9643 | ||
9644 | ||
9645 | ||
9646 | enablestring= | |
9647 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9648 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9649 | no_cache=0 | |
9650 | # Check whether --enable-menus or --disable-menus was given. | |
9651 | if test "${enable_menus+set}" = set; then | |
9652 | enableval="$enable_menus" | |
9653 | ||
9654 | if test "$enableval" = yes; then | |
9655 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9656 | else | |
9657 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9658 | fi | |
9659 | ||
9660 | else | |
9661 | ||
9662 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9663 | if test "x$LINE" != x ; then | |
9664 | eval "DEFAULT_$LINE" | |
9665 | else | |
9666 | no_cache=1 | |
9667 | fi | |
9668 | ||
9669 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9670 | ||
9671 | fi; | |
9672 | ||
9673 | eval "$ac_cv_use_menus" | |
9674 | if test "$no_cache" != 1; then | |
9675 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9676 | fi | |
9677 | ||
9678 | if test "$wxUSE_MENUS" = yes; then | |
9679 | echo "$as_me:$LINENO: result: yes" >&5 | |
9680 | echo "${ECHO_T}yes" >&6 | |
9681 | else | |
9682 | echo "$as_me:$LINENO: result: no" >&5 | |
9683 | echo "${ECHO_T}no" >&6 | |
9684 | fi | |
9685 | ||
9686 | ||
9687 | enablestring= | |
9688 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9689 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9690 | no_cache=0 | |
9691 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9692 | if test "${enable_miniframe+set}" = set; then | |
9693 | enableval="$enable_miniframe" | |
9694 | ||
9695 | if test "$enableval" = yes; then | |
9696 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9697 | else | |
9698 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9699 | fi | |
9700 | ||
9701 | else | |
9702 | ||
9703 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9704 | if test "x$LINE" != x ; then | |
9705 | eval "DEFAULT_$LINE" | |
9706 | else | |
9707 | no_cache=1 | |
9708 | fi | |
9709 | ||
9710 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9711 | ||
9712 | fi; | |
9713 | ||
9714 | eval "$ac_cv_use_miniframe" | |
9715 | if test "$no_cache" != 1; then | |
9716 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9717 | fi | |
9718 | ||
9719 | if test "$wxUSE_MINIFRAME" = yes; then | |
9720 | echo "$as_me:$LINENO: result: yes" >&5 | |
9721 | echo "${ECHO_T}yes" >&6 | |
9722 | else | |
9723 | echo "$as_me:$LINENO: result: no" >&5 | |
9724 | echo "${ECHO_T}no" >&6 | |
9725 | fi | |
9726 | ||
9727 | ||
9728 | enablestring= | |
9729 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9730 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9731 | no_cache=0 | |
9732 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9733 | if test "${enable_tooltips+set}" = set; then | |
9734 | enableval="$enable_tooltips" | |
9735 | ||
9736 | if test "$enableval" = yes; then | |
9737 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9738 | else | |
9739 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9740 | fi | |
9741 | ||
9742 | else | |
9743 | ||
9744 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9745 | if test "x$LINE" != x ; then | |
9746 | eval "DEFAULT_$LINE" | |
9747 | else | |
9748 | no_cache=1 | |
9749 | fi | |
9750 | ||
9751 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9752 | ||
9753 | fi; | |
9754 | ||
9755 | eval "$ac_cv_use_tooltips" | |
9756 | if test "$no_cache" != 1; then | |
9757 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9758 | fi | |
9759 | ||
9760 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9761 | echo "$as_me:$LINENO: result: yes" >&5 | |
9762 | echo "${ECHO_T}yes" >&6 | |
9763 | else | |
9764 | echo "$as_me:$LINENO: result: no" >&5 | |
9765 | echo "${ECHO_T}no" >&6 | |
9766 | fi | |
9767 | ||
9768 | ||
9769 | enablestring= | |
9770 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9771 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9772 | no_cache=0 | |
9773 | # Check whether --enable-splines or --disable-splines was given. | |
9774 | if test "${enable_splines+set}" = set; then | |
9775 | enableval="$enable_splines" | |
9776 | ||
9777 | if test "$enableval" = yes; then | |
9778 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9779 | else | |
9780 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9781 | fi | |
9782 | ||
9783 | else | |
9784 | ||
9785 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9786 | if test "x$LINE" != x ; then | |
9787 | eval "DEFAULT_$LINE" | |
9788 | else | |
9789 | no_cache=1 | |
9790 | fi | |
9791 | ||
9792 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9793 | ||
9794 | fi; | |
9795 | ||
9796 | eval "$ac_cv_use_splines" | |
9797 | if test "$no_cache" != 1; then | |
9798 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9799 | fi | |
9800 | ||
9801 | if test "$wxUSE_SPLINES" = yes; then | |
9802 | echo "$as_me:$LINENO: result: yes" >&5 | |
9803 | echo "${ECHO_T}yes" >&6 | |
9804 | else | |
9805 | echo "$as_me:$LINENO: result: no" >&5 | |
9806 | echo "${ECHO_T}no" >&6 | |
9807 | fi | |
9808 | ||
9809 | ||
fbe2ca43 SN |
9810 | enablestring= |
9811 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9812 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9813 | no_cache=0 | |
9814 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9815 | if test "${enable_mousewheel+set}" = set; then | |
9816 | enableval="$enable_mousewheel" | |
9817 | ||
9818 | if test "$enableval" = yes; then | |
9819 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9820 | else | |
9821 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9822 | fi | |
9823 | ||
9824 | else | |
9825 | ||
9826 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9827 | if test "x$LINE" != x ; then | |
9828 | eval "DEFAULT_$LINE" | |
9829 | else | |
9830 | no_cache=1 | |
9831 | fi | |
9832 | ||
9833 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9834 | ||
9835 | fi; | |
9836 | ||
9837 | eval "$ac_cv_use_mousewheel" | |
9838 | if test "$no_cache" != 1; then | |
9839 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9840 | fi | |
9841 | ||
9842 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9843 | echo "$as_me:$LINENO: result: yes" >&5 | |
9844 | echo "${ECHO_T}yes" >&6 | |
9845 | else | |
9846 | echo "$as_me:$LINENO: result: no" >&5 | |
9847 | echo "${ECHO_T}no" >&6 | |
9848 | fi | |
9849 | ||
9850 | ||
a848cd7e SC |
9851 | enablestring= |
9852 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9853 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9854 | no_cache=0 | |
9855 | # Check whether --enable-validators or --disable-validators was given. | |
9856 | if test "${enable_validators+set}" = set; then | |
9857 | enableval="$enable_validators" | |
9858 | ||
9859 | if test "$enableval" = yes; then | |
9860 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9861 | else | |
9862 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9863 | fi | |
9864 | ||
9865 | else | |
9866 | ||
9867 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9868 | if test "x$LINE" != x ; then | |
9869 | eval "DEFAULT_$LINE" | |
9870 | else | |
9871 | no_cache=1 | |
9872 | fi | |
9873 | ||
9874 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9875 | ||
9876 | fi; | |
9877 | ||
9878 | eval "$ac_cv_use_validators" | |
9879 | if test "$no_cache" != 1; then | |
9880 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9881 | fi | |
9882 | ||
9883 | if test "$wxUSE_VALIDATORS" = yes; then | |
9884 | echo "$as_me:$LINENO: result: yes" >&5 | |
9885 | echo "${ECHO_T}yes" >&6 | |
9886 | else | |
9887 | echo "$as_me:$LINENO: result: no" >&5 | |
9888 | echo "${ECHO_T}no" >&6 | |
9889 | fi | |
9890 | ||
9891 | ||
9892 | enablestring= | |
9893 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9894 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9895 | no_cache=0 | |
9896 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9897 | if test "${enable_busyinfo+set}" = set; then | |
9898 | enableval="$enable_busyinfo" | |
9899 | ||
9900 | if test "$enableval" = yes; then | |
9901 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9902 | else | |
9903 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9904 | fi | |
9905 | ||
9906 | else | |
9907 | ||
9908 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9909 | if test "x$LINE" != x ; then | |
9910 | eval "DEFAULT_$LINE" | |
9911 | else | |
9912 | no_cache=1 | |
9913 | fi | |
9914 | ||
9915 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9916 | ||
9917 | fi; | |
9918 | ||
9919 | eval "$ac_cv_use_busyinfo" | |
9920 | if test "$no_cache" != 1; then | |
9921 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9922 | fi | |
9923 | ||
9924 | if test "$wxUSE_BUSYINFO" = yes; then | |
9925 | echo "$as_me:$LINENO: result: yes" >&5 | |
9926 | echo "${ECHO_T}yes" >&6 | |
9927 | else | |
9928 | echo "$as_me:$LINENO: result: no" >&5 | |
9929 | echo "${ECHO_T}no" >&6 | |
9930 | fi | |
9931 | ||
9932 | ||
9933 | enablestring= | |
9934 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9935 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9936 | no_cache=0 | |
9937 | # Check whether --enable-joystick or --disable-joystick was given. | |
9938 | if test "${enable_joystick+set}" = set; then | |
9939 | enableval="$enable_joystick" | |
9940 | ||
9941 | if test "$enableval" = yes; then | |
9942 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9943 | else | |
9944 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9945 | fi | |
9946 | ||
9947 | else | |
9948 | ||
9949 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9950 | if test "x$LINE" != x ; then | |
9951 | eval "DEFAULT_$LINE" | |
9952 | else | |
9953 | no_cache=1 | |
9954 | fi | |
9955 | ||
9956 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9957 | ||
9958 | fi; | |
9959 | ||
9960 | eval "$ac_cv_use_joystick" | |
9961 | if test "$no_cache" != 1; then | |
9962 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9963 | fi | |
9964 | ||
9965 | if test "$wxUSE_JOYSTICK" = yes; then | |
9966 | echo "$as_me:$LINENO: result: yes" >&5 | |
9967 | echo "${ECHO_T}yes" >&6 | |
9968 | else | |
9969 | echo "$as_me:$LINENO: result: no" >&5 | |
9970 | echo "${ECHO_T}no" >&6 | |
9971 | fi | |
9972 | ||
9973 | ||
9974 | enablestring= | |
9975 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9976 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9977 | no_cache=0 | |
9978 | # Check whether --enable-metafile or --disable-metafile was given. | |
9979 | if test "${enable_metafile+set}" = set; then | |
9980 | enableval="$enable_metafile" | |
9981 | ||
9982 | if test "$enableval" = yes; then | |
9983 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9984 | else | |
9985 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9986 | fi | |
9987 | ||
9988 | else | |
9989 | ||
9990 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9991 | if test "x$LINE" != x ; then | |
9992 | eval "DEFAULT_$LINE" | |
9993 | else | |
9994 | no_cache=1 | |
9995 | fi | |
9996 | ||
9997 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9998 | ||
9999 | fi; | |
10000 | ||
10001 | eval "$ac_cv_use_metafile" | |
10002 | if test "$no_cache" != 1; then | |
10003 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10004 | fi | |
10005 | ||
10006 | if test "$wxUSE_METAFILE" = yes; then | |
10007 | echo "$as_me:$LINENO: result: yes" >&5 | |
10008 | echo "${ECHO_T}yes" >&6 | |
10009 | else | |
10010 | echo "$as_me:$LINENO: result: no" >&5 | |
10011 | echo "${ECHO_T}no" >&6 | |
10012 | fi | |
10013 | ||
10014 | ||
10015 | enablestring= | |
10016 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10017 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10018 | no_cache=0 | |
10019 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10020 | if test "${enable_dragimage+set}" = set; then | |
10021 | enableval="$enable_dragimage" | |
10022 | ||
10023 | if test "$enableval" = yes; then | |
10024 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10025 | else | |
10026 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10027 | fi | |
10028 | ||
10029 | else | |
10030 | ||
10031 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10032 | if test "x$LINE" != x ; then | |
10033 | eval "DEFAULT_$LINE" | |
10034 | else | |
10035 | no_cache=1 | |
10036 | fi | |
10037 | ||
10038 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10039 | ||
10040 | fi; | |
10041 | ||
10042 | eval "$ac_cv_use_dragimage" | |
10043 | if test "$no_cache" != 1; then | |
10044 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10045 | fi | |
10046 | ||
10047 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10048 | echo "$as_me:$LINENO: result: yes" >&5 | |
10049 | echo "${ECHO_T}yes" >&6 | |
10050 | else | |
10051 | echo "$as_me:$LINENO: result: no" >&5 | |
10052 | echo "${ECHO_T}no" >&6 | |
10053 | fi | |
10054 | ||
10055 | ||
10056 | enablestring= | |
10057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10058 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10059 | no_cache=0 | |
10060 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10061 | if test "${enable_accessibility+set}" = set; then | |
10062 | enableval="$enable_accessibility" | |
10063 | ||
10064 | if test "$enableval" = yes; then | |
10065 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10066 | else | |
10067 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10068 | fi | |
10069 | ||
10070 | else | |
10071 | ||
10072 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10073 | if test "x$LINE" != x ; then | |
10074 | eval "DEFAULT_$LINE" | |
10075 | else | |
10076 | no_cache=1 | |
10077 | fi | |
10078 | ||
10079 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10080 | ||
10081 | fi; | |
10082 | ||
10083 | eval "$ac_cv_use_accessibility" | |
10084 | if test "$no_cache" != 1; then | |
10085 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10086 | fi | |
10087 | ||
10088 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10089 | echo "$as_me:$LINENO: result: yes" >&5 | |
10090 | echo "${ECHO_T}yes" >&6 | |
10091 | else | |
10092 | echo "$as_me:$LINENO: result: no" >&5 | |
10093 | echo "${ECHO_T}no" >&6 | |
10094 | fi | |
10095 | ||
10096 | ||
38b4a946 VZ |
10097 | if test "$wxUSE_MSW" = "1"; then |
10098 | ||
10099 | enablestring= | |
10100 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10101 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10102 | no_cache=0 | |
10103 | # Check whether --enable-dccache or --disable-dccache was given. | |
10104 | if test "${enable_dccache+set}" = set; then | |
10105 | enableval="$enable_dccache" | |
10106 | ||
10107 | if test "$enableval" = yes; then | |
10108 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10109 | else | |
10110 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10111 | fi | |
10112 | ||
10113 | else | |
10114 | ||
10115 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10116 | if test "x$LINE" != x ; then | |
10117 | eval "DEFAULT_$LINE" | |
10118 | else | |
10119 | no_cache=1 | |
10120 | fi | |
10121 | ||
10122 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10123 | ||
10124 | fi; | |
10125 | ||
10126 | eval "$ac_cv_use_dccache" | |
10127 | if test "$no_cache" != 1; then | |
10128 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10129 | fi | |
10130 | ||
10131 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10132 | echo "$as_me:$LINENO: result: yes" >&5 | |
10133 | echo "${ECHO_T}yes" >&6 | |
10134 | else | |
10135 | echo "$as_me:$LINENO: result: no" >&5 | |
10136 | echo "${ECHO_T}no" >&6 | |
10137 | fi | |
10138 | ||
10139 | fi | |
10140 | ||
a848cd7e SC |
10141 | |
10142 | ||
10143 | enablestring= | |
10144 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10145 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10146 | no_cache=0 | |
10147 | # Check whether --enable-palette or --disable-palette was given. | |
10148 | if test "${enable_palette+set}" = set; then | |
10149 | enableval="$enable_palette" | |
10150 | ||
10151 | if test "$enableval" = yes; then | |
10152 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10153 | else | |
10154 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10155 | fi | |
10156 | ||
10157 | else | |
10158 | ||
10159 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10160 | if test "x$LINE" != x ; then | |
10161 | eval "DEFAULT_$LINE" | |
10162 | else | |
10163 | no_cache=1 | |
10164 | fi | |
10165 | ||
10166 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10167 | ||
10168 | fi; | |
10169 | ||
10170 | eval "$ac_cv_use_palette" | |
10171 | if test "$no_cache" != 1; then | |
10172 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10173 | fi | |
10174 | ||
10175 | if test "$wxUSE_PALETTE" = yes; then | |
10176 | echo "$as_me:$LINENO: result: yes" >&5 | |
10177 | echo "${ECHO_T}yes" >&6 | |
10178 | else | |
10179 | echo "$as_me:$LINENO: result: no" >&5 | |
10180 | echo "${ECHO_T}no" >&6 | |
10181 | fi | |
10182 | ||
10183 | ||
10184 | enablestring= | |
10185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10186 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10187 | no_cache=0 | |
10188 | # Check whether --enable-image or --disable-image was given. | |
10189 | if test "${enable_image+set}" = set; then | |
10190 | enableval="$enable_image" | |
10191 | ||
10192 | if test "$enableval" = yes; then | |
10193 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10194 | else | |
10195 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10196 | fi | |
10197 | ||
10198 | else | |
10199 | ||
10200 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10201 | if test "x$LINE" != x ; then | |
10202 | eval "DEFAULT_$LINE" | |
10203 | else | |
10204 | no_cache=1 | |
10205 | fi | |
10206 | ||
10207 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10208 | ||
10209 | fi; | |
10210 | ||
10211 | eval "$ac_cv_use_image" | |
10212 | if test "$no_cache" != 1; then | |
10213 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10214 | fi | |
10215 | ||
10216 | if test "$wxUSE_IMAGE" = yes; then | |
10217 | echo "$as_me:$LINENO: result: yes" >&5 | |
10218 | echo "${ECHO_T}yes" >&6 | |
10219 | else | |
10220 | echo "$as_me:$LINENO: result: no" >&5 | |
10221 | echo "${ECHO_T}no" >&6 | |
10222 | fi | |
10223 | ||
10224 | ||
10225 | enablestring= | |
10226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10227 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10228 | no_cache=0 | |
10229 | # Check whether --enable-gif or --disable-gif was given. | |
10230 | if test "${enable_gif+set}" = set; then | |
10231 | enableval="$enable_gif" | |
10232 | ||
10233 | if test "$enableval" = yes; then | |
10234 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10235 | else | |
10236 | ac_cv_use_gif='wxUSE_GIF=no' | |
10237 | fi | |
10238 | ||
10239 | else | |
10240 | ||
10241 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10242 | if test "x$LINE" != x ; then | |
10243 | eval "DEFAULT_$LINE" | |
10244 | else | |
10245 | no_cache=1 | |
10246 | fi | |
10247 | ||
10248 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10249 | ||
10250 | fi; | |
10251 | ||
10252 | eval "$ac_cv_use_gif" | |
10253 | if test "$no_cache" != 1; then | |
10254 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10255 | fi | |
10256 | ||
10257 | if test "$wxUSE_GIF" = yes; then | |
10258 | echo "$as_me:$LINENO: result: yes" >&5 | |
10259 | echo "${ECHO_T}yes" >&6 | |
10260 | else | |
10261 | echo "$as_me:$LINENO: result: no" >&5 | |
10262 | echo "${ECHO_T}no" >&6 | |
10263 | fi | |
10264 | ||
10265 | ||
10266 | enablestring= | |
10267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10268 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10269 | no_cache=0 | |
10270 | # Check whether --enable-pcx or --disable-pcx was given. | |
10271 | if test "${enable_pcx+set}" = set; then | |
10272 | enableval="$enable_pcx" | |
10273 | ||
10274 | if test "$enableval" = yes; then | |
10275 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10276 | else | |
10277 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10278 | fi | |
10279 | ||
10280 | else | |
10281 | ||
10282 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10283 | if test "x$LINE" != x ; then | |
10284 | eval "DEFAULT_$LINE" | |
10285 | else | |
10286 | no_cache=1 | |
10287 | fi | |
10288 | ||
10289 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10290 | ||
10291 | fi; | |
10292 | ||
10293 | eval "$ac_cv_use_pcx" | |
10294 | if test "$no_cache" != 1; then | |
10295 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10296 | fi | |
10297 | ||
10298 | if test "$wxUSE_PCX" = yes; then | |
10299 | echo "$as_me:$LINENO: result: yes" >&5 | |
10300 | echo "${ECHO_T}yes" >&6 | |
10301 | else | |
10302 | echo "$as_me:$LINENO: result: no" >&5 | |
10303 | echo "${ECHO_T}no" >&6 | |
10304 | fi | |
10305 | ||
10306 | ||
10307 | enablestring= | |
10308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10309 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10310 | no_cache=0 | |
10311 | # Check whether --enable-iff or --disable-iff was given. | |
10312 | if test "${enable_iff+set}" = set; then | |
10313 | enableval="$enable_iff" | |
10314 | ||
10315 | if test "$enableval" = yes; then | |
10316 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10317 | else | |
10318 | ac_cv_use_iff='wxUSE_IFF=no' | |
10319 | fi | |
10320 | ||
10321 | else | |
10322 | ||
10323 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10324 | if test "x$LINE" != x ; then | |
10325 | eval "DEFAULT_$LINE" | |
10326 | else | |
10327 | no_cache=1 | |
10328 | fi | |
10329 | ||
10330 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10331 | ||
10332 | fi; | |
10333 | ||
10334 | eval "$ac_cv_use_iff" | |
10335 | if test "$no_cache" != 1; then | |
10336 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10337 | fi | |
10338 | ||
10339 | if test "$wxUSE_IFF" = yes; then | |
10340 | echo "$as_me:$LINENO: result: yes" >&5 | |
10341 | echo "${ECHO_T}yes" >&6 | |
10342 | else | |
10343 | echo "$as_me:$LINENO: result: no" >&5 | |
10344 | echo "${ECHO_T}no" >&6 | |
10345 | fi | |
10346 | ||
10347 | ||
10348 | enablestring= | |
10349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10350 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10351 | no_cache=0 | |
10352 | # Check whether --enable-pnm or --disable-pnm was given. | |
10353 | if test "${enable_pnm+set}" = set; then | |
10354 | enableval="$enable_pnm" | |
10355 | ||
10356 | if test "$enableval" = yes; then | |
10357 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10358 | else | |
10359 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10360 | fi | |
10361 | ||
10362 | else | |
10363 | ||
10364 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10365 | if test "x$LINE" != x ; then | |
10366 | eval "DEFAULT_$LINE" | |
10367 | else | |
10368 | no_cache=1 | |
10369 | fi | |
10370 | ||
10371 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10372 | ||
10373 | fi; | |
10374 | ||
10375 | eval "$ac_cv_use_pnm" | |
10376 | if test "$no_cache" != 1; then | |
10377 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10378 | fi | |
10379 | ||
10380 | if test "$wxUSE_PNM" = yes; then | |
10381 | echo "$as_me:$LINENO: result: yes" >&5 | |
10382 | echo "${ECHO_T}yes" >&6 | |
10383 | else | |
10384 | echo "$as_me:$LINENO: result: no" >&5 | |
10385 | echo "${ECHO_T}no" >&6 | |
10386 | fi | |
10387 | ||
10388 | ||
10389 | enablestring= | |
10390 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10391 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10392 | no_cache=0 | |
10393 | # Check whether --enable-xpm or --disable-xpm was given. | |
10394 | if test "${enable_xpm+set}" = set; then | |
10395 | enableval="$enable_xpm" | |
10396 | ||
10397 | if test "$enableval" = yes; then | |
10398 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10399 | else | |
10400 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10401 | fi | |
10402 | ||
10403 | else | |
10404 | ||
10405 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10406 | if test "x$LINE" != x ; then | |
10407 | eval "DEFAULT_$LINE" | |
10408 | else | |
10409 | no_cache=1 | |
10410 | fi | |
10411 | ||
10412 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10413 | ||
10414 | fi; | |
10415 | ||
10416 | eval "$ac_cv_use_xpm" | |
10417 | if test "$no_cache" != 1; then | |
10418 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10419 | fi | |
10420 | ||
10421 | if test "$wxUSE_XPM" = yes; then | |
10422 | echo "$as_me:$LINENO: result: yes" >&5 | |
10423 | echo "${ECHO_T}yes" >&6 | |
10424 | else | |
10425 | echo "$as_me:$LINENO: result: no" >&5 | |
10426 | echo "${ECHO_T}no" >&6 | |
10427 | fi | |
10428 | ||
10429 | ||
10430 | enablestring= | |
10431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10432 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10433 | no_cache=0 | |
10434 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10435 | if test "${enable_ico_cur+set}" = set; then | |
10436 | enableval="$enable_ico_cur" | |
10437 | ||
10438 | if test "$enableval" = yes; then | |
10439 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10440 | else | |
10441 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10442 | fi | |
10443 | ||
10444 | else | |
10445 | ||
10446 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10447 | if test "x$LINE" != x ; then | |
10448 | eval "DEFAULT_$LINE" | |
10449 | else | |
10450 | no_cache=1 | |
10451 | fi | |
10452 | ||
10453 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10454 | ||
10455 | fi; | |
10456 | ||
10457 | eval "$ac_cv_use_ico_cur" | |
10458 | if test "$no_cache" != 1; then | |
10459 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10460 | fi | |
10461 | ||
10462 | if test "$wxUSE_ICO_CUR" = yes; then | |
10463 | echo "$as_me:$LINENO: result: yes" >&5 | |
10464 | echo "${ECHO_T}yes" >&6 | |
10465 | else | |
10466 | echo "$as_me:$LINENO: result: no" >&5 | |
10467 | echo "${ECHO_T}no" >&6 | |
10468 | fi | |
10469 | ||
10470 | ||
10471 | fi | |
10472 | ||
10473 | ||
10474 | ||
ceec2216 RL |
10475 | # Check whether --with-flavour or --without-flavour was given. |
10476 | if test "${with_flavour+set}" = set; then | |
10477 | withval="$with_flavour" | |
10478 | WX_FLAVOUR="$withval" | |
10479 | fi; | |
10480 | ||
10481 | ||
10482 | ||
a848cd7e SC |
10483 | enablestring= |
10484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10485 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10486 | no_cache=0 | |
10487 | # Check whether --enable-official_build or --disable-official_build was given. | |
10488 | if test "${enable_official_build+set}" = set; then | |
10489 | enableval="$enable_official_build" | |
10490 | ||
10491 | if test "$enableval" = yes; then | |
10492 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10493 | else | |
10494 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10495 | fi | |
10496 | ||
10497 | else | |
10498 | ||
10499 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10500 | if test "x$LINE" != x ; then | |
10501 | eval "DEFAULT_$LINE" | |
10502 | else | |
10503 | no_cache=1 | |
10504 | fi | |
10505 | ||
10506 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10507 | ||
10508 | fi; | |
10509 | ||
10510 | eval "$ac_cv_use_official_build" | |
10511 | if test "$no_cache" != 1; then | |
10512 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10513 | fi | |
10514 | ||
10515 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10516 | echo "$as_me:$LINENO: result: yes" >&5 | |
10517 | echo "${ECHO_T}yes" >&6 | |
10518 | else | |
10519 | echo "$as_me:$LINENO: result: no" >&5 | |
10520 | echo "${ECHO_T}no" >&6 | |
10521 | fi | |
10522 | ||
10523 | # Check whether --enable-vendor or --disable-vendor was given. | |
10524 | if test "${enable_vendor+set}" = set; then | |
10525 | enableval="$enable_vendor" | |
10526 | VENDOR="$enableval" | |
10527 | fi; | |
10528 | if test "x$VENDOR" = "x"; then | |
10529 | VENDOR="custom" | |
10530 | fi | |
10531 | ||
a848cd7e SC |
10532 | |
10533 | ||
10534 | ||
10535 | echo "saving argument cache $wx_arg_cache_file" | |
10536 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10537 | ||
10538 | ||
10539 | ||
10540 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10541 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10542 | ||
10543 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10544 | if test "$wxUSE_WINE" = "yes"; then | |
10545 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10546 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10547 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10548 | wxUSE_SHARED=no | |
10549 | fi | |
10550 | ||
f597b41c | 10551 | |
a848cd7e SC |
10552 | if test "$wxUSE_GUI" = "yes"; then |
10553 | ||
10554 | if test "$USE_BEOS" = 1; then | |
10555 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10556 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10557 | { (exit 1); exit 1; }; } | |
10558 | fi | |
10559 | ||
10560 | if test "$TOOLKIT_GIVEN" = 1; then | |
10561 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10562 | var=wxUSE_$toolkit | |
10563 | eval "value=\$${var}" | |
f34ca037 MW |
10564 | if test "x$value" = "xno"; then |
10565 | eval "$var=0" | |
10566 | elif test "x$value" != "x"; then | |
10567 | eval "$var=1" | |
10568 | fi | |
10569 | ||
10570 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10571 | eval "wx${toolkit}_VERSION=$value" | |
10572 | fi | |
a848cd7e SC |
10573 | done |
10574 | else | |
10575 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10576 | if test "$has_toolkit_in_cache" != 1; then | |
10577 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10578 | else | |
10579 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10580 | |
10581 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10582 | if test "x$version" != "x"; then | |
10583 | eval "wx${toolkit}_VERSION=$version" | |
10584 | fi | |
a848cd7e SC |
10585 | fi |
10586 | eval "wxUSE_$toolkit=\$${var}" | |
10587 | done | |
10588 | fi | |
10589 | ||
10590 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10591 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10592 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10593 | ||
10594 | case "${host}" in | |
10595 | *-pc-os2_emx | *-pc-os2-emx ) | |
10596 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10597 | esac | |
10598 | ||
10599 | case "$NUM_TOOLKITS" in | |
10600 | 1) | |
10601 | ;; | |
10602 | 0) | |
10603 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10604 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10605 | { (exit 1); exit 1; }; } | |
10606 | ;; | |
10607 | *) | |
10608 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10609 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10610 | { (exit 1); exit 1; }; } | |
10611 | esac | |
10612 | ||
f34ca037 MW |
10613 | # to be removed when --disable-gtk2 isn't needed |
10614 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10615 | wxGTK_VERSION=2 | |
10616 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10617 | wxGTK_VERSION=1 | |
10618 | fi | |
10619 | ||
a848cd7e SC |
10620 | for toolkit in `echo $ALL_TOOLKITS`; do |
10621 | var=wxUSE_$toolkit | |
10622 | eval "value=\$${var}" | |
10623 | if test "x$value" != x; then | |
10624 | cache_var=CACHE_$toolkit | |
10625 | eval "cache=\$${cache_var}" | |
10626 | if test "$cache" = 1; then | |
10627 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10628 | eval "version=\$wx${toolkit}_VERSION" |
10629 | if test "x$version" != "x"; then | |
10630 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10631 | fi | |
a848cd7e SC |
10632 | fi |
10633 | if test "$value" = 1; then | |
10634 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10635 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10636 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10637 | fi | |
10638 | fi | |
10639 | done | |
10640 | else | |
10641 | if test "x$host_alias" != "x"; then | |
10642 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10643 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10644 | else | |
10645 | echo "$as_me:$LINENO: result: base only" >&5 | |
10646 | echo "${ECHO_T}base only" >&6 | |
10647 | fi | |
10648 | fi | |
10649 | ||
10650 | wants_win32=0 | |
10651 | doesnt_want_win32=0 | |
10652 | case "${host}" in | |
10653 | *-*-cygwin*) | |
10654 | if test "$wxUSE_MSW" = 1 ; then | |
10655 | wants_win32=1 | |
7275146d | 10656 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10657 | else |
10658 | doesnt_want_win32=1 | |
10659 | fi | |
10660 | ;; | |
10661 | *-*-mingw*) | |
10662 | wants_win32=1 | |
10663 | ;; | |
10664 | esac | |
10665 | ||
10666 | if test "$wxUSE_WINE" = "yes"; then | |
10667 | wants_win32=1 | |
10668 | CC=winegcc | |
10669 | CXX=wineg++ | |
a848cd7e SC |
10670 | LDFLAGS_GUI="-mwindows" |
10671 | fi | |
10672 | ||
10673 | if test "$wants_win32" = 1 ; then | |
10674 | USE_UNIX=0 | |
10675 | USE_WIN32=1 | |
10676 | cat >>confdefs.h <<\_ACEOF | |
10677 | #define __WIN32__ 1 | |
10678 | _ACEOF | |
10679 | ||
10680 | cat >>confdefs.h <<\_ACEOF | |
10681 | #define __WIN95__ 1 | |
10682 | _ACEOF | |
10683 | ||
10684 | cat >>confdefs.h <<\_ACEOF | |
10685 | #define __WINDOWS__ 1 | |
10686 | _ACEOF | |
10687 | ||
10688 | cat >>confdefs.h <<\_ACEOF | |
10689 | #define __GNUWIN32__ 1 | |
10690 | _ACEOF | |
10691 | ||
10692 | cat >>confdefs.h <<\_ACEOF | |
10693 | #define STRICT 1 | |
10694 | _ACEOF | |
10695 | ||
10696 | cat >>confdefs.h <<\_ACEOF | |
10697 | #define WINVER 0x0400 | |
10698 | _ACEOF | |
10699 | ||
10700 | fi | |
10701 | if test "$doesnt_want_win32" = 1 ; then | |
10702 | USE_UNIX=1 | |
10703 | USE_WIN32=0 | |
10704 | fi | |
10705 | ||
10706 | if test "$USE_UNIX" = 1 ; then | |
10707 | wxUSE_UNIX=yes | |
10708 | cat >>confdefs.h <<\_ACEOF | |
10709 | #define __UNIX__ 1 | |
10710 | _ACEOF | |
10711 | ||
10712 | fi | |
10713 | ||
10714 | ||
10715 | cat >confcache <<\_ACEOF | |
10716 | # This file is a shell script that caches the results of configure | |
10717 | # tests run on this system so they can be shared between configure | |
10718 | # scripts and configure runs, see configure's option --config-cache. | |
10719 | # It is not useful on other systems. If it contains results you don't | |
10720 | # want to keep, you may remove or edit it. | |
10721 | # | |
10722 | # config.status only pays attention to the cache file if you give it | |
10723 | # the --recheck option to rerun configure. | |
10724 | # | |
10725 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10726 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10727 | # following values. | |
10728 | ||
10729 | _ACEOF | |
10730 | ||
10731 | # The following way of writing the cache mishandles newlines in values, | |
10732 | # but we know of no workaround that is simple, portable, and efficient. | |
10733 | # So, don't put newlines in cache variables' values. | |
10734 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10735 | # and sets the high bit in the cache file unless we assign to the vars. | |
10736 | { | |
10737 | (set) 2>&1 | | |
10738 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10739 | *ac_space=\ *) | |
10740 | # `set' does not quote correctly, so add quotes (double-quote | |
10741 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10742 | sed -n \ | |
ac1cb8d3 VS |
10743 | "s/'/'\\\\''/g; |
10744 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10745 | ;; |
10746 | *) | |
10747 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10748 | sed -n \ | |
ac1cb8d3 | 10749 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10750 | ;; |
10751 | esac; | |
10752 | } | | |
10753 | sed ' | |
10754 | t clear | |
10755 | : clear | |
10756 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10757 | t end | |
10758 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10759 | : end' >>confcache | |
10760 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10761 | if test -w $cache_file; then | |
10762 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10763 | cat confcache >$cache_file | |
10764 | else | |
10765 | echo "not updating unwritable cache $cache_file" | |
10766 | fi | |
10767 | fi | |
10768 | rm -f confcache | |
10769 | ||
a848cd7e | 10770 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10771 | |
10772 | ||
3006edc0 | 10773 | |
6dcfc289 | 10774 | ac_ext=c |
a848cd7e SC |
10775 | ac_cpp='$CPP $CPPFLAGS' |
10776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10779 | if test -n "$ac_tool_prefix"; then | |
10780 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10781 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10784 | if test "${ac_cv_prog_CC+set}" = set; then | |
10785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10786 | else | |
10787 | if test -n "$CC"; then | |
10788 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10789 | else | |
10790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10791 | for as_dir in $PATH | |
10792 | do | |
10793 | IFS=$as_save_IFS | |
10794 | test -z "$as_dir" && as_dir=. | |
10795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10797 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10799 | break 2 | |
10800 | fi | |
10801 | done | |
10802 | done | |
10803 | ||
10804 | fi | |
10805 | fi | |
10806 | CC=$ac_cv_prog_CC | |
10807 | if test -n "$CC"; then | |
10808 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10809 | echo "${ECHO_T}$CC" >&6 | |
10810 | else | |
10811 | echo "$as_me:$LINENO: result: no" >&5 | |
10812 | echo "${ECHO_T}no" >&6 | |
10813 | fi | |
10814 | ||
10815 | fi | |
10816 | if test -z "$ac_cv_prog_CC"; then | |
10817 | ac_ct_CC=$CC | |
10818 | # Extract the first word of "gcc", so it can be a program name with args. | |
10819 | set dummy gcc; ac_word=$2 | |
10820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10824 | else | |
10825 | if test -n "$ac_ct_CC"; then | |
10826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10827 | else | |
10828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10829 | for as_dir in $PATH | |
10830 | do | |
10831 | IFS=$as_save_IFS | |
10832 | test -z "$as_dir" && as_dir=. | |
10833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10835 | ac_cv_prog_ac_ct_CC="gcc" | |
10836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10837 | break 2 | |
10838 | fi | |
10839 | done | |
10840 | done | |
10841 | ||
10842 | fi | |
10843 | fi | |
10844 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10845 | if test -n "$ac_ct_CC"; then | |
10846 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10847 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10848 | else | |
10849 | echo "$as_me:$LINENO: result: no" >&5 | |
10850 | echo "${ECHO_T}no" >&6 | |
10851 | fi | |
10852 | ||
10853 | CC=$ac_ct_CC | |
10854 | else | |
10855 | CC="$ac_cv_prog_CC" | |
10856 | fi | |
10857 | ||
10858 | if test -z "$CC"; then | |
10859 | if test -n "$ac_tool_prefix"; then | |
10860 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10861 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10864 | if test "${ac_cv_prog_CC+set}" = set; then | |
10865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10866 | else | |
10867 | if test -n "$CC"; then | |
10868 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10869 | else | |
10870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10871 | for as_dir in $PATH | |
10872 | do | |
10873 | IFS=$as_save_IFS | |
10874 | test -z "$as_dir" && as_dir=. | |
10875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10877 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10879 | break 2 | |
10880 | fi | |
10881 | done | |
10882 | done | |
10883 | ||
10884 | fi | |
10885 | fi | |
10886 | CC=$ac_cv_prog_CC | |
10887 | if test -n "$CC"; then | |
10888 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10889 | echo "${ECHO_T}$CC" >&6 | |
10890 | else | |
10891 | echo "$as_me:$LINENO: result: no" >&5 | |
10892 | echo "${ECHO_T}no" >&6 | |
10893 | fi | |
10894 | ||
10895 | fi | |
10896 | if test -z "$ac_cv_prog_CC"; then | |
10897 | ac_ct_CC=$CC | |
10898 | # Extract the first word of "cc", so it can be a program name with args. | |
10899 | set dummy cc; ac_word=$2 | |
10900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10902 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10904 | else | |
10905 | if test -n "$ac_ct_CC"; then | |
10906 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10907 | else | |
10908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10909 | for as_dir in $PATH | |
10910 | do | |
10911 | IFS=$as_save_IFS | |
10912 | test -z "$as_dir" && as_dir=. | |
10913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10915 | ac_cv_prog_ac_ct_CC="cc" | |
10916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10917 | break 2 | |
10918 | fi | |
10919 | done | |
10920 | done | |
10921 | ||
10922 | fi | |
10923 | fi | |
10924 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10925 | if test -n "$ac_ct_CC"; then | |
10926 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10927 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10928 | else | |
10929 | echo "$as_me:$LINENO: result: no" >&5 | |
10930 | echo "${ECHO_T}no" >&6 | |
10931 | fi | |
10932 | ||
10933 | CC=$ac_ct_CC | |
10934 | else | |
10935 | CC="$ac_cv_prog_CC" | |
10936 | fi | |
10937 | ||
10938 | fi | |
10939 | if test -z "$CC"; then | |
10940 | # Extract the first word of "cc", so it can be a program name with args. | |
10941 | set dummy cc; ac_word=$2 | |
10942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10944 | if test "${ac_cv_prog_CC+set}" = set; then | |
10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10946 | else | |
10947 | if test -n "$CC"; then | |
10948 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10949 | else | |
10950 | ac_prog_rejected=no | |
10951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10952 | for as_dir in $PATH | |
10953 | do | |
10954 | IFS=$as_save_IFS | |
10955 | test -z "$as_dir" && as_dir=. | |
10956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10958 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10959 | ac_prog_rejected=yes | |
10960 | continue | |
10961 | fi | |
10962 | ac_cv_prog_CC="cc" | |
10963 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10964 | break 2 | |
10965 | fi | |
10966 | done | |
10967 | done | |
10968 | ||
10969 | if test $ac_prog_rejected = yes; then | |
10970 | # We found a bogon in the path, so make sure we never use it. | |
10971 | set dummy $ac_cv_prog_CC | |
10972 | shift | |
10973 | if test $# != 0; then | |
10974 | # We chose a different compiler from the bogus one. | |
10975 | # However, it has the same basename, so the bogon will be chosen | |
10976 | # first if we set CC to just the basename; use the full file name. | |
10977 | shift | |
10978 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10979 | fi | |
10980 | fi | |
10981 | fi | |
10982 | fi | |
10983 | CC=$ac_cv_prog_CC | |
10984 | if test -n "$CC"; then | |
10985 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10986 | echo "${ECHO_T}$CC" >&6 | |
10987 | else | |
10988 | echo "$as_me:$LINENO: result: no" >&5 | |
10989 | echo "${ECHO_T}no" >&6 | |
10990 | fi | |
10991 | ||
10992 | fi | |
10993 | if test -z "$CC"; then | |
10994 | if test -n "$ac_tool_prefix"; then | |
10995 | for ac_prog in cl | |
10996 | do | |
10997 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10998 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11001 | if test "${ac_cv_prog_CC+set}" = set; then | |
11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11003 | else | |
11004 | if test -n "$CC"; then | |
11005 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11006 | else | |
11007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11008 | for as_dir in $PATH | |
11009 | do | |
11010 | IFS=$as_save_IFS | |
11011 | test -z "$as_dir" && as_dir=. | |
11012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11014 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11016 | break 2 | |
11017 | fi | |
11018 | done | |
11019 | done | |
11020 | ||
11021 | fi | |
11022 | fi | |
11023 | CC=$ac_cv_prog_CC | |
11024 | if test -n "$CC"; then | |
11025 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11026 | echo "${ECHO_T}$CC" >&6 | |
11027 | else | |
11028 | echo "$as_me:$LINENO: result: no" >&5 | |
11029 | echo "${ECHO_T}no" >&6 | |
11030 | fi | |
11031 | ||
11032 | test -n "$CC" && break | |
11033 | done | |
11034 | fi | |
11035 | if test -z "$CC"; then | |
11036 | ac_ct_CC=$CC | |
11037 | for ac_prog in cl | |
11038 | do | |
11039 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11040 | set dummy $ac_prog; ac_word=$2 | |
11041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11043 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11045 | else | |
11046 | if test -n "$ac_ct_CC"; then | |
11047 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11048 | else | |
11049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11050 | for as_dir in $PATH | |
11051 | do | |
11052 | IFS=$as_save_IFS | |
11053 | test -z "$as_dir" && as_dir=. | |
11054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11056 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11058 | break 2 | |
11059 | fi | |
11060 | done | |
11061 | done | |
11062 | ||
11063 | fi | |
11064 | fi | |
11065 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11066 | if test -n "$ac_ct_CC"; then | |
11067 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11068 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11069 | else | |
11070 | echo "$as_me:$LINENO: result: no" >&5 | |
11071 | echo "${ECHO_T}no" >&6 | |
11072 | fi | |
11073 | ||
11074 | test -n "$ac_ct_CC" && break | |
11075 | done | |
11076 | ||
11077 | CC=$ac_ct_CC | |
11078 | fi | |
11079 | ||
11080 | fi | |
11081 | ||
11082 | ||
11083 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11084 | See \`config.log' for more details." >&5 | |
11085 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11086 | See \`config.log' for more details." >&2;} | |
11087 | { (exit 1); exit 1; }; } | |
11088 | ||
11089 | # Provide some information about the compiler. | |
11090 | echo "$as_me:$LINENO:" \ | |
11091 | "checking for C compiler version" >&5 | |
11092 | ac_compiler=`set X $ac_compile; echo $2` | |
11093 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11094 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11095 | ac_status=$? | |
11096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11097 | (exit $ac_status); } | |
11098 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11099 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11100 | ac_status=$? | |
11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11102 | (exit $ac_status); } | |
11103 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11104 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11105 | ac_status=$? | |
11106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 | (exit $ac_status); } | |
11108 | ||
11109 | cat >conftest.$ac_ext <<_ACEOF | |
11110 | /* confdefs.h. */ | |
11111 | _ACEOF | |
11112 | cat confdefs.h >>conftest.$ac_ext | |
11113 | cat >>conftest.$ac_ext <<_ACEOF | |
11114 | /* end confdefs.h. */ | |
11115 | ||
11116 | int | |
11117 | main () | |
11118 | { | |
11119 | ||
11120 | ; | |
11121 | return 0; | |
11122 | } | |
11123 | _ACEOF | |
11124 | ac_clean_files_save=$ac_clean_files | |
11125 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11126 | # Try to create an executable without -o first, disregard a.out. | |
11127 | # It will help us diagnose broken compilers, and finding out an intuition | |
11128 | # of exeext. | |
ac1cb8d3 VS |
11129 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11130 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11131 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11132 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11133 | (eval $ac_link_default) 2>&5 | |
11134 | ac_status=$? | |
11135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11136 | (exit $ac_status); }; then | |
11137 | # Find the output, starting from the most likely. This scheme is | |
11138 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11139 | # resort. | |
11140 | ||
11141 | # Be careful to initialize this variable, since it used to be cached. | |
11142 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11143 | ac_cv_exeext= | |
11144 | # b.out is created by i960 compilers. | |
11145 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11146 | do | |
11147 | test -f "$ac_file" || continue | |
11148 | case $ac_file in | |
11149 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11150 | ;; |
a848cd7e | 11151 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11152 | # This is the source file. |
11153 | ;; | |
a848cd7e | 11154 | [ab].out ) |
ac1cb8d3 VS |
11155 | # We found the default executable, but exeext='' is most |
11156 | # certainly right. | |
11157 | break;; | |
a848cd7e | 11158 | *.* ) |
ac1cb8d3 VS |
11159 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11160 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11161 | # but it would be cool to find out if it's true. Does anybody | |
11162 | # maintain Libtool? --akim. | |
11163 | export ac_cv_exeext | |
11164 | break;; | |
a848cd7e | 11165 | * ) |
ac1cb8d3 | 11166 | break;; |
a848cd7e SC |
11167 | esac |
11168 | done | |
11169 | else | |
11170 | echo "$as_me: failed program was:" >&5 | |
11171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11172 | ||
11173 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11174 | See \`config.log' for more details." >&5 | |
11175 | echo "$as_me: error: C compiler cannot create executables | |
11176 | See \`config.log' for more details." >&2;} | |
11177 | { (exit 77); exit 77; }; } | |
11178 | fi | |
11179 | ||
11180 | ac_exeext=$ac_cv_exeext | |
11181 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11182 | echo "${ECHO_T}$ac_file" >&6 | |
11183 | ||
11184 | # Check the compiler produces executables we can run. If not, either | |
11185 | # the compiler is broken, or we cross compile. | |
11186 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11187 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11188 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11189 | # If not cross compiling, check that we can run a simple program. | |
11190 | if test "$cross_compiling" != yes; then | |
11191 | if { ac_try='./$ac_file' | |
11192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11193 | (eval $ac_try) 2>&5 | |
11194 | ac_status=$? | |
11195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11196 | (exit $ac_status); }; }; then | |
11197 | cross_compiling=no | |
11198 | else | |
11199 | if test "$cross_compiling" = maybe; then | |
11200 | cross_compiling=yes | |
11201 | else | |
11202 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11203 | If you meant to cross compile, use \`--host'. | |
11204 | See \`config.log' for more details." >&5 | |
11205 | echo "$as_me: error: cannot run C compiled programs. | |
11206 | If you meant to cross compile, use \`--host'. | |
11207 | See \`config.log' for more details." >&2;} | |
11208 | { (exit 1); exit 1; }; } | |
11209 | fi | |
11210 | fi | |
11211 | fi | |
11212 | echo "$as_me:$LINENO: result: yes" >&5 | |
11213 | echo "${ECHO_T}yes" >&6 | |
11214 | ||
11215 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11216 | ac_clean_files=$ac_clean_files_save | |
11217 | # Check the compiler produces executables we can run. If not, either | |
11218 | # the compiler is broken, or we cross compile. | |
11219 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11220 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11221 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11222 | echo "${ECHO_T}$cross_compiling" >&6 | |
11223 | ||
11224 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11225 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11227 | (eval $ac_link) 2>&5 | |
11228 | ac_status=$? | |
11229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11230 | (exit $ac_status); }; then | |
11231 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11232 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11233 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11234 | # `rm'. | |
11235 | for ac_file in conftest.exe conftest conftest.*; do | |
11236 | test -f "$ac_file" || continue | |
11237 | case $ac_file in | |
11238 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11239 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11240 | export ac_cv_exeext |
11241 | break;; | |
a848cd7e SC |
11242 | * ) break;; |
11243 | esac | |
11244 | done | |
11245 | else | |
11246 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11247 | See \`config.log' for more details." >&5 | |
11248 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11249 | See \`config.log' for more details." >&2;} | |
11250 | { (exit 1); exit 1; }; } | |
11251 | fi | |
11252 | ||
11253 | rm -f conftest$ac_cv_exeext | |
11254 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11255 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11256 | ||
11257 | rm -f conftest.$ac_ext | |
11258 | EXEEXT=$ac_cv_exeext | |
11259 | ac_exeext=$EXEEXT | |
11260 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11261 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11262 | if test "${ac_cv_objext+set}" = set; then | |
11263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11264 | else | |
11265 | cat >conftest.$ac_ext <<_ACEOF | |
11266 | /* confdefs.h. */ | |
11267 | _ACEOF | |
11268 | cat confdefs.h >>conftest.$ac_ext | |
11269 | cat >>conftest.$ac_ext <<_ACEOF | |
11270 | /* end confdefs.h. */ | |
11271 | ||
11272 | int | |
11273 | main () | |
11274 | { | |
11275 | ||
11276 | ; | |
11277 | return 0; | |
11278 | } | |
11279 | _ACEOF | |
11280 | rm -f conftest.o conftest.obj | |
11281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11282 | (eval $ac_compile) 2>&5 | |
11283 | ac_status=$? | |
11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11285 | (exit $ac_status); }; then | |
11286 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11287 | case $ac_file in | |
11288 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11289 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11290 | break;; | |
11291 | esac | |
11292 | done | |
11293 | else | |
11294 | echo "$as_me: failed program was:" >&5 | |
11295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11296 | ||
11297 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11298 | See \`config.log' for more details." >&5 | |
11299 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11300 | See \`config.log' for more details." >&2;} | |
11301 | { (exit 1); exit 1; }; } | |
11302 | fi | |
11303 | ||
11304 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11305 | fi | |
11306 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11307 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11308 | OBJEXT=$ac_cv_objext | |
11309 | ac_objext=$OBJEXT | |
11310 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11311 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11312 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11314 | else | |
11315 | cat >conftest.$ac_ext <<_ACEOF | |
11316 | /* confdefs.h. */ | |
11317 | _ACEOF | |
11318 | cat confdefs.h >>conftest.$ac_ext | |
11319 | cat >>conftest.$ac_ext <<_ACEOF | |
11320 | /* end confdefs.h. */ | |
11321 | ||
11322 | int | |
11323 | main () | |
11324 | { | |
11325 | #ifndef __GNUC__ | |
11326 | choke me | |
11327 | #endif | |
11328 | ||
11329 | ; | |
11330 | return 0; | |
11331 | } | |
11332 | _ACEOF | |
11333 | rm -f conftest.$ac_objext | |
11334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11335 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11336 | ac_status=$? |
ac1cb8d3 VS |
11337 | grep -v '^ *+' conftest.er1 >conftest.err |
11338 | rm -f conftest.er1 | |
11339 | cat conftest.err >&5 | |
a848cd7e SC |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11341 | (exit $ac_status); } && | |
dee1a63f MB |
11342 | { ac_try='test -z "$ac_c_werror_flag" |
11343 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11345 | (eval $ac_try) 2>&5 | |
11346 | ac_status=$? | |
11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11348 | (exit $ac_status); }; } && | |
11349 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11351 | (eval $ac_try) 2>&5 | |
11352 | ac_status=$? | |
11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11354 | (exit $ac_status); }; }; then | |
11355 | ac_compiler_gnu=yes | |
11356 | else | |
11357 | echo "$as_me: failed program was:" >&5 | |
11358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11359 | ||
11360 | ac_compiler_gnu=no | |
11361 | fi | |
ac1cb8d3 | 11362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11363 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11364 | ||
11365 | fi | |
11366 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11367 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11368 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11369 | ac_test_CFLAGS=${CFLAGS+set} | |
11370 | ac_save_CFLAGS=$CFLAGS | |
1c14217d | 11371 | CFLAGS="-g" |
a848cd7e SC |
11372 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11373 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11374 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11376 | else | |
11377 | cat >conftest.$ac_ext <<_ACEOF | |
11378 | /* confdefs.h. */ | |
11379 | _ACEOF | |
11380 | cat confdefs.h >>conftest.$ac_ext | |
11381 | cat >>conftest.$ac_ext <<_ACEOF | |
11382 | /* end confdefs.h. */ | |
11383 | ||
11384 | int | |
11385 | main () | |
11386 | { | |
11387 | ||
11388 | ; | |
11389 | return 0; | |
11390 | } | |
11391 | _ACEOF | |
11392 | rm -f conftest.$ac_objext | |
11393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11395 | ac_status=$? |
ac1cb8d3 VS |
11396 | grep -v '^ *+' conftest.er1 >conftest.err |
11397 | rm -f conftest.er1 | |
11398 | cat conftest.err >&5 | |
a848cd7e SC |
11399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11400 | (exit $ac_status); } && | |
dee1a63f MB |
11401 | { ac_try='test -z "$ac_c_werror_flag" |
11402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11404 | (eval $ac_try) 2>&5 | |
11405 | ac_status=$? | |
11406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11407 | (exit $ac_status); }; } && | |
11408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11410 | (eval $ac_try) 2>&5 | |
11411 | ac_status=$? | |
11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11413 | (exit $ac_status); }; }; then | |
11414 | ac_cv_prog_cc_g=yes | |
11415 | else | |
11416 | echo "$as_me: failed program was:" >&5 | |
11417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11418 | ||
11419 | ac_cv_prog_cc_g=no | |
11420 | fi | |
ac1cb8d3 | 11421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11422 | fi |
11423 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11424 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11425 | if test "$ac_test_CFLAGS" = set; then | |
11426 | CFLAGS=$ac_save_CFLAGS | |
11427 | elif test $ac_cv_prog_cc_g = yes; then | |
11428 | if test "$GCC" = yes; then | |
11429 | CFLAGS="-g -O2" | |
11430 | else | |
11431 | CFLAGS="-g" | |
11432 | fi | |
11433 | else | |
11434 | if test "$GCC" = yes; then | |
11435 | CFLAGS="-O2" | |
11436 | else | |
11437 | CFLAGS= | |
11438 | fi | |
11439 | fi | |
11440 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11441 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11442 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11444 | else | |
11445 | ac_cv_prog_cc_stdc=no | |
11446 | ac_save_CC=$CC | |
11447 | cat >conftest.$ac_ext <<_ACEOF | |
11448 | /* confdefs.h. */ | |
11449 | _ACEOF | |
11450 | cat confdefs.h >>conftest.$ac_ext | |
11451 | cat >>conftest.$ac_ext <<_ACEOF | |
11452 | /* end confdefs.h. */ | |
11453 | #include <stdarg.h> | |
11454 | #include <stdio.h> | |
11455 | #include <sys/types.h> | |
11456 | #include <sys/stat.h> | |
11457 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11458 | struct buf { int x; }; | |
11459 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11460 | static char *e (p, i) | |
11461 | char **p; | |
11462 | int i; | |
11463 | { | |
11464 | return p[i]; | |
11465 | } | |
11466 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11467 | { | |
11468 | char *s; | |
11469 | va_list v; | |
11470 | va_start (v,p); | |
11471 | s = g (p, va_arg (v,int)); | |
11472 | va_end (v); | |
11473 | return s; | |
11474 | } | |
ac1cb8d3 VS |
11475 | |
11476 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11477 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11478 | These don't provoke an error unfortunately, instead are silently treated | |
11479 | as 'x'. The following induces an error, until -std1 is added to get | |
11480 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11481 | array size at least. It's necessary to write '\x00'==0 to get something | |
11482 | that's true only with -std1. */ | |
11483 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11484 | ||
a848cd7e SC |
11485 | int test (int i, double x); |
11486 | struct s1 {int (*f) (int a);}; | |
11487 | struct s2 {int (*f) (double a);}; | |
11488 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11489 | int argc; | |
11490 | char **argv; | |
11491 | int | |
11492 | main () | |
11493 | { | |
11494 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11495 | ; | |
11496 | return 0; | |
11497 | } | |
11498 | _ACEOF | |
11499 | # Don't try gcc -ansi; that turns off useful extensions and | |
11500 | # breaks some systems' header files. | |
11501 | # AIX -qlanglvl=ansi | |
11502 | # Ultrix and OSF/1 -std1 | |
11503 | # HP-UX 10.20 and later -Ae | |
11504 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11505 | # SVR4 -Xc -D__EXTENSIONS__ | |
11506 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11507 | do | |
11508 | CC="$ac_save_CC $ac_arg" | |
11509 | rm -f conftest.$ac_objext | |
11510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11512 | ac_status=$? |
ac1cb8d3 VS |
11513 | grep -v '^ *+' conftest.er1 >conftest.err |
11514 | rm -f conftest.er1 | |
11515 | cat conftest.err >&5 | |
a848cd7e SC |
11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11517 | (exit $ac_status); } && | |
dee1a63f MB |
11518 | { ac_try='test -z "$ac_c_werror_flag" |
11519 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11521 | (eval $ac_try) 2>&5 | |
11522 | ac_status=$? | |
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11524 | (exit $ac_status); }; } && | |
11525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11527 | (eval $ac_try) 2>&5 | |
11528 | ac_status=$? | |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11530 | (exit $ac_status); }; }; then | |
11531 | ac_cv_prog_cc_stdc=$ac_arg | |
11532 | break | |
11533 | else | |
11534 | echo "$as_me: failed program was:" >&5 | |
11535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11536 | ||
11537 | fi | |
ac1cb8d3 | 11538 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11539 | done |
11540 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11541 | CC=$ac_save_CC | |
11542 | ||
11543 | fi | |
11544 | ||
11545 | case "x$ac_cv_prog_cc_stdc" in | |
11546 | x|xno) | |
11547 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11548 | echo "${ECHO_T}none needed" >&6 ;; | |
11549 | *) | |
11550 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11551 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11552 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11553 | esac | |
11554 | ||
11555 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11556 | # in C++ we need to declare it. In case someone uses the same compiler | |
11557 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11558 | # the declaration of exit, since it's the most demanding environment. | |
11559 | cat >conftest.$ac_ext <<_ACEOF | |
11560 | #ifndef __cplusplus | |
11561 | choke me | |
11562 | #endif | |
11563 | _ACEOF | |
11564 | rm -f conftest.$ac_objext | |
11565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11566 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11567 | ac_status=$? |
ac1cb8d3 VS |
11568 | grep -v '^ *+' conftest.er1 >conftest.err |
11569 | rm -f conftest.er1 | |
11570 | cat conftest.err >&5 | |
a848cd7e SC |
11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11572 | (exit $ac_status); } && | |
dee1a63f MB |
11573 | { ac_try='test -z "$ac_c_werror_flag" |
11574 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11576 | (eval $ac_try) 2>&5 | |
11577 | ac_status=$? | |
11578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11579 | (exit $ac_status); }; } && | |
11580 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11582 | (eval $ac_try) 2>&5 | |
11583 | ac_status=$? | |
11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11585 | (exit $ac_status); }; }; then | |
11586 | for ac_declaration in \ | |
ac1cb8d3 | 11587 | '' \ |
a848cd7e SC |
11588 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11589 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11590 | 'extern "C" void exit (int) throw ();' \ | |
11591 | 'extern "C" void exit (int);' \ | |
11592 | 'void exit (int);' | |
11593 | do | |
11594 | cat >conftest.$ac_ext <<_ACEOF | |
11595 | /* confdefs.h. */ | |
11596 | _ACEOF | |
11597 | cat confdefs.h >>conftest.$ac_ext | |
11598 | cat >>conftest.$ac_ext <<_ACEOF | |
11599 | /* end confdefs.h. */ | |
de59c161 | 11600 | $ac_declaration |
ac1cb8d3 | 11601 | #include <stdlib.h> |
a848cd7e SC |
11602 | int |
11603 | main () | |
11604 | { | |
11605 | exit (42); | |
11606 | ; | |
11607 | return 0; | |
11608 | } | |
11609 | _ACEOF | |
11610 | rm -f conftest.$ac_objext | |
11611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11613 | ac_status=$? |
ac1cb8d3 VS |
11614 | grep -v '^ *+' conftest.er1 >conftest.err |
11615 | rm -f conftest.er1 | |
11616 | cat conftest.err >&5 | |
a848cd7e SC |
11617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11618 | (exit $ac_status); } && | |
dee1a63f MB |
11619 | { ac_try='test -z "$ac_c_werror_flag" |
11620 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11622 | (eval $ac_try) 2>&5 | |
11623 | ac_status=$? | |
11624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11625 | (exit $ac_status); }; } && | |
11626 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11628 | (eval $ac_try) 2>&5 | |
11629 | ac_status=$? | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); }; }; then | |
11632 | : | |
11633 | else | |
11634 | echo "$as_me: failed program was:" >&5 | |
11635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11636 | ||
11637 | continue | |
11638 | fi | |
ac1cb8d3 | 11639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11640 | cat >conftest.$ac_ext <<_ACEOF |
11641 | /* confdefs.h. */ | |
11642 | _ACEOF | |
11643 | cat confdefs.h >>conftest.$ac_ext | |
11644 | cat >>conftest.$ac_ext <<_ACEOF | |
11645 | /* end confdefs.h. */ | |
11646 | $ac_declaration | |
11647 | int | |
11648 | main () | |
11649 | { | |
11650 | exit (42); | |
11651 | ; | |
11652 | return 0; | |
11653 | } | |
11654 | _ACEOF | |
11655 | rm -f conftest.$ac_objext | |
11656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11658 | ac_status=$? |
ac1cb8d3 VS |
11659 | grep -v '^ *+' conftest.er1 >conftest.err |
11660 | rm -f conftest.er1 | |
11661 | cat conftest.err >&5 | |
a848cd7e SC |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11663 | (exit $ac_status); } && | |
dee1a63f MB |
11664 | { ac_try='test -z "$ac_c_werror_flag" |
11665 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11667 | (eval $ac_try) 2>&5 | |
11668 | ac_status=$? | |
11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11670 | (exit $ac_status); }; } && | |
11671 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11673 | (eval $ac_try) 2>&5 | |
11674 | ac_status=$? | |
11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11676 | (exit $ac_status); }; }; then | |
11677 | break | |
11678 | else | |
11679 | echo "$as_me: failed program was:" >&5 | |
11680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11681 | ||
11682 | fi | |
ac1cb8d3 | 11683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11684 | done |
11685 | rm -f conftest* | |
11686 | if test -n "$ac_declaration"; then | |
11687 | echo '#ifdef __cplusplus' >>confdefs.h | |
11688 | echo $ac_declaration >>confdefs.h | |
11689 | echo '#endif' >>confdefs.h | |
11690 | fi | |
11691 | ||
11692 | else | |
11693 | echo "$as_me: failed program was:" >&5 | |
11694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11695 | ||
11696 | fi | |
ac1cb8d3 | 11697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11698 | ac_ext=c |
11699 | ac_cpp='$CPP $CPPFLAGS' | |
11700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11703 | ||
ab0ad5f1 VZ |
11704 | |
11705 | ||
11706 | ac_ext=c | |
11707 | ac_cpp='$CPP $CPPFLAGS' | |
11708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11711 | ||
11712 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11713 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11714 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11716 | else | |
11717 | cat >conftest.$ac_ext <<_ACEOF | |
11718 | /* confdefs.h. */ | |
11719 | _ACEOF | |
11720 | cat confdefs.h >>conftest.$ac_ext | |
11721 | cat >>conftest.$ac_ext <<_ACEOF | |
11722 | /* end confdefs.h. */ | |
11723 | ||
11724 | int | |
11725 | main () | |
11726 | { | |
11727 | ||
11728 | #ifndef __INTEL_COMPILER | |
11729 | choke me | |
11730 | #endif | |
11731 | ||
11732 | ; | |
11733 | return 0; | |
11734 | } | |
11735 | _ACEOF | |
11736 | rm -f conftest.$ac_objext | |
11737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11738 | (eval $ac_compile) 2>conftest.er1 | |
11739 | ac_status=$? | |
11740 | grep -v '^ *+' conftest.er1 >conftest.err | |
11741 | rm -f conftest.er1 | |
11742 | cat conftest.err >&5 | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); } && | |
dee1a63f MB |
11745 | { ac_try='test -z "$ac_c_werror_flag" |
11746 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
11747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11748 | (eval $ac_try) 2>&5 | |
11749 | ac_status=$? | |
11750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11751 | (exit $ac_status); }; } && | |
11752 | { ac_try='test -s conftest.$ac_objext' | |
11753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11754 | (eval $ac_try) 2>&5 | |
11755 | ac_status=$? | |
11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11757 | (exit $ac_status); }; }; then | |
11758 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11759 | else | |
11760 | echo "$as_me: failed program was:" >&5 | |
11761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11762 | ||
11763 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11764 | ||
11765 | fi | |
11766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11767 | ||
11768 | ||
11769 | fi | |
11770 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11771 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11772 | ac_ext=c | |
11773 | ac_cpp='$CPP $CPPFLAGS' | |
11774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11777 | ||
11778 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11779 | :; INTELCC=yes | |
11780 | else | |
11781 | :; | |
11782 | fi | |
11783 | ||
11784 | ||
11785 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
11786 | if test "xCC" = "xC"; then |
11787 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 11788 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
dee1a63f | 11789 | if test "${wx_cv_c_exto+set}" = set; then |
480ccd21 DE |
11790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11791 | else | |
11792 | cat >conftest.$ac_ext <<_ACEOF | |
11793 | /* confdefs.h. */ | |
11794 | _ACEOF | |
11795 | cat confdefs.h >>conftest.$ac_ext | |
11796 | cat >>conftest.$ac_ext <<_ACEOF | |
11797 | /* end confdefs.h. */ | |
11798 | ||
11799 | int | |
11800 | main () | |
11801 | { | |
11802 | ||
11803 | ; | |
11804 | return 0; | |
11805 | } | |
11806 | _ACEOF | |
11807 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11809 | (eval $ac_compile) 2>&5 | |
11810 | ac_status=$? | |
11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11812 | (exit $ac_status); }; then | |
11813 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11814 | case $ac_file in | |
11815 | conftest.$ac_ext.o) | |
dee1a63f | 11816 | wx_cv_c_exto="-ext o" |
480ccd21 DE |
11817 | ;; |
11818 | *) | |
11819 | ;; | |
11820 | esac | |
11821 | done | |
11822 | else | |
11823 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11824 | See \`config.log' for more details." >&5 | |
11825 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11826 | See \`config.log' for more details." >&2;} | |
11827 | { (exit 1); exit 1; }; } | |
11828 | ||
11829 | fi | |
11830 | ||
11831 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11832 | ||
11833 | fi | |
dee1a63f MB |
11834 | echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5 |
11835 | echo "${ECHO_T}$wx_cv_c_exto" >&6 | |
11836 | if test "x$wx_cv_c_exto" '!=' "x"; then | |
480ccd21 | 11837 | if test "c" = "c"; then |
dee1a63f | 11838 | CFLAGS="$wx_cv_c_exto $CFLAGS" |
480ccd21 DE |
11839 | fi |
11840 | if test "c" = "cxx"; then | |
dee1a63f | 11841 | CXXFLAGS="$wx_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
11842 | fi |
11843 | fi | |
11844 | ||
dee1a63f | 11845 | if test "x$wx_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
11846 | unset ac_cv_prog_cc_g |
11847 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11848 | ac_save_CFLAGS=$CFLAGS |
1c14217d | 11849 | CFLAGS="-g" |
480ccd21 DE |
11850 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11851 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11852 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11854 | else | |
11855 | cat >conftest.$ac_ext <<_ACEOF | |
11856 | /* confdefs.h. */ | |
11857 | _ACEOF | |
11858 | cat confdefs.h >>conftest.$ac_ext | |
11859 | cat >>conftest.$ac_ext <<_ACEOF | |
11860 | /* end confdefs.h. */ | |
11861 | ||
11862 | int | |
11863 | main () | |
11864 | { | |
11865 | ||
11866 | ; | |
11867 | return 0; | |
11868 | } | |
11869 | _ACEOF | |
11870 | rm -f conftest.$ac_objext | |
11871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11872 | (eval $ac_compile) 2>conftest.er1 | |
11873 | ac_status=$? | |
11874 | grep -v '^ *+' conftest.er1 >conftest.err | |
11875 | rm -f conftest.er1 | |
11876 | cat conftest.err >&5 | |
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11878 | (exit $ac_status); } && | |
dee1a63f MB |
11879 | { ac_try='test -z "$ac_c_werror_flag" |
11880 | || test ! -s conftest.err' | |
480ccd21 DE |
11881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11882 | (eval $ac_try) 2>&5 | |
11883 | ac_status=$? | |
11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11885 | (exit $ac_status); }; } && | |
11886 | { ac_try='test -s conftest.$ac_objext' | |
11887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11888 | (eval $ac_try) 2>&5 | |
11889 | ac_status=$? | |
11890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11891 | (exit $ac_status); }; }; then | |
11892 | ac_cv_prog_cc_g=yes | |
11893 | else | |
11894 | echo "$as_me: failed program was:" >&5 | |
11895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11896 | ||
11897 | ac_cv_prog_cc_g=no | |
11898 | fi | |
11899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11900 | fi | |
11901 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11902 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11903 | if test "$ac_test_CFLAGS" = set; then | |
11904 | CFLAGS=$ac_save_CFLAGS | |
11905 | elif test $ac_cv_prog_cc_g = yes; then | |
11906 | if test "$GCC" = yes; then | |
11907 | CFLAGS="-g -O2" | |
11908 | else | |
11909 | CFLAGS="-g" | |
11910 | fi | |
11911 | else | |
11912 | if test "$GCC" = yes; then | |
11913 | CFLAGS="-O2" | |
11914 | else | |
11915 | CFLAGS= | |
11916 | fi | |
11917 | fi | |
3006edc0 | 11918 | fi |
ab0ad5f1 | 11919 | fi |
3006edc0 VZ |
11920 | |
11921 | case `uname -s` in | |
11922 | AIX*) | |
11923 | ac_ext=c | |
11924 | ac_cpp='$CPP $CPPFLAGS' | |
11925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11928 | ||
11929 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11930 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
dee1a63f | 11931 | if test "${wx_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11933 | else | |
11934 | cat >conftest.$ac_ext <<_ACEOF | |
11935 | /* confdefs.h. */ | |
11936 | _ACEOF | |
11937 | cat confdefs.h >>conftest.$ac_ext | |
11938 | cat >>conftest.$ac_ext <<_ACEOF | |
11939 | /* end confdefs.h. */ | |
11940 | ||
11941 | int | |
11942 | main () | |
11943 | { | |
11944 | #ifndef __xlC__ | |
11945 | choke me | |
11946 | #endif | |
11947 | ||
11948 | ; | |
11949 | return 0; | |
11950 | } | |
11951 | _ACEOF | |
11952 | rm -f conftest.$ac_objext | |
11953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11954 | (eval $ac_compile) 2>conftest.er1 | |
11955 | ac_status=$? | |
11956 | grep -v '^ *+' conftest.er1 >conftest.err | |
11957 | rm -f conftest.er1 | |
11958 | cat conftest.err >&5 | |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11960 | (exit $ac_status); } && | |
dee1a63f MB |
11961 | { ac_try='test -z "$ac_c_werror_flag" |
11962 | || test ! -s conftest.err' | |
3006edc0 VZ |
11963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11964 | (eval $ac_try) 2>&5 | |
11965 | ac_status=$? | |
11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11967 | (exit $ac_status); }; } && | |
11968 | { ac_try='test -s conftest.$ac_objext' | |
11969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11970 | (eval $ac_try) 2>&5 | |
11971 | ac_status=$? | |
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11973 | (exit $ac_status); }; }; then | |
dee1a63f | 11974 | wx_compiler_xlc=yes |
3006edc0 VZ |
11975 | else |
11976 | echo "$as_me: failed program was:" >&5 | |
11977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11978 | ||
dee1a63f | 11979 | wx_compiler_xlc=no |
3006edc0 VZ |
11980 | fi |
11981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dee1a63f | 11982 | wx_cv_c_compiler_xlc=$wx_compiler_xlc |
3006edc0 VZ |
11983 | |
11984 | fi | |
dee1a63f MB |
11985 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 |
11986 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
3006edc0 | 11987 | |
dee1a63f | 11988 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
11989 | ac_ext=c |
11990 | ac_cpp='$CPP $CPPFLAGS' | |
11991 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11992 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11993 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11994 | ||
11995 | ||
11996 | ;; | |
11997 | ||
11998 | Darwin) | |
11999 | ac_ext=c | |
95986553 DE |
12000 | ac_cpp='$CPP $CPPFLAGS' |
12001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12004 | ||
12005 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12006 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12007 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12009 | else | |
12010 | cat >conftest.$ac_ext <<_ACEOF | |
12011 | /* confdefs.h. */ | |
12012 | _ACEOF | |
12013 | cat confdefs.h >>conftest.$ac_ext | |
12014 | cat >>conftest.$ac_ext <<_ACEOF | |
12015 | /* end confdefs.h. */ | |
12016 | ||
12017 | int | |
12018 | main () | |
12019 | { | |
12020 | #ifndef __MWERKS__ | |
12021 | choke me | |
12022 | #endif | |
12023 | ||
12024 | ; | |
12025 | return 0; | |
12026 | } | |
12027 | _ACEOF | |
12028 | rm -f conftest.$ac_objext | |
12029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12030 | (eval $ac_compile) 2>conftest.er1 | |
12031 | ac_status=$? | |
12032 | grep -v '^ *+' conftest.er1 >conftest.err | |
12033 | rm -f conftest.er1 | |
12034 | cat conftest.err >&5 | |
12035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12036 | (exit $ac_status); } && | |
dee1a63f MB |
12037 | { ac_try='test -z "$ac_c_werror_flag" |
12038 | || test ! -s conftest.err' | |
95986553 DE |
12039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12040 | (eval $ac_try) 2>&5 | |
12041 | ac_status=$? | |
12042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12043 | (exit $ac_status); }; } && | |
12044 | { ac_try='test -s conftest.$ac_objext' | |
12045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12046 | (eval $ac_try) 2>&5 | |
12047 | ac_status=$? | |
12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12049 | (exit $ac_status); }; }; then | |
12050 | bakefile_compiler_mwerks=yes | |
12051 | else | |
12052 | echo "$as_me: failed program was:" >&5 | |
12053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12054 | ||
12055 | bakefile_compiler_mwerks=no | |
12056 | fi | |
12057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12058 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12059 | ||
12060 | fi | |
12061 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12062 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12063 | ||
0e6fa1d9 | 12064 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12065 | ac_ext=c |
12066 | ac_cpp='$CPP $CPPFLAGS' | |
12067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12070 | ||
12071 | ||
3006edc0 | 12072 | ac_ext=c |
9273ffba DE |
12073 | ac_cpp='$CPP $CPPFLAGS' |
12074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12077 | ||
12078 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12079 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
dee1a63f | 12080 | if test "${wx_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12082 | else | |
12083 | cat >conftest.$ac_ext <<_ACEOF | |
12084 | /* confdefs.h. */ | |
12085 | _ACEOF | |
12086 | cat confdefs.h >>conftest.$ac_ext | |
12087 | cat >>conftest.$ac_ext <<_ACEOF | |
12088 | /* end confdefs.h. */ | |
12089 | ||
12090 | int | |
12091 | main () | |
12092 | { | |
12093 | #ifndef __xlC__ | |
12094 | choke me | |
12095 | #endif | |
12096 | ||
12097 | ; | |
12098 | return 0; | |
12099 | } | |
12100 | _ACEOF | |
12101 | rm -f conftest.$ac_objext | |
12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12103 | (eval $ac_compile) 2>conftest.er1 | |
12104 | ac_status=$? | |
12105 | grep -v '^ *+' conftest.er1 >conftest.err | |
12106 | rm -f conftest.er1 | |
12107 | cat conftest.err >&5 | |
12108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12109 | (exit $ac_status); } && | |
dee1a63f MB |
12110 | { ac_try='test -z "$ac_c_werror_flag" |
12111 | || test ! -s conftest.err' | |
9273ffba DE |
12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12113 | (eval $ac_try) 2>&5 | |
12114 | ac_status=$? | |
12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12116 | (exit $ac_status); }; } && | |
12117 | { ac_try='test -s conftest.$ac_objext' | |
12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12119 | (eval $ac_try) 2>&5 | |
12120 | ac_status=$? | |
12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12122 | (exit $ac_status); }; }; then | |
dee1a63f | 12123 | wx_compiler_xlc=yes |
9273ffba DE |
12124 | else |
12125 | echo "$as_me: failed program was:" >&5 | |
12126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12127 | ||
dee1a63f | 12128 | wx_compiler_xlc=no |
9273ffba DE |
12129 | fi |
12130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dee1a63f | 12131 | wx_cv_c_compiler_xlc=$wx_compiler_xlc |
9273ffba DE |
12132 | |
12133 | fi | |
dee1a63f MB |
12134 | echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5 |
12135 | echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6 | |
9273ffba | 12136 | |
dee1a63f | 12137 | XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12138 | ac_ext=c |
12139 | ac_cpp='$CPP $CPPFLAGS' | |
12140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12143 | ||
12144 | ||
3006edc0 VZ |
12145 | ;; |
12146 | ||
12147 | IRIX*) | |
a848cd7e | 12148 | |
6dcfc289 | 12149 | |
0ad5d837 VZ |
12150 | ac_ext=c |
12151 | ac_cpp='$CPP $CPPFLAGS' | |
12152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12155 | ||
12156 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12157 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12158 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12160 | else | |
12161 | cat >conftest.$ac_ext <<_ACEOF | |
12162 | /* confdefs.h. */ | |
12163 | _ACEOF | |
12164 | cat confdefs.h >>conftest.$ac_ext | |
12165 | cat >>conftest.$ac_ext <<_ACEOF | |
12166 | /* end confdefs.h. */ | |
12167 | ||
12168 | int | |
12169 | main () | |
12170 | { | |
12171 | ||
12172 | #ifndef _SGI_COMPILER_VERSION | |
12173 | choke me | |
12174 | #endif | |
12175 | ||
12176 | ; | |
12177 | return 0; | |
12178 | } | |
12179 | _ACEOF | |
12180 | rm -f conftest.$ac_objext | |
12181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12182 | (eval $ac_compile) 2>conftest.er1 | |
12183 | ac_status=$? | |
12184 | grep -v '^ *+' conftest.er1 >conftest.err | |
12185 | rm -f conftest.er1 | |
12186 | cat conftest.err >&5 | |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12188 | (exit $ac_status); } && | |
dee1a63f MB |
12189 | { ac_try='test -z "$ac_c_werror_flag" |
12190 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12192 | (eval $ac_try) 2>&5 | |
12193 | ac_status=$? | |
12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12195 | (exit $ac_status); }; } && | |
12196 | { ac_try='test -s conftest.$ac_objext' | |
12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12198 | (eval $ac_try) 2>&5 | |
12199 | ac_status=$? | |
12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12201 | (exit $ac_status); }; }; then | |
12202 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12203 | else | |
12204 | echo "$as_me: failed program was:" >&5 | |
12205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12206 | ||
12207 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12208 | ||
12209 | fi | |
12210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12211 | ||
12212 | ||
12213 | fi | |
12214 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12215 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12216 | ac_ext=c | |
12217 | ac_cpp='$CPP $CPPFLAGS' | |
12218 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12219 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12220 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12221 | ||
12222 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12223 | :; SGICC=yes | |
12224 | else | |
12225 | :; | |
12226 | fi | |
12227 | ||
12228 | ||
3006edc0 VZ |
12229 | ;; |
12230 | ||
dee1a63f | 12231 | SunOS) |
3006edc0 VZ |
12232 | |
12233 | ||
12234 | ac_ext=c | |
12235 | ac_cpp='$CPP $CPPFLAGS' | |
12236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12239 | ||
dee1a63f MB |
12240 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 |
12241 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12242 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
3006edc0 VZ |
12243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12244 | else | |
12245 | cat >conftest.$ac_ext <<_ACEOF | |
12246 | /* confdefs.h. */ | |
12247 | _ACEOF | |
12248 | cat confdefs.h >>conftest.$ac_ext | |
12249 | cat >>conftest.$ac_ext <<_ACEOF | |
12250 | /* end confdefs.h. */ | |
12251 | ||
12252 | int | |
12253 | main () | |
12254 | { | |
12255 | ||
dee1a63f | 12256 | #ifndef __SUNPRO_C |
3006edc0 VZ |
12257 | choke me |
12258 | #endif | |
12259 | ||
12260 | ; | |
12261 | return 0; | |
12262 | } | |
12263 | _ACEOF | |
12264 | rm -f conftest.$ac_objext | |
12265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12266 | (eval $ac_compile) 2>conftest.er1 | |
12267 | ac_status=$? | |
12268 | grep -v '^ *+' conftest.er1 >conftest.err | |
12269 | rm -f conftest.er1 | |
12270 | cat conftest.err >&5 | |
12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12272 | (exit $ac_status); } && | |
dee1a63f MB |
12273 | { ac_try='test -z "$ac_c_werror_flag" |
12274 | || test ! -s conftest.err' | |
3006edc0 VZ |
12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12276 | (eval $ac_try) 2>&5 | |
12277 | ac_status=$? | |
12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12279 | (exit $ac_status); }; } && | |
12280 | { ac_try='test -s conftest.$ac_objext' | |
12281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12282 | (eval $ac_try) 2>&5 | |
12283 | ac_status=$? | |
12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12285 | (exit $ac_status); }; }; then | |
dee1a63f | 12286 | bakefile_cv_c_compiler___SUNPRO_C=yes |
3006edc0 VZ |
12287 | else |
12288 | echo "$as_me: failed program was:" >&5 | |
12289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12290 | ||
dee1a63f | 12291 | bakefile_cv_c_compiler___SUNPRO_C=no |
3006edc0 VZ |
12292 | |
12293 | fi | |
12294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12295 | ||
12296 | ||
12297 | fi | |
dee1a63f MB |
12298 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 |
12299 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
3006edc0 VZ |
12300 | ac_ext=c |
12301 | ac_cpp='$CPP $CPPFLAGS' | |
12302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12305 | ||
dee1a63f MB |
12306 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then |
12307 | :; SUNCC=yes | |
a1aa0349 VZ |
12308 | else |
12309 | :; | |
12310 | fi | |
12311 | ||
12312 | ||
12313 | ;; | |
12314 | ||
dee1a63f | 12315 | HP-UX*) |
a1aa0349 VZ |
12316 | |
12317 | ||
12318 | ac_ext=c | |
12319 | ac_cpp='$CPP $CPPFLAGS' | |
12320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12323 | ||
dee1a63f MB |
12324 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12325 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12326 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
a1aa0349 VZ |
12327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12328 | else | |
12329 | cat >conftest.$ac_ext <<_ACEOF | |
12330 | /* confdefs.h. */ | |
12331 | _ACEOF | |
12332 | cat confdefs.h >>conftest.$ac_ext | |
12333 | cat >>conftest.$ac_ext <<_ACEOF | |
12334 | /* end confdefs.h. */ | |
12335 | ||
12336 | int | |
12337 | main () | |
12338 | { | |
12339 | ||
dee1a63f | 12340 | #ifndef __HP_cc |
a1aa0349 VZ |
12341 | choke me |
12342 | #endif | |
12343 | ||
12344 | ; | |
12345 | return 0; | |
12346 | } | |
12347 | _ACEOF | |
12348 | rm -f conftest.$ac_objext | |
12349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12350 | (eval $ac_compile) 2>conftest.er1 | |
12351 | ac_status=$? | |
12352 | grep -v '^ *+' conftest.er1 >conftest.err | |
12353 | rm -f conftest.er1 | |
12354 | cat conftest.err >&5 | |
12355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12356 | (exit $ac_status); } && | |
dee1a63f MB |
12357 | { ac_try='test -z "$ac_c_werror_flag" |
12358 | || test ! -s conftest.err' | |
a1aa0349 VZ |
12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12360 | (eval $ac_try) 2>&5 | |
12361 | ac_status=$? | |
12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12363 | (exit $ac_status); }; } && | |
12364 | { ac_try='test -s conftest.$ac_objext' | |
12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12366 | (eval $ac_try) 2>&5 | |
12367 | ac_status=$? | |
12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12369 | (exit $ac_status); }; }; then | |
dee1a63f | 12370 | bakefile_cv_c_compiler___HP_cc=yes |
a1aa0349 VZ |
12371 | else |
12372 | echo "$as_me: failed program was:" >&5 | |
12373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12374 | ||
dee1a63f | 12375 | bakefile_cv_c_compiler___HP_cc=no |
a1aa0349 VZ |
12376 | |
12377 | fi | |
12378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12379 | ||
12380 | ||
12381 | fi | |
dee1a63f MB |
12382 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12383 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
a1aa0349 VZ |
12384 | ac_ext=c |
12385 | ac_cpp='$CPP $CPPFLAGS' | |
12386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12389 | ||
dee1a63f MB |
12390 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12391 | :; HPCC=yes | |
3006edc0 VZ |
12392 | else |
12393 | :; | |
12394 | fi | |
12395 | ||
12396 | ||
12397 | ;; | |
12398 | esac | |
ab0ad5f1 | 12399 | fi |
a9e5b1f0 MW |
12400 | |
12401 | ||
3006edc0 | 12402 | |
a848cd7e SC |
12403 | ac_ext=c |
12404 | ac_cpp='$CPP $CPPFLAGS' | |
12405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12408 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12409 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12410 | # On Suns, sometimes $CPP names a directory. | |
12411 | if test -n "$CPP" && test -d "$CPP"; then | |
12412 | CPP= | |
12413 | fi | |
12414 | if test -z "$CPP"; then | |
12415 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12417 | else | |
12418 | # Double quotes because CPP needs to be expanded | |
12419 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12420 | do | |
12421 | ac_preproc_ok=false | |
12422 | for ac_c_preproc_warn_flag in '' yes | |
12423 | do | |
12424 | # Use a header file that comes with gcc, so configuring glibc | |
12425 | # with a fresh cross-compiler works. | |
12426 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12427 | # <limits.h> exists even on freestanding compilers. | |
12428 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12429 | # not just through cpp. "Syntax error" is here to catch this case. | |
12430 | cat >conftest.$ac_ext <<_ACEOF | |
12431 | /* confdefs.h. */ | |
12432 | _ACEOF | |
12433 | cat confdefs.h >>conftest.$ac_ext | |
12434 | cat >>conftest.$ac_ext <<_ACEOF | |
12435 | /* end confdefs.h. */ | |
12436 | #ifdef __STDC__ | |
12437 | # include <limits.h> | |
12438 | #else | |
12439 | # include <assert.h> | |
12440 | #endif | |
ac1cb8d3 | 12441 | Syntax error |
a848cd7e SC |
12442 | _ACEOF |
12443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12445 | ac_status=$? | |
12446 | grep -v '^ *+' conftest.er1 >conftest.err | |
12447 | rm -f conftest.er1 | |
12448 | cat conftest.err >&5 | |
12449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12450 | (exit $ac_status); } >/dev/null; then | |
12451 | if test -s conftest.err; then | |
12452 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12453 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12454 | else |
12455 | ac_cpp_err= | |
12456 | fi | |
12457 | else | |
12458 | ac_cpp_err=yes | |
12459 | fi | |
12460 | if test -z "$ac_cpp_err"; then | |
12461 | : | |
12462 | else | |
12463 | echo "$as_me: failed program was:" >&5 | |
12464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12465 | ||
12466 | # Broken: fails on valid input. | |
12467 | continue | |
12468 | fi | |
12469 | rm -f conftest.err conftest.$ac_ext | |
12470 | ||
12471 | # OK, works on sane cases. Now check whether non-existent headers | |
12472 | # can be detected and how. | |
12473 | cat >conftest.$ac_ext <<_ACEOF | |
12474 | /* confdefs.h. */ | |
12475 | _ACEOF | |
12476 | cat confdefs.h >>conftest.$ac_ext | |
12477 | cat >>conftest.$ac_ext <<_ACEOF | |
12478 | /* end confdefs.h. */ | |
12479 | #include <ac_nonexistent.h> | |
12480 | _ACEOF | |
12481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12483 | ac_status=$? | |
12484 | grep -v '^ *+' conftest.er1 >conftest.err | |
12485 | rm -f conftest.er1 | |
12486 | cat conftest.err >&5 | |
12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12488 | (exit $ac_status); } >/dev/null; then | |
12489 | if test -s conftest.err; then | |
12490 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12491 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12492 | else |
12493 | ac_cpp_err= | |
12494 | fi | |
12495 | else | |
12496 | ac_cpp_err=yes | |
12497 | fi | |
12498 | if test -z "$ac_cpp_err"; then | |
12499 | # Broken: success on invalid input. | |
12500 | continue | |
12501 | else | |
12502 | echo "$as_me: failed program was:" >&5 | |
12503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12504 | ||
12505 | # Passes both tests. | |
12506 | ac_preproc_ok=: | |
12507 | break | |
12508 | fi | |
12509 | rm -f conftest.err conftest.$ac_ext | |
12510 | ||
12511 | done | |
12512 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12513 | rm -f conftest.err conftest.$ac_ext | |
12514 | if $ac_preproc_ok; then | |
12515 | break | |
12516 | fi | |
12517 | ||
12518 | done | |
12519 | ac_cv_prog_CPP=$CPP | |
12520 | ||
12521 | fi | |
12522 | CPP=$ac_cv_prog_CPP | |
12523 | else | |
12524 | ac_cv_prog_CPP=$CPP | |
12525 | fi | |
12526 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12527 | echo "${ECHO_T}$CPP" >&6 | |
12528 | ac_preproc_ok=false | |
12529 | for ac_c_preproc_warn_flag in '' yes | |
12530 | do | |
12531 | # Use a header file that comes with gcc, so configuring glibc | |
12532 | # with a fresh cross-compiler works. | |
12533 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12534 | # <limits.h> exists even on freestanding compilers. | |
12535 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12536 | # not just through cpp. "Syntax error" is here to catch this case. | |
12537 | cat >conftest.$ac_ext <<_ACEOF | |
12538 | /* confdefs.h. */ | |
12539 | _ACEOF | |
12540 | cat confdefs.h >>conftest.$ac_ext | |
12541 | cat >>conftest.$ac_ext <<_ACEOF | |
12542 | /* end confdefs.h. */ | |
12543 | #ifdef __STDC__ | |
12544 | # include <limits.h> | |
12545 | #else | |
12546 | # include <assert.h> | |
12547 | #endif | |
ac1cb8d3 | 12548 | Syntax error |
a848cd7e SC |
12549 | _ACEOF |
12550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12552 | ac_status=$? | |
12553 | grep -v '^ *+' conftest.er1 >conftest.err | |
12554 | rm -f conftest.er1 | |
12555 | cat conftest.err >&5 | |
12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12557 | (exit $ac_status); } >/dev/null; then | |
12558 | if test -s conftest.err; then | |
12559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12561 | else |
12562 | ac_cpp_err= | |
12563 | fi | |
12564 | else | |
12565 | ac_cpp_err=yes | |
12566 | fi | |
12567 | if test -z "$ac_cpp_err"; then | |
12568 | : | |
12569 | else | |
12570 | echo "$as_me: failed program was:" >&5 | |
12571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12572 | ||
12573 | # Broken: fails on valid input. | |
12574 | continue | |
12575 | fi | |
12576 | rm -f conftest.err conftest.$ac_ext | |
12577 | ||
12578 | # OK, works on sane cases. Now check whether non-existent headers | |
12579 | # can be detected and how. | |
12580 | cat >conftest.$ac_ext <<_ACEOF | |
12581 | /* confdefs.h. */ | |
12582 | _ACEOF | |
12583 | cat confdefs.h >>conftest.$ac_ext | |
12584 | cat >>conftest.$ac_ext <<_ACEOF | |
12585 | /* end confdefs.h. */ | |
12586 | #include <ac_nonexistent.h> | |
12587 | _ACEOF | |
12588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12590 | ac_status=$? | |
12591 | grep -v '^ *+' conftest.er1 >conftest.err | |
12592 | rm -f conftest.er1 | |
12593 | cat conftest.err >&5 | |
12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12595 | (exit $ac_status); } >/dev/null; then | |
12596 | if test -s conftest.err; then | |
12597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12599 | else |
12600 | ac_cpp_err= | |
12601 | fi | |
12602 | else | |
12603 | ac_cpp_err=yes | |
12604 | fi | |
12605 | if test -z "$ac_cpp_err"; then | |
12606 | # Broken: success on invalid input. | |
12607 | continue | |
12608 | else | |
12609 | echo "$as_me: failed program was:" >&5 | |
12610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12611 | ||
12612 | # Passes both tests. | |
12613 | ac_preproc_ok=: | |
12614 | break | |
12615 | fi | |
12616 | rm -f conftest.err conftest.$ac_ext | |
12617 | ||
12618 | done | |
12619 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12620 | rm -f conftest.err conftest.$ac_ext | |
12621 | if $ac_preproc_ok; then | |
12622 | : | |
12623 | else | |
12624 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12625 | See \`config.log' for more details." >&5 | |
12626 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12627 | See \`config.log' for more details." >&2;} | |
12628 | { (exit 1); exit 1; }; } | |
12629 | fi | |
12630 | ||
12631 | ac_ext=c | |
12632 | ac_cpp='$CPP $CPPFLAGS' | |
12633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12636 | ||
12637 | ||
12638 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12639 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12640 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12642 | else | |
12643 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12644 | then ac_cv_prog_egrep='grep -E' | |
12645 | else ac_cv_prog_egrep='egrep' | |
12646 | fi | |
12647 | fi | |
12648 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12649 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12650 | EGREP=$ac_cv_prog_egrep | |
12651 | ||
12652 | ||
12653 | if test $ac_cv_c_compiler_gnu = yes; then | |
12654 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12655 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12656 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12658 | else | |
12659 | ac_pattern="Autoconf.*'x'" | |
12660 | cat >conftest.$ac_ext <<_ACEOF | |
12661 | /* confdefs.h. */ | |
12662 | _ACEOF | |
12663 | cat confdefs.h >>conftest.$ac_ext | |
12664 | cat >>conftest.$ac_ext <<_ACEOF | |
12665 | /* end confdefs.h. */ | |
12666 | #include <sgtty.h> | |
12667 | Autoconf TIOCGETP | |
12668 | _ACEOF | |
12669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12670 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12671 | ac_cv_prog_gcc_traditional=yes | |
12672 | else | |
12673 | ac_cv_prog_gcc_traditional=no | |
12674 | fi | |
12675 | rm -f conftest* | |
12676 | ||
12677 | ||
12678 | if test $ac_cv_prog_gcc_traditional = no; then | |
12679 | cat >conftest.$ac_ext <<_ACEOF | |
12680 | /* confdefs.h. */ | |
12681 | _ACEOF | |
12682 | cat confdefs.h >>conftest.$ac_ext | |
12683 | cat >>conftest.$ac_ext <<_ACEOF | |
12684 | /* end confdefs.h. */ | |
12685 | #include <termio.h> | |
12686 | Autoconf TCGETA | |
12687 | _ACEOF | |
12688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12689 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12690 | ac_cv_prog_gcc_traditional=yes | |
12691 | fi | |
12692 | rm -f conftest* | |
12693 | ||
12694 | fi | |
12695 | fi | |
12696 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12697 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12698 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12699 | CC="$CC -traditional" | |
12700 | fi | |
12701 | fi | |
12702 | ||
12703 | ||
12704 | ||
12705 | ||
12706 | ac_ext=cc | |
12707 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12708 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12709 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12710 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12711 | ||
12712 | ||
12713 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12714 | |
12715 | ||
3006edc0 | 12716 | |
6dcfc289 | 12717 | ac_ext=cc |
a848cd7e SC |
12718 | ac_cpp='$CXXCPP $CPPFLAGS' |
12719 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12720 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12721 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12722 | if test -n "$ac_tool_prefix"; then | |
12723 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12724 | do | |
12725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12729 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12731 | else | |
12732 | if test -n "$CXX"; then | |
12733 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12734 | else | |
12735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12736 | for as_dir in $PATH | |
12737 | do | |
12738 | IFS=$as_save_IFS | |
12739 | test -z "$as_dir" && as_dir=. | |
12740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12742 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12744 | break 2 | |
12745 | fi | |
12746 | done | |
12747 | done | |
12748 | ||
12749 | fi | |
12750 | fi | |
12751 | CXX=$ac_cv_prog_CXX | |
12752 | if test -n "$CXX"; then | |
12753 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12754 | echo "${ECHO_T}$CXX" >&6 | |
12755 | else | |
12756 | echo "$as_me:$LINENO: result: no" >&5 | |
12757 | echo "${ECHO_T}no" >&6 | |
12758 | fi | |
12759 | ||
12760 | test -n "$CXX" && break | |
12761 | done | |
12762 | fi | |
12763 | if test -z "$CXX"; then | |
12764 | ac_ct_CXX=$CXX | |
12765 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12766 | do | |
12767 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12768 | set dummy $ac_prog; ac_word=$2 | |
12769 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12771 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12773 | else | |
12774 | if test -n "$ac_ct_CXX"; then | |
12775 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12776 | else | |
12777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12778 | for as_dir in $PATH | |
12779 | do | |
12780 | IFS=$as_save_IFS | |
12781 | test -z "$as_dir" && as_dir=. | |
12782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12784 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12786 | break 2 | |
12787 | fi | |
12788 | done | |
12789 | done | |
12790 | ||
12791 | fi | |
12792 | fi | |
12793 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12794 | if test -n "$ac_ct_CXX"; then | |
12795 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12796 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12797 | else | |
12798 | echo "$as_me:$LINENO: result: no" >&5 | |
12799 | echo "${ECHO_T}no" >&6 | |
12800 | fi | |
12801 | ||
12802 | test -n "$ac_ct_CXX" && break | |
12803 | done | |
12804 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12805 | ||
12806 | CXX=$ac_ct_CXX | |
12807 | fi | |
12808 | ||
12809 | ||
12810 | # Provide some information about the compiler. | |
12811 | echo "$as_me:$LINENO:" \ | |
12812 | "checking for C++ compiler version" >&5 | |
12813 | ac_compiler=`set X $ac_compile; echo $2` | |
12814 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12815 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12816 | ac_status=$? | |
12817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12818 | (exit $ac_status); } | |
12819 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12820 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12821 | ac_status=$? | |
12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12823 | (exit $ac_status); } | |
12824 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12825 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12826 | ac_status=$? | |
12827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12828 | (exit $ac_status); } | |
12829 | ||
12830 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12831 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12832 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12834 | else | |
12835 | cat >conftest.$ac_ext <<_ACEOF | |
12836 | /* confdefs.h. */ | |
12837 | _ACEOF | |
12838 | cat confdefs.h >>conftest.$ac_ext | |
12839 | cat >>conftest.$ac_ext <<_ACEOF | |
12840 | /* end confdefs.h. */ | |
12841 | ||
12842 | int | |
12843 | main () | |
12844 | { | |
12845 | #ifndef __GNUC__ | |
12846 | choke me | |
12847 | #endif | |
12848 | ||
12849 | ; | |
12850 | return 0; | |
12851 | } | |
12852 | _ACEOF | |
12853 | rm -f conftest.$ac_objext | |
12854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12855 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12856 | ac_status=$? |
ac1cb8d3 VS |
12857 | grep -v '^ *+' conftest.er1 >conftest.err |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
a848cd7e SC |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12861 | (exit $ac_status); } && | |
dee1a63f MB |
12862 | { ac_try='test -z "$ac_cxx_werror_flag" |
12863 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12865 | (eval $ac_try) 2>&5 | |
12866 | ac_status=$? | |
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12868 | (exit $ac_status); }; } && | |
12869 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12871 | (eval $ac_try) 2>&5 | |
12872 | ac_status=$? | |
12873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12874 | (exit $ac_status); }; }; then | |
12875 | ac_compiler_gnu=yes | |
12876 | else | |
12877 | echo "$as_me: failed program was:" >&5 | |
12878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12879 | ||
12880 | ac_compiler_gnu=no | |
12881 | fi | |
ac1cb8d3 | 12882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12883 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12884 | ||
12885 | fi | |
12886 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
12887 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
12888 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
12889 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
12890 | ac_save_CXXFLAGS=$CXXFLAGS | |
12891 | CXXFLAGS="-g" | |
12892 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
12893 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
12894 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
12895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12896 | else | |
12897 | cat >conftest.$ac_ext <<_ACEOF | |
12898 | /* confdefs.h. */ | |
12899 | _ACEOF | |
12900 | cat confdefs.h >>conftest.$ac_ext | |
12901 | cat >>conftest.$ac_ext <<_ACEOF | |
12902 | /* end confdefs.h. */ | |
12903 | ||
12904 | int | |
12905 | main () | |
12906 | { | |
12907 | ||
12908 | ; | |
12909 | return 0; | |
12910 | } | |
12911 | _ACEOF | |
12912 | rm -f conftest.$ac_objext | |
12913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12915 | ac_status=$? |
ac1cb8d3 VS |
12916 | grep -v '^ *+' conftest.er1 >conftest.err |
12917 | rm -f conftest.er1 | |
12918 | cat conftest.err >&5 | |
a848cd7e SC |
12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12920 | (exit $ac_status); } && | |
dee1a63f MB |
12921 | { ac_try='test -z "$ac_cxx_werror_flag" |
12922 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12924 | (eval $ac_try) 2>&5 | |
12925 | ac_status=$? | |
12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12927 | (exit $ac_status); }; } && | |
12928 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12930 | (eval $ac_try) 2>&5 | |
12931 | ac_status=$? | |
12932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12933 | (exit $ac_status); }; }; then | |
12934 | ac_cv_prog_cxx_g=yes | |
12935 | else | |
12936 | echo "$as_me: failed program was:" >&5 | |
12937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12938 | ||
12939 | ac_cv_prog_cxx_g=no | |
12940 | fi | |
ac1cb8d3 | 12941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12942 | fi |
12943 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
12944 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
12945 | if test "$ac_test_CXXFLAGS" = set; then | |
12946 | CXXFLAGS=$ac_save_CXXFLAGS | |
12947 | elif test $ac_cv_prog_cxx_g = yes; then | |
12948 | if test "$GXX" = yes; then | |
1c14217d | 12949 | CXXFLAGS="-g -O2" |
a848cd7e | 12950 | else |
1c14217d | 12951 | CXXFLAGS="-g" |
a848cd7e SC |
12952 | fi |
12953 | else | |
12954 | if test "$GXX" = yes; then | |
12955 | CXXFLAGS="-O2" | |
12956 | else | |
12957 | CXXFLAGS= | |
12958 | fi | |
12959 | fi | |
12960 | for ac_declaration in \ | |
ac1cb8d3 | 12961 | '' \ |
a848cd7e SC |
12962 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12963 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12964 | 'extern "C" void exit (int) throw ();' \ | |
12965 | 'extern "C" void exit (int);' \ | |
12966 | 'void exit (int);' | |
12967 | do | |
12968 | cat >conftest.$ac_ext <<_ACEOF | |
12969 | /* confdefs.h. */ | |
12970 | _ACEOF | |
12971 | cat confdefs.h >>conftest.$ac_ext | |
12972 | cat >>conftest.$ac_ext <<_ACEOF | |
12973 | /* end confdefs.h. */ | |
de59c161 | 12974 | $ac_declaration |
ac1cb8d3 | 12975 | #include <stdlib.h> |
a848cd7e SC |
12976 | int |
12977 | main () | |
12978 | { | |
12979 | exit (42); | |
12980 | ; | |
12981 | return 0; | |
12982 | } | |
12983 | _ACEOF | |
12984 | rm -f conftest.$ac_objext | |
12985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12986 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12987 | ac_status=$? |
ac1cb8d3 VS |
12988 | grep -v '^ *+' conftest.er1 >conftest.err |
12989 | rm -f conftest.er1 | |
12990 | cat conftest.err >&5 | |
a848cd7e SC |
12991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12992 | (exit $ac_status); } && | |
dee1a63f MB |
12993 | { ac_try='test -z "$ac_cxx_werror_flag" |
12994 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12996 | (eval $ac_try) 2>&5 | |
12997 | ac_status=$? | |
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); }; } && | |
13000 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13002 | (eval $ac_try) 2>&5 | |
13003 | ac_status=$? | |
13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13005 | (exit $ac_status); }; }; then | |
13006 | : | |
13007 | else | |
13008 | echo "$as_me: failed program was:" >&5 | |
13009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13010 | ||
13011 | continue | |
13012 | fi | |
ac1cb8d3 | 13013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13014 | cat >conftest.$ac_ext <<_ACEOF |
13015 | /* confdefs.h. */ | |
13016 | _ACEOF | |
13017 | cat confdefs.h >>conftest.$ac_ext | |
13018 | cat >>conftest.$ac_ext <<_ACEOF | |
13019 | /* end confdefs.h. */ | |
13020 | $ac_declaration | |
13021 | int | |
13022 | main () | |
13023 | { | |
13024 | exit (42); | |
13025 | ; | |
13026 | return 0; | |
13027 | } | |
13028 | _ACEOF | |
13029 | rm -f conftest.$ac_objext | |
13030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13032 | ac_status=$? |
ac1cb8d3 VS |
13033 | grep -v '^ *+' conftest.er1 >conftest.err |
13034 | rm -f conftest.er1 | |
13035 | cat conftest.err >&5 | |
a848cd7e SC |
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13037 | (exit $ac_status); } && | |
dee1a63f MB |
13038 | { ac_try='test -z "$ac_cxx_werror_flag" |
13039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13041 | (eval $ac_try) 2>&5 | |
13042 | ac_status=$? | |
13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13044 | (exit $ac_status); }; } && | |
13045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13047 | (eval $ac_try) 2>&5 | |
13048 | ac_status=$? | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13050 | (exit $ac_status); }; }; then | |
13051 | break | |
13052 | else | |
13053 | echo "$as_me: failed program was:" >&5 | |
13054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13055 | ||
13056 | fi | |
ac1cb8d3 | 13057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13058 | done |
13059 | rm -f conftest* | |
13060 | if test -n "$ac_declaration"; then | |
13061 | echo '#ifdef __cplusplus' >>confdefs.h | |
13062 | echo $ac_declaration >>confdefs.h | |
13063 | echo '#endif' >>confdefs.h | |
13064 | fi | |
13065 | ||
13066 | ac_ext=cc | |
13067 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13068 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13069 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13070 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13071 | ||
ab0ad5f1 VZ |
13072 | |
13073 | ||
13074 | ac_ext=cc | |
13075 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13076 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13077 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13078 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13079 | ||
13080 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13081 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13082 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13084 | else | |
13085 | cat >conftest.$ac_ext <<_ACEOF | |
13086 | /* confdefs.h. */ | |
13087 | _ACEOF | |
13088 | cat confdefs.h >>conftest.$ac_ext | |
13089 | cat >>conftest.$ac_ext <<_ACEOF | |
13090 | /* end confdefs.h. */ | |
13091 | ||
13092 | int | |
13093 | main () | |
13094 | { | |
13095 | ||
13096 | #ifndef __INTEL_COMPILER | |
13097 | choke me | |
13098 | #endif | |
13099 | ||
13100 | ; | |
13101 | return 0; | |
13102 | } | |
13103 | _ACEOF | |
13104 | rm -f conftest.$ac_objext | |
13105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13106 | (eval $ac_compile) 2>conftest.er1 | |
13107 | ac_status=$? | |
13108 | grep -v '^ *+' conftest.er1 >conftest.err | |
13109 | rm -f conftest.er1 | |
13110 | cat conftest.err >&5 | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); } && | |
dee1a63f MB |
13113 | { ac_try='test -z "$ac_cxx_werror_flag" |
13114 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13116 | (eval $ac_try) 2>&5 | |
13117 | ac_status=$? | |
13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13119 | (exit $ac_status); }; } && | |
13120 | { ac_try='test -s conftest.$ac_objext' | |
13121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13122 | (eval $ac_try) 2>&5 | |
13123 | ac_status=$? | |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13125 | (exit $ac_status); }; }; then | |
13126 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13127 | else | |
13128 | echo "$as_me: failed program was:" >&5 | |
13129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13130 | ||
13131 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13132 | ||
13133 | fi | |
13134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13135 | ||
13136 | ||
13137 | fi | |
13138 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13139 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13140 | ac_ext=cc | |
13141 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13142 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13143 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13144 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13145 | ||
13146 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13147 | :; INTELCXX=yes | |
13148 | else | |
13149 | :; | |
13150 | fi | |
13151 | ||
13152 | ||
3006edc0 VZ |
13153 | if test "x$GCXX" != "xyes"; then |
13154 | if test "xCXX" = "xC"; then | |
13155 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13156 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
dee1a63f | 13157 | if test "${wx_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13159 | else | |
13160 | cat >conftest.$ac_ext <<_ACEOF | |
13161 | /* confdefs.h. */ | |
13162 | _ACEOF | |
13163 | cat confdefs.h >>conftest.$ac_ext | |
13164 | cat >>conftest.$ac_ext <<_ACEOF | |
13165 | /* end confdefs.h. */ | |
13166 | ||
13167 | int | |
13168 | main () | |
13169 | { | |
13170 | ||
13171 | ; | |
13172 | return 0; | |
13173 | } | |
13174 | _ACEOF | |
13175 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13177 | (eval $ac_compile) 2>&5 | |
13178 | ac_status=$? | |
13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13180 | (exit $ac_status); }; then | |
13181 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13182 | case $ac_file in | |
13183 | conftest.$ac_ext.o) | |
dee1a63f | 13184 | wx_cv_cxx_exto="-ext o" |
480ccd21 DE |
13185 | ;; |
13186 | *) | |
13187 | ;; | |
13188 | esac | |
13189 | done | |
13190 | else | |
13191 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13192 | See \`config.log' for more details." >&5 | |
13193 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13194 | See \`config.log' for more details." >&2;} | |
13195 | { (exit 1); exit 1; }; } | |
13196 | ||
13197 | fi | |
13198 | ||
13199 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13200 | ||
13201 | fi | |
dee1a63f MB |
13202 | echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5 |
13203 | echo "${ECHO_T}$wx_cv_cxx_exto" >&6 | |
13204 | if test "x$wx_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13205 | if test "cxx" = "c"; then |
dee1a63f | 13206 | CFLAGS="$wx_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13207 | fi |
13208 | if test "cxx" = "cxx"; then | |
dee1a63f | 13209 | CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13210 | fi |
13211 | fi | |
13212 | ||
dee1a63f | 13213 | if test "x$wx_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13214 | unset ac_cv_prog_cc_g |
13215 | ac_test_CFLAGS=${CFLAGS+set} | |
13216 | ac_save_CFLAGS=$CFLAGS | |
13217 | CFLAGS="-g" | |
13218 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
13219 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13220 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13222 | else | |
13223 | cat >conftest.$ac_ext <<_ACEOF | |
13224 | /* confdefs.h. */ | |
13225 | _ACEOF | |
13226 | cat confdefs.h >>conftest.$ac_ext | |
13227 | cat >>conftest.$ac_ext <<_ACEOF | |
13228 | /* end confdefs.h. */ | |
13229 | ||
13230 | int | |
13231 | main () | |
13232 | { | |
13233 | ||
13234 | ; | |
13235 | return 0; | |
13236 | } | |
13237 | _ACEOF | |
13238 | rm -f conftest.$ac_objext | |
13239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13240 | (eval $ac_compile) 2>conftest.er1 | |
13241 | ac_status=$? | |
13242 | grep -v '^ *+' conftest.er1 >conftest.err | |
13243 | rm -f conftest.er1 | |
13244 | cat conftest.err >&5 | |
13245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13246 | (exit $ac_status); } && | |
dee1a63f MB |
13247 | { ac_try='test -z "$ac_cxx_werror_flag" |
13248 | || test ! -s conftest.err' | |
480ccd21 DE |
13249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13250 | (eval $ac_try) 2>&5 | |
13251 | ac_status=$? | |
13252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13253 | (exit $ac_status); }; } && | |
13254 | { ac_try='test -s conftest.$ac_objext' | |
13255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13256 | (eval $ac_try) 2>&5 | |
13257 | ac_status=$? | |
13258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13259 | (exit $ac_status); }; }; then | |
3006edc0 | 13260 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13261 | else |
13262 | echo "$as_me: failed program was:" >&5 | |
13263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13264 | ||
3006edc0 | 13265 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13266 | fi |
13267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13268 | fi | |
3006edc0 VZ |
13269 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13270 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13271 | if test "$ac_test_CFLAGS" = set; then | |
13272 | CFLAGS=$ac_save_CFLAGS | |
13273 | elif test $ac_cv_prog_cc_g = yes; then | |
13274 | if test "$GCC" = yes; then | |
13275 | CFLAGS="-g -O2" | |
480ccd21 | 13276 | else |
3006edc0 | 13277 | CFLAGS="-g" |
480ccd21 DE |
13278 | fi |
13279 | else | |
3006edc0 VZ |
13280 | if test "$GCC" = yes; then |
13281 | CFLAGS="-O2" | |
480ccd21 | 13282 | else |
3006edc0 | 13283 | CFLAGS= |
480ccd21 DE |
13284 | fi |
13285 | fi | |
3006edc0 | 13286 | fi |
ab0ad5f1 | 13287 | fi |
3006edc0 VZ |
13288 | |
13289 | case `uname -s` in | |
13290 | AIX*) | |
13291 | ac_ext=cc | |
13292 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13296 | ||
13297 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13298 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
dee1a63f | 13299 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13301 | else | |
13302 | cat >conftest.$ac_ext <<_ACEOF | |
13303 | /* confdefs.h. */ | |
13304 | _ACEOF | |
13305 | cat confdefs.h >>conftest.$ac_ext | |
13306 | cat >>conftest.$ac_ext <<_ACEOF | |
13307 | /* end confdefs.h. */ | |
13308 | ||
13309 | int | |
13310 | main () | |
13311 | { | |
13312 | #ifndef __xlC__ | |
13313 | choke me | |
13314 | #endif | |
13315 | ||
13316 | ; | |
13317 | return 0; | |
13318 | } | |
13319 | _ACEOF | |
13320 | rm -f conftest.$ac_objext | |
13321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13322 | (eval $ac_compile) 2>conftest.er1 | |
13323 | ac_status=$? | |
13324 | grep -v '^ *+' conftest.er1 >conftest.err | |
13325 | rm -f conftest.er1 | |
13326 | cat conftest.err >&5 | |
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13328 | (exit $ac_status); } && | |
dee1a63f MB |
13329 | { ac_try='test -z "$ac_cxx_werror_flag" |
13330 | || test ! -s conftest.err' | |
3006edc0 VZ |
13331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13332 | (eval $ac_try) 2>&5 | |
13333 | ac_status=$? | |
13334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13335 | (exit $ac_status); }; } && | |
13336 | { ac_try='test -s conftest.$ac_objext' | |
13337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13338 | (eval $ac_try) 2>&5 | |
13339 | ac_status=$? | |
13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13341 | (exit $ac_status); }; }; then | |
dee1a63f | 13342 | wx_compiler_xlc=yes |
3006edc0 VZ |
13343 | else |
13344 | echo "$as_me: failed program was:" >&5 | |
13345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13346 | ||
dee1a63f | 13347 | wx_compiler_xlc=no |
3006edc0 VZ |
13348 | fi |
13349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dee1a63f | 13350 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc |
3006edc0 VZ |
13351 | |
13352 | fi | |
dee1a63f MB |
13353 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 |
13354 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13355 | |
dee1a63f | 13356 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13357 | ac_ext=cc |
13358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13362 | ||
13363 | ||
13364 | ;; | |
13365 | ||
13366 | Darwin) | |
13367 | ac_ext=cc | |
95986553 DE |
13368 | ac_cpp='$CXXCPP $CPPFLAGS' |
13369 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13370 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13371 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13372 | ||
13373 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13374 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13375 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13377 | else | |
13378 | cat >conftest.$ac_ext <<_ACEOF | |
13379 | /* confdefs.h. */ | |
13380 | _ACEOF | |
13381 | cat confdefs.h >>conftest.$ac_ext | |
13382 | cat >>conftest.$ac_ext <<_ACEOF | |
13383 | /* end confdefs.h. */ | |
13384 | ||
13385 | int | |
13386 | main () | |
13387 | { | |
13388 | #ifndef __MWERKS__ | |
13389 | choke me | |
13390 | #endif | |
13391 | ||
13392 | ; | |
13393 | return 0; | |
13394 | } | |
13395 | _ACEOF | |
13396 | rm -f conftest.$ac_objext | |
13397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13398 | (eval $ac_compile) 2>conftest.er1 | |
13399 | ac_status=$? | |
13400 | grep -v '^ *+' conftest.er1 >conftest.err | |
13401 | rm -f conftest.er1 | |
13402 | cat conftest.err >&5 | |
13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13404 | (exit $ac_status); } && | |
dee1a63f MB |
13405 | { ac_try='test -z "$ac_cxx_werror_flag" |
13406 | || test ! -s conftest.err' | |
95986553 DE |
13407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13408 | (eval $ac_try) 2>&5 | |
13409 | ac_status=$? | |
13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13411 | (exit $ac_status); }; } && | |
13412 | { ac_try='test -s conftest.$ac_objext' | |
13413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13414 | (eval $ac_try) 2>&5 | |
13415 | ac_status=$? | |
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13417 | (exit $ac_status); }; }; then | |
13418 | bakefile_compiler_mwerks=yes | |
13419 | else | |
13420 | echo "$as_me: failed program was:" >&5 | |
13421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13422 | ||
13423 | bakefile_compiler_mwerks=no | |
13424 | fi | |
13425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13426 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13427 | ||
13428 | fi | |
13429 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13430 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13431 | ||
0e6fa1d9 | 13432 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13433 | ac_ext=cc |
13434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13435 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13436 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13437 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13438 | ||
13439 | ||
3006edc0 | 13440 | ac_ext=cc |
9273ffba DE |
13441 | ac_cpp='$CXXCPP $CPPFLAGS' |
13442 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13443 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13444 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13445 | ||
13446 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13447 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
dee1a63f | 13448 | if test "${wx_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13450 | else | |
13451 | cat >conftest.$ac_ext <<_ACEOF | |
13452 | /* confdefs.h. */ | |
13453 | _ACEOF | |
13454 | cat confdefs.h >>conftest.$ac_ext | |
13455 | cat >>conftest.$ac_ext <<_ACEOF | |
13456 | /* end confdefs.h. */ | |
13457 | ||
13458 | int | |
13459 | main () | |
13460 | { | |
13461 | #ifndef __xlC__ | |
13462 | choke me | |
13463 | #endif | |
13464 | ||
13465 | ; | |
13466 | return 0; | |
13467 | } | |
13468 | _ACEOF | |
13469 | rm -f conftest.$ac_objext | |
13470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13471 | (eval $ac_compile) 2>conftest.er1 | |
13472 | ac_status=$? | |
13473 | grep -v '^ *+' conftest.er1 >conftest.err | |
13474 | rm -f conftest.er1 | |
13475 | cat conftest.err >&5 | |
13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13477 | (exit $ac_status); } && | |
dee1a63f MB |
13478 | { ac_try='test -z "$ac_cxx_werror_flag" |
13479 | || test ! -s conftest.err' | |
9273ffba DE |
13480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13481 | (eval $ac_try) 2>&5 | |
13482 | ac_status=$? | |
13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13484 | (exit $ac_status); }; } && | |
13485 | { ac_try='test -s conftest.$ac_objext' | |
13486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13487 | (eval $ac_try) 2>&5 | |
13488 | ac_status=$? | |
13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13490 | (exit $ac_status); }; }; then | |
dee1a63f | 13491 | wx_compiler_xlc=yes |
9273ffba DE |
13492 | else |
13493 | echo "$as_me: failed program was:" >&5 | |
13494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13495 | ||
dee1a63f | 13496 | wx_compiler_xlc=no |
9273ffba DE |
13497 | fi |
13498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dee1a63f | 13499 | wx_cv_cxx_compiler_xlc=$wx_compiler_xlc |
9273ffba DE |
13500 | |
13501 | fi | |
dee1a63f MB |
13502 | echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5 |
13503 | echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13504 | |
dee1a63f | 13505 | XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13506 | ac_ext=cc |
13507 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13508 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13509 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13510 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13511 | ||
13512 | ||
3006edc0 VZ |
13513 | ;; |
13514 | ||
13515 | IRIX*) | |
95986553 | 13516 | |
6dcfc289 | 13517 | |
0ad5d837 VZ |
13518 | ac_ext=cc |
13519 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13520 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13521 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13522 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13523 | ||
13524 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13525 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13526 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13528 | else | |
13529 | cat >conftest.$ac_ext <<_ACEOF | |
13530 | /* confdefs.h. */ | |
13531 | _ACEOF | |
13532 | cat confdefs.h >>conftest.$ac_ext | |
13533 | cat >>conftest.$ac_ext <<_ACEOF | |
13534 | /* end confdefs.h. */ | |
13535 | ||
13536 | int | |
13537 | main () | |
13538 | { | |
13539 | ||
13540 | #ifndef _SGI_COMPILER_VERSION | |
13541 | choke me | |
13542 | #endif | |
13543 | ||
13544 | ; | |
13545 | return 0; | |
13546 | } | |
13547 | _ACEOF | |
13548 | rm -f conftest.$ac_objext | |
13549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13550 | (eval $ac_compile) 2>conftest.er1 | |
13551 | ac_status=$? | |
13552 | grep -v '^ *+' conftest.er1 >conftest.err | |
13553 | rm -f conftest.er1 | |
13554 | cat conftest.err >&5 | |
13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13556 | (exit $ac_status); } && | |
dee1a63f MB |
13557 | { ac_try='test -z "$ac_cxx_werror_flag" |
13558 | || test ! -s conftest.err' | |
0ad5d837 VZ |
13559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13560 | (eval $ac_try) 2>&5 | |
13561 | ac_status=$? | |
13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13563 | (exit $ac_status); }; } && | |
13564 | { ac_try='test -s conftest.$ac_objext' | |
13565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13566 | (eval $ac_try) 2>&5 | |
13567 | ac_status=$? | |
13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13569 | (exit $ac_status); }; }; then | |
13570 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13571 | else | |
13572 | echo "$as_me: failed program was:" >&5 | |
13573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13574 | ||
13575 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13576 | ||
13577 | fi | |
13578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13579 | ||
13580 | ||
13581 | fi | |
13582 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13583 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13584 | ac_ext=cc | |
13585 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13586 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13587 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13588 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13589 | ||
13590 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13591 | :; SGICXX=yes | |
13592 | else | |
13593 | :; | |
13594 | fi | |
13595 | ||
13596 | ||
3006edc0 VZ |
13597 | ;; |
13598 | ||
dee1a63f | 13599 | SunOS) |
3006edc0 VZ |
13600 | |
13601 | ||
13602 | ac_ext=cc | |
13603 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13607 | ||
dee1a63f MB |
13608 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 |
13609 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
13610 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
3006edc0 VZ |
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13612 | else | |
13613 | cat >conftest.$ac_ext <<_ACEOF | |
13614 | /* confdefs.h. */ | |
13615 | _ACEOF | |
13616 | cat confdefs.h >>conftest.$ac_ext | |
13617 | cat >>conftest.$ac_ext <<_ACEOF | |
13618 | /* end confdefs.h. */ | |
13619 | ||
13620 | int | |
13621 | main () | |
13622 | { | |
13623 | ||
dee1a63f | 13624 | #ifndef __SUNPRO_CC |
3006edc0 VZ |
13625 | choke me |
13626 | #endif | |
13627 | ||
13628 | ; | |
13629 | return 0; | |
13630 | } | |
13631 | _ACEOF | |
13632 | rm -f conftest.$ac_objext | |
13633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13634 | (eval $ac_compile) 2>conftest.er1 | |
13635 | ac_status=$? | |
13636 | grep -v '^ *+' conftest.er1 >conftest.err | |
13637 | rm -f conftest.er1 | |
13638 | cat conftest.err >&5 | |
13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13640 | (exit $ac_status); } && | |
dee1a63f MB |
13641 | { ac_try='test -z "$ac_cxx_werror_flag" |
13642 | || test ! -s conftest.err' | |
3006edc0 VZ |
13643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13644 | (eval $ac_try) 2>&5 | |
13645 | ac_status=$? | |
13646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13647 | (exit $ac_status); }; } && | |
13648 | { ac_try='test -s conftest.$ac_objext' | |
13649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13650 | (eval $ac_try) 2>&5 | |
13651 | ac_status=$? | |
13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13653 | (exit $ac_status); }; }; then | |
dee1a63f | 13654 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes |
3006edc0 VZ |
13655 | else |
13656 | echo "$as_me: failed program was:" >&5 | |
13657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13658 | ||
dee1a63f | 13659 | bakefile_cv_cxx_compiler___SUNPRO_CC=no |
3006edc0 VZ |
13660 | |
13661 | fi | |
13662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13663 | ||
13664 | ||
13665 | fi | |
dee1a63f MB |
13666 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 |
13667 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
3006edc0 VZ |
13668 | ac_ext=cc |
13669 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13673 | ||
dee1a63f MB |
13674 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then |
13675 | :; SUNCXX=yes | |
a1aa0349 VZ |
13676 | else |
13677 | :; | |
13678 | fi | |
13679 | ||
13680 | ||
13681 | ;; | |
13682 | ||
dee1a63f | 13683 | HP-UX*) |
a1aa0349 VZ |
13684 | |
13685 | ||
13686 | ac_ext=cc | |
13687 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13691 | ||
dee1a63f MB |
13692 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13693 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13694 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
a1aa0349 VZ |
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13696 | else | |
13697 | cat >conftest.$ac_ext <<_ACEOF | |
13698 | /* confdefs.h. */ | |
13699 | _ACEOF | |
13700 | cat confdefs.h >>conftest.$ac_ext | |
13701 | cat >>conftest.$ac_ext <<_ACEOF | |
13702 | /* end confdefs.h. */ | |
13703 | ||
13704 | int | |
13705 | main () | |
13706 | { | |
13707 | ||
dee1a63f | 13708 | #ifndef __HP_aCC |
a1aa0349 VZ |
13709 | choke me |
13710 | #endif | |
13711 | ||
13712 | ; | |
13713 | return 0; | |
13714 | } | |
13715 | _ACEOF | |
13716 | rm -f conftest.$ac_objext | |
13717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13718 | (eval $ac_compile) 2>conftest.er1 | |
13719 | ac_status=$? | |
13720 | grep -v '^ *+' conftest.er1 >conftest.err | |
13721 | rm -f conftest.er1 | |
13722 | cat conftest.err >&5 | |
13723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13724 | (exit $ac_status); } && | |
dee1a63f MB |
13725 | { ac_try='test -z "$ac_cxx_werror_flag" |
13726 | || test ! -s conftest.err' | |
a1aa0349 VZ |
13727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13728 | (eval $ac_try) 2>&5 | |
13729 | ac_status=$? | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13731 | (exit $ac_status); }; } && | |
13732 | { ac_try='test -s conftest.$ac_objext' | |
13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13734 | (eval $ac_try) 2>&5 | |
13735 | ac_status=$? | |
13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13737 | (exit $ac_status); }; }; then | |
dee1a63f | 13738 | bakefile_cv_cxx_compiler___HP_aCC=yes |
a1aa0349 VZ |
13739 | else |
13740 | echo "$as_me: failed program was:" >&5 | |
13741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13742 | ||
dee1a63f | 13743 | bakefile_cv_cxx_compiler___HP_aCC=no |
a1aa0349 VZ |
13744 | |
13745 | fi | |
13746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13747 | ||
13748 | ||
13749 | fi | |
dee1a63f MB |
13750 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
13751 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
a1aa0349 VZ |
13752 | ac_ext=cc |
13753 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13754 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13755 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13756 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13757 | ||
dee1a63f MB |
13758 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
13759 | :; HPCXX=yes | |
3006edc0 VZ |
13760 | else |
13761 | :; | |
ab0ad5f1 | 13762 | fi |
a9e5b1f0 MW |
13763 | |
13764 | ||
3006edc0 VZ |
13765 | ;; |
13766 | esac | |
13767 | fi | |
13768 | ||
13769 | ||
13770 | ||
a848cd7e SC |
13771 | ac_ext=c |
13772 | ac_cpp='$CPP $CPPFLAGS' | |
13773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13776 | ||
13777 | ||
a848cd7e SC |
13778 | if test -n "$ac_tool_prefix"; then |
13779 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13780 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13783 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13785 | else | |
13786 | if test -n "$RANLIB"; then | |
13787 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13788 | else | |
13789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13790 | for as_dir in $PATH | |
13791 | do | |
13792 | IFS=$as_save_IFS | |
13793 | test -z "$as_dir" && as_dir=. | |
13794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13795 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13796 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13798 | break 2 | |
13799 | fi | |
13800 | done | |
13801 | done | |
13802 | ||
13803 | fi | |
13804 | fi | |
13805 | RANLIB=$ac_cv_prog_RANLIB | |
13806 | if test -n "$RANLIB"; then | |
13807 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13808 | echo "${ECHO_T}$RANLIB" >&6 | |
13809 | else | |
13810 | echo "$as_me:$LINENO: result: no" >&5 | |
13811 | echo "${ECHO_T}no" >&6 | |
13812 | fi | |
13813 | ||
13814 | fi | |
13815 | if test -z "$ac_cv_prog_RANLIB"; then | |
13816 | ac_ct_RANLIB=$RANLIB | |
13817 | # Extract the first word of "ranlib", so it can be a program name with args. | |
13818 | set dummy ranlib; ac_word=$2 | |
13819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13821 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13823 | else | |
13824 | if test -n "$ac_ct_RANLIB"; then | |
13825 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
13826 | else | |
13827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13828 | for as_dir in $PATH | |
13829 | do | |
13830 | IFS=$as_save_IFS | |
13831 | test -z "$as_dir" && as_dir=. | |
13832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13833 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13834 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
13835 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13836 | break 2 | |
13837 | fi | |
13838 | done | |
13839 | done | |
13840 | ||
13841 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
13842 | fi | |
13843 | fi | |
13844 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
13845 | if test -n "$ac_ct_RANLIB"; then | |
13846 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
13847 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
13848 | else | |
13849 | echo "$as_me:$LINENO: result: no" >&5 | |
13850 | echo "${ECHO_T}no" >&6 | |
13851 | fi | |
13852 | ||
13853 | RANLIB=$ac_ct_RANLIB | |
13854 | else | |
13855 | RANLIB="$ac_cv_prog_RANLIB" | |
13856 | fi | |
13857 | ||
13858 | ||
8c80d384 DE |
13859 | if test -n "$ac_tool_prefix"; then |
13860 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
13861 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
13862 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13863 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13864 | if test "${ac_cv_prog_AR+set}" = set; then | |
13865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13866 | else | |
13867 | if test -n "$AR"; then | |
13868 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
13869 | else | |
13870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13871 | for as_dir in $PATH | |
13872 | do | |
13873 | IFS=$as_save_IFS | |
13874 | test -z "$as_dir" && as_dir=. | |
13875 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13876 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 13877 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
13878 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13879 | break 2 | |
13880 | fi | |
13881 | done | |
13882 | done | |
13883 | ||
13884 | fi | |
13885 | fi | |
13886 | AR=$ac_cv_prog_AR | |
13887 | if test -n "$AR"; then | |
13888 | echo "$as_me:$LINENO: result: $AR" >&5 | |
13889 | echo "${ECHO_T}$AR" >&6 | |
13890 | else | |
13891 | echo "$as_me:$LINENO: result: no" >&5 | |
13892 | echo "${ECHO_T}no" >&6 | |
13893 | fi | |
13894 | ||
8c80d384 DE |
13895 | fi |
13896 | if test -z "$ac_cv_prog_AR"; then | |
13897 | ac_ct_AR=$AR | |
13898 | # Extract the first word of "ar", so it can be a program name with args. | |
13899 | set dummy ar; ac_word=$2 | |
13900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13902 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
13903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13904 | else | |
13905 | if test -n "$ac_ct_AR"; then | |
13906 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
13907 | else | |
13908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13909 | for as_dir in $PATH | |
13910 | do | |
13911 | IFS=$as_save_IFS | |
13912 | test -z "$as_dir" && as_dir=. | |
13913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13915 | ac_cv_prog_ac_ct_AR="ar" | |
13916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13917 | break 2 | |
13918 | fi | |
13919 | done | |
13920 | done | |
13921 | ||
13922 | fi | |
13923 | fi | |
13924 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
13925 | if test -n "$ac_ct_AR"; then | |
13926 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
13927 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
13928 | else | |
13929 | echo "$as_me:$LINENO: result: no" >&5 | |
13930 | echo "${ECHO_T}no" >&6 | |
13931 | fi | |
13932 | ||
13933 | AR=$ac_ct_AR | |
13934 | else | |
13935 | AR="$ac_cv_prog_AR" | |
13936 | fi | |
13937 | ||
a848cd7e | 13938 | if test "x$AR" = "x" ; then |
77ffb593 JS |
13939 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
13940 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
13941 | { (exit 1); exit 1; }; } |
13942 | fi | |
13943 | ||
13944 | # Find a good install program. We prefer a C program (faster), | |
13945 | # so one script is as good as another. But avoid the broken or | |
13946 | # incompatible versions: | |
13947 | # SysV /etc/install, /usr/sbin/install | |
13948 | # SunOS /usr/etc/install | |
13949 | # IRIX /sbin/install | |
13950 | # AIX /bin/install | |
13951 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
13952 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
13953 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
13954 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 13955 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
13956 | # ./install, which can be erroneously created by make from ./install.sh. |
13957 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
13958 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
13959 | if test -z "$INSTALL"; then | |
13960 | if test "${ac_cv_path_install+set}" = set; then | |
13961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13962 | else | |
13963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13964 | for as_dir in $PATH | |
13965 | do | |
13966 | IFS=$as_save_IFS | |
13967 | test -z "$as_dir" && as_dir=. | |
13968 | # Account for people who put trailing slashes in PATH elements. | |
13969 | case $as_dir/ in | |
13970 | ./ | .// | /cC/* | \ | |
13971 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 13972 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
13973 | /usr/ucb/* ) ;; |
13974 | *) | |
13975 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
13976 | # Don't use installbsd from OSF since it installs stuff as root | |
13977 | # by default. | |
13978 | for ac_prog in ginstall scoinst install; do | |
13979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
13980 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
13981 | if test $ac_prog = install && | |
13982 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13983 | # AIX install. It has an incompatible calling convention. | |
13984 | : | |
13985 | elif test $ac_prog = install && | |
13986 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
13987 | # program-specific install script used by HP pwplus--don't use. | |
13988 | : | |
13989 | else | |
13990 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
13991 | break 3 | |
13992 | fi | |
13993 | fi | |
a848cd7e SC |
13994 | done |
13995 | done | |
13996 | ;; | |
13997 | esac | |
13998 | done | |
13999 | ||
14000 | ||
14001 | fi | |
14002 | if test "${ac_cv_path_install+set}" = set; then | |
14003 | INSTALL=$ac_cv_path_install | |
14004 | else | |
14005 | # As a last resort, use the slow shell script. We don't cache a | |
14006 | # path for INSTALL within a source directory, because that will | |
14007 | # break other packages using the cache if that directory is | |
14008 | # removed, or if the path is relative. | |
14009 | INSTALL=$ac_install_sh | |
14010 | fi | |
14011 | fi | |
14012 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14013 | echo "${ECHO_T}$INSTALL" >&6 | |
14014 | ||
14015 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14016 | # It thinks the first close brace ends the variable substitution. | |
14017 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14018 | ||
14019 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14020 | ||
14021 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14022 | ||
14023 | ||
14024 | case ${INSTALL} in | |
14025 | /* ) # Absolute | |
14026 | ;; | |
14027 | ?:* ) # Drive letter, considered as absolute. | |
14028 | ;; | |
14029 | *) | |
14030 | INSTALL=`pwd`/${INSTALL} ;; | |
14031 | esac | |
14032 | ||
a848cd7e SC |
14033 | |
14034 | case "${host}" in | |
14035 | ||
cfda0ea8 | 14036 | *-*-darwin* ) |
a848cd7e SC |
14037 | INSTALL_PROGRAM="cp -fp" |
14038 | INSTALL_DATA="cp -fp" | |
14039 | ;; | |
14040 | *) | |
14041 | ;; | |
14042 | esac | |
14043 | ||
8c80d384 DE |
14044 | if test -n "$ac_tool_prefix"; then |
14045 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14046 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14047 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14049 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14051 | else | |
14052 | if test -n "$STRIP"; then | |
14053 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14054 | else | |
14055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14056 | for as_dir in $PATH | |
14057 | do | |
14058 | IFS=$as_save_IFS | |
14059 | test -z "$as_dir" && as_dir=. | |
14060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14062 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14064 | break 2 | |
14065 | fi | |
14066 | done | |
14067 | done | |
14068 | ||
a848cd7e SC |
14069 | fi |
14070 | fi | |
14071 | STRIP=$ac_cv_prog_STRIP | |
14072 | if test -n "$STRIP"; then | |
14073 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14074 | echo "${ECHO_T}$STRIP" >&6 | |
14075 | else | |
14076 | echo "$as_me:$LINENO: result: no" >&5 | |
14077 | echo "${ECHO_T}no" >&6 | |
14078 | fi | |
14079 | ||
8c80d384 DE |
14080 | fi |
14081 | if test -z "$ac_cv_prog_STRIP"; then | |
14082 | ac_ct_STRIP=$STRIP | |
14083 | # Extract the first word of "strip", so it can be a program name with args. | |
14084 | set dummy strip; ac_word=$2 | |
14085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14087 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14089 | else | |
14090 | if test -n "$ac_ct_STRIP"; then | |
14091 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14092 | else | |
14093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14094 | for as_dir in $PATH | |
14095 | do | |
14096 | IFS=$as_save_IFS | |
14097 | test -z "$as_dir" && as_dir=. | |
14098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14099 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14100 | ac_cv_prog_ac_ct_STRIP="strip" | |
14101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14102 | break 2 | |
14103 | fi | |
14104 | done | |
14105 | done | |
14106 | ||
14107 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14108 | fi | |
14109 | fi | |
14110 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14111 | if test -n "$ac_ct_STRIP"; then | |
14112 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14113 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14114 | else | |
14115 | echo "$as_me:$LINENO: result: no" >&5 | |
14116 | echo "${ECHO_T}no" >&6 | |
14117 | fi | |
14118 | ||
14119 | STRIP=$ac_ct_STRIP | |
14120 | else | |
14121 | STRIP="$ac_cv_prog_STRIP" | |
14122 | fi | |
14123 | ||
14124 | ||
14125 | if test "$wxUSE_WINE" = "yes"; then | |
14126 | if test -n "$ac_tool_prefix"; then | |
14127 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14128 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14131 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
14132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14133 | else | |
14134 | if test -n "$RESCOMP"; then | |
14135 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
14136 | else | |
14137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14138 | for as_dir in $PATH | |
14139 | do | |
14140 | IFS=$as_save_IFS | |
14141 | test -z "$as_dir" && as_dir=. | |
14142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14144 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
14145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14146 | break 2 | |
14147 | fi | |
14148 | done | |
14149 | done | |
14150 | ||
14151 | fi | |
14152 | fi | |
14153 | RESCOMP=$ac_cv_prog_RESCOMP | |
14154 | if test -n "$RESCOMP"; then | |
14155 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
14156 | echo "${ECHO_T}$RESCOMP" >&6 | |
14157 | else | |
14158 | echo "$as_me:$LINENO: result: no" >&5 | |
14159 | echo "${ECHO_T}no" >&6 | |
14160 | fi | |
14161 | ||
14162 | fi | |
14163 | if test -z "$ac_cv_prog_RESCOMP"; then | |
14164 | ac_ct_RESCOMP=$RESCOMP | |
14165 | # Extract the first word of "wrc", so it can be a program name with args. | |
14166 | set dummy wrc; ac_word=$2 | |
14167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14169 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
14170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14171 | else | |
14172 | if test -n "$ac_ct_RESCOMP"; then | |
14173 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
14174 | else | |
14175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14176 | for as_dir in $PATH | |
14177 | do | |
14178 | IFS=$as_save_IFS | |
14179 | test -z "$as_dir" && as_dir=. | |
14180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14182 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
14183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14184 | break 2 | |
14185 | fi | |
14186 | done | |
14187 | done | |
14188 | ||
14189 | fi | |
14190 | fi | |
14191 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
14192 | if test -n "$ac_ct_RESCOMP"; then | |
14193 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
14194 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
14195 | else | |
14196 | echo "$as_me:$LINENO: result: no" >&5 | |
14197 | echo "${ECHO_T}no" >&6 | |
14198 | fi | |
14199 | ||
14200 | RESCOMP=$ac_ct_RESCOMP | |
14201 | else | |
14202 | RESCOMP="$ac_cv_prog_RESCOMP" | |
14203 | fi | |
14204 | ||
14205 | else | |
14206 | case "${host}" in | |
14207 | *-*-cygwin* | *-*-mingw32* ) | |
14208 | if test -n "$ac_tool_prefix"; then | |
14209 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14210 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14211 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14212 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14213 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
14214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14215 | else | |
14216 | if test -n "$RESCOMP"; then | |
14217 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
14218 | else | |
14219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14220 | for as_dir in $PATH | |
14221 | do | |
14222 | IFS=$as_save_IFS | |
14223 | test -z "$as_dir" && as_dir=. | |
14224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14226 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
14227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14228 | break 2 | |
14229 | fi | |
14230 | done | |
14231 | done | |
14232 | ||
14233 | fi | |
14234 | fi | |
14235 | RESCOMP=$ac_cv_prog_RESCOMP | |
14236 | if test -n "$RESCOMP"; then | |
14237 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
14238 | echo "${ECHO_T}$RESCOMP" >&6 | |
14239 | else | |
14240 | echo "$as_me:$LINENO: result: no" >&5 | |
14241 | echo "${ECHO_T}no" >&6 | |
14242 | fi | |
14243 | ||
14244 | fi | |
14245 | if test -z "$ac_cv_prog_RESCOMP"; then | |
14246 | ac_ct_RESCOMP=$RESCOMP | |
14247 | # Extract the first word of "windres", so it can be a program name with args. | |
14248 | set dummy windres; ac_word=$2 | |
14249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14251 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
14252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14253 | else | |
14254 | if test -n "$ac_ct_RESCOMP"; then | |
14255 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
14256 | else | |
14257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14258 | for as_dir in $PATH | |
14259 | do | |
14260 | IFS=$as_save_IFS | |
14261 | test -z "$as_dir" && as_dir=. | |
14262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14264 | ac_cv_prog_ac_ct_RESCOMP="windres" | |
14265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14266 | break 2 | |
14267 | fi | |
14268 | done | |
14269 | done | |
14270 | ||
14271 | fi | |
14272 | fi | |
14273 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
14274 | if test -n "$ac_ct_RESCOMP"; then | |
14275 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
14276 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
14277 | else | |
14278 | echo "$as_me:$LINENO: result: no" >&5 | |
14279 | echo "${ECHO_T}no" >&6 | |
14280 | fi | |
14281 | ||
14282 | RESCOMP=$ac_ct_RESCOMP | |
14283 | else | |
14284 | RESCOMP="$ac_cv_prog_RESCOMP" | |
14285 | fi | |
14286 | ||
14287 | if test -n "$ac_tool_prefix"; then | |
14288 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
14289 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14292 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14294 | else | |
14295 | if test -n "$DLLTOOL"; then | |
14296 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14297 | else | |
14298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14299 | for as_dir in $PATH | |
14300 | do | |
14301 | IFS=$as_save_IFS | |
14302 | test -z "$as_dir" && as_dir=. | |
14303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14305 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14307 | break 2 | |
14308 | fi | |
14309 | done | |
14310 | done | |
14311 | ||
14312 | fi | |
14313 | fi | |
14314 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14315 | if test -n "$DLLTOOL"; then | |
14316 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14317 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14318 | else | |
14319 | echo "$as_me:$LINENO: result: no" >&5 | |
14320 | echo "${ECHO_T}no" >&6 | |
14321 | fi | |
14322 | ||
14323 | fi | |
14324 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14325 | ac_ct_DLLTOOL=$DLLTOOL | |
14326 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14327 | set dummy dlltool; ac_word=$2 | |
14328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14330 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14332 | else | |
14333 | if test -n "$ac_ct_DLLTOOL"; then | |
14334 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14335 | else | |
14336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14337 | for as_dir in $PATH | |
14338 | do | |
14339 | IFS=$as_save_IFS | |
14340 | test -z "$as_dir" && as_dir=. | |
14341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14343 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14345 | break 2 | |
14346 | fi | |
14347 | done | |
14348 | done | |
14349 | ||
14350 | fi | |
14351 | fi | |
14352 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14353 | if test -n "$ac_ct_DLLTOOL"; then | |
14354 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14355 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14356 | else | |
14357 | echo "$as_me:$LINENO: result: no" >&5 | |
14358 | echo "${ECHO_T}no" >&6 | |
14359 | fi | |
14360 | ||
14361 | DLLTOOL=$ac_ct_DLLTOOL | |
14362 | else | |
14363 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14364 | fi | |
14365 | ||
14366 | ;; | |
14367 | esac | |
14368 | fi | |
a848cd7e SC |
14369 | |
14370 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14371 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14372 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14374 | else | |
14375 | ||
14376 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14377 | egrep -s GNU > /dev/null); then | |
14378 | wx_cv_prog_makeisgnu="yes" | |
14379 | else | |
14380 | wx_cv_prog_makeisgnu="no" | |
14381 | fi | |
14382 | ||
14383 | fi | |
14384 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14385 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14386 | ||
14387 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14388 | IF_GNU_MAKE="" | |
14389 | else | |
14390 | IF_GNU_MAKE="#" | |
14391 | fi | |
14392 | ||
14393 | ||
14394 | ||
14395 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14396 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14397 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14398 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14400 | else | |
14401 | ||
14402 | cat - << EOF > confMake | |
14403 | check : file | |
14404 | cp \$? \$@ | |
14405 | cp \$? final_file | |
14406 | EOF | |
14407 | ||
14408 | if test ! -d sub ; then | |
14409 | mkdir sub | |
14410 | fi | |
14411 | echo dummy > sub/file | |
14412 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14413 | RESULT=$? | |
14414 | rm -f sub/file check final_file confMake | |
14415 | rmdir sub | |
14416 | if test "$RESULT" = 0; then | |
14417 | wx_cv_prog_makevpath="yes" | |
14418 | else | |
14419 | wx_cv_prog_makevpath="no" | |
14420 | fi | |
14421 | ||
14422 | fi | |
14423 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14424 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14425 | ||
14426 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14427 | { { echo "$as_me:$LINENO: error: | |
14428 | You need a make-utility that is able to use the variable | |
14429 | VPATH correctly. | |
14430 | If your version of make does not support VPATH correctly, | |
14431 | please install GNU-make (possibly as gmake), and start | |
14432 | configure with the following command: | |
14433 | export MAKE=gmake; ./configure for sh-type shells | |
14434 | setenv MAKE gmake; ./configure for csh-type shells | |
14435 | Also please do remember to use gmake in this case every time | |
14436 | you are trying to compile. | |
14437 | " >&5 | |
14438 | echo "$as_me: error: | |
14439 | You need a make-utility that is able to use the variable | |
14440 | VPATH correctly. | |
14441 | If your version of make does not support VPATH correctly, | |
14442 | please install GNU-make (possibly as gmake), and start | |
14443 | configure with the following command: | |
14444 | export MAKE=gmake; ./configure for sh-type shells | |
14445 | setenv MAKE gmake; ./configure for csh-type shells | |
14446 | Also please do remember to use gmake in this case every time | |
14447 | you are trying to compile. | |
14448 | " >&2;} | |
14449 | { (exit 1); exit 1; }; } | |
14450 | fi fi | |
14451 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14452 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14453 | LN_S=$as_ln_s | |
14454 | if test "$LN_S" = "ln -s"; then | |
14455 | echo "$as_me:$LINENO: result: yes" >&5 | |
14456 | echo "${ECHO_T}yes" >&6 | |
14457 | else | |
14458 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14459 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14460 | fi | |
14461 | ||
14462 | ||
14463 | ||
2113bc77 | 14464 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
14465 | CXXFLAGS="$CXXFLAGS -qunique" |
14466 | fi | |
14467 | ||
4d7ec9f1 DE |
14468 | case "${host}" in |
14469 | powerpc-*-darwin* ) | |
14470 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14471 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14472 | cat >conftest.$ac_ext <<_ACEOF | |
14473 | /* confdefs.h. */ | |
14474 | _ACEOF | |
14475 | cat confdefs.h >>conftest.$ac_ext | |
14476 | cat >>conftest.$ac_ext <<_ACEOF | |
14477 | /* end confdefs.h. */ | |
14478 | ||
14479 | int | |
14480 | main () | |
14481 | { | |
14482 | #ifndef __POWERPC__ | |
14483 | choke me for lack of PowerPC | |
14484 | #endif | |
14485 | ||
14486 | ; | |
14487 | return 0; | |
14488 | } | |
14489 | _ACEOF | |
14490 | rm -f conftest.$ac_objext | |
14491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14492 | (eval $ac_compile) 2>conftest.er1 | |
14493 | ac_status=$? | |
14494 | grep -v '^ *+' conftest.er1 >conftest.err | |
14495 | rm -f conftest.er1 | |
14496 | cat conftest.err >&5 | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); } && | |
dee1a63f MB |
14499 | { ac_try='test -z "$ac_c_werror_flag" |
14500 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14502 | (eval $ac_try) 2>&5 | |
14503 | ac_status=$? | |
14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14505 | (exit $ac_status); }; } && | |
14506 | { ac_try='test -s conftest.$ac_objext' | |
14507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14508 | (eval $ac_try) 2>&5 | |
14509 | ac_status=$? | |
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); }; }; then | |
14512 | echo "$as_me:$LINENO: result: yes" >&5 | |
14513 | echo "${ECHO_T}yes" >&6 | |
14514 | else | |
14515 | echo "$as_me: failed program was:" >&5 | |
14516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14517 | ||
14518 | echo "$as_me:$LINENO: result: no" >&5 | |
14519 | echo "${ECHO_T}no" >&6 | |
14520 | cat >>confdefs.h <<\_ACEOF | |
14521 | #define __POWERPC__ 1 | |
14522 | _ACEOF | |
14523 | ||
14524 | ||
14525 | fi | |
14526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14527 | ;; |
14528 | esac | |
14529 | ||
14530 | case "${host}" in | |
14531 | *-*-darwin* ) | |
4d7ec9f1 DE |
14532 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14533 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14534 | cat >conftest.$ac_ext <<_ACEOF | |
14535 | /* confdefs.h. */ | |
14536 | _ACEOF | |
14537 | cat confdefs.h >>conftest.$ac_ext | |
14538 | cat >>conftest.$ac_ext <<_ACEOF | |
14539 | /* end confdefs.h. */ | |
14540 | #include <CoreFoundation/CFBase.h> | |
14541 | ||
14542 | int | |
14543 | main () | |
14544 | { | |
14545 | ||
14546 | ; | |
14547 | return 0; | |
14548 | } | |
14549 | _ACEOF | |
14550 | rm -f conftest.$ac_objext | |
14551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14552 | (eval $ac_compile) 2>conftest.er1 | |
14553 | ac_status=$? | |
14554 | grep -v '^ *+' conftest.er1 >conftest.err | |
14555 | rm -f conftest.er1 | |
14556 | cat conftest.err >&5 | |
14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14558 | (exit $ac_status); } && | |
dee1a63f MB |
14559 | { ac_try='test -z "$ac_c_werror_flag" |
14560 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14562 | (eval $ac_try) 2>&5 | |
14563 | ac_status=$? | |
14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14565 | (exit $ac_status); }; } && | |
14566 | { ac_try='test -s conftest.$ac_objext' | |
14567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14568 | (eval $ac_try) 2>&5 | |
14569 | ac_status=$? | |
14570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14571 | (exit $ac_status); }; }; then | |
14572 | echo "$as_me:$LINENO: result: yes" >&5 | |
14573 | echo "${ECHO_T}yes" >&6 | |
14574 | else | |
14575 | echo "$as_me: failed program was:" >&5 | |
14576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14577 | ||
14578 | echo "$as_me:$LINENO: result: no" >&5 | |
14579 | echo "${ECHO_T}no" >&6 | |
14580 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14581 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14582 | cat >conftest.$ac_ext <<_ACEOF | |
14583 | /* confdefs.h. */ | |
14584 | _ACEOF | |
14585 | cat confdefs.h >>conftest.$ac_ext | |
14586 | cat >>conftest.$ac_ext <<_ACEOF | |
14587 | /* end confdefs.h. */ | |
14588 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14589 | #include <CoreFoundation/CFBase.h> | |
14590 | ||
14591 | int | |
14592 | main () | |
14593 | { | |
14594 | ||
14595 | ; | |
14596 | return 0; | |
14597 | } | |
14598 | _ACEOF | |
14599 | rm -f conftest.$ac_objext | |
14600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14601 | (eval $ac_compile) 2>conftest.er1 | |
14602 | ac_status=$? | |
14603 | grep -v '^ *+' conftest.er1 >conftest.err | |
14604 | rm -f conftest.er1 | |
14605 | cat conftest.err >&5 | |
14606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14607 | (exit $ac_status); } && | |
dee1a63f MB |
14608 | { ac_try='test -z "$ac_c_werror_flag" |
14609 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14611 | (eval $ac_try) 2>&5 | |
14612 | ac_status=$? | |
14613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14614 | (exit $ac_status); }; } && | |
14615 | { ac_try='test -s conftest.$ac_objext' | |
14616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14617 | (eval $ac_try) 2>&5 | |
14618 | ac_status=$? | |
14619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14620 | (exit $ac_status); }; }; then | |
14621 | echo "$as_me:$LINENO: result: yes" >&5 | |
14622 | echo "${ECHO_T}yes" >&6 | |
14623 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
14624 | else | |
14625 | echo "$as_me: failed program was:" >&5 | |
14626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14627 | ||
14628 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
14629 | See \`config.log' for more details." >&5 | |
14630 | echo "$as_me: error: no. CoreFoundation not available. | |
14631 | See \`config.log' for more details." >&2;} | |
14632 | { (exit 1); exit 1; }; } | |
14633 | ||
14634 | fi | |
14635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14636 | ||
14637 | ||
14638 | fi | |
14639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14640 | ;; | |
14641 | esac | |
14642 | ||
a848cd7e SC |
14643 | case "${host}" in |
14644 | *-pc-os2_emx | *-pc-os2-emx ) | |
14645 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
14646 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
14647 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
14648 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
14649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14650 | else | |
14651 | ac_check_lib_save_LIBS=$LIBS | |
14652 | LIBS="-lcExt $LIBS" | |
14653 | cat >conftest.$ac_ext <<_ACEOF | |
14654 | /* confdefs.h. */ | |
14655 | _ACEOF | |
14656 | cat confdefs.h >>conftest.$ac_ext | |
14657 | cat >>conftest.$ac_ext <<_ACEOF | |
14658 | /* end confdefs.h. */ | |
14659 | ||
14660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14661 | #ifdef __cplusplus | |
14662 | extern "C" | |
14663 | #endif | |
14664 | /* We use char because int might match the return type of a gcc2 | |
14665 | builtin and then its argument prototype would still apply. */ | |
14666 | char drand48 (); | |
14667 | int | |
14668 | main () | |
14669 | { | |
14670 | drand48 (); | |
14671 | ; | |
14672 | return 0; | |
14673 | } | |
14674 | _ACEOF | |
14675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14677 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14678 | ac_status=$? |
ac1cb8d3 VS |
14679 | grep -v '^ *+' conftest.er1 >conftest.err |
14680 | rm -f conftest.er1 | |
14681 | cat conftest.err >&5 | |
a848cd7e SC |
14682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14683 | (exit $ac_status); } && | |
dee1a63f MB |
14684 | { ac_try='test -z "$ac_c_werror_flag" |
14685 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14687 | (eval $ac_try) 2>&5 | |
14688 | ac_status=$? | |
14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14690 | (exit $ac_status); }; } && | |
14691 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14693 | (eval $ac_try) 2>&5 | |
14694 | ac_status=$? | |
14695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14696 | (exit $ac_status); }; }; then | |
14697 | ac_cv_lib_cExt_drand48=yes | |
14698 | else | |
14699 | echo "$as_me: failed program was:" >&5 | |
14700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14701 | ||
14702 | ac_cv_lib_cExt_drand48=no | |
14703 | fi | |
ac1cb8d3 VS |
14704 | rm -f conftest.err conftest.$ac_objext \ |
14705 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14706 | LIBS=$ac_check_lib_save_LIBS |
14707 | fi | |
14708 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
14709 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
14710 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
14711 | LIBS="$LIBS -lcExt" | |
14712 | fi | |
14713 | ||
14714 | else | |
14715 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
14716 | fi | |
69120ee4 VZ |
14717 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
14718 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
14719 | if test "${wx_cv_gccversion+set}" = set; then |
14720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14721 | else | |
14722 | ||
391a765e VS |
14723 | if test "$cross_compiling" = yes; then |
14724 | wx_cv_gccversion="EMX2" | |
14725 | ||
14726 | else | |
14727 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
14728 | /* confdefs.h. */ |
14729 | _ACEOF | |
14730 | cat confdefs.h >>conftest.$ac_ext | |
14731 | cat >>conftest.$ac_ext <<_ACEOF | |
14732 | /* end confdefs.h. */ | |
14733 | ||
391a765e | 14734 | #include <stdio.h> |
a848cd7e | 14735 | |
391a765e VS |
14736 | int main() |
14737 | { | |
14738 | FILE *f=fopen("conftestval", "w"); | |
14739 | if (!f) exit(1); | |
14740 | fprintf(f, | |
a848cd7e | 14741 | #if (__GNUC__ < 3) |
391a765e VS |
14742 | "EMX2" |
14743 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
14744 | "EMX3" | |
14745 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
14746 | "Innotek5" | |
14747 | #else | |
14748 | "Innotek6" | |
a848cd7e | 14749 | #endif |
391a765e VS |
14750 | ); |
14751 | exit(0); | |
14752 | } | |
a848cd7e | 14753 | |
a848cd7e | 14754 | _ACEOF |
391a765e VS |
14755 | rm -f conftest$ac_exeext |
14756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14757 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14758 | ac_status=$? |
14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14760 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14762 | (eval $ac_try) 2>&5 | |
14763 | ac_status=$? | |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14765 | (exit $ac_status); }; }; then | |
391a765e | 14766 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14767 | else |
391a765e VS |
14768 | echo "$as_me: program exited with status $ac_status" >&5 |
14769 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14770 | sed 's/^/| /' conftest.$ac_ext >&5 |
14771 | ||
391a765e VS |
14772 | ( exit $ac_status ) |
14773 | wx_cv_gccversion="EMX2" | |
a848cd7e | 14774 | fi |
391a765e | 14775 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14776 | fi |
a848cd7e SC |
14777 | |
14778 | fi | |
14779 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
14780 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 14781 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
14782 | LIBS="$LIBS -lstdcpp" |
14783 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
14784 | else | |
391a765e | 14785 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 14786 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
14787 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
14788 | else | |
14789 | LIBS="$LIBS -lstdc++" | |
14790 | fi | |
14791 | fi | |
94acd38e DE |
14792 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
14793 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
14794 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
14795 | wxUSE_OMF=yes | |
2da0c077 | 14796 | enable_omf=yes |
a848cd7e SC |
14797 | fi |
14798 | ;; | |
14799 | *) | |
14800 | ||
14801 | ||
14802 | ||
14803 | ac_ext=cc | |
14804 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14808 | ||
14809 | ||
95986553 | 14810 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
14811 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
14812 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
14813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14814 | else | |
14815 | ||
14816 | cat >conftest.$ac_ext <<_ACEOF | |
14817 | /* confdefs.h. */ | |
14818 | _ACEOF | |
14819 | cat confdefs.h >>conftest.$ac_ext | |
14820 | cat >>conftest.$ac_ext <<_ACEOF | |
14821 | /* end confdefs.h. */ | |
14822 | ||
14823 | #include <string.h> | |
14824 | ||
14825 | int | |
14826 | main () | |
14827 | { | |
14828 | ||
14829 | strcasecmp("foo", "bar"); | |
14830 | ||
14831 | ; | |
14832 | return 0; | |
14833 | } | |
14834 | _ACEOF | |
14835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14837 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14838 | ac_status=$? |
ac1cb8d3 VS |
14839 | grep -v '^ *+' conftest.er1 >conftest.err |
14840 | rm -f conftest.er1 | |
14841 | cat conftest.err >&5 | |
a848cd7e SC |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14843 | (exit $ac_status); } && | |
dee1a63f MB |
14844 | { ac_try='test -z "$ac_cxx_werror_flag" |
14845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14847 | (eval $ac_try) 2>&5 | |
14848 | ac_status=$? | |
14849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14850 | (exit $ac_status); }; } && | |
14851 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14853 | (eval $ac_try) 2>&5 | |
14854 | ac_status=$? | |
14855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14856 | (exit $ac_status); }; }; then | |
14857 | ac_cv_string_strcasecmp=yes | |
14858 | else | |
14859 | echo "$as_me: failed program was:" >&5 | |
14860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14861 | ||
14862 | ac_cv_string_strcasecmp=no | |
14863 | ||
14864 | fi | |
ac1cb8d3 VS |
14865 | rm -f conftest.err conftest.$ac_objext \ |
14866 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14867 | |
14868 | fi | |
14869 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
14870 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
14871 | ||
14872 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
14873 | cat >>confdefs.h <<\_ACEOF | |
14874 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
14875 | _ACEOF | |
14876 | ||
14877 | else | |
14878 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
14879 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
14880 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
14881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14882 | else | |
14883 | ||
14884 | cat >conftest.$ac_ext <<_ACEOF | |
14885 | /* confdefs.h. */ | |
14886 | _ACEOF | |
14887 | cat confdefs.h >>conftest.$ac_ext | |
14888 | cat >>conftest.$ac_ext <<_ACEOF | |
14889 | /* end confdefs.h. */ | |
14890 | ||
14891 | #include <strings.h> | |
14892 | ||
14893 | int | |
14894 | main () | |
14895 | { | |
14896 | ||
14897 | strcasecmp("foo", "bar"); | |
14898 | ||
14899 | ; | |
14900 | return 0; | |
14901 | } | |
14902 | _ACEOF | |
14903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14905 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14906 | ac_status=$? |
ac1cb8d3 VS |
14907 | grep -v '^ *+' conftest.er1 >conftest.err |
14908 | rm -f conftest.er1 | |
14909 | cat conftest.err >&5 | |
a848cd7e SC |
14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14911 | (exit $ac_status); } && | |
dee1a63f MB |
14912 | { ac_try='test -z "$ac_cxx_werror_flag" |
14913 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14915 | (eval $ac_try) 2>&5 | |
14916 | ac_status=$? | |
14917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14918 | (exit $ac_status); }; } && | |
14919 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14921 | (eval $ac_try) 2>&5 | |
14922 | ac_status=$? | |
14923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14924 | (exit $ac_status); }; }; then | |
14925 | ac_cv_strings_strcasecmp=yes | |
14926 | else | |
14927 | echo "$as_me: failed program was:" >&5 | |
14928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14929 | ||
14930 | ac_cv_strings_strcasecmp=no | |
14931 | ||
14932 | fi | |
ac1cb8d3 VS |
14933 | rm -f conftest.err conftest.$ac_objext \ |
14934 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14935 | |
14936 | fi | |
14937 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
14938 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
14939 | ||
0c3c69fc | 14940 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
14941 | cat >>confdefs.h <<\_ACEOF |
14942 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
14943 | _ACEOF | |
14944 | ||
14945 | else | |
14946 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
14947 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
14948 | { (exit 1); exit 1; }; } | |
14949 | fi | |
14950 | fi | |
14951 | ||
14952 | ac_ext=c | |
14953 | ac_cpp='$CPP $CPPFLAGS' | |
14954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14957 | ||
14958 | ;; | |
14959 | esac | |
14960 | ||
14961 | ||
14962 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
14963 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
14964 | if test "${ac_cv_header_stdc+set}" = set; then | |
14965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14966 | else | |
14967 | cat >conftest.$ac_ext <<_ACEOF | |
14968 | /* confdefs.h. */ | |
14969 | _ACEOF | |
14970 | cat confdefs.h >>conftest.$ac_ext | |
14971 | cat >>conftest.$ac_ext <<_ACEOF | |
14972 | /* end confdefs.h. */ | |
14973 | #include <stdlib.h> | |
14974 | #include <stdarg.h> | |
14975 | #include <string.h> | |
14976 | #include <float.h> | |
14977 | ||
14978 | int | |
14979 | main () | |
14980 | { | |
14981 | ||
14982 | ; | |
14983 | return 0; | |
14984 | } | |
14985 | _ACEOF | |
14986 | rm -f conftest.$ac_objext | |
14987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 14988 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 14989 | ac_status=$? |
ac1cb8d3 VS |
14990 | grep -v '^ *+' conftest.er1 >conftest.err |
14991 | rm -f conftest.er1 | |
14992 | cat conftest.err >&5 | |
a848cd7e SC |
14993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14994 | (exit $ac_status); } && | |
dee1a63f MB |
14995 | { ac_try='test -z "$ac_c_werror_flag" |
14996 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
14997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14998 | (eval $ac_try) 2>&5 | |
14999 | ac_status=$? | |
15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15001 | (exit $ac_status); }; } && | |
15002 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15004 | (eval $ac_try) 2>&5 | |
15005 | ac_status=$? | |
15006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15007 | (exit $ac_status); }; }; then | |
15008 | ac_cv_header_stdc=yes | |
15009 | else | |
15010 | echo "$as_me: failed program was:" >&5 | |
15011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15012 | ||
15013 | ac_cv_header_stdc=no | |
15014 | fi | |
ac1cb8d3 | 15015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15016 | |
15017 | if test $ac_cv_header_stdc = yes; then | |
15018 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15019 | cat >conftest.$ac_ext <<_ACEOF | |
15020 | /* confdefs.h. */ | |
15021 | _ACEOF | |
15022 | cat confdefs.h >>conftest.$ac_ext | |
15023 | cat >>conftest.$ac_ext <<_ACEOF | |
15024 | /* end confdefs.h. */ | |
15025 | #include <string.h> | |
15026 | ||
15027 | _ACEOF | |
15028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15029 | $EGREP "memchr" >/dev/null 2>&1; then | |
15030 | : | |
15031 | else | |
15032 | ac_cv_header_stdc=no | |
15033 | fi | |
15034 | rm -f conftest* | |
15035 | ||
15036 | fi | |
15037 | ||
15038 | if test $ac_cv_header_stdc = yes; then | |
15039 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15040 | cat >conftest.$ac_ext <<_ACEOF | |
15041 | /* confdefs.h. */ | |
15042 | _ACEOF | |
15043 | cat confdefs.h >>conftest.$ac_ext | |
15044 | cat >>conftest.$ac_ext <<_ACEOF | |
15045 | /* end confdefs.h. */ | |
15046 | #include <stdlib.h> | |
15047 | ||
15048 | _ACEOF | |
15049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15050 | $EGREP "free" >/dev/null 2>&1; then | |
15051 | : | |
15052 | else | |
15053 | ac_cv_header_stdc=no | |
15054 | fi | |
15055 | rm -f conftest* | |
15056 | ||
15057 | fi | |
15058 | ||
15059 | if test $ac_cv_header_stdc = yes; then | |
15060 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15061 | if test "$cross_compiling" = yes; then | |
15062 | : | |
15063 | else | |
15064 | cat >conftest.$ac_ext <<_ACEOF | |
15065 | /* confdefs.h. */ | |
15066 | _ACEOF | |
15067 | cat confdefs.h >>conftest.$ac_ext | |
15068 | cat >>conftest.$ac_ext <<_ACEOF | |
15069 | /* end confdefs.h. */ | |
15070 | #include <ctype.h> | |
15071 | #if ((' ' & 0x0FF) == 0x020) | |
15072 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15073 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15074 | #else | |
15075 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15076 | (('a' <= (c) && (c) <= 'i') \ |
15077 | || ('j' <= (c) && (c) <= 'r') \ | |
15078 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15079 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15080 | #endif | |
15081 | ||
15082 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15083 | int | |
15084 | main () | |
15085 | { | |
15086 | int i; | |
15087 | for (i = 0; i < 256; i++) | |
15088 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15089 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15090 | exit(2); |
15091 | exit (0); | |
15092 | } | |
15093 | _ACEOF | |
15094 | rm -f conftest$ac_exeext | |
15095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15096 | (eval $ac_link) 2>&5 | |
15097 | ac_status=$? | |
15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15101 | (eval $ac_try) 2>&5 | |
15102 | ac_status=$? | |
15103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15104 | (exit $ac_status); }; }; then | |
15105 | : | |
15106 | else | |
15107 | echo "$as_me: program exited with status $ac_status" >&5 | |
15108 | echo "$as_me: failed program was:" >&5 | |
15109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15110 | ||
15111 | ( exit $ac_status ) | |
15112 | ac_cv_header_stdc=no | |
15113 | fi | |
ac1cb8d3 | 15114 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15115 | fi |
15116 | fi | |
15117 | fi | |
15118 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15119 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15120 | if test $ac_cv_header_stdc = yes; then | |
15121 | ||
15122 | cat >>confdefs.h <<\_ACEOF | |
15123 | #define STDC_HEADERS 1 | |
15124 | _ACEOF | |
15125 | ||
15126 | fi | |
15127 | ||
15128 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15129 | ||
15130 | ||
15131 | ||
15132 | ||
15133 | ||
15134 | ||
15135 | ||
15136 | ||
15137 | ||
15138 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15139 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15140 | do |
15141 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15146 | else | |
15147 | cat >conftest.$ac_ext <<_ACEOF | |
15148 | /* confdefs.h. */ | |
15149 | _ACEOF | |
15150 | cat confdefs.h >>conftest.$ac_ext | |
15151 | cat >>conftest.$ac_ext <<_ACEOF | |
15152 | /* end confdefs.h. */ | |
15153 | $ac_includes_default | |
15154 | ||
15155 | #include <$ac_header> | |
15156 | _ACEOF | |
15157 | rm -f conftest.$ac_objext | |
15158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15159 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15160 | ac_status=$? |
ac1cb8d3 VS |
15161 | grep -v '^ *+' conftest.er1 >conftest.err |
15162 | rm -f conftest.er1 | |
15163 | cat conftest.err >&5 | |
a848cd7e SC |
15164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15165 | (exit $ac_status); } && | |
dee1a63f MB |
15166 | { ac_try='test -z "$ac_c_werror_flag" |
15167 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15169 | (eval $ac_try) 2>&5 | |
15170 | ac_status=$? | |
15171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15172 | (exit $ac_status); }; } && | |
15173 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15175 | (eval $ac_try) 2>&5 | |
15176 | ac_status=$? | |
15177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15178 | (exit $ac_status); }; }; then | |
15179 | eval "$as_ac_Header=yes" | |
15180 | else | |
15181 | echo "$as_me: failed program was:" >&5 | |
15182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15183 | ||
15184 | eval "$as_ac_Header=no" | |
15185 | fi | |
ac1cb8d3 | 15186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15187 | fi |
15188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15189 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15190 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15191 | cat >>confdefs.h <<_ACEOF | |
15192 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15193 | _ACEOF | |
15194 | ||
15195 | fi | |
15196 | ||
15197 | done | |
15198 | ||
15199 | ||
15200 | ||
15201 | for ac_header in stdlib.h | |
15202 | do | |
15203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15209 | fi | |
15210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15212 | else | |
15213 | # Is the header compilable? | |
15214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15216 | cat >conftest.$ac_ext <<_ACEOF | |
15217 | /* confdefs.h. */ | |
15218 | _ACEOF | |
15219 | cat confdefs.h >>conftest.$ac_ext | |
15220 | cat >>conftest.$ac_ext <<_ACEOF | |
15221 | /* end confdefs.h. */ | |
15222 | $ac_includes_default | |
15223 | #include <$ac_header> | |
15224 | _ACEOF | |
15225 | rm -f conftest.$ac_objext | |
15226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15228 | ac_status=$? |
ac1cb8d3 VS |
15229 | grep -v '^ *+' conftest.er1 >conftest.err |
15230 | rm -f conftest.er1 | |
15231 | cat conftest.err >&5 | |
a848cd7e SC |
15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15233 | (exit $ac_status); } && | |
dee1a63f MB |
15234 | { ac_try='test -z "$ac_c_werror_flag" |
15235 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15237 | (eval $ac_try) 2>&5 | |
15238 | ac_status=$? | |
15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15240 | (exit $ac_status); }; } && | |
15241 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15243 | (eval $ac_try) 2>&5 | |
15244 | ac_status=$? | |
15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15246 | (exit $ac_status); }; }; then | |
15247 | ac_header_compiler=yes | |
15248 | else | |
15249 | echo "$as_me: failed program was:" >&5 | |
15250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15251 | ||
15252 | ac_header_compiler=no | |
15253 | fi | |
ac1cb8d3 | 15254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15257 | ||
15258 | # Is the header present? | |
15259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15261 | cat >conftest.$ac_ext <<_ACEOF | |
15262 | /* confdefs.h. */ | |
15263 | _ACEOF | |
15264 | cat confdefs.h >>conftest.$ac_ext | |
15265 | cat >>conftest.$ac_ext <<_ACEOF | |
15266 | /* end confdefs.h. */ | |
15267 | #include <$ac_header> | |
15268 | _ACEOF | |
15269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15271 | ac_status=$? | |
15272 | grep -v '^ *+' conftest.er1 >conftest.err | |
15273 | rm -f conftest.er1 | |
15274 | cat conftest.err >&5 | |
15275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15276 | (exit $ac_status); } >/dev/null; then | |
15277 | if test -s conftest.err; then | |
15278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15280 | else |
15281 | ac_cpp_err= | |
15282 | fi | |
15283 | else | |
15284 | ac_cpp_err=yes | |
15285 | fi | |
15286 | if test -z "$ac_cpp_err"; then | |
15287 | ac_header_preproc=yes | |
15288 | else | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
15292 | ac_header_preproc=no | |
15293 | fi | |
15294 | rm -f conftest.err conftest.$ac_ext | |
15295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15297 | ||
15298 | # So? What about this header? | |
ac1cb8d3 VS |
15299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15300 | yes:no: ) | |
a848cd7e SC |
15301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15305 | ac_header_preproc=yes | |
a848cd7e | 15306 | ;; |
ac1cb8d3 | 15307 | no:yes:* ) |
a848cd7e SC |
15308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15320 | ( |
15321 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15322 | ## ----------------------------------------- ## |
15323 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15324 | ## ----------------------------------------- ## | |
a848cd7e SC |
15325 | _ASBOX |
15326 | ) | | |
15327 | sed "s/^/$as_me: WARNING: /" >&2 | |
15328 | ;; | |
15329 | esac | |
15330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15334 | else | |
ac1cb8d3 | 15335 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15336 | fi |
15337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15339 | ||
15340 | fi | |
15341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15342 | cat >>confdefs.h <<_ACEOF | |
15343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15344 | _ACEOF | |
15345 | ||
15346 | fi | |
15347 | ||
15348 | done | |
15349 | ||
15350 | ||
15351 | for ac_header in malloc.h | |
15352 | do | |
15353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15359 | fi | |
15360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15362 | else | |
15363 | # Is the header compilable? | |
15364 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
15374 | _ACEOF | |
15375 | rm -f conftest.$ac_objext | |
15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15377 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15378 | ac_status=$? |
ac1cb8d3 VS |
15379 | grep -v '^ *+' conftest.er1 >conftest.err |
15380 | rm -f conftest.er1 | |
15381 | cat conftest.err >&5 | |
a848cd7e SC |
15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15383 | (exit $ac_status); } && | |
dee1a63f MB |
15384 | { ac_try='test -z "$ac_c_werror_flag" |
15385 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15387 | (eval $ac_try) 2>&5 | |
15388 | ac_status=$? | |
15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15390 | (exit $ac_status); }; } && | |
15391 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; }; then | |
15397 | ac_header_compiler=yes | |
15398 | else | |
15399 | echo "$as_me: failed program was:" >&5 | |
15400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15401 | ||
15402 | ac_header_compiler=no | |
15403 | fi | |
ac1cb8d3 | 15404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15405 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15406 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15407 | ||
15408 | # Is the header present? | |
15409 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15411 | cat >conftest.$ac_ext <<_ACEOF | |
15412 | /* confdefs.h. */ | |
15413 | _ACEOF | |
15414 | cat confdefs.h >>conftest.$ac_ext | |
15415 | cat >>conftest.$ac_ext <<_ACEOF | |
15416 | /* end confdefs.h. */ | |
15417 | #include <$ac_header> | |
15418 | _ACEOF | |
15419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15421 | ac_status=$? | |
15422 | grep -v '^ *+' conftest.er1 >conftest.err | |
15423 | rm -f conftest.er1 | |
15424 | cat conftest.err >&5 | |
15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15426 | (exit $ac_status); } >/dev/null; then | |
15427 | if test -s conftest.err; then | |
15428 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15430 | else |
15431 | ac_cpp_err= | |
15432 | fi | |
15433 | else | |
15434 | ac_cpp_err=yes | |
15435 | fi | |
15436 | if test -z "$ac_cpp_err"; then | |
15437 | ac_header_preproc=yes | |
15438 | else | |
15439 | echo "$as_me: failed program was:" >&5 | |
15440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15441 | ||
15442 | ac_header_preproc=no | |
15443 | fi | |
15444 | rm -f conftest.err conftest.$ac_ext | |
15445 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15446 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15447 | ||
15448 | # So? What about this header? | |
ac1cb8d3 VS |
15449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15450 | yes:no: ) | |
a848cd7e SC |
15451 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15452 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15454 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15455 | ac_header_preproc=yes | |
a848cd7e | 15456 | ;; |
ac1cb8d3 | 15457 | no:yes:* ) |
a848cd7e SC |
15458 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15459 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15460 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15461 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15462 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15463 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15464 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15465 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15467 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15469 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15470 | ( |
15471 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15472 | ## ----------------------------------------- ## |
15473 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15474 | ## ----------------------------------------- ## | |
a848cd7e SC |
15475 | _ASBOX |
15476 | ) | | |
15477 | sed "s/^/$as_me: WARNING: /" >&2 | |
15478 | ;; | |
15479 | esac | |
15480 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15484 | else | |
ac1cb8d3 | 15485 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15486 | fi |
15487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15489 | ||
15490 | fi | |
15491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15492 | cat >>confdefs.h <<_ACEOF | |
15493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15494 | _ACEOF | |
15495 | ||
15496 | fi | |
15497 | ||
15498 | done | |
15499 | ||
15500 | ||
15501 | for ac_header in unistd.h | |
15502 | do | |
15503 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15504 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15505 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15506 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15509 | fi | |
15510 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15511 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15512 | else | |
15513 | # Is the header compilable? | |
15514 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15516 | cat >conftest.$ac_ext <<_ACEOF | |
15517 | /* confdefs.h. */ | |
15518 | _ACEOF | |
15519 | cat confdefs.h >>conftest.$ac_ext | |
15520 | cat >>conftest.$ac_ext <<_ACEOF | |
15521 | /* end confdefs.h. */ | |
15522 | $ac_includes_default | |
15523 | #include <$ac_header> | |
15524 | _ACEOF | |
15525 | rm -f conftest.$ac_objext | |
15526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15528 | ac_status=$? |
ac1cb8d3 VS |
15529 | grep -v '^ *+' conftest.er1 >conftest.err |
15530 | rm -f conftest.er1 | |
15531 | cat conftest.err >&5 | |
a848cd7e SC |
15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15533 | (exit $ac_status); } && | |
dee1a63f MB |
15534 | { ac_try='test -z "$ac_c_werror_flag" |
15535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15537 | (eval $ac_try) 2>&5 | |
15538 | ac_status=$? | |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15540 | (exit $ac_status); }; } && | |
15541 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15543 | (eval $ac_try) 2>&5 | |
15544 | ac_status=$? | |
15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15546 | (exit $ac_status); }; }; then | |
15547 | ac_header_compiler=yes | |
15548 | else | |
15549 | echo "$as_me: failed program was:" >&5 | |
15550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15551 | ||
15552 | ac_header_compiler=no | |
15553 | fi | |
ac1cb8d3 | 15554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15555 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15556 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15557 | ||
15558 | # Is the header present? | |
15559 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15560 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15561 | cat >conftest.$ac_ext <<_ACEOF | |
15562 | /* confdefs.h. */ | |
15563 | _ACEOF | |
15564 | cat confdefs.h >>conftest.$ac_ext | |
15565 | cat >>conftest.$ac_ext <<_ACEOF | |
15566 | /* end confdefs.h. */ | |
15567 | #include <$ac_header> | |
15568 | _ACEOF | |
15569 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15570 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15571 | ac_status=$? | |
15572 | grep -v '^ *+' conftest.er1 >conftest.err | |
15573 | rm -f conftest.er1 | |
15574 | cat conftest.err >&5 | |
15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15576 | (exit $ac_status); } >/dev/null; then | |
15577 | if test -s conftest.err; then | |
15578 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15579 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15580 | else |
15581 | ac_cpp_err= | |
15582 | fi | |
15583 | else | |
15584 | ac_cpp_err=yes | |
15585 | fi | |
15586 | if test -z "$ac_cpp_err"; then | |
15587 | ac_header_preproc=yes | |
15588 | else | |
15589 | echo "$as_me: failed program was:" >&5 | |
15590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15591 | ||
15592 | ac_header_preproc=no | |
15593 | fi | |
15594 | rm -f conftest.err conftest.$ac_ext | |
15595 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15596 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15597 | ||
15598 | # So? What about this header? | |
ac1cb8d3 VS |
15599 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15600 | yes:no: ) | |
a848cd7e SC |
15601 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15602 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15603 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15604 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15605 | ac_header_preproc=yes | |
a848cd7e | 15606 | ;; |
ac1cb8d3 | 15607 | no:yes:* ) |
a848cd7e SC |
15608 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15609 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15610 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15611 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15612 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15613 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15614 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15615 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15616 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15617 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15618 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15619 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15620 | ( |
15621 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15622 | ## ----------------------------------------- ## |
15623 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15624 | ## ----------------------------------------- ## | |
a848cd7e SC |
15625 | _ASBOX |
15626 | ) | | |
15627 | sed "s/^/$as_me: WARNING: /" >&2 | |
15628 | ;; | |
15629 | esac | |
15630 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15632 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15634 | else | |
ac1cb8d3 | 15635 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15636 | fi |
15637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15638 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15639 | ||
15640 | fi | |
15641 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15642 | cat >>confdefs.h <<_ACEOF | |
15643 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15644 | _ACEOF | |
15645 | ||
15646 | fi | |
15647 | ||
15648 | done | |
15649 | ||
15650 | ||
15651 | for ac_header in wchar.h | |
15652 | do | |
15653 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15659 | fi | |
15660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15662 | else | |
15663 | # Is the header compilable? | |
15664 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15666 | cat >conftest.$ac_ext <<_ACEOF | |
15667 | /* confdefs.h. */ | |
15668 | _ACEOF | |
15669 | cat confdefs.h >>conftest.$ac_ext | |
15670 | cat >>conftest.$ac_ext <<_ACEOF | |
15671 | /* end confdefs.h. */ | |
15672 | $ac_includes_default | |
15673 | #include <$ac_header> | |
15674 | _ACEOF | |
15675 | rm -f conftest.$ac_objext | |
15676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15678 | ac_status=$? |
ac1cb8d3 VS |
15679 | grep -v '^ *+' conftest.er1 >conftest.err |
15680 | rm -f conftest.er1 | |
15681 | cat conftest.err >&5 | |
a848cd7e SC |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15683 | (exit $ac_status); } && | |
dee1a63f MB |
15684 | { ac_try='test -z "$ac_c_werror_flag" |
15685 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15687 | (eval $ac_try) 2>&5 | |
15688 | ac_status=$? | |
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15690 | (exit $ac_status); }; } && | |
15691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15693 | (eval $ac_try) 2>&5 | |
15694 | ac_status=$? | |
15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15696 | (exit $ac_status); }; }; then | |
15697 | ac_header_compiler=yes | |
15698 | else | |
15699 | echo "$as_me: failed program was:" >&5 | |
15700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15701 | ||
15702 | ac_header_compiler=no | |
15703 | fi | |
ac1cb8d3 | 15704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15705 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15706 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15707 | ||
15708 | # Is the header present? | |
15709 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15710 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15711 | cat >conftest.$ac_ext <<_ACEOF | |
15712 | /* confdefs.h. */ | |
15713 | _ACEOF | |
15714 | cat confdefs.h >>conftest.$ac_ext | |
15715 | cat >>conftest.$ac_ext <<_ACEOF | |
15716 | /* end confdefs.h. */ | |
15717 | #include <$ac_header> | |
15718 | _ACEOF | |
15719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15721 | ac_status=$? | |
15722 | grep -v '^ *+' conftest.er1 >conftest.err | |
15723 | rm -f conftest.er1 | |
15724 | cat conftest.err >&5 | |
15725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15726 | (exit $ac_status); } >/dev/null; then | |
15727 | if test -s conftest.err; then | |
15728 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15729 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15730 | else |
15731 | ac_cpp_err= | |
15732 | fi | |
15733 | else | |
15734 | ac_cpp_err=yes | |
15735 | fi | |
15736 | if test -z "$ac_cpp_err"; then | |
15737 | ac_header_preproc=yes | |
15738 | else | |
15739 | echo "$as_me: failed program was:" >&5 | |
15740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15741 | ||
15742 | ac_header_preproc=no | |
15743 | fi | |
15744 | rm -f conftest.err conftest.$ac_ext | |
15745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15746 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15747 | ||
15748 | # So? What about this header? | |
ac1cb8d3 VS |
15749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15750 | yes:no: ) | |
a848cd7e SC |
15751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15754 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15755 | ac_header_preproc=yes | |
a848cd7e | 15756 | ;; |
ac1cb8d3 | 15757 | no:yes:* ) |
a848cd7e SC |
15758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15769 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15770 | ( |
15771 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15772 | ## ----------------------------------------- ## |
15773 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15774 | ## ----------------------------------------- ## | |
a848cd7e SC |
15775 | _ASBOX |
15776 | ) | | |
15777 | sed "s/^/$as_me: WARNING: /" >&2 | |
15778 | ;; | |
15779 | esac | |
15780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15784 | else | |
ac1cb8d3 | 15785 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15786 | fi |
15787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15789 | ||
15790 | fi | |
15791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15792 | cat >>confdefs.h <<_ACEOF | |
15793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15794 | _ACEOF | |
15795 | ||
15796 | fi | |
15797 | ||
15798 | done | |
15799 | ||
15800 | ||
15801 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
15802 | ||
15803 | for ac_header in wcstr.h | |
15804 | do | |
15805 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15807 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15811 | fi | |
15812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15814 | else | |
15815 | # Is the header compilable? | |
15816 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15817 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15818 | cat >conftest.$ac_ext <<_ACEOF | |
15819 | /* confdefs.h. */ | |
15820 | _ACEOF | |
15821 | cat confdefs.h >>conftest.$ac_ext | |
15822 | cat >>conftest.$ac_ext <<_ACEOF | |
15823 | /* end confdefs.h. */ | |
15824 | $ac_includes_default | |
15825 | #include <$ac_header> | |
15826 | _ACEOF | |
15827 | rm -f conftest.$ac_objext | |
15828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15829 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15830 | ac_status=$? |
ac1cb8d3 VS |
15831 | grep -v '^ *+' conftest.er1 >conftest.err |
15832 | rm -f conftest.er1 | |
15833 | cat conftest.err >&5 | |
a848cd7e SC |
15834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15835 | (exit $ac_status); } && | |
dee1a63f MB |
15836 | { ac_try='test -z "$ac_c_werror_flag" |
15837 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15839 | (eval $ac_try) 2>&5 | |
15840 | ac_status=$? | |
15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15842 | (exit $ac_status); }; } && | |
15843 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15845 | (eval $ac_try) 2>&5 | |
15846 | ac_status=$? | |
15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15848 | (exit $ac_status); }; }; then | |
15849 | ac_header_compiler=yes | |
15850 | else | |
15851 | echo "$as_me: failed program was:" >&5 | |
15852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15853 | ||
15854 | ac_header_compiler=no | |
15855 | fi | |
ac1cb8d3 | 15856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15857 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15858 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15859 | ||
15860 | # Is the header present? | |
15861 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15862 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15863 | cat >conftest.$ac_ext <<_ACEOF | |
15864 | /* confdefs.h. */ | |
15865 | _ACEOF | |
15866 | cat confdefs.h >>conftest.$ac_ext | |
15867 | cat >>conftest.$ac_ext <<_ACEOF | |
15868 | /* end confdefs.h. */ | |
15869 | #include <$ac_header> | |
15870 | _ACEOF | |
15871 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15872 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15873 | ac_status=$? | |
15874 | grep -v '^ *+' conftest.er1 >conftest.err | |
15875 | rm -f conftest.er1 | |
15876 | cat conftest.err >&5 | |
15877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15878 | (exit $ac_status); } >/dev/null; then | |
15879 | if test -s conftest.err; then | |
15880 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15881 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15882 | else |
15883 | ac_cpp_err= | |
15884 | fi | |
15885 | else | |
15886 | ac_cpp_err=yes | |
15887 | fi | |
15888 | if test -z "$ac_cpp_err"; then | |
15889 | ac_header_preproc=yes | |
15890 | else | |
15891 | echo "$as_me: failed program was:" >&5 | |
15892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15893 | ||
15894 | ac_header_preproc=no | |
15895 | fi | |
15896 | rm -f conftest.err conftest.$ac_ext | |
15897 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15898 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15899 | ||
15900 | # So? What about this header? | |
ac1cb8d3 VS |
15901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15902 | yes:no: ) | |
a848cd7e SC |
15903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15906 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15907 | ac_header_preproc=yes | |
a848cd7e | 15908 | ;; |
ac1cb8d3 | 15909 | no:yes:* ) |
a848cd7e SC |
15910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15912 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15913 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15916 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15917 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15921 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15922 | ( |
15923 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15924 | ## ----------------------------------------- ## |
15925 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15926 | ## ----------------------------------------- ## | |
a848cd7e SC |
15927 | _ASBOX |
15928 | ) | | |
15929 | sed "s/^/$as_me: WARNING: /" >&2 | |
15930 | ;; | |
15931 | esac | |
15932 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15936 | else | |
ac1cb8d3 | 15937 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15938 | fi |
15939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15941 | ||
15942 | fi | |
15943 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15944 | cat >>confdefs.h <<_ACEOF | |
15945 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15946 | _ACEOF | |
15947 | ||
15948 | fi | |
15949 | ||
15950 | done | |
15951 | ||
15952 | fi | |
15953 | ||
15954 | ||
15955 | for ac_header in fnmatch.h | |
15956 | do | |
15957 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15963 | fi | |
15964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15965 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15966 | else | |
15967 | # Is the header compilable? | |
15968 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15969 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15970 | cat >conftest.$ac_ext <<_ACEOF | |
15971 | /* confdefs.h. */ | |
15972 | _ACEOF | |
15973 | cat confdefs.h >>conftest.$ac_ext | |
15974 | cat >>conftest.$ac_ext <<_ACEOF | |
15975 | /* end confdefs.h. */ | |
15976 | $ac_includes_default | |
15977 | #include <$ac_header> | |
15978 | _ACEOF | |
15979 | rm -f conftest.$ac_objext | |
15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15982 | ac_status=$? |
ac1cb8d3 VS |
15983 | grep -v '^ *+' conftest.er1 >conftest.err |
15984 | rm -f conftest.er1 | |
15985 | cat conftest.err >&5 | |
a848cd7e SC |
15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15987 | (exit $ac_status); } && | |
dee1a63f MB |
15988 | { ac_try='test -z "$ac_c_werror_flag" |
15989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15991 | (eval $ac_try) 2>&5 | |
15992 | ac_status=$? | |
15993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15994 | (exit $ac_status); }; } && | |
15995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15997 | (eval $ac_try) 2>&5 | |
15998 | ac_status=$? | |
15999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16000 | (exit $ac_status); }; }; then | |
16001 | ac_header_compiler=yes | |
16002 | else | |
16003 | echo "$as_me: failed program was:" >&5 | |
16004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16005 | ||
16006 | ac_header_compiler=no | |
16007 | fi | |
ac1cb8d3 | 16008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16011 | ||
16012 | # Is the header present? | |
16013 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16014 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16015 | cat >conftest.$ac_ext <<_ACEOF | |
16016 | /* confdefs.h. */ | |
16017 | _ACEOF | |
16018 | cat confdefs.h >>conftest.$ac_ext | |
16019 | cat >>conftest.$ac_ext <<_ACEOF | |
16020 | /* end confdefs.h. */ | |
16021 | #include <$ac_header> | |
16022 | _ACEOF | |
16023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16025 | ac_status=$? | |
16026 | grep -v '^ *+' conftest.er1 >conftest.err | |
16027 | rm -f conftest.er1 | |
16028 | cat conftest.err >&5 | |
16029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16030 | (exit $ac_status); } >/dev/null; then | |
16031 | if test -s conftest.err; then | |
16032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16034 | else |
16035 | ac_cpp_err= | |
16036 | fi | |
16037 | else | |
16038 | ac_cpp_err=yes | |
16039 | fi | |
16040 | if test -z "$ac_cpp_err"; then | |
16041 | ac_header_preproc=yes | |
16042 | else | |
16043 | echo "$as_me: failed program was:" >&5 | |
16044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16045 | ||
16046 | ac_header_preproc=no | |
16047 | fi | |
16048 | rm -f conftest.err conftest.$ac_ext | |
16049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16051 | ||
16052 | # So? What about this header? | |
ac1cb8d3 VS |
16053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16054 | yes:no: ) | |
a848cd7e SC |
16055 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16056 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16057 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16058 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16059 | ac_header_preproc=yes | |
a848cd7e | 16060 | ;; |
ac1cb8d3 | 16061 | no:yes:* ) |
a848cd7e SC |
16062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16064 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16065 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16066 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16067 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16068 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16069 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16070 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16071 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16072 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16073 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16074 | ( |
16075 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16076 | ## ----------------------------------------- ## |
16077 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16078 | ## ----------------------------------------- ## | |
a848cd7e SC |
16079 | _ASBOX |
16080 | ) | | |
16081 | sed "s/^/$as_me: WARNING: /" >&2 | |
16082 | ;; | |
16083 | esac | |
16084 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16085 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16088 | else | |
ac1cb8d3 | 16089 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16090 | fi |
16091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16092 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16093 | ||
16094 | fi | |
16095 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16096 | cat >>confdefs.h <<_ACEOF | |
16097 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16098 | _ACEOF | |
16099 | ||
16100 | fi | |
16101 | ||
16102 | done | |
16103 | ||
16104 | ||
a848cd7e SC |
16105 | |
16106 | for ac_header in langinfo.h | |
16107 | do | |
16108 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16114 | fi | |
16115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16117 | else | |
16118 | # Is the header compilable? | |
16119 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16120 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16121 | cat >conftest.$ac_ext <<_ACEOF | |
16122 | /* confdefs.h. */ | |
16123 | _ACEOF | |
16124 | cat confdefs.h >>conftest.$ac_ext | |
16125 | cat >>conftest.$ac_ext <<_ACEOF | |
16126 | /* end confdefs.h. */ | |
16127 | $ac_includes_default | |
16128 | #include <$ac_header> | |
16129 | _ACEOF | |
16130 | rm -f conftest.$ac_objext | |
16131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16132 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16133 | ac_status=$? |
ac1cb8d3 VS |
16134 | grep -v '^ *+' conftest.er1 >conftest.err |
16135 | rm -f conftest.er1 | |
16136 | cat conftest.err >&5 | |
a848cd7e SC |
16137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16138 | (exit $ac_status); } && | |
dee1a63f MB |
16139 | { ac_try='test -z "$ac_c_werror_flag" |
16140 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16142 | (eval $ac_try) 2>&5 | |
16143 | ac_status=$? | |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); }; } && | |
16146 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16148 | (eval $ac_try) 2>&5 | |
16149 | ac_status=$? | |
16150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16151 | (exit $ac_status); }; }; then | |
16152 | ac_header_compiler=yes | |
16153 | else | |
16154 | echo "$as_me: failed program was:" >&5 | |
16155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16156 | ||
16157 | ac_header_compiler=no | |
16158 | fi | |
ac1cb8d3 | 16159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16160 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16161 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16162 | ||
16163 | # Is the header present? | |
16164 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16165 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16166 | cat >conftest.$ac_ext <<_ACEOF | |
16167 | /* confdefs.h. */ | |
16168 | _ACEOF | |
16169 | cat confdefs.h >>conftest.$ac_ext | |
16170 | cat >>conftest.$ac_ext <<_ACEOF | |
16171 | /* end confdefs.h. */ | |
16172 | #include <$ac_header> | |
16173 | _ACEOF | |
16174 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16175 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16176 | ac_status=$? | |
16177 | grep -v '^ *+' conftest.er1 >conftest.err | |
16178 | rm -f conftest.er1 | |
16179 | cat conftest.err >&5 | |
16180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16181 | (exit $ac_status); } >/dev/null; then | |
16182 | if test -s conftest.err; then | |
16183 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16184 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16185 | else |
16186 | ac_cpp_err= | |
16187 | fi | |
16188 | else | |
16189 | ac_cpp_err=yes | |
16190 | fi | |
16191 | if test -z "$ac_cpp_err"; then | |
16192 | ac_header_preproc=yes | |
16193 | else | |
16194 | echo "$as_me: failed program was:" >&5 | |
16195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16196 | ||
16197 | ac_header_preproc=no | |
16198 | fi | |
16199 | rm -f conftest.err conftest.$ac_ext | |
16200 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16201 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16202 | ||
16203 | # So? What about this header? | |
ac1cb8d3 VS |
16204 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16205 | yes:no: ) | |
a848cd7e SC |
16206 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16207 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16209 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16210 | ac_header_preproc=yes | |
a848cd7e | 16211 | ;; |
ac1cb8d3 | 16212 | no:yes:* ) |
a848cd7e SC |
16213 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16214 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16215 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16216 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16217 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16218 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16219 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16220 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16221 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16222 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16223 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16224 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16225 | ( |
16226 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16227 | ## ----------------------------------------- ## |
16228 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16229 | ## ----------------------------------------- ## | |
a848cd7e SC |
16230 | _ASBOX |
16231 | ) | | |
16232 | sed "s/^/$as_me: WARNING: /" >&2 | |
16233 | ;; | |
16234 | esac | |
16235 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16236 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16239 | else | |
ac1cb8d3 | 16240 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16241 | fi |
16242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16243 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16244 | ||
16245 | fi | |
16246 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16247 | cat >>confdefs.h <<_ACEOF | |
16248 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16249 | _ACEOF | |
16250 | ||
16251 | fi | |
16252 | ||
16253 | done | |
16254 | ||
16255 | ||
16256 | case "${host}" in | |
16257 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16258 | if test $ac_cv_header_langinfo_h = "yes" \ |
16259 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16260 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16261 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16262 | LIBS="$LIBS -lintl" |
16263 | fi | |
16264 | ;; | |
16265 | esac | |
16266 | ||
a848cd7e SC |
16267 | |
16268 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16269 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16270 | if test "${ac_cv_c_const+set}" = set; then | |
16271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16272 | else | |
16273 | cat >conftest.$ac_ext <<_ACEOF | |
16274 | /* confdefs.h. */ | |
16275 | _ACEOF | |
16276 | cat confdefs.h >>conftest.$ac_ext | |
16277 | cat >>conftest.$ac_ext <<_ACEOF | |
16278 | /* end confdefs.h. */ | |
16279 | ||
16280 | int | |
16281 | main () | |
16282 | { | |
16283 | /* FIXME: Include the comments suggested by Paul. */ | |
16284 | #ifndef __cplusplus | |
16285 | /* Ultrix mips cc rejects this. */ | |
16286 | typedef int charset[2]; | |
16287 | const charset x; | |
16288 | /* SunOS 4.1.1 cc rejects this. */ | |
16289 | char const *const *ccp; | |
16290 | char **p; | |
16291 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16292 | struct point {int x, y;}; | |
16293 | static struct point const zero = {0,0}; | |
16294 | /* AIX XL C 1.02.0.0 rejects this. | |
16295 | It does not let you subtract one const X* pointer from another in | |
16296 | an arm of an if-expression whose if-part is not a constant | |
16297 | expression */ | |
16298 | const char *g = "string"; | |
16299 | ccp = &g + (g ? g-g : 0); | |
16300 | /* HPUX 7.0 cc rejects these. */ | |
16301 | ++ccp; | |
16302 | p = (char**) ccp; | |
16303 | ccp = (char const *const *) p; | |
16304 | { /* SCO 3.2v4 cc rejects this. */ | |
16305 | char *t; | |
16306 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16307 | ||
16308 | *t++ = 0; | |
16309 | } | |
16310 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16311 | int x[] = {25, 17}; | |
16312 | const int *foo = &x[0]; | |
16313 | ++foo; | |
16314 | } | |
16315 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16316 | typedef const int *iptr; | |
16317 | iptr p = 0; | |
16318 | ++p; | |
16319 | } | |
16320 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16321 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16322 | struct s { int j; const int *ap[3]; }; | |
16323 | struct s *b; b->j = 5; | |
16324 | } | |
16325 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16326 | const int foo = 10; | |
16327 | } | |
16328 | #endif | |
16329 | ||
16330 | ; | |
16331 | return 0; | |
16332 | } | |
16333 | _ACEOF | |
16334 | rm -f conftest.$ac_objext | |
16335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16337 | ac_status=$? |
ac1cb8d3 VS |
16338 | grep -v '^ *+' conftest.er1 >conftest.err |
16339 | rm -f conftest.er1 | |
16340 | cat conftest.err >&5 | |
a848cd7e SC |
16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16342 | (exit $ac_status); } && | |
dee1a63f MB |
16343 | { ac_try='test -z "$ac_c_werror_flag" |
16344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16346 | (eval $ac_try) 2>&5 | |
16347 | ac_status=$? | |
16348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16349 | (exit $ac_status); }; } && | |
16350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16352 | (eval $ac_try) 2>&5 | |
16353 | ac_status=$? | |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16355 | (exit $ac_status); }; }; then | |
16356 | ac_cv_c_const=yes | |
16357 | else | |
16358 | echo "$as_me: failed program was:" >&5 | |
16359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16360 | ||
16361 | ac_cv_c_const=no | |
16362 | fi | |
ac1cb8d3 | 16363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16364 | fi |
16365 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
16366 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16367 | if test $ac_cv_c_const = no; then | |
16368 | ||
16369 | cat >>confdefs.h <<\_ACEOF | |
16370 | #define const | |
16371 | _ACEOF | |
16372 | ||
16373 | fi | |
16374 | ||
16375 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16376 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16377 | if test "${ac_cv_c_inline+set}" = set; then | |
16378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16379 | else | |
16380 | ac_cv_c_inline=no | |
16381 | for ac_kw in inline __inline__ __inline; do | |
16382 | cat >conftest.$ac_ext <<_ACEOF | |
16383 | /* confdefs.h. */ | |
16384 | _ACEOF | |
16385 | cat confdefs.h >>conftest.$ac_ext | |
16386 | cat >>conftest.$ac_ext <<_ACEOF | |
16387 | /* end confdefs.h. */ | |
16388 | #ifndef __cplusplus | |
16389 | typedef int foo_t; | |
16390 | static $ac_kw foo_t static_foo () {return 0; } | |
16391 | $ac_kw foo_t foo () {return 0; } | |
16392 | #endif | |
16393 | ||
16394 | _ACEOF | |
16395 | rm -f conftest.$ac_objext | |
16396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16397 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16398 | ac_status=$? |
ac1cb8d3 VS |
16399 | grep -v '^ *+' conftest.er1 >conftest.err |
16400 | rm -f conftest.er1 | |
16401 | cat conftest.err >&5 | |
a848cd7e SC |
16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16403 | (exit $ac_status); } && | |
dee1a63f MB |
16404 | { ac_try='test -z "$ac_c_werror_flag" |
16405 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16407 | (eval $ac_try) 2>&5 | |
16408 | ac_status=$? | |
16409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16410 | (exit $ac_status); }; } && | |
16411 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16413 | (eval $ac_try) 2>&5 | |
16414 | ac_status=$? | |
16415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16416 | (exit $ac_status); }; }; then | |
16417 | ac_cv_c_inline=$ac_kw; break | |
16418 | else | |
16419 | echo "$as_me: failed program was:" >&5 | |
16420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16421 | ||
16422 | fi | |
ac1cb8d3 | 16423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16424 | done |
16425 | ||
16426 | fi | |
16427 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16428 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16429 | |
16430 | ||
a848cd7e SC |
16431 | case $ac_cv_c_inline in |
16432 | inline | yes) ;; | |
ac1cb8d3 VS |
16433 | *) |
16434 | case $ac_cv_c_inline in | |
16435 | no) ac_val=;; | |
16436 | *) ac_val=$ac_cv_c_inline;; | |
16437 | esac | |
16438 | cat >>confdefs.h <<_ACEOF | |
16439 | #ifndef __cplusplus | |
16440 | #define inline $ac_val | |
16441 | #endif | |
de59c161 | 16442 | _ACEOF |
ac1cb8d3 | 16443 | ;; |
a848cd7e SC |
16444 | esac |
16445 | ||
16446 | ||
16447 | echo "$as_me:$LINENO: checking for char" >&5 | |
16448 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16449 | if test "${ac_cv_type_char+set}" = set; then | |
16450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16451 | else | |
16452 | cat >conftest.$ac_ext <<_ACEOF | |
16453 | /* confdefs.h. */ | |
16454 | _ACEOF | |
16455 | cat confdefs.h >>conftest.$ac_ext | |
16456 | cat >>conftest.$ac_ext <<_ACEOF | |
16457 | /* end confdefs.h. */ | |
16458 | $ac_includes_default | |
16459 | int | |
16460 | main () | |
16461 | { | |
16462 | if ((char *) 0) | |
16463 | return 0; | |
16464 | if (sizeof (char)) | |
16465 | return 0; | |
16466 | ; | |
16467 | return 0; | |
16468 | } | |
16469 | _ACEOF | |
16470 | rm -f conftest.$ac_objext | |
16471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16472 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16473 | ac_status=$? |
ac1cb8d3 VS |
16474 | grep -v '^ *+' conftest.er1 >conftest.err |
16475 | rm -f conftest.er1 | |
16476 | cat conftest.err >&5 | |
a848cd7e SC |
16477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16478 | (exit $ac_status); } && | |
dee1a63f MB |
16479 | { ac_try='test -z "$ac_c_werror_flag" |
16480 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16482 | (eval $ac_try) 2>&5 | |
16483 | ac_status=$? | |
16484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16485 | (exit $ac_status); }; } && | |
16486 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16488 | (eval $ac_try) 2>&5 | |
16489 | ac_status=$? | |
16490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16491 | (exit $ac_status); }; }; then | |
16492 | ac_cv_type_char=yes | |
16493 | else | |
16494 | echo "$as_me: failed program was:" >&5 | |
16495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16496 | ||
16497 | ac_cv_type_char=no | |
16498 | fi | |
ac1cb8d3 | 16499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16500 | fi |
16501 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16502 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16503 | ||
16504 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16505 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16506 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16508 | else | |
16509 | if test "$ac_cv_type_char" = yes; then | |
16510 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16511 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16512 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16513 | # This bug is HP SR number 8606223364. | |
16514 | if test "$cross_compiling" = yes; then | |
16515 | # Depending upon the size, compute the lo and hi bounds. | |
16516 | cat >conftest.$ac_ext <<_ACEOF | |
16517 | /* confdefs.h. */ | |
16518 | _ACEOF | |
16519 | cat confdefs.h >>conftest.$ac_ext | |
16520 | cat >>conftest.$ac_ext <<_ACEOF | |
16521 | /* end confdefs.h. */ | |
16522 | $ac_includes_default | |
16523 | int | |
16524 | main () | |
16525 | { | |
16526 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16527 | test_array [0] = 0 | |
16528 | ||
16529 | ; | |
16530 | return 0; | |
16531 | } | |
16532 | _ACEOF | |
16533 | rm -f conftest.$ac_objext | |
16534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16535 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16536 | ac_status=$? |
ac1cb8d3 VS |
16537 | grep -v '^ *+' conftest.er1 >conftest.err |
16538 | rm -f conftest.er1 | |
16539 | cat conftest.err >&5 | |
a848cd7e SC |
16540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16541 | (exit $ac_status); } && | |
dee1a63f MB |
16542 | { ac_try='test -z "$ac_c_werror_flag" |
16543 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16545 | (eval $ac_try) 2>&5 | |
16546 | ac_status=$? | |
16547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16548 | (exit $ac_status); }; } && | |
16549 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16551 | (eval $ac_try) 2>&5 | |
16552 | ac_status=$? | |
16553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16554 | (exit $ac_status); }; }; then | |
16555 | ac_lo=0 ac_mid=0 | |
16556 | while :; do | |
16557 | cat >conftest.$ac_ext <<_ACEOF | |
16558 | /* confdefs.h. */ | |
16559 | _ACEOF | |
16560 | cat confdefs.h >>conftest.$ac_ext | |
16561 | cat >>conftest.$ac_ext <<_ACEOF | |
16562 | /* end confdefs.h. */ | |
16563 | $ac_includes_default | |
16564 | int | |
16565 | main () | |
16566 | { | |
16567 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16568 | test_array [0] = 0 | |
16569 | ||
16570 | ; | |
16571 | return 0; | |
16572 | } | |
16573 | _ACEOF | |
16574 | rm -f conftest.$ac_objext | |
16575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16576 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16577 | ac_status=$? |
ac1cb8d3 VS |
16578 | grep -v '^ *+' conftest.er1 >conftest.err |
16579 | rm -f conftest.er1 | |
16580 | cat conftest.err >&5 | |
a848cd7e SC |
16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16582 | (exit $ac_status); } && | |
dee1a63f MB |
16583 | { ac_try='test -z "$ac_c_werror_flag" |
16584 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16586 | (eval $ac_try) 2>&5 | |
16587 | ac_status=$? | |
16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16589 | (exit $ac_status); }; } && | |
16590 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16592 | (eval $ac_try) 2>&5 | |
16593 | ac_status=$? | |
16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16595 | (exit $ac_status); }; }; then | |
16596 | ac_hi=$ac_mid; break | |
16597 | else | |
16598 | echo "$as_me: failed program was:" >&5 | |
16599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16600 | ||
16601 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16602 | if test $ac_lo -le $ac_mid; then |
16603 | ac_lo= ac_hi= | |
16604 | break | |
16605 | fi | |
16606 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16607 | fi |
ac1cb8d3 | 16608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16609 | done |
16610 | else | |
16611 | echo "$as_me: failed program was:" >&5 | |
16612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16613 | ||
16614 | cat >conftest.$ac_ext <<_ACEOF | |
16615 | /* confdefs.h. */ | |
16616 | _ACEOF | |
16617 | cat confdefs.h >>conftest.$ac_ext | |
16618 | cat >>conftest.$ac_ext <<_ACEOF | |
16619 | /* end confdefs.h. */ | |
16620 | $ac_includes_default | |
16621 | int | |
16622 | main () | |
16623 | { | |
16624 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16625 | test_array [0] = 0 | |
16626 | ||
16627 | ; | |
16628 | return 0; | |
16629 | } | |
16630 | _ACEOF | |
16631 | rm -f conftest.$ac_objext | |
16632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16633 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16634 | ac_status=$? |
ac1cb8d3 VS |
16635 | grep -v '^ *+' conftest.er1 >conftest.err |
16636 | rm -f conftest.er1 | |
16637 | cat conftest.err >&5 | |
a848cd7e SC |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16639 | (exit $ac_status); } && | |
dee1a63f MB |
16640 | { ac_try='test -z "$ac_c_werror_flag" |
16641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16643 | (eval $ac_try) 2>&5 | |
16644 | ac_status=$? | |
16645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16646 | (exit $ac_status); }; } && | |
16647 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16649 | (eval $ac_try) 2>&5 | |
16650 | ac_status=$? | |
16651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16652 | (exit $ac_status); }; }; then | |
16653 | ac_hi=-1 ac_mid=-1 | |
16654 | while :; do | |
16655 | cat >conftest.$ac_ext <<_ACEOF | |
16656 | /* confdefs.h. */ | |
16657 | _ACEOF | |
16658 | cat confdefs.h >>conftest.$ac_ext | |
16659 | cat >>conftest.$ac_ext <<_ACEOF | |
16660 | /* end confdefs.h. */ | |
16661 | $ac_includes_default | |
16662 | int | |
16663 | main () | |
16664 | { | |
16665 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16666 | test_array [0] = 0 | |
16667 | ||
16668 | ; | |
16669 | return 0; | |
16670 | } | |
16671 | _ACEOF | |
16672 | rm -f conftest.$ac_objext | |
16673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16674 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16675 | ac_status=$? |
ac1cb8d3 VS |
16676 | grep -v '^ *+' conftest.er1 >conftest.err |
16677 | rm -f conftest.er1 | |
16678 | cat conftest.err >&5 | |
a848cd7e SC |
16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16680 | (exit $ac_status); } && | |
dee1a63f MB |
16681 | { ac_try='test -z "$ac_c_werror_flag" |
16682 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16684 | (eval $ac_try) 2>&5 | |
16685 | ac_status=$? | |
16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16687 | (exit $ac_status); }; } && | |
16688 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16690 | (eval $ac_try) 2>&5 | |
16691 | ac_status=$? | |
16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16693 | (exit $ac_status); }; }; then | |
16694 | ac_lo=$ac_mid; break | |
16695 | else | |
16696 | echo "$as_me: failed program was:" >&5 | |
16697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16698 | ||
16699 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16700 | if test $ac_mid -le $ac_hi; then |
16701 | ac_lo= ac_hi= | |
16702 | break | |
16703 | fi | |
16704 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16705 | fi |
ac1cb8d3 | 16706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16707 | done |
16708 | else | |
16709 | echo "$as_me: failed program was:" >&5 | |
16710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16711 | ||
16712 | ac_lo= ac_hi= | |
16713 | fi | |
ac1cb8d3 | 16714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16715 | fi |
ac1cb8d3 | 16716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16717 | # Binary search between lo and hi bounds. |
16718 | while test "x$ac_lo" != "x$ac_hi"; do | |
16719 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16720 | cat >conftest.$ac_ext <<_ACEOF | |
16721 | /* confdefs.h. */ | |
16722 | _ACEOF | |
16723 | cat confdefs.h >>conftest.$ac_ext | |
16724 | cat >>conftest.$ac_ext <<_ACEOF | |
16725 | /* end confdefs.h. */ | |
16726 | $ac_includes_default | |
16727 | int | |
16728 | main () | |
16729 | { | |
16730 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16731 | test_array [0] = 0 | |
16732 | ||
16733 | ; | |
16734 | return 0; | |
16735 | } | |
16736 | _ACEOF | |
16737 | rm -f conftest.$ac_objext | |
16738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16740 | ac_status=$? |
ac1cb8d3 VS |
16741 | grep -v '^ *+' conftest.er1 >conftest.err |
16742 | rm -f conftest.er1 | |
16743 | cat conftest.err >&5 | |
a848cd7e SC |
16744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16745 | (exit $ac_status); } && | |
dee1a63f MB |
16746 | { ac_try='test -z "$ac_c_werror_flag" |
16747 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16749 | (eval $ac_try) 2>&5 | |
16750 | ac_status=$? | |
16751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16752 | (exit $ac_status); }; } && | |
16753 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16755 | (eval $ac_try) 2>&5 | |
16756 | ac_status=$? | |
16757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16758 | (exit $ac_status); }; }; then | |
16759 | ac_hi=$ac_mid | |
16760 | else | |
16761 | echo "$as_me: failed program was:" >&5 | |
16762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16763 | ||
16764 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16765 | fi | |
ac1cb8d3 | 16766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16767 | done |
16768 | case $ac_lo in | |
16769 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16770 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16771 | See \`config.log' for more details." >&5 | |
16772 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16773 | See \`config.log' for more details." >&2;} | |
16774 | { (exit 1); exit 1; }; } ;; | |
16775 | esac | |
16776 | else | |
16777 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
16778 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
16779 | See \`config.log' for more details." >&5 | |
16780 | echo "$as_me: error: cannot run test program while cross compiling | |
16781 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
16782 | { (exit 1); exit 1; }; } |
16783 | else | |
16784 | cat >conftest.$ac_ext <<_ACEOF | |
16785 | /* confdefs.h. */ | |
16786 | _ACEOF | |
16787 | cat confdefs.h >>conftest.$ac_ext | |
16788 | cat >>conftest.$ac_ext <<_ACEOF | |
16789 | /* end confdefs.h. */ | |
16790 | $ac_includes_default | |
16791 | long longval () { return (long) (sizeof (char)); } | |
16792 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16793 | #include <stdio.h> | |
16794 | #include <stdlib.h> | |
16795 | int | |
16796 | main () | |
16797 | { | |
16798 | ||
16799 | FILE *f = fopen ("conftest.val", "w"); | |
16800 | if (! f) | |
16801 | exit (1); | |
16802 | if (((long) (sizeof (char))) < 0) | |
16803 | { | |
16804 | long i = longval (); | |
16805 | if (i != ((long) (sizeof (char)))) | |
16806 | exit (1); | |
16807 | fprintf (f, "%ld\n", i); | |
16808 | } | |
16809 | else | |
16810 | { | |
16811 | unsigned long i = ulongval (); | |
16812 | if (i != ((long) (sizeof (char)))) | |
16813 | exit (1); | |
16814 | fprintf (f, "%lu\n", i); | |
16815 | } | |
16816 | exit (ferror (f) || fclose (f) != 0); | |
16817 | ||
16818 | ; | |
16819 | return 0; | |
16820 | } | |
16821 | _ACEOF | |
16822 | rm -f conftest$ac_exeext | |
16823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16824 | (eval $ac_link) 2>&5 | |
16825 | ac_status=$? | |
16826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16829 | (eval $ac_try) 2>&5 | |
16830 | ac_status=$? | |
16831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16832 | (exit $ac_status); }; }; then | |
16833 | ac_cv_sizeof_char=`cat conftest.val` | |
16834 | else | |
16835 | echo "$as_me: program exited with status $ac_status" >&5 | |
16836 | echo "$as_me: failed program was:" >&5 | |
16837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16838 | ||
16839 | ( exit $ac_status ) | |
16840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16841 | See \`config.log' for more details." >&5 | |
16842 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16843 | See \`config.log' for more details." >&2;} | |
16844 | { (exit 1); exit 1; }; } | |
16845 | fi | |
ac1cb8d3 | 16846 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16847 | fi |
16848 | fi | |
16849 | rm -f conftest.val | |
16850 | else | |
16851 | ac_cv_sizeof_char=0 | |
16852 | fi | |
16853 | fi | |
16854 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16855 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
16856 | cat >>confdefs.h <<_ACEOF | |
16857 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16858 | _ACEOF | |
16859 | ||
16860 | ||
16861 | echo "$as_me:$LINENO: checking for short" >&5 | |
16862 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16863 | if test "${ac_cv_type_short+set}" = set; then | |
16864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16865 | else | |
16866 | cat >conftest.$ac_ext <<_ACEOF | |
16867 | /* confdefs.h. */ | |
16868 | _ACEOF | |
16869 | cat confdefs.h >>conftest.$ac_ext | |
16870 | cat >>conftest.$ac_ext <<_ACEOF | |
16871 | /* end confdefs.h. */ | |
16872 | $ac_includes_default | |
16873 | int | |
16874 | main () | |
16875 | { | |
16876 | if ((short *) 0) | |
16877 | return 0; | |
16878 | if (sizeof (short)) | |
16879 | return 0; | |
16880 | ; | |
16881 | return 0; | |
16882 | } | |
16883 | _ACEOF | |
16884 | rm -f conftest.$ac_objext | |
16885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16886 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16887 | ac_status=$? |
ac1cb8d3 VS |
16888 | grep -v '^ *+' conftest.er1 >conftest.err |
16889 | rm -f conftest.er1 | |
16890 | cat conftest.err >&5 | |
a848cd7e SC |
16891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16892 | (exit $ac_status); } && | |
dee1a63f MB |
16893 | { ac_try='test -z "$ac_c_werror_flag" |
16894 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16896 | (eval $ac_try) 2>&5 | |
16897 | ac_status=$? | |
16898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16899 | (exit $ac_status); }; } && | |
16900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16902 | (eval $ac_try) 2>&5 | |
16903 | ac_status=$? | |
16904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16905 | (exit $ac_status); }; }; then | |
16906 | ac_cv_type_short=yes | |
16907 | else | |
16908 | echo "$as_me: failed program was:" >&5 | |
16909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16910 | ||
16911 | ac_cv_type_short=no | |
16912 | fi | |
ac1cb8d3 | 16913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16914 | fi |
16915 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16916 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16917 | ||
16918 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16919 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16920 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16922 | else | |
16923 | if test "$ac_cv_type_short" = yes; then | |
16924 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16925 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16926 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16927 | # This bug is HP SR number 8606223364. | |
16928 | if test "$cross_compiling" = yes; then | |
16929 | # Depending upon the size, compute the lo and hi bounds. | |
16930 | cat >conftest.$ac_ext <<_ACEOF | |
16931 | /* confdefs.h. */ | |
16932 | _ACEOF | |
16933 | cat confdefs.h >>conftest.$ac_ext | |
16934 | cat >>conftest.$ac_ext <<_ACEOF | |
16935 | /* end confdefs.h. */ | |
16936 | $ac_includes_default | |
16937 | int | |
16938 | main () | |
16939 | { | |
16940 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16941 | test_array [0] = 0 | |
16942 | ||
16943 | ; | |
16944 | return 0; | |
16945 | } | |
16946 | _ACEOF | |
16947 | rm -f conftest.$ac_objext | |
16948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16949 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16950 | ac_status=$? |
ac1cb8d3 VS |
16951 | grep -v '^ *+' conftest.er1 >conftest.err |
16952 | rm -f conftest.er1 | |
16953 | cat conftest.err >&5 | |
a848cd7e SC |
16954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16955 | (exit $ac_status); } && | |
dee1a63f MB |
16956 | { ac_try='test -z "$ac_c_werror_flag" |
16957 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16959 | (eval $ac_try) 2>&5 | |
16960 | ac_status=$? | |
16961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16962 | (exit $ac_status); }; } && | |
16963 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16965 | (eval $ac_try) 2>&5 | |
16966 | ac_status=$? | |
16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16968 | (exit $ac_status); }; }; then | |
16969 | ac_lo=0 ac_mid=0 | |
16970 | while :; do | |
16971 | cat >conftest.$ac_ext <<_ACEOF | |
16972 | /* confdefs.h. */ | |
16973 | _ACEOF | |
16974 | cat confdefs.h >>conftest.$ac_ext | |
16975 | cat >>conftest.$ac_ext <<_ACEOF | |
16976 | /* end confdefs.h. */ | |
16977 | $ac_includes_default | |
16978 | int | |
16979 | main () | |
16980 | { | |
16981 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16982 | test_array [0] = 0 | |
16983 | ||
16984 | ; | |
16985 | return 0; | |
16986 | } | |
16987 | _ACEOF | |
16988 | rm -f conftest.$ac_objext | |
16989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16991 | ac_status=$? |
ac1cb8d3 VS |
16992 | grep -v '^ *+' conftest.er1 >conftest.err |
16993 | rm -f conftest.er1 | |
16994 | cat conftest.err >&5 | |
a848cd7e SC |
16995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16996 | (exit $ac_status); } && | |
dee1a63f MB |
16997 | { ac_try='test -z "$ac_c_werror_flag" |
16998 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17000 | (eval $ac_try) 2>&5 | |
17001 | ac_status=$? | |
17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17003 | (exit $ac_status); }; } && | |
17004 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17006 | (eval $ac_try) 2>&5 | |
17007 | ac_status=$? | |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17009 | (exit $ac_status); }; }; then | |
17010 | ac_hi=$ac_mid; break | |
17011 | else | |
17012 | echo "$as_me: failed program was:" >&5 | |
17013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17014 | ||
17015 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17016 | if test $ac_lo -le $ac_mid; then |
17017 | ac_lo= ac_hi= | |
17018 | break | |
17019 | fi | |
17020 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17021 | fi |
ac1cb8d3 | 17022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17023 | done |
17024 | else | |
17025 | echo "$as_me: failed program was:" >&5 | |
17026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17027 | ||
17028 | cat >conftest.$ac_ext <<_ACEOF | |
17029 | /* confdefs.h. */ | |
17030 | _ACEOF | |
17031 | cat confdefs.h >>conftest.$ac_ext | |
17032 | cat >>conftest.$ac_ext <<_ACEOF | |
17033 | /* end confdefs.h. */ | |
17034 | $ac_includes_default | |
17035 | int | |
17036 | main () | |
17037 | { | |
17038 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17039 | test_array [0] = 0 | |
17040 | ||
17041 | ; | |
17042 | return 0; | |
17043 | } | |
17044 | _ACEOF | |
17045 | rm -f conftest.$ac_objext | |
17046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17048 | ac_status=$? |
ac1cb8d3 VS |
17049 | grep -v '^ *+' conftest.er1 >conftest.err |
17050 | rm -f conftest.er1 | |
17051 | cat conftest.err >&5 | |
a848cd7e SC |
17052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17053 | (exit $ac_status); } && | |
dee1a63f MB |
17054 | { ac_try='test -z "$ac_c_werror_flag" |
17055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17057 | (eval $ac_try) 2>&5 | |
17058 | ac_status=$? | |
17059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17060 | (exit $ac_status); }; } && | |
17061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17063 | (eval $ac_try) 2>&5 | |
17064 | ac_status=$? | |
17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17066 | (exit $ac_status); }; }; then | |
17067 | ac_hi=-1 ac_mid=-1 | |
17068 | while :; do | |
17069 | cat >conftest.$ac_ext <<_ACEOF | |
17070 | /* confdefs.h. */ | |
17071 | _ACEOF | |
17072 | cat confdefs.h >>conftest.$ac_ext | |
17073 | cat >>conftest.$ac_ext <<_ACEOF | |
17074 | /* end confdefs.h. */ | |
17075 | $ac_includes_default | |
17076 | int | |
17077 | main () | |
17078 | { | |
17079 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17080 | test_array [0] = 0 | |
17081 | ||
17082 | ; | |
17083 | return 0; | |
17084 | } | |
17085 | _ACEOF | |
17086 | rm -f conftest.$ac_objext | |
17087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17088 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17089 | ac_status=$? |
ac1cb8d3 VS |
17090 | grep -v '^ *+' conftest.er1 >conftest.err |
17091 | rm -f conftest.er1 | |
17092 | cat conftest.err >&5 | |
a848cd7e SC |
17093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17094 | (exit $ac_status); } && | |
dee1a63f MB |
17095 | { ac_try='test -z "$ac_c_werror_flag" |
17096 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17098 | (eval $ac_try) 2>&5 | |
17099 | ac_status=$? | |
17100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17101 | (exit $ac_status); }; } && | |
17102 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17104 | (eval $ac_try) 2>&5 | |
17105 | ac_status=$? | |
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17107 | (exit $ac_status); }; }; then | |
17108 | ac_lo=$ac_mid; break | |
17109 | else | |
17110 | echo "$as_me: failed program was:" >&5 | |
17111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17112 | ||
17113 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17114 | if test $ac_mid -le $ac_hi; then |
17115 | ac_lo= ac_hi= | |
17116 | break | |
17117 | fi | |
17118 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17119 | fi |
ac1cb8d3 | 17120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17121 | done |
17122 | else | |
17123 | echo "$as_me: failed program was:" >&5 | |
17124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17125 | ||
17126 | ac_lo= ac_hi= | |
17127 | fi | |
ac1cb8d3 | 17128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17129 | fi |
ac1cb8d3 | 17130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17131 | # Binary search between lo and hi bounds. |
17132 | while test "x$ac_lo" != "x$ac_hi"; do | |
17133 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17134 | cat >conftest.$ac_ext <<_ACEOF | |
17135 | /* confdefs.h. */ | |
17136 | _ACEOF | |
17137 | cat confdefs.h >>conftest.$ac_ext | |
17138 | cat >>conftest.$ac_ext <<_ACEOF | |
17139 | /* end confdefs.h. */ | |
17140 | $ac_includes_default | |
17141 | int | |
17142 | main () | |
17143 | { | |
17144 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17145 | test_array [0] = 0 | |
17146 | ||
17147 | ; | |
17148 | return 0; | |
17149 | } | |
17150 | _ACEOF | |
17151 | rm -f conftest.$ac_objext | |
17152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17154 | ac_status=$? |
ac1cb8d3 VS |
17155 | grep -v '^ *+' conftest.er1 >conftest.err |
17156 | rm -f conftest.er1 | |
17157 | cat conftest.err >&5 | |
a848cd7e SC |
17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17159 | (exit $ac_status); } && | |
dee1a63f MB |
17160 | { ac_try='test -z "$ac_c_werror_flag" |
17161 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17163 | (eval $ac_try) 2>&5 | |
17164 | ac_status=$? | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); }; } && | |
17167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; }; then | |
17173 | ac_hi=$ac_mid | |
17174 | else | |
17175 | echo "$as_me: failed program was:" >&5 | |
17176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17177 | ||
17178 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17179 | fi | |
ac1cb8d3 | 17180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17181 | done |
17182 | case $ac_lo in | |
17183 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17184 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17185 | See \`config.log' for more details." >&5 | |
17186 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17187 | See \`config.log' for more details." >&2;} | |
17188 | { (exit 1); exit 1; }; } ;; | |
17189 | esac | |
17190 | else | |
17191 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
17192 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17193 | See \`config.log' for more details." >&5 | |
17194 | echo "$as_me: error: cannot run test program while cross compiling | |
17195 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17196 | { (exit 1); exit 1; }; } |
17197 | else | |
17198 | cat >conftest.$ac_ext <<_ACEOF | |
17199 | /* confdefs.h. */ | |
17200 | _ACEOF | |
17201 | cat confdefs.h >>conftest.$ac_ext | |
17202 | cat >>conftest.$ac_ext <<_ACEOF | |
17203 | /* end confdefs.h. */ | |
17204 | $ac_includes_default | |
17205 | long longval () { return (long) (sizeof (short)); } | |
17206 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17207 | #include <stdio.h> | |
17208 | #include <stdlib.h> | |
17209 | int | |
17210 | main () | |
17211 | { | |
17212 | ||
17213 | FILE *f = fopen ("conftest.val", "w"); | |
17214 | if (! f) | |
17215 | exit (1); | |
17216 | if (((long) (sizeof (short))) < 0) | |
17217 | { | |
17218 | long i = longval (); | |
17219 | if (i != ((long) (sizeof (short)))) | |
17220 | exit (1); | |
17221 | fprintf (f, "%ld\n", i); | |
17222 | } | |
17223 | else | |
17224 | { | |
17225 | unsigned long i = ulongval (); | |
17226 | if (i != ((long) (sizeof (short)))) | |
17227 | exit (1); | |
17228 | fprintf (f, "%lu\n", i); | |
17229 | } | |
17230 | exit (ferror (f) || fclose (f) != 0); | |
17231 | ||
17232 | ; | |
17233 | return 0; | |
17234 | } | |
17235 | _ACEOF | |
17236 | rm -f conftest$ac_exeext | |
17237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17238 | (eval $ac_link) 2>&5 | |
17239 | ac_status=$? | |
17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17243 | (eval $ac_try) 2>&5 | |
17244 | ac_status=$? | |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17246 | (exit $ac_status); }; }; then | |
17247 | ac_cv_sizeof_short=`cat conftest.val` | |
17248 | else | |
17249 | echo "$as_me: program exited with status $ac_status" >&5 | |
17250 | echo "$as_me: failed program was:" >&5 | |
17251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17252 | ||
17253 | ( exit $ac_status ) | |
17254 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17255 | See \`config.log' for more details." >&5 | |
17256 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17257 | See \`config.log' for more details." >&2;} | |
17258 | { (exit 1); exit 1; }; } | |
17259 | fi | |
ac1cb8d3 | 17260 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17261 | fi |
17262 | fi | |
17263 | rm -f conftest.val | |
17264 | else | |
17265 | ac_cv_sizeof_short=0 | |
17266 | fi | |
17267 | fi | |
17268 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17269 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17270 | cat >>confdefs.h <<_ACEOF | |
17271 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17272 | _ACEOF | |
17273 | ||
17274 | ||
17275 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17276 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17277 | if test "${ac_cv_type_void_p+set}" = set; then | |
17278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17279 | else | |
17280 | cat >conftest.$ac_ext <<_ACEOF | |
17281 | /* confdefs.h. */ | |
17282 | _ACEOF | |
17283 | cat confdefs.h >>conftest.$ac_ext | |
17284 | cat >>conftest.$ac_ext <<_ACEOF | |
17285 | /* end confdefs.h. */ | |
17286 | $ac_includes_default | |
17287 | int | |
17288 | main () | |
17289 | { | |
17290 | if ((void * *) 0) | |
17291 | return 0; | |
17292 | if (sizeof (void *)) | |
17293 | return 0; | |
17294 | ; | |
17295 | return 0; | |
17296 | } | |
17297 | _ACEOF | |
17298 | rm -f conftest.$ac_objext | |
17299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17301 | ac_status=$? |
ac1cb8d3 VS |
17302 | grep -v '^ *+' conftest.er1 >conftest.err |
17303 | rm -f conftest.er1 | |
17304 | cat conftest.err >&5 | |
a848cd7e SC |
17305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17306 | (exit $ac_status); } && | |
dee1a63f MB |
17307 | { ac_try='test -z "$ac_c_werror_flag" |
17308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17310 | (eval $ac_try) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); }; } && | |
17314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17316 | (eval $ac_try) 2>&5 | |
17317 | ac_status=$? | |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17319 | (exit $ac_status); }; }; then | |
17320 | ac_cv_type_void_p=yes | |
17321 | else | |
17322 | echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
17325 | ac_cv_type_void_p=no | |
17326 | fi | |
ac1cb8d3 | 17327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17328 | fi |
17329 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17330 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17331 | ||
17332 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17333 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17334 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17336 | else | |
17337 | if test "$ac_cv_type_void_p" = yes; then | |
17338 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17339 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17340 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17341 | # This bug is HP SR number 8606223364. | |
17342 | if test "$cross_compiling" = yes; then | |
17343 | # Depending upon the size, compute the lo and hi bounds. | |
17344 | cat >conftest.$ac_ext <<_ACEOF | |
17345 | /* confdefs.h. */ | |
17346 | _ACEOF | |
17347 | cat confdefs.h >>conftest.$ac_ext | |
17348 | cat >>conftest.$ac_ext <<_ACEOF | |
17349 | /* end confdefs.h. */ | |
17350 | $ac_includes_default | |
17351 | int | |
17352 | main () | |
17353 | { | |
17354 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17355 | test_array [0] = 0 | |
17356 | ||
17357 | ; | |
17358 | return 0; | |
17359 | } | |
17360 | _ACEOF | |
17361 | rm -f conftest.$ac_objext | |
17362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17364 | ac_status=$? |
ac1cb8d3 VS |
17365 | grep -v '^ *+' conftest.er1 >conftest.err |
17366 | rm -f conftest.er1 | |
17367 | cat conftest.err >&5 | |
a848cd7e SC |
17368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17369 | (exit $ac_status); } && | |
dee1a63f MB |
17370 | { ac_try='test -z "$ac_c_werror_flag" |
17371 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17373 | (eval $ac_try) 2>&5 | |
17374 | ac_status=$? | |
17375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17376 | (exit $ac_status); }; } && | |
17377 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17379 | (eval $ac_try) 2>&5 | |
17380 | ac_status=$? | |
17381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17382 | (exit $ac_status); }; }; then | |
17383 | ac_lo=0 ac_mid=0 | |
17384 | while :; do | |
17385 | cat >conftest.$ac_ext <<_ACEOF | |
17386 | /* confdefs.h. */ | |
17387 | _ACEOF | |
17388 | cat confdefs.h >>conftest.$ac_ext | |
17389 | cat >>conftest.$ac_ext <<_ACEOF | |
17390 | /* end confdefs.h. */ | |
17391 | $ac_includes_default | |
17392 | int | |
17393 | main () | |
17394 | { | |
17395 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17396 | test_array [0] = 0 | |
17397 | ||
17398 | ; | |
17399 | return 0; | |
17400 | } | |
17401 | _ACEOF | |
17402 | rm -f conftest.$ac_objext | |
17403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17404 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17405 | ac_status=$? |
ac1cb8d3 VS |
17406 | grep -v '^ *+' conftest.er1 >conftest.err |
17407 | rm -f conftest.er1 | |
17408 | cat conftest.err >&5 | |
a848cd7e SC |
17409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17410 | (exit $ac_status); } && | |
dee1a63f MB |
17411 | { ac_try='test -z "$ac_c_werror_flag" |
17412 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17414 | (eval $ac_try) 2>&5 | |
17415 | ac_status=$? | |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17417 | (exit $ac_status); }; } && | |
17418 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17420 | (eval $ac_try) 2>&5 | |
17421 | ac_status=$? | |
17422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17423 | (exit $ac_status); }; }; then | |
17424 | ac_hi=$ac_mid; break | |
17425 | else | |
17426 | echo "$as_me: failed program was:" >&5 | |
17427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17428 | ||
17429 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17430 | if test $ac_lo -le $ac_mid; then |
17431 | ac_lo= ac_hi= | |
17432 | break | |
17433 | fi | |
17434 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17435 | fi |
ac1cb8d3 | 17436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17437 | done |
17438 | else | |
17439 | echo "$as_me: failed program was:" >&5 | |
17440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17441 | ||
17442 | cat >conftest.$ac_ext <<_ACEOF | |
17443 | /* confdefs.h. */ | |
17444 | _ACEOF | |
17445 | cat confdefs.h >>conftest.$ac_ext | |
17446 | cat >>conftest.$ac_ext <<_ACEOF | |
17447 | /* end confdefs.h. */ | |
17448 | $ac_includes_default | |
17449 | int | |
17450 | main () | |
17451 | { | |
17452 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17453 | test_array [0] = 0 | |
17454 | ||
17455 | ; | |
17456 | return 0; | |
17457 | } | |
17458 | _ACEOF | |
17459 | rm -f conftest.$ac_objext | |
17460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17462 | ac_status=$? |
ac1cb8d3 VS |
17463 | grep -v '^ *+' conftest.er1 >conftest.err |
17464 | rm -f conftest.er1 | |
17465 | cat conftest.err >&5 | |
a848cd7e SC |
17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17467 | (exit $ac_status); } && | |
dee1a63f MB |
17468 | { ac_try='test -z "$ac_c_werror_flag" |
17469 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17471 | (eval $ac_try) 2>&5 | |
17472 | ac_status=$? | |
17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17474 | (exit $ac_status); }; } && | |
17475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17477 | (eval $ac_try) 2>&5 | |
17478 | ac_status=$? | |
17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17480 | (exit $ac_status); }; }; then | |
17481 | ac_hi=-1 ac_mid=-1 | |
17482 | while :; do | |
17483 | cat >conftest.$ac_ext <<_ACEOF | |
17484 | /* confdefs.h. */ | |
17485 | _ACEOF | |
17486 | cat confdefs.h >>conftest.$ac_ext | |
17487 | cat >>conftest.$ac_ext <<_ACEOF | |
17488 | /* end confdefs.h. */ | |
17489 | $ac_includes_default | |
17490 | int | |
17491 | main () | |
17492 | { | |
17493 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17494 | test_array [0] = 0 | |
17495 | ||
17496 | ; | |
17497 | return 0; | |
17498 | } | |
17499 | _ACEOF | |
17500 | rm -f conftest.$ac_objext | |
17501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17502 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17503 | ac_status=$? |
ac1cb8d3 VS |
17504 | grep -v '^ *+' conftest.er1 >conftest.err |
17505 | rm -f conftest.er1 | |
17506 | cat conftest.err >&5 | |
a848cd7e SC |
17507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17508 | (exit $ac_status); } && | |
dee1a63f MB |
17509 | { ac_try='test -z "$ac_c_werror_flag" |
17510 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17512 | (eval $ac_try) 2>&5 | |
17513 | ac_status=$? | |
17514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17515 | (exit $ac_status); }; } && | |
17516 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17518 | (eval $ac_try) 2>&5 | |
17519 | ac_status=$? | |
17520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17521 | (exit $ac_status); }; }; then | |
17522 | ac_lo=$ac_mid; break | |
17523 | else | |
17524 | echo "$as_me: failed program was:" >&5 | |
17525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17526 | ||
17527 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17528 | if test $ac_mid -le $ac_hi; then |
17529 | ac_lo= ac_hi= | |
17530 | break | |
17531 | fi | |
17532 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17533 | fi |
ac1cb8d3 | 17534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17535 | done |
17536 | else | |
17537 | echo "$as_me: failed program was:" >&5 | |
17538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17539 | ||
17540 | ac_lo= ac_hi= | |
17541 | fi | |
ac1cb8d3 | 17542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17543 | fi |
ac1cb8d3 | 17544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17545 | # Binary search between lo and hi bounds. |
17546 | while test "x$ac_lo" != "x$ac_hi"; do | |
17547 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17548 | cat >conftest.$ac_ext <<_ACEOF | |
17549 | /* confdefs.h. */ | |
17550 | _ACEOF | |
17551 | cat confdefs.h >>conftest.$ac_ext | |
17552 | cat >>conftest.$ac_ext <<_ACEOF | |
17553 | /* end confdefs.h. */ | |
17554 | $ac_includes_default | |
17555 | int | |
17556 | main () | |
17557 | { | |
17558 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17559 | test_array [0] = 0 | |
17560 | ||
17561 | ; | |
17562 | return 0; | |
17563 | } | |
17564 | _ACEOF | |
17565 | rm -f conftest.$ac_objext | |
17566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17568 | ac_status=$? |
ac1cb8d3 VS |
17569 | grep -v '^ *+' conftest.er1 >conftest.err |
17570 | rm -f conftest.er1 | |
17571 | cat conftest.err >&5 | |
a848cd7e SC |
17572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17573 | (exit $ac_status); } && | |
dee1a63f MB |
17574 | { ac_try='test -z "$ac_c_werror_flag" |
17575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17577 | (eval $ac_try) 2>&5 | |
17578 | ac_status=$? | |
17579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17580 | (exit $ac_status); }; } && | |
17581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17583 | (eval $ac_try) 2>&5 | |
17584 | ac_status=$? | |
17585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17586 | (exit $ac_status); }; }; then | |
17587 | ac_hi=$ac_mid | |
17588 | else | |
17589 | echo "$as_me: failed program was:" >&5 | |
17590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17591 | ||
17592 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17593 | fi | |
ac1cb8d3 | 17594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17595 | done |
17596 | case $ac_lo in | |
17597 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17598 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17599 | See \`config.log' for more details." >&5 | |
17600 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17601 | See \`config.log' for more details." >&2;} | |
17602 | { (exit 1); exit 1; }; } ;; | |
17603 | esac | |
17604 | else | |
17605 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
17606 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17607 | See \`config.log' for more details." >&5 | |
17608 | echo "$as_me: error: cannot run test program while cross compiling | |
17609 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17610 | { (exit 1); exit 1; }; } |
17611 | else | |
17612 | cat >conftest.$ac_ext <<_ACEOF | |
17613 | /* confdefs.h. */ | |
17614 | _ACEOF | |
17615 | cat confdefs.h >>conftest.$ac_ext | |
17616 | cat >>conftest.$ac_ext <<_ACEOF | |
17617 | /* end confdefs.h. */ | |
17618 | $ac_includes_default | |
17619 | long longval () { return (long) (sizeof (void *)); } | |
17620 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
17621 | #include <stdio.h> | |
17622 | #include <stdlib.h> | |
17623 | int | |
17624 | main () | |
17625 | { | |
17626 | ||
17627 | FILE *f = fopen ("conftest.val", "w"); | |
17628 | if (! f) | |
17629 | exit (1); | |
17630 | if (((long) (sizeof (void *))) < 0) | |
17631 | { | |
17632 | long i = longval (); | |
17633 | if (i != ((long) (sizeof (void *)))) | |
17634 | exit (1); | |
17635 | fprintf (f, "%ld\n", i); | |
17636 | } | |
17637 | else | |
17638 | { | |
17639 | unsigned long i = ulongval (); | |
17640 | if (i != ((long) (sizeof (void *)))) | |
17641 | exit (1); | |
17642 | fprintf (f, "%lu\n", i); | |
17643 | } | |
17644 | exit (ferror (f) || fclose (f) != 0); | |
17645 | ||
17646 | ; | |
17647 | return 0; | |
17648 | } | |
17649 | _ACEOF | |
17650 | rm -f conftest$ac_exeext | |
17651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17652 | (eval $ac_link) 2>&5 | |
17653 | ac_status=$? | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17657 | (eval $ac_try) 2>&5 | |
17658 | ac_status=$? | |
17659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17660 | (exit $ac_status); }; }; then | |
17661 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17662 | else | |
17663 | echo "$as_me: program exited with status $ac_status" >&5 | |
17664 | echo "$as_me: failed program was:" >&5 | |
17665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17666 | ||
17667 | ( exit $ac_status ) | |
17668 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17669 | See \`config.log' for more details." >&5 | |
17670 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17671 | See \`config.log' for more details." >&2;} | |
17672 | { (exit 1); exit 1; }; } | |
17673 | fi | |
ac1cb8d3 | 17674 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17675 | fi |
17676 | fi | |
17677 | rm -f conftest.val | |
17678 | else | |
17679 | ac_cv_sizeof_void_p=0 | |
17680 | fi | |
17681 | fi | |
17682 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
17683 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
17684 | cat >>confdefs.h <<_ACEOF | |
17685 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17686 | _ACEOF | |
17687 | ||
17688 | ||
17689 | echo "$as_me:$LINENO: checking for int" >&5 | |
17690 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
17691 | if test "${ac_cv_type_int+set}" = set; then | |
17692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17693 | else | |
17694 | cat >conftest.$ac_ext <<_ACEOF | |
17695 | /* confdefs.h. */ | |
17696 | _ACEOF | |
17697 | cat confdefs.h >>conftest.$ac_ext | |
17698 | cat >>conftest.$ac_ext <<_ACEOF | |
17699 | /* end confdefs.h. */ | |
17700 | $ac_includes_default | |
17701 | int | |
17702 | main () | |
17703 | { | |
17704 | if ((int *) 0) | |
17705 | return 0; | |
17706 | if (sizeof (int)) | |
17707 | return 0; | |
17708 | ; | |
17709 | return 0; | |
17710 | } | |
17711 | _ACEOF | |
17712 | rm -f conftest.$ac_objext | |
17713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17714 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17715 | ac_status=$? |
ac1cb8d3 VS |
17716 | grep -v '^ *+' conftest.er1 >conftest.err |
17717 | rm -f conftest.er1 | |
17718 | cat conftest.err >&5 | |
a848cd7e SC |
17719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17720 | (exit $ac_status); } && | |
dee1a63f MB |
17721 | { ac_try='test -z "$ac_c_werror_flag" |
17722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17724 | (eval $ac_try) 2>&5 | |
17725 | ac_status=$? | |
17726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17727 | (exit $ac_status); }; } && | |
17728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17730 | (eval $ac_try) 2>&5 | |
17731 | ac_status=$? | |
17732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17733 | (exit $ac_status); }; }; then | |
17734 | ac_cv_type_int=yes | |
17735 | else | |
17736 | echo "$as_me: failed program was:" >&5 | |
17737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17738 | ||
17739 | ac_cv_type_int=no | |
17740 | fi | |
ac1cb8d3 | 17741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17742 | fi |
17743 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
17744 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
17745 | ||
17746 | echo "$as_me:$LINENO: checking size of int" >&5 | |
17747 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
17748 | if test "${ac_cv_sizeof_int+set}" = set; then | |
17749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17750 | else | |
17751 | if test "$ac_cv_type_int" = yes; then | |
17752 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17753 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17754 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17755 | # This bug is HP SR number 8606223364. | |
17756 | if test "$cross_compiling" = yes; then | |
17757 | # Depending upon the size, compute the lo and hi bounds. | |
17758 | cat >conftest.$ac_ext <<_ACEOF | |
17759 | /* confdefs.h. */ | |
17760 | _ACEOF | |
17761 | cat confdefs.h >>conftest.$ac_ext | |
17762 | cat >>conftest.$ac_ext <<_ACEOF | |
17763 | /* end confdefs.h. */ | |
17764 | $ac_includes_default | |
17765 | int | |
17766 | main () | |
17767 | { | |
17768 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17769 | test_array [0] = 0 | |
17770 | ||
17771 | ; | |
17772 | return 0; | |
17773 | } | |
17774 | _ACEOF | |
17775 | rm -f conftest.$ac_objext | |
17776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17777 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17778 | ac_status=$? |
ac1cb8d3 VS |
17779 | grep -v '^ *+' conftest.er1 >conftest.err |
17780 | rm -f conftest.er1 | |
17781 | cat conftest.err >&5 | |
a848cd7e SC |
17782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17783 | (exit $ac_status); } && | |
dee1a63f MB |
17784 | { ac_try='test -z "$ac_c_werror_flag" |
17785 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17787 | (eval $ac_try) 2>&5 | |
17788 | ac_status=$? | |
17789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17790 | (exit $ac_status); }; } && | |
17791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17793 | (eval $ac_try) 2>&5 | |
17794 | ac_status=$? | |
17795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17796 | (exit $ac_status); }; }; then | |
17797 | ac_lo=0 ac_mid=0 | |
17798 | while :; do | |
17799 | cat >conftest.$ac_ext <<_ACEOF | |
17800 | /* confdefs.h. */ | |
17801 | _ACEOF | |
17802 | cat confdefs.h >>conftest.$ac_ext | |
17803 | cat >>conftest.$ac_ext <<_ACEOF | |
17804 | /* end confdefs.h. */ | |
17805 | $ac_includes_default | |
17806 | int | |
17807 | main () | |
17808 | { | |
17809 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17810 | test_array [0] = 0 | |
17811 | ||
17812 | ; | |
17813 | return 0; | |
17814 | } | |
17815 | _ACEOF | |
17816 | rm -f conftest.$ac_objext | |
17817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17819 | ac_status=$? |
ac1cb8d3 VS |
17820 | grep -v '^ *+' conftest.er1 >conftest.err |
17821 | rm -f conftest.er1 | |
17822 | cat conftest.err >&5 | |
a848cd7e SC |
17823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17824 | (exit $ac_status); } && | |
dee1a63f MB |
17825 | { ac_try='test -z "$ac_c_werror_flag" |
17826 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17828 | (eval $ac_try) 2>&5 | |
17829 | ac_status=$? | |
17830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17831 | (exit $ac_status); }; } && | |
17832 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17834 | (eval $ac_try) 2>&5 | |
17835 | ac_status=$? | |
17836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17837 | (exit $ac_status); }; }; then | |
17838 | ac_hi=$ac_mid; break | |
17839 | else | |
17840 | echo "$as_me: failed program was:" >&5 | |
17841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17842 | ||
17843 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17844 | if test $ac_lo -le $ac_mid; then |
17845 | ac_lo= ac_hi= | |
17846 | break | |
17847 | fi | |
17848 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17849 | fi |
ac1cb8d3 | 17850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17851 | done |
17852 | else | |
17853 | echo "$as_me: failed program was:" >&5 | |
17854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17855 | ||
17856 | cat >conftest.$ac_ext <<_ACEOF | |
17857 | /* confdefs.h. */ | |
17858 | _ACEOF | |
17859 | cat confdefs.h >>conftest.$ac_ext | |
17860 | cat >>conftest.$ac_ext <<_ACEOF | |
17861 | /* end confdefs.h. */ | |
17862 | $ac_includes_default | |
17863 | int | |
17864 | main () | |
17865 | { | |
17866 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
17867 | test_array [0] = 0 | |
17868 | ||
17869 | ; | |
17870 | return 0; | |
17871 | } | |
17872 | _ACEOF | |
17873 | rm -f conftest.$ac_objext | |
17874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17876 | ac_status=$? |
ac1cb8d3 VS |
17877 | grep -v '^ *+' conftest.er1 >conftest.err |
17878 | rm -f conftest.er1 | |
17879 | cat conftest.err >&5 | |
a848cd7e SC |
17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17881 | (exit $ac_status); } && | |
dee1a63f MB |
17882 | { ac_try='test -z "$ac_c_werror_flag" |
17883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17885 | (eval $ac_try) 2>&5 | |
17886 | ac_status=$? | |
17887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17888 | (exit $ac_status); }; } && | |
17889 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17891 | (eval $ac_try) 2>&5 | |
17892 | ac_status=$? | |
17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17894 | (exit $ac_status); }; }; then | |
17895 | ac_hi=-1 ac_mid=-1 | |
17896 | while :; do | |
17897 | cat >conftest.$ac_ext <<_ACEOF | |
17898 | /* confdefs.h. */ | |
17899 | _ACEOF | |
17900 | cat confdefs.h >>conftest.$ac_ext | |
17901 | cat >>conftest.$ac_ext <<_ACEOF | |
17902 | /* end confdefs.h. */ | |
17903 | $ac_includes_default | |
17904 | int | |
17905 | main () | |
17906 | { | |
17907 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
17908 | test_array [0] = 0 | |
17909 | ||
17910 | ; | |
17911 | return 0; | |
17912 | } | |
17913 | _ACEOF | |
17914 | rm -f conftest.$ac_objext | |
17915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17916 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17917 | ac_status=$? |
ac1cb8d3 VS |
17918 | grep -v '^ *+' conftest.er1 >conftest.err |
17919 | rm -f conftest.er1 | |
17920 | cat conftest.err >&5 | |
a848cd7e SC |
17921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17922 | (exit $ac_status); } && | |
dee1a63f MB |
17923 | { ac_try='test -z "$ac_c_werror_flag" |
17924 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17926 | (eval $ac_try) 2>&5 | |
17927 | ac_status=$? | |
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17929 | (exit $ac_status); }; } && | |
17930 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17932 | (eval $ac_try) 2>&5 | |
17933 | ac_status=$? | |
17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17935 | (exit $ac_status); }; }; then | |
17936 | ac_lo=$ac_mid; break | |
17937 | else | |
17938 | echo "$as_me: failed program was:" >&5 | |
17939 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17940 | ||
17941 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17942 | if test $ac_mid -le $ac_hi; then |
17943 | ac_lo= ac_hi= | |
17944 | break | |
17945 | fi | |
17946 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17947 | fi |
ac1cb8d3 | 17948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17949 | done |
17950 | else | |
17951 | echo "$as_me: failed program was:" >&5 | |
17952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17953 | ||
17954 | ac_lo= ac_hi= | |
17955 | fi | |
ac1cb8d3 | 17956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17957 | fi |
ac1cb8d3 | 17958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17959 | # Binary search between lo and hi bounds. |
17960 | while test "x$ac_lo" != "x$ac_hi"; do | |
17961 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17962 | cat >conftest.$ac_ext <<_ACEOF | |
17963 | /* confdefs.h. */ | |
17964 | _ACEOF | |
17965 | cat confdefs.h >>conftest.$ac_ext | |
17966 | cat >>conftest.$ac_ext <<_ACEOF | |
17967 | /* end confdefs.h. */ | |
17968 | $ac_includes_default | |
17969 | int | |
17970 | main () | |
17971 | { | |
17972 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17973 | test_array [0] = 0 | |
17974 | ||
17975 | ; | |
17976 | return 0; | |
17977 | } | |
17978 | _ACEOF | |
17979 | rm -f conftest.$ac_objext | |
17980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17981 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17982 | ac_status=$? |
ac1cb8d3 VS |
17983 | grep -v '^ *+' conftest.er1 >conftest.err |
17984 | rm -f conftest.er1 | |
17985 | cat conftest.err >&5 | |
a848cd7e SC |
17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17987 | (exit $ac_status); } && | |
dee1a63f MB |
17988 | { ac_try='test -z "$ac_c_werror_flag" |
17989 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17991 | (eval $ac_try) 2>&5 | |
17992 | ac_status=$? | |
17993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17994 | (exit $ac_status); }; } && | |
17995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17997 | (eval $ac_try) 2>&5 | |
17998 | ac_status=$? | |
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18000 | (exit $ac_status); }; }; then | |
18001 | ac_hi=$ac_mid | |
18002 | else | |
18003 | echo "$as_me: failed program was:" >&5 | |
18004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18005 | ||
18006 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18007 | fi | |
ac1cb8d3 | 18008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18009 | done |
18010 | case $ac_lo in | |
18011 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18012 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18013 | See \`config.log' for more details." >&5 | |
18014 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18015 | See \`config.log' for more details." >&2;} | |
18016 | { (exit 1); exit 1; }; } ;; | |
18017 | esac | |
18018 | else | |
18019 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
18020 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18021 | See \`config.log' for more details." >&5 | |
18022 | echo "$as_me: error: cannot run test program while cross compiling | |
18023 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18024 | { (exit 1); exit 1; }; } |
18025 | else | |
18026 | cat >conftest.$ac_ext <<_ACEOF | |
18027 | /* confdefs.h. */ | |
18028 | _ACEOF | |
18029 | cat confdefs.h >>conftest.$ac_ext | |
18030 | cat >>conftest.$ac_ext <<_ACEOF | |
18031 | /* end confdefs.h. */ | |
18032 | $ac_includes_default | |
18033 | long longval () { return (long) (sizeof (int)); } | |
18034 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18035 | #include <stdio.h> | |
18036 | #include <stdlib.h> | |
18037 | int | |
18038 | main () | |
18039 | { | |
18040 | ||
18041 | FILE *f = fopen ("conftest.val", "w"); | |
18042 | if (! f) | |
18043 | exit (1); | |
18044 | if (((long) (sizeof (int))) < 0) | |
18045 | { | |
18046 | long i = longval (); | |
18047 | if (i != ((long) (sizeof (int)))) | |
18048 | exit (1); | |
18049 | fprintf (f, "%ld\n", i); | |
18050 | } | |
18051 | else | |
18052 | { | |
18053 | unsigned long i = ulongval (); | |
18054 | if (i != ((long) (sizeof (int)))) | |
18055 | exit (1); | |
18056 | fprintf (f, "%lu\n", i); | |
18057 | } | |
18058 | exit (ferror (f) || fclose (f) != 0); | |
18059 | ||
18060 | ; | |
18061 | return 0; | |
18062 | } | |
18063 | _ACEOF | |
18064 | rm -f conftest$ac_exeext | |
18065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18066 | (eval $ac_link) 2>&5 | |
18067 | ac_status=$? | |
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18071 | (eval $ac_try) 2>&5 | |
18072 | ac_status=$? | |
18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18074 | (exit $ac_status); }; }; then | |
18075 | ac_cv_sizeof_int=`cat conftest.val` | |
18076 | else | |
18077 | echo "$as_me: program exited with status $ac_status" >&5 | |
18078 | echo "$as_me: failed program was:" >&5 | |
18079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18080 | ||
18081 | ( exit $ac_status ) | |
18082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18083 | See \`config.log' for more details." >&5 | |
18084 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18085 | See \`config.log' for more details." >&2;} | |
18086 | { (exit 1); exit 1; }; } | |
18087 | fi | |
ac1cb8d3 | 18088 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18089 | fi |
18090 | fi | |
18091 | rm -f conftest.val | |
18092 | else | |
18093 | ac_cv_sizeof_int=0 | |
18094 | fi | |
18095 | fi | |
18096 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18097 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18098 | cat >>confdefs.h <<_ACEOF | |
18099 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18100 | _ACEOF | |
18101 | ||
18102 | ||
18103 | echo "$as_me:$LINENO: checking for long" >&5 | |
18104 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18105 | if test "${ac_cv_type_long+set}" = set; then | |
18106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18107 | else | |
18108 | cat >conftest.$ac_ext <<_ACEOF | |
18109 | /* confdefs.h. */ | |
18110 | _ACEOF | |
18111 | cat confdefs.h >>conftest.$ac_ext | |
18112 | cat >>conftest.$ac_ext <<_ACEOF | |
18113 | /* end confdefs.h. */ | |
18114 | $ac_includes_default | |
18115 | int | |
18116 | main () | |
18117 | { | |
18118 | if ((long *) 0) | |
18119 | return 0; | |
18120 | if (sizeof (long)) | |
18121 | return 0; | |
18122 | ; | |
18123 | return 0; | |
18124 | } | |
18125 | _ACEOF | |
18126 | rm -f conftest.$ac_objext | |
18127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18128 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18129 | ac_status=$? |
ac1cb8d3 VS |
18130 | grep -v '^ *+' conftest.er1 >conftest.err |
18131 | rm -f conftest.er1 | |
18132 | cat conftest.err >&5 | |
a848cd7e SC |
18133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18134 | (exit $ac_status); } && | |
dee1a63f MB |
18135 | { ac_try='test -z "$ac_c_werror_flag" |
18136 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18138 | (eval $ac_try) 2>&5 | |
18139 | ac_status=$? | |
18140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18141 | (exit $ac_status); }; } && | |
18142 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18144 | (eval $ac_try) 2>&5 | |
18145 | ac_status=$? | |
18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18147 | (exit $ac_status); }; }; then | |
18148 | ac_cv_type_long=yes | |
18149 | else | |
18150 | echo "$as_me: failed program was:" >&5 | |
18151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18152 | ||
18153 | ac_cv_type_long=no | |
18154 | fi | |
ac1cb8d3 | 18155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18156 | fi |
18157 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18158 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18159 | ||
18160 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18161 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18162 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18164 | else | |
18165 | if test "$ac_cv_type_long" = yes; then | |
18166 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18167 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18168 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18169 | # This bug is HP SR number 8606223364. | |
18170 | if test "$cross_compiling" = yes; then | |
18171 | # Depending upon the size, compute the lo and hi bounds. | |
18172 | cat >conftest.$ac_ext <<_ACEOF | |
18173 | /* confdefs.h. */ | |
18174 | _ACEOF | |
18175 | cat confdefs.h >>conftest.$ac_ext | |
18176 | cat >>conftest.$ac_ext <<_ACEOF | |
18177 | /* end confdefs.h. */ | |
18178 | $ac_includes_default | |
18179 | int | |
18180 | main () | |
18181 | { | |
18182 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18183 | test_array [0] = 0 | |
18184 | ||
18185 | ; | |
18186 | return 0; | |
18187 | } | |
18188 | _ACEOF | |
18189 | rm -f conftest.$ac_objext | |
18190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18191 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18192 | ac_status=$? |
ac1cb8d3 VS |
18193 | grep -v '^ *+' conftest.er1 >conftest.err |
18194 | rm -f conftest.er1 | |
18195 | cat conftest.err >&5 | |
a848cd7e SC |
18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18197 | (exit $ac_status); } && | |
dee1a63f MB |
18198 | { ac_try='test -z "$ac_c_werror_flag" |
18199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18201 | (eval $ac_try) 2>&5 | |
18202 | ac_status=$? | |
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18204 | (exit $ac_status); }; } && | |
18205 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18207 | (eval $ac_try) 2>&5 | |
18208 | ac_status=$? | |
18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18210 | (exit $ac_status); }; }; then | |
18211 | ac_lo=0 ac_mid=0 | |
18212 | while :; do | |
18213 | cat >conftest.$ac_ext <<_ACEOF | |
18214 | /* confdefs.h. */ | |
18215 | _ACEOF | |
18216 | cat confdefs.h >>conftest.$ac_ext | |
18217 | cat >>conftest.$ac_ext <<_ACEOF | |
18218 | /* end confdefs.h. */ | |
18219 | $ac_includes_default | |
18220 | int | |
18221 | main () | |
18222 | { | |
18223 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18224 | test_array [0] = 0 | |
18225 | ||
18226 | ; | |
18227 | return 0; | |
18228 | } | |
18229 | _ACEOF | |
18230 | rm -f conftest.$ac_objext | |
18231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18232 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18233 | ac_status=$? |
ac1cb8d3 VS |
18234 | grep -v '^ *+' conftest.er1 >conftest.err |
18235 | rm -f conftest.er1 | |
18236 | cat conftest.err >&5 | |
a848cd7e SC |
18237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18238 | (exit $ac_status); } && | |
dee1a63f MB |
18239 | { ac_try='test -z "$ac_c_werror_flag" |
18240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18242 | (eval $ac_try) 2>&5 | |
18243 | ac_status=$? | |
18244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18245 | (exit $ac_status); }; } && | |
18246 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18248 | (eval $ac_try) 2>&5 | |
18249 | ac_status=$? | |
18250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18251 | (exit $ac_status); }; }; then | |
18252 | ac_hi=$ac_mid; break | |
18253 | else | |
18254 | echo "$as_me: failed program was:" >&5 | |
18255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18256 | ||
18257 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18258 | if test $ac_lo -le $ac_mid; then |
18259 | ac_lo= ac_hi= | |
18260 | break | |
18261 | fi | |
18262 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18263 | fi |
ac1cb8d3 | 18264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18265 | done |
18266 | else | |
18267 | echo "$as_me: failed program was:" >&5 | |
18268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18269 | ||
18270 | cat >conftest.$ac_ext <<_ACEOF | |
18271 | /* confdefs.h. */ | |
18272 | _ACEOF | |
18273 | cat confdefs.h >>conftest.$ac_ext | |
18274 | cat >>conftest.$ac_ext <<_ACEOF | |
18275 | /* end confdefs.h. */ | |
18276 | $ac_includes_default | |
18277 | int | |
18278 | main () | |
18279 | { | |
18280 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18281 | test_array [0] = 0 | |
18282 | ||
18283 | ; | |
18284 | return 0; | |
18285 | } | |
18286 | _ACEOF | |
18287 | rm -f conftest.$ac_objext | |
18288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18290 | ac_status=$? |
ac1cb8d3 VS |
18291 | grep -v '^ *+' conftest.er1 >conftest.err |
18292 | rm -f conftest.er1 | |
18293 | cat conftest.err >&5 | |
a848cd7e SC |
18294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18295 | (exit $ac_status); } && | |
dee1a63f MB |
18296 | { ac_try='test -z "$ac_c_werror_flag" |
18297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18299 | (eval $ac_try) 2>&5 | |
18300 | ac_status=$? | |
18301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18302 | (exit $ac_status); }; } && | |
18303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18305 | (eval $ac_try) 2>&5 | |
18306 | ac_status=$? | |
18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18308 | (exit $ac_status); }; }; then | |
18309 | ac_hi=-1 ac_mid=-1 | |
18310 | while :; do | |
18311 | cat >conftest.$ac_ext <<_ACEOF | |
18312 | /* confdefs.h. */ | |
18313 | _ACEOF | |
18314 | cat confdefs.h >>conftest.$ac_ext | |
18315 | cat >>conftest.$ac_ext <<_ACEOF | |
18316 | /* end confdefs.h. */ | |
18317 | $ac_includes_default | |
18318 | int | |
18319 | main () | |
18320 | { | |
18321 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18322 | test_array [0] = 0 | |
18323 | ||
18324 | ; | |
18325 | return 0; | |
18326 | } | |
18327 | _ACEOF | |
18328 | rm -f conftest.$ac_objext | |
18329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18330 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18331 | ac_status=$? |
ac1cb8d3 VS |
18332 | grep -v '^ *+' conftest.er1 >conftest.err |
18333 | rm -f conftest.er1 | |
18334 | cat conftest.err >&5 | |
a848cd7e SC |
18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18336 | (exit $ac_status); } && | |
dee1a63f MB |
18337 | { ac_try='test -z "$ac_c_werror_flag" |
18338 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; } && | |
18344 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18346 | (eval $ac_try) 2>&5 | |
18347 | ac_status=$? | |
18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18349 | (exit $ac_status); }; }; then | |
18350 | ac_lo=$ac_mid; break | |
18351 | else | |
18352 | echo "$as_me: failed program was:" >&5 | |
18353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18354 | ||
18355 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18356 | if test $ac_mid -le $ac_hi; then |
18357 | ac_lo= ac_hi= | |
18358 | break | |
18359 | fi | |
18360 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18361 | fi |
ac1cb8d3 | 18362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18363 | done |
18364 | else | |
18365 | echo "$as_me: failed program was:" >&5 | |
18366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18367 | ||
18368 | ac_lo= ac_hi= | |
18369 | fi | |
ac1cb8d3 | 18370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18371 | fi |
ac1cb8d3 | 18372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18373 | # Binary search between lo and hi bounds. |
18374 | while test "x$ac_lo" != "x$ac_hi"; do | |
18375 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18376 | cat >conftest.$ac_ext <<_ACEOF | |
18377 | /* confdefs.h. */ | |
18378 | _ACEOF | |
18379 | cat confdefs.h >>conftest.$ac_ext | |
18380 | cat >>conftest.$ac_ext <<_ACEOF | |
18381 | /* end confdefs.h. */ | |
18382 | $ac_includes_default | |
18383 | int | |
18384 | main () | |
18385 | { | |
18386 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18387 | test_array [0] = 0 | |
18388 | ||
18389 | ; | |
18390 | return 0; | |
18391 | } | |
18392 | _ACEOF | |
18393 | rm -f conftest.$ac_objext | |
18394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18396 | ac_status=$? |
ac1cb8d3 VS |
18397 | grep -v '^ *+' conftest.er1 >conftest.err |
18398 | rm -f conftest.er1 | |
18399 | cat conftest.err >&5 | |
a848cd7e SC |
18400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18401 | (exit $ac_status); } && | |
dee1a63f MB |
18402 | { ac_try='test -z "$ac_c_werror_flag" |
18403 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18405 | (eval $ac_try) 2>&5 | |
18406 | ac_status=$? | |
18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18408 | (exit $ac_status); }; } && | |
18409 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18411 | (eval $ac_try) 2>&5 | |
18412 | ac_status=$? | |
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18414 | (exit $ac_status); }; }; then | |
18415 | ac_hi=$ac_mid | |
18416 | else | |
18417 | echo "$as_me: failed program was:" >&5 | |
18418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18419 | ||
18420 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18421 | fi | |
ac1cb8d3 | 18422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18423 | done |
18424 | case $ac_lo in | |
18425 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18426 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18427 | See \`config.log' for more details." >&5 | |
18428 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18429 | See \`config.log' for more details." >&2;} | |
18430 | { (exit 1); exit 1; }; } ;; | |
18431 | esac | |
18432 | else | |
18433 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
18434 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18435 | See \`config.log' for more details." >&5 | |
18436 | echo "$as_me: error: cannot run test program while cross compiling | |
18437 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18438 | { (exit 1); exit 1; }; } |
18439 | else | |
18440 | cat >conftest.$ac_ext <<_ACEOF | |
18441 | /* confdefs.h. */ | |
18442 | _ACEOF | |
18443 | cat confdefs.h >>conftest.$ac_ext | |
18444 | cat >>conftest.$ac_ext <<_ACEOF | |
18445 | /* end confdefs.h. */ | |
18446 | $ac_includes_default | |
18447 | long longval () { return (long) (sizeof (long)); } | |
18448 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18449 | #include <stdio.h> | |
18450 | #include <stdlib.h> | |
18451 | int | |
18452 | main () | |
18453 | { | |
18454 | ||
18455 | FILE *f = fopen ("conftest.val", "w"); | |
18456 | if (! f) | |
18457 | exit (1); | |
18458 | if (((long) (sizeof (long))) < 0) | |
18459 | { | |
18460 | long i = longval (); | |
18461 | if (i != ((long) (sizeof (long)))) | |
18462 | exit (1); | |
18463 | fprintf (f, "%ld\n", i); | |
18464 | } | |
18465 | else | |
18466 | { | |
18467 | unsigned long i = ulongval (); | |
18468 | if (i != ((long) (sizeof (long)))) | |
18469 | exit (1); | |
18470 | fprintf (f, "%lu\n", i); | |
18471 | } | |
18472 | exit (ferror (f) || fclose (f) != 0); | |
18473 | ||
18474 | ; | |
18475 | return 0; | |
18476 | } | |
18477 | _ACEOF | |
18478 | rm -f conftest$ac_exeext | |
18479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18480 | (eval $ac_link) 2>&5 | |
18481 | ac_status=$? | |
18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18485 | (eval $ac_try) 2>&5 | |
18486 | ac_status=$? | |
18487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18488 | (exit $ac_status); }; }; then | |
18489 | ac_cv_sizeof_long=`cat conftest.val` | |
18490 | else | |
18491 | echo "$as_me: program exited with status $ac_status" >&5 | |
18492 | echo "$as_me: failed program was:" >&5 | |
18493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18494 | ||
18495 | ( exit $ac_status ) | |
18496 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18497 | See \`config.log' for more details." >&5 | |
18498 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18499 | See \`config.log' for more details." >&2;} | |
18500 | { (exit 1); exit 1; }; } | |
18501 | fi | |
ac1cb8d3 | 18502 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18503 | fi |
18504 | fi | |
18505 | rm -f conftest.val | |
18506 | else | |
18507 | ac_cv_sizeof_long=0 | |
18508 | fi | |
18509 | fi | |
18510 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18511 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18512 | cat >>confdefs.h <<_ACEOF | |
18513 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18514 | _ACEOF | |
18515 | ||
18516 | ||
18517 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18518 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18519 | if test "${ac_cv_type_size_t+set}" = set; then | |
18520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18521 | else | |
18522 | cat >conftest.$ac_ext <<_ACEOF | |
18523 | /* confdefs.h. */ | |
18524 | _ACEOF | |
18525 | cat confdefs.h >>conftest.$ac_ext | |
18526 | cat >>conftest.$ac_ext <<_ACEOF | |
18527 | /* end confdefs.h. */ | |
18528 | $ac_includes_default | |
18529 | int | |
18530 | main () | |
18531 | { | |
18532 | if ((size_t *) 0) | |
18533 | return 0; | |
18534 | if (sizeof (size_t)) | |
18535 | return 0; | |
18536 | ; | |
18537 | return 0; | |
18538 | } | |
18539 | _ACEOF | |
18540 | rm -f conftest.$ac_objext | |
18541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18542 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18543 | ac_status=$? |
ac1cb8d3 VS |
18544 | grep -v '^ *+' conftest.er1 >conftest.err |
18545 | rm -f conftest.er1 | |
18546 | cat conftest.err >&5 | |
a848cd7e SC |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18548 | (exit $ac_status); } && | |
dee1a63f MB |
18549 | { ac_try='test -z "$ac_c_werror_flag" |
18550 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18552 | (eval $ac_try) 2>&5 | |
18553 | ac_status=$? | |
18554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18555 | (exit $ac_status); }; } && | |
18556 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18558 | (eval $ac_try) 2>&5 | |
18559 | ac_status=$? | |
18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18561 | (exit $ac_status); }; }; then | |
18562 | ac_cv_type_size_t=yes | |
18563 | else | |
18564 | echo "$as_me: failed program was:" >&5 | |
18565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18566 | ||
18567 | ac_cv_type_size_t=no | |
18568 | fi | |
ac1cb8d3 | 18569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18570 | fi |
18571 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18572 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18573 | ||
18574 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18575 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18576 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18578 | else | |
18579 | if test "$ac_cv_type_size_t" = yes; then | |
18580 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18583 | # This bug is HP SR number 8606223364. | |
18584 | if test "$cross_compiling" = yes; then | |
18585 | # Depending upon the size, compute the lo and hi bounds. | |
18586 | cat >conftest.$ac_ext <<_ACEOF | |
18587 | /* confdefs.h. */ | |
18588 | _ACEOF | |
18589 | cat confdefs.h >>conftest.$ac_ext | |
18590 | cat >>conftest.$ac_ext <<_ACEOF | |
18591 | /* end confdefs.h. */ | |
18592 | $ac_includes_default | |
18593 | int | |
18594 | main () | |
18595 | { | |
18596 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18597 | test_array [0] = 0 | |
18598 | ||
18599 | ; | |
18600 | return 0; | |
18601 | } | |
18602 | _ACEOF | |
18603 | rm -f conftest.$ac_objext | |
18604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18606 | ac_status=$? |
ac1cb8d3 VS |
18607 | grep -v '^ *+' conftest.er1 >conftest.err |
18608 | rm -f conftest.er1 | |
18609 | cat conftest.err >&5 | |
a848cd7e SC |
18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18611 | (exit $ac_status); } && | |
dee1a63f MB |
18612 | { ac_try='test -z "$ac_c_werror_flag" |
18613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18615 | (eval $ac_try) 2>&5 | |
18616 | ac_status=$? | |
18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18618 | (exit $ac_status); }; } && | |
18619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18621 | (eval $ac_try) 2>&5 | |
18622 | ac_status=$? | |
18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18624 | (exit $ac_status); }; }; then | |
18625 | ac_lo=0 ac_mid=0 | |
18626 | while :; do | |
18627 | cat >conftest.$ac_ext <<_ACEOF | |
18628 | /* confdefs.h. */ | |
18629 | _ACEOF | |
18630 | cat confdefs.h >>conftest.$ac_ext | |
18631 | cat >>conftest.$ac_ext <<_ACEOF | |
18632 | /* end confdefs.h. */ | |
18633 | $ac_includes_default | |
18634 | int | |
18635 | main () | |
18636 | { | |
18637 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18638 | test_array [0] = 0 | |
18639 | ||
18640 | ; | |
18641 | return 0; | |
18642 | } | |
18643 | _ACEOF | |
18644 | rm -f conftest.$ac_objext | |
18645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18646 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18647 | ac_status=$? |
ac1cb8d3 VS |
18648 | grep -v '^ *+' conftest.er1 >conftest.err |
18649 | rm -f conftest.er1 | |
18650 | cat conftest.err >&5 | |
a848cd7e SC |
18651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18652 | (exit $ac_status); } && | |
dee1a63f MB |
18653 | { ac_try='test -z "$ac_c_werror_flag" |
18654 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18656 | (eval $ac_try) 2>&5 | |
18657 | ac_status=$? | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); }; } && | |
18660 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18662 | (eval $ac_try) 2>&5 | |
18663 | ac_status=$? | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); }; }; then | |
18666 | ac_hi=$ac_mid; break | |
18667 | else | |
18668 | echo "$as_me: failed program was:" >&5 | |
18669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18670 | ||
18671 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18672 | if test $ac_lo -le $ac_mid; then |
18673 | ac_lo= ac_hi= | |
18674 | break | |
18675 | fi | |
18676 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18677 | fi |
ac1cb8d3 | 18678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18679 | done |
18680 | else | |
18681 | echo "$as_me: failed program was:" >&5 | |
18682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18683 | ||
18684 | cat >conftest.$ac_ext <<_ACEOF | |
18685 | /* confdefs.h. */ | |
18686 | _ACEOF | |
18687 | cat confdefs.h >>conftest.$ac_ext | |
18688 | cat >>conftest.$ac_ext <<_ACEOF | |
18689 | /* end confdefs.h. */ | |
18690 | $ac_includes_default | |
18691 | int | |
18692 | main () | |
18693 | { | |
18694 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
18695 | test_array [0] = 0 | |
18696 | ||
18697 | ; | |
18698 | return 0; | |
18699 | } | |
18700 | _ACEOF | |
18701 | rm -f conftest.$ac_objext | |
18702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18704 | ac_status=$? |
ac1cb8d3 VS |
18705 | grep -v '^ *+' conftest.er1 >conftest.err |
18706 | rm -f conftest.er1 | |
18707 | cat conftest.err >&5 | |
a848cd7e SC |
18708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18709 | (exit $ac_status); } && | |
dee1a63f MB |
18710 | { ac_try='test -z "$ac_c_werror_flag" |
18711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18713 | (eval $ac_try) 2>&5 | |
18714 | ac_status=$? | |
18715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18716 | (exit $ac_status); }; } && | |
18717 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18719 | (eval $ac_try) 2>&5 | |
18720 | ac_status=$? | |
18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18722 | (exit $ac_status); }; }; then | |
18723 | ac_hi=-1 ac_mid=-1 | |
18724 | while :; do | |
18725 | cat >conftest.$ac_ext <<_ACEOF | |
18726 | /* confdefs.h. */ | |
18727 | _ACEOF | |
18728 | cat confdefs.h >>conftest.$ac_ext | |
18729 | cat >>conftest.$ac_ext <<_ACEOF | |
18730 | /* end confdefs.h. */ | |
18731 | $ac_includes_default | |
18732 | int | |
18733 | main () | |
18734 | { | |
18735 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
18736 | test_array [0] = 0 | |
18737 | ||
18738 | ; | |
18739 | return 0; | |
18740 | } | |
18741 | _ACEOF | |
18742 | rm -f conftest.$ac_objext | |
18743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18745 | ac_status=$? |
ac1cb8d3 VS |
18746 | grep -v '^ *+' conftest.er1 >conftest.err |
18747 | rm -f conftest.er1 | |
18748 | cat conftest.err >&5 | |
a848cd7e SC |
18749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18750 | (exit $ac_status); } && | |
dee1a63f MB |
18751 | { ac_try='test -z "$ac_c_werror_flag" |
18752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18754 | (eval $ac_try) 2>&5 | |
18755 | ac_status=$? | |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18757 | (exit $ac_status); }; } && | |
18758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18760 | (eval $ac_try) 2>&5 | |
18761 | ac_status=$? | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); }; }; then | |
18764 | ac_lo=$ac_mid; break | |
18765 | else | |
18766 | echo "$as_me: failed program was:" >&5 | |
18767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18768 | ||
18769 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18770 | if test $ac_mid -le $ac_hi; then |
18771 | ac_lo= ac_hi= | |
18772 | break | |
18773 | fi | |
18774 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18775 | fi |
ac1cb8d3 | 18776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18777 | done |
18778 | else | |
18779 | echo "$as_me: failed program was:" >&5 | |
18780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18781 | ||
18782 | ac_lo= ac_hi= | |
18783 | fi | |
ac1cb8d3 | 18784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18785 | fi |
ac1cb8d3 | 18786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18787 | # Binary search between lo and hi bounds. |
18788 | while test "x$ac_lo" != "x$ac_hi"; do | |
18789 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18790 | cat >conftest.$ac_ext <<_ACEOF | |
18791 | /* confdefs.h. */ | |
18792 | _ACEOF | |
18793 | cat confdefs.h >>conftest.$ac_ext | |
18794 | cat >>conftest.$ac_ext <<_ACEOF | |
18795 | /* end confdefs.h. */ | |
18796 | $ac_includes_default | |
18797 | int | |
18798 | main () | |
18799 | { | |
18800 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18801 | test_array [0] = 0 | |
18802 | ||
18803 | ; | |
18804 | return 0; | |
18805 | } | |
18806 | _ACEOF | |
18807 | rm -f conftest.$ac_objext | |
18808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18809 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18810 | ac_status=$? |
ac1cb8d3 VS |
18811 | grep -v '^ *+' conftest.er1 >conftest.err |
18812 | rm -f conftest.er1 | |
18813 | cat conftest.err >&5 | |
a848cd7e SC |
18814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18815 | (exit $ac_status); } && | |
dee1a63f MB |
18816 | { ac_try='test -z "$ac_c_werror_flag" |
18817 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18819 | (eval $ac_try) 2>&5 | |
18820 | ac_status=$? | |
18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18822 | (exit $ac_status); }; } && | |
18823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18825 | (eval $ac_try) 2>&5 | |
18826 | ac_status=$? | |
18827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18828 | (exit $ac_status); }; }; then | |
18829 | ac_hi=$ac_mid | |
18830 | else | |
18831 | echo "$as_me: failed program was:" >&5 | |
18832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18833 | ||
18834 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18835 | fi | |
ac1cb8d3 | 18836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18837 | done |
18838 | case $ac_lo in | |
18839 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
18840 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18841 | See \`config.log' for more details." >&5 | |
18842 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18843 | See \`config.log' for more details." >&2;} | |
18844 | { (exit 1); exit 1; }; } ;; | |
18845 | esac | |
18846 | else | |
18847 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
18848 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18849 | See \`config.log' for more details." >&5 | |
18850 | echo "$as_me: error: cannot run test program while cross compiling | |
18851 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18852 | { (exit 1); exit 1; }; } |
18853 | else | |
18854 | cat >conftest.$ac_ext <<_ACEOF | |
18855 | /* confdefs.h. */ | |
18856 | _ACEOF | |
18857 | cat confdefs.h >>conftest.$ac_ext | |
18858 | cat >>conftest.$ac_ext <<_ACEOF | |
18859 | /* end confdefs.h. */ | |
18860 | $ac_includes_default | |
18861 | long longval () { return (long) (sizeof (size_t)); } | |
18862 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
18863 | #include <stdio.h> | |
18864 | #include <stdlib.h> | |
18865 | int | |
18866 | main () | |
18867 | { | |
18868 | ||
18869 | FILE *f = fopen ("conftest.val", "w"); | |
18870 | if (! f) | |
18871 | exit (1); | |
18872 | if (((long) (sizeof (size_t))) < 0) | |
18873 | { | |
18874 | long i = longval (); | |
18875 | if (i != ((long) (sizeof (size_t)))) | |
18876 | exit (1); | |
18877 | fprintf (f, "%ld\n", i); | |
18878 | } | |
18879 | else | |
18880 | { | |
18881 | unsigned long i = ulongval (); | |
18882 | if (i != ((long) (sizeof (size_t)))) | |
18883 | exit (1); | |
18884 | fprintf (f, "%lu\n", i); | |
18885 | } | |
18886 | exit (ferror (f) || fclose (f) != 0); | |
18887 | ||
18888 | ; | |
18889 | return 0; | |
18890 | } | |
18891 | _ACEOF | |
18892 | rm -f conftest$ac_exeext | |
18893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18894 | (eval $ac_link) 2>&5 | |
18895 | ac_status=$? | |
18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18899 | (eval $ac_try) 2>&5 | |
18900 | ac_status=$? | |
18901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18902 | (exit $ac_status); }; }; then | |
18903 | ac_cv_sizeof_size_t=`cat conftest.val` | |
18904 | else | |
18905 | echo "$as_me: program exited with status $ac_status" >&5 | |
18906 | echo "$as_me: failed program was:" >&5 | |
18907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18908 | ||
18909 | ( exit $ac_status ) | |
18910 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
18911 | See \`config.log' for more details." >&5 | |
18912 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
18913 | See \`config.log' for more details." >&2;} | |
18914 | { (exit 1); exit 1; }; } | |
18915 | fi | |
ac1cb8d3 | 18916 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18917 | fi |
18918 | fi | |
18919 | rm -f conftest.val | |
18920 | else | |
18921 | ac_cv_sizeof_size_t=0 | |
18922 | fi | |
18923 | fi | |
18924 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
18925 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
18926 | cat >>confdefs.h <<_ACEOF | |
18927 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
18928 | _ACEOF | |
18929 | ||
18930 | ||
18931 | ||
18932 | case "${host}" in | |
18933 | arm-*-linux* ) | |
18934 | echo "$as_me:$LINENO: checking for long long" >&5 | |
18935 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
18936 | if test "${ac_cv_type_long_long+set}" = set; then | |
18937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18938 | else | |
18939 | cat >conftest.$ac_ext <<_ACEOF | |
18940 | /* confdefs.h. */ | |
18941 | _ACEOF | |
18942 | cat confdefs.h >>conftest.$ac_ext | |
18943 | cat >>conftest.$ac_ext <<_ACEOF | |
18944 | /* end confdefs.h. */ | |
18945 | $ac_includes_default | |
18946 | int | |
18947 | main () | |
18948 | { | |
18949 | if ((long long *) 0) | |
18950 | return 0; | |
18951 | if (sizeof (long long)) | |
18952 | return 0; | |
18953 | ; | |
18954 | return 0; | |
18955 | } | |
18956 | _ACEOF | |
18957 | rm -f conftest.$ac_objext | |
18958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18959 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18960 | ac_status=$? |
ac1cb8d3 VS |
18961 | grep -v '^ *+' conftest.er1 >conftest.err |
18962 | rm -f conftest.er1 | |
18963 | cat conftest.err >&5 | |
a848cd7e SC |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18965 | (exit $ac_status); } && | |
dee1a63f MB |
18966 | { ac_try='test -z "$ac_c_werror_flag" |
18967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18969 | (eval $ac_try) 2>&5 | |
18970 | ac_status=$? | |
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18972 | (exit $ac_status); }; } && | |
18973 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18975 | (eval $ac_try) 2>&5 | |
18976 | ac_status=$? | |
18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18978 | (exit $ac_status); }; }; then | |
18979 | ac_cv_type_long_long=yes | |
18980 | else | |
18981 | echo "$as_me: failed program was:" >&5 | |
18982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18983 | ||
18984 | ac_cv_type_long_long=no | |
18985 | fi | |
ac1cb8d3 | 18986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18987 | fi |
18988 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
18989 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
18990 | ||
18991 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
18992 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
18993 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
18994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18995 | else | |
18996 | if test "$ac_cv_type_long_long" = yes; then | |
18997 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18998 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18999 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19000 | # This bug is HP SR number 8606223364. | |
19001 | if test "$cross_compiling" = yes; then | |
19002 | # Depending upon the size, compute the lo and hi bounds. | |
19003 | cat >conftest.$ac_ext <<_ACEOF | |
19004 | /* confdefs.h. */ | |
19005 | _ACEOF | |
19006 | cat confdefs.h >>conftest.$ac_ext | |
19007 | cat >>conftest.$ac_ext <<_ACEOF | |
19008 | /* end confdefs.h. */ | |
19009 | $ac_includes_default | |
19010 | int | |
19011 | main () | |
19012 | { | |
19013 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19014 | test_array [0] = 0 | |
19015 | ||
19016 | ; | |
19017 | return 0; | |
19018 | } | |
19019 | _ACEOF | |
19020 | rm -f conftest.$ac_objext | |
19021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19022 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19023 | ac_status=$? |
ac1cb8d3 VS |
19024 | grep -v '^ *+' conftest.er1 >conftest.err |
19025 | rm -f conftest.er1 | |
19026 | cat conftest.err >&5 | |
a848cd7e SC |
19027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19028 | (exit $ac_status); } && | |
dee1a63f MB |
19029 | { ac_try='test -z "$ac_c_werror_flag" |
19030 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19032 | (eval $ac_try) 2>&5 | |
19033 | ac_status=$? | |
19034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19035 | (exit $ac_status); }; } && | |
19036 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19038 | (eval $ac_try) 2>&5 | |
19039 | ac_status=$? | |
19040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19041 | (exit $ac_status); }; }; then | |
19042 | ac_lo=0 ac_mid=0 | |
19043 | while :; do | |
19044 | cat >conftest.$ac_ext <<_ACEOF | |
19045 | /* confdefs.h. */ | |
19046 | _ACEOF | |
19047 | cat confdefs.h >>conftest.$ac_ext | |
19048 | cat >>conftest.$ac_ext <<_ACEOF | |
19049 | /* end confdefs.h. */ | |
19050 | $ac_includes_default | |
19051 | int | |
19052 | main () | |
19053 | { | |
19054 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19055 | test_array [0] = 0 | |
19056 | ||
19057 | ; | |
19058 | return 0; | |
19059 | } | |
19060 | _ACEOF | |
19061 | rm -f conftest.$ac_objext | |
19062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19063 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19064 | ac_status=$? |
ac1cb8d3 VS |
19065 | grep -v '^ *+' conftest.er1 >conftest.err |
19066 | rm -f conftest.er1 | |
19067 | cat conftest.err >&5 | |
a848cd7e SC |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19069 | (exit $ac_status); } && | |
dee1a63f MB |
19070 | { ac_try='test -z "$ac_c_werror_flag" |
19071 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19073 | (eval $ac_try) 2>&5 | |
19074 | ac_status=$? | |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19076 | (exit $ac_status); }; } && | |
19077 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19079 | (eval $ac_try) 2>&5 | |
19080 | ac_status=$? | |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19082 | (exit $ac_status); }; }; then | |
19083 | ac_hi=$ac_mid; break | |
19084 | else | |
19085 | echo "$as_me: failed program was:" >&5 | |
19086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19087 | ||
19088 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19089 | if test $ac_lo -le $ac_mid; then |
19090 | ac_lo= ac_hi= | |
19091 | break | |
19092 | fi | |
19093 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19094 | fi |
ac1cb8d3 | 19095 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19096 | done |
19097 | else | |
19098 | echo "$as_me: failed program was:" >&5 | |
19099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19100 | ||
19101 | cat >conftest.$ac_ext <<_ACEOF | |
19102 | /* confdefs.h. */ | |
19103 | _ACEOF | |
19104 | cat confdefs.h >>conftest.$ac_ext | |
19105 | cat >>conftest.$ac_ext <<_ACEOF | |
19106 | /* end confdefs.h. */ | |
19107 | $ac_includes_default | |
19108 | int | |
19109 | main () | |
19110 | { | |
19111 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19112 | test_array [0] = 0 | |
19113 | ||
19114 | ; | |
19115 | return 0; | |
19116 | } | |
19117 | _ACEOF | |
19118 | rm -f conftest.$ac_objext | |
19119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19120 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19121 | ac_status=$? |
ac1cb8d3 VS |
19122 | grep -v '^ *+' conftest.er1 >conftest.err |
19123 | rm -f conftest.er1 | |
19124 | cat conftest.err >&5 | |
a848cd7e SC |
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19126 | (exit $ac_status); } && | |
dee1a63f MB |
19127 | { ac_try='test -z "$ac_c_werror_flag" |
19128 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19130 | (eval $ac_try) 2>&5 | |
19131 | ac_status=$? | |
19132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19133 | (exit $ac_status); }; } && | |
19134 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19136 | (eval $ac_try) 2>&5 | |
19137 | ac_status=$? | |
19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19139 | (exit $ac_status); }; }; then | |
19140 | ac_hi=-1 ac_mid=-1 | |
19141 | while :; do | |
19142 | cat >conftest.$ac_ext <<_ACEOF | |
19143 | /* confdefs.h. */ | |
19144 | _ACEOF | |
19145 | cat confdefs.h >>conftest.$ac_ext | |
19146 | cat >>conftest.$ac_ext <<_ACEOF | |
19147 | /* end confdefs.h. */ | |
19148 | $ac_includes_default | |
19149 | int | |
19150 | main () | |
19151 | { | |
19152 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19153 | test_array [0] = 0 | |
19154 | ||
19155 | ; | |
19156 | return 0; | |
19157 | } | |
19158 | _ACEOF | |
19159 | rm -f conftest.$ac_objext | |
19160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19161 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19162 | ac_status=$? |
ac1cb8d3 VS |
19163 | grep -v '^ *+' conftest.er1 >conftest.err |
19164 | rm -f conftest.er1 | |
19165 | cat conftest.err >&5 | |
a848cd7e SC |
19166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19167 | (exit $ac_status); } && | |
dee1a63f MB |
19168 | { ac_try='test -z "$ac_c_werror_flag" |
19169 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19171 | (eval $ac_try) 2>&5 | |
19172 | ac_status=$? | |
19173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19174 | (exit $ac_status); }; } && | |
19175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19177 | (eval $ac_try) 2>&5 | |
19178 | ac_status=$? | |
19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19180 | (exit $ac_status); }; }; then | |
19181 | ac_lo=$ac_mid; break | |
19182 | else | |
19183 | echo "$as_me: failed program was:" >&5 | |
19184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19185 | ||
19186 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19187 | if test $ac_mid -le $ac_hi; then |
19188 | ac_lo= ac_hi= | |
19189 | break | |
19190 | fi | |
19191 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19192 | fi |
ac1cb8d3 | 19193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19194 | done |
19195 | else | |
19196 | echo "$as_me: failed program was:" >&5 | |
19197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19198 | ||
19199 | ac_lo= ac_hi= | |
19200 | fi | |
ac1cb8d3 | 19201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19202 | fi |
ac1cb8d3 | 19203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19204 | # Binary search between lo and hi bounds. |
19205 | while test "x$ac_lo" != "x$ac_hi"; do | |
19206 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19207 | cat >conftest.$ac_ext <<_ACEOF | |
19208 | /* confdefs.h. */ | |
19209 | _ACEOF | |
19210 | cat confdefs.h >>conftest.$ac_ext | |
19211 | cat >>conftest.$ac_ext <<_ACEOF | |
19212 | /* end confdefs.h. */ | |
19213 | $ac_includes_default | |
19214 | int | |
19215 | main () | |
19216 | { | |
19217 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19218 | test_array [0] = 0 | |
19219 | ||
19220 | ; | |
19221 | return 0; | |
19222 | } | |
19223 | _ACEOF | |
19224 | rm -f conftest.$ac_objext | |
19225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19227 | ac_status=$? |
ac1cb8d3 VS |
19228 | grep -v '^ *+' conftest.er1 >conftest.err |
19229 | rm -f conftest.er1 | |
19230 | cat conftest.err >&5 | |
a848cd7e SC |
19231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19232 | (exit $ac_status); } && | |
dee1a63f MB |
19233 | { ac_try='test -z "$ac_c_werror_flag" |
19234 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19236 | (eval $ac_try) 2>&5 | |
19237 | ac_status=$? | |
19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19239 | (exit $ac_status); }; } && | |
19240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19242 | (eval $ac_try) 2>&5 | |
19243 | ac_status=$? | |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19245 | (exit $ac_status); }; }; then | |
19246 | ac_hi=$ac_mid | |
19247 | else | |
19248 | echo "$as_me: failed program was:" >&5 | |
19249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19250 | ||
19251 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19252 | fi | |
ac1cb8d3 | 19253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19254 | done |
19255 | case $ac_lo in | |
19256 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19257 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19258 | See \`config.log' for more details." >&5 | |
19259 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19260 | See \`config.log' for more details." >&2;} | |
19261 | { (exit 1); exit 1; }; } ;; | |
19262 | esac | |
19263 | else | |
19264 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
19265 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19266 | See \`config.log' for more details." >&5 | |
19267 | echo "$as_me: error: cannot run test program while cross compiling | |
19268 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19269 | { (exit 1); exit 1; }; } |
19270 | else | |
19271 | cat >conftest.$ac_ext <<_ACEOF | |
19272 | /* confdefs.h. */ | |
19273 | _ACEOF | |
19274 | cat confdefs.h >>conftest.$ac_ext | |
19275 | cat >>conftest.$ac_ext <<_ACEOF | |
19276 | /* end confdefs.h. */ | |
19277 | $ac_includes_default | |
19278 | long longval () { return (long) (sizeof (long long)); } | |
19279 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19280 | #include <stdio.h> | |
19281 | #include <stdlib.h> | |
19282 | int | |
19283 | main () | |
19284 | { | |
19285 | ||
19286 | FILE *f = fopen ("conftest.val", "w"); | |
19287 | if (! f) | |
19288 | exit (1); | |
19289 | if (((long) (sizeof (long long))) < 0) | |
19290 | { | |
19291 | long i = longval (); | |
19292 | if (i != ((long) (sizeof (long long)))) | |
19293 | exit (1); | |
19294 | fprintf (f, "%ld\n", i); | |
19295 | } | |
19296 | else | |
19297 | { | |
19298 | unsigned long i = ulongval (); | |
19299 | if (i != ((long) (sizeof (long long)))) | |
19300 | exit (1); | |
19301 | fprintf (f, "%lu\n", i); | |
19302 | } | |
19303 | exit (ferror (f) || fclose (f) != 0); | |
19304 | ||
19305 | ; | |
19306 | return 0; | |
19307 | } | |
19308 | _ACEOF | |
19309 | rm -f conftest$ac_exeext | |
19310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19311 | (eval $ac_link) 2>&5 | |
19312 | ac_status=$? | |
19313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19314 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19316 | (eval $ac_try) 2>&5 | |
19317 | ac_status=$? | |
19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19319 | (exit $ac_status); }; }; then | |
19320 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19321 | else | |
19322 | echo "$as_me: program exited with status $ac_status" >&5 | |
19323 | echo "$as_me: failed program was:" >&5 | |
19324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19325 | ||
19326 | ( exit $ac_status ) | |
19327 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19328 | See \`config.log' for more details." >&5 | |
19329 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19330 | See \`config.log' for more details." >&2;} | |
19331 | { (exit 1); exit 1; }; } | |
19332 | fi | |
ac1cb8d3 | 19333 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19334 | fi |
19335 | fi | |
19336 | rm -f conftest.val | |
19337 | else | |
19338 | ac_cv_sizeof_long_long=0 | |
19339 | fi | |
19340 | fi | |
19341 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19342 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19343 | cat >>confdefs.h <<_ACEOF | |
19344 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19345 | _ACEOF | |
19346 | ||
19347 | ||
19348 | ;; | |
19349 | *-hp-hpux* ) | |
19350 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19351 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19352 | if test "${ac_cv_type_long_long+set}" = set; then | |
19353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19354 | else | |
19355 | cat >conftest.$ac_ext <<_ACEOF | |
19356 | /* confdefs.h. */ | |
19357 | _ACEOF | |
19358 | cat confdefs.h >>conftest.$ac_ext | |
19359 | cat >>conftest.$ac_ext <<_ACEOF | |
19360 | /* end confdefs.h. */ | |
19361 | $ac_includes_default | |
19362 | int | |
19363 | main () | |
19364 | { | |
19365 | if ((long long *) 0) | |
19366 | return 0; | |
19367 | if (sizeof (long long)) | |
19368 | return 0; | |
19369 | ; | |
19370 | return 0; | |
19371 | } | |
19372 | _ACEOF | |
19373 | rm -f conftest.$ac_objext | |
19374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19375 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19376 | ac_status=$? |
ac1cb8d3 VS |
19377 | grep -v '^ *+' conftest.er1 >conftest.err |
19378 | rm -f conftest.er1 | |
19379 | cat conftest.err >&5 | |
a848cd7e SC |
19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19381 | (exit $ac_status); } && | |
dee1a63f MB |
19382 | { ac_try='test -z "$ac_c_werror_flag" |
19383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19385 | (eval $ac_try) 2>&5 | |
19386 | ac_status=$? | |
19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19388 | (exit $ac_status); }; } && | |
19389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19391 | (eval $ac_try) 2>&5 | |
19392 | ac_status=$? | |
19393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19394 | (exit $ac_status); }; }; then | |
19395 | ac_cv_type_long_long=yes | |
19396 | else | |
19397 | echo "$as_me: failed program was:" >&5 | |
19398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19399 | ||
19400 | ac_cv_type_long_long=no | |
19401 | fi | |
ac1cb8d3 | 19402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19403 | fi |
19404 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19405 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19406 | ||
19407 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19408 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19409 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19411 | else | |
19412 | if test "$ac_cv_type_long_long" = yes; then | |
19413 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19414 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19415 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19416 | # This bug is HP SR number 8606223364. | |
19417 | if test "$cross_compiling" = yes; then | |
19418 | # Depending upon the size, compute the lo and hi bounds. | |
19419 | cat >conftest.$ac_ext <<_ACEOF | |
19420 | /* confdefs.h. */ | |
19421 | _ACEOF | |
19422 | cat confdefs.h >>conftest.$ac_ext | |
19423 | cat >>conftest.$ac_ext <<_ACEOF | |
19424 | /* end confdefs.h. */ | |
19425 | $ac_includes_default | |
19426 | int | |
19427 | main () | |
19428 | { | |
19429 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19430 | test_array [0] = 0 | |
19431 | ||
19432 | ; | |
19433 | return 0; | |
19434 | } | |
19435 | _ACEOF | |
19436 | rm -f conftest.$ac_objext | |
19437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19438 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19439 | ac_status=$? |
ac1cb8d3 VS |
19440 | grep -v '^ *+' conftest.er1 >conftest.err |
19441 | rm -f conftest.er1 | |
19442 | cat conftest.err >&5 | |
a848cd7e SC |
19443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19444 | (exit $ac_status); } && | |
dee1a63f MB |
19445 | { ac_try='test -z "$ac_c_werror_flag" |
19446 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19448 | (eval $ac_try) 2>&5 | |
19449 | ac_status=$? | |
19450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19451 | (exit $ac_status); }; } && | |
19452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19454 | (eval $ac_try) 2>&5 | |
19455 | ac_status=$? | |
19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19457 | (exit $ac_status); }; }; then | |
19458 | ac_lo=0 ac_mid=0 | |
19459 | while :; do | |
19460 | cat >conftest.$ac_ext <<_ACEOF | |
19461 | /* confdefs.h. */ | |
19462 | _ACEOF | |
19463 | cat confdefs.h >>conftest.$ac_ext | |
19464 | cat >>conftest.$ac_ext <<_ACEOF | |
19465 | /* end confdefs.h. */ | |
19466 | $ac_includes_default | |
19467 | int | |
19468 | main () | |
19469 | { | |
19470 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19471 | test_array [0] = 0 | |
19472 | ||
19473 | ; | |
19474 | return 0; | |
19475 | } | |
19476 | _ACEOF | |
19477 | rm -f conftest.$ac_objext | |
19478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19479 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19480 | ac_status=$? |
ac1cb8d3 VS |
19481 | grep -v '^ *+' conftest.er1 >conftest.err |
19482 | rm -f conftest.er1 | |
19483 | cat conftest.err >&5 | |
a848cd7e SC |
19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19485 | (exit $ac_status); } && | |
dee1a63f MB |
19486 | { ac_try='test -z "$ac_c_werror_flag" |
19487 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
19493 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19495 | (eval $ac_try) 2>&5 | |
19496 | ac_status=$? | |
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19498 | (exit $ac_status); }; }; then | |
19499 | ac_hi=$ac_mid; break | |
19500 | else | |
19501 | echo "$as_me: failed program was:" >&5 | |
19502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19503 | ||
19504 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19505 | if test $ac_lo -le $ac_mid; then |
19506 | ac_lo= ac_hi= | |
19507 | break | |
19508 | fi | |
19509 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19510 | fi |
ac1cb8d3 | 19511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19512 | done |
19513 | else | |
19514 | echo "$as_me: failed program was:" >&5 | |
19515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19516 | ||
19517 | cat >conftest.$ac_ext <<_ACEOF | |
19518 | /* confdefs.h. */ | |
19519 | _ACEOF | |
19520 | cat confdefs.h >>conftest.$ac_ext | |
19521 | cat >>conftest.$ac_ext <<_ACEOF | |
19522 | /* end confdefs.h. */ | |
19523 | $ac_includes_default | |
19524 | int | |
19525 | main () | |
19526 | { | |
19527 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19528 | test_array [0] = 0 | |
19529 | ||
19530 | ; | |
19531 | return 0; | |
19532 | } | |
19533 | _ACEOF | |
19534 | rm -f conftest.$ac_objext | |
19535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19536 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19537 | ac_status=$? |
ac1cb8d3 VS |
19538 | grep -v '^ *+' conftest.er1 >conftest.err |
19539 | rm -f conftest.er1 | |
19540 | cat conftest.err >&5 | |
a848cd7e SC |
19541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19542 | (exit $ac_status); } && | |
dee1a63f MB |
19543 | { ac_try='test -z "$ac_c_werror_flag" |
19544 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19546 | (eval $ac_try) 2>&5 | |
19547 | ac_status=$? | |
19548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19549 | (exit $ac_status); }; } && | |
19550 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19552 | (eval $ac_try) 2>&5 | |
19553 | ac_status=$? | |
19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19555 | (exit $ac_status); }; }; then | |
19556 | ac_hi=-1 ac_mid=-1 | |
19557 | while :; do | |
19558 | cat >conftest.$ac_ext <<_ACEOF | |
19559 | /* confdefs.h. */ | |
19560 | _ACEOF | |
19561 | cat confdefs.h >>conftest.$ac_ext | |
19562 | cat >>conftest.$ac_ext <<_ACEOF | |
19563 | /* end confdefs.h. */ | |
19564 | $ac_includes_default | |
19565 | int | |
19566 | main () | |
19567 | { | |
19568 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19569 | test_array [0] = 0 | |
19570 | ||
19571 | ; | |
19572 | return 0; | |
19573 | } | |
19574 | _ACEOF | |
19575 | rm -f conftest.$ac_objext | |
19576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19577 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19578 | ac_status=$? |
ac1cb8d3 VS |
19579 | grep -v '^ *+' conftest.er1 >conftest.err |
19580 | rm -f conftest.er1 | |
19581 | cat conftest.err >&5 | |
a848cd7e SC |
19582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19583 | (exit $ac_status); } && | |
dee1a63f MB |
19584 | { ac_try='test -z "$ac_c_werror_flag" |
19585 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19587 | (eval $ac_try) 2>&5 | |
19588 | ac_status=$? | |
19589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19590 | (exit $ac_status); }; } && | |
19591 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19593 | (eval $ac_try) 2>&5 | |
19594 | ac_status=$? | |
19595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19596 | (exit $ac_status); }; }; then | |
19597 | ac_lo=$ac_mid; break | |
19598 | else | |
19599 | echo "$as_me: failed program was:" >&5 | |
19600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19601 | ||
19602 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19603 | if test $ac_mid -le $ac_hi; then |
19604 | ac_lo= ac_hi= | |
19605 | break | |
19606 | fi | |
19607 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19608 | fi |
ac1cb8d3 | 19609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19610 | done |
19611 | else | |
19612 | echo "$as_me: failed program was:" >&5 | |
19613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19614 | ||
19615 | ac_lo= ac_hi= | |
19616 | fi | |
ac1cb8d3 | 19617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19618 | fi |
ac1cb8d3 | 19619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19620 | # Binary search between lo and hi bounds. |
19621 | while test "x$ac_lo" != "x$ac_hi"; do | |
19622 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19623 | cat >conftest.$ac_ext <<_ACEOF | |
19624 | /* confdefs.h. */ | |
19625 | _ACEOF | |
19626 | cat confdefs.h >>conftest.$ac_ext | |
19627 | cat >>conftest.$ac_ext <<_ACEOF | |
19628 | /* end confdefs.h. */ | |
19629 | $ac_includes_default | |
19630 | int | |
19631 | main () | |
19632 | { | |
19633 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19634 | test_array [0] = 0 | |
19635 | ||
19636 | ; | |
19637 | return 0; | |
19638 | } | |
19639 | _ACEOF | |
19640 | rm -f conftest.$ac_objext | |
19641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19643 | ac_status=$? |
ac1cb8d3 VS |
19644 | grep -v '^ *+' conftest.er1 >conftest.err |
19645 | rm -f conftest.er1 | |
19646 | cat conftest.err >&5 | |
a848cd7e SC |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19648 | (exit $ac_status); } && | |
dee1a63f MB |
19649 | { ac_try='test -z "$ac_c_werror_flag" |
19650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19652 | (eval $ac_try) 2>&5 | |
19653 | ac_status=$? | |
19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19655 | (exit $ac_status); }; } && | |
19656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19658 | (eval $ac_try) 2>&5 | |
19659 | ac_status=$? | |
19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19661 | (exit $ac_status); }; }; then | |
19662 | ac_hi=$ac_mid | |
19663 | else | |
19664 | echo "$as_me: failed program was:" >&5 | |
19665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19666 | ||
19667 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19668 | fi | |
ac1cb8d3 | 19669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19670 | done |
19671 | case $ac_lo in | |
19672 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19673 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19674 | See \`config.log' for more details." >&5 | |
19675 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19676 | See \`config.log' for more details." >&2;} | |
19677 | { (exit 1); exit 1; }; } ;; | |
19678 | esac | |
19679 | else | |
19680 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
19681 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19682 | See \`config.log' for more details." >&5 | |
19683 | echo "$as_me: error: cannot run test program while cross compiling | |
19684 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19685 | { (exit 1); exit 1; }; } |
19686 | else | |
19687 | cat >conftest.$ac_ext <<_ACEOF | |
19688 | /* confdefs.h. */ | |
19689 | _ACEOF | |
19690 | cat confdefs.h >>conftest.$ac_ext | |
19691 | cat >>conftest.$ac_ext <<_ACEOF | |
19692 | /* end confdefs.h. */ | |
19693 | $ac_includes_default | |
19694 | long longval () { return (long) (sizeof (long long)); } | |
19695 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19696 | #include <stdio.h> | |
19697 | #include <stdlib.h> | |
19698 | int | |
19699 | main () | |
19700 | { | |
19701 | ||
19702 | FILE *f = fopen ("conftest.val", "w"); | |
19703 | if (! f) | |
19704 | exit (1); | |
19705 | if (((long) (sizeof (long long))) < 0) | |
19706 | { | |
19707 | long i = longval (); | |
19708 | if (i != ((long) (sizeof (long long)))) | |
19709 | exit (1); | |
19710 | fprintf (f, "%ld\n", i); | |
19711 | } | |
19712 | else | |
19713 | { | |
19714 | unsigned long i = ulongval (); | |
19715 | if (i != ((long) (sizeof (long long)))) | |
19716 | exit (1); | |
19717 | fprintf (f, "%lu\n", i); | |
19718 | } | |
19719 | exit (ferror (f) || fclose (f) != 0); | |
19720 | ||
19721 | ; | |
19722 | return 0; | |
19723 | } | |
19724 | _ACEOF | |
19725 | rm -f conftest$ac_exeext | |
19726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19727 | (eval $ac_link) 2>&5 | |
19728 | ac_status=$? | |
19729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
19736 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19737 | else | |
19738 | echo "$as_me: program exited with status $ac_status" >&5 | |
19739 | echo "$as_me: failed program was:" >&5 | |
19740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19741 | ||
19742 | ( exit $ac_status ) | |
19743 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19744 | See \`config.log' for more details." >&5 | |
19745 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19746 | See \`config.log' for more details." >&2;} | |
19747 | { (exit 1); exit 1; }; } | |
19748 | fi | |
ac1cb8d3 | 19749 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19750 | fi |
19751 | fi | |
19752 | rm -f conftest.val | |
19753 | else | |
19754 | ac_cv_sizeof_long_long=0 | |
19755 | fi | |
19756 | fi | |
19757 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19758 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19759 | cat >>confdefs.h <<_ACEOF | |
19760 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19761 | _ACEOF | |
19762 | ||
19763 | ||
19764 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19765 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19766 | fi | |
19767 | ;; | |
19768 | * ) | |
19769 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19770 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19771 | if test "${ac_cv_type_long_long+set}" = set; then | |
19772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19773 | else | |
19774 | cat >conftest.$ac_ext <<_ACEOF | |
19775 | /* confdefs.h. */ | |
19776 | _ACEOF | |
19777 | cat confdefs.h >>conftest.$ac_ext | |
19778 | cat >>conftest.$ac_ext <<_ACEOF | |
19779 | /* end confdefs.h. */ | |
19780 | $ac_includes_default | |
19781 | int | |
19782 | main () | |
19783 | { | |
19784 | if ((long long *) 0) | |
19785 | return 0; | |
19786 | if (sizeof (long long)) | |
19787 | return 0; | |
19788 | ; | |
19789 | return 0; | |
19790 | } | |
19791 | _ACEOF | |
19792 | rm -f conftest.$ac_objext | |
19793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19794 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19795 | ac_status=$? |
ac1cb8d3 VS |
19796 | grep -v '^ *+' conftest.er1 >conftest.err |
19797 | rm -f conftest.er1 | |
19798 | cat conftest.err >&5 | |
a848cd7e SC |
19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19800 | (exit $ac_status); } && | |
dee1a63f MB |
19801 | { ac_try='test -z "$ac_c_werror_flag" |
19802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19804 | (eval $ac_try) 2>&5 | |
19805 | ac_status=$? | |
19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19807 | (exit $ac_status); }; } && | |
19808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19810 | (eval $ac_try) 2>&5 | |
19811 | ac_status=$? | |
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19813 | (exit $ac_status); }; }; then | |
19814 | ac_cv_type_long_long=yes | |
19815 | else | |
19816 | echo "$as_me: failed program was:" >&5 | |
19817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19818 | ||
19819 | ac_cv_type_long_long=no | |
19820 | fi | |
ac1cb8d3 | 19821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19822 | fi |
19823 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19824 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19825 | ||
19826 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19827 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19828 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19830 | else | |
19831 | if test "$ac_cv_type_long_long" = yes; then | |
19832 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19833 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19834 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19835 | # This bug is HP SR number 8606223364. | |
19836 | if test "$cross_compiling" = yes; then | |
19837 | # Depending upon the size, compute the lo and hi bounds. | |
19838 | cat >conftest.$ac_ext <<_ACEOF | |
19839 | /* confdefs.h. */ | |
19840 | _ACEOF | |
19841 | cat confdefs.h >>conftest.$ac_ext | |
19842 | cat >>conftest.$ac_ext <<_ACEOF | |
19843 | /* end confdefs.h. */ | |
19844 | $ac_includes_default | |
19845 | int | |
19846 | main () | |
19847 | { | |
19848 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19849 | test_array [0] = 0 | |
19850 | ||
19851 | ; | |
19852 | return 0; | |
19853 | } | |
19854 | _ACEOF | |
19855 | rm -f conftest.$ac_objext | |
19856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19858 | ac_status=$? |
ac1cb8d3 VS |
19859 | grep -v '^ *+' conftest.er1 >conftest.err |
19860 | rm -f conftest.er1 | |
19861 | cat conftest.err >&5 | |
a848cd7e SC |
19862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19863 | (exit $ac_status); } && | |
dee1a63f MB |
19864 | { ac_try='test -z "$ac_c_werror_flag" |
19865 | || 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' | |
a848cd7e SC |
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 | ac_lo=0 ac_mid=0 | |
19878 | while :; do | |
19879 | cat >conftest.$ac_ext <<_ACEOF | |
19880 | /* confdefs.h. */ | |
19881 | _ACEOF | |
19882 | cat confdefs.h >>conftest.$ac_ext | |
19883 | cat >>conftest.$ac_ext <<_ACEOF | |
19884 | /* end confdefs.h. */ | |
19885 | $ac_includes_default | |
19886 | int | |
19887 | main () | |
19888 | { | |
19889 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19890 | test_array [0] = 0 | |
19891 | ||
19892 | ; | |
19893 | return 0; | |
19894 | } | |
19895 | _ACEOF | |
19896 | rm -f conftest.$ac_objext | |
19897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19899 | ac_status=$? |
ac1cb8d3 VS |
19900 | grep -v '^ *+' conftest.er1 >conftest.err |
19901 | rm -f conftest.er1 | |
19902 | cat conftest.err >&5 | |
a848cd7e SC |
19903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19904 | (exit $ac_status); } && | |
dee1a63f MB |
19905 | { ac_try='test -z "$ac_c_werror_flag" |
19906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19908 | (eval $ac_try) 2>&5 | |
19909 | ac_status=$? | |
19910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19911 | (exit $ac_status); }; } && | |
19912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19914 | (eval $ac_try) 2>&5 | |
19915 | ac_status=$? | |
19916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19917 | (exit $ac_status); }; }; then | |
19918 | ac_hi=$ac_mid; break | |
19919 | else | |
19920 | echo "$as_me: failed program was:" >&5 | |
19921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19922 | ||
19923 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19924 | if test $ac_lo -le $ac_mid; then |
19925 | ac_lo= ac_hi= | |
19926 | break | |
19927 | fi | |
19928 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19929 | fi |
ac1cb8d3 | 19930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19931 | done |
19932 | else | |
19933 | echo "$as_me: failed program was:" >&5 | |
19934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19935 | ||
19936 | cat >conftest.$ac_ext <<_ACEOF | |
19937 | /* confdefs.h. */ | |
19938 | _ACEOF | |
19939 | cat confdefs.h >>conftest.$ac_ext | |
19940 | cat >>conftest.$ac_ext <<_ACEOF | |
19941 | /* end confdefs.h. */ | |
19942 | $ac_includes_default | |
19943 | int | |
19944 | main () | |
19945 | { | |
19946 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19947 | test_array [0] = 0 | |
19948 | ||
19949 | ; | |
19950 | return 0; | |
19951 | } | |
19952 | _ACEOF | |
19953 | rm -f conftest.$ac_objext | |
19954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19956 | ac_status=$? |
ac1cb8d3 VS |
19957 | grep -v '^ *+' conftest.er1 >conftest.err |
19958 | rm -f conftest.er1 | |
19959 | cat conftest.err >&5 | |
a848cd7e SC |
19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19961 | (exit $ac_status); } && | |
dee1a63f MB |
19962 | { ac_try='test -z "$ac_c_werror_flag" |
19963 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19965 | (eval $ac_try) 2>&5 | |
19966 | ac_status=$? | |
19967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19968 | (exit $ac_status); }; } && | |
19969 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19971 | (eval $ac_try) 2>&5 | |
19972 | ac_status=$? | |
19973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19974 | (exit $ac_status); }; }; then | |
19975 | ac_hi=-1 ac_mid=-1 | |
19976 | while :; do | |
19977 | cat >conftest.$ac_ext <<_ACEOF | |
19978 | /* confdefs.h. */ | |
19979 | _ACEOF | |
19980 | cat confdefs.h >>conftest.$ac_ext | |
19981 | cat >>conftest.$ac_ext <<_ACEOF | |
19982 | /* end confdefs.h. */ | |
19983 | $ac_includes_default | |
19984 | int | |
19985 | main () | |
19986 | { | |
19987 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19988 | test_array [0] = 0 | |
19989 | ||
19990 | ; | |
19991 | return 0; | |
19992 | } | |
19993 | _ACEOF | |
19994 | rm -f conftest.$ac_objext | |
19995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19996 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19997 | ac_status=$? |
ac1cb8d3 VS |
19998 | grep -v '^ *+' conftest.er1 >conftest.err |
19999 | rm -f conftest.er1 | |
20000 | cat conftest.err >&5 | |
a848cd7e SC |
20001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20002 | (exit $ac_status); } && | |
dee1a63f MB |
20003 | { ac_try='test -z "$ac_c_werror_flag" |
20004 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20006 | (eval $ac_try) 2>&5 | |
20007 | ac_status=$? | |
20008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20009 | (exit $ac_status); }; } && | |
20010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20012 | (eval $ac_try) 2>&5 | |
20013 | ac_status=$? | |
20014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20015 | (exit $ac_status); }; }; then | |
20016 | ac_lo=$ac_mid; break | |
20017 | else | |
20018 | echo "$as_me: failed program was:" >&5 | |
20019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20020 | ||
20021 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20022 | if test $ac_mid -le $ac_hi; then |
20023 | ac_lo= ac_hi= | |
20024 | break | |
20025 | fi | |
20026 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20027 | fi |
ac1cb8d3 | 20028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20029 | done |
20030 | else | |
20031 | echo "$as_me: failed program was:" >&5 | |
20032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20033 | ||
20034 | ac_lo= ac_hi= | |
20035 | fi | |
ac1cb8d3 | 20036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20037 | fi |
ac1cb8d3 | 20038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20039 | # Binary search between lo and hi bounds. |
20040 | while test "x$ac_lo" != "x$ac_hi"; do | |
20041 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20042 | cat >conftest.$ac_ext <<_ACEOF | |
20043 | /* confdefs.h. */ | |
20044 | _ACEOF | |
20045 | cat confdefs.h >>conftest.$ac_ext | |
20046 | cat >>conftest.$ac_ext <<_ACEOF | |
20047 | /* end confdefs.h. */ | |
20048 | $ac_includes_default | |
20049 | int | |
20050 | main () | |
20051 | { | |
20052 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20053 | test_array [0] = 0 | |
20054 | ||
20055 | ; | |
20056 | return 0; | |
20057 | } | |
20058 | _ACEOF | |
20059 | rm -f conftest.$ac_objext | |
20060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20062 | ac_status=$? |
ac1cb8d3 VS |
20063 | grep -v '^ *+' conftest.er1 >conftest.err |
20064 | rm -f conftest.er1 | |
20065 | cat conftest.err >&5 | |
a848cd7e SC |
20066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20067 | (exit $ac_status); } && | |
dee1a63f MB |
20068 | { ac_try='test -z "$ac_c_werror_flag" |
20069 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20071 | (eval $ac_try) 2>&5 | |
20072 | ac_status=$? | |
20073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20074 | (exit $ac_status); }; } && | |
20075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20077 | (eval $ac_try) 2>&5 | |
20078 | ac_status=$? | |
20079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20080 | (exit $ac_status); }; }; then | |
20081 | ac_hi=$ac_mid | |
20082 | else | |
20083 | echo "$as_me: failed program was:" >&5 | |
20084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20085 | ||
20086 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20087 | fi | |
ac1cb8d3 | 20088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20089 | done |
20090 | case $ac_lo in | |
20091 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20092 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20093 | See \`config.log' for more details." >&5 | |
20094 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20095 | See \`config.log' for more details." >&2;} | |
20096 | { (exit 1); exit 1; }; } ;; | |
20097 | esac | |
20098 | else | |
20099 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
20100 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20101 | See \`config.log' for more details." >&5 | |
20102 | echo "$as_me: error: cannot run test program while cross compiling | |
20103 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20104 | { (exit 1); exit 1; }; } |
20105 | else | |
20106 | cat >conftest.$ac_ext <<_ACEOF | |
20107 | /* confdefs.h. */ | |
20108 | _ACEOF | |
20109 | cat confdefs.h >>conftest.$ac_ext | |
20110 | cat >>conftest.$ac_ext <<_ACEOF | |
20111 | /* end confdefs.h. */ | |
20112 | $ac_includes_default | |
20113 | long longval () { return (long) (sizeof (long long)); } | |
20114 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20115 | #include <stdio.h> | |
20116 | #include <stdlib.h> | |
20117 | int | |
20118 | main () | |
20119 | { | |
20120 | ||
20121 | FILE *f = fopen ("conftest.val", "w"); | |
20122 | if (! f) | |
20123 | exit (1); | |
20124 | if (((long) (sizeof (long long))) < 0) | |
20125 | { | |
20126 | long i = longval (); | |
20127 | if (i != ((long) (sizeof (long long)))) | |
20128 | exit (1); | |
20129 | fprintf (f, "%ld\n", i); | |
20130 | } | |
20131 | else | |
20132 | { | |
20133 | unsigned long i = ulongval (); | |
20134 | if (i != ((long) (sizeof (long long)))) | |
20135 | exit (1); | |
20136 | fprintf (f, "%lu\n", i); | |
20137 | } | |
20138 | exit (ferror (f) || fclose (f) != 0); | |
20139 | ||
20140 | ; | |
20141 | return 0; | |
20142 | } | |
20143 | _ACEOF | |
20144 | rm -f conftest$ac_exeext | |
20145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20146 | (eval $ac_link) 2>&5 | |
20147 | ac_status=$? | |
20148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20151 | (eval $ac_try) 2>&5 | |
20152 | ac_status=$? | |
20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20154 | (exit $ac_status); }; }; then | |
20155 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20156 | else | |
20157 | echo "$as_me: program exited with status $ac_status" >&5 | |
20158 | echo "$as_me: failed program was:" >&5 | |
20159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20160 | ||
20161 | ( exit $ac_status ) | |
20162 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20163 | See \`config.log' for more details." >&5 | |
20164 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20165 | See \`config.log' for more details." >&2;} | |
20166 | { (exit 1); exit 1; }; } | |
20167 | fi | |
ac1cb8d3 | 20168 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20169 | fi |
20170 | fi | |
20171 | rm -f conftest.val | |
20172 | else | |
20173 | ac_cv_sizeof_long_long=0 | |
20174 | fi | |
20175 | fi | |
20176 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20177 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20178 | cat >>confdefs.h <<_ACEOF | |
20179 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20180 | _ACEOF | |
20181 | ||
20182 | ||
20183 | esac | |
20184 | ||
238ecede MW |
20185 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20186 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20187 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20189 | else | |
20190 | cat >conftest.$ac_ext <<_ACEOF | |
20191 | /* confdefs.h. */ | |
20192 | _ACEOF | |
20193 | cat confdefs.h >>conftest.$ac_ext | |
20194 | cat >>conftest.$ac_ext <<_ACEOF | |
20195 | /* end confdefs.h. */ | |
20196 | ||
83d8eb47 MW |
20197 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20198 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20199 | # error "fake wchar_t" |
20200 | #endif | |
20201 | #ifdef HAVE_WCHAR_H | |
20202 | # ifdef __CYGWIN__ | |
20203 | # include <stddef.h> | |
20204 | # endif | |
20205 | # include <wchar.h> | |
20206 | #endif | |
20207 | #ifdef HAVE_STDLIB_H | |
20208 | # include <stdlib.h> | |
20209 | #endif | |
20210 | #include <stdio.h> | |
20211 | ||
20212 | ||
20213 | ||
20214 | int | |
20215 | main () | |
20216 | { | |
20217 | if ((wchar_t *) 0) | |
20218 | return 0; | |
20219 | if (sizeof (wchar_t)) | |
20220 | return 0; | |
20221 | ; | |
20222 | return 0; | |
20223 | } | |
20224 | _ACEOF | |
20225 | rm -f conftest.$ac_objext | |
20226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20227 | (eval $ac_compile) 2>conftest.er1 | |
20228 | ac_status=$? | |
20229 | grep -v '^ *+' conftest.er1 >conftest.err | |
20230 | rm -f conftest.er1 | |
20231 | cat conftest.err >&5 | |
20232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20233 | (exit $ac_status); } && | |
dee1a63f MB |
20234 | { ac_try='test -z "$ac_c_werror_flag" |
20235 | || test ! -s conftest.err' | |
238ecede MW |
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20237 | (eval $ac_try) 2>&5 | |
20238 | ac_status=$? | |
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20240 | (exit $ac_status); }; } && | |
20241 | { ac_try='test -s conftest.$ac_objext' | |
20242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20243 | (eval $ac_try) 2>&5 | |
20244 | ac_status=$? | |
20245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20246 | (exit $ac_status); }; }; then | |
20247 | ac_cv_type_wchar_t=yes | |
20248 | else | |
20249 | echo "$as_me: failed program was:" >&5 | |
20250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20251 | ||
20252 | ac_cv_type_wchar_t=no | |
20253 | fi | |
20254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20255 | fi | |
20256 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20257 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20258 | ||
a848cd7e SC |
20259 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20260 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20261 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20263 | else | |
238ecede MW |
20264 | if test "$ac_cv_type_wchar_t" = yes; then |
20265 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20266 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20267 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20268 | # This bug is HP SR number 8606223364. | |
20269 | if test "$cross_compiling" = yes; then | |
20270 | # Depending upon the size, compute the lo and hi bounds. | |
20271 | cat >conftest.$ac_ext <<_ACEOF | |
20272 | /* confdefs.h. */ | |
20273 | _ACEOF | |
20274 | cat confdefs.h >>conftest.$ac_ext | |
20275 | cat >>conftest.$ac_ext <<_ACEOF | |
20276 | /* end confdefs.h. */ | |
20277 | ||
83d8eb47 MW |
20278 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20279 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20280 | # error "fake wchar_t" |
20281 | #endif | |
20282 | #ifdef HAVE_WCHAR_H | |
20283 | # ifdef __CYGWIN__ | |
20284 | # include <stddef.h> | |
20285 | # endif | |
20286 | # include <wchar.h> | |
20287 | #endif | |
20288 | #ifdef HAVE_STDLIB_H | |
20289 | # include <stdlib.h> | |
20290 | #endif | |
20291 | #include <stdio.h> | |
20292 | ||
20293 | ||
20294 | ||
20295 | int | |
20296 | main () | |
20297 | { | |
20298 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20299 | test_array [0] = 0 | |
20300 | ||
20301 | ; | |
20302 | return 0; | |
20303 | } | |
20304 | _ACEOF | |
20305 | rm -f conftest.$ac_objext | |
20306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20307 | (eval $ac_compile) 2>conftest.er1 | |
20308 | ac_status=$? | |
20309 | grep -v '^ *+' conftest.er1 >conftest.err | |
20310 | rm -f conftest.er1 | |
20311 | cat conftest.err >&5 | |
20312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20313 | (exit $ac_status); } && | |
dee1a63f MB |
20314 | { ac_try='test -z "$ac_c_werror_flag" |
20315 | || test ! -s conftest.err' | |
238ecede MW |
20316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20317 | (eval $ac_try) 2>&5 | |
20318 | ac_status=$? | |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20320 | (exit $ac_status); }; } && | |
20321 | { ac_try='test -s conftest.$ac_objext' | |
20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20323 | (eval $ac_try) 2>&5 | |
20324 | ac_status=$? | |
20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20326 | (exit $ac_status); }; }; then | |
20327 | ac_lo=0 ac_mid=0 | |
20328 | while :; do | |
20329 | cat >conftest.$ac_ext <<_ACEOF | |
20330 | /* confdefs.h. */ | |
20331 | _ACEOF | |
20332 | cat confdefs.h >>conftest.$ac_ext | |
20333 | cat >>conftest.$ac_ext <<_ACEOF | |
20334 | /* end confdefs.h. */ | |
20335 | ||
83d8eb47 MW |
20336 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20337 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20338 | # error "fake wchar_t" |
20339 | #endif | |
20340 | #ifdef HAVE_WCHAR_H | |
20341 | # ifdef __CYGWIN__ | |
20342 | # include <stddef.h> | |
20343 | # endif | |
20344 | # include <wchar.h> | |
20345 | #endif | |
20346 | #ifdef HAVE_STDLIB_H | |
20347 | # include <stdlib.h> | |
20348 | #endif | |
20349 | #include <stdio.h> | |
20350 | ||
20351 | ||
20352 | ||
20353 | int | |
20354 | main () | |
20355 | { | |
20356 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20357 | test_array [0] = 0 | |
20358 | ||
20359 | ; | |
20360 | return 0; | |
20361 | } | |
20362 | _ACEOF | |
20363 | rm -f conftest.$ac_objext | |
20364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20365 | (eval $ac_compile) 2>conftest.er1 | |
20366 | ac_status=$? | |
20367 | grep -v '^ *+' conftest.er1 >conftest.err | |
20368 | rm -f conftest.er1 | |
20369 | cat conftest.err >&5 | |
20370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20371 | (exit $ac_status); } && | |
dee1a63f MB |
20372 | { ac_try='test -z "$ac_c_werror_flag" |
20373 | || test ! -s conftest.err' | |
238ecede MW |
20374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20375 | (eval $ac_try) 2>&5 | |
20376 | ac_status=$? | |
20377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20378 | (exit $ac_status); }; } && | |
20379 | { ac_try='test -s conftest.$ac_objext' | |
20380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20381 | (eval $ac_try) 2>&5 | |
20382 | ac_status=$? | |
20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20384 | (exit $ac_status); }; }; then | |
20385 | ac_hi=$ac_mid; break | |
20386 | else | |
20387 | echo "$as_me: failed program was:" >&5 | |
20388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20389 | ||
20390 | ac_lo=`expr $ac_mid + 1` | |
20391 | if test $ac_lo -le $ac_mid; then | |
20392 | ac_lo= ac_hi= | |
20393 | break | |
20394 | fi | |
20395 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20396 | fi | |
20397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20398 | done | |
20399 | else | |
20400 | echo "$as_me: failed program was:" >&5 | |
20401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20402 | ||
20403 | cat >conftest.$ac_ext <<_ACEOF | |
20404 | /* confdefs.h. */ | |
20405 | _ACEOF | |
20406 | cat confdefs.h >>conftest.$ac_ext | |
20407 | cat >>conftest.$ac_ext <<_ACEOF | |
20408 | /* end confdefs.h. */ | |
20409 | ||
83d8eb47 MW |
20410 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20411 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20412 | # error "fake wchar_t" |
20413 | #endif | |
20414 | #ifdef HAVE_WCHAR_H | |
20415 | # ifdef __CYGWIN__ | |
20416 | # include <stddef.h> | |
20417 | # endif | |
20418 | # include <wchar.h> | |
20419 | #endif | |
20420 | #ifdef HAVE_STDLIB_H | |
20421 | # include <stdlib.h> | |
20422 | #endif | |
20423 | #include <stdio.h> | |
20424 | ||
20425 | ||
20426 | ||
20427 | int | |
20428 | main () | |
20429 | { | |
20430 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20431 | test_array [0] = 0 | |
20432 | ||
20433 | ; | |
20434 | return 0; | |
20435 | } | |
20436 | _ACEOF | |
20437 | rm -f conftest.$ac_objext | |
20438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20439 | (eval $ac_compile) 2>conftest.er1 | |
20440 | ac_status=$? | |
20441 | grep -v '^ *+' conftest.er1 >conftest.err | |
20442 | rm -f conftest.er1 | |
20443 | cat conftest.err >&5 | |
20444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20445 | (exit $ac_status); } && | |
dee1a63f MB |
20446 | { ac_try='test -z "$ac_c_werror_flag" |
20447 | || test ! -s conftest.err' | |
238ecede MW |
20448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20449 | (eval $ac_try) 2>&5 | |
20450 | ac_status=$? | |
20451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20452 | (exit $ac_status); }; } && | |
20453 | { ac_try='test -s conftest.$ac_objext' | |
20454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20455 | (eval $ac_try) 2>&5 | |
20456 | ac_status=$? | |
20457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20458 | (exit $ac_status); }; }; then | |
20459 | ac_hi=-1 ac_mid=-1 | |
20460 | while :; do | |
20461 | cat >conftest.$ac_ext <<_ACEOF | |
20462 | /* confdefs.h. */ | |
20463 | _ACEOF | |
20464 | cat confdefs.h >>conftest.$ac_ext | |
20465 | cat >>conftest.$ac_ext <<_ACEOF | |
20466 | /* end confdefs.h. */ | |
20467 | ||
83d8eb47 MW |
20468 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20469 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20470 | # error "fake wchar_t" |
20471 | #endif | |
20472 | #ifdef HAVE_WCHAR_H | |
20473 | # ifdef __CYGWIN__ | |
20474 | # include <stddef.h> | |
20475 | # endif | |
20476 | # include <wchar.h> | |
20477 | #endif | |
20478 | #ifdef HAVE_STDLIB_H | |
20479 | # include <stdlib.h> | |
20480 | #endif | |
20481 | #include <stdio.h> | |
20482 | ||
20483 | ||
20484 | ||
20485 | int | |
20486 | main () | |
20487 | { | |
20488 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20489 | test_array [0] = 0 | |
20490 | ||
20491 | ; | |
20492 | return 0; | |
20493 | } | |
20494 | _ACEOF | |
20495 | rm -f conftest.$ac_objext | |
20496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20497 | (eval $ac_compile) 2>conftest.er1 | |
20498 | ac_status=$? | |
20499 | grep -v '^ *+' conftest.er1 >conftest.err | |
20500 | rm -f conftest.er1 | |
20501 | cat conftest.err >&5 | |
20502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20503 | (exit $ac_status); } && | |
dee1a63f MB |
20504 | { ac_try='test -z "$ac_c_werror_flag" |
20505 | || test ! -s conftest.err' | |
238ecede MW |
20506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20507 | (eval $ac_try) 2>&5 | |
20508 | ac_status=$? | |
20509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20510 | (exit $ac_status); }; } && | |
20511 | { ac_try='test -s conftest.$ac_objext' | |
20512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20513 | (eval $ac_try) 2>&5 | |
20514 | ac_status=$? | |
20515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20516 | (exit $ac_status); }; }; then | |
20517 | ac_lo=$ac_mid; break | |
20518 | else | |
20519 | echo "$as_me: failed program was:" >&5 | |
20520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20521 | ||
20522 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20523 | if test $ac_mid -le $ac_hi; then | |
20524 | ac_lo= ac_hi= | |
20525 | break | |
20526 | fi | |
20527 | ac_mid=`expr 2 '*' $ac_mid` | |
20528 | fi | |
20529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20530 | done | |
20531 | else | |
20532 | echo "$as_me: failed program was:" >&5 | |
20533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20534 | ||
20535 | ac_lo= ac_hi= | |
20536 | fi | |
20537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20538 | fi | |
20539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20540 | # Binary search between lo and hi bounds. | |
20541 | while test "x$ac_lo" != "x$ac_hi"; do | |
20542 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20543 | cat >conftest.$ac_ext <<_ACEOF | |
20544 | /* confdefs.h. */ | |
20545 | _ACEOF | |
20546 | cat confdefs.h >>conftest.$ac_ext | |
20547 | cat >>conftest.$ac_ext <<_ACEOF | |
20548 | /* end confdefs.h. */ | |
20549 | ||
83d8eb47 MW |
20550 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20551 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20552 | # error "fake wchar_t" |
20553 | #endif | |
20554 | #ifdef HAVE_WCHAR_H | |
20555 | # ifdef __CYGWIN__ | |
20556 | # include <stddef.h> | |
20557 | # endif | |
20558 | # include <wchar.h> | |
20559 | #endif | |
20560 | #ifdef HAVE_STDLIB_H | |
20561 | # include <stdlib.h> | |
20562 | #endif | |
20563 | #include <stdio.h> | |
a848cd7e | 20564 | |
a848cd7e | 20565 | |
a848cd7e | 20566 | |
238ecede MW |
20567 | int |
20568 | main () | |
20569 | { | |
20570 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20571 | test_array [0] = 0 | |
a848cd7e | 20572 | |
238ecede MW |
20573 | ; |
20574 | return 0; | |
20575 | } | |
20576 | _ACEOF | |
20577 | rm -f conftest.$ac_objext | |
20578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20579 | (eval $ac_compile) 2>conftest.er1 | |
20580 | ac_status=$? | |
20581 | grep -v '^ *+' conftest.er1 >conftest.err | |
20582 | rm -f conftest.er1 | |
20583 | cat conftest.err >&5 | |
20584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20585 | (exit $ac_status); } && | |
dee1a63f MB |
20586 | { ac_try='test -z "$ac_c_werror_flag" |
20587 | || test ! -s conftest.err' | |
238ecede MW |
20588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20589 | (eval $ac_try) 2>&5 | |
20590 | ac_status=$? | |
20591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20592 | (exit $ac_status); }; } && | |
20593 | { ac_try='test -s conftest.$ac_objext' | |
20594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20595 | (eval $ac_try) 2>&5 | |
20596 | ac_status=$? | |
20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20598 | (exit $ac_status); }; }; then | |
20599 | ac_hi=$ac_mid | |
20600 | else | |
20601 | echo "$as_me: failed program was:" >&5 | |
20602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20603 | ||
20604 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20605 | fi | |
20606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20607 | done | |
20608 | case $ac_lo in | |
20609 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
20610 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
20611 | See \`config.log' for more details." >&5 | |
20612 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20613 | See \`config.log' for more details." >&2;} | |
20614 | { (exit 1); exit 1; }; } ;; | |
20615 | esac | |
20616 | else | |
20617 | if test "$cross_compiling" = yes; then | |
dee1a63f MB |
20618 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20619 | See \`config.log' for more details." >&5 | |
20620 | echo "$as_me: error: cannot run test program while cross compiling | |
20621 | See \`config.log' for more details." >&2;} | |
238ecede | 20622 | { (exit 1); exit 1; }; } |
a848cd7e SC |
20623 | else |
20624 | cat >conftest.$ac_ext <<_ACEOF | |
20625 | /* confdefs.h. */ | |
20626 | _ACEOF | |
20627 | cat confdefs.h >>conftest.$ac_ext | |
20628 | cat >>conftest.$ac_ext <<_ACEOF | |
20629 | /* end confdefs.h. */ | |
20630 | ||
83d8eb47 MW |
20631 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20632 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20633 | # error "fake wchar_t" |
20634 | #endif | |
20635 | #ifdef HAVE_WCHAR_H | |
20636 | # ifdef __CYGWIN__ | |
20637 | # include <stddef.h> | |
20638 | # endif | |
20639 | # include <wchar.h> | |
20640 | #endif | |
20641 | #ifdef HAVE_STDLIB_H | |
20642 | # include <stdlib.h> | |
20643 | #endif | |
20644 | #include <stdio.h> | |
20645 | ||
20646 | ||
20647 | ||
20648 | long longval () { return (long) (sizeof (wchar_t)); } | |
20649 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
20650 | #include <stdio.h> | |
20651 | #include <stdlib.h> | |
20652 | int | |
20653 | main () | |
20654 | { | |
a848cd7e | 20655 | |
238ecede MW |
20656 | FILE *f = fopen ("conftest.val", "w"); |
20657 | if (! f) | |
20658 | exit (1); | |
20659 | if (((long) (sizeof (wchar_t))) < 0) | |
20660 | { | |
20661 | long i = longval (); | |
20662 | if (i != ((long) (sizeof (wchar_t)))) | |
20663 | exit (1); | |
20664 | fprintf (f, "%ld\n", i); | |
20665 | } | |
20666 | else | |
20667 | { | |
20668 | unsigned long i = ulongval (); | |
20669 | if (i != ((long) (sizeof (wchar_t)))) | |
20670 | exit (1); | |
20671 | fprintf (f, "%lu\n", i); | |
20672 | } | |
20673 | exit (ferror (f) || fclose (f) != 0); | |
20674 | ||
20675 | ; | |
20676 | return 0; | |
20677 | } | |
a848cd7e SC |
20678 | _ACEOF |
20679 | rm -f conftest$ac_exeext | |
20680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20681 | (eval $ac_link) 2>&5 | |
20682 | ac_status=$? | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20686 | (eval $ac_try) 2>&5 | |
20687 | ac_status=$? | |
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20689 | (exit $ac_status); }; }; then | |
238ecede | 20690 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
20691 | else |
20692 | echo "$as_me: program exited with status $ac_status" >&5 | |
20693 | echo "$as_me: failed program was:" >&5 | |
20694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20695 | ||
20696 | ( exit $ac_status ) | |
238ecede MW |
20697 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
20698 | See \`config.log' for more details." >&5 | |
20699 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20700 | See \`config.log' for more details." >&2;} | |
20701 | { (exit 1); exit 1; }; } | |
a848cd7e | 20702 | fi |
ac1cb8d3 | 20703 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20704 | fi |
a848cd7e | 20705 | fi |
238ecede MW |
20706 | rm -f conftest.val |
20707 | else | |
20708 | ac_cv_sizeof_wchar_t=0 | |
20709 | fi | |
20710 | fi | |
20711 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
20712 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 20713 | cat >>confdefs.h <<_ACEOF |
238ecede | 20714 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20715 | _ACEOF |
20716 | ||
20717 | ||
47a7e797 MW |
20718 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
20719 | wxUSE_WCHAR_T=yes | |
20720 | else | |
20721 | wxUSE_WCHAR_T=no | |
20722 | fi | |
238ecede | 20723 | |
ba3d13e1 VZ |
20724 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
20725 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
20726 | if test "${wx_cv_func_va_copy+set}" = set; then | |
20727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20728 | else | |
20729 | ||
20730 | cat >conftest.$ac_ext <<_ACEOF | |
20731 | ||
20732 | #include <stdarg.h> | |
20733 | void foo(char *f, ...) | |
20734 | { | |
20735 | va_list ap1, ap2; | |
20736 | va_start(ap1, f); | |
20737 | va_copy(ap2, ap1); | |
20738 | va_end(ap2); | |
20739 | va_end(ap1); | |
20740 | } | |
5886b072 VZ |
20741 | int main() |
20742 | { | |
b902e639 VZ |
20743 | foo("hi", 17); |
20744 | return 0; | |
5886b072 | 20745 | } |
ba3d13e1 VZ |
20746 | _ACEOF |
20747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20749 | (eval $ac_link) 2>conftest.er1 | |
20750 | ac_status=$? | |
20751 | grep -v '^ *+' conftest.er1 >conftest.err | |
20752 | rm -f conftest.er1 | |
20753 | cat conftest.err >&5 | |
20754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20755 | (exit $ac_status); } && | |
dee1a63f MB |
20756 | { ac_try='test -z "$ac_c_werror_flag" |
20757 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
20758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20759 | (eval $ac_try) 2>&5 | |
20760 | ac_status=$? | |
20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20762 | (exit $ac_status); }; } && | |
20763 | { ac_try='test -s conftest$ac_exeext' | |
20764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20765 | (eval $ac_try) 2>&5 | |
20766 | ac_status=$? | |
20767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20768 | (exit $ac_status); }; }; then | |
20769 | wx_cv_func_va_copy=yes | |
20770 | else | |
20771 | echo "$as_me: failed program was:" >&5 | |
20772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20773 | ||
20774 | wx_cv_func_va_copy=no | |
20775 | ||
20776 | fi | |
20777 | rm -f conftest.err conftest.$ac_objext \ | |
20778 | conftest$ac_exeext conftest.$ac_ext | |
20779 | ||
20780 | ||
20781 | fi | |
20782 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20783 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20784 | ||
20785 | if test $wx_cv_func_va_copy = "yes"; then | |
20786 | cat >>confdefs.h <<\_ACEOF | |
20787 | #define HAVE_VA_COPY 1 | |
20788 | _ACEOF | |
20789 | ||
20790 | else | |
20791 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20792 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20793 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20795 | else | |
20796 | ||
20797 | if test "$cross_compiling" = yes; then | |
20798 | wx_cv_type_va_list_lvalue=yes | |
20799 | ||
20800 | else | |
20801 | cat >conftest.$ac_ext <<_ACEOF | |
20802 | ||
20803 | #include <stdarg.h> | |
20804 | int foo(char *f, ...) | |
20805 | { | |
20806 | va_list ap1, ap2; | |
20807 | va_start(ap1, f); | |
20808 | ap2 = ap1; | |
20809 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20810 | return 1; | |
20811 | va_end(ap2); | |
20812 | va_end(ap1); | |
20813 | return 0; | |
20814 | } | |
20815 | int main() | |
20816 | { | |
20817 | return foo("hi", 17); | |
20818 | } | |
20819 | _ACEOF | |
20820 | rm -f conftest$ac_exeext | |
20821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20822 | (eval $ac_link) 2>&5 | |
20823 | ac_status=$? | |
20824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20825 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20827 | (eval $ac_try) 2>&5 | |
20828 | ac_status=$? | |
20829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20830 | (exit $ac_status); }; }; then | |
20831 | wx_cv_type_va_list_lvalue=yes | |
20832 | else | |
20833 | echo "$as_me: program exited with status $ac_status" >&5 | |
20834 | echo "$as_me: failed program was:" >&5 | |
20835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20836 | ||
20837 | ( exit $ac_status ) | |
20838 | wx_cv_type_va_list_lvalue=no | |
20839 | fi | |
20840 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20841 | fi | |
20842 | ||
20843 | ||
20844 | fi | |
20845 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20846 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20847 | ||
20848 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20849 | cat >>confdefs.h <<\_ACEOF | |
20850 | #define VA_LIST_IS_ARRAY 1 | |
20851 | _ACEOF | |
20852 | ||
20853 | fi | |
20854 | fi | |
20855 | ||
a848cd7e SC |
20856 | # Check whether --enable-largefile or --disable-largefile was given. |
20857 | if test "${enable_largefile+set}" = set; then | |
20858 | enableval="$enable_largefile" | |
20859 | ||
20860 | fi; | |
20861 | if test "$enable_largefile" != no; then | |
20862 | wx_largefile=no | |
20863 | ||
20864 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20865 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20866 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
20867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20868 | else | |
20869 | ||
20870 | cat >conftest.$ac_ext <<_ACEOF | |
20871 | /* confdefs.h. */ | |
20872 | _ACEOF | |
20873 | cat confdefs.h >>conftest.$ac_ext | |
20874 | cat >>conftest.$ac_ext <<_ACEOF | |
20875 | /* end confdefs.h. */ | |
20876 | #define _FILE_OFFSET_BITS 64 | |
20877 | #include <sys/types.h> | |
20878 | int | |
20879 | main () | |
20880 | { | |
20881 | typedef struct { | |
20882 | unsigned int field: sizeof(off_t) == 8; | |
20883 | } wxlf; | |
20884 | ||
20885 | ; | |
20886 | return 0; | |
20887 | } | |
20888 | _ACEOF | |
20889 | rm -f conftest.$ac_objext | |
20890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20892 | ac_status=$? |
ac1cb8d3 VS |
20893 | grep -v '^ *+' conftest.er1 >conftest.err |
20894 | rm -f conftest.er1 | |
20895 | cat conftest.err >&5 | |
a848cd7e SC |
20896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20897 | (exit $ac_status); } && | |
dee1a63f MB |
20898 | { ac_try='test -z "$ac_c_werror_flag" |
20899 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20901 | (eval $ac_try) 2>&5 | |
20902 | ac_status=$? | |
20903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20904 | (exit $ac_status); }; } && | |
20905 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20907 | (eval $ac_try) 2>&5 | |
20908 | ac_status=$? | |
20909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20910 | (exit $ac_status); }; }; then | |
20911 | ac_cv_sys_file_offset_bits=64 | |
20912 | else | |
20913 | echo "$as_me: failed program was:" >&5 | |
20914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20915 | ||
20916 | ac_cv_sys_file_offset_bits=no | |
20917 | fi | |
ac1cb8d3 | 20918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20919 | |
20920 | ||
20921 | fi | |
20922 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
20923 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
20924 | ||
20925 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20926 | wx_largefile=yes | |
20927 | cat >>confdefs.h <<_ACEOF | |
20928 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20929 | _ACEOF | |
20930 | ||
20931 | fi | |
20932 | ||
20933 | if test "x$wx_largefile" != "xyes"; then | |
20934 | ||
20935 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
20936 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
20937 | if test "${ac_cv_sys_large_files+set}" = set; then | |
20938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20939 | else | |
20940 | ||
20941 | cat >conftest.$ac_ext <<_ACEOF | |
20942 | /* confdefs.h. */ | |
20943 | _ACEOF | |
20944 | cat confdefs.h >>conftest.$ac_ext | |
20945 | cat >>conftest.$ac_ext <<_ACEOF | |
20946 | /* end confdefs.h. */ | |
20947 | #define _LARGE_FILES 1 | |
20948 | #include <sys/types.h> | |
20949 | int | |
20950 | main () | |
20951 | { | |
20952 | typedef struct { | |
20953 | unsigned int field: sizeof(off_t) == 8; | |
20954 | } wxlf; | |
20955 | ||
20956 | ; | |
20957 | return 0; | |
20958 | } | |
20959 | _ACEOF | |
20960 | rm -f conftest.$ac_objext | |
20961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20963 | ac_status=$? |
ac1cb8d3 VS |
20964 | grep -v '^ *+' conftest.er1 >conftest.err |
20965 | rm -f conftest.er1 | |
20966 | cat conftest.err >&5 | |
a848cd7e SC |
20967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20968 | (exit $ac_status); } && | |
dee1a63f MB |
20969 | { ac_try='test -z "$ac_c_werror_flag" |
20970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20972 | (eval $ac_try) 2>&5 | |
20973 | ac_status=$? | |
20974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20975 | (exit $ac_status); }; } && | |
20976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20978 | (eval $ac_try) 2>&5 | |
20979 | ac_status=$? | |
20980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20981 | (exit $ac_status); }; }; then | |
20982 | ac_cv_sys_large_files=1 | |
20983 | else | |
20984 | echo "$as_me: failed program was:" >&5 | |
20985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20986 | ||
20987 | ac_cv_sys_large_files=no | |
20988 | fi | |
ac1cb8d3 | 20989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20990 | |
20991 | ||
20992 | fi | |
20993 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
20994 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
20995 | ||
20996 | if test "$ac_cv_sys_large_files" != no; then | |
20997 | wx_largefile=yes | |
20998 | cat >>confdefs.h <<_ACEOF | |
20999 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21000 | _ACEOF | |
21001 | ||
21002 | fi | |
21003 | ||
21004 | fi | |
21005 | ||
21006 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21007 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21008 | if test "x$wx_largefile" = "xyes"; then | |
21009 | cat >>confdefs.h <<\_ACEOF | |
21010 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21011 | _ACEOF | |
21012 | ||
21013 | fi | |
21014 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21015 | echo "${ECHO_T}$wx_largefile" >&6 | |
21016 | fi | |
21017 | ||
5b674b9d DE |
21018 | |
21019 | if test "x$wx_largefile" = "xyes"; then | |
21020 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
21021 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
21022 | |
21023 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21024 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21025 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21026 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21028 | else | |
21029 | ||
21030 | ||
21031 | ||
21032 | ac_ext=cc | |
21033 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21034 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21035 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21036 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21037 | ||
21038 | cat >conftest.$ac_ext <<_ACEOF | |
21039 | /* confdefs.h. */ | |
21040 | _ACEOF | |
21041 | cat confdefs.h >>conftest.$ac_ext | |
21042 | cat >>conftest.$ac_ext <<_ACEOF | |
21043 | /* end confdefs.h. */ | |
21044 | ||
21045 | int | |
21046 | main () | |
21047 | { | |
21048 | ||
21049 | #ifndef __STDC_EXT__ | |
21050 | choke me | |
21051 | #endif | |
21052 | ||
21053 | ; | |
21054 | return 0; | |
21055 | } | |
21056 | _ACEOF | |
21057 | rm -f conftest.$ac_objext | |
21058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21059 | (eval $ac_compile) 2>conftest.er1 | |
21060 | ac_status=$? | |
21061 | grep -v '^ *+' conftest.er1 >conftest.err | |
21062 | rm -f conftest.er1 | |
21063 | cat conftest.err >&5 | |
21064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21065 | (exit $ac_status); } && | |
dee1a63f MB |
21066 | { ac_try='test -z "$ac_cxx_werror_flag" |
21067 | || test ! -s conftest.err' | |
00421666 MW |
21068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21069 | (eval $ac_try) 2>&5 | |
21070 | ac_status=$? | |
21071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21072 | (exit $ac_status); }; } && | |
21073 | { ac_try='test -s conftest.$ac_objext' | |
21074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21075 | (eval $ac_try) 2>&5 | |
21076 | ac_status=$? | |
21077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21078 | (exit $ac_status); }; }; then | |
21079 | wx_cv_STDC_EXT_required=no | |
21080 | else | |
21081 | echo "$as_me: failed program was:" >&5 | |
21082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21083 | ||
21084 | wx_cv_STDC_EXT_required=yes | |
21085 | ||
21086 | fi | |
21087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21088 | ac_ext=c | |
21089 | ac_cpp='$CPP $CPPFLAGS' | |
21090 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21091 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21092 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21093 | ||
21094 | ||
21095 | ||
21096 | fi | |
21097 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21098 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21099 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
21100 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
21101 | fi | |
21102 | fi | |
5b674b9d DE |
21103 | else |
21104 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
21105 | fi | |
21106 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21107 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21108 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21110 | else | |
21111 | while :; do | |
21112 | ac_cv_sys_largefile_source=no | |
21113 | cat >conftest.$ac_ext <<_ACEOF | |
21114 | /* confdefs.h. */ | |
21115 | _ACEOF | |
21116 | cat confdefs.h >>conftest.$ac_ext | |
21117 | cat >>conftest.$ac_ext <<_ACEOF | |
21118 | /* end confdefs.h. */ | |
21119 | #include <stdio.h> | |
21120 | int | |
21121 | main () | |
21122 | { | |
21123 | return !fseeko; | |
21124 | ; | |
21125 | return 0; | |
21126 | } | |
21127 | _ACEOF | |
21128 | rm -f conftest.$ac_objext | |
21129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21130 | (eval $ac_compile) 2>conftest.er1 | |
21131 | ac_status=$? | |
21132 | grep -v '^ *+' conftest.er1 >conftest.err | |
21133 | rm -f conftest.er1 | |
21134 | cat conftest.err >&5 | |
21135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 | (exit $ac_status); } && | |
dee1a63f MB |
21137 | { ac_try='test -z "$ac_c_werror_flag" |
21138 | || test ! -s conftest.err' | |
5294a27e VZ |
21139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21140 | (eval $ac_try) 2>&5 | |
21141 | ac_status=$? | |
21142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21143 | (exit $ac_status); }; } && | |
21144 | { ac_try='test -s conftest.$ac_objext' | |
21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21146 | (eval $ac_try) 2>&5 | |
21147 | ac_status=$? | |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21149 | (exit $ac_status); }; }; then | |
21150 | break | |
21151 | else | |
21152 | echo "$as_me: failed program was:" >&5 | |
21153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21154 | ||
21155 | fi | |
21156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21157 | cat >conftest.$ac_ext <<_ACEOF | |
21158 | /* confdefs.h. */ | |
21159 | _ACEOF | |
21160 | cat confdefs.h >>conftest.$ac_ext | |
21161 | cat >>conftest.$ac_ext <<_ACEOF | |
21162 | /* end confdefs.h. */ | |
21163 | #define _LARGEFILE_SOURCE 1 | |
21164 | #include <stdio.h> | |
21165 | int | |
21166 | main () | |
21167 | { | |
21168 | return !fseeko; | |
21169 | ; | |
21170 | return 0; | |
21171 | } | |
21172 | _ACEOF | |
21173 | rm -f conftest.$ac_objext | |
21174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21175 | (eval $ac_compile) 2>conftest.er1 | |
21176 | ac_status=$? | |
21177 | grep -v '^ *+' conftest.er1 >conftest.err | |
21178 | rm -f conftest.er1 | |
21179 | cat conftest.err >&5 | |
21180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21181 | (exit $ac_status); } && | |
dee1a63f MB |
21182 | { ac_try='test -z "$ac_c_werror_flag" |
21183 | || test ! -s conftest.err' | |
5294a27e VZ |
21184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21185 | (eval $ac_try) 2>&5 | |
21186 | ac_status=$? | |
21187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21188 | (exit $ac_status); }; } && | |
21189 | { ac_try='test -s conftest.$ac_objext' | |
21190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21191 | (eval $ac_try) 2>&5 | |
21192 | ac_status=$? | |
21193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21194 | (exit $ac_status); }; }; then | |
21195 | ac_cv_sys_largefile_source=1; break | |
21196 | else | |
21197 | echo "$as_me: failed program was:" >&5 | |
21198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21199 | ||
21200 | fi | |
21201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21202 | break | |
21203 | done | |
21204 | fi | |
21205 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21206 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21207 | if test "$ac_cv_sys_largefile_source" != no; then | |
21208 | ||
21209 | cat >>confdefs.h <<_ACEOF | |
21210 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21211 | _ACEOF | |
21212 | ||
21213 | fi | |
21214 | rm -f conftest* | |
21215 | ||
21216 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21217 | # in glibc 2.1.3, but that breaks too many other things. | |
21218 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21219 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21220 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21221 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21223 | else | |
21224 | cat >conftest.$ac_ext <<_ACEOF | |
21225 | /* confdefs.h. */ | |
21226 | _ACEOF | |
21227 | cat confdefs.h >>conftest.$ac_ext | |
21228 | cat >>conftest.$ac_ext <<_ACEOF | |
21229 | /* end confdefs.h. */ | |
21230 | #include <stdio.h> | |
21231 | int | |
21232 | main () | |
21233 | { | |
21234 | return fseeko && fseeko (stdin, 0, 0); | |
21235 | ; | |
21236 | return 0; | |
21237 | } | |
21238 | _ACEOF | |
21239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21241 | (eval $ac_link) 2>conftest.er1 | |
21242 | ac_status=$? | |
21243 | grep -v '^ *+' conftest.er1 >conftest.err | |
21244 | rm -f conftest.er1 | |
21245 | cat conftest.err >&5 | |
21246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21247 | (exit $ac_status); } && | |
dee1a63f MB |
21248 | { ac_try='test -z "$ac_c_werror_flag" |
21249 | || test ! -s conftest.err' | |
5294a27e VZ |
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); }; } && | |
21255 | { ac_try='test -s conftest$ac_exeext' | |
21256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21257 | (eval $ac_try) 2>&5 | |
21258 | ac_status=$? | |
21259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21260 | (exit $ac_status); }; }; then | |
21261 | ac_cv_func_fseeko=yes | |
21262 | else | |
21263 | echo "$as_me: failed program was:" >&5 | |
21264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21265 | ||
21266 | ac_cv_func_fseeko=no | |
21267 | fi | |
21268 | rm -f conftest.err conftest.$ac_objext \ | |
21269 | conftest$ac_exeext conftest.$ac_ext | |
21270 | fi | |
21271 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21272 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21273 | if test $ac_cv_func_fseeko = yes; then | |
21274 | ||
21275 | cat >>confdefs.h <<\_ACEOF | |
21276 | #define HAVE_FSEEKO 1 | |
21277 | _ACEOF | |
21278 | ||
21279 | fi | |
21280 | ||
5b674b9d DE |
21281 | if test "$ac_cv_sys_largefile_source" != no; then |
21282 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
21283 | fi |
21284 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
21285 | fi | |
21286 | ||
21287 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21288 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21289 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21291 | else | |
21292 | ac_cv_c_bigendian=unknown | |
21293 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21294 | cat >conftest.$ac_ext <<_ACEOF | |
21295 | /* confdefs.h. */ | |
21296 | _ACEOF | |
21297 | cat confdefs.h >>conftest.$ac_ext | |
21298 | cat >>conftest.$ac_ext <<_ACEOF | |
21299 | /* end confdefs.h. */ | |
21300 | #include <sys/types.h> | |
21301 | #include <sys/param.h> | |
21302 | int | |
21303 | main () | |
21304 | { | |
21305 | ||
21306 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21307 | bogus endian macros | |
21308 | #endif | |
21309 | ; | |
21310 | return 0; | |
21311 | } | |
21312 | _ACEOF | |
21313 | rm -f conftest.$ac_objext | |
21314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21315 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21316 | ac_status=$? |
ac1cb8d3 VS |
21317 | grep -v '^ *+' conftest.er1 >conftest.err |
21318 | rm -f conftest.er1 | |
21319 | cat conftest.err >&5 | |
a848cd7e SC |
21320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21321 | (exit $ac_status); } && | |
dee1a63f MB |
21322 | { ac_try='test -z "$ac_c_werror_flag" |
21323 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21325 | (eval $ac_try) 2>&5 | |
21326 | ac_status=$? | |
21327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21328 | (exit $ac_status); }; } && | |
21329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21331 | (eval $ac_try) 2>&5 | |
21332 | ac_status=$? | |
21333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21334 | (exit $ac_status); }; }; then | |
21335 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21336 | cat >conftest.$ac_ext <<_ACEOF | |
21337 | /* confdefs.h. */ | |
21338 | _ACEOF | |
21339 | cat confdefs.h >>conftest.$ac_ext | |
21340 | cat >>conftest.$ac_ext <<_ACEOF | |
21341 | /* end confdefs.h. */ | |
21342 | #include <sys/types.h> | |
21343 | #include <sys/param.h> | |
21344 | int | |
21345 | main () | |
21346 | { | |
21347 | ||
21348 | #if BYTE_ORDER != BIG_ENDIAN | |
21349 | not big endian | |
21350 | #endif | |
21351 | ; | |
21352 | return 0; | |
21353 | } | |
21354 | _ACEOF | |
21355 | rm -f conftest.$ac_objext | |
21356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21358 | ac_status=$? |
ac1cb8d3 VS |
21359 | grep -v '^ *+' conftest.er1 >conftest.err |
21360 | rm -f conftest.er1 | |
21361 | cat conftest.err >&5 | |
a848cd7e SC |
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21363 | (exit $ac_status); } && | |
dee1a63f MB |
21364 | { ac_try='test -z "$ac_c_werror_flag" |
21365 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21367 | (eval $ac_try) 2>&5 | |
21368 | ac_status=$? | |
21369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21370 | (exit $ac_status); }; } && | |
21371 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21373 | (eval $ac_try) 2>&5 | |
21374 | ac_status=$? | |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21376 | (exit $ac_status); }; }; then | |
21377 | ac_cv_c_bigendian=yes | |
21378 | else | |
21379 | echo "$as_me: failed program was:" >&5 | |
21380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21381 | ||
21382 | ac_cv_c_bigendian=no | |
21383 | fi | |
ac1cb8d3 | 21384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21385 | else |
21386 | echo "$as_me: failed program was:" >&5 | |
21387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21388 | ||
21389 | fi | |
ac1cb8d3 | 21390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21391 | if test $ac_cv_c_bigendian = unknown; then |
21392 | if test "$cross_compiling" = yes; then | |
21393 | ac_cv_c_bigendian=unknown | |
21394 | else | |
21395 | cat >conftest.$ac_ext <<_ACEOF | |
21396 | /* confdefs.h. */ | |
21397 | _ACEOF | |
21398 | cat confdefs.h >>conftest.$ac_ext | |
21399 | cat >>conftest.$ac_ext <<_ACEOF | |
21400 | /* end confdefs.h. */ | |
21401 | main () { | |
21402 | /* Are we little or big endian? From Harbison&Steele. */ | |
21403 | union | |
21404 | { | |
21405 | long l; | |
21406 | char c[sizeof (long)]; | |
21407 | } u; | |
21408 | u.l = 1; | |
21409 | exit (u.c[sizeof (long) - 1] == 1); | |
21410 | } | |
21411 | _ACEOF | |
21412 | rm -f conftest$ac_exeext | |
21413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21414 | (eval $ac_link) 2>&5 | |
21415 | ac_status=$? | |
21416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21419 | (eval $ac_try) 2>&5 | |
21420 | ac_status=$? | |
21421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21422 | (exit $ac_status); }; }; then | |
21423 | ac_cv_c_bigendian=no | |
21424 | else | |
21425 | echo "$as_me: program exited with status $ac_status" >&5 | |
21426 | echo "$as_me: failed program was:" >&5 | |
21427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21428 | ||
21429 | ( exit $ac_status ) | |
21430 | ac_cv_c_bigendian=yes | |
21431 | fi | |
ac1cb8d3 | 21432 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21433 | fi |
21434 | fi | |
21435 | fi | |
21436 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21437 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21438 | if test $ac_cv_c_bigendian = unknown; then | |
21439 | { 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 | |
21440 | 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;} | |
21441 | fi | |
21442 | if test $ac_cv_c_bigendian = yes; then | |
21443 | cat >>confdefs.h <<\_ACEOF | |
21444 | #define WORDS_BIGENDIAN 1 | |
21445 | _ACEOF | |
21446 | ||
21447 | fi | |
21448 | ||
21449 | ||
21450 | ac_ext=cc | |
21451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21455 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21456 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21457 | if test -z "$CXXCPP"; then | |
21458 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21460 | else | |
21461 | # Double quotes because CXXCPP needs to be expanded | |
21462 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21463 | do | |
21464 | ac_preproc_ok=false | |
21465 | for ac_cxx_preproc_warn_flag in '' yes | |
21466 | do | |
21467 | # Use a header file that comes with gcc, so configuring glibc | |
21468 | # with a fresh cross-compiler works. | |
21469 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21470 | # <limits.h> exists even on freestanding compilers. | |
21471 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21472 | # not just through cpp. "Syntax error" is here to catch this case. | |
21473 | cat >conftest.$ac_ext <<_ACEOF | |
21474 | /* confdefs.h. */ | |
21475 | _ACEOF | |
21476 | cat confdefs.h >>conftest.$ac_ext | |
21477 | cat >>conftest.$ac_ext <<_ACEOF | |
21478 | /* end confdefs.h. */ | |
21479 | #ifdef __STDC__ | |
21480 | # include <limits.h> | |
21481 | #else | |
21482 | # include <assert.h> | |
21483 | #endif | |
ac1cb8d3 | 21484 | Syntax error |
a848cd7e SC |
21485 | _ACEOF |
21486 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21487 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21488 | ac_status=$? | |
21489 | grep -v '^ *+' conftest.er1 >conftest.err | |
21490 | rm -f conftest.er1 | |
21491 | cat conftest.err >&5 | |
21492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21493 | (exit $ac_status); } >/dev/null; then | |
21494 | if test -s conftest.err; then | |
21495 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21496 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21497 | else |
21498 | ac_cpp_err= | |
21499 | fi | |
21500 | else | |
21501 | ac_cpp_err=yes | |
21502 | fi | |
21503 | if test -z "$ac_cpp_err"; then | |
21504 | : | |
21505 | else | |
21506 | echo "$as_me: failed program was:" >&5 | |
21507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21508 | ||
21509 | # Broken: fails on valid input. | |
21510 | continue | |
21511 | fi | |
21512 | rm -f conftest.err conftest.$ac_ext | |
21513 | ||
21514 | # OK, works on sane cases. Now check whether non-existent headers | |
21515 | # can be detected and how. | |
21516 | cat >conftest.$ac_ext <<_ACEOF | |
21517 | /* confdefs.h. */ | |
21518 | _ACEOF | |
21519 | cat confdefs.h >>conftest.$ac_ext | |
21520 | cat >>conftest.$ac_ext <<_ACEOF | |
21521 | /* end confdefs.h. */ | |
21522 | #include <ac_nonexistent.h> | |
21523 | _ACEOF | |
21524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21526 | ac_status=$? | |
21527 | grep -v '^ *+' conftest.er1 >conftest.err | |
21528 | rm -f conftest.er1 | |
21529 | cat conftest.err >&5 | |
21530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21531 | (exit $ac_status); } >/dev/null; then | |
21532 | if test -s conftest.err; then | |
21533 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21534 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21535 | else |
21536 | ac_cpp_err= | |
21537 | fi | |
21538 | else | |
21539 | ac_cpp_err=yes | |
21540 | fi | |
21541 | if test -z "$ac_cpp_err"; then | |
21542 | # Broken: success on invalid input. | |
21543 | continue | |
21544 | else | |
21545 | echo "$as_me: failed program was:" >&5 | |
21546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21547 | ||
21548 | # Passes both tests. | |
21549 | ac_preproc_ok=: | |
21550 | break | |
21551 | fi | |
21552 | rm -f conftest.err conftest.$ac_ext | |
21553 | ||
21554 | done | |
21555 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21556 | rm -f conftest.err conftest.$ac_ext | |
21557 | if $ac_preproc_ok; then | |
21558 | break | |
21559 | fi | |
21560 | ||
21561 | done | |
21562 | ac_cv_prog_CXXCPP=$CXXCPP | |
21563 | ||
21564 | fi | |
21565 | CXXCPP=$ac_cv_prog_CXXCPP | |
21566 | else | |
21567 | ac_cv_prog_CXXCPP=$CXXCPP | |
21568 | fi | |
21569 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21570 | echo "${ECHO_T}$CXXCPP" >&6 | |
21571 | ac_preproc_ok=false | |
21572 | for ac_cxx_preproc_warn_flag in '' yes | |
21573 | do | |
21574 | # Use a header file that comes with gcc, so configuring glibc | |
21575 | # with a fresh cross-compiler works. | |
21576 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21577 | # <limits.h> exists even on freestanding compilers. | |
21578 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21579 | # not just through cpp. "Syntax error" is here to catch this case. | |
21580 | cat >conftest.$ac_ext <<_ACEOF | |
21581 | /* confdefs.h. */ | |
21582 | _ACEOF | |
21583 | cat confdefs.h >>conftest.$ac_ext | |
21584 | cat >>conftest.$ac_ext <<_ACEOF | |
21585 | /* end confdefs.h. */ | |
21586 | #ifdef __STDC__ | |
21587 | # include <limits.h> | |
21588 | #else | |
21589 | # include <assert.h> | |
21590 | #endif | |
ac1cb8d3 | 21591 | Syntax error |
a848cd7e SC |
21592 | _ACEOF |
21593 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21594 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21595 | ac_status=$? | |
21596 | grep -v '^ *+' conftest.er1 >conftest.err | |
21597 | rm -f conftest.er1 | |
21598 | cat conftest.err >&5 | |
21599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21600 | (exit $ac_status); } >/dev/null; then | |
21601 | if test -s conftest.err; then | |
21602 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21603 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21604 | else |
21605 | ac_cpp_err= | |
21606 | fi | |
21607 | else | |
21608 | ac_cpp_err=yes | |
21609 | fi | |
21610 | if test -z "$ac_cpp_err"; then | |
21611 | : | |
21612 | else | |
21613 | echo "$as_me: failed program was:" >&5 | |
21614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21615 | ||
21616 | # Broken: fails on valid input. | |
21617 | continue | |
21618 | fi | |
21619 | rm -f conftest.err conftest.$ac_ext | |
21620 | ||
21621 | # OK, works on sane cases. Now check whether non-existent headers | |
21622 | # can be detected and how. | |
21623 | cat >conftest.$ac_ext <<_ACEOF | |
21624 | /* confdefs.h. */ | |
21625 | _ACEOF | |
21626 | cat confdefs.h >>conftest.$ac_ext | |
21627 | cat >>conftest.$ac_ext <<_ACEOF | |
21628 | /* end confdefs.h. */ | |
21629 | #include <ac_nonexistent.h> | |
21630 | _ACEOF | |
21631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21633 | ac_status=$? | |
21634 | grep -v '^ *+' conftest.er1 >conftest.err | |
21635 | rm -f conftest.er1 | |
21636 | cat conftest.err >&5 | |
21637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21638 | (exit $ac_status); } >/dev/null; then | |
21639 | if test -s conftest.err; then | |
21640 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21641 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21642 | else |
21643 | ac_cpp_err= | |
21644 | fi | |
21645 | else | |
21646 | ac_cpp_err=yes | |
21647 | fi | |
21648 | if test -z "$ac_cpp_err"; then | |
21649 | # Broken: success on invalid input. | |
21650 | continue | |
21651 | else | |
21652 | echo "$as_me: failed program was:" >&5 | |
21653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21654 | ||
21655 | # Passes both tests. | |
21656 | ac_preproc_ok=: | |
21657 | break | |
21658 | fi | |
21659 | rm -f conftest.err conftest.$ac_ext | |
21660 | ||
21661 | done | |
21662 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21663 | rm -f conftest.err conftest.$ac_ext | |
21664 | if $ac_preproc_ok; then | |
21665 | : | |
21666 | else | |
21667 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21668 | See \`config.log' for more details." >&5 | |
21669 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21670 | See \`config.log' for more details." >&2;} | |
21671 | { (exit 1); exit 1; }; } | |
21672 | fi | |
21673 | ||
21674 | ac_ext=cc | |
21675 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21679 | ||
21680 | ||
21681 | ||
21682 | ||
21683 | ||
21684 | ac_ext=cc | |
21685 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21689 | ||
21690 | ||
21691 | ||
21692 | for ac_header in iostream | |
21693 | do | |
21694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21696 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21697 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21698 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21700 | fi | |
21701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21702 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21703 | else | |
21704 | # Is the header compilable? | |
21705 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21706 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21707 | cat >conftest.$ac_ext <<_ACEOF | |
21708 | /* confdefs.h. */ | |
21709 | _ACEOF | |
21710 | cat confdefs.h >>conftest.$ac_ext | |
21711 | cat >>conftest.$ac_ext <<_ACEOF | |
21712 | /* end confdefs.h. */ | |
21713 | $ac_includes_default | |
21714 | #include <$ac_header> | |
21715 | _ACEOF | |
21716 | rm -f conftest.$ac_objext | |
21717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21718 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21719 | ac_status=$? |
ac1cb8d3 VS |
21720 | grep -v '^ *+' conftest.er1 >conftest.err |
21721 | rm -f conftest.er1 | |
21722 | cat conftest.err >&5 | |
a848cd7e SC |
21723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21724 | (exit $ac_status); } && | |
dee1a63f MB |
21725 | { ac_try='test -z "$ac_cxx_werror_flag" |
21726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21728 | (eval $ac_try) 2>&5 | |
21729 | ac_status=$? | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); }; } && | |
21732 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21734 | (eval $ac_try) 2>&5 | |
21735 | ac_status=$? | |
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21737 | (exit $ac_status); }; }; then | |
21738 | ac_header_compiler=yes | |
21739 | else | |
21740 | echo "$as_me: failed program was:" >&5 | |
21741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21742 | ||
21743 | ac_header_compiler=no | |
21744 | fi | |
ac1cb8d3 | 21745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21747 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21748 | ||
21749 | # Is the header present? | |
21750 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21751 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21752 | cat >conftest.$ac_ext <<_ACEOF | |
21753 | /* confdefs.h. */ | |
21754 | _ACEOF | |
21755 | cat confdefs.h >>conftest.$ac_ext | |
21756 | cat >>conftest.$ac_ext <<_ACEOF | |
21757 | /* end confdefs.h. */ | |
21758 | #include <$ac_header> | |
21759 | _ACEOF | |
21760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21762 | ac_status=$? | |
21763 | grep -v '^ *+' conftest.er1 >conftest.err | |
21764 | rm -f conftest.er1 | |
21765 | cat conftest.err >&5 | |
21766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21767 | (exit $ac_status); } >/dev/null; then | |
21768 | if test -s conftest.err; then | |
21769 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21770 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21771 | else |
21772 | ac_cpp_err= | |
21773 | fi | |
21774 | else | |
21775 | ac_cpp_err=yes | |
21776 | fi | |
21777 | if test -z "$ac_cpp_err"; then | |
21778 | ac_header_preproc=yes | |
21779 | else | |
21780 | echo "$as_me: failed program was:" >&5 | |
21781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21782 | ||
21783 | ac_header_preproc=no | |
21784 | fi | |
21785 | rm -f conftest.err conftest.$ac_ext | |
21786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21788 | ||
21789 | # So? What about this header? | |
ac1cb8d3 VS |
21790 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21791 | yes:no: ) | |
a848cd7e SC |
21792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21795 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21796 | ac_header_preproc=yes | |
a848cd7e | 21797 | ;; |
ac1cb8d3 | 21798 | no:yes:* ) |
a848cd7e SC |
21799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21803 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21804 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21805 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21806 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21808 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21809 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21810 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21811 | ( |
21812 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21813 | ## ----------------------------------------- ## |
21814 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21815 | ## ----------------------------------------- ## | |
a848cd7e SC |
21816 | _ASBOX |
21817 | ) | | |
21818 | sed "s/^/$as_me: WARNING: /" >&2 | |
21819 | ;; | |
21820 | esac | |
21821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21825 | else | |
ac1cb8d3 | 21826 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21827 | fi |
21828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21830 | ||
21831 | fi | |
21832 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21833 | cat >>confdefs.h <<_ACEOF | |
21834 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21835 | _ACEOF | |
21836 | ||
21837 | fi | |
21838 | ||
21839 | done | |
21840 | ||
21841 | ||
21842 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21843 | : | |
21844 | else | |
21845 | cat >>confdefs.h <<\_ACEOF | |
21846 | #define wxUSE_IOSTREAMH 1 | |
21847 | _ACEOF | |
21848 | ||
21849 | fi | |
21850 | ||
21851 | ac_ext=c | |
21852 | ac_cpp='$CPP $CPPFLAGS' | |
21853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21856 | ||
21857 | ||
21858 | ||
21859 | ||
21860 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21861 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21862 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21864 | else | |
21865 | ||
21866 | ||
21867 | ||
21868 | ac_ext=cc | |
21869 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21873 | ||
21874 | ||
21875 | cat >conftest.$ac_ext <<_ACEOF | |
21876 | /* confdefs.h. */ | |
21877 | _ACEOF | |
21878 | cat confdefs.h >>conftest.$ac_ext | |
21879 | cat >>conftest.$ac_ext <<_ACEOF | |
21880 | /* end confdefs.h. */ | |
21881 | ||
21882 | ||
21883 | int | |
21884 | main () | |
21885 | { | |
21886 | ||
21887 | bool b = true; | |
21888 | ||
21889 | return 0; | |
21890 | ||
21891 | ; | |
21892 | return 0; | |
21893 | } | |
21894 | _ACEOF | |
21895 | rm -f conftest.$ac_objext | |
21896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21898 | ac_status=$? |
ac1cb8d3 VS |
21899 | grep -v '^ *+' conftest.er1 >conftest.err |
21900 | rm -f conftest.er1 | |
21901 | cat conftest.err >&5 | |
a848cd7e SC |
21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21903 | (exit $ac_status); } && | |
dee1a63f MB |
21904 | { ac_try='test -z "$ac_cxx_werror_flag" |
21905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21907 | (eval $ac_try) 2>&5 | |
21908 | ac_status=$? | |
21909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21910 | (exit $ac_status); }; } && | |
21911 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21913 | (eval $ac_try) 2>&5 | |
21914 | ac_status=$? | |
21915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21916 | (exit $ac_status); }; }; then | |
21917 | ||
21918 | wx_cv_cpp_bool=yes | |
21919 | ||
21920 | else | |
21921 | echo "$as_me: failed program was:" >&5 | |
21922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21923 | ||
21924 | ||
21925 | wx_cv_cpp_bool=no | |
21926 | ||
21927 | ||
21928 | fi | |
ac1cb8d3 | 21929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21930 | |
21931 | ac_ext=c | |
21932 | ac_cpp='$CPP $CPPFLAGS' | |
21933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21936 | ||
21937 | ||
21938 | fi | |
21939 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
21940 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21941 | ||
21942 | if test "$wx_cv_cpp_bool" = "yes"; then | |
21943 | cat >>confdefs.h <<\_ACEOF | |
21944 | #define HAVE_BOOL 1 | |
21945 | _ACEOF | |
21946 | ||
21947 | fi | |
21948 | ||
21949 | ||
21950 | ||
21951 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
21952 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
21953 | if test "${wx_cv_explicit+set}" = set; then | |
21954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21955 | else | |
21956 | ||
21957 | ||
21958 | ||
21959 | ac_ext=cc | |
21960 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21961 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21962 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21963 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21964 | ||
21965 | ||
21966 | cat >conftest.$ac_ext <<_ACEOF | |
21967 | /* confdefs.h. */ | |
21968 | _ACEOF | |
21969 | cat confdefs.h >>conftest.$ac_ext | |
21970 | cat >>conftest.$ac_ext <<_ACEOF | |
21971 | /* end confdefs.h. */ | |
21972 | ||
21973 | class Foo { public: explicit Foo(int) {} }; | |
21974 | ||
21975 | int | |
21976 | main () | |
21977 | { | |
21978 | ||
21979 | return 0; | |
21980 | ||
21981 | ; | |
21982 | return 0; | |
21983 | } | |
21984 | _ACEOF | |
21985 | rm -f conftest.$ac_objext | |
21986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21987 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21988 | ac_status=$? |
ac1cb8d3 VS |
21989 | grep -v '^ *+' conftest.er1 >conftest.err |
21990 | rm -f conftest.er1 | |
21991 | cat conftest.err >&5 | |
a848cd7e SC |
21992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21993 | (exit $ac_status); } && | |
dee1a63f MB |
21994 | { ac_try='test -z "$ac_cxx_werror_flag" |
21995 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21997 | (eval $ac_try) 2>&5 | |
21998 | ac_status=$? | |
21999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22000 | (exit $ac_status); }; } && | |
22001 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22003 | (eval $ac_try) 2>&5 | |
22004 | ac_status=$? | |
22005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22006 | (exit $ac_status); }; }; then | |
22007 | ||
22008 | cat >conftest.$ac_ext <<_ACEOF | |
22009 | /* confdefs.h. */ | |
22010 | _ACEOF | |
22011 | cat confdefs.h >>conftest.$ac_ext | |
22012 | cat >>conftest.$ac_ext <<_ACEOF | |
22013 | /* end confdefs.h. */ | |
22014 | ||
22015 | class Foo { public: explicit Foo(int) {} }; | |
22016 | static void TakeFoo(const Foo& foo) { } | |
22017 | ||
22018 | int | |
22019 | main () | |
22020 | { | |
22021 | ||
22022 | TakeFoo(17); | |
22023 | return 0; | |
22024 | ||
22025 | ; | |
22026 | return 0; | |
22027 | } | |
22028 | _ACEOF | |
22029 | rm -f conftest.$ac_objext | |
22030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22032 | ac_status=$? |
ac1cb8d3 VS |
22033 | grep -v '^ *+' conftest.er1 >conftest.err |
22034 | rm -f conftest.er1 | |
22035 | cat conftest.err >&5 | |
a848cd7e SC |
22036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22037 | (exit $ac_status); } && | |
dee1a63f MB |
22038 | { ac_try='test -z "$ac_cxx_werror_flag" |
22039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22041 | (eval $ac_try) 2>&5 | |
22042 | ac_status=$? | |
22043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22044 | (exit $ac_status); }; } && | |
22045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22047 | (eval $ac_try) 2>&5 | |
22048 | ac_status=$? | |
22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22050 | (exit $ac_status); }; }; then | |
22051 | wx_cv_explicit=no | |
22052 | else | |
22053 | echo "$as_me: failed program was:" >&5 | |
22054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22055 | ||
22056 | wx_cv_explicit=yes | |
22057 | ||
22058 | fi | |
ac1cb8d3 | 22059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22060 | |
22061 | else | |
22062 | echo "$as_me: failed program was:" >&5 | |
22063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22064 | ||
22065 | wx_cv_explicit=no | |
22066 | ||
22067 | fi | |
ac1cb8d3 | 22068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22069 | |
22070 | ac_ext=c | |
22071 | ac_cpp='$CPP $CPPFLAGS' | |
22072 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22073 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22074 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22075 | ||
22076 | ||
22077 | fi | |
22078 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22079 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22080 | ||
22081 | if test "$wx_cv_explicit" = "yes"; then | |
22082 | cat >>confdefs.h <<\_ACEOF | |
22083 | #define HAVE_EXPLICIT 1 | |
22084 | _ACEOF | |
22085 | ||
22086 | fi | |
22087 | ||
22088 | ||
22089 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22090 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22091 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22093 | else | |
22094 | ||
22095 | ||
22096 | ac_ext=cc | |
22097 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22098 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22099 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22101 | ||
22102 | cat >conftest.$ac_ext <<_ACEOF | |
22103 | /* confdefs.h. */ | |
22104 | _ACEOF | |
22105 | cat confdefs.h >>conftest.$ac_ext | |
22106 | cat >>conftest.$ac_ext <<_ACEOF | |
22107 | /* end confdefs.h. */ | |
22108 | ||
22109 | int | |
22110 | main () | |
22111 | { | |
22112 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22113 | ; | |
22114 | return 0; | |
22115 | } | |
22116 | _ACEOF | |
22117 | rm -f conftest.$ac_objext | |
22118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22119 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22120 | ac_status=$? |
ac1cb8d3 VS |
22121 | grep -v '^ *+' conftest.er1 >conftest.err |
22122 | rm -f conftest.er1 | |
22123 | cat conftest.err >&5 | |
a848cd7e SC |
22124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22125 | (exit $ac_status); } && | |
dee1a63f MB |
22126 | { ac_try='test -z "$ac_cxx_werror_flag" |
22127 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22129 | (eval $ac_try) 2>&5 | |
22130 | ac_status=$? | |
22131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22132 | (exit $ac_status); }; } && | |
22133 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22135 | (eval $ac_try) 2>&5 | |
22136 | ac_status=$? | |
22137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22138 | (exit $ac_status); }; }; then | |
22139 | ac_cv_cxx_const_cast=yes | |
22140 | else | |
22141 | echo "$as_me: failed program was:" >&5 | |
22142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22143 | ||
22144 | ac_cv_cxx_const_cast=no | |
22145 | fi | |
ac1cb8d3 | 22146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22147 | ac_ext=c |
22148 | ac_cpp='$CPP $CPPFLAGS' | |
22149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22152 | ||
22153 | ||
22154 | fi | |
22155 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22156 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22157 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22158 | ||
22159 | cat >>confdefs.h <<\_ACEOF | |
22160 | #define HAVE_CONST_CAST | |
22161 | _ACEOF | |
22162 | ||
22163 | fi | |
22164 | ||
7714864e RL |
22165 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22166 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22167 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22169 | else | |
22170 | ||
22171 | ||
22172 | ac_ext=cc | |
22173 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22177 | ||
22178 | cat >conftest.$ac_ext <<_ACEOF | |
22179 | /* confdefs.h. */ | |
22180 | _ACEOF | |
22181 | cat confdefs.h >>conftest.$ac_ext | |
22182 | cat >>conftest.$ac_ext <<_ACEOF | |
22183 | /* end confdefs.h. */ | |
22184 | #include <typeinfo> | |
22185 | class Base { public : Base () {} virtual void f () = 0;}; | |
22186 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22187 | class Unrelated { public : Unrelated () {} }; | |
22188 | int g (Unrelated&) { return 0; } | |
22189 | int | |
22190 | main () | |
22191 | { | |
22192 | ||
22193 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22194 | ; | |
22195 | return 0; | |
22196 | } | |
22197 | _ACEOF | |
22198 | rm -f conftest.$ac_objext | |
22199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22200 | (eval $ac_compile) 2>conftest.er1 | |
22201 | ac_status=$? | |
22202 | grep -v '^ *+' conftest.er1 >conftest.err | |
22203 | rm -f conftest.er1 | |
22204 | cat conftest.err >&5 | |
22205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22206 | (exit $ac_status); } && | |
dee1a63f MB |
22207 | { ac_try='test -z "$ac_cxx_werror_flag" |
22208 | || test ! -s conftest.err' | |
7714864e RL |
22209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22210 | (eval $ac_try) 2>&5 | |
22211 | ac_status=$? | |
22212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22213 | (exit $ac_status); }; } && | |
22214 | { ac_try='test -s conftest.$ac_objext' | |
22215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22216 | (eval $ac_try) 2>&5 | |
22217 | ac_status=$? | |
22218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22219 | (exit $ac_status); }; }; then | |
22220 | ac_cv_cxx_reinterpret_cast=yes | |
22221 | else | |
22222 | echo "$as_me: failed program was:" >&5 | |
22223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22224 | ||
22225 | ac_cv_cxx_reinterpret_cast=no | |
22226 | fi | |
22227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22228 | ac_ext=c | |
22229 | ac_cpp='$CPP $CPPFLAGS' | |
22230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22233 | ||
22234 | ||
22235 | fi | |
22236 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22237 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22238 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22239 | ||
22240 | cat >>confdefs.h <<\_ACEOF | |
22241 | #define HAVE_REINTERPRET_CAST | |
22242 | _ACEOF | |
22243 | ||
22244 | fi | |
22245 | ||
a848cd7e SC |
22246 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22247 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22248 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22250 | else | |
22251 | ||
22252 | ||
22253 | ac_ext=cc | |
22254 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22255 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22256 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22257 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22258 | ||
22259 | cat >conftest.$ac_ext <<_ACEOF | |
22260 | /* confdefs.h. */ | |
22261 | _ACEOF | |
22262 | cat confdefs.h >>conftest.$ac_ext | |
22263 | cat >>conftest.$ac_ext <<_ACEOF | |
22264 | /* end confdefs.h. */ | |
22265 | #include <typeinfo> | |
22266 | class Base { public : Base () {} virtual void f () = 0; }; | |
22267 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22268 | int g (Derived&) { return 0; } | |
22269 | int | |
22270 | main () | |
22271 | { | |
22272 | ||
22273 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22274 | ; | |
22275 | return 0; | |
22276 | } | |
22277 | _ACEOF | |
22278 | rm -f conftest.$ac_objext | |
22279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22281 | ac_status=$? |
ac1cb8d3 VS |
22282 | grep -v '^ *+' conftest.er1 >conftest.err |
22283 | rm -f conftest.er1 | |
22284 | cat conftest.err >&5 | |
a848cd7e SC |
22285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22286 | (exit $ac_status); } && | |
dee1a63f MB |
22287 | { ac_try='test -z "$ac_cxx_werror_flag" |
22288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22290 | (eval $ac_try) 2>&5 | |
22291 | ac_status=$? | |
22292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22293 | (exit $ac_status); }; } && | |
22294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22296 | (eval $ac_try) 2>&5 | |
22297 | ac_status=$? | |
22298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22299 | (exit $ac_status); }; }; then | |
22300 | ac_cv_cxx_static_cast=yes | |
22301 | else | |
22302 | echo "$as_me: failed program was:" >&5 | |
22303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22304 | ||
22305 | ac_cv_cxx_static_cast=no | |
22306 | fi | |
ac1cb8d3 | 22307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22308 | ac_ext=c |
22309 | ac_cpp='$CPP $CPPFLAGS' | |
22310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22313 | ||
22314 | ||
22315 | fi | |
22316 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22317 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22318 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22319 | ||
22320 | cat >>confdefs.h <<\_ACEOF | |
22321 | #define HAVE_STATIC_CAST | |
22322 | _ACEOF | |
22323 | ||
22324 | fi | |
22325 | ||
22326 | ||
3c28b7cb MW |
22327 | if test "x$SUNCXX" = xyes; then |
22328 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
22329 | fi | |
22330 | ||
9122d155 VZ |
22331 | if test "x$SUNCC" = xyes; then |
22332 | CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" | |
22333 | fi | |
22334 | ||
0ad5d837 VZ |
22335 | if test "x$SGICC" = "xyes"; then |
22336 | CFLAGS="$CFLAGS -woff 3970" | |
22337 | fi | |
22338 | if test "x$SGICXX" = "xyes"; then | |
22339 | CXXFLAGS="$CXXFLAGS -woff 3970" | |
22340 | fi | |
22341 | ||
2eef8513 VZ |
22342 | if test "x$HPCC" = "xyes"; then |
22343 | CFLAGS="$CFLAGS +W 2011,2450" | |
22344 | fi | |
22345 | if test "x$HPCXX" = "xyes"; then | |
22346 | CXXFLAGS="$CXXFLAGS +W 2340" | |
22347 | fi | |
22348 | ||
22349 | if test "x$COMPAQCXX" = "xyes"; then | |
22350 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22351 | fi | |
22352 | ||
f56c22b4 | 22353 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22354 | ac_ext=cc |
22355 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22356 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22357 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22358 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22359 | ||
22360 | ||
f56c22b4 MW |
22361 | if test "$wxUSE_UNICODE" = "yes"; then |
22362 | std_string="std::wstring" | |
22363 | char_type="wchar_t" | |
22364 | else | |
22365 | std_string="std::string" | |
22366 | char_type="char" | |
22367 | fi | |
22368 | ||
22369 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22370 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22371 | cat >conftest.$ac_ext <<_ACEOF |
22372 | /* confdefs.h. */ | |
22373 | _ACEOF | |
22374 | cat confdefs.h >>conftest.$ac_ext | |
22375 | cat >>conftest.$ac_ext <<_ACEOF | |
22376 | /* end confdefs.h. */ | |
22377 | #include <string> | |
a848cd7e SC |
22378 | int |
22379 | main () | |
22380 | { | |
f56c22b4 | 22381 | $std_string foo; |
a848cd7e SC |
22382 | ; |
22383 | return 0; | |
22384 | } | |
22385 | _ACEOF | |
22386 | rm -f conftest.$ac_objext | |
22387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22389 | ac_status=$? |
ac1cb8d3 VS |
22390 | grep -v '^ *+' conftest.er1 >conftest.err |
22391 | rm -f conftest.er1 | |
22392 | cat conftest.err >&5 | |
a848cd7e SC |
22393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22394 | (exit $ac_status); } && | |
dee1a63f MB |
22395 | { ac_try='test -z "$ac_cxx_werror_flag" |
22396 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22398 | (eval $ac_try) 2>&5 | |
22399 | ac_status=$? | |
22400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22401 | (exit $ac_status); }; } && | |
22402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22404 | (eval $ac_try) 2>&5 | |
22405 | ac_status=$? | |
22406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22407 | (exit $ac_status); }; }; then | |
22408 | echo "$as_me:$LINENO: result: yes" >&5 | |
22409 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22410 | cat >>confdefs.h <<\_ACEOF |
22411 | #define HAVE_STD_WSTRING 1 | |
22412 | _ACEOF | |
22413 | ||
a848cd7e SC |
22414 | else |
22415 | echo "$as_me: failed program was:" >&5 | |
22416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22417 | ||
22418 | echo "$as_me:$LINENO: result: no" >&5 | |
22419 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22420 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22421 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22422 | cat >conftest.$ac_ext <<_ACEOF |
22423 | /* confdefs.h. */ | |
22424 | _ACEOF | |
22425 | cat confdefs.h >>conftest.$ac_ext | |
22426 | cat >>conftest.$ac_ext <<_ACEOF | |
22427 | /* end confdefs.h. */ | |
22428 | ||
22429 | #ifdef HAVE_WCHAR_H | |
22430 | # ifdef __CYGWIN__ | |
22431 | # include <stddef.h> | |
22432 | # endif | |
22433 | # include <wchar.h> | |
22434 | #endif | |
22435 | #ifdef HAVE_STDLIB_H | |
22436 | # include <stdlib.h> | |
22437 | #endif | |
22438 | #include <stdio.h> | |
22439 | #include <string> | |
22440 | ||
22441 | int | |
22442 | main () | |
22443 | { | |
f56c22b4 MW |
22444 | std::basic_string<$char_type> foo; |
22445 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22446 | ; |
22447 | return 0; | |
22448 | } | |
22449 | _ACEOF | |
22450 | rm -f conftest.$ac_objext | |
22451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22452 | (eval $ac_compile) 2>conftest.er1 | |
22453 | ac_status=$? | |
22454 | grep -v '^ *+' conftest.er1 >conftest.err | |
22455 | rm -f conftest.er1 | |
22456 | cat conftest.err >&5 | |
22457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22458 | (exit $ac_status); } && | |
dee1a63f MB |
22459 | { ac_try='test -z "$ac_cxx_werror_flag" |
22460 | || test ! -s conftest.err' | |
0a08f02a MB |
22461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22462 | (eval $ac_try) 2>&5 | |
22463 | ac_status=$? | |
22464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22465 | (exit $ac_status); }; } && | |
22466 | { ac_try='test -s conftest.$ac_objext' | |
22467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22468 | (eval $ac_try) 2>&5 | |
22469 | ac_status=$? | |
22470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22471 | (exit $ac_status); }; }; then | |
22472 | echo "$as_me:$LINENO: result: yes" >&5 | |
22473 | echo "${ECHO_T}yes" >&6 | |
22474 | else | |
22475 | echo "$as_me: failed program was:" >&5 | |
22476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22477 | ||
22478 | echo "$as_me:$LINENO: result: no" >&5 | |
22479 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22480 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22481 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22482 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22483 | { (exit 1); exit 1; }; } | |
22484 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22485 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22486 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22487 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22488 | else |
22489 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22490 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22491 | wxUSE_STD_STRING=no | |
22492 | fi | |
22493 | ||
0a08f02a | 22494 | |
a848cd7e | 22495 | fi |
ac1cb8d3 | 22496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22497 | |
0a08f02a MB |
22498 | fi |
22499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22500 | ||
22501 | ac_ext=c | |
22502 | ac_cpp='$CPP $CPPFLAGS' | |
22503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22506 | ||
22507 | fi | |
22508 | ||
22509 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22510 | ac_ext=cc | |
22511 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22512 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22513 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22514 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22515 | ||
22516 | ||
22517 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22518 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22519 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22521 | else | |
22522 | cat >conftest.$ac_ext <<_ACEOF | |
22523 | /* confdefs.h. */ | |
22524 | _ACEOF | |
22525 | cat confdefs.h >>conftest.$ac_ext | |
22526 | cat >>conftest.$ac_ext <<_ACEOF | |
22527 | /* end confdefs.h. */ | |
22528 | #include <iostream> | |
22529 | ||
22530 | int | |
22531 | main () | |
22532 | { | |
22533 | if ((std::istream *) 0) | |
22534 | return 0; | |
22535 | if (sizeof (std::istream)) | |
22536 | return 0; | |
22537 | ; | |
22538 | return 0; | |
22539 | } | |
22540 | _ACEOF | |
22541 | rm -f conftest.$ac_objext | |
22542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22543 | (eval $ac_compile) 2>conftest.er1 | |
22544 | ac_status=$? | |
22545 | grep -v '^ *+' conftest.er1 >conftest.err | |
22546 | rm -f conftest.er1 | |
22547 | cat conftest.err >&5 | |
22548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22549 | (exit $ac_status); } && | |
dee1a63f MB |
22550 | { ac_try='test -z "$ac_cxx_werror_flag" |
22551 | || test ! -s conftest.err' | |
f56c22b4 MW |
22552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22553 | (eval $ac_try) 2>&5 | |
22554 | ac_status=$? | |
22555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22556 | (exit $ac_status); }; } && | |
22557 | { ac_try='test -s conftest.$ac_objext' | |
22558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22559 | (eval $ac_try) 2>&5 | |
22560 | ac_status=$? | |
22561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22562 | (exit $ac_status); }; }; then | |
22563 | ac_cv_type_std__istream=yes | |
22564 | else | |
22565 | echo "$as_me: failed program was:" >&5 | |
22566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22567 | ||
22568 | ac_cv_type_std__istream=no | |
22569 | fi | |
22570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22571 | fi | |
22572 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22573 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22574 | if test $ac_cv_type_std__istream = yes; then | |
22575 | ||
22576 | cat >>confdefs.h <<_ACEOF | |
22577 | #define HAVE_STD__ISTREAM 1 | |
22578 | _ACEOF | |
22579 | ||
22580 | ||
22581 | else | |
22582 | wxUSE_STD_IOSTREAM=no | |
22583 | fi | |
22584 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22585 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22586 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22588 | else | |
22589 | cat >conftest.$ac_ext <<_ACEOF | |
22590 | /* confdefs.h. */ | |
22591 | _ACEOF | |
22592 | cat confdefs.h >>conftest.$ac_ext | |
22593 | cat >>conftest.$ac_ext <<_ACEOF | |
22594 | /* end confdefs.h. */ | |
22595 | #include <iostream> | |
22596 | ||
22597 | int | |
22598 | main () | |
22599 | { | |
22600 | if ((std::ostream *) 0) | |
22601 | return 0; | |
22602 | if (sizeof (std::ostream)) | |
22603 | return 0; | |
22604 | ; | |
22605 | return 0; | |
22606 | } | |
22607 | _ACEOF | |
22608 | rm -f conftest.$ac_objext | |
22609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22610 | (eval $ac_compile) 2>conftest.er1 | |
22611 | ac_status=$? | |
22612 | grep -v '^ *+' conftest.er1 >conftest.err | |
22613 | rm -f conftest.er1 | |
22614 | cat conftest.err >&5 | |
22615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22616 | (exit $ac_status); } && | |
dee1a63f MB |
22617 | { ac_try='test -z "$ac_cxx_werror_flag" |
22618 | || test ! -s conftest.err' | |
f56c22b4 MW |
22619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22620 | (eval $ac_try) 2>&5 | |
22621 | ac_status=$? | |
22622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22623 | (exit $ac_status); }; } && | |
22624 | { ac_try='test -s conftest.$ac_objext' | |
22625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22626 | (eval $ac_try) 2>&5 | |
22627 | ac_status=$? | |
22628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22629 | (exit $ac_status); }; }; then | |
22630 | ac_cv_type_std__ostream=yes | |
22631 | else | |
22632 | echo "$as_me: failed program was:" >&5 | |
22633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22634 | ||
22635 | ac_cv_type_std__ostream=no | |
22636 | fi | |
22637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22638 | fi | |
22639 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22640 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22641 | if test $ac_cv_type_std__ostream = yes; then | |
22642 | ||
22643 | cat >>confdefs.h <<_ACEOF | |
22644 | #define HAVE_STD__OSTREAM 1 | |
22645 | _ACEOF | |
22646 | ||
22647 | ||
22648 | else | |
22649 | wxUSE_STD_IOSTREAM=no | |
22650 | fi | |
22651 | ||
22652 | ||
22653 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22654 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22655 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
22656 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
22657 | { (exit 1); exit 1; }; } | |
22658 | else | |
22659 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 22660 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 22661 | fi |
f56c22b4 MW |
22662 | fi |
22663 | ||
22664 | ac_ext=c | |
22665 | ac_cpp='$CPP $CPPFLAGS' | |
22666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
22668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22669 | ||
22670 | fi | |
22671 | ||
22672 | if test "$wxUSE_STL" = "yes"; then | |
22673 | ac_ext=cc | |
22674 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22675 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22676 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22677 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22678 | ||
22679 | ||
22680 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
22681 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
22682 | cat >conftest.$ac_ext <<_ACEOF |
22683 | /* confdefs.h. */ | |
22684 | _ACEOF | |
22685 | cat confdefs.h >>conftest.$ac_ext | |
22686 | cat >>conftest.$ac_ext <<_ACEOF | |
22687 | /* end confdefs.h. */ | |
22688 | #include <string> | |
0a08f02a MB |
22689 | #include <functional> |
22690 | #include <algorithm> | |
22691 | #include <vector> | |
22692 | #include <list> | |
a848cd7e SC |
22693 | int |
22694 | main () | |
22695 | { | |
0a08f02a MB |
22696 | std::vector<int> moo; |
22697 | std::list<int> foo; | |
22698 | std::vector<int>::iterator it = | |
22699 | std::find_if(moo.begin(), moo.end(), | |
22700 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
22701 | ; |
22702 | return 0; | |
22703 | } | |
22704 | _ACEOF | |
22705 | rm -f conftest.$ac_objext | |
22706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22707 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22708 | ac_status=$? |
ac1cb8d3 VS |
22709 | grep -v '^ *+' conftest.er1 >conftest.err |
22710 | rm -f conftest.er1 | |
22711 | cat conftest.err >&5 | |
a848cd7e SC |
22712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22713 | (exit $ac_status); } && | |
dee1a63f MB |
22714 | { ac_try='test -z "$ac_cxx_werror_flag" |
22715 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22717 | (eval $ac_try) 2>&5 | |
22718 | ac_status=$? | |
22719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22720 | (exit $ac_status); }; } && | |
22721 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22723 | (eval $ac_try) 2>&5 | |
22724 | ac_status=$? | |
22725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22726 | (exit $ac_status); }; }; then | |
22727 | echo "$as_me:$LINENO: result: yes" >&5 | |
22728 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
22729 | else |
22730 | echo "$as_me: failed program was:" >&5 | |
22731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22732 | ||
22733 | echo "$as_me:$LINENO: result: no" >&5 | |
22734 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
22735 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
22736 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
22737 | { (exit 1); exit 1; }; } | |
a848cd7e | 22738 | fi |
ac1cb8d3 | 22739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22740 | |
22741 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
22742 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
22743 | cat >conftest.$ac_ext <<_ACEOF | |
22744 | /* confdefs.h. */ | |
22745 | _ACEOF | |
22746 | cat confdefs.h >>conftest.$ac_ext | |
22747 | cat >>conftest.$ac_ext <<_ACEOF | |
22748 | /* end confdefs.h. */ | |
22749 | #include <string> | |
22750 | int | |
22751 | main () | |
22752 | { | |
22753 | std::string foo, bar; | |
22754 | foo.compare(bar); | |
22755 | foo.compare(1, 1, bar); | |
22756 | foo.compare(1, 1, bar, 1, 1); | |
22757 | foo.compare(""); | |
22758 | foo.compare(1, 1, ""); | |
22759 | foo.compare(1, 1, "", 2); | |
22760 | ; | |
22761 | return 0; | |
22762 | } | |
22763 | _ACEOF | |
22764 | rm -f conftest.$ac_objext | |
22765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22766 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22767 | ac_status=$? |
ac1cb8d3 VS |
22768 | grep -v '^ *+' conftest.er1 >conftest.err |
22769 | rm -f conftest.er1 | |
22770 | cat conftest.err >&5 | |
a848cd7e SC |
22771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22772 | (exit $ac_status); } && | |
dee1a63f MB |
22773 | { ac_try='test -z "$ac_cxx_werror_flag" |
22774 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22776 | (eval $ac_try) 2>&5 | |
22777 | ac_status=$? | |
22778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22779 | (exit $ac_status); }; } && | |
22780 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22782 | (eval $ac_try) 2>&5 | |
22783 | ac_status=$? | |
22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22785 | (exit $ac_status); }; }; then | |
22786 | echo "$as_me:$LINENO: result: yes" >&5 | |
22787 | echo "${ECHO_T}yes" >&6 | |
22788 | cat >>confdefs.h <<\_ACEOF | |
22789 | #define HAVE_STD_STRING_COMPARE 1 | |
22790 | _ACEOF | |
22791 | ||
22792 | else | |
22793 | echo "$as_me: failed program was:" >&5 | |
22794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22795 | ||
22796 | echo "$as_me:$LINENO: result: no" >&5 | |
22797 | echo "${ECHO_T}no" >&6 | |
22798 | fi | |
ac1cb8d3 | 22799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22800 | |
22801 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22802 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22803 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22804 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22806 | fi | |
22807 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22808 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22809 | else | |
22810 | # Is the header compilable? | |
22811 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
22812 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
22813 | cat >conftest.$ac_ext <<_ACEOF | |
22814 | /* confdefs.h. */ | |
22815 | _ACEOF | |
22816 | cat confdefs.h >>conftest.$ac_ext | |
22817 | cat >>conftest.$ac_ext <<_ACEOF | |
22818 | /* end confdefs.h. */ | |
22819 | $ac_includes_default | |
22820 | #include <hash_map> | |
22821 | _ACEOF | |
22822 | rm -f conftest.$ac_objext | |
22823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22824 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22825 | ac_status=$? |
ac1cb8d3 VS |
22826 | grep -v '^ *+' conftest.er1 >conftest.err |
22827 | rm -f conftest.er1 | |
22828 | cat conftest.err >&5 | |
bdcade0a MB |
22829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22830 | (exit $ac_status); } && | |
dee1a63f MB |
22831 | { ac_try='test -z "$ac_cxx_werror_flag" |
22832 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22834 | (eval $ac_try) 2>&5 | |
22835 | ac_status=$? | |
22836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22837 | (exit $ac_status); }; } && | |
22838 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22840 | (eval $ac_try) 2>&5 | |
22841 | ac_status=$? | |
22842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22843 | (exit $ac_status); }; }; then | |
22844 | ac_header_compiler=yes | |
22845 | else | |
22846 | echo "$as_me: failed program was:" >&5 | |
22847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22848 | ||
22849 | ac_header_compiler=no | |
22850 | fi | |
ac1cb8d3 | 22851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22854 | ||
22855 | # Is the header present? | |
22856 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
22857 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
22858 | cat >conftest.$ac_ext <<_ACEOF | |
22859 | /* confdefs.h. */ | |
22860 | _ACEOF | |
22861 | cat confdefs.h >>conftest.$ac_ext | |
22862 | cat >>conftest.$ac_ext <<_ACEOF | |
22863 | /* end confdefs.h. */ | |
22864 | #include <hash_map> | |
22865 | _ACEOF | |
22866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22868 | ac_status=$? | |
22869 | grep -v '^ *+' conftest.er1 >conftest.err | |
22870 | rm -f conftest.er1 | |
22871 | cat conftest.err >&5 | |
22872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22873 | (exit $ac_status); } >/dev/null; then | |
22874 | if test -s conftest.err; then | |
22875 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22876 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22877 | else |
22878 | ac_cpp_err= | |
22879 | fi | |
22880 | else | |
22881 | ac_cpp_err=yes | |
22882 | fi | |
22883 | if test -z "$ac_cpp_err"; then | |
22884 | ac_header_preproc=yes | |
22885 | else | |
22886 | echo "$as_me: failed program was:" >&5 | |
22887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22888 | ||
22889 | ac_header_preproc=no | |
22890 | fi | |
22891 | rm -f conftest.err conftest.$ac_ext | |
22892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22894 | ||
22895 | # So? What about this header? | |
ac1cb8d3 VS |
22896 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22897 | yes:no: ) | |
bdcade0a MB |
22898 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
22899 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22900 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
22901 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
22902 | ac_header_preproc=yes | |
bdcade0a | 22903 | ;; |
ac1cb8d3 | 22904 | no:yes:* ) |
bdcade0a MB |
22905 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
22906 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22907 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
22908 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
22909 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
22910 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
22911 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
22912 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
22913 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
22914 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22915 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
22916 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
22917 | ( |
22918 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22919 | ## ----------------------------------------- ## |
22920 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22921 | ## ----------------------------------------- ## | |
bdcade0a MB |
22922 | _ASBOX |
22923 | ) | | |
22924 | sed "s/^/$as_me: WARNING: /" >&2 | |
22925 | ;; | |
22926 | esac | |
22927 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22928 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22929 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22931 | else | |
22932 | ac_cv_header_hash_map=$ac_header_preproc | |
22933 | fi | |
22934 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22935 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22936 | ||
22937 | fi | |
22938 | if test $ac_cv_header_hash_map = yes; then | |
22939 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
22940 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
22941 | cat >conftest.$ac_ext <<_ACEOF | |
22942 | /* confdefs.h. */ | |
22943 | _ACEOF | |
22944 | cat confdefs.h >>conftest.$ac_ext | |
22945 | cat >>conftest.$ac_ext <<_ACEOF | |
22946 | /* end confdefs.h. */ | |
22947 | #include <hash_map> | |
22948 | #include <hash_set> | |
22949 | int | |
22950 | main () | |
22951 | { | |
22952 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
22953 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
22954 | ; | |
22955 | return 0; | |
22956 | } | |
22957 | _ACEOF | |
22958 | rm -f conftest.$ac_objext | |
22959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22960 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22961 | ac_status=$? |
ac1cb8d3 VS |
22962 | grep -v '^ *+' conftest.er1 >conftest.err |
22963 | rm -f conftest.er1 | |
22964 | cat conftest.err >&5 | |
bdcade0a MB |
22965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22966 | (exit $ac_status); } && | |
dee1a63f MB |
22967 | { ac_try='test -z "$ac_cxx_werror_flag" |
22968 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22970 | (eval $ac_try) 2>&5 | |
22971 | ac_status=$? | |
22972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22973 | (exit $ac_status); }; } && | |
22974 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22976 | (eval $ac_try) 2>&5 | |
22977 | ac_status=$? | |
22978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22979 | (exit $ac_status); }; }; then | |
22980 | echo "$as_me:$LINENO: result: yes" >&5 | |
22981 | echo "${ECHO_T}yes" >&6 | |
22982 | cat >>confdefs.h <<\_ACEOF | |
22983 | #define HAVE_HASH_MAP 1 | |
22984 | _ACEOF | |
22985 | ||
22986 | cat >>confdefs.h <<\_ACEOF | |
22987 | #define HAVE_STD_HASH_MAP 1 | |
22988 | _ACEOF | |
22989 | ||
22990 | else | |
22991 | echo "$as_me: failed program was:" >&5 | |
22992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22993 | ||
22994 | echo "$as_me:$LINENO: result: no" >&5 | |
22995 | echo "${ECHO_T}no" >&6 | |
22996 | fi | |
ac1cb8d3 | 22997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22998 | |
22999 | fi | |
23000 | ||
23001 | ||
23002 | ||
23003 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23004 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23005 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23006 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23008 | fi | |
23009 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23010 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23011 | else | |
23012 | # Is the header compilable? | |
23013 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23014 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23015 | cat >conftest.$ac_ext <<_ACEOF | |
23016 | /* confdefs.h. */ | |
23017 | _ACEOF | |
23018 | cat confdefs.h >>conftest.$ac_ext | |
23019 | cat >>conftest.$ac_ext <<_ACEOF | |
23020 | /* end confdefs.h. */ | |
23021 | $ac_includes_default | |
23022 | #include <ext/hash_map> | |
23023 | _ACEOF | |
23024 | rm -f conftest.$ac_objext | |
23025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23026 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23027 | ac_status=$? |
ac1cb8d3 VS |
23028 | grep -v '^ *+' conftest.er1 >conftest.err |
23029 | rm -f conftest.er1 | |
23030 | cat conftest.err >&5 | |
bdcade0a MB |
23031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23032 | (exit $ac_status); } && | |
dee1a63f MB |
23033 | { ac_try='test -z "$ac_cxx_werror_flag" |
23034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23036 | (eval $ac_try) 2>&5 | |
23037 | ac_status=$? | |
23038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23039 | (exit $ac_status); }; } && | |
23040 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23042 | (eval $ac_try) 2>&5 | |
23043 | ac_status=$? | |
23044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23045 | (exit $ac_status); }; }; then | |
23046 | ac_header_compiler=yes | |
23047 | else | |
23048 | echo "$as_me: failed program was:" >&5 | |
23049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23050 | ||
23051 | ac_header_compiler=no | |
23052 | fi | |
ac1cb8d3 | 23053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23054 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23055 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23056 | ||
23057 | # Is the header present? | |
23058 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23059 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23060 | cat >conftest.$ac_ext <<_ACEOF | |
23061 | /* confdefs.h. */ | |
23062 | _ACEOF | |
23063 | cat confdefs.h >>conftest.$ac_ext | |
23064 | cat >>conftest.$ac_ext <<_ACEOF | |
23065 | /* end confdefs.h. */ | |
23066 | #include <ext/hash_map> | |
23067 | _ACEOF | |
23068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23070 | ac_status=$? | |
23071 | grep -v '^ *+' conftest.er1 >conftest.err | |
23072 | rm -f conftest.er1 | |
23073 | cat conftest.err >&5 | |
23074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23075 | (exit $ac_status); } >/dev/null; then | |
23076 | if test -s conftest.err; then | |
23077 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23078 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23079 | else |
23080 | ac_cpp_err= | |
23081 | fi | |
23082 | else | |
23083 | ac_cpp_err=yes | |
23084 | fi | |
23085 | if test -z "$ac_cpp_err"; then | |
23086 | ac_header_preproc=yes | |
23087 | else | |
23088 | echo "$as_me: failed program was:" >&5 | |
23089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23090 | ||
23091 | ac_header_preproc=no | |
23092 | fi | |
23093 | rm -f conftest.err conftest.$ac_ext | |
23094 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23095 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23096 | ||
23097 | # So? What about this header? | |
ac1cb8d3 VS |
23098 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23099 | yes:no: ) | |
bdcade0a MB |
23100 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23101 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23102 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23103 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23104 | ac_header_preproc=yes | |
bdcade0a | 23105 | ;; |
ac1cb8d3 | 23106 | no:yes:* ) |
bdcade0a MB |
23107 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23108 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23109 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23110 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23111 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23112 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23113 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23114 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23115 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23116 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23117 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23118 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23119 | ( |
23120 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23121 | ## ----------------------------------------- ## |
23122 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23123 | ## ----------------------------------------- ## | |
bdcade0a MB |
23124 | _ASBOX |
23125 | ) | | |
23126 | sed "s/^/$as_me: WARNING: /" >&2 | |
23127 | ;; | |
23128 | esac | |
23129 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23130 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23131 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23133 | else | |
23134 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23135 | fi | |
23136 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23137 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23138 | ||
23139 | fi | |
23140 | if test $ac_cv_header_ext_hash_map = yes; then | |
23141 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23142 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23143 | cat >conftest.$ac_ext <<_ACEOF | |
23144 | /* confdefs.h. */ | |
23145 | _ACEOF | |
23146 | cat confdefs.h >>conftest.$ac_ext | |
23147 | cat >>conftest.$ac_ext <<_ACEOF | |
23148 | /* end confdefs.h. */ | |
23149 | #include <ext/hash_map> | |
23150 | #include <ext/hash_set> | |
23151 | int | |
23152 | main () | |
23153 | { | |
23154 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23155 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23156 | ; | |
23157 | return 0; | |
23158 | } | |
23159 | _ACEOF | |
23160 | rm -f conftest.$ac_objext | |
23161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23162 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23163 | ac_status=$? |
ac1cb8d3 VS |
23164 | grep -v '^ *+' conftest.er1 >conftest.err |
23165 | rm -f conftest.er1 | |
23166 | cat conftest.err >&5 | |
bdcade0a MB |
23167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23168 | (exit $ac_status); } && | |
dee1a63f MB |
23169 | { ac_try='test -z "$ac_cxx_werror_flag" |
23170 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23172 | (eval $ac_try) 2>&5 | |
23173 | ac_status=$? | |
23174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23175 | (exit $ac_status); }; } && | |
23176 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23178 | (eval $ac_try) 2>&5 | |
23179 | ac_status=$? | |
23180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23181 | (exit $ac_status); }; }; then | |
23182 | echo "$as_me:$LINENO: result: yes" >&5 | |
23183 | echo "${ECHO_T}yes" >&6 | |
23184 | cat >>confdefs.h <<\_ACEOF | |
23185 | #define HAVE_EXT_HASH_MAP 1 | |
23186 | _ACEOF | |
23187 | ||
23188 | cat >>confdefs.h <<\_ACEOF | |
23189 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23190 | _ACEOF | |
23191 | ||
23192 | else | |
23193 | echo "$as_me: failed program was:" >&5 | |
23194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23195 | ||
23196 | echo "$as_me:$LINENO: result: no" >&5 | |
23197 | echo "${ECHO_T}no" >&6 | |
23198 | fi | |
ac1cb8d3 | 23199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23200 | |
23201 | fi | |
23202 | ||
23203 | ||
a848cd7e SC |
23204 | |
23205 | ac_ext=c | |
23206 | ac_cpp='$CPP $CPPFLAGS' | |
23207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23210 | ||
23211 | fi | |
23212 | ||
23213 | ||
23214 | SEARCH_INCLUDE="\ | |
23215 | /usr/local/include \ | |
23216 | \ | |
23217 | /usr/Motif-2.1/include \ | |
23218 | /usr/Motif-1.2/include \ | |
23219 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23220 | \ |
23221 | /usr/dt/include \ | |
23222 | /usr/openwin/include \ | |
23223 | \ | |
23224 | /usr/include/Xm \ | |
23225 | \ | |
23226 | /usr/X11R6/include \ | |
23227 | /usr/X11R6.4/include \ | |
23228 | /usr/X11R5/include \ | |
23229 | /usr/X11R4/include \ | |
23230 | \ | |
23231 | /usr/include/X11R6 \ | |
23232 | /usr/include/X11R5 \ | |
23233 | /usr/include/X11R4 \ | |
23234 | \ | |
23235 | /usr/local/X11R6/include \ | |
23236 | /usr/local/X11R5/include \ | |
23237 | /usr/local/X11R4/include \ | |
23238 | \ | |
23239 | /usr/local/include/X11R6 \ | |
23240 | /usr/local/include/X11R5 \ | |
23241 | /usr/local/include/X11R4 \ | |
23242 | \ | |
23243 | /usr/X11/include \ | |
23244 | /usr/include/X11 \ | |
23245 | /usr/local/X11/include \ | |
23246 | /usr/local/include/X11 \ | |
23247 | \ | |
a848cd7e | 23248 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23249 | /usr/pkg/include \ |
23250 | \ | |
a848cd7e SC |
23251 | /usr/openwin/share/include" |
23252 | ||
6f9cf1e6 | 23253 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23254 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23255 | |
23256 | case "${host}" in | |
23257 | *-*-irix6* ) | |
23258 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23260 | else | |
23261 | ||
c687b303 VZ |
23262 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23263 | for e in a so sl dylib dll.a; do | |
23264 | libc="$d/libc.$e" | |
23265 | if test -f $libc; then | |
23266 | save_LIBS="$LIBS" | |
23267 | LIBS="$libc" | |
23268 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23269 | int main() { return 0; } |
23270 | _ACEOF | |
23271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23273 | (eval $ac_link) 2>conftest.er1 | |
23274 | ac_status=$? | |
23275 | grep -v '^ *+' conftest.er1 >conftest.err | |
23276 | rm -f conftest.er1 | |
23277 | cat conftest.err >&5 | |
23278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23279 | (exit $ac_status); } && | |
dee1a63f MB |
23280 | { ac_try='test -z "$ac_c_werror_flag" |
23281 | || test ! -s conftest.err' | |
0ad5d837 VZ |
23282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23283 | (eval $ac_try) 2>&5 | |
23284 | ac_status=$? | |
23285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23286 | (exit $ac_status); }; } && | |
23287 | { ac_try='test -s conftest$ac_exeext' | |
23288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23289 | (eval $ac_try) 2>&5 | |
23290 | ac_status=$? | |
23291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23292 | (exit $ac_status); }; }; then | |
23293 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23294 | else | |
23295 | echo "$as_me: failed program was:" >&5 | |
23296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23297 | ||
23298 | fi | |
23299 | rm -f conftest.err conftest.$ac_objext \ | |
23300 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23301 | LIBS="$save_LIBS" |
23302 | if test "x$wx_cv_std_libpath" != "x"; then | |
23303 | break 2 | |
23304 | fi | |
23305 | fi | |
23306 | done | |
23307 | done | |
23308 | if test "x$wx_cv_std_libpath" = "x"; then | |
23309 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23310 | fi |
0ad5d837 VZ |
23311 | |
23312 | ||
23313 | fi | |
6f9cf1e6 MW |
23314 | |
23315 | ;; | |
23316 | ||
23317 | *-*-solaris2* ) | |
23318 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23319 | wx_cv_std_libpath="lib/64" | |
23320 | else | |
23321 | wx_cv_std_libpath="lib" | |
23322 | fi | |
23323 | ;; | |
23324 | ||
23325 | *-*-linux* ) | |
23326 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23327 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23328 | wx_cv_std_libpath="lib64" | |
23329 | else | |
23330 | wx_cv_std_libpath="lib" | |
23331 | fi | |
c687b303 VZ |
23332 | ;; |
23333 | ||
23334 | *) | |
23335 | wx_cv_std_libpath="lib"; | |
23336 | ;; | |
23337 | esac | |
0ad5d837 | 23338 | |
6f9cf1e6 MW |
23339 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23340 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23341 | ||
23342 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23343 | |
3eca31dc MW |
23344 | if test "$build" != "$host" -a "$GCC" = yes; then |
23345 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23346 | cross_root=`dirname $cross_root` | |
23347 | cross_root=`dirname $cross_root` | |
23348 | ||
23349 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23350 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23351 | ||
23352 | if test -z "$PKG_CONFIG_PATH"; then | |
23353 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23354 | export PKG_CONFIG_PATH | |
23355 | fi | |
23356 | ||
23357 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23358 | ||
23359 | ac_find_includes= | |
23360 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23361 | do | |
23362 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23363 | ac_find_includes=$ac_dir | |
23364 | break | |
23365 | fi | |
23366 | done | |
23367 | ||
23368 | x_includes=$ac_find_includes | |
23369 | fi | |
23370 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23371 | ||
0ad5d837 VZ |
23372 | ac_find_libraries= |
23373 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23374 | do |
23375 | for ac_extension in a so sl dylib dll.a; do | |
23376 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23377 | ac_find_libraries=$ac_dir | |
23378 | break 2 | |
23379 | fi | |
23380 | done | |
23381 | done | |
23382 | ||
23383 | x_libraries=$ac_find_libraries | |
23384 | fi | |
23385 | fi | |
23386 | fi | |
23387 | ||
a848cd7e SC |
23388 | |
23389 | cat >confcache <<\_ACEOF | |
23390 | # This file is a shell script that caches the results of configure | |
23391 | # tests run on this system so they can be shared between configure | |
23392 | # scripts and configure runs, see configure's option --config-cache. | |
23393 | # It is not useful on other systems. If it contains results you don't | |
23394 | # want to keep, you may remove or edit it. | |
23395 | # | |
23396 | # config.status only pays attention to the cache file if you give it | |
23397 | # the --recheck option to rerun configure. | |
23398 | # | |
23399 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23400 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23401 | # following values. | |
23402 | ||
23403 | _ACEOF | |
23404 | ||
23405 | # The following way of writing the cache mishandles newlines in values, | |
23406 | # but we know of no workaround that is simple, portable, and efficient. | |
23407 | # So, don't put newlines in cache variables' values. | |
23408 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23409 | # and sets the high bit in the cache file unless we assign to the vars. | |
23410 | { | |
23411 | (set) 2>&1 | | |
23412 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23413 | *ac_space=\ *) | |
23414 | # `set' does not quote correctly, so add quotes (double-quote | |
23415 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23416 | sed -n \ | |
ac1cb8d3 VS |
23417 | "s/'/'\\\\''/g; |
23418 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23419 | ;; |
23420 | *) | |
23421 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23422 | sed -n \ | |
ac1cb8d3 | 23423 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23424 | ;; |
23425 | esac; | |
23426 | } | | |
23427 | sed ' | |
23428 | t clear | |
23429 | : clear | |
23430 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23431 | t end | |
23432 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23433 | : end' >>confcache | |
23434 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23435 | if test -w $cache_file; then | |
23436 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23437 | cat confcache >$cache_file | |
23438 | else | |
23439 | echo "not updating unwritable cache $cache_file" | |
23440 | fi | |
23441 | fi | |
23442 | rm -f confcache | |
23443 | ||
23444 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23445 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23446 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23447 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23449 | else | |
23450 | ||
23451 | cat >conftest.$ac_ext <<_ACEOF | |
23452 | /* confdefs.h. */ | |
23453 | _ACEOF | |
23454 | cat confdefs.h >>conftest.$ac_ext | |
23455 | cat >>conftest.$ac_ext <<_ACEOF | |
23456 | /* end confdefs.h. */ | |
23457 | #include <features.h> | |
23458 | int | |
23459 | main () | |
23460 | { | |
23461 | ||
23462 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23463 | not glibc 2.1 |
a848cd7e SC |
23464 | #endif |
23465 | ||
23466 | ; | |
23467 | return 0; | |
23468 | } | |
23469 | _ACEOF | |
23470 | rm -f conftest.$ac_objext | |
23471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23472 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23473 | ac_status=$? |
ac1cb8d3 VS |
23474 | grep -v '^ *+' conftest.er1 >conftest.err |
23475 | rm -f conftest.er1 | |
23476 | cat conftest.err >&5 | |
a848cd7e SC |
23477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23478 | (exit $ac_status); } && | |
dee1a63f MB |
23479 | { ac_try='test -z "$ac_c_werror_flag" |
23480 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23482 | (eval $ac_try) 2>&5 | |
23483 | ac_status=$? | |
23484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23485 | (exit $ac_status); }; } && | |
23486 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23488 | (eval $ac_try) 2>&5 | |
23489 | ac_status=$? | |
23490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23491 | (exit $ac_status); }; }; then | |
23492 | ||
23493 | wx_cv_lib_glibc21=yes | |
23494 | ||
23495 | else | |
23496 | echo "$as_me: failed program was:" >&5 | |
23497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23498 | ||
23499 | ||
23500 | wx_cv_lib_glibc21=no | |
23501 | ||
23502 | ||
23503 | fi | |
ac1cb8d3 | 23504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23505 | |
23506 | fi | |
23507 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23508 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23509 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23510 | cat >>confdefs.h <<\_ACEOF | |
23511 | #define wxHAVE_GLIBC2 1 | |
23512 | _ACEOF | |
23513 | ||
23514 | fi | |
23515 | fi | |
23516 | ||
23517 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23518 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23519 | cat >>confdefs.h <<\_ACEOF | |
23520 | #define _GNU_SOURCE 1 | |
23521 | _ACEOF | |
23522 | ||
23523 | fi | |
23524 | fi | |
23525 | ||
23526 | ||
23527 | ||
23528 | if test "$wxUSE_REGEX" != "no"; then | |
23529 | cat >>confdefs.h <<\_ACEOF | |
23530 | #define wxUSE_REGEX 1 | |
23531 | _ACEOF | |
23532 | ||
23533 | ||
23534 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23535 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23536 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23537 | wxUSE_REGEX=builtin | |
23538 | fi | |
23539 | ||
23540 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23541 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23542 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23543 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23544 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23546 | fi | |
23547 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23548 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23549 | else | |
23550 | # Is the header compilable? | |
23551 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23552 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23553 | cat >conftest.$ac_ext <<_ACEOF | |
23554 | /* confdefs.h. */ | |
23555 | _ACEOF | |
23556 | cat confdefs.h >>conftest.$ac_ext | |
23557 | cat >>conftest.$ac_ext <<_ACEOF | |
23558 | /* end confdefs.h. */ | |
23559 | $ac_includes_default | |
23560 | #include <regex.h> | |
23561 | _ACEOF | |
23562 | rm -f conftest.$ac_objext | |
23563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23564 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23565 | ac_status=$? |
ac1cb8d3 VS |
23566 | grep -v '^ *+' conftest.er1 >conftest.err |
23567 | rm -f conftest.er1 | |
23568 | cat conftest.err >&5 | |
a848cd7e SC |
23569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23570 | (exit $ac_status); } && | |
dee1a63f MB |
23571 | { ac_try='test -z "$ac_c_werror_flag" |
23572 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23574 | (eval $ac_try) 2>&5 | |
23575 | ac_status=$? | |
23576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23577 | (exit $ac_status); }; } && | |
23578 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23580 | (eval $ac_try) 2>&5 | |
23581 | ac_status=$? | |
23582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23583 | (exit $ac_status); }; }; then | |
23584 | ac_header_compiler=yes | |
23585 | else | |
23586 | echo "$as_me: failed program was:" >&5 | |
23587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23588 | ||
23589 | ac_header_compiler=no | |
23590 | fi | |
ac1cb8d3 | 23591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23593 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23594 | ||
23595 | # Is the header present? | |
23596 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23597 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23598 | cat >conftest.$ac_ext <<_ACEOF | |
23599 | /* confdefs.h. */ | |
23600 | _ACEOF | |
23601 | cat confdefs.h >>conftest.$ac_ext | |
23602 | cat >>conftest.$ac_ext <<_ACEOF | |
23603 | /* end confdefs.h. */ | |
23604 | #include <regex.h> | |
23605 | _ACEOF | |
23606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23608 | ac_status=$? | |
23609 | grep -v '^ *+' conftest.er1 >conftest.err | |
23610 | rm -f conftest.er1 | |
23611 | cat conftest.err >&5 | |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23613 | (exit $ac_status); } >/dev/null; then | |
23614 | if test -s conftest.err; then | |
23615 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23617 | else |
23618 | ac_cpp_err= | |
23619 | fi | |
23620 | else | |
23621 | ac_cpp_err=yes | |
23622 | fi | |
23623 | if test -z "$ac_cpp_err"; then | |
23624 | ac_header_preproc=yes | |
23625 | else | |
23626 | echo "$as_me: failed program was:" >&5 | |
23627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23628 | ||
23629 | ac_header_preproc=no | |
23630 | fi | |
23631 | rm -f conftest.err conftest.$ac_ext | |
23632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23633 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23634 | ||
23635 | # So? What about this header? | |
ac1cb8d3 VS |
23636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23637 | yes:no: ) | |
a848cd7e SC |
23638 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23639 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23640 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
23641 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
23642 | ac_header_preproc=yes | |
a848cd7e | 23643 | ;; |
ac1cb8d3 | 23644 | no:yes:* ) |
a848cd7e SC |
23645 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
23646 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23647 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
23648 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
23649 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
23650 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
23651 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23652 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23653 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
23654 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23655 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
23656 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23657 | ( |
23658 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23659 | ## ----------------------------------------- ## |
23660 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23661 | ## ----------------------------------------- ## | |
a848cd7e SC |
23662 | _ASBOX |
23663 | ) | | |
23664 | sed "s/^/$as_me: WARNING: /" >&2 | |
23665 | ;; | |
23666 | esac | |
23667 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23668 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23669 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23671 | else | |
23672 | ac_cv_header_regex_h=$ac_header_preproc | |
23673 | fi | |
23674 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23675 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23676 | ||
23677 | fi | |
23678 | if test $ac_cv_header_regex_h = yes; then | |
23679 | ||
23680 | for ac_func in regcomp | |
23681 | do | |
23682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23683 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23685 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23687 | else | |
23688 | cat >conftest.$ac_ext <<_ACEOF | |
23689 | /* confdefs.h. */ | |
23690 | _ACEOF | |
23691 | cat confdefs.h >>conftest.$ac_ext | |
23692 | cat >>conftest.$ac_ext <<_ACEOF | |
23693 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23696 | #define $ac_func innocuous_$ac_func | |
23697 | ||
a848cd7e SC |
23698 | /* System header to define __stub macros and hopefully few prototypes, |
23699 | which can conflict with char $ac_func (); below. | |
23700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23701 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23702 | |
a848cd7e SC |
23703 | #ifdef __STDC__ |
23704 | # include <limits.h> | |
23705 | #else | |
23706 | # include <assert.h> | |
23707 | #endif | |
ac1cb8d3 VS |
23708 | |
23709 | #undef $ac_func | |
23710 | ||
a848cd7e SC |
23711 | /* Override any gcc2 internal prototype to avoid an error. */ |
23712 | #ifdef __cplusplus | |
23713 | extern "C" | |
23714 | { | |
23715 | #endif | |
23716 | /* We use char because int might match the return type of a gcc2 | |
23717 | builtin and then its argument prototype would still apply. */ | |
23718 | char $ac_func (); | |
23719 | /* The GNU C library defines this for functions which it implements | |
23720 | to always fail with ENOSYS. Some functions are actually named | |
23721 | something starting with __ and the normal name is an alias. */ | |
23722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23723 | choke me | |
23724 | #else | |
23725 | char (*f) () = $ac_func; | |
23726 | #endif | |
23727 | #ifdef __cplusplus | |
23728 | } | |
23729 | #endif | |
23730 | ||
23731 | int | |
23732 | main () | |
23733 | { | |
23734 | return f != $ac_func; | |
23735 | ; | |
23736 | return 0; | |
23737 | } | |
23738 | _ACEOF | |
23739 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23741 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23742 | ac_status=$? |
ac1cb8d3 VS |
23743 | grep -v '^ *+' conftest.er1 >conftest.err |
23744 | rm -f conftest.er1 | |
23745 | cat conftest.err >&5 | |
a848cd7e SC |
23746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23747 | (exit $ac_status); } && | |
dee1a63f MB |
23748 | { ac_try='test -z "$ac_c_werror_flag" |
23749 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23751 | (eval $ac_try) 2>&5 | |
23752 | ac_status=$? | |
23753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23754 | (exit $ac_status); }; } && | |
23755 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23757 | (eval $ac_try) 2>&5 | |
23758 | ac_status=$? | |
23759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23760 | (exit $ac_status); }; }; then | |
23761 | eval "$as_ac_var=yes" | |
23762 | else | |
23763 | echo "$as_me: failed program was:" >&5 | |
23764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23765 | ||
23766 | eval "$as_ac_var=no" | |
23767 | fi | |
ac1cb8d3 VS |
23768 | rm -f conftest.err conftest.$ac_objext \ |
23769 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23770 | fi |
23771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23774 | cat >>confdefs.h <<_ACEOF | |
23775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23776 | _ACEOF | |
23777 | ||
23778 | fi | |
23779 | done | |
23780 | ||
23781 | fi | |
23782 | ||
23783 | ||
23784 | ||
23785 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
23786 | if test "$wxUSE_REGEX" = "sys" ; then | |
23787 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
23788 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
23789 | { (exit 1); exit 1; }; } | |
23790 | else | |
23791 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
23792 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
23793 | wxUSE_REGEX=builtin | |
23794 | fi | |
23795 | else | |
23796 | wxUSE_REGEX=sys | |
23797 | cat >>confdefs.h <<\_ACEOF | |
23798 | #define WX_NO_REGEX_ADVANCED 1 | |
23799 | _ACEOF | |
23800 | ||
23801 | fi | |
23802 | fi | |
23803 | fi | |
23804 | ||
23805 | ||
23806 | ZLIB_LINK= | |
23807 | if test "$wxUSE_ZLIB" != "no" ; then | |
23808 | cat >>confdefs.h <<\_ACEOF | |
23809 | #define wxUSE_ZLIB 1 | |
23810 | _ACEOF | |
23811 | ||
23812 | ||
23813 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
23814 | if test "$USE_DARWIN" = 1; then | |
23815 | system_zlib_h_ok="yes" | |
23816 | else | |
23817 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
23818 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
23819 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23821 | else | |
23822 | if test "$cross_compiling" = yes; then | |
23823 | unset ac_cv_header_zlib_h | |
23824 | ||
23825 | else | |
23826 | cat >conftest.$ac_ext <<_ACEOF | |
23827 | /* confdefs.h. */ | |
23828 | _ACEOF | |
23829 | cat confdefs.h >>conftest.$ac_ext | |
23830 | cat >>conftest.$ac_ext <<_ACEOF | |
23831 | /* end confdefs.h. */ | |
23832 | ||
23833 | #include <zlib.h> | |
23834 | #include <stdio.h> | |
23835 | ||
23836 | int main() | |
23837 | { | |
23838 | FILE *f=fopen("conftestval", "w"); | |
23839 | if (!f) exit(1); | |
23840 | fprintf(f, "%s", | |
23841 | ZLIB_VERSION[0] == '1' && | |
23842 | (ZLIB_VERSION[2] > '1' || | |
23843 | (ZLIB_VERSION[2] == '1' && | |
23844 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
23845 | exit(0); | |
23846 | } | |
23847 | ||
23848 | _ACEOF | |
23849 | rm -f conftest$ac_exeext | |
23850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23851 | (eval $ac_link) 2>&5 | |
23852 | ac_status=$? | |
23853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23856 | (eval $ac_try) 2>&5 | |
23857 | ac_status=$? | |
23858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23859 | (exit $ac_status); }; }; then | |
23860 | ac_cv_header_zlib_h=`cat conftestval` | |
23861 | else | |
23862 | echo "$as_me: program exited with status $ac_status" >&5 | |
23863 | echo "$as_me: failed program was:" >&5 | |
23864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23865 | ||
23866 | ( exit $ac_status ) | |
23867 | ac_cv_header_zlib_h=no | |
23868 | fi | |
ac1cb8d3 | 23869 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23870 | fi |
23871 | ||
23872 | fi | |
23873 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23874 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23875 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23876 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23877 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23878 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23880 | fi | |
23881 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23882 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23883 | else | |
23884 | # Is the header compilable? | |
23885 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
23886 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
23887 | cat >conftest.$ac_ext <<_ACEOF | |
23888 | /* confdefs.h. */ | |
23889 | _ACEOF | |
23890 | cat confdefs.h >>conftest.$ac_ext | |
23891 | cat >>conftest.$ac_ext <<_ACEOF | |
23892 | /* end confdefs.h. */ | |
23893 | $ac_includes_default | |
23894 | #include <zlib.h> | |
23895 | _ACEOF | |
23896 | rm -f conftest.$ac_objext | |
23897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23898 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23899 | ac_status=$? |
ac1cb8d3 VS |
23900 | grep -v '^ *+' conftest.er1 >conftest.err |
23901 | rm -f conftest.er1 | |
23902 | cat conftest.err >&5 | |
a848cd7e SC |
23903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23904 | (exit $ac_status); } && | |
dee1a63f MB |
23905 | { ac_try='test -z "$ac_c_werror_flag" |
23906 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23908 | (eval $ac_try) 2>&5 | |
23909 | ac_status=$? | |
23910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23911 | (exit $ac_status); }; } && | |
23912 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23914 | (eval $ac_try) 2>&5 | |
23915 | ac_status=$? | |
23916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23917 | (exit $ac_status); }; }; then | |
23918 | ac_header_compiler=yes | |
23919 | else | |
23920 | echo "$as_me: failed program was:" >&5 | |
23921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23922 | ||
23923 | ac_header_compiler=no | |
23924 | fi | |
ac1cb8d3 | 23925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23927 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23928 | ||
23929 | # Is the header present? | |
23930 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
23931 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
23932 | cat >conftest.$ac_ext <<_ACEOF | |
23933 | /* confdefs.h. */ | |
23934 | _ACEOF | |
23935 | cat confdefs.h >>conftest.$ac_ext | |
23936 | cat >>conftest.$ac_ext <<_ACEOF | |
23937 | /* end confdefs.h. */ | |
23938 | #include <zlib.h> | |
23939 | _ACEOF | |
23940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23942 | ac_status=$? | |
23943 | grep -v '^ *+' conftest.er1 >conftest.err | |
23944 | rm -f conftest.er1 | |
23945 | cat conftest.err >&5 | |
23946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23947 | (exit $ac_status); } >/dev/null; then | |
23948 | if test -s conftest.err; then | |
23949 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23950 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23951 | else |
23952 | ac_cpp_err= | |
23953 | fi | |
23954 | else | |
23955 | ac_cpp_err=yes | |
23956 | fi | |
23957 | if test -z "$ac_cpp_err"; then | |
23958 | ac_header_preproc=yes | |
23959 | else | |
23960 | echo "$as_me: failed program was:" >&5 | |
23961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23962 | ||
23963 | ac_header_preproc=no | |
23964 | fi | |
23965 | rm -f conftest.err conftest.$ac_ext | |
23966 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23967 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23968 | ||
23969 | # So? What about this header? | |
ac1cb8d3 VS |
23970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23971 | yes:no: ) | |
a848cd7e SC |
23972 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23973 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23974 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
23975 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
23976 | ac_header_preproc=yes | |
a848cd7e | 23977 | ;; |
ac1cb8d3 | 23978 | no:yes:* ) |
a848cd7e SC |
23979 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
23980 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23981 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
23982 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
23983 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
23984 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
23985 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23986 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23987 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
23988 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23989 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
23990 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23991 | ( |
23992 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23993 | ## ----------------------------------------- ## |
23994 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23995 | ## ----------------------------------------- ## | |
a848cd7e SC |
23996 | _ASBOX |
23997 | ) | | |
23998 | sed "s/^/$as_me: WARNING: /" >&2 | |
23999 | ;; | |
24000 | esac | |
24001 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24002 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24003 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24005 | else | |
24006 | ac_cv_header_zlib_h=$ac_header_preproc | |
24007 | fi | |
24008 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24009 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24010 | ||
24011 | fi | |
24012 | ||
24013 | ||
24014 | ||
24015 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24016 | fi | |
24017 | ||
24018 | if test "$system_zlib_h_ok" = "yes"; then | |
24019 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24020 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24021 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24023 | else | |
24024 | ac_check_lib_save_LIBS=$LIBS | |
24025 | LIBS="-lz $LIBS" | |
24026 | cat >conftest.$ac_ext <<_ACEOF | |
24027 | /* confdefs.h. */ | |
24028 | _ACEOF | |
24029 | cat confdefs.h >>conftest.$ac_ext | |
24030 | cat >>conftest.$ac_ext <<_ACEOF | |
24031 | /* end confdefs.h. */ | |
24032 | ||
24033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24034 | #ifdef __cplusplus | |
24035 | extern "C" | |
24036 | #endif | |
24037 | /* We use char because int might match the return type of a gcc2 | |
24038 | builtin and then its argument prototype would still apply. */ | |
24039 | char deflate (); | |
24040 | int | |
24041 | main () | |
24042 | { | |
24043 | deflate (); | |
24044 | ; | |
24045 | return 0; | |
24046 | } | |
24047 | _ACEOF | |
24048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24051 | ac_status=$? |
ac1cb8d3 VS |
24052 | grep -v '^ *+' conftest.er1 >conftest.err |
24053 | rm -f conftest.er1 | |
24054 | cat conftest.err >&5 | |
a848cd7e SC |
24055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24056 | (exit $ac_status); } && | |
dee1a63f MB |
24057 | { ac_try='test -z "$ac_c_werror_flag" |
24058 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24060 | (eval $ac_try) 2>&5 | |
24061 | ac_status=$? | |
24062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24063 | (exit $ac_status); }; } && | |
24064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24066 | (eval $ac_try) 2>&5 | |
24067 | ac_status=$? | |
24068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24069 | (exit $ac_status); }; }; then | |
24070 | ac_cv_lib_z_deflate=yes | |
24071 | else | |
24072 | echo "$as_me: failed program was:" >&5 | |
24073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24074 | ||
24075 | ac_cv_lib_z_deflate=no | |
24076 | fi | |
ac1cb8d3 VS |
24077 | rm -f conftest.err conftest.$ac_objext \ |
24078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24079 | LIBS=$ac_check_lib_save_LIBS |
24080 | fi | |
24081 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24082 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24083 | if test $ac_cv_lib_z_deflate = yes; then | |
24084 | ZLIB_LINK=" -lz" | |
24085 | fi | |
24086 | ||
24087 | fi | |
24088 | ||
24089 | if test "x$ZLIB_LINK" = "x" ; then | |
24090 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24091 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24092 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24093 | { (exit 1); exit 1; }; } | |
24094 | else | |
24095 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24096 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24097 | wxUSE_ZLIB=builtin | |
24098 | fi | |
24099 | else | |
24100 | wxUSE_ZLIB=sys | |
24101 | fi | |
24102 | fi | |
24103 | fi | |
24104 | ||
24105 | ||
24106 | PNG_LINK= | |
24107 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24108 | cat >>confdefs.h <<\_ACEOF | |
24109 | #define wxUSE_LIBPNG 1 | |
24110 | _ACEOF | |
24111 | ||
24112 | ||
24113 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24114 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24115 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24116 | wxUSE_LIBPNG=sys | |
24117 | fi | |
24118 | ||
24119 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24120 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24121 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24122 | wxUSE_LIBPNG=builtin | |
24123 | fi | |
24124 | ||
24125 | if test "$wxUSE_MGL" != 1 ; then | |
24126 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24127 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24128 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24129 | if test "${ac_cv_header_png_h+set}" = set; then | |
24130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24131 | else | |
24132 | if test "$cross_compiling" = yes; then | |
24133 | unset ac_cv_header_png_h | |
24134 | ||
24135 | else | |
24136 | cat >conftest.$ac_ext <<_ACEOF | |
24137 | /* confdefs.h. */ | |
24138 | _ACEOF | |
24139 | cat confdefs.h >>conftest.$ac_ext | |
24140 | cat >>conftest.$ac_ext <<_ACEOF | |
24141 | /* end confdefs.h. */ | |
24142 | ||
24143 | #include <png.h> | |
24144 | #include <stdio.h> | |
24145 | ||
24146 | int main() | |
24147 | { | |
24148 | FILE *f=fopen("conftestval", "w"); | |
24149 | if (!f) exit(1); | |
24150 | fprintf(f, "%s", | |
24151 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24152 | exit(0); | |
24153 | } | |
24154 | ||
24155 | _ACEOF | |
24156 | rm -f conftest$ac_exeext | |
24157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24158 | (eval $ac_link) 2>&5 | |
24159 | ac_status=$? | |
24160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24161 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24163 | (eval $ac_try) 2>&5 | |
24164 | ac_status=$? | |
24165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24166 | (exit $ac_status); }; }; then | |
24167 | ac_cv_header_png_h=`cat conftestval` | |
24168 | else | |
24169 | echo "$as_me: program exited with status $ac_status" >&5 | |
24170 | echo "$as_me: failed program was:" >&5 | |
24171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24172 | ||
24173 | ( exit $ac_status ) | |
24174 | ac_cv_header_png_h=no | |
24175 | fi | |
ac1cb8d3 | 24176 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24177 | fi |
24178 | ||
24179 | fi | |
24180 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24181 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24182 | if test "${ac_cv_header_png_h+set}" = set; then | |
24183 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24184 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24185 | if test "${ac_cv_header_png_h+set}" = set; then | |
24186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24187 | fi | |
24188 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24189 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24190 | else | |
24191 | # Is the header compilable? | |
24192 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24193 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24194 | cat >conftest.$ac_ext <<_ACEOF | |
24195 | /* confdefs.h. */ | |
24196 | _ACEOF | |
24197 | cat confdefs.h >>conftest.$ac_ext | |
24198 | cat >>conftest.$ac_ext <<_ACEOF | |
24199 | /* end confdefs.h. */ | |
24200 | $ac_includes_default | |
24201 | #include <png.h> | |
24202 | _ACEOF | |
24203 | rm -f conftest.$ac_objext | |
24204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24205 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24206 | ac_status=$? |
ac1cb8d3 VS |
24207 | grep -v '^ *+' conftest.er1 >conftest.err |
24208 | rm -f conftest.er1 | |
24209 | cat conftest.err >&5 | |
a848cd7e SC |
24210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24211 | (exit $ac_status); } && | |
dee1a63f MB |
24212 | { ac_try='test -z "$ac_c_werror_flag" |
24213 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24215 | (eval $ac_try) 2>&5 | |
24216 | ac_status=$? | |
24217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24218 | (exit $ac_status); }; } && | |
24219 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24221 | (eval $ac_try) 2>&5 | |
24222 | ac_status=$? | |
24223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24224 | (exit $ac_status); }; }; then | |
24225 | ac_header_compiler=yes | |
24226 | else | |
24227 | echo "$as_me: failed program was:" >&5 | |
24228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24229 | ||
24230 | ac_header_compiler=no | |
24231 | fi | |
ac1cb8d3 | 24232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24233 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24234 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24235 | ||
24236 | # Is the header present? | |
24237 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24238 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24239 | cat >conftest.$ac_ext <<_ACEOF | |
24240 | /* confdefs.h. */ | |
24241 | _ACEOF | |
24242 | cat confdefs.h >>conftest.$ac_ext | |
24243 | cat >>conftest.$ac_ext <<_ACEOF | |
24244 | /* end confdefs.h. */ | |
24245 | #include <png.h> | |
24246 | _ACEOF | |
24247 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24248 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24249 | ac_status=$? | |
24250 | grep -v '^ *+' conftest.er1 >conftest.err | |
24251 | rm -f conftest.er1 | |
24252 | cat conftest.err >&5 | |
24253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24254 | (exit $ac_status); } >/dev/null; then | |
24255 | if test -s conftest.err; then | |
24256 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24257 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24258 | else |
24259 | ac_cpp_err= | |
24260 | fi | |
24261 | else | |
24262 | ac_cpp_err=yes | |
24263 | fi | |
24264 | if test -z "$ac_cpp_err"; then | |
24265 | ac_header_preproc=yes | |
24266 | else | |
24267 | echo "$as_me: failed program was:" >&5 | |
24268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24269 | ||
24270 | ac_header_preproc=no | |
24271 | fi | |
24272 | rm -f conftest.err conftest.$ac_ext | |
24273 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24274 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24275 | ||
24276 | # So? What about this header? | |
ac1cb8d3 VS |
24277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24278 | yes:no: ) | |
a848cd7e SC |
24279 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24280 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24281 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24282 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24283 | ac_header_preproc=yes | |
a848cd7e | 24284 | ;; |
ac1cb8d3 | 24285 | no:yes:* ) |
a848cd7e SC |
24286 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24287 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24288 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24289 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24290 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24291 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24292 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24293 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24294 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24295 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24296 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24297 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24298 | ( |
24299 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24300 | ## ----------------------------------------- ## |
24301 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24302 | ## ----------------------------------------- ## | |
a848cd7e SC |
24303 | _ASBOX |
24304 | ) | | |
24305 | sed "s/^/$as_me: WARNING: /" >&2 | |
24306 | ;; | |
24307 | esac | |
24308 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24309 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24310 | if test "${ac_cv_header_png_h+set}" = set; then | |
24311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24312 | else | |
24313 | ac_cv_header_png_h=$ac_header_preproc | |
24314 | fi | |
24315 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24316 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24317 | ||
24318 | fi | |
24319 | ||
24320 | ||
24321 | ||
24322 | if test "$ac_cv_header_png_h" = "yes"; then | |
24323 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24324 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24325 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24327 | else | |
24328 | ac_check_lib_save_LIBS=$LIBS | |
24329 | LIBS="-lpng -lz -lm $LIBS" | |
24330 | cat >conftest.$ac_ext <<_ACEOF | |
24331 | /* confdefs.h. */ | |
24332 | _ACEOF | |
24333 | cat confdefs.h >>conftest.$ac_ext | |
24334 | cat >>conftest.$ac_ext <<_ACEOF | |
24335 | /* end confdefs.h. */ | |
24336 | ||
24337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24338 | #ifdef __cplusplus | |
24339 | extern "C" | |
24340 | #endif | |
24341 | /* We use char because int might match the return type of a gcc2 | |
24342 | builtin and then its argument prototype would still apply. */ | |
24343 | char png_check_sig (); | |
24344 | int | |
24345 | main () | |
24346 | { | |
24347 | png_check_sig (); | |
24348 | ; | |
24349 | return 0; | |
24350 | } | |
24351 | _ACEOF | |
24352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24354 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24355 | ac_status=$? |
ac1cb8d3 VS |
24356 | grep -v '^ *+' conftest.er1 >conftest.err |
24357 | rm -f conftest.er1 | |
24358 | cat conftest.err >&5 | |
a848cd7e SC |
24359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24360 | (exit $ac_status); } && | |
dee1a63f MB |
24361 | { ac_try='test -z "$ac_c_werror_flag" |
24362 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24364 | (eval $ac_try) 2>&5 | |
24365 | ac_status=$? | |
24366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24367 | (exit $ac_status); }; } && | |
24368 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24370 | (eval $ac_try) 2>&5 | |
24371 | ac_status=$? | |
24372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24373 | (exit $ac_status); }; }; then | |
24374 | ac_cv_lib_png_png_check_sig=yes | |
24375 | else | |
24376 | echo "$as_me: failed program was:" >&5 | |
24377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24378 | ||
24379 | ac_cv_lib_png_png_check_sig=no | |
24380 | fi | |
ac1cb8d3 VS |
24381 | rm -f conftest.err conftest.$ac_objext \ |
24382 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24383 | LIBS=$ac_check_lib_save_LIBS |
24384 | fi | |
24385 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24386 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24387 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24388 | PNG_LINK=" -lpng -lz" | |
24389 | fi | |
24390 | ||
24391 | fi | |
24392 | ||
24393 | if test "x$PNG_LINK" = "x" ; then | |
24394 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24395 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24396 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24397 | { (exit 1); exit 1; }; } | |
24398 | else | |
24399 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24400 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24401 | wxUSE_LIBPNG=builtin | |
24402 | fi | |
24403 | else | |
24404 | wxUSE_LIBPNG=sys | |
24405 | fi | |
24406 | fi | |
24407 | fi | |
24408 | ||
24409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24410 | fi | |
24411 | ||
24412 | ||
24413 | JPEG_LINK= | |
24414 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24415 | cat >>confdefs.h <<\_ACEOF | |
24416 | #define wxUSE_LIBJPEG 1 | |
24417 | _ACEOF | |
24418 | ||
24419 | ||
24420 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24421 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24422 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24423 | wxUSE_LIBJPEG=sys | |
24424 | fi | |
24425 | ||
24426 | if test "$wxUSE_MGL" != 1 ; then | |
24427 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24428 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24429 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24430 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24432 | else | |
24433 | cat >conftest.$ac_ext <<_ACEOF | |
24434 | /* confdefs.h. */ | |
24435 | _ACEOF | |
24436 | cat confdefs.h >>conftest.$ac_ext | |
24437 | cat >>conftest.$ac_ext <<_ACEOF | |
24438 | /* end confdefs.h. */ | |
24439 | ||
24440 | #undef HAVE_STDLIB_H | |
24441 | #include <stdio.h> | |
24442 | #include <jpeglib.h> | |
24443 | ||
24444 | int | |
24445 | main () | |
24446 | { | |
24447 | ||
24448 | ||
24449 | ; | |
24450 | return 0; | |
24451 | } | |
24452 | _ACEOF | |
24453 | rm -f conftest.$ac_objext | |
24454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24455 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24456 | ac_status=$? |
ac1cb8d3 VS |
24457 | grep -v '^ *+' conftest.er1 >conftest.err |
24458 | rm -f conftest.er1 | |
24459 | cat conftest.err >&5 | |
a848cd7e SC |
24460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24461 | (exit $ac_status); } && | |
dee1a63f MB |
24462 | { ac_try='test -z "$ac_c_werror_flag" |
24463 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24465 | (eval $ac_try) 2>&5 | |
24466 | ac_status=$? | |
24467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24468 | (exit $ac_status); }; } && | |
24469 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24471 | (eval $ac_try) 2>&5 | |
24472 | ac_status=$? | |
24473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24474 | (exit $ac_status); }; }; then | |
24475 | ac_cv_header_jpeglib_h=yes | |
24476 | else | |
24477 | echo "$as_me: failed program was:" >&5 | |
24478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24479 | ||
24480 | ac_cv_header_jpeglib_h=no | |
24481 | ||
24482 | fi | |
ac1cb8d3 | 24483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24484 | |
24485 | fi | |
24486 | ||
24487 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24488 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24489 | ||
24490 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24491 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24492 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24493 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24495 | else | |
24496 | ac_check_lib_save_LIBS=$LIBS | |
24497 | LIBS="-ljpeg $LIBS" | |
24498 | cat >conftest.$ac_ext <<_ACEOF | |
24499 | /* confdefs.h. */ | |
24500 | _ACEOF | |
24501 | cat confdefs.h >>conftest.$ac_ext | |
24502 | cat >>conftest.$ac_ext <<_ACEOF | |
24503 | /* end confdefs.h. */ | |
24504 | ||
24505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24506 | #ifdef __cplusplus | |
24507 | extern "C" | |
24508 | #endif | |
24509 | /* We use char because int might match the return type of a gcc2 | |
24510 | builtin and then its argument prototype would still apply. */ | |
24511 | char jpeg_read_header (); | |
24512 | int | |
24513 | main () | |
24514 | { | |
24515 | jpeg_read_header (); | |
24516 | ; | |
24517 | return 0; | |
24518 | } | |
24519 | _ACEOF | |
24520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24522 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24523 | ac_status=$? |
ac1cb8d3 VS |
24524 | grep -v '^ *+' conftest.er1 >conftest.err |
24525 | rm -f conftest.er1 | |
24526 | cat conftest.err >&5 | |
a848cd7e SC |
24527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24528 | (exit $ac_status); } && | |
dee1a63f MB |
24529 | { ac_try='test -z "$ac_c_werror_flag" |
24530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24532 | (eval $ac_try) 2>&5 | |
24533 | ac_status=$? | |
24534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24535 | (exit $ac_status); }; } && | |
24536 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24538 | (eval $ac_try) 2>&5 | |
24539 | ac_status=$? | |
24540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24541 | (exit $ac_status); }; }; then | |
24542 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24543 | else | |
24544 | echo "$as_me: failed program was:" >&5 | |
24545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24546 | ||
24547 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24548 | fi | |
ac1cb8d3 VS |
24549 | rm -f conftest.err conftest.$ac_objext \ |
24550 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24551 | LIBS=$ac_check_lib_save_LIBS |
24552 | fi | |
24553 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24554 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24555 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24556 | JPEG_LINK=" -ljpeg" | |
24557 | fi | |
24558 | ||
24559 | fi | |
24560 | ||
24561 | if test "x$JPEG_LINK" = "x" ; then | |
24562 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24563 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24564 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24565 | { (exit 1); exit 1; }; } | |
24566 | else | |
24567 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24568 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24569 | wxUSE_LIBJPEG=builtin | |
24570 | fi | |
24571 | else | |
24572 | wxUSE_LIBJPEG=sys | |
24573 | fi | |
24574 | fi | |
24575 | fi | |
24576 | fi | |
24577 | ||
24578 | ||
24579 | TIFF_LINK= | |
24580 | TIFF_PREREQ_LINKS=-lm | |
24581 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24582 | cat >>confdefs.h <<\_ACEOF | |
24583 | #define wxUSE_LIBTIFF 1 | |
24584 | _ACEOF | |
24585 | ||
24586 | ||
24587 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24588 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24589 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24590 | fi | |
24591 | if test "$wxUSE_ZLIB" = "sys"; then | |
24592 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24593 | fi | |
24594 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24595 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24596 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24597 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24599 | fi | |
24600 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24601 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24602 | else | |
24603 | # Is the header compilable? | |
24604 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
24605 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
24606 | cat >conftest.$ac_ext <<_ACEOF | |
24607 | /* confdefs.h. */ | |
24608 | _ACEOF | |
24609 | cat confdefs.h >>conftest.$ac_ext | |
24610 | cat >>conftest.$ac_ext <<_ACEOF | |
24611 | /* end confdefs.h. */ | |
24612 | $ac_includes_default | |
24613 | #include <tiffio.h> | |
24614 | _ACEOF | |
24615 | rm -f conftest.$ac_objext | |
24616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24617 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24618 | ac_status=$? |
ac1cb8d3 VS |
24619 | grep -v '^ *+' conftest.er1 >conftest.err |
24620 | rm -f conftest.er1 | |
24621 | cat conftest.err >&5 | |
a848cd7e SC |
24622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24623 | (exit $ac_status); } && | |
dee1a63f MB |
24624 | { ac_try='test -z "$ac_c_werror_flag" |
24625 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24627 | (eval $ac_try) 2>&5 | |
24628 | ac_status=$? | |
24629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24630 | (exit $ac_status); }; } && | |
24631 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24633 | (eval $ac_try) 2>&5 | |
24634 | ac_status=$? | |
24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24636 | (exit $ac_status); }; }; then | |
24637 | ac_header_compiler=yes | |
24638 | else | |
24639 | echo "$as_me: failed program was:" >&5 | |
24640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24641 | ||
24642 | ac_header_compiler=no | |
24643 | fi | |
ac1cb8d3 | 24644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24646 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24647 | ||
24648 | # Is the header present? | |
24649 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
24650 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
24651 | cat >conftest.$ac_ext <<_ACEOF | |
24652 | /* confdefs.h. */ | |
24653 | _ACEOF | |
24654 | cat confdefs.h >>conftest.$ac_ext | |
24655 | cat >>conftest.$ac_ext <<_ACEOF | |
24656 | /* end confdefs.h. */ | |
24657 | #include <tiffio.h> | |
24658 | _ACEOF | |
24659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24660 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
24667 | if test -s conftest.err; then | |
24668 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24670 | else |
24671 | ac_cpp_err= | |
24672 | fi | |
24673 | else | |
24674 | ac_cpp_err=yes | |
24675 | fi | |
24676 | if test -z "$ac_cpp_err"; then | |
24677 | ac_header_preproc=yes | |
24678 | else | |
24679 | echo "$as_me: failed program was:" >&5 | |
24680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24681 | ||
24682 | ac_header_preproc=no | |
24683 | fi | |
24684 | rm -f conftest.err conftest.$ac_ext | |
24685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24686 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24687 | ||
24688 | # So? What about this header? | |
ac1cb8d3 VS |
24689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24690 | yes:no: ) | |
a848cd7e SC |
24691 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24692 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24693 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
24694 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
24695 | ac_header_preproc=yes | |
a848cd7e | 24696 | ;; |
ac1cb8d3 | 24697 | no:yes:* ) |
a848cd7e SC |
24698 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
24699 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24700 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
24701 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
24702 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
24703 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
24704 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24705 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24706 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
24707 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24708 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
24709 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24710 | ( |
24711 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24712 | ## ----------------------------------------- ## |
24713 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24714 | ## ----------------------------------------- ## | |
a848cd7e SC |
24715 | _ASBOX |
24716 | ) | | |
24717 | sed "s/^/$as_me: WARNING: /" >&2 | |
24718 | ;; | |
24719 | esac | |
24720 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24721 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24722 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24724 | else | |
24725 | ac_cv_header_tiffio_h=$ac_header_preproc | |
24726 | fi | |
24727 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24728 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24729 | ||
24730 | fi | |
24731 | if test $ac_cv_header_tiffio_h = yes; then | |
24732 | ||
24733 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
24734 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
24735 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
24736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24737 | else | |
24738 | ac_check_lib_save_LIBS=$LIBS | |
24739 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
24740 | cat >conftest.$ac_ext <<_ACEOF | |
24741 | /* confdefs.h. */ | |
24742 | _ACEOF | |
24743 | cat confdefs.h >>conftest.$ac_ext | |
24744 | cat >>conftest.$ac_ext <<_ACEOF | |
24745 | /* end confdefs.h. */ | |
24746 | ||
24747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24748 | #ifdef __cplusplus | |
24749 | extern "C" | |
24750 | #endif | |
24751 | /* We use char because int might match the return type of a gcc2 | |
24752 | builtin and then its argument prototype would still apply. */ | |
24753 | char TIFFError (); | |
24754 | int | |
24755 | main () | |
24756 | { | |
24757 | TIFFError (); | |
24758 | ; | |
24759 | return 0; | |
24760 | } | |
24761 | _ACEOF | |
24762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24765 | ac_status=$? |
ac1cb8d3 VS |
24766 | grep -v '^ *+' conftest.er1 >conftest.err |
24767 | rm -f conftest.er1 | |
24768 | cat conftest.err >&5 | |
a848cd7e SC |
24769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24770 | (exit $ac_status); } && | |
dee1a63f MB |
24771 | { ac_try='test -z "$ac_c_werror_flag" |
24772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24774 | (eval $ac_try) 2>&5 | |
24775 | ac_status=$? | |
24776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24777 | (exit $ac_status); }; } && | |
24778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24780 | (eval $ac_try) 2>&5 | |
24781 | ac_status=$? | |
24782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24783 | (exit $ac_status); }; }; then | |
24784 | ac_cv_lib_tiff_TIFFError=yes | |
24785 | else | |
24786 | echo "$as_me: failed program was:" >&5 | |
24787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24788 | ||
24789 | ac_cv_lib_tiff_TIFFError=no | |
24790 | fi | |
ac1cb8d3 VS |
24791 | rm -f conftest.err conftest.$ac_objext \ |
24792 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24793 | LIBS=$ac_check_lib_save_LIBS |
24794 | fi | |
24795 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
24796 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
24797 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
24798 | TIFF_LINK=" -ltiff" | |
24799 | fi | |
24800 | ||
24801 | ||
24802 | ||
24803 | fi | |
24804 | ||
24805 | ||
24806 | ||
24807 | if test "x$TIFF_LINK" = "x" ; then | |
24808 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
24809 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
24810 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
24811 | { (exit 1); exit 1; }; } | |
24812 | else | |
24813 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
24814 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
24815 | wxUSE_LIBTIFF=builtin | |
24816 | fi | |
24817 | else | |
24818 | wxUSE_LIBTIFF=sys | |
24819 | fi | |
24820 | fi | |
24821 | fi | |
24822 | ||
24823 | ||
47a7e797 MW |
24824 | if test "$wxUSE_WCHAR_T" != "yes"; then |
24825 | if test "$wxUSE_EXPAT" != "no"; then | |
24826 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
24827 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
24828 | wxUSE_EXPAT=no | |
24829 | fi | |
24830 | if test "$wxUSE_XML" != "no"; then | |
24831 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
24832 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
24833 | wxUSE_XML=no | |
24834 | fi | |
24835 | fi | |
24836 | ||
a848cd7e SC |
24837 | if test "$wxUSE_EXPAT" != "no"; then |
24838 | wxUSE_XML=yes | |
24839 | cat >>confdefs.h <<\_ACEOF | |
24840 | #define wxUSE_EXPAT 1 | |
24841 | _ACEOF | |
24842 | ||
24843 | cat >>confdefs.h <<\_ACEOF | |
24844 | #define wxUSE_XML 1 | |
24845 | _ACEOF | |
24846 | ||
24847 | ||
24848 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
24849 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24850 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24851 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24852 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24854 | fi | |
24855 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24856 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24857 | else | |
24858 | # Is the header compilable? | |
24859 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
24860 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
24861 | cat >conftest.$ac_ext <<_ACEOF | |
24862 | /* confdefs.h. */ | |
24863 | _ACEOF | |
24864 | cat confdefs.h >>conftest.$ac_ext | |
24865 | cat >>conftest.$ac_ext <<_ACEOF | |
24866 | /* end confdefs.h. */ | |
24867 | $ac_includes_default | |
24868 | #include <expat.h> | |
24869 | _ACEOF | |
24870 | rm -f conftest.$ac_objext | |
24871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24872 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24873 | ac_status=$? |
ac1cb8d3 VS |
24874 | grep -v '^ *+' conftest.er1 >conftest.err |
24875 | rm -f conftest.er1 | |
24876 | cat conftest.err >&5 | |
a848cd7e SC |
24877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24878 | (exit $ac_status); } && | |
dee1a63f MB |
24879 | { ac_try='test -z "$ac_c_werror_flag" |
24880 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24882 | (eval $ac_try) 2>&5 | |
24883 | ac_status=$? | |
24884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24885 | (exit $ac_status); }; } && | |
24886 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24888 | (eval $ac_try) 2>&5 | |
24889 | ac_status=$? | |
24890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24891 | (exit $ac_status); }; }; then | |
24892 | ac_header_compiler=yes | |
24893 | else | |
24894 | echo "$as_me: failed program was:" >&5 | |
24895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24896 | ||
24897 | ac_header_compiler=no | |
24898 | fi | |
ac1cb8d3 | 24899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24900 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24901 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24902 | ||
24903 | # Is the header present? | |
24904 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
24905 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
24906 | cat >conftest.$ac_ext <<_ACEOF | |
24907 | /* confdefs.h. */ | |
24908 | _ACEOF | |
24909 | cat confdefs.h >>conftest.$ac_ext | |
24910 | cat >>conftest.$ac_ext <<_ACEOF | |
24911 | /* end confdefs.h. */ | |
24912 | #include <expat.h> | |
24913 | _ACEOF | |
24914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24916 | ac_status=$? | |
24917 | grep -v '^ *+' conftest.er1 >conftest.err | |
24918 | rm -f conftest.er1 | |
24919 | cat conftest.err >&5 | |
24920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24921 | (exit $ac_status); } >/dev/null; then | |
24922 | if test -s conftest.err; then | |
24923 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24925 | else |
24926 | ac_cpp_err= | |
24927 | fi | |
24928 | else | |
24929 | ac_cpp_err=yes | |
24930 | fi | |
24931 | if test -z "$ac_cpp_err"; then | |
24932 | ac_header_preproc=yes | |
24933 | else | |
24934 | echo "$as_me: failed program was:" >&5 | |
24935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24936 | ||
24937 | ac_header_preproc=no | |
24938 | fi | |
24939 | rm -f conftest.err conftest.$ac_ext | |
24940 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24941 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24942 | ||
24943 | # So? What about this header? | |
ac1cb8d3 VS |
24944 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24945 | yes:no: ) | |
a848cd7e SC |
24946 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24947 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24948 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
24949 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
24950 | ac_header_preproc=yes | |
a848cd7e | 24951 | ;; |
ac1cb8d3 | 24952 | no:yes:* ) |
a848cd7e SC |
24953 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
24954 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24955 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
24956 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
24957 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
24958 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
24959 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24960 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24961 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
24962 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24963 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
24964 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24965 | ( |
24966 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24967 | ## ----------------------------------------- ## |
24968 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24969 | ## ----------------------------------------- ## | |
a848cd7e SC |
24970 | _ASBOX |
24971 | ) | | |
24972 | sed "s/^/$as_me: WARNING: /" >&2 | |
24973 | ;; | |
24974 | esac | |
24975 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24976 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24977 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24979 | else | |
24980 | ac_cv_header_expat_h=$ac_header_preproc | |
24981 | fi | |
24982 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24983 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24984 | ||
24985 | fi | |
24986 | if test $ac_cv_header_expat_h = yes; then | |
24987 | found_expat_h=1 | |
24988 | fi | |
24989 | ||
24990 | ||
24991 | if test "x$found_expat_h" = "x1"; then | |
24992 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
24993 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
24994 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
24995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24996 | else | |
24997 | ||
24998 | ||
24999 | ||
25000 | ac_ext=cc | |
25001 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25002 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25003 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25004 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25005 | ||
25006 | cat >conftest.$ac_ext <<_ACEOF | |
25007 | /* confdefs.h. */ | |
25008 | _ACEOF | |
25009 | cat confdefs.h >>conftest.$ac_ext | |
25010 | cat >>conftest.$ac_ext <<_ACEOF | |
25011 | /* end confdefs.h. */ | |
25012 | #include <expat.h> | |
25013 | int | |
25014 | main () | |
25015 | { | |
25016 | ||
25017 | ; | |
25018 | return 0; | |
25019 | } | |
25020 | _ACEOF | |
25021 | rm -f conftest.$ac_objext | |
25022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25023 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25024 | ac_status=$? |
ac1cb8d3 VS |
25025 | grep -v '^ *+' conftest.er1 >conftest.err |
25026 | rm -f conftest.er1 | |
25027 | cat conftest.err >&5 | |
a848cd7e SC |
25028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25029 | (exit $ac_status); } && | |
dee1a63f MB |
25030 | { ac_try='test -z "$ac_cxx_werror_flag" |
25031 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25033 | (eval $ac_try) 2>&5 | |
25034 | ac_status=$? | |
25035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25036 | (exit $ac_status); }; } && | |
25037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25039 | (eval $ac_try) 2>&5 | |
25040 | ac_status=$? | |
25041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25042 | (exit $ac_status); }; }; then | |
25043 | wx_cv_expat_is_not_broken=yes | |
25044 | else | |
25045 | echo "$as_me: failed program was:" >&5 | |
25046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25047 | ||
25048 | wx_cv_expat_is_not_broken=no | |
25049 | ||
25050 | fi | |
ac1cb8d3 | 25051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25052 | ac_ext=c |
25053 | ac_cpp='$CPP $CPPFLAGS' | |
25054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25057 | ||
25058 | ||
25059 | ||
25060 | fi | |
25061 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25062 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25063 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25064 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25065 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25066 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25068 | else | |
25069 | ac_check_lib_save_LIBS=$LIBS | |
25070 | LIBS="-lexpat $LIBS" | |
25071 | cat >conftest.$ac_ext <<_ACEOF | |
25072 | /* confdefs.h. */ | |
25073 | _ACEOF | |
25074 | cat confdefs.h >>conftest.$ac_ext | |
25075 | cat >>conftest.$ac_ext <<_ACEOF | |
25076 | /* end confdefs.h. */ | |
25077 | ||
25078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25079 | #ifdef __cplusplus | |
25080 | extern "C" | |
25081 | #endif | |
25082 | /* We use char because int might match the return type of a gcc2 | |
25083 | builtin and then its argument prototype would still apply. */ | |
25084 | char XML_ParserCreate (); | |
25085 | int | |
25086 | main () | |
25087 | { | |
25088 | XML_ParserCreate (); | |
25089 | ; | |
25090 | return 0; | |
25091 | } | |
25092 | _ACEOF | |
25093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25096 | ac_status=$? |
ac1cb8d3 VS |
25097 | grep -v '^ *+' conftest.er1 >conftest.err |
25098 | rm -f conftest.er1 | |
25099 | cat conftest.err >&5 | |
a848cd7e SC |
25100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25101 | (exit $ac_status); } && | |
dee1a63f MB |
25102 | { ac_try='test -z "$ac_c_werror_flag" |
25103 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25105 | (eval $ac_try) 2>&5 | |
25106 | ac_status=$? | |
25107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25108 | (exit $ac_status); }; } && | |
25109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25111 | (eval $ac_try) 2>&5 | |
25112 | ac_status=$? | |
25113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25114 | (exit $ac_status); }; }; then | |
25115 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25116 | else | |
25117 | echo "$as_me: failed program was:" >&5 | |
25118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25119 | ||
25120 | ac_cv_lib_expat_XML_ParserCreate=no | |
25121 | fi | |
ac1cb8d3 VS |
25122 | rm -f conftest.err conftest.$ac_objext \ |
25123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25124 | LIBS=$ac_check_lib_save_LIBS |
25125 | fi | |
25126 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25127 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25128 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25129 | EXPAT_LINK=" -lexpat" | |
25130 | fi | |
25131 | ||
25132 | fi | |
25133 | fi | |
25134 | if test "x$EXPAT_LINK" = "x" ; then | |
25135 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25136 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25137 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25138 | { (exit 1); exit 1; }; } | |
25139 | else | |
25140 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25141 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25142 | wxUSE_EXPAT=builtin | |
25143 | fi | |
25144 | else | |
25145 | wxUSE_EXPAT=sys | |
25146 | fi | |
25147 | fi | |
25148 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25149 | ||
25150 | ||
25151 | subdirs="$subdirs src/expat" | |
25152 | ||
25153 | fi | |
25154 | fi | |
25155 | ||
25156 | ||
25157 | ||
25158 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25159 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25160 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25161 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25162 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25164 | fi | |
25165 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25166 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25167 | else | |
25168 | # Is the header compilable? | |
25169 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25170 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25171 | cat >conftest.$ac_ext <<_ACEOF | |
25172 | /* confdefs.h. */ | |
25173 | _ACEOF | |
25174 | cat confdefs.h >>conftest.$ac_ext | |
25175 | cat >>conftest.$ac_ext <<_ACEOF | |
25176 | /* end confdefs.h. */ | |
25177 | $ac_includes_default | |
25178 | #include <mspack.h> | |
25179 | _ACEOF | |
25180 | rm -f conftest.$ac_objext | |
25181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25183 | ac_status=$? |
ac1cb8d3 VS |
25184 | grep -v '^ *+' conftest.er1 >conftest.err |
25185 | rm -f conftest.er1 | |
25186 | cat conftest.err >&5 | |
a848cd7e SC |
25187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25188 | (exit $ac_status); } && | |
dee1a63f MB |
25189 | { ac_try='test -z "$ac_c_werror_flag" |
25190 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25192 | (eval $ac_try) 2>&5 | |
25193 | ac_status=$? | |
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25195 | (exit $ac_status); }; } && | |
25196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25198 | (eval $ac_try) 2>&5 | |
25199 | ac_status=$? | |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25201 | (exit $ac_status); }; }; then | |
25202 | ac_header_compiler=yes | |
25203 | else | |
25204 | echo "$as_me: failed program was:" >&5 | |
25205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25206 | ||
25207 | ac_header_compiler=no | |
25208 | fi | |
ac1cb8d3 | 25209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25210 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25211 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25212 | ||
25213 | # Is the header present? | |
25214 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25215 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25216 | cat >conftest.$ac_ext <<_ACEOF | |
25217 | /* confdefs.h. */ | |
25218 | _ACEOF | |
25219 | cat confdefs.h >>conftest.$ac_ext | |
25220 | cat >>conftest.$ac_ext <<_ACEOF | |
25221 | /* end confdefs.h. */ | |
25222 | #include <mspack.h> | |
25223 | _ACEOF | |
25224 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25226 | ac_status=$? | |
25227 | grep -v '^ *+' conftest.er1 >conftest.err | |
25228 | rm -f conftest.er1 | |
25229 | cat conftest.err >&5 | |
25230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25231 | (exit $ac_status); } >/dev/null; then | |
25232 | if test -s conftest.err; then | |
25233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25234 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25235 | else |
25236 | ac_cpp_err= | |
25237 | fi | |
25238 | else | |
25239 | ac_cpp_err=yes | |
25240 | fi | |
25241 | if test -z "$ac_cpp_err"; then | |
25242 | ac_header_preproc=yes | |
25243 | else | |
25244 | echo "$as_me: failed program was:" >&5 | |
25245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25246 | ||
25247 | ac_header_preproc=no | |
25248 | fi | |
25249 | rm -f conftest.err conftest.$ac_ext | |
25250 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25251 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25252 | ||
25253 | # So? What about this header? | |
ac1cb8d3 VS |
25254 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25255 | yes:no: ) | |
a848cd7e SC |
25256 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25257 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25258 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25259 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25260 | ac_header_preproc=yes | |
a848cd7e | 25261 | ;; |
ac1cb8d3 | 25262 | no:yes:* ) |
a848cd7e SC |
25263 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25264 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25265 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25266 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25267 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25268 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25269 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25270 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25271 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25272 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25273 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25274 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25275 | ( |
25276 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25277 | ## ----------------------------------------- ## |
25278 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25279 | ## ----------------------------------------- ## | |
a848cd7e SC |
25280 | _ASBOX |
25281 | ) | | |
25282 | sed "s/^/$as_me: WARNING: /" >&2 | |
25283 | ;; | |
25284 | esac | |
25285 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25286 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25287 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25289 | else | |
25290 | ac_cv_header_mspack_h=$ac_header_preproc | |
25291 | fi | |
25292 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25293 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25294 | ||
25295 | fi | |
25296 | if test $ac_cv_header_mspack_h = yes; then | |
25297 | found_mspack_h=1 | |
25298 | fi | |
25299 | ||
25300 | ||
25301 | if test "x$found_mspack_h" = "x1"; then | |
25302 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25303 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25304 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25306 | else | |
25307 | ac_check_lib_save_LIBS=$LIBS | |
25308 | LIBS="-lmspack $LIBS" | |
25309 | cat >conftest.$ac_ext <<_ACEOF | |
25310 | /* confdefs.h. */ | |
25311 | _ACEOF | |
25312 | cat confdefs.h >>conftest.$ac_ext | |
25313 | cat >>conftest.$ac_ext <<_ACEOF | |
25314 | /* end confdefs.h. */ | |
25315 | ||
25316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25317 | #ifdef __cplusplus | |
25318 | extern "C" | |
25319 | #endif | |
25320 | /* We use char because int might match the return type of a gcc2 | |
25321 | builtin and then its argument prototype would still apply. */ | |
25322 | char mspack_create_chm_decompressor (); | |
25323 | int | |
25324 | main () | |
25325 | { | |
25326 | mspack_create_chm_decompressor (); | |
25327 | ; | |
25328 | return 0; | |
25329 | } | |
25330 | _ACEOF | |
25331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25333 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25334 | ac_status=$? |
ac1cb8d3 VS |
25335 | grep -v '^ *+' conftest.er1 >conftest.err |
25336 | rm -f conftest.er1 | |
25337 | cat conftest.err >&5 | |
a848cd7e SC |
25338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25339 | (exit $ac_status); } && | |
dee1a63f MB |
25340 | { ac_try='test -z "$ac_c_werror_flag" |
25341 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25343 | (eval $ac_try) 2>&5 | |
25344 | ac_status=$? | |
25345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25346 | (exit $ac_status); }; } && | |
25347 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25349 | (eval $ac_try) 2>&5 | |
25350 | ac_status=$? | |
25351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25352 | (exit $ac_status); }; }; then | |
25353 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25354 | else | |
25355 | echo "$as_me: failed program was:" >&5 | |
25356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25357 | ||
25358 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25359 | fi | |
ac1cb8d3 VS |
25360 | rm -f conftest.err conftest.$ac_objext \ |
25361 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25362 | LIBS=$ac_check_lib_save_LIBS |
25363 | fi | |
25364 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25365 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25366 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25367 | MSPACK_LINK=" -lmspack" | |
25368 | fi | |
25369 | ||
25370 | fi | |
25371 | if test "x$MSPACK_LINK" = "x" ; then | |
25372 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25373 | fi |
25374 | fi | |
25375 | ||
25376 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25377 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25378 | #define wxUSE_LIBMSPACK 1 |
25379 | _ACEOF | |
25380 | ||
a848cd7e SC |
25381 | fi |
25382 | ||
25383 | ||
25384 | ||
25385 | AFMINSTALL= | |
25386 | WIN32INSTALL= | |
25387 | ||
25388 | TOOLKIT= | |
25389 | TOOLKIT_INCLUDE= | |
25390 | WIDGET_SET= | |
25391 | ||
25392 | if test "$USE_WIN32" = 1 ; then | |
25393 | ||
25394 | for ac_header in w32api.h | |
25395 | do | |
25396 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25398 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25399 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25402 | fi | |
25403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25405 | else | |
25406 | # Is the header compilable? | |
25407 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25408 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25409 | cat >conftest.$ac_ext <<_ACEOF | |
25410 | /* confdefs.h. */ | |
25411 | _ACEOF | |
25412 | cat confdefs.h >>conftest.$ac_ext | |
25413 | cat >>conftest.$ac_ext <<_ACEOF | |
25414 | /* end confdefs.h. */ | |
25415 | $ac_includes_default | |
25416 | #include <$ac_header> | |
25417 | _ACEOF | |
25418 | rm -f conftest.$ac_objext | |
25419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25421 | ac_status=$? |
ac1cb8d3 VS |
25422 | grep -v '^ *+' conftest.er1 >conftest.err |
25423 | rm -f conftest.er1 | |
25424 | cat conftest.err >&5 | |
a848cd7e SC |
25425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25426 | (exit $ac_status); } && | |
dee1a63f MB |
25427 | { ac_try='test -z "$ac_c_werror_flag" |
25428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25430 | (eval $ac_try) 2>&5 | |
25431 | ac_status=$? | |
25432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25433 | (exit $ac_status); }; } && | |
25434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25436 | (eval $ac_try) 2>&5 | |
25437 | ac_status=$? | |
25438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25439 | (exit $ac_status); }; }; then | |
25440 | ac_header_compiler=yes | |
25441 | else | |
25442 | echo "$as_me: failed program was:" >&5 | |
25443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25444 | ||
25445 | ac_header_compiler=no | |
25446 | fi | |
ac1cb8d3 | 25447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25448 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25449 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25450 | ||
25451 | # Is the header present? | |
25452 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25453 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25454 | cat >conftest.$ac_ext <<_ACEOF | |
25455 | /* confdefs.h. */ | |
25456 | _ACEOF | |
25457 | cat confdefs.h >>conftest.$ac_ext | |
25458 | cat >>conftest.$ac_ext <<_ACEOF | |
25459 | /* end confdefs.h. */ | |
25460 | #include <$ac_header> | |
25461 | _ACEOF | |
25462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25464 | ac_status=$? | |
25465 | grep -v '^ *+' conftest.er1 >conftest.err | |
25466 | rm -f conftest.er1 | |
25467 | cat conftest.err >&5 | |
25468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25469 | (exit $ac_status); } >/dev/null; then | |
25470 | if test -s conftest.err; then | |
25471 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25473 | else |
25474 | ac_cpp_err= | |
25475 | fi | |
25476 | else | |
25477 | ac_cpp_err=yes | |
25478 | fi | |
25479 | if test -z "$ac_cpp_err"; then | |
25480 | ac_header_preproc=yes | |
25481 | else | |
25482 | echo "$as_me: failed program was:" >&5 | |
25483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25484 | ||
25485 | ac_header_preproc=no | |
25486 | fi | |
25487 | rm -f conftest.err conftest.$ac_ext | |
25488 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25489 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25490 | ||
25491 | # So? What about this header? | |
ac1cb8d3 VS |
25492 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25493 | yes:no: ) | |
a848cd7e SC |
25494 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25495 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25496 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25497 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25498 | ac_header_preproc=yes | |
a848cd7e | 25499 | ;; |
ac1cb8d3 | 25500 | no:yes:* ) |
a848cd7e SC |
25501 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25502 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25503 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25504 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25505 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25506 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25507 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25508 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25509 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25510 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25511 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25512 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25513 | ( |
25514 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25515 | ## ----------------------------------------- ## |
25516 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25517 | ## ----------------------------------------- ## | |
a848cd7e SC |
25518 | _ASBOX |
25519 | ) | | |
25520 | sed "s/^/$as_me: WARNING: /" >&2 | |
25521 | ;; | |
25522 | esac | |
25523 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25527 | else | |
ac1cb8d3 | 25528 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25529 | fi |
25530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25532 | ||
25533 | fi | |
25534 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25535 | cat >>confdefs.h <<_ACEOF | |
25536 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25537 | _ACEOF | |
25538 | ||
25539 | fi | |
25540 | ||
25541 | done | |
25542 | ||
25543 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25544 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25545 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25546 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25548 | fi | |
25549 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25550 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25551 | else | |
25552 | # Is the header compilable? | |
25553 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25554 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25555 | cat >conftest.$ac_ext <<_ACEOF | |
25556 | /* confdefs.h. */ | |
25557 | _ACEOF | |
25558 | cat confdefs.h >>conftest.$ac_ext | |
25559 | cat >>conftest.$ac_ext <<_ACEOF | |
25560 | /* end confdefs.h. */ | |
25561 | $ac_includes_default | |
25562 | #include <windows.h> | |
25563 | _ACEOF | |
25564 | rm -f conftest.$ac_objext | |
25565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25566 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25567 | ac_status=$? |
ac1cb8d3 VS |
25568 | grep -v '^ *+' conftest.er1 >conftest.err |
25569 | rm -f conftest.er1 | |
25570 | cat conftest.err >&5 | |
a848cd7e SC |
25571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25572 | (exit $ac_status); } && | |
dee1a63f MB |
25573 | { ac_try='test -z "$ac_c_werror_flag" |
25574 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25576 | (eval $ac_try) 2>&5 | |
25577 | ac_status=$? | |
25578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25579 | (exit $ac_status); }; } && | |
25580 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25582 | (eval $ac_try) 2>&5 | |
25583 | ac_status=$? | |
25584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25585 | (exit $ac_status); }; }; then | |
25586 | ac_header_compiler=yes | |
25587 | else | |
25588 | echo "$as_me: failed program was:" >&5 | |
25589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25590 | ||
25591 | ac_header_compiler=no | |
25592 | fi | |
ac1cb8d3 | 25593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25594 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25595 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25596 | ||
25597 | # Is the header present? | |
25598 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25599 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25600 | cat >conftest.$ac_ext <<_ACEOF | |
25601 | /* confdefs.h. */ | |
25602 | _ACEOF | |
25603 | cat confdefs.h >>conftest.$ac_ext | |
25604 | cat >>conftest.$ac_ext <<_ACEOF | |
25605 | /* end confdefs.h. */ | |
25606 | #include <windows.h> | |
25607 | _ACEOF | |
25608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25610 | ac_status=$? | |
25611 | grep -v '^ *+' conftest.er1 >conftest.err | |
25612 | rm -f conftest.er1 | |
25613 | cat conftest.err >&5 | |
25614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25615 | (exit $ac_status); } >/dev/null; then | |
25616 | if test -s conftest.err; then | |
25617 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25618 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25619 | else |
25620 | ac_cpp_err= | |
25621 | fi | |
25622 | else | |
25623 | ac_cpp_err=yes | |
25624 | fi | |
25625 | if test -z "$ac_cpp_err"; then | |
25626 | ac_header_preproc=yes | |
25627 | else | |
25628 | echo "$as_me: failed program was:" >&5 | |
25629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25630 | ||
25631 | ac_header_preproc=no | |
25632 | fi | |
25633 | rm -f conftest.err conftest.$ac_ext | |
25634 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25635 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25636 | ||
25637 | # So? What about this header? | |
ac1cb8d3 VS |
25638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25639 | yes:no: ) | |
a848cd7e SC |
25640 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25641 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25642 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
25643 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
25644 | ac_header_preproc=yes | |
a848cd7e | 25645 | ;; |
ac1cb8d3 | 25646 | no:yes:* ) |
a848cd7e SC |
25647 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
25648 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25649 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
25650 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
25651 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
25652 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
25653 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25654 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25655 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
25656 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25657 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
25658 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25659 | ( |
25660 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25661 | ## ----------------------------------------- ## |
25662 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25663 | ## ----------------------------------------- ## | |
a848cd7e SC |
25664 | _ASBOX |
25665 | ) | | |
25666 | sed "s/^/$as_me: WARNING: /" >&2 | |
25667 | ;; | |
25668 | esac | |
25669 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25670 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25671 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25673 | else | |
25674 | ac_cv_header_windows_h=$ac_header_preproc | |
25675 | fi | |
25676 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25677 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25678 | ||
25679 | fi | |
25680 | if test $ac_cv_header_windows_h = yes; then | |
25681 | : | |
25682 | else | |
25683 | ||
25684 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
25685 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
25686 | { (exit 1); exit 1; }; } | |
25687 | ||
25688 | fi | |
25689 | ||
25690 | ||
25691 | ||
25692 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
25693 | ||
25694 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
25695 | LIBS="$LIBS -loleacc" | |
25696 | fi | |
25697 | ||
25698 | case "${host}" in | |
25699 | *-*-cygwin* ) | |
25700 | LIBS="$LIBS -lkernel32 -luser32" | |
25701 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
25702 | esac | |
25703 | ||
25704 | if test "$wxUSE_ODBC" = "sys" ; then | |
25705 | wxUSE_ODBC = "yes" | |
25706 | fi | |
25707 | if test "$wxUSE_ODBC" = "yes" ; then | |
25708 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
25709 | cat >>confdefs.h <<\_ACEOF | |
25710 | #define wxUSE_ODBC 1 | |
25711 | _ACEOF | |
25712 | ||
25713 | fi | |
25714 | ||
25715 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
25716 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
25717 | ||
25718 | WIN32INSTALL=win32install | |
25719 | fi | |
25720 | ||
25721 | if test "$wxUSE_GUI" = "yes"; then | |
25722 | USE_GUI=1 | |
25723 | ||
25724 | GUI_TK_LIBRARY= | |
25725 | ||
25726 | WXGTK12= | |
25727 | WXGTK127= | |
25728 | WXGTK20= | |
25729 | WXGPE= | |
25730 | ||
207bc66c RN |
25731 | if test "$wxUSE_COCOA" = 1 ; then |
25732 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
25733 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
25734 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
25735 | wxUSE_PRINTING_ARCHITECTURE=no | |
25736 | fi | |
25737 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
25738 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
25739 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
25740 | wxUSE_DRAG_AND_DROP=no | |
25741 | fi | |
25742 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
25743 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
25744 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
25745 | wxUSE_DRAGIMAGE=no | |
25746 | fi | |
25747 | fi | |
25748 | ||
a848cd7e SC |
25749 | if test "$wxUSE_MSW" = 1 ; then |
25750 | TOOLKIT=MSW | |
25751 | GUIDIST=MSW_DIST | |
25752 | ||
ceec2216 | 25753 | case "${host}" in |
a848cd7e SC |
25754 | *-*-mingw32* ) |
25755 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
25756 | esac | |
25757 | fi | |
25758 | ||
25759 | if test "$wxUSE_GTK" = 1; then | |
25760 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
25761 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
25762 | ||
25763 | gtk_version_cached=1 | |
25764 | if test "${wx_cv_lib_gtk+set}" = set; then | |
25765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25766 | else | |
25767 | ||
25768 | gtk_version_cached=0 | |
25769 | echo "$as_me:$LINENO: result: " >&5 | |
25770 | echo "${ECHO_T}" >&6 | |
25771 | ||
25772 | GTK_MODULES= | |
25773 | if test "$wxUSE_THREADS" = "yes"; then | |
25774 | GTK_MODULES=gthread | |
25775 | fi | |
25776 | ||
f597b41c | 25777 | wx_cv_lib_gtk= |
5001df0d MW |
25778 | if test "x$wxGTK_VERSION" != "x1" |
25779 | then | |
25780 | case "${host}" in | |
25781 | *-*-solaris2* ) | |
25782 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25783 | enable_gtktest=no | |
25784 | fi | |
25785 | esac | |
25786 | ||
a848cd7e SC |
25787 | # Check whether --enable-gtktest or --disable-gtktest was given. |
25788 | if test "${enable_gtktest+set}" = set; then | |
25789 | enableval="$enable_gtktest" | |
25790 | ||
25791 | else | |
25792 | enable_gtktest=yes | |
25793 | fi; | |
25794 | ||
25795 | pkg_config_args=gtk+-2.0 | |
25796 | for module in . $GTK_MODULES | |
25797 | do | |
25798 | case "$module" in | |
25799 | gthread) | |
25800 | pkg_config_args="$pkg_config_args gthread-2.0" | |
25801 | ;; | |
25802 | esac | |
25803 | done | |
25804 | ||
25805 | no_gtk="" | |
25806 | ||
25807 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25808 | set dummy pkg-config; ac_word=$2 | |
25809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25811 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25813 | else | |
25814 | case $PKG_CONFIG in | |
25815 | [\\/]* | ?:[\\/]*) | |
25816 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25817 | ;; | |
25818 | *) | |
25819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25820 | for as_dir in $PATH | |
25821 | do | |
25822 | IFS=$as_save_IFS | |
25823 | test -z "$as_dir" && as_dir=. | |
25824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25826 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25828 | break 2 | |
25829 | fi | |
25830 | done | |
25831 | done | |
25832 | ||
25833 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25834 | ;; | |
25835 | esac | |
25836 | fi | |
25837 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25838 | ||
25839 | if test -n "$PKG_CONFIG"; then | |
25840 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25841 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25842 | else | |
25843 | echo "$as_me:$LINENO: result: no" >&5 | |
25844 | echo "${ECHO_T}no" >&6 | |
25845 | fi | |
25846 | ||
25847 | ||
25848 | if test x$PKG_CONFIG != xno ; then | |
25849 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
25850 | : | |
25851 | else | |
c2218763 | 25852 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
25853 | no_gtk=yes |
25854 | PKG_CONFIG=no | |
25855 | fi | |
25856 | else | |
25857 | no_gtk=yes | |
25858 | fi | |
25859 | ||
25860 | min_gtk_version=2.0.0 | |
25861 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
25862 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
25863 | ||
25864 | if test x$PKG_CONFIG != xno ; then | |
25865 | ## don't try to run the test against uninstalled libtool libs | |
25866 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
25867 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
25868 | enable_gtktest=no | |
25869 | fi | |
25870 | ||
25871 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
25872 | : | |
25873 | else | |
25874 | no_gtk=yes | |
25875 | fi | |
25876 | fi | |
25877 | ||
25878 | if test x"$no_gtk" = x ; then | |
25879 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
25880 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
25881 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25882 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25883 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25884 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25885 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25886 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25887 | if test "x$enable_gtktest" = "xyes" ; then | |
25888 | ac_save_CFLAGS="$CFLAGS" | |
25889 | ac_save_LIBS="$LIBS" | |
25890 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25891 | LIBS="$GTK_LIBS $LIBS" | |
25892 | rm -f conf.gtktest | |
25893 | if test "$cross_compiling" = yes; then | |
25894 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25895 | else | |
25896 | cat >conftest.$ac_ext <<_ACEOF | |
25897 | /* confdefs.h. */ | |
25898 | _ACEOF | |
25899 | cat confdefs.h >>conftest.$ac_ext | |
25900 | cat >>conftest.$ac_ext <<_ACEOF | |
25901 | /* end confdefs.h. */ | |
25902 | ||
25903 | #include <gtk/gtk.h> | |
25904 | #include <stdio.h> | |
25905 | #include <stdlib.h> | |
25906 | ||
25907 | int | |
25908 | main () | |
25909 | { | |
25910 | int major, minor, micro; | |
25911 | char *tmp_version; | |
25912 | ||
25913 | system ("touch conf.gtktest"); | |
25914 | ||
25915 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
25916 | tmp_version = g_strdup("$min_gtk_version"); | |
25917 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
25918 | printf("%s, bad version string\n", "$min_gtk_version"); | |
25919 | exit(1); | |
25920 | } | |
25921 | ||
25922 | if ((gtk_major_version != $gtk_config_major_version) || | |
25923 | (gtk_minor_version != $gtk_config_minor_version) || | |
25924 | (gtk_micro_version != $gtk_config_micro_version)) | |
25925 | { | |
25926 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
25927 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
25928 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25929 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
25930 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
25931 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
25932 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
25933 | printf("*** required on your system.\n"); | |
25934 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
25935 | printf("*** to point to the correct configuration files\n"); | |
25936 | } | |
25937 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
25938 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
25939 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
25940 | { | |
25941 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
25942 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
25943 | printf("*** library (version %d.%d.%d)\n", | |
25944 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25945 | } | |
25946 | else | |
25947 | { | |
25948 | if ((gtk_major_version > major) || | |
25949 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
25950 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
25951 | { | |
25952 | return 0; | |
25953 | } | |
25954 | else | |
25955 | { | |
25956 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
25957 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
25958 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
25959 | major, minor, micro); | |
25960 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
25961 | printf("***\n"); | |
25962 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
25963 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
25964 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
25965 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
25966 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
25967 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
25968 | printf("*** so that the correct libraries are found at run-time))\n"); | |
25969 | } | |
25970 | } | |
25971 | return 1; | |
25972 | } | |
25973 | ||
25974 | _ACEOF | |
25975 | rm -f conftest$ac_exeext | |
25976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25977 | (eval $ac_link) 2>&5 | |
25978 | ac_status=$? | |
25979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25982 | (eval $ac_try) 2>&5 | |
25983 | ac_status=$? | |
25984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25985 | (exit $ac_status); }; }; then | |
25986 | : | |
25987 | else | |
25988 | echo "$as_me: program exited with status $ac_status" >&5 | |
25989 | echo "$as_me: failed program was:" >&5 | |
25990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25991 | ||
25992 | ( exit $ac_status ) | |
25993 | no_gtk=yes | |
25994 | fi | |
ac1cb8d3 | 25995 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25996 | fi |
25997 | CFLAGS="$ac_save_CFLAGS" | |
25998 | LIBS="$ac_save_LIBS" | |
25999 | fi | |
26000 | fi | |
26001 | if test "x$no_gtk" = x ; then | |
26002 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26003 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26004 | wx_cv_lib_gtk=2.0 | |
26005 | else | |
26006 | echo "$as_me:$LINENO: result: no" >&5 | |
26007 | echo "${ECHO_T}no" >&6 | |
26008 | if test "$PKG_CONFIG" = "no" ; then | |
26009 | echo "*** A new enough version of pkg-config was not found." | |
26010 | echo "*** See http://pkgconfig.sourceforge.net" | |
26011 | else | |
26012 | if test -f conf.gtktest ; then | |
26013 | : | |
26014 | else | |
26015 | echo "*** Could not run GTK+ test program, checking why..." | |
26016 | ac_save_CFLAGS="$CFLAGS" | |
26017 | ac_save_LIBS="$LIBS" | |
26018 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26019 | LIBS="$LIBS $GTK_LIBS" | |
26020 | cat >conftest.$ac_ext <<_ACEOF | |
26021 | /* confdefs.h. */ | |
26022 | _ACEOF | |
26023 | cat confdefs.h >>conftest.$ac_ext | |
26024 | cat >>conftest.$ac_ext <<_ACEOF | |
26025 | /* end confdefs.h. */ | |
26026 | ||
26027 | #include <gtk/gtk.h> | |
26028 | #include <stdio.h> | |
26029 | ||
26030 | int | |
26031 | main () | |
26032 | { | |
26033 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26034 | ; | |
26035 | return 0; | |
26036 | } | |
26037 | _ACEOF | |
26038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26040 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26041 | ac_status=$? |
ac1cb8d3 VS |
26042 | grep -v '^ *+' conftest.er1 >conftest.err |
26043 | rm -f conftest.er1 | |
26044 | cat conftest.err >&5 | |
a848cd7e SC |
26045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26046 | (exit $ac_status); } && | |
dee1a63f MB |
26047 | { ac_try='test -z "$ac_c_werror_flag" |
26048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26050 | (eval $ac_try) 2>&5 | |
26051 | ac_status=$? | |
26052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26053 | (exit $ac_status); }; } && | |
26054 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26056 | (eval $ac_try) 2>&5 | |
26057 | ac_status=$? | |
26058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26059 | (exit $ac_status); }; }; then | |
26060 | echo "*** The test program compiled, but did not run. This usually means" | |
26061 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26062 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26063 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26064 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26065 | echo "*** is required on your system" | |
26066 | echo "***" | |
26067 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26068 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26069 | else | |
26070 | echo "$as_me: failed program was:" >&5 | |
26071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26072 | ||
26073 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26074 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26075 | fi | |
ac1cb8d3 VS |
26076 | rm -f conftest.err conftest.$ac_objext \ |
26077 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26078 | CFLAGS="$ac_save_CFLAGS" |
26079 | LIBS="$ac_save_LIBS" | |
26080 | fi | |
26081 | fi | |
26082 | GTK_CFLAGS="" | |
26083 | GTK_LIBS="" | |
26084 | : | |
26085 | fi | |
26086 | ||
26087 | ||
26088 | rm -f conf.gtktest | |
26089 | ||
5001df0d MW |
26090 | |
26091 | case "${host}" in | |
26092 | *-*-solaris2* ) | |
26093 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26094 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26095 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26096 | fi | |
26097 | if test "$wxUSE_SHARED" != "yes"; then | |
26098 | GTK_LIBS="$GTK_LIBS -lX11" | |
26099 | fi | |
26100 | esac | |
f597b41c MW |
26101 | fi |
26102 | ||
f34ca037 MW |
26103 | if test -z "$wx_cv_lib_gtk"; then |
26104 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26105 | |
26106 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26107 | if test "${with_gtk_prefix+set}" = set; then | |
26108 | withval="$with_gtk_prefix" | |
26109 | gtk_config_prefix="$withval" | |
26110 | else | |
26111 | gtk_config_prefix="" | |
26112 | fi; | |
26113 | ||
26114 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26115 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26116 | withval="$with_gtk_exec_prefix" | |
26117 | gtk_config_exec_prefix="$withval" | |
26118 | else | |
26119 | gtk_config_exec_prefix="" | |
26120 | fi; | |
26121 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26122 | if test "${enable_gtktest+set}" = set; then | |
26123 | enableval="$enable_gtktest" | |
26124 | ||
26125 | else | |
26126 | enable_gtktest=yes | |
26127 | fi; | |
26128 | ||
26129 | for module in . $GTK_MODULES | |
26130 | do | |
26131 | case "$module" in | |
26132 | gthread) | |
26133 | gtk_config_args="$gtk_config_args gthread" | |
26134 | ;; | |
26135 | esac | |
26136 | done | |
26137 | ||
26138 | if test x$gtk_config_exec_prefix != x ; then | |
26139 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26140 | if test x${GTK_CONFIG+set} != xset ; then | |
26141 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26142 | fi | |
26143 | fi | |
26144 | if test x$gtk_config_prefix != x ; then | |
26145 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26146 | if test x${GTK_CONFIG+set} != xset ; then | |
26147 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26148 | fi | |
26149 | fi | |
26150 | ||
26151 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26152 | set dummy gtk-config; ac_word=$2 | |
26153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26155 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26157 | else | |
26158 | case $GTK_CONFIG in | |
26159 | [\\/]* | ?:[\\/]*) | |
26160 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26161 | ;; | |
26162 | *) | |
26163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26164 | for as_dir in $PATH | |
26165 | do | |
26166 | IFS=$as_save_IFS | |
26167 | test -z "$as_dir" && as_dir=. | |
26168 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26169 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26170 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26171 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26172 | break 2 | |
26173 | fi | |
26174 | done | |
26175 | done | |
26176 | ||
26177 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26178 | ;; | |
26179 | esac | |
26180 | fi | |
26181 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26182 | ||
26183 | if test -n "$GTK_CONFIG"; then | |
26184 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26185 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26186 | else | |
26187 | echo "$as_me:$LINENO: result: no" >&5 | |
26188 | echo "${ECHO_T}no" >&6 | |
26189 | fi | |
26190 | ||
26191 | min_gtk_version=1.2.7 | |
26192 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26193 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26194 | no_gtk="" | |
26195 | if test "$GTK_CONFIG" = "no" ; then | |
26196 | no_gtk=yes | |
26197 | else | |
26198 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26199 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26200 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26201 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26202 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26203 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26204 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26205 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26206 | if test "x$enable_gtktest" = "xyes" ; then | |
26207 | ac_save_CFLAGS="$CFLAGS" | |
26208 | ac_save_LIBS="$LIBS" | |
26209 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26210 | LIBS="$GTK_LIBS $LIBS" | |
26211 | rm -f conf.gtktest | |
26212 | if test "$cross_compiling" = yes; then | |
26213 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26214 | else | |
26215 | cat >conftest.$ac_ext <<_ACEOF | |
26216 | /* confdefs.h. */ | |
26217 | _ACEOF | |
26218 | cat confdefs.h >>conftest.$ac_ext | |
26219 | cat >>conftest.$ac_ext <<_ACEOF | |
26220 | /* end confdefs.h. */ | |
26221 | ||
26222 | #include <gtk/gtk.h> | |
26223 | #include <stdio.h> | |
26224 | #include <stdlib.h> | |
26225 | ||
26226 | int | |
26227 | main () | |
26228 | { | |
26229 | int major, minor, micro; | |
26230 | char *tmp_version; | |
26231 | ||
26232 | system ("touch conf.gtktest"); | |
26233 | ||
26234 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26235 | tmp_version = g_strdup("$min_gtk_version"); | |
26236 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26237 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26238 | exit(1); | |
26239 | } | |
26240 | ||
26241 | if ((gtk_major_version != $gtk_config_major_version) || | |
26242 | (gtk_minor_version != $gtk_config_minor_version) || | |
26243 | (gtk_micro_version != $gtk_config_micro_version)) | |
26244 | { | |
26245 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26246 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26247 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26248 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26249 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26250 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26251 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26252 | printf("*** required on your system.\n"); | |
26253 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26254 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26255 | printf("*** before re-running configure\n"); | |
26256 | } | |
26257 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26258 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26259 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26260 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26261 | { | |
26262 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26263 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26264 | printf("*** library (version %d.%d.%d)\n", | |
26265 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26266 | } | |
26267 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26268 | else | |
26269 | { | |
26270 | if ((gtk_major_version > major) || | |
26271 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26272 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26273 | { | |
26274 | return 0; | |
26275 | } | |
26276 | else | |
26277 | { | |
26278 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26279 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26280 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26281 | major, minor, micro); | |
26282 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26283 | printf("***\n"); | |
26284 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26285 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26286 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26287 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26288 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26289 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26290 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26291 | } | |
26292 | } | |
26293 | return 1; | |
26294 | } | |
26295 | ||
26296 | _ACEOF | |
26297 | rm -f conftest$ac_exeext | |
26298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26299 | (eval $ac_link) 2>&5 | |
26300 | ac_status=$? | |
26301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26302 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26304 | (eval $ac_try) 2>&5 | |
26305 | ac_status=$? | |
26306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26307 | (exit $ac_status); }; }; then | |
26308 | : | |
26309 | else | |
26310 | echo "$as_me: program exited with status $ac_status" >&5 | |
26311 | echo "$as_me: failed program was:" >&5 | |
26312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26313 | ||
26314 | ( exit $ac_status ) | |
26315 | no_gtk=yes | |
26316 | fi | |
ac1cb8d3 | 26317 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26318 | fi |
26319 | CFLAGS="$ac_save_CFLAGS" | |
26320 | LIBS="$ac_save_LIBS" | |
26321 | fi | |
26322 | fi | |
26323 | if test "x$no_gtk" = x ; then | |
26324 | echo "$as_me:$LINENO: result: yes" >&5 | |
26325 | echo "${ECHO_T}yes" >&6 | |
26326 | wx_cv_lib_gtk=1.2.7 | |
26327 | else | |
26328 | echo "$as_me:$LINENO: result: no" >&5 | |
26329 | echo "${ECHO_T}no" >&6 | |
26330 | if test "$GTK_CONFIG" = "no" ; then | |
26331 | echo "*** The gtk-config script installed by GTK could not be found" | |
26332 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26333 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26334 | echo "*** full path to gtk-config." | |
26335 | else | |
26336 | if test -f conf.gtktest ; then | |
26337 | : | |
26338 | else | |
26339 | echo "*** Could not run GTK test program, checking why..." | |
26340 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26341 | LIBS="$LIBS $GTK_LIBS" | |
26342 | cat >conftest.$ac_ext <<_ACEOF | |
26343 | /* confdefs.h. */ | |
26344 | _ACEOF | |
26345 | cat confdefs.h >>conftest.$ac_ext | |
26346 | cat >>conftest.$ac_ext <<_ACEOF | |
26347 | /* end confdefs.h. */ | |
26348 | ||
26349 | #include <gtk/gtk.h> | |
26350 | #include <stdio.h> | |
26351 | ||
26352 | int | |
26353 | main () | |
26354 | { | |
26355 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26356 | ; | |
26357 | return 0; | |
26358 | } | |
26359 | _ACEOF | |
26360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26362 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26363 | ac_status=$? |
ac1cb8d3 VS |
26364 | grep -v '^ *+' conftest.er1 >conftest.err |
26365 | rm -f conftest.er1 | |
26366 | cat conftest.err >&5 | |
a848cd7e SC |
26367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26368 | (exit $ac_status); } && | |
dee1a63f MB |
26369 | { ac_try='test -z "$ac_c_werror_flag" |
26370 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26372 | (eval $ac_try) 2>&5 | |
26373 | ac_status=$? | |
26374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26375 | (exit $ac_status); }; } && | |
26376 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26378 | (eval $ac_try) 2>&5 | |
26379 | ac_status=$? | |
26380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26381 | (exit $ac_status); }; }; then | |
26382 | echo "*** The test program compiled, but did not run. This usually means" | |
26383 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26384 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26385 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26386 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26387 | echo "*** is required on your system" | |
26388 | echo "***" | |
26389 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26390 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26391 | echo "***" | |
26392 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26393 | echo "*** came with the system with the command" | |
26394 | echo "***" | |
26395 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26396 | else | |
26397 | echo "$as_me: failed program was:" >&5 | |
26398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26399 | ||
26400 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26401 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26402 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26403 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26404 | fi | |
ac1cb8d3 VS |
26405 | rm -f conftest.err conftest.$ac_objext \ |
26406 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26407 | CFLAGS="$ac_save_CFLAGS" |
26408 | LIBS="$ac_save_LIBS" | |
26409 | fi | |
26410 | fi | |
26411 | GTK_CFLAGS="" | |
26412 | GTK_LIBS="" | |
26413 | : | |
26414 | fi | |
26415 | ||
26416 | ||
26417 | rm -f conf.gtktest | |
26418 | ||
26419 | ||
f34ca037 | 26420 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26421 | |
26422 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26423 | if test "${with_gtk_prefix+set}" = set; then | |
26424 | withval="$with_gtk_prefix" | |
26425 | gtk_config_prefix="$withval" | |
26426 | else | |
26427 | gtk_config_prefix="" | |
26428 | fi; | |
26429 | ||
26430 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26431 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26432 | withval="$with_gtk_exec_prefix" | |
26433 | gtk_config_exec_prefix="$withval" | |
26434 | else | |
26435 | gtk_config_exec_prefix="" | |
26436 | fi; | |
26437 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26438 | if test "${enable_gtktest+set}" = set; then | |
26439 | enableval="$enable_gtktest" | |
26440 | ||
26441 | else | |
26442 | enable_gtktest=yes | |
26443 | fi; | |
26444 | ||
26445 | for module in . $GTK_MODULES | |
26446 | do | |
26447 | case "$module" in | |
26448 | gthread) | |
26449 | gtk_config_args="$gtk_config_args gthread" | |
26450 | ;; | |
26451 | esac | |
26452 | done | |
26453 | ||
26454 | if test x$gtk_config_exec_prefix != x ; then | |
26455 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26456 | if test x${GTK_CONFIG+set} != xset ; then | |
26457 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26458 | fi | |
26459 | fi | |
26460 | if test x$gtk_config_prefix != x ; then | |
26461 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26462 | if test x${GTK_CONFIG+set} != xset ; then | |
26463 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26464 | fi | |
26465 | fi | |
26466 | ||
26467 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26468 | set dummy gtk-config; ac_word=$2 | |
26469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26471 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26473 | else | |
26474 | case $GTK_CONFIG in | |
26475 | [\\/]* | ?:[\\/]*) | |
26476 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26477 | ;; | |
26478 | *) | |
26479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26480 | for as_dir in $PATH | |
26481 | do | |
26482 | IFS=$as_save_IFS | |
26483 | test -z "$as_dir" && as_dir=. | |
26484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26486 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26488 | break 2 | |
26489 | fi | |
26490 | done | |
26491 | done | |
26492 | ||
26493 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26494 | ;; | |
26495 | esac | |
26496 | fi | |
26497 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26498 | ||
26499 | if test -n "$GTK_CONFIG"; then | |
26500 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26501 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26502 | else | |
26503 | echo "$as_me:$LINENO: result: no" >&5 | |
26504 | echo "${ECHO_T}no" >&6 | |
26505 | fi | |
26506 | ||
26507 | min_gtk_version=1.2.3 | |
26508 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26509 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26510 | no_gtk="" | |
26511 | if test "$GTK_CONFIG" = "no" ; then | |
26512 | no_gtk=yes | |
26513 | else | |
26514 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26515 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26516 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26517 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26518 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26519 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26520 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26521 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26522 | if test "x$enable_gtktest" = "xyes" ; then | |
26523 | ac_save_CFLAGS="$CFLAGS" | |
26524 | ac_save_LIBS="$LIBS" | |
26525 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26526 | LIBS="$GTK_LIBS $LIBS" | |
26527 | rm -f conf.gtktest | |
26528 | if test "$cross_compiling" = yes; then | |
26529 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26530 | else | |
26531 | cat >conftest.$ac_ext <<_ACEOF | |
26532 | /* confdefs.h. */ | |
26533 | _ACEOF | |
26534 | cat confdefs.h >>conftest.$ac_ext | |
26535 | cat >>conftest.$ac_ext <<_ACEOF | |
26536 | /* end confdefs.h. */ | |
26537 | ||
26538 | #include <gtk/gtk.h> | |
26539 | #include <stdio.h> | |
26540 | #include <stdlib.h> | |
26541 | ||
26542 | int | |
26543 | main () | |
26544 | { | |
26545 | int major, minor, micro; | |
26546 | char *tmp_version; | |
26547 | ||
26548 | system ("touch conf.gtktest"); | |
26549 | ||
26550 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26551 | tmp_version = g_strdup("$min_gtk_version"); | |
26552 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26553 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26554 | exit(1); | |
26555 | } | |
26556 | ||
26557 | if ((gtk_major_version != $gtk_config_major_version) || | |
26558 | (gtk_minor_version != $gtk_config_minor_version) || | |
26559 | (gtk_micro_version != $gtk_config_micro_version)) | |
26560 | { | |
26561 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26562 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26563 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26564 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26565 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26566 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26567 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26568 | printf("*** required on your system.\n"); | |
26569 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26570 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26571 | printf("*** before re-running configure\n"); | |
26572 | } | |
26573 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26574 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26575 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26576 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26577 | { | |
26578 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26579 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26580 | printf("*** library (version %d.%d.%d)\n", | |
26581 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26582 | } | |
26583 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26584 | else | |
26585 | { | |
26586 | if ((gtk_major_version > major) || | |
26587 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26588 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26589 | { | |
26590 | return 0; | |
26591 | } | |
26592 | else | |
26593 | { | |
26594 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26595 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26596 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26597 | major, minor, micro); | |
26598 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26599 | printf("***\n"); | |
26600 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26601 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26602 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26603 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26604 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26605 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26606 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26607 | } | |
26608 | } | |
26609 | return 1; | |
26610 | } | |
26611 | ||
26612 | _ACEOF | |
26613 | rm -f conftest$ac_exeext | |
26614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26615 | (eval $ac_link) 2>&5 | |
26616 | ac_status=$? | |
26617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26620 | (eval $ac_try) 2>&5 | |
26621 | ac_status=$? | |
26622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26623 | (exit $ac_status); }; }; then | |
26624 | : | |
26625 | else | |
26626 | echo "$as_me: program exited with status $ac_status" >&5 | |
26627 | echo "$as_me: failed program was:" >&5 | |
26628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26629 | ||
26630 | ( exit $ac_status ) | |
26631 | no_gtk=yes | |
26632 | fi | |
ac1cb8d3 | 26633 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26634 | fi |
26635 | CFLAGS="$ac_save_CFLAGS" | |
26636 | LIBS="$ac_save_LIBS" | |
26637 | fi | |
26638 | fi | |
26639 | if test "x$no_gtk" = x ; then | |
26640 | echo "$as_me:$LINENO: result: yes" >&5 | |
26641 | echo "${ECHO_T}yes" >&6 | |
26642 | wx_cv_lib_gtk=1.2.3 | |
26643 | else | |
26644 | echo "$as_me:$LINENO: result: no" >&5 | |
26645 | echo "${ECHO_T}no" >&6 | |
26646 | if test "$GTK_CONFIG" = "no" ; then | |
26647 | echo "*** The gtk-config script installed by GTK could not be found" | |
26648 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26649 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26650 | echo "*** full path to gtk-config." | |
26651 | else | |
26652 | if test -f conf.gtktest ; then | |
26653 | : | |
26654 | else | |
26655 | echo "*** Could not run GTK test program, checking why..." | |
26656 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26657 | LIBS="$LIBS $GTK_LIBS" | |
26658 | cat >conftest.$ac_ext <<_ACEOF | |
26659 | /* confdefs.h. */ | |
26660 | _ACEOF | |
26661 | cat confdefs.h >>conftest.$ac_ext | |
26662 | cat >>conftest.$ac_ext <<_ACEOF | |
26663 | /* end confdefs.h. */ | |
26664 | ||
26665 | #include <gtk/gtk.h> | |
26666 | #include <stdio.h> | |
26667 | ||
26668 | int | |
26669 | main () | |
26670 | { | |
26671 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26672 | ; | |
26673 | return 0; | |
26674 | } | |
26675 | _ACEOF | |
26676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26678 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26679 | ac_status=$? |
ac1cb8d3 VS |
26680 | grep -v '^ *+' conftest.er1 >conftest.err |
26681 | rm -f conftest.er1 | |
26682 | cat conftest.err >&5 | |
a848cd7e SC |
26683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26684 | (exit $ac_status); } && | |
dee1a63f MB |
26685 | { ac_try='test -z "$ac_c_werror_flag" |
26686 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26688 | (eval $ac_try) 2>&5 | |
26689 | ac_status=$? | |
26690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26691 | (exit $ac_status); }; } && | |
26692 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26694 | (eval $ac_try) 2>&5 | |
26695 | ac_status=$? | |
26696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26697 | (exit $ac_status); }; }; then | |
26698 | echo "*** The test program compiled, but did not run. This usually means" | |
26699 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26700 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26701 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26702 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26703 | echo "*** is required on your system" | |
26704 | echo "***" | |
26705 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26706 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26707 | echo "***" | |
26708 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26709 | echo "*** came with the system with the command" | |
26710 | echo "***" | |
26711 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26712 | else | |
26713 | echo "$as_me: failed program was:" >&5 | |
26714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26715 | ||
26716 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26717 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26718 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26719 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26720 | fi | |
ac1cb8d3 VS |
26721 | rm -f conftest.err conftest.$ac_objext \ |
26722 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26723 | CFLAGS="$ac_save_CFLAGS" |
26724 | LIBS="$ac_save_LIBS" | |
26725 | fi | |
26726 | fi | |
26727 | GTK_CFLAGS="" | |
26728 | GTK_LIBS="" | |
26729 | : | |
26730 | fi | |
26731 | ||
26732 | ||
26733 | rm -f conf.gtktest | |
26734 | ||
f34ca037 | 26735 | fi |
a848cd7e SC |
26736 | fi |
26737 | fi | |
26738 | ||
26739 | if test -z "$wx_cv_lib_gtk"; then | |
26740 | wx_cv_lib_gtk=none | |
26741 | else | |
26742 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 26743 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
26744 | fi |
26745 | ||
26746 | ||
26747 | fi | |
26748 | ||
26749 | ||
26750 | if test "$gtk_version_cached" = 1; then | |
26751 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
26752 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
26753 | fi | |
26754 | ||
26755 | case "$wx_cv_lib_gtk" in | |
26756 | 2.0) WXGTK20=1 | |
26757 | TOOLKIT_VERSION=2 | |
26758 | ;; | |
26759 | 1.2.7) WXGTK127=1 | |
26760 | WXGTK12=1 | |
26761 | ;; | |
26762 | 1.2.3) WXGTK12=1 | |
26763 | ;; | |
26764 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
26765 | The development files for GTK+ were not found. For GTK+ 2, please |
26766 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26767 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26768 | and that the version is 1.2.3 or above. Also check that the | |
26769 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26770 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26771 | " >&5 |
26772 | echo "$as_me: error: | |
f597b41c MW |
26773 | The development files for GTK+ were not found. For GTK+ 2, please |
26774 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26775 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26776 | and that the version is 1.2.3 or above. Also check that the | |
26777 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26778 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26779 | " >&2;} |
26780 | { (exit 1); exit 1; }; } | |
26781 | ;; | |
26782 | esac | |
26783 | ||
26784 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
26785 | save_CFLAGS="$CFLAGS" |
26786 | save_LIBS="$LIBS" | |
9d271838 | 26787 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 26788 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 26789 | |
d12aef51 VZ |
26790 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
26791 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
26792 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
26793 | /* confdefs.h. */ |
26794 | _ACEOF | |
26795 | cat confdefs.h >>conftest.$ac_ext | |
26796 | cat >>conftest.$ac_ext <<_ACEOF | |
26797 | /* end confdefs.h. */ | |
304205f1 | 26798 | |
d12aef51 | 26799 | #include <gtk/gtk.h> |
304205f1 | 26800 | |
d12aef51 VZ |
26801 | int |
26802 | main () | |
26803 | { | |
304205f1 | 26804 | |
d12aef51 | 26805 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
26806 | |
26807 | ; | |
26808 | return 0; | |
26809 | } | |
26810 | _ACEOF | |
26811 | rm -f conftest.$ac_objext | |
26812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26813 | (eval $ac_compile) 2>conftest.er1 | |
26814 | ac_status=$? | |
26815 | grep -v '^ *+' conftest.er1 >conftest.err | |
26816 | rm -f conftest.er1 | |
26817 | cat conftest.err >&5 | |
26818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26819 | (exit $ac_status); } && | |
dee1a63f MB |
26820 | { ac_try='test -z "$ac_c_werror_flag" |
26821 | || test ! -s conftest.err' | |
abc736fd MW |
26822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26823 | (eval $ac_try) 2>&5 | |
26824 | ac_status=$? | |
26825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26826 | (exit $ac_status); }; } && | |
26827 | { ac_try='test -s conftest.$ac_objext' | |
26828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26829 | (eval $ac_try) 2>&5 | |
26830 | ac_status=$? | |
26831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26832 | (exit $ac_status); }; }; then | |
26833 | ||
26834 | echo "$as_me:$LINENO: result: no" >&5 | |
26835 | echo "${ECHO_T}no" >&6 | |
26836 | ||
26837 | else | |
26838 | echo "$as_me: failed program was:" >&5 | |
26839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26840 | ||
26841 | ||
26842 | cat >>confdefs.h <<\_ACEOF | |
26843 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
26844 | _ACEOF | |
26845 | ||
26846 | echo "$as_me:$LINENO: result: yes" >&5 | |
26847 | echo "${ECHO_T}yes" >&6 | |
26848 | ||
26849 | fi | |
26850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26851 | ||
9755e73b VS |
26852 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
26853 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
26854 | cat >conftest.$ac_ext <<_ACEOF | |
26855 | /* confdefs.h. */ | |
26856 | _ACEOF | |
26857 | cat confdefs.h >>conftest.$ac_ext | |
26858 | cat >>conftest.$ac_ext <<_ACEOF | |
26859 | /* end confdefs.h. */ | |
26860 | ||
26861 | #include <gtk/gtk.h> | |
26862 | ||
26863 | int | |
26864 | main () | |
26865 | { | |
26866 | ||
26867 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 26868 | Not GTK+ 2.4 |
9755e73b VS |
26869 | #endif |
26870 | ||
26871 | ; | |
26872 | return 0; | |
26873 | } | |
26874 | _ACEOF | |
26875 | rm -f conftest.$ac_objext | |
26876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26877 | (eval $ac_compile) 2>conftest.er1 | |
26878 | ac_status=$? | |
26879 | grep -v '^ *+' conftest.er1 >conftest.err | |
26880 | rm -f conftest.er1 | |
26881 | cat conftest.err >&5 | |
26882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26883 | (exit $ac_status); } && | |
dee1a63f MB |
26884 | { ac_try='test -z "$ac_c_werror_flag" |
26885 | || test ! -s conftest.err' | |
9755e73b VS |
26886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26887 | (eval $ac_try) 2>&5 | |
26888 | ac_status=$? | |
26889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26890 | (exit $ac_status); }; } && | |
26891 | { ac_try='test -s conftest.$ac_objext' | |
26892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26893 | (eval $ac_try) 2>&5 | |
26894 | ac_status=$? | |
26895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26896 | (exit $ac_status); }; }; then | |
26897 | ||
26898 | cat >>confdefs.h <<\_ACEOF | |
26899 | #define __WXGTK24__ 1 | |
26900 | _ACEOF | |
26901 | ||
26902 | echo "$as_me:$LINENO: result: yes" >&5 | |
26903 | echo "${ECHO_T}yes" >&6 | |
26904 | ||
26905 | else | |
26906 | echo "$as_me: failed program was:" >&5 | |
26907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26908 | ||
26909 | ||
26910 | echo "$as_me:$LINENO: result: no" >&5 | |
26911 | echo "${ECHO_T}no" >&6 | |
26912 | ||
26913 | fi | |
26914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26915 | ||
304205f1 VS |
26916 | CFLAGS="$save_CFLAGS" |
26917 | LIBS="$save_LIBS" | |
a848cd7e SC |
26918 | else |
26919 | if test "$wxUSE_UNICODE" = "yes"; then | |
26920 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
26921 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
26922 | wxUSE_UNICODE=no | |
26923 | fi | |
26924 | fi | |
26925 | ||
26926 | if test "$USE_DARWIN" != 1; then | |
26927 | ||
26928 | for ac_func in poll | |
26929 | do | |
26930 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
26931 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26932 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26933 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26935 | else | |
26936 | cat >conftest.$ac_ext <<_ACEOF | |
26937 | /* confdefs.h. */ | |
26938 | _ACEOF | |
26939 | cat confdefs.h >>conftest.$ac_ext | |
26940 | cat >>conftest.$ac_ext <<_ACEOF | |
26941 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
26942 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
26943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
26944 | #define $ac_func innocuous_$ac_func | |
26945 | ||
a848cd7e SC |
26946 | /* System header to define __stub macros and hopefully few prototypes, |
26947 | which can conflict with char $ac_func (); below. | |
26948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26949 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 26950 | |
a848cd7e SC |
26951 | #ifdef __STDC__ |
26952 | # include <limits.h> | |
26953 | #else | |
26954 | # include <assert.h> | |
26955 | #endif | |
ac1cb8d3 VS |
26956 | |
26957 | #undef $ac_func | |
26958 | ||
a848cd7e SC |
26959 | /* Override any gcc2 internal prototype to avoid an error. */ |
26960 | #ifdef __cplusplus | |
26961 | extern "C" | |
26962 | { | |
26963 | #endif | |
26964 | /* We use char because int might match the return type of a gcc2 | |
26965 | builtin and then its argument prototype would still apply. */ | |
26966 | char $ac_func (); | |
26967 | /* The GNU C library defines this for functions which it implements | |
26968 | to always fail with ENOSYS. Some functions are actually named | |
26969 | something starting with __ and the normal name is an alias. */ | |
26970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26971 | choke me | |
26972 | #else | |
26973 | char (*f) () = $ac_func; | |
26974 | #endif | |
26975 | #ifdef __cplusplus | |
26976 | } | |
26977 | #endif | |
26978 | ||
26979 | int | |
26980 | main () | |
26981 | { | |
26982 | return f != $ac_func; | |
26983 | ; | |
26984 | return 0; | |
26985 | } | |
26986 | _ACEOF | |
26987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26989 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26990 | ac_status=$? |
ac1cb8d3 VS |
26991 | grep -v '^ *+' conftest.er1 >conftest.err |
26992 | rm -f conftest.er1 | |
26993 | cat conftest.err >&5 | |
a848cd7e SC |
26994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26995 | (exit $ac_status); } && | |
dee1a63f MB |
26996 | { ac_try='test -z "$ac_c_werror_flag" |
26997 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26999 | (eval $ac_try) 2>&5 | |
27000 | ac_status=$? | |
27001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27002 | (exit $ac_status); }; } && | |
27003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27005 | (eval $ac_try) 2>&5 | |
27006 | ac_status=$? | |
27007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27008 | (exit $ac_status); }; }; then | |
27009 | eval "$as_ac_var=yes" | |
27010 | else | |
27011 | echo "$as_me: failed program was:" >&5 | |
27012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27013 | ||
27014 | eval "$as_ac_var=no" | |
27015 | fi | |
ac1cb8d3 VS |
27016 | rm -f conftest.err conftest.$ac_objext \ |
27017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27018 | fi |
27019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27020 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27021 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27022 | cat >>confdefs.h <<_ACEOF | |
27023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27024 | _ACEOF | |
27025 | ||
27026 | fi | |
27027 | done | |
27028 | ||
27029 | fi | |
27030 | ||
27031 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27032 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27033 | ||
27034 | AFMINSTALL=afminstall | |
27035 | TOOLKIT=GTK | |
27036 | GUIDIST=GTK_DIST | |
27037 | ||
27038 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27039 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27040 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27042 | else | |
27043 | ac_check_lib_save_LIBS=$LIBS | |
27044 | LIBS="-lgdk $LIBS" | |
27045 | cat >conftest.$ac_ext <<_ACEOF | |
27046 | /* confdefs.h. */ | |
27047 | _ACEOF | |
27048 | cat confdefs.h >>conftest.$ac_ext | |
27049 | cat >>conftest.$ac_ext <<_ACEOF | |
27050 | /* end confdefs.h. */ | |
27051 | ||
27052 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27053 | #ifdef __cplusplus | |
27054 | extern "C" | |
27055 | #endif | |
27056 | /* We use char because int might match the return type of a gcc2 | |
27057 | builtin and then its argument prototype would still apply. */ | |
27058 | char gdk_im_open (); | |
27059 | int | |
27060 | main () | |
27061 | { | |
27062 | gdk_im_open (); | |
27063 | ; | |
27064 | return 0; | |
27065 | } | |
27066 | _ACEOF | |
27067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27069 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27070 | ac_status=$? |
ac1cb8d3 VS |
27071 | grep -v '^ *+' conftest.er1 >conftest.err |
27072 | rm -f conftest.er1 | |
27073 | cat conftest.err >&5 | |
a848cd7e SC |
27074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27075 | (exit $ac_status); } && | |
dee1a63f MB |
27076 | { ac_try='test -z "$ac_c_werror_flag" |
27077 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27079 | (eval $ac_try) 2>&5 | |
27080 | ac_status=$? | |
27081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27082 | (exit $ac_status); }; } && | |
27083 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27085 | (eval $ac_try) 2>&5 | |
27086 | ac_status=$? | |
27087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27088 | (exit $ac_status); }; }; then | |
27089 | ac_cv_lib_gdk_gdk_im_open=yes | |
27090 | else | |
27091 | echo "$as_me: failed program was:" >&5 | |
27092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27093 | ||
27094 | ac_cv_lib_gdk_gdk_im_open=no | |
27095 | fi | |
ac1cb8d3 VS |
27096 | rm -f conftest.err conftest.$ac_objext \ |
27097 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27098 | LIBS=$ac_check_lib_save_LIBS |
27099 | fi | |
27100 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27101 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27102 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27103 | cat >>confdefs.h <<\_ACEOF | |
27104 | #define HAVE_XIM 1 | |
27105 | _ACEOF | |
27106 | ||
27107 | fi | |
27108 | ||
27109 | ||
27110 | ||
27111 | if test "$wxUSE_GPE" = "yes"; then | |
27112 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27113 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27114 | ||
0ad5d837 VZ |
27115 | ac_find_libraries= |
27116 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27117 | do |
3eca31dc | 27118 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27119 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27120 | ac_find_libraries=$ac_dir | |
27121 | break 2 | |
27122 | fi | |
27123 | done | |
27124 | done | |
27125 | ||
27126 | if test "$ac_find_libraries" != "" ; then | |
27127 | ||
0ad5d837 | 27128 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27129 | ac_path_to_link="" |
27130 | else | |
0ad5d837 VZ |
27131 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27132 | result=$? | |
27133 | if test $result = 0; then | |
27134 | ac_path_to_link="" | |
27135 | else | |
27136 | ac_path_to_link=" -L$ac_find_libraries" | |
27137 | fi | |
a848cd7e SC |
27138 | fi |
27139 | ||
27140 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27141 | WXGPE=1 | |
0ad5d837 VZ |
27142 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27143 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27144 | else |
27145 | echo "$as_me:$LINENO: result: not found" >&5 | |
27146 | echo "${ECHO_T}not found" >&6 | |
27147 | fi | |
27148 | ||
27149 | fi | |
27150 | fi | |
27151 | ||
27152 | if test "$wxUSE_MGL" = 1; then | |
27153 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27154 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27155 | if test "x$MGL_ROOT" = x ; then | |
27156 | echo "$as_me:$LINENO: result: not found" >&5 | |
27157 | echo "${ECHO_T}not found" >&6 | |
27158 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27159 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27160 | { (exit 1); exit 1; }; } | |
27161 | else | |
27162 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27163 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27164 | fi | |
27165 | ||
27166 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27167 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27168 | case "${host}" in | |
27169 | *-*-linux* ) | |
27170 | if test "x$wxUSE_SHARED" = xyes ; then | |
27171 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27172 | else | |
27173 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27174 | fi | |
27175 | ;; | |
27176 | *-pc-msdosdjgpp ) | |
27177 | mgl_os_candidates="dos32/dj2" | |
27178 | ;; | |
27179 | *) | |
27180 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27181 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27182 | { (exit 1); exit 1; }; } | |
27183 | esac | |
27184 | ||
27185 | mgl_lib_type="" | |
27186 | mgl_os="" | |
27187 | ||
27188 | for mgl_os_i in $mgl_os_candidates ; do | |
27189 | if test "x$mgl_os" = x ; then | |
27190 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27191 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27192 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27193 | mgl_lib_type=debug | |
27194 | mgl_os=$mgl_os_i | |
27195 | fi | |
27196 | fi | |
27197 | if test "x$mgl_lib_type" = x ; then | |
27198 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27199 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27200 | mgl_lib_type=release | |
27201 | mgl_os=$mgl_os_i | |
27202 | fi | |
27203 | fi | |
27204 | fi | |
27205 | done | |
27206 | ||
27207 | if test "x$mgl_os" = x ; then | |
27208 | echo "$as_me:$LINENO: result: not found" >&5 | |
27209 | echo "${ECHO_T}not found" >&6 | |
27210 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27211 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27212 | { (exit 1); exit 1; }; } | |
27213 | fi | |
27214 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27215 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27216 | ||
27217 | wxUSE_UNIVERSAL="yes" | |
27218 | ||
27219 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27220 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27221 | ||
27222 | AFMINSTALL=afminstall | |
27223 | TOOLKIT=MGL | |
27224 | GUIDIST=MGL_DIST | |
27225 | fi | |
27226 | ||
27227 | if test "$wxUSE_MICROWIN" = 1; then | |
27228 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27229 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27230 | if test "x$MICROWINDOWS" = x ; then | |
27231 | echo "$as_me:$LINENO: result: not found" >&5 | |
27232 | echo "${ECHO_T}not found" >&6 | |
27233 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27234 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27235 | { (exit 1); exit 1; }; } | |
27236 | else | |
27237 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27238 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27239 | fi | |
27240 | ||
27241 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27242 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27243 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27244 | else | |
27245 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27246 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27247 | { (exit 1); exit 1; }; } | |
27248 | fi | |
27249 | ||
27250 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27251 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27252 | ||
27253 | wxUSE_UNIVERSAL="yes" | |
27254 | ||
27255 | AFMINSTALL=afminstall | |
27256 | TOOLKIT=MICROWIN | |
27257 | GUIDIST=MICROWIN_DIST | |
27258 | ||
27259 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27260 | fi | |
27261 | ||
74b84332 | 27262 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
dee1a63f | 27263 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
27264 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27265 | ||
27266 | ||
27267 | # Check whether --with-x or --without-x was given. | |
27268 | if test "${with_x+set}" = set; then | |
27269 | withval="$with_x" | |
27270 | ||
27271 | fi; | |
27272 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27273 | if test "x$with_x" = xno; then | |
27274 | # The user explicitly disabled X. | |
27275 | have_x=disabled | |
27276 | else | |
27277 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27278 | # Both variables are already set. | |
27279 | have_x=yes | |
27280 | else | |
27281 | if test "${ac_cv_have_x+set}" = set; then | |
27282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27283 | else | |
27284 | # One or both of the vars are not set, and there is no cached value. | |
27285 | ac_x_includes=no ac_x_libraries=no | |
27286 | rm -fr conftest.dir | |
27287 | if mkdir conftest.dir; then | |
27288 | cd conftest.dir | |
27289 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27290 | cat >Imakefile <<'_ACEOF' | |
27291 | acfindx: | |
27292 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27293 | _ACEOF | |
27294 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27295 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27296 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27297 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27298 | for ac_extension in a so sl; do | |
27299 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27300 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27301 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27302 | fi |
27303 | done | |
27304 | # Screen out bogus values from the imake configuration. They are | |
27305 | # bogus both because they are the default anyway, and because | |
27306 | # using them would break gcc on systems where it needs fixed includes. | |
27307 | case $ac_im_incroot in | |
27308 | /usr/include) ;; | |
27309 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27310 | esac | |
27311 | case $ac_im_usrlibdir in | |
27312 | /usr/lib | /lib) ;; | |
27313 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27314 | esac | |
27315 | fi | |
27316 | cd .. | |
27317 | rm -fr conftest.dir | |
27318 | fi | |
27319 | ||
27320 | # Standard set of common directories for X headers. | |
27321 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27322 | ac_x_header_dirs=' | |
27323 | /usr/X11/include | |
27324 | /usr/X11R6/include | |
27325 | /usr/X11R5/include | |
27326 | /usr/X11R4/include | |
27327 | ||
27328 | /usr/include/X11 | |
27329 | /usr/include/X11R6 | |
27330 | /usr/include/X11R5 | |
27331 | /usr/include/X11R4 | |
27332 | ||
27333 | /usr/local/X11/include | |
27334 | /usr/local/X11R6/include | |
27335 | /usr/local/X11R5/include | |
27336 | /usr/local/X11R4/include | |
27337 | ||
27338 | /usr/local/include/X11 | |
27339 | /usr/local/include/X11R6 | |
27340 | /usr/local/include/X11R5 | |
27341 | /usr/local/include/X11R4 | |
27342 | ||
27343 | /usr/X386/include | |
27344 | /usr/x386/include | |
27345 | /usr/XFree86/include/X11 | |
27346 | ||
27347 | /usr/include | |
27348 | /usr/local/include | |
27349 | /usr/unsupported/include | |
27350 | /usr/athena/include | |
27351 | /usr/local/x11r5/include | |
27352 | /usr/lpp/Xamples/include | |
27353 | ||
27354 | /usr/openwin/include | |
27355 | /usr/openwin/share/include' | |
27356 | ||
27357 | if test "$ac_x_includes" = no; then | |
dee1a63f | 27358 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
27359 | # First, try using that file with no special directory specified. |
27360 | cat >conftest.$ac_ext <<_ACEOF | |
27361 | /* confdefs.h. */ | |
27362 | _ACEOF | |
27363 | cat confdefs.h >>conftest.$ac_ext | |
27364 | cat >>conftest.$ac_ext <<_ACEOF | |
27365 | /* end confdefs.h. */ | |
27366 | #include <X11/Intrinsic.h> | |
27367 | _ACEOF | |
27368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27370 | ac_status=$? | |
27371 | grep -v '^ *+' conftest.er1 >conftest.err | |
27372 | rm -f conftest.er1 | |
27373 | cat conftest.err >&5 | |
27374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27375 | (exit $ac_status); } >/dev/null; then | |
27376 | if test -s conftest.err; then | |
27377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27379 | else |
27380 | ac_cpp_err= | |
27381 | fi | |
27382 | else | |
27383 | ac_cpp_err=yes | |
27384 | fi | |
27385 | if test -z "$ac_cpp_err"; then | |
27386 | # We can compile using X headers with no special include directory. | |
27387 | ac_x_includes= | |
27388 | else | |
27389 | echo "$as_me: failed program was:" >&5 | |
27390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27391 | ||
27392 | for ac_dir in $ac_x_header_dirs; do | |
27393 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
27394 | ac_x_includes=$ac_dir | |
27395 | break | |
27396 | fi | |
27397 | done | |
27398 | fi | |
27399 | rm -f conftest.err conftest.$ac_ext | |
27400 | fi # $ac_x_includes = no | |
27401 | ||
27402 | if test "$ac_x_libraries" = no; then | |
27403 | # Check for the libraries. | |
27404 | # See if we find them without any special options. | |
27405 | # Don't add to $LIBS permanently. | |
27406 | ac_save_LIBS=$LIBS | |
27407 | LIBS="-lXt $LIBS" | |
27408 | cat >conftest.$ac_ext <<_ACEOF | |
27409 | /* confdefs.h. */ | |
27410 | _ACEOF | |
27411 | cat confdefs.h >>conftest.$ac_ext | |
27412 | cat >>conftest.$ac_ext <<_ACEOF | |
27413 | /* end confdefs.h. */ | |
27414 | #include <X11/Intrinsic.h> | |
27415 | int | |
27416 | main () | |
27417 | { | |
27418 | XtMalloc (0) | |
27419 | ; | |
27420 | return 0; | |
27421 | } | |
27422 | _ACEOF | |
27423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27425 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27426 | ac_status=$? |
ac1cb8d3 VS |
27427 | grep -v '^ *+' conftest.er1 >conftest.err |
27428 | rm -f conftest.er1 | |
27429 | cat conftest.err >&5 | |
a848cd7e SC |
27430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27431 | (exit $ac_status); } && | |
dee1a63f MB |
27432 | { ac_try='test -z "$ac_c_werror_flag" |
27433 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27435 | (eval $ac_try) 2>&5 | |
27436 | ac_status=$? | |
27437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27438 | (exit $ac_status); }; } && | |
27439 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27441 | (eval $ac_try) 2>&5 | |
27442 | ac_status=$? | |
27443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27444 | (exit $ac_status); }; }; then | |
27445 | LIBS=$ac_save_LIBS | |
27446 | # We can link X programs with no special library path. | |
27447 | ac_x_libraries= | |
27448 | else | |
27449 | echo "$as_me: failed program was:" >&5 | |
27450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27451 | ||
27452 | LIBS=$ac_save_LIBS | |
27453 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27454 | do | |
27455 | # Don't even attempt the hair of trying to link an X program! | |
27456 | for ac_extension in a so sl; do | |
27457 | if test -r $ac_dir/libXt.$ac_extension; then | |
27458 | ac_x_libraries=$ac_dir | |
27459 | break 2 | |
27460 | fi | |
27461 | done | |
27462 | done | |
27463 | fi | |
ac1cb8d3 VS |
27464 | rm -f conftest.err conftest.$ac_objext \ |
27465 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27466 | fi # $ac_x_libraries = no |
27467 | ||
27468 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27469 | # Didn't find X anywhere. Cache the known absence of X. | |
27470 | ac_cv_have_x="have_x=no" | |
27471 | else | |
27472 | # Record where we found X for the cache. | |
27473 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27474 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27475 | fi |
27476 | fi | |
27477 | ||
27478 | fi | |
27479 | eval "$ac_cv_have_x" | |
27480 | fi # $with_x != no | |
27481 | ||
27482 | if test "$have_x" != yes; then | |
27483 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27484 | echo "${ECHO_T}$have_x" >&6 | |
27485 | no_x=yes | |
27486 | else | |
27487 | # If each of the values was on the command line, it overrides each guess. | |
27488 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27489 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27490 | # Update the cache value to reflect the command line values. | |
27491 | ac_cv_have_x="have_x=yes \ | |
27492 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
dee1a63f MB |
27493 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
27494 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
27495 | fi |
27496 | ||
27497 | if test "$no_x" = yes; then | |
27498 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27499 | ||
27500 | cat >>confdefs.h <<\_ACEOF | |
27501 | #define X_DISPLAY_MISSING 1 | |
27502 | _ACEOF | |
27503 | ||
27504 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27505 | else | |
27506 | if test -n "$x_includes"; then | |
27507 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27508 | fi | |
27509 | ||
27510 | # It would also be nice to do this for all -L options, not just this one. | |
27511 | if test -n "$x_libraries"; then | |
27512 | X_LIBS="$X_LIBS -L$x_libraries" | |
27513 | # For Solaris; some versions of Sun CC require a space after -R and | |
27514 | # others require no space. Words are not sufficient . . . . | |
27515 | case `(uname -sr) 2>/dev/null` in | |
27516 | "SunOS 5"*) | |
27517 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27518 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27519 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27520 | cat >conftest.$ac_ext <<_ACEOF | |
27521 | /* confdefs.h. */ | |
27522 | _ACEOF | |
27523 | cat confdefs.h >>conftest.$ac_ext | |
27524 | cat >>conftest.$ac_ext <<_ACEOF | |
27525 | /* end confdefs.h. */ | |
27526 | ||
27527 | int | |
27528 | main () | |
27529 | { | |
27530 | ||
27531 | ; | |
27532 | return 0; | |
27533 | } | |
27534 | _ACEOF | |
27535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27537 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27538 | ac_status=$? |
ac1cb8d3 VS |
27539 | grep -v '^ *+' conftest.er1 >conftest.err |
27540 | rm -f conftest.er1 | |
27541 | cat conftest.err >&5 | |
a848cd7e SC |
27542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27543 | (exit $ac_status); } && | |
dee1a63f MB |
27544 | { ac_try='test -z "$ac_c_werror_flag" |
27545 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27547 | (eval $ac_try) 2>&5 | |
27548 | ac_status=$? | |
27549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27550 | (exit $ac_status); }; } && | |
27551 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27553 | (eval $ac_try) 2>&5 | |
27554 | ac_status=$? | |
27555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27556 | (exit $ac_status); }; }; then | |
27557 | ac_R_nospace=yes | |
27558 | else | |
27559 | echo "$as_me: failed program was:" >&5 | |
27560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27561 | ||
27562 | ac_R_nospace=no | |
27563 | fi | |
ac1cb8d3 VS |
27564 | rm -f conftest.err conftest.$ac_objext \ |
27565 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27566 | if test $ac_R_nospace = yes; then |
27567 | echo "$as_me:$LINENO: result: no" >&5 | |
27568 | echo "${ECHO_T}no" >&6 | |
27569 | X_LIBS="$X_LIBS -R$x_libraries" | |
27570 | else | |
27571 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27572 | cat >conftest.$ac_ext <<_ACEOF | |
27573 | /* confdefs.h. */ | |
27574 | _ACEOF | |
27575 | cat confdefs.h >>conftest.$ac_ext | |
27576 | cat >>conftest.$ac_ext <<_ACEOF | |
27577 | /* end confdefs.h. */ | |
27578 | ||
27579 | int | |
27580 | main () | |
27581 | { | |
27582 | ||
27583 | ; | |
27584 | return 0; | |
27585 | } | |
27586 | _ACEOF | |
27587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27590 | ac_status=$? |
ac1cb8d3 VS |
27591 | grep -v '^ *+' conftest.er1 >conftest.err |
27592 | rm -f conftest.er1 | |
27593 | cat conftest.err >&5 | |
a848cd7e SC |
27594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27595 | (exit $ac_status); } && | |
dee1a63f MB |
27596 | { ac_try='test -z "$ac_c_werror_flag" |
27597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27599 | (eval $ac_try) 2>&5 | |
27600 | ac_status=$? | |
27601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27602 | (exit $ac_status); }; } && | |
27603 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27605 | (eval $ac_try) 2>&5 | |
27606 | ac_status=$? | |
27607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27608 | (exit $ac_status); }; }; then | |
27609 | ac_R_space=yes | |
27610 | else | |
27611 | echo "$as_me: failed program was:" >&5 | |
27612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27613 | ||
27614 | ac_R_space=no | |
27615 | fi | |
ac1cb8d3 VS |
27616 | rm -f conftest.err conftest.$ac_objext \ |
27617 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27618 | if test $ac_R_space = yes; then |
27619 | echo "$as_me:$LINENO: result: yes" >&5 | |
27620 | echo "${ECHO_T}yes" >&6 | |
27621 | X_LIBS="$X_LIBS -R $x_libraries" | |
27622 | else | |
27623 | echo "$as_me:$LINENO: result: neither works" >&5 | |
27624 | echo "${ECHO_T}neither works" >&6 | |
27625 | fi | |
27626 | fi | |
27627 | LIBS=$ac_xsave_LIBS | |
27628 | esac | |
27629 | fi | |
27630 | ||
27631 | # Check for system-dependent libraries X programs must link with. | |
27632 | # Do this before checking for the system-independent R6 libraries | |
27633 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
27634 | ||
27635 | if test "$ISC" = yes; then | |
27636 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
27637 | else | |
27638 | # Martyn Johnson says this is needed for Ultrix, if the X | |
27639 | # libraries were built with DECnet support. And Karl Berry says | |
27640 | # the Alpha needs dnet_stub (dnet does not exist). | |
27641 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
27642 | cat >conftest.$ac_ext <<_ACEOF | |
27643 | /* confdefs.h. */ | |
27644 | _ACEOF | |
27645 | cat confdefs.h >>conftest.$ac_ext | |
27646 | cat >>conftest.$ac_ext <<_ACEOF | |
27647 | /* end confdefs.h. */ | |
27648 | ||
27649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27650 | #ifdef __cplusplus | |
27651 | extern "C" | |
27652 | #endif | |
27653 | /* We use char because int might match the return type of a gcc2 | |
27654 | builtin and then its argument prototype would still apply. */ | |
27655 | char XOpenDisplay (); | |
27656 | int | |
27657 | main () | |
27658 | { | |
27659 | XOpenDisplay (); | |
27660 | ; | |
27661 | return 0; | |
27662 | } | |
27663 | _ACEOF | |
27664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27666 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27667 | ac_status=$? |
ac1cb8d3 VS |
27668 | grep -v '^ *+' conftest.er1 >conftest.err |
27669 | rm -f conftest.er1 | |
27670 | cat conftest.err >&5 | |
a848cd7e SC |
27671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27672 | (exit $ac_status); } && | |
dee1a63f MB |
27673 | { ac_try='test -z "$ac_c_werror_flag" |
27674 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27676 | (eval $ac_try) 2>&5 | |
27677 | ac_status=$? | |
27678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27679 | (exit $ac_status); }; } && | |
27680 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27682 | (eval $ac_try) 2>&5 | |
27683 | ac_status=$? | |
27684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27685 | (exit $ac_status); }; }; then | |
27686 | : | |
27687 | else | |
27688 | echo "$as_me: failed program was:" >&5 | |
27689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27690 | ||
27691 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
27692 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
27693 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
27694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27695 | else | |
27696 | ac_check_lib_save_LIBS=$LIBS | |
27697 | LIBS="-ldnet $LIBS" | |
27698 | cat >conftest.$ac_ext <<_ACEOF | |
27699 | /* confdefs.h. */ | |
27700 | _ACEOF | |
27701 | cat confdefs.h >>conftest.$ac_ext | |
27702 | cat >>conftest.$ac_ext <<_ACEOF | |
27703 | /* end confdefs.h. */ | |
27704 | ||
27705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27706 | #ifdef __cplusplus | |
27707 | extern "C" | |
27708 | #endif | |
27709 | /* We use char because int might match the return type of a gcc2 | |
27710 | builtin and then its argument prototype would still apply. */ | |
27711 | char dnet_ntoa (); | |
27712 | int | |
27713 | main () | |
27714 | { | |
27715 | dnet_ntoa (); | |
27716 | ; | |
27717 | return 0; | |
27718 | } | |
27719 | _ACEOF | |
27720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27722 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27723 | ac_status=$? |
ac1cb8d3 VS |
27724 | grep -v '^ *+' conftest.er1 >conftest.err |
27725 | rm -f conftest.er1 | |
27726 | cat conftest.err >&5 | |
a848cd7e SC |
27727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27728 | (exit $ac_status); } && | |
dee1a63f MB |
27729 | { ac_try='test -z "$ac_c_werror_flag" |
27730 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27732 | (eval $ac_try) 2>&5 | |
27733 | ac_status=$? | |
27734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27735 | (exit $ac_status); }; } && | |
27736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27738 | (eval $ac_try) 2>&5 | |
27739 | ac_status=$? | |
27740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27741 | (exit $ac_status); }; }; then | |
27742 | ac_cv_lib_dnet_dnet_ntoa=yes | |
27743 | else | |
27744 | echo "$as_me: failed program was:" >&5 | |
27745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27746 | ||
27747 | ac_cv_lib_dnet_dnet_ntoa=no | |
27748 | fi | |
ac1cb8d3 VS |
27749 | rm -f conftest.err conftest.$ac_objext \ |
27750 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27751 | LIBS=$ac_check_lib_save_LIBS |
27752 | fi | |
27753 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
27754 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
27755 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
27756 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
27757 | fi | |
27758 | ||
27759 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
27760 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
27761 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
27762 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
27763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27764 | else | |
27765 | ac_check_lib_save_LIBS=$LIBS | |
27766 | LIBS="-ldnet_stub $LIBS" | |
27767 | cat >conftest.$ac_ext <<_ACEOF | |
27768 | /* confdefs.h. */ | |
27769 | _ACEOF | |
27770 | cat confdefs.h >>conftest.$ac_ext | |
27771 | cat >>conftest.$ac_ext <<_ACEOF | |
27772 | /* end confdefs.h. */ | |
27773 | ||
27774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27775 | #ifdef __cplusplus | |
27776 | extern "C" | |
27777 | #endif | |
27778 | /* We use char because int might match the return type of a gcc2 | |
27779 | builtin and then its argument prototype would still apply. */ | |
27780 | char dnet_ntoa (); | |
27781 | int | |
27782 | main () | |
27783 | { | |
27784 | dnet_ntoa (); | |
27785 | ; | |
27786 | return 0; | |
27787 | } | |
27788 | _ACEOF | |
27789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27792 | ac_status=$? |
ac1cb8d3 VS |
27793 | grep -v '^ *+' conftest.er1 >conftest.err |
27794 | rm -f conftest.er1 | |
27795 | cat conftest.err >&5 | |
a848cd7e SC |
27796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27797 | (exit $ac_status); } && | |
dee1a63f MB |
27798 | { ac_try='test -z "$ac_c_werror_flag" |
27799 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27801 | (eval $ac_try) 2>&5 | |
27802 | ac_status=$? | |
27803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27804 | (exit $ac_status); }; } && | |
27805 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27807 | (eval $ac_try) 2>&5 | |
27808 | ac_status=$? | |
27809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27810 | (exit $ac_status); }; }; then | |
27811 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
27812 | else | |
27813 | echo "$as_me: failed program was:" >&5 | |
27814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27815 | ||
27816 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
27817 | fi | |
ac1cb8d3 VS |
27818 | rm -f conftest.err conftest.$ac_objext \ |
27819 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27820 | LIBS=$ac_check_lib_save_LIBS |
27821 | fi | |
27822 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
27823 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
27824 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
27825 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
27826 | fi | |
27827 | ||
27828 | fi | |
27829 | fi | |
ac1cb8d3 VS |
27830 | rm -f conftest.err conftest.$ac_objext \ |
27831 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27832 | LIBS="$ac_xsave_LIBS" |
27833 | ||
27834 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
27835 | # to get the SysV transport functions. | |
27836 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
27837 | # needs -lnsl. | |
27838 | # The nsl library prevents programs from opening the X display | |
27839 | # on Irix 5.2, according to T.E. Dickey. | |
27840 | # The functions gethostbyname, getservbyname, and inet_addr are | |
27841 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
27842 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
27843 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
27844 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
27845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27846 | else | |
27847 | cat >conftest.$ac_ext <<_ACEOF | |
27848 | /* confdefs.h. */ | |
27849 | _ACEOF | |
27850 | cat confdefs.h >>conftest.$ac_ext | |
27851 | cat >>conftest.$ac_ext <<_ACEOF | |
27852 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27853 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
27854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27855 | #define gethostbyname innocuous_gethostbyname | |
27856 | ||
a848cd7e SC |
27857 | /* System header to define __stub macros and hopefully few prototypes, |
27858 | which can conflict with char gethostbyname (); below. | |
27859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27860 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27861 | |
a848cd7e SC |
27862 | #ifdef __STDC__ |
27863 | # include <limits.h> | |
27864 | #else | |
27865 | # include <assert.h> | |
27866 | #endif | |
ac1cb8d3 VS |
27867 | |
27868 | #undef gethostbyname | |
27869 | ||
a848cd7e SC |
27870 | /* Override any gcc2 internal prototype to avoid an error. */ |
27871 | #ifdef __cplusplus | |
27872 | extern "C" | |
27873 | { | |
27874 | #endif | |
27875 | /* We use char because int might match the return type of a gcc2 | |
27876 | builtin and then its argument prototype would still apply. */ | |
27877 | char gethostbyname (); | |
27878 | /* The GNU C library defines this for functions which it implements | |
27879 | to always fail with ENOSYS. Some functions are actually named | |
27880 | something starting with __ and the normal name is an alias. */ | |
27881 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
27882 | choke me | |
27883 | #else | |
27884 | char (*f) () = gethostbyname; | |
27885 | #endif | |
27886 | #ifdef __cplusplus | |
27887 | } | |
27888 | #endif | |
27889 | ||
27890 | int | |
27891 | main () | |
27892 | { | |
27893 | return f != gethostbyname; | |
27894 | ; | |
27895 | return 0; | |
27896 | } | |
27897 | _ACEOF | |
27898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27900 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27901 | ac_status=$? |
ac1cb8d3 VS |
27902 | grep -v '^ *+' conftest.er1 >conftest.err |
27903 | rm -f conftest.er1 | |
27904 | cat conftest.err >&5 | |
a848cd7e SC |
27905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27906 | (exit $ac_status); } && | |
dee1a63f MB |
27907 | { ac_try='test -z "$ac_c_werror_flag" |
27908 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27910 | (eval $ac_try) 2>&5 | |
27911 | ac_status=$? | |
27912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27913 | (exit $ac_status); }; } && | |
27914 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27916 | (eval $ac_try) 2>&5 | |
27917 | ac_status=$? | |
27918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27919 | (exit $ac_status); }; }; then | |
27920 | ac_cv_func_gethostbyname=yes | |
27921 | else | |
27922 | echo "$as_me: failed program was:" >&5 | |
27923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27924 | ||
27925 | ac_cv_func_gethostbyname=no | |
27926 | fi | |
ac1cb8d3 VS |
27927 | rm -f conftest.err conftest.$ac_objext \ |
27928 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27929 | fi |
27930 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
27931 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
27932 | ||
27933 | if test $ac_cv_func_gethostbyname = no; then | |
27934 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
27935 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
27936 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
27937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27938 | else | |
27939 | ac_check_lib_save_LIBS=$LIBS | |
27940 | LIBS="-lnsl $LIBS" | |
27941 | cat >conftest.$ac_ext <<_ACEOF | |
27942 | /* confdefs.h. */ | |
27943 | _ACEOF | |
27944 | cat confdefs.h >>conftest.$ac_ext | |
27945 | cat >>conftest.$ac_ext <<_ACEOF | |
27946 | /* end confdefs.h. */ | |
27947 | ||
27948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27949 | #ifdef __cplusplus | |
27950 | extern "C" | |
27951 | #endif | |
27952 | /* We use char because int might match the return type of a gcc2 | |
27953 | builtin and then its argument prototype would still apply. */ | |
27954 | char gethostbyname (); | |
27955 | int | |
27956 | main () | |
27957 | { | |
27958 | gethostbyname (); | |
27959 | ; | |
27960 | return 0; | |
27961 | } | |
27962 | _ACEOF | |
27963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
27965 | (eval $ac_link) 2>conftest.er1 |
27966 | ac_status=$? | |
27967 | grep -v '^ *+' conftest.er1 >conftest.err | |
27968 | rm -f conftest.er1 | |
27969 | cat conftest.err >&5 | |
27970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27971 | (exit $ac_status); } && | |
dee1a63f MB |
27972 | { ac_try='test -z "$ac_c_werror_flag" |
27973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27975 | (eval $ac_try) 2>&5 | |
27976 | ac_status=$? | |
27977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27978 | (exit $ac_status); }; } && | |
27979 | { ac_try='test -s conftest$ac_exeext' | |
27980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27981 | (eval $ac_try) 2>&5 | |
27982 | ac_status=$? | |
27983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27984 | (exit $ac_status); }; }; then | |
27985 | ac_cv_lib_nsl_gethostbyname=yes | |
27986 | else | |
27987 | echo "$as_me: failed program was:" >&5 | |
27988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27989 | ||
27990 | ac_cv_lib_nsl_gethostbyname=no | |
27991 | fi | |
27992 | rm -f conftest.err conftest.$ac_objext \ | |
27993 | conftest$ac_exeext conftest.$ac_ext | |
27994 | LIBS=$ac_check_lib_save_LIBS | |
27995 | fi | |
27996 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
27997 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
27998 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
27999 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28000 | fi | |
28001 | ||
28002 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28003 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28004 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28005 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28007 | else | |
28008 | ac_check_lib_save_LIBS=$LIBS | |
28009 | LIBS="-lbsd $LIBS" | |
28010 | cat >conftest.$ac_ext <<_ACEOF | |
28011 | /* confdefs.h. */ | |
28012 | _ACEOF | |
28013 | cat confdefs.h >>conftest.$ac_ext | |
28014 | cat >>conftest.$ac_ext <<_ACEOF | |
28015 | /* end confdefs.h. */ | |
28016 | ||
28017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28018 | #ifdef __cplusplus | |
28019 | extern "C" | |
28020 | #endif | |
28021 | /* We use char because int might match the return type of a gcc2 | |
28022 | builtin and then its argument prototype would still apply. */ | |
28023 | char gethostbyname (); | |
28024 | int | |
28025 | main () | |
28026 | { | |
28027 | gethostbyname (); | |
28028 | ; | |
28029 | return 0; | |
28030 | } | |
28031 | _ACEOF | |
28032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28034 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28035 | ac_status=$? |
ac1cb8d3 VS |
28036 | grep -v '^ *+' conftest.er1 >conftest.err |
28037 | rm -f conftest.er1 | |
28038 | cat conftest.err >&5 | |
a848cd7e SC |
28039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28040 | (exit $ac_status); } && | |
dee1a63f MB |
28041 | { ac_try='test -z "$ac_c_werror_flag" |
28042 | || test ! -s conftest.err' | |
a848cd7e SC |
28043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28044 | (eval $ac_try) 2>&5 | |
28045 | ac_status=$? | |
28046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28047 | (exit $ac_status); }; } && |
28048 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28050 | (eval $ac_try) 2>&5 | |
28051 | ac_status=$? | |
28052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28053 | (exit $ac_status); }; }; then | |
28054 | ac_cv_lib_bsd_gethostbyname=yes | |
28055 | else | |
28056 | echo "$as_me: failed program was:" >&5 | |
28057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28058 | ||
28059 | ac_cv_lib_bsd_gethostbyname=no | |
28060 | fi | |
ac1cb8d3 VS |
28061 | rm -f conftest.err conftest.$ac_objext \ |
28062 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28063 | LIBS=$ac_check_lib_save_LIBS |
28064 | fi | |
28065 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28066 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28067 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28068 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28069 | fi | |
28070 | ||
28071 | fi | |
28072 | fi | |
28073 | ||
28074 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28075 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28076 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28077 | # on later versions), says Simon Leinen: it contains gethostby* | |
28078 | # variants that don't use the name server (or something). -lsocket | |
28079 | # must be given before -lnsl if both are needed. We assume that | |
28080 | # if connect needs -lnsl, so does gethostbyname. | |
28081 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28082 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28083 | if test "${ac_cv_func_connect+set}" = set; then | |
28084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28085 | else | |
28086 | cat >conftest.$ac_ext <<_ACEOF | |
28087 | /* confdefs.h. */ | |
28088 | _ACEOF | |
28089 | cat confdefs.h >>conftest.$ac_ext | |
28090 | cat >>conftest.$ac_ext <<_ACEOF | |
28091 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28092 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28094 | #define connect innocuous_connect | |
28095 | ||
a848cd7e SC |
28096 | /* System header to define __stub macros and hopefully few prototypes, |
28097 | which can conflict with char connect (); below. | |
28098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28099 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28100 | |
a848cd7e SC |
28101 | #ifdef __STDC__ |
28102 | # include <limits.h> | |
28103 | #else | |
28104 | # include <assert.h> | |
28105 | #endif | |
ac1cb8d3 VS |
28106 | |
28107 | #undef connect | |
28108 | ||
a848cd7e SC |
28109 | /* Override any gcc2 internal prototype to avoid an error. */ |
28110 | #ifdef __cplusplus | |
28111 | extern "C" | |
28112 | { | |
28113 | #endif | |
28114 | /* We use char because int might match the return type of a gcc2 | |
28115 | builtin and then its argument prototype would still apply. */ | |
28116 | char connect (); | |
28117 | /* The GNU C library defines this for functions which it implements | |
28118 | to always fail with ENOSYS. Some functions are actually named | |
28119 | something starting with __ and the normal name is an alias. */ | |
28120 | #if defined (__stub_connect) || defined (__stub___connect) | |
28121 | choke me | |
28122 | #else | |
28123 | char (*f) () = connect; | |
28124 | #endif | |
28125 | #ifdef __cplusplus | |
28126 | } | |
28127 | #endif | |
28128 | ||
28129 | int | |
28130 | main () | |
28131 | { | |
28132 | return f != connect; | |
28133 | ; | |
28134 | return 0; | |
28135 | } | |
28136 | _ACEOF | |
28137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28139 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28140 | ac_status=$? |
ac1cb8d3 VS |
28141 | grep -v '^ *+' conftest.er1 >conftest.err |
28142 | rm -f conftest.er1 | |
28143 | cat conftest.err >&5 | |
a848cd7e SC |
28144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28145 | (exit $ac_status); } && | |
dee1a63f MB |
28146 | { ac_try='test -z "$ac_c_werror_flag" |
28147 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28149 | (eval $ac_try) 2>&5 | |
28150 | ac_status=$? | |
28151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28152 | (exit $ac_status); }; } && | |
28153 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28155 | (eval $ac_try) 2>&5 | |
28156 | ac_status=$? | |
28157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28158 | (exit $ac_status); }; }; then | |
28159 | ac_cv_func_connect=yes | |
28160 | else | |
28161 | echo "$as_me: failed program was:" >&5 | |
28162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28163 | ||
28164 | ac_cv_func_connect=no | |
28165 | fi | |
ac1cb8d3 VS |
28166 | rm -f conftest.err conftest.$ac_objext \ |
28167 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28168 | fi |
28169 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28170 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28171 | ||
28172 | if test $ac_cv_func_connect = no; then | |
28173 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28174 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28175 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28177 | else | |
28178 | ac_check_lib_save_LIBS=$LIBS | |
28179 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28180 | cat >conftest.$ac_ext <<_ACEOF | |
28181 | /* confdefs.h. */ | |
28182 | _ACEOF | |
28183 | cat confdefs.h >>conftest.$ac_ext | |
28184 | cat >>conftest.$ac_ext <<_ACEOF | |
28185 | /* end confdefs.h. */ | |
28186 | ||
28187 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28188 | #ifdef __cplusplus | |
28189 | extern "C" | |
28190 | #endif | |
28191 | /* We use char because int might match the return type of a gcc2 | |
28192 | builtin and then its argument prototype would still apply. */ | |
28193 | char connect (); | |
28194 | int | |
28195 | main () | |
28196 | { | |
28197 | connect (); | |
28198 | ; | |
28199 | return 0; | |
28200 | } | |
28201 | _ACEOF | |
28202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28204 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28205 | ac_status=$? |
ac1cb8d3 VS |
28206 | grep -v '^ *+' conftest.er1 >conftest.err |
28207 | rm -f conftest.er1 | |
28208 | cat conftest.err >&5 | |
a848cd7e SC |
28209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28210 | (exit $ac_status); } && | |
dee1a63f MB |
28211 | { ac_try='test -z "$ac_c_werror_flag" |
28212 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28214 | (eval $ac_try) 2>&5 | |
28215 | ac_status=$? | |
28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28217 | (exit $ac_status); }; } && | |
28218 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28220 | (eval $ac_try) 2>&5 | |
28221 | ac_status=$? | |
28222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28223 | (exit $ac_status); }; }; then | |
28224 | ac_cv_lib_socket_connect=yes | |
28225 | else | |
28226 | echo "$as_me: failed program was:" >&5 | |
28227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28228 | ||
28229 | ac_cv_lib_socket_connect=no | |
28230 | fi | |
ac1cb8d3 VS |
28231 | rm -f conftest.err conftest.$ac_objext \ |
28232 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28233 | LIBS=$ac_check_lib_save_LIBS |
28234 | fi | |
28235 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28236 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28237 | if test $ac_cv_lib_socket_connect = yes; then | |
28238 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28239 | fi | |
28240 | ||
28241 | fi | |
28242 | ||
28243 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28244 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28245 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28246 | if test "${ac_cv_func_remove+set}" = set; then | |
28247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28248 | else | |
28249 | cat >conftest.$ac_ext <<_ACEOF | |
28250 | /* confdefs.h. */ | |
28251 | _ACEOF | |
28252 | cat confdefs.h >>conftest.$ac_ext | |
28253 | cat >>conftest.$ac_ext <<_ACEOF | |
28254 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28255 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28257 | #define remove innocuous_remove | |
28258 | ||
a848cd7e SC |
28259 | /* System header to define __stub macros and hopefully few prototypes, |
28260 | which can conflict with char remove (); below. | |
28261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28262 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28263 | |
a848cd7e SC |
28264 | #ifdef __STDC__ |
28265 | # include <limits.h> | |
28266 | #else | |
28267 | # include <assert.h> | |
28268 | #endif | |
ac1cb8d3 VS |
28269 | |
28270 | #undef remove | |
28271 | ||
a848cd7e SC |
28272 | /* Override any gcc2 internal prototype to avoid an error. */ |
28273 | #ifdef __cplusplus | |
28274 | extern "C" | |
28275 | { | |
28276 | #endif | |
28277 | /* We use char because int might match the return type of a gcc2 | |
28278 | builtin and then its argument prototype would still apply. */ | |
28279 | char remove (); | |
28280 | /* The GNU C library defines this for functions which it implements | |
28281 | to always fail with ENOSYS. Some functions are actually named | |
28282 | something starting with __ and the normal name is an alias. */ | |
28283 | #if defined (__stub_remove) || defined (__stub___remove) | |
28284 | choke me | |
28285 | #else | |
28286 | char (*f) () = remove; | |
28287 | #endif | |
28288 | #ifdef __cplusplus | |
28289 | } | |
28290 | #endif | |
28291 | ||
28292 | int | |
28293 | main () | |
28294 | { | |
28295 | return f != remove; | |
28296 | ; | |
28297 | return 0; | |
28298 | } | |
28299 | _ACEOF | |
28300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28302 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28303 | ac_status=$? |
ac1cb8d3 VS |
28304 | grep -v '^ *+' conftest.er1 >conftest.err |
28305 | rm -f conftest.er1 | |
28306 | cat conftest.err >&5 | |
a848cd7e SC |
28307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28308 | (exit $ac_status); } && | |
dee1a63f MB |
28309 | { ac_try='test -z "$ac_c_werror_flag" |
28310 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28312 | (eval $ac_try) 2>&5 | |
28313 | ac_status=$? | |
28314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28315 | (exit $ac_status); }; } && | |
28316 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28318 | (eval $ac_try) 2>&5 | |
28319 | ac_status=$? | |
28320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28321 | (exit $ac_status); }; }; then | |
28322 | ac_cv_func_remove=yes | |
28323 | else | |
28324 | echo "$as_me: failed program was:" >&5 | |
28325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28326 | ||
28327 | ac_cv_func_remove=no | |
28328 | fi | |
ac1cb8d3 VS |
28329 | rm -f conftest.err conftest.$ac_objext \ |
28330 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28331 | fi |
28332 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28333 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28334 | ||
28335 | if test $ac_cv_func_remove = no; then | |
28336 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28337 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28338 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28340 | else | |
28341 | ac_check_lib_save_LIBS=$LIBS | |
28342 | LIBS="-lposix $LIBS" | |
28343 | cat >conftest.$ac_ext <<_ACEOF | |
28344 | /* confdefs.h. */ | |
28345 | _ACEOF | |
28346 | cat confdefs.h >>conftest.$ac_ext | |
28347 | cat >>conftest.$ac_ext <<_ACEOF | |
28348 | /* end confdefs.h. */ | |
28349 | ||
28350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28351 | #ifdef __cplusplus | |
28352 | extern "C" | |
28353 | #endif | |
28354 | /* We use char because int might match the return type of a gcc2 | |
28355 | builtin and then its argument prototype would still apply. */ | |
28356 | char remove (); | |
28357 | int | |
28358 | main () | |
28359 | { | |
28360 | remove (); | |
28361 | ; | |
28362 | return 0; | |
28363 | } | |
28364 | _ACEOF | |
28365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28367 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28368 | ac_status=$? |
ac1cb8d3 VS |
28369 | grep -v '^ *+' conftest.er1 >conftest.err |
28370 | rm -f conftest.er1 | |
28371 | cat conftest.err >&5 | |
a848cd7e SC |
28372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28373 | (exit $ac_status); } && | |
dee1a63f MB |
28374 | { ac_try='test -z "$ac_c_werror_flag" |
28375 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28377 | (eval $ac_try) 2>&5 | |
28378 | ac_status=$? | |
28379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28380 | (exit $ac_status); }; } && | |
28381 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28383 | (eval $ac_try) 2>&5 | |
28384 | ac_status=$? | |
28385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28386 | (exit $ac_status); }; }; then | |
28387 | ac_cv_lib_posix_remove=yes | |
28388 | else | |
28389 | echo "$as_me: failed program was:" >&5 | |
28390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28391 | ||
28392 | ac_cv_lib_posix_remove=no | |
28393 | fi | |
ac1cb8d3 VS |
28394 | rm -f conftest.err conftest.$ac_objext \ |
28395 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28396 | LIBS=$ac_check_lib_save_LIBS |
28397 | fi | |
28398 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28399 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28400 | if test $ac_cv_lib_posix_remove = yes; then | |
28401 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28402 | fi | |
28403 | ||
28404 | fi | |
28405 | ||
28406 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28407 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28408 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28409 | if test "${ac_cv_func_shmat+set}" = set; then | |
28410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28411 | else | |
28412 | cat >conftest.$ac_ext <<_ACEOF | |
28413 | /* confdefs.h. */ | |
28414 | _ACEOF | |
28415 | cat confdefs.h >>conftest.$ac_ext | |
28416 | cat >>conftest.$ac_ext <<_ACEOF | |
28417 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28418 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28420 | #define shmat innocuous_shmat | |
28421 | ||
a848cd7e SC |
28422 | /* System header to define __stub macros and hopefully few prototypes, |
28423 | which can conflict with char shmat (); below. | |
28424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28425 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28426 | |
a848cd7e SC |
28427 | #ifdef __STDC__ |
28428 | # include <limits.h> | |
28429 | #else | |
28430 | # include <assert.h> | |
28431 | #endif | |
ac1cb8d3 VS |
28432 | |
28433 | #undef shmat | |
28434 | ||
a848cd7e SC |
28435 | /* Override any gcc2 internal prototype to avoid an error. */ |
28436 | #ifdef __cplusplus | |
28437 | extern "C" | |
28438 | { | |
28439 | #endif | |
28440 | /* We use char because int might match the return type of a gcc2 | |
28441 | builtin and then its argument prototype would still apply. */ | |
28442 | char shmat (); | |
28443 | /* The GNU C library defines this for functions which it implements | |
28444 | to always fail with ENOSYS. Some functions are actually named | |
28445 | something starting with __ and the normal name is an alias. */ | |
28446 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28447 | choke me | |
28448 | #else | |
28449 | char (*f) () = shmat; | |
28450 | #endif | |
28451 | #ifdef __cplusplus | |
28452 | } | |
28453 | #endif | |
28454 | ||
28455 | int | |
28456 | main () | |
28457 | { | |
28458 | return f != shmat; | |
28459 | ; | |
28460 | return 0; | |
28461 | } | |
28462 | _ACEOF | |
28463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28465 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28466 | ac_status=$? |
ac1cb8d3 VS |
28467 | grep -v '^ *+' conftest.er1 >conftest.err |
28468 | rm -f conftest.er1 | |
28469 | cat conftest.err >&5 | |
a848cd7e SC |
28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28471 | (exit $ac_status); } && | |
dee1a63f MB |
28472 | { ac_try='test -z "$ac_c_werror_flag" |
28473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28475 | (eval $ac_try) 2>&5 | |
28476 | ac_status=$? | |
28477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28478 | (exit $ac_status); }; } && | |
28479 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28481 | (eval $ac_try) 2>&5 | |
28482 | ac_status=$? | |
28483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28484 | (exit $ac_status); }; }; then | |
28485 | ac_cv_func_shmat=yes | |
28486 | else | |
28487 | echo "$as_me: failed program was:" >&5 | |
28488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28489 | ||
28490 | ac_cv_func_shmat=no | |
28491 | fi | |
ac1cb8d3 VS |
28492 | rm -f conftest.err conftest.$ac_objext \ |
28493 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28494 | fi |
28495 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28496 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28497 | ||
28498 | if test $ac_cv_func_shmat = no; then | |
28499 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28500 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28501 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28503 | else | |
28504 | ac_check_lib_save_LIBS=$LIBS | |
28505 | LIBS="-lipc $LIBS" | |
28506 | cat >conftest.$ac_ext <<_ACEOF | |
28507 | /* confdefs.h. */ | |
28508 | _ACEOF | |
28509 | cat confdefs.h >>conftest.$ac_ext | |
28510 | cat >>conftest.$ac_ext <<_ACEOF | |
28511 | /* end confdefs.h. */ | |
28512 | ||
28513 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28514 | #ifdef __cplusplus | |
28515 | extern "C" | |
28516 | #endif | |
28517 | /* We use char because int might match the return type of a gcc2 | |
28518 | builtin and then its argument prototype would still apply. */ | |
28519 | char shmat (); | |
28520 | int | |
28521 | main () | |
28522 | { | |
28523 | shmat (); | |
28524 | ; | |
28525 | return 0; | |
28526 | } | |
28527 | _ACEOF | |
28528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28531 | ac_status=$? |
ac1cb8d3 VS |
28532 | grep -v '^ *+' conftest.er1 >conftest.err |
28533 | rm -f conftest.er1 | |
28534 | cat conftest.err >&5 | |
a848cd7e SC |
28535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28536 | (exit $ac_status); } && | |
dee1a63f MB |
28537 | { ac_try='test -z "$ac_c_werror_flag" |
28538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28540 | (eval $ac_try) 2>&5 | |
28541 | ac_status=$? | |
28542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28543 | (exit $ac_status); }; } && | |
28544 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28546 | (eval $ac_try) 2>&5 | |
28547 | ac_status=$? | |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28549 | (exit $ac_status); }; }; then | |
28550 | ac_cv_lib_ipc_shmat=yes | |
28551 | else | |
28552 | echo "$as_me: failed program was:" >&5 | |
28553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28554 | ||
28555 | ac_cv_lib_ipc_shmat=no | |
28556 | fi | |
ac1cb8d3 VS |
28557 | rm -f conftest.err conftest.$ac_objext \ |
28558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28559 | LIBS=$ac_check_lib_save_LIBS |
28560 | fi | |
28561 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28562 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28563 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28564 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28565 | fi | |
28566 | ||
28567 | fi | |
28568 | fi | |
28569 | ||
28570 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28571 | ac_save_LDFLAGS=$LDFLAGS | |
28572 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28573 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28574 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28575 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28576 | # These have to be linked with before -lX11, unlike the other | |
28577 | # libraries we check for below, so use a different variable. | |
28578 | # John Interrante, Karl Berry | |
28579 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28580 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28581 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28583 | else | |
28584 | ac_check_lib_save_LIBS=$LIBS | |
28585 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28586 | cat >conftest.$ac_ext <<_ACEOF | |
28587 | /* confdefs.h. */ | |
28588 | _ACEOF | |
28589 | cat confdefs.h >>conftest.$ac_ext | |
28590 | cat >>conftest.$ac_ext <<_ACEOF | |
28591 | /* end confdefs.h. */ | |
28592 | ||
28593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28594 | #ifdef __cplusplus | |
28595 | extern "C" | |
28596 | #endif | |
28597 | /* We use char because int might match the return type of a gcc2 | |
28598 | builtin and then its argument prototype would still apply. */ | |
28599 | char IceConnectionNumber (); | |
28600 | int | |
28601 | main () | |
28602 | { | |
28603 | IceConnectionNumber (); | |
28604 | ; | |
28605 | return 0; | |
28606 | } | |
28607 | _ACEOF | |
28608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28610 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28611 | ac_status=$? |
ac1cb8d3 VS |
28612 | grep -v '^ *+' conftest.er1 >conftest.err |
28613 | rm -f conftest.er1 | |
28614 | cat conftest.err >&5 | |
a848cd7e SC |
28615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28616 | (exit $ac_status); } && | |
dee1a63f MB |
28617 | { ac_try='test -z "$ac_c_werror_flag" |
28618 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28620 | (eval $ac_try) 2>&5 | |
28621 | ac_status=$? | |
28622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28623 | (exit $ac_status); }; } && | |
28624 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28626 | (eval $ac_try) 2>&5 | |
28627 | ac_status=$? | |
28628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28629 | (exit $ac_status); }; }; then | |
28630 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
28631 | else | |
28632 | echo "$as_me: failed program was:" >&5 | |
28633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28634 | ||
28635 | ac_cv_lib_ICE_IceConnectionNumber=no | |
28636 | fi | |
ac1cb8d3 VS |
28637 | rm -f conftest.err conftest.$ac_objext \ |
28638 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28639 | LIBS=$ac_check_lib_save_LIBS |
28640 | fi | |
28641 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
28642 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
28643 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
28644 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
28645 | fi | |
28646 | ||
28647 | LDFLAGS=$ac_save_LDFLAGS | |
28648 | ||
28649 | fi | |
28650 | ||
28651 | ||
28652 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
28653 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
28654 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
28655 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
28656 | fi |
28657 | ||
74b84332 VS |
28658 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
28659 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
28660 | AFMINSTALL=afminstall |
28661 | COMPILED_X_PROGRAM=0 | |
28662 | ||
74b84332 VS |
28663 | fi |
28664 | ||
28665 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
28666 | if test "$wxUSE_NANOX" = "yes"; then |
28667 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
28668 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
28669 | if test "x$MICROWIN" = x ; then | |
28670 | echo "$as_me:$LINENO: result: not found" >&5 | |
28671 | echo "${ECHO_T}not found" >&6 | |
28672 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
28673 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
28674 | { (exit 1); exit 1; }; } | |
28675 | else | |
28676 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
28677 | echo "${ECHO_T}$MICROWIN" >&6 | |
28678 | cat >>confdefs.h <<\_ACEOF | |
28679 | #define wxUSE_NANOX 1 | |
28680 | _ACEOF | |
28681 | ||
28682 | fi | |
28683 | fi | |
28684 | ||
28685 | if test "$wxUSE_UNICODE" = "yes"; then | |
28686 | ||
28687 | succeeded=no | |
28688 | ||
28689 | if test -z "$PKG_CONFIG"; then | |
28690 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28691 | set dummy pkg-config; ac_word=$2 | |
28692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28694 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28696 | else | |
28697 | case $PKG_CONFIG in | |
28698 | [\\/]* | ?:[\\/]*) | |
28699 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28700 | ;; | |
28701 | *) | |
28702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28703 | for as_dir in $PATH | |
28704 | do | |
28705 | IFS=$as_save_IFS | |
28706 | test -z "$as_dir" && as_dir=. | |
28707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28709 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28711 | break 2 | |
28712 | fi | |
28713 | done | |
28714 | done | |
28715 | ||
28716 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28717 | ;; | |
28718 | esac | |
28719 | fi | |
28720 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28721 | ||
28722 | if test -n "$PKG_CONFIG"; then | |
28723 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28724 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28725 | else | |
28726 | echo "$as_me:$LINENO: result: no" >&5 | |
28727 | echo "${ECHO_T}no" >&6 | |
28728 | fi | |
28729 | ||
28730 | fi | |
28731 | ||
28732 | if test "$PKG_CONFIG" = "no" ; then | |
28733 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28734 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28735 | echo "*** to the full path to pkg-config." | |
28736 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28737 | else | |
28738 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28739 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28740 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
28741 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
28742 | ||
28743 | if $PKG_CONFIG --exists "pangox" ; then | |
28744 | echo "$as_me:$LINENO: result: yes" >&5 | |
28745 | echo "${ECHO_T}yes" >&6 | |
28746 | succeeded=yes | |
28747 | ||
28748 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
28749 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
28750 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
28751 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
28752 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
28753 | ||
28754 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
28755 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
28756 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
28757 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
28758 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
28759 | else | |
28760 | PANGOX_CFLAGS="" | |
28761 | PANGOX_LIBS="" | |
28762 | ## If we have a custom action on failure, don't print errors, but | |
28763 | ## do set a variable so people can do so. | |
28764 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
28765 | ||
28766 | fi | |
28767 | ||
28768 | ||
28769 | ||
28770 | else | |
28771 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28772 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28773 | fi | |
28774 | fi | |
28775 | ||
28776 | if test $succeeded = yes; then | |
28777 | ||
28778 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
28779 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
28780 | ||
28781 | else | |
28782 | ||
28783 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
28784 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
28785 | { (exit 1); exit 1; }; } | |
28786 | ||
28787 | ||
28788 | fi | |
28789 | ||
28790 | ||
28791 | succeeded=no | |
28792 | ||
28793 | if test -z "$PKG_CONFIG"; then | |
28794 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28795 | set dummy pkg-config; ac_word=$2 | |
28796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28798 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28800 | else | |
28801 | case $PKG_CONFIG in | |
28802 | [\\/]* | ?:[\\/]*) | |
28803 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28804 | ;; | |
28805 | *) | |
28806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28807 | for as_dir in $PATH | |
28808 | do | |
28809 | IFS=$as_save_IFS | |
28810 | test -z "$as_dir" && as_dir=. | |
28811 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28812 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28813 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28815 | break 2 | |
28816 | fi | |
28817 | done | |
28818 | done | |
28819 | ||
28820 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28821 | ;; | |
28822 | esac | |
28823 | fi | |
28824 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28825 | ||
28826 | if test -n "$PKG_CONFIG"; then | |
28827 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28828 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28829 | else | |
28830 | echo "$as_me:$LINENO: result: no" >&5 | |
28831 | echo "${ECHO_T}no" >&6 | |
28832 | fi | |
28833 | ||
28834 | fi | |
28835 | ||
28836 | if test "$PKG_CONFIG" = "no" ; then | |
28837 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28838 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28839 | echo "*** to the full path to pkg-config." | |
28840 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28841 | else | |
28842 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28843 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28844 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
28845 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
28846 | ||
28847 | if $PKG_CONFIG --exists "pangoft2" ; then | |
28848 | echo "$as_me:$LINENO: result: yes" >&5 | |
28849 | echo "${ECHO_T}yes" >&6 | |
28850 | succeeded=yes | |
28851 | ||
28852 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
28853 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
28854 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
28855 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
28856 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
28857 | ||
28858 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
28859 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
28860 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
28861 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
28862 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
28863 | else | |
28864 | PANGOFT2_CFLAGS="" | |
28865 | PANGOFT2_LIBS="" | |
28866 | ## If we have a custom action on failure, don't print errors, but | |
28867 | ## do set a variable so people can do so. | |
28868 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
28869 | ||
28870 | fi | |
28871 | ||
28872 | ||
28873 | ||
28874 | else | |
28875 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28876 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28877 | fi | |
28878 | fi | |
28879 | ||
28880 | if test $succeeded = yes; then | |
28881 | ||
28882 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
28883 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
28884 | ||
28885 | else | |
28886 | ||
28887 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
28888 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
28889 | wxUSE_PRINTING_ARCHITECTURE="no" | |
28890 | ||
28891 | ||
28892 | fi | |
28893 | ||
28894 | ||
28895 | succeeded=no | |
28896 | ||
28897 | if test -z "$PKG_CONFIG"; then | |
28898 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28899 | set dummy pkg-config; ac_word=$2 | |
28900 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28902 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28904 | else | |
28905 | case $PKG_CONFIG in | |
28906 | [\\/]* | ?:[\\/]*) | |
28907 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28908 | ;; | |
28909 | *) | |
28910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28911 | for as_dir in $PATH | |
28912 | do | |
28913 | IFS=$as_save_IFS | |
28914 | test -z "$as_dir" && as_dir=. | |
28915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28917 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28919 | break 2 | |
28920 | fi | |
28921 | done | |
28922 | done | |
28923 | ||
28924 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28925 | ;; | |
28926 | esac | |
28927 | fi | |
28928 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28929 | ||
28930 | if test -n "$PKG_CONFIG"; then | |
28931 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28932 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28933 | else | |
28934 | echo "$as_me:$LINENO: result: no" >&5 | |
28935 | echo "${ECHO_T}no" >&6 | |
28936 | fi | |
28937 | ||
28938 | fi | |
28939 | ||
28940 | if test "$PKG_CONFIG" = "no" ; then | |
28941 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28942 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28943 | echo "*** to the full path to pkg-config." | |
28944 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28945 | else | |
28946 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28947 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28948 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
28949 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
28950 | ||
28951 | if $PKG_CONFIG --exists "pangoxft" ; then | |
28952 | echo "$as_me:$LINENO: result: yes" >&5 | |
28953 | echo "${ECHO_T}yes" >&6 | |
28954 | succeeded=yes | |
28955 | ||
28956 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
28957 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
28958 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
28959 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
28960 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
28961 | ||
28962 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
28963 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
28964 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
28965 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
28966 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
28967 | else | |
28968 | PANGOXFT_CFLAGS="" | |
28969 | PANGOXFT_LIBS="" | |
28970 | ## If we have a custom action on failure, don't print errors, but | |
28971 | ## do set a variable so people can do so. | |
28972 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
28973 | ||
28974 | fi | |
28975 | ||
28976 | ||
28977 | ||
28978 | else | |
28979 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28980 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28981 | fi | |
28982 | fi | |
28983 | ||
28984 | if test $succeeded = yes; then | |
28985 | ||
4ae1af05 MB |
28986 | cat >>confdefs.h <<\_ACEOF |
28987 | #define HAVE_PANGO_XFT 1 | |
28988 | _ACEOF | |
28989 | ||
a848cd7e SC |
28990 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
28991 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
28992 | ||
28993 | else | |
28994 | ||
28995 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
28996 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
28997 | ||
28998 | ||
28999 | fi | |
29000 | ||
304205f1 VS |
29001 | save_CFLAGS="$CFLAGS" |
29002 | save_LIBS="$LIBS" | |
29003 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
29004 | LIBS="$LIBS $PANGOX_LIBS" | |
29005 | ||
29006 | for ac_func in pango_font_family_is_monospace | |
29007 | do | |
29008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29009 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29011 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29013 | else | |
29014 | cat >conftest.$ac_ext <<_ACEOF | |
29015 | /* confdefs.h. */ | |
29016 | _ACEOF | |
29017 | cat confdefs.h >>conftest.$ac_ext | |
29018 | cat >>conftest.$ac_ext <<_ACEOF | |
29019 | /* end confdefs.h. */ | |
29020 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29021 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29022 | #define $ac_func innocuous_$ac_func | |
29023 | ||
29024 | /* System header to define __stub macros and hopefully few prototypes, | |
29025 | which can conflict with char $ac_func (); below. | |
29026 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29027 | <limits.h> exists even on freestanding compilers. */ | |
29028 | ||
29029 | #ifdef __STDC__ | |
29030 | # include <limits.h> | |
29031 | #else | |
29032 | # include <assert.h> | |
29033 | #endif | |
29034 | ||
29035 | #undef $ac_func | |
29036 | ||
29037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29038 | #ifdef __cplusplus | |
29039 | extern "C" | |
29040 | { | |
29041 | #endif | |
29042 | /* We use char because int might match the return type of a gcc2 | |
29043 | builtin and then its argument prototype would still apply. */ | |
29044 | char $ac_func (); | |
29045 | /* The GNU C library defines this for functions which it implements | |
29046 | to always fail with ENOSYS. Some functions are actually named | |
29047 | something starting with __ and the normal name is an alias. */ | |
29048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29049 | choke me | |
29050 | #else | |
29051 | char (*f) () = $ac_func; | |
29052 | #endif | |
29053 | #ifdef __cplusplus | |
29054 | } | |
29055 | #endif | |
29056 | ||
29057 | int | |
29058 | main () | |
29059 | { | |
29060 | return f != $ac_func; | |
29061 | ; | |
29062 | return 0; | |
29063 | } | |
29064 | _ACEOF | |
29065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29067 | (eval $ac_link) 2>conftest.er1 | |
29068 | ac_status=$? | |
29069 | grep -v '^ *+' conftest.er1 >conftest.err | |
29070 | rm -f conftest.er1 | |
29071 | cat conftest.err >&5 | |
29072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29073 | (exit $ac_status); } && | |
dee1a63f MB |
29074 | { ac_try='test -z "$ac_c_werror_flag" |
29075 | || test ! -s conftest.err' | |
304205f1 VS |
29076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29077 | (eval $ac_try) 2>&5 | |
29078 | ac_status=$? | |
29079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29080 | (exit $ac_status); }; } && | |
29081 | { ac_try='test -s conftest$ac_exeext' | |
29082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29083 | (eval $ac_try) 2>&5 | |
29084 | ac_status=$? | |
29085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29086 | (exit $ac_status); }; }; then | |
29087 | eval "$as_ac_var=yes" | |
29088 | else | |
29089 | echo "$as_me: failed program was:" >&5 | |
29090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29091 | ||
29092 | eval "$as_ac_var=no" | |
29093 | fi | |
29094 | rm -f conftest.err conftest.$ac_objext \ | |
29095 | conftest$ac_exeext conftest.$ac_ext | |
29096 | fi | |
29097 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29098 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29099 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29100 | cat >>confdefs.h <<_ACEOF | |
29101 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29102 | _ACEOF | |
29103 | ||
29104 | fi | |
29105 | done | |
29106 | ||
29107 | CFLAGS="$save_CFLAGS" | |
29108 | LIBS="$save_LIBS" | |
a848cd7e SC |
29109 | fi |
29110 | ||
29111 | wxUSE_UNIVERSAL="yes" | |
29112 | ||
29113 | if test "$wxUSE_NANOX" = "yes"; then | |
29114 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29115 | 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" | |
29116 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29117 | else | |
29118 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29119 | fi | |
29120 | ||
a848cd7e SC |
29121 | TOOLKIT=X11 |
29122 | GUIDIST=X11_DIST | |
29123 | fi | |
29124 | ||
29125 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29126 | if test "$wxUSE_UNICODE" = "yes"; then |
29127 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29128 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29129 | { (exit 1); exit 1; }; } | |
29130 | fi | |
29131 | ||
74b84332 VS |
29132 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29133 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29134 | |
74b84332 VS |
29135 | ac_find_includes= |
29136 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29137 | do | |
29138 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29139 | ac_find_includes=$ac_dir | |
29140 | break | |
29141 | fi | |
29142 | done | |
a848cd7e | 29143 | |
74b84332 VS |
29144 | if test "$ac_find_includes" != "" ; then |
29145 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29146 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29147 | ||
29148 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29149 | ac_path_to_include="" | |
29150 | else | |
29151 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29152 | result=$? | |
29153 | if test $result = 0; then | |
29154 | ac_path_to_include="" | |
29155 | else | |
29156 | ac_path_to_include=" -I$ac_find_includes" | |
29157 | fi | |
a848cd7e SC |
29158 | fi |
29159 | ||
74b84332 VS |
29160 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29161 | else | |
e051b34e MW |
29162 | save_CFLAGS=$CFLAGS |
29163 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29164 | ||
74b84332 | 29165 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29166 | /* confdefs.h. */ |
29167 | _ACEOF | |
29168 | cat confdefs.h >>conftest.$ac_ext | |
29169 | cat >>conftest.$ac_ext <<_ACEOF | |
29170 | /* end confdefs.h. */ | |
29171 | ||
74b84332 VS |
29172 | #include <Xm/Xm.h> |
29173 | ||
a848cd7e SC |
29174 | int |
29175 | main () | |
29176 | { | |
29177 | ||
74b84332 VS |
29178 | int version; |
29179 | version = xmUseVersion; | |
29180 | ||
a848cd7e SC |
29181 | ; |
29182 | return 0; | |
29183 | } | |
29184 | _ACEOF | |
74b84332 VS |
29185 | rm -f conftest.$ac_objext |
29186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29187 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29188 | ac_status=$? |
ac1cb8d3 VS |
29189 | grep -v '^ *+' conftest.er1 >conftest.err |
29190 | rm -f conftest.er1 | |
29191 | cat conftest.err >&5 | |
a848cd7e SC |
29192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29193 | (exit $ac_status); } && | |
dee1a63f MB |
29194 | { ac_try='test -z "$ac_c_werror_flag" |
29195 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29197 | (eval $ac_try) 2>&5 | |
29198 | ac_status=$? | |
29199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29200 | (exit $ac_status); }; } && | |
74b84332 | 29201 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29203 | (eval $ac_try) 2>&5 | |
29204 | ac_status=$? | |
29205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29206 | (exit $ac_status); }; }; then | |
74b84332 VS |
29207 | |
29208 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29209 | echo "${ECHO_T}found in default search path" >&6 | |
29210 | COMPILED_X_PROGRAM=1 | |
29211 | ||
a848cd7e SC |
29212 | else |
29213 | echo "$as_me: failed program was:" >&5 | |
29214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29215 | ||
a848cd7e | 29216 | |
74b84332 VS |
29217 | echo "$as_me:$LINENO: result: no" >&5 |
29218 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29219 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29220 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29221 | { (exit 1); exit 1; }; } |
a848cd7e | 29222 | |
a848cd7e | 29223 | |
a848cd7e | 29224 | fi |
74b84332 | 29225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29226 | |
29227 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29228 | fi |
29229 | ||
0ad5d837 VZ |
29230 | |
29231 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29232 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29233 | ||
0ad5d837 VZ |
29234 | ac_find_libraries= |
29235 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29236 | do |
3eca31dc | 29237 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29238 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29239 | ac_find_libraries=$ac_dir | |
29240 | break 2 | |
a848cd7e | 29241 | fi |
74b84332 VS |
29242 | done |
29243 | done | |
a848cd7e | 29244 | |
0ad5d837 VZ |
29245 | |
29246 | if test "x$ac_find_libraries" != "x" ; then | |
29247 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29248 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29249 | |
74b84332 | 29250 | |
0ad5d837 | 29251 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29252 | ac_path_to_link="" |
a848cd7e | 29253 | else |
0ad5d837 VZ |
29254 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29255 | result=$? | |
29256 | if test $result = 0; then | |
29257 | ac_path_to_link="" | |
29258 | else | |
29259 | ac_path_to_link=" -L$ac_find_libraries" | |
29260 | fi | |
74b84332 VS |
29261 | fi |
29262 | ||
0ad5d837 VZ |
29263 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29264 | else | |
29265 | save_CFLAGS=$CFLAGS | |
29266 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
6f9cf1e6 MW |
29267 | save_LIBS="$LIBS" |
29268 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29269 | |
0ad5d837 | 29270 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29271 | /* confdefs.h. */ |
29272 | _ACEOF | |
29273 | cat confdefs.h >>conftest.$ac_ext | |
29274 | cat >>conftest.$ac_ext <<_ACEOF | |
29275 | /* end confdefs.h. */ | |
29276 | ||
0ad5d837 | 29277 | #include <Xm/Xm.h> |
74b84332 | 29278 | |
a848cd7e SC |
29279 | int |
29280 | main () | |
29281 | { | |
74b84332 | 29282 | |
0ad5d837 VZ |
29283 | int version; |
29284 | version = xmUseVersion; | |
74b84332 | 29285 | |
a848cd7e SC |
29286 | ; |
29287 | return 0; | |
29288 | } | |
29289 | _ACEOF | |
0ad5d837 VZ |
29290 | rm -f conftest.$ac_objext conftest$ac_exeext |
29291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29292 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29293 | ac_status=$? |
ac1cb8d3 VS |
29294 | grep -v '^ *+' conftest.er1 >conftest.err |
29295 | rm -f conftest.er1 | |
29296 | cat conftest.err >&5 | |
a848cd7e SC |
29297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29298 | (exit $ac_status); } && | |
dee1a63f MB |
29299 | { ac_try='test -z "$ac_c_werror_flag" |
29300 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
0ad5d837 | 29306 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29308 | (eval $ac_try) 2>&5 | |
29309 | ac_status=$? | |
29310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29311 | (exit $ac_status); }; }; then | |
74b84332 | 29312 | |
0ad5d837 | 29313 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29314 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29315 | COMPILED_X_PROGRAM=1 |
74b84332 | 29316 | |
a848cd7e SC |
29317 | else |
29318 | echo "$as_me: failed program was:" >&5 | |
29319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29320 | ||
74b84332 | 29321 | |
6f9cf1e6 | 29322 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29323 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29324 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29325 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29326 | { (exit 1); exit 1; }; } | |
29327 | ||
29328 | ||
29329 | fi | |
0ad5d837 VZ |
29330 | rm -f conftest.err conftest.$ac_objext \ |
29331 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29332 | |
0ad5d837 | 29333 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29334 | LIBS="$save_LIBS" |
74b84332 VS |
29335 | fi |
29336 | ||
29337 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29338 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29339 | libp_link="" | |
29340 | libsm_ice_link="" | |
29341 | libs_found=0 | |
29342 | for libp in "" " -lXp"; do | |
29343 | if test "$libs_found" = "0"; then | |
29344 | for libsm_ice in "" " -lSM -lICE"; do | |
29345 | if test "$libs_found" = "0"; then | |
29346 | save_LIBS="$LIBS" | |
29347 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29348 | save_CFLAGS=$CFLAGS | |
29349 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29350 | ||
29351 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29352 | /* confdefs.h. */ |
29353 | _ACEOF | |
29354 | cat confdefs.h >>conftest.$ac_ext | |
29355 | cat >>conftest.$ac_ext <<_ACEOF | |
29356 | /* end confdefs.h. */ | |
29357 | ||
74b84332 VS |
29358 | #include <Xm/Xm.h> |
29359 | #include <Xm/List.h> | |
29360 | ||
a848cd7e SC |
29361 | int |
29362 | main () | |
29363 | { | |
74b84332 VS |
29364 | |
29365 | XmString string = NULL; | |
29366 | Widget w = NULL; | |
29367 | int position = 0; | |
29368 | XmListAddItem(w, string, position); | |
29369 | ||
a848cd7e SC |
29370 | ; |
29371 | return 0; | |
29372 | } | |
29373 | _ACEOF | |
29374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29376 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29377 | ac_status=$? |
ac1cb8d3 VS |
29378 | grep -v '^ *+' conftest.er1 >conftest.err |
29379 | rm -f conftest.er1 | |
29380 | cat conftest.err >&5 | |
a848cd7e SC |
29381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29382 | (exit $ac_status); } && | |
dee1a63f MB |
29383 | { ac_try='test -z "$ac_c_werror_flag" |
29384 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29386 | (eval $ac_try) 2>&5 | |
29387 | ac_status=$? | |
29388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29389 | (exit $ac_status); }; } && | |
29390 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29392 | (eval $ac_try) 2>&5 | |
29393 | ac_status=$? | |
29394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29395 | (exit $ac_status); }; }; then | |
29396 | ||
29397 | libp_link="$libp" | |
29398 | libsm_ice_link="$libsm_ice" | |
29399 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29400 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29401 | libs_found=1 | |
29402 | ||
29403 | else | |
29404 | echo "$as_me: failed program was:" >&5 | |
29405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29406 | ||
29407 | ||
29408 | ||
29409 | fi | |
ac1cb8d3 VS |
29410 | rm -f conftest.err conftest.$ac_objext \ |
29411 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29412 | |
29413 | LIBS="$save_LIBS" | |
29414 | CFLAGS=$save_CFLAGS | |
29415 | fi | |
29416 | done | |
29417 | fi | |
29418 | done | |
29419 | ||
29420 | if test "$libs_found" = "0"; then | |
29421 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29422 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29423 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29424 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29425 | { (exit 1); exit 1; }; } | |
29426 | fi | |
29427 | ||
62fa8b3a MW |
29428 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29429 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29430 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29432 | else | |
29433 | ac_check_lib_save_LIBS=$LIBS | |
29434 | LIBS="-lSgm $LIBS" | |
29435 | cat >conftest.$ac_ext <<_ACEOF | |
29436 | /* confdefs.h. */ | |
29437 | _ACEOF | |
29438 | cat confdefs.h >>conftest.$ac_ext | |
29439 | cat >>conftest.$ac_ext <<_ACEOF | |
29440 | /* end confdefs.h. */ | |
29441 | ||
29442 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29443 | #ifdef __cplusplus | |
29444 | extern "C" | |
29445 | #endif | |
29446 | /* We use char because int might match the return type of a gcc2 | |
29447 | builtin and then its argument prototype would still apply. */ | |
29448 | char SgCreateList (); | |
29449 | int | |
29450 | main () | |
29451 | { | |
29452 | SgCreateList (); | |
29453 | ; | |
29454 | return 0; | |
29455 | } | |
29456 | _ACEOF | |
29457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29459 | (eval $ac_link) 2>conftest.er1 | |
29460 | ac_status=$? | |
29461 | grep -v '^ *+' conftest.er1 >conftest.err | |
29462 | rm -f conftest.er1 | |
29463 | cat conftest.err >&5 | |
29464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29465 | (exit $ac_status); } && | |
dee1a63f MB |
29466 | { ac_try='test -z "$ac_c_werror_flag" |
29467 | || test ! -s conftest.err' | |
62fa8b3a MW |
29468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29469 | (eval $ac_try) 2>&5 | |
29470 | ac_status=$? | |
29471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29472 | (exit $ac_status); }; } && | |
29473 | { ac_try='test -s conftest$ac_exeext' | |
29474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29475 | (eval $ac_try) 2>&5 | |
29476 | ac_status=$? | |
29477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29478 | (exit $ac_status); }; }; then | |
29479 | ac_cv_lib_Sgm_SgCreateList=yes | |
29480 | else | |
29481 | echo "$as_me: failed program was:" >&5 | |
29482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29483 | ||
29484 | ac_cv_lib_Sgm_SgCreateList=no | |
29485 | fi | |
29486 | rm -f conftest.err conftest.$ac_objext \ | |
29487 | conftest$ac_exeext conftest.$ac_ext | |
29488 | LIBS=$ac_check_lib_save_LIBS | |
29489 | fi | |
29490 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29491 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29492 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29493 | libsgm_link=" -lSgm" | |
29494 | fi | |
29495 | ||
29496 | ||
a848cd7e SC |
29497 | save_CFLAGS=$CFLAGS |
29498 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
0ad5d837 | 29499 | |
a848cd7e SC |
29500 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29501 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29502 | if test "${wx_cv_lib_motif2+set}" = set; then |
29503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29504 | else | |
29505 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29506 | /* confdefs.h. */ |
29507 | _ACEOF | |
29508 | cat confdefs.h >>conftest.$ac_ext | |
29509 | cat >>conftest.$ac_ext <<_ACEOF | |
29510 | /* end confdefs.h. */ | |
29511 | ||
0ad5d837 | 29512 | #include <Xm/Xm.h> |
a848cd7e SC |
29513 | |
29514 | int | |
29515 | main () | |
29516 | { | |
29517 | ||
0ad5d837 VZ |
29518 | #if XmVersion < 2000 |
29519 | Not Motif 2 | |
29520 | #endif | |
a848cd7e SC |
29521 | |
29522 | ; | |
29523 | return 0; | |
29524 | } | |
29525 | _ACEOF | |
29526 | rm -f conftest.$ac_objext | |
29527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29528 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29529 | ac_status=$? |
ac1cb8d3 VS |
29530 | grep -v '^ *+' conftest.er1 >conftest.err |
29531 | rm -f conftest.er1 | |
29532 | cat conftest.err >&5 | |
a848cd7e SC |
29533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29534 | (exit $ac_status); } && | |
dee1a63f MB |
29535 | { ac_try='test -z "$ac_c_werror_flag" |
29536 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29538 | (eval $ac_try) 2>&5 | |
29539 | ac_status=$? | |
29540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29541 | (exit $ac_status); }; } && | |
29542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29544 | (eval $ac_try) 2>&5 | |
29545 | ac_status=$? | |
29546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29547 | (exit $ac_status); }; }; then | |
0ad5d837 | 29548 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29549 | else |
29550 | echo "$as_me: failed program was:" >&5 | |
29551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29552 | ||
0ad5d837 VZ |
29553 | wx_cv_lib_motif2="no" |
29554 | fi | |
29555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29556 | fi | |
29557 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29558 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29559 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29560 | cat >>confdefs.h <<\_ACEOF | |
29561 | #define __WXMOTIF20__ 1 | |
29562 | _ACEOF | |
a848cd7e | 29563 | |
0ad5d837 VZ |
29564 | else |
29565 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29566 | #define __WXMOTIF20__ 0 |
29567 | _ACEOF | |
29568 | ||
0ad5d837 | 29569 | fi |
2113bc77 MW |
29570 | |
29571 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29572 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29573 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29575 | else | |
29576 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29577 | /* confdefs.h. */ |
29578 | _ACEOF | |
29579 | cat confdefs.h >>conftest.$ac_ext | |
29580 | cat >>conftest.$ac_ext <<_ACEOF | |
29581 | /* end confdefs.h. */ | |
29582 | ||
0ad5d837 | 29583 | #include <Xm/Xm.h> |
2113bc77 MW |
29584 | |
29585 | int | |
29586 | main () | |
29587 | { | |
29588 | ||
0ad5d837 VZ |
29589 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29590 | Not Lesstif | |
29591 | #endif | |
2113bc77 MW |
29592 | |
29593 | ; | |
29594 | return 0; | |
29595 | } | |
29596 | _ACEOF | |
29597 | rm -f conftest.$ac_objext | |
29598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29599 | (eval $ac_compile) 2>conftest.er1 | |
29600 | ac_status=$? | |
29601 | grep -v '^ *+' conftest.er1 >conftest.err | |
29602 | rm -f conftest.er1 | |
29603 | cat conftest.err >&5 | |
29604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29605 | (exit $ac_status); } && | |
dee1a63f MB |
29606 | { ac_try='test -z "$ac_c_werror_flag" |
29607 | || test ! -s conftest.err' | |
2113bc77 MW |
29608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29609 | (eval $ac_try) 2>&5 | |
29610 | ac_status=$? | |
29611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29612 | (exit $ac_status); }; } && | |
29613 | { ac_try='test -s conftest.$ac_objext' | |
29614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29615 | (eval $ac_try) 2>&5 | |
29616 | ac_status=$? | |
29617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29618 | (exit $ac_status); }; }; then | |
0ad5d837 | 29619 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
29620 | else |
29621 | echo "$as_me: failed program was:" >&5 | |
29622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29623 | ||
0ad5d837 VZ |
29624 | wx_cv_lib_lesstif="no" |
29625 | fi | |
29626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 29627 | |
0ad5d837 VZ |
29628 | fi |
29629 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
29630 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
29631 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
29632 | cat >>confdefs.h <<\_ACEOF | |
29633 | #define __WXLESSTIF__ 1 | |
29634 | _ACEOF | |
29635 | ||
29636 | else | |
29637 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
29638 | #define __WXLESSTIF__ 0 |
29639 | _ACEOF | |
29640 | ||
0ad5d837 | 29641 | fi |
2113bc77 | 29642 | |
a848cd7e SC |
29643 | CFLAGS=$save_CFLAGS |
29644 | ||
62fa8b3a | 29645 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
29646 | TOOLKIT=MOTIF |
29647 | GUIDIST=MOTIF_DIST | |
29648 | fi | |
29649 | ||
74b84332 | 29650 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
29651 | if test "$wxUSE_LIBXPM" = "sys"; then |
29652 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
29653 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
29654 | ||
0ad5d837 VZ |
29655 | ac_find_libraries= |
29656 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29657 | do |
3eca31dc | 29658 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29659 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
29660 | ac_find_libraries=$ac_dir | |
29661 | break 2 | |
29662 | fi | |
29663 | done | |
29664 | done | |
29665 | ||
29666 | if test "$ac_find_libraries" != "" ; then | |
29667 | ||
0ad5d837 | 29668 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29669 | ac_path_to_link="" |
29670 | else | |
0ad5d837 VZ |
29671 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29672 | result=$? | |
29673 | if test $result = 0; then | |
29674 | ac_path_to_link="" | |
29675 | else | |
29676 | ac_path_to_link=" -L$ac_find_libraries" | |
29677 | fi | |
a848cd7e SC |
29678 | fi |
29679 | ||
29680 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
29681 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29682 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29683 | |
29684 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
29685 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
29686 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
29687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29688 | else | |
29689 | ||
29690 | save_CFLAGS=$CFLAGS | |
29691 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29692 | ||
29693 | cat >conftest.$ac_ext <<_ACEOF | |
29694 | /* confdefs.h. */ | |
29695 | _ACEOF | |
29696 | cat confdefs.h >>conftest.$ac_ext | |
29697 | cat >>conftest.$ac_ext <<_ACEOF | |
29698 | /* end confdefs.h. */ | |
29699 | ||
29700 | #include <X11/xpm.h> | |
29701 | ||
29702 | int | |
29703 | main () | |
29704 | { | |
29705 | ||
29706 | int version; | |
29707 | version = XpmLibraryVersion(); | |
29708 | ||
29709 | ; | |
29710 | return 0; | |
29711 | } | |
29712 | _ACEOF | |
29713 | rm -f conftest.$ac_objext | |
29714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29716 | ac_status=$? |
ac1cb8d3 VS |
29717 | grep -v '^ *+' conftest.er1 >conftest.err |
29718 | rm -f conftest.er1 | |
29719 | cat conftest.err >&5 | |
a848cd7e SC |
29720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29721 | (exit $ac_status); } && | |
dee1a63f MB |
29722 | { ac_try='test -z "$ac_c_werror_flag" |
29723 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29725 | (eval $ac_try) 2>&5 | |
29726 | ac_status=$? | |
29727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29728 | (exit $ac_status); }; } && | |
29729 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29731 | (eval $ac_try) 2>&5 | |
29732 | ac_status=$? | |
29733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29734 | (exit $ac_status); }; }; then | |
29735 | wx_cv_x11_xpm_h=yes | |
29736 | else | |
29737 | echo "$as_me: failed program was:" >&5 | |
29738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29739 | ||
29740 | wx_cv_x11_xpm_h=no | |
29741 | ||
29742 | fi | |
ac1cb8d3 | 29743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29744 | |
29745 | CFLAGS=$save_CFLAGS | |
29746 | ||
29747 | ||
29748 | fi | |
29749 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
29750 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
29751 | ||
29752 | if test $wx_cv_x11_xpm_h = "yes"; then | |
29753 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
29754 | cat >>confdefs.h <<\_ACEOF | |
29755 | #define wxHAVE_LIB_XPM 1 | |
29756 | _ACEOF | |
29757 | ||
29758 | else | |
29759 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
29760 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
29761 | fi | |
29762 | fi | |
29763 | ||
29764 | fi | |
29765 | ||
29766 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
29767 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
29768 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
29769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29770 | else | |
29771 | ac_check_lib_save_LIBS=$LIBS | |
29772 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
29773 | cat >conftest.$ac_ext <<_ACEOF | |
29774 | /* confdefs.h. */ | |
29775 | _ACEOF | |
29776 | cat confdefs.h >>conftest.$ac_ext | |
29777 | cat >>conftest.$ac_ext <<_ACEOF | |
29778 | /* end confdefs.h. */ | |
29779 | ||
29780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29781 | #ifdef __cplusplus | |
29782 | extern "C" | |
29783 | #endif | |
29784 | /* We use char because int might match the return type of a gcc2 | |
29785 | builtin and then its argument prototype would still apply. */ | |
29786 | char XShapeQueryExtension (); | |
29787 | int | |
29788 | main () | |
29789 | { | |
29790 | XShapeQueryExtension (); | |
29791 | ; | |
29792 | return 0; | |
29793 | } | |
29794 | _ACEOF | |
29795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29797 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29798 | ac_status=$? |
ac1cb8d3 VS |
29799 | grep -v '^ *+' conftest.er1 >conftest.err |
29800 | rm -f conftest.er1 | |
29801 | cat conftest.err >&5 | |
a848cd7e SC |
29802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29803 | (exit $ac_status); } && | |
dee1a63f MB |
29804 | { ac_try='test -z "$ac_c_werror_flag" |
29805 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29807 | (eval $ac_try) 2>&5 | |
29808 | ac_status=$? | |
29809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29810 | (exit $ac_status); }; } && | |
29811 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29813 | (eval $ac_try) 2>&5 | |
29814 | ac_status=$? | |
29815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29816 | (exit $ac_status); }; }; then | |
29817 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
29818 | else | |
29819 | echo "$as_me: failed program was:" >&5 | |
29820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29821 | ||
29822 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
29823 | fi | |
ac1cb8d3 VS |
29824 | rm -f conftest.err conftest.$ac_objext \ |
29825 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29826 | LIBS=$ac_check_lib_save_LIBS |
29827 | fi | |
29828 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
29829 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
29830 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
29831 | ||
29832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
29833 | wxHAVE_XEXT_LIB=1 | |
29834 | ||
29835 | fi | |
29836 | ||
29837 | ||
29838 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
29839 | save_CFLAGS="$CFLAGS" | |
29840 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29841 | ||
29842 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
29843 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
29844 | cat >conftest.$ac_ext <<_ACEOF | |
29845 | /* confdefs.h. */ | |
29846 | _ACEOF | |
29847 | cat confdefs.h >>conftest.$ac_ext | |
29848 | cat >>conftest.$ac_ext <<_ACEOF | |
29849 | /* end confdefs.h. */ | |
29850 | ||
29851 | #include <X11/Xlib.h> | |
29852 | #include <X11/extensions/shape.h> | |
29853 | ||
29854 | int | |
29855 | main () | |
29856 | { | |
29857 | ||
29858 | int dummy1, dummy2; | |
29859 | XShapeQueryExtension((Display*)NULL, | |
29860 | (int*)NULL, (int*)NULL); | |
29861 | ||
29862 | ; | |
29863 | return 0; | |
29864 | } | |
29865 | _ACEOF | |
29866 | rm -f conftest.$ac_objext | |
29867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29869 | ac_status=$? |
ac1cb8d3 VS |
29870 | grep -v '^ *+' conftest.er1 >conftest.err |
29871 | rm -f conftest.er1 | |
29872 | cat conftest.err >&5 | |
a848cd7e SC |
29873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29874 | (exit $ac_status); } && | |
dee1a63f MB |
29875 | { ac_try='test -z "$ac_c_werror_flag" |
29876 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29878 | (eval $ac_try) 2>&5 | |
29879 | ac_status=$? | |
29880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29881 | (exit $ac_status); }; } && | |
29882 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29884 | (eval $ac_try) 2>&5 | |
29885 | ac_status=$? | |
29886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29887 | (exit $ac_status); }; }; then | |
29888 | ||
29889 | cat >>confdefs.h <<\_ACEOF | |
29890 | #define HAVE_XSHAPE 1 | |
29891 | _ACEOF | |
29892 | ||
29893 | echo "$as_me:$LINENO: result: found" >&5 | |
29894 | echo "${ECHO_T}found" >&6 | |
29895 | ||
29896 | else | |
29897 | echo "$as_me: failed program was:" >&5 | |
29898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29899 | ||
29900 | ||
29901 | echo "$as_me:$LINENO: result: not found" >&5 | |
29902 | echo "${ECHO_T}not found" >&6 | |
29903 | ||
29904 | fi | |
ac1cb8d3 | 29905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29906 | CFLAGS="$save_CFLAGS" |
29907 | ||
29908 | fi | |
29909 | fi | |
29910 | ||
29911 | if test "$wxUSE_MAC" = 1; then | |
29912 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
29913 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
29914 | if test "$GCC" = yes; then | |
29915 | echo "$as_me:$LINENO: result: gcc" >&5 | |
29916 | echo "${ECHO_T}gcc" >&6 | |
29917 | CPPFLAGS_PASCAL="-fpascal-strings" | |
29918 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
29919 | echo "$as_me:$LINENO: result: xlc" >&5 | |
29920 | echo "${ECHO_T}xlc" >&6 | |
29921 | CPPFLAGS_PASCAL="-qmacpstr" | |
29922 | else | |
29923 | echo "$as_me:$LINENO: result: none" >&5 | |
29924 | echo "${ECHO_T}none" >&6 | |
29925 | fi | |
29926 | ||
1e9e8aba DE |
29927 | if test "x$wxUSE_UNIX" = "xyes"; then |
29928 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
29929 | else | |
29930 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
29931 | fi | |
a848cd7e | 29932 | |
a848cd7e SC |
29933 | TOOLKIT=MAC |
29934 | GUIDIST=MACX_DIST | |
dd21ced8 | 29935 | WXBASEPORT="_carbon" |
a848cd7e SC |
29936 | fi |
29937 | ||
29938 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
29939 | TOOLKIT=COCOA |
29940 | GUIDIST=COCOA_DIST | |
29941 | fi | |
29942 | ||
29943 | if test "$wxUSE_PM" = 1; then | |
29944 | TOOLKIT=PM | |
de59c161 RD |
29945 | GUIDIST=PM_DIST |
29946 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
29947 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
29948 | if test "${wx_cv_spbcdata+set}" = set; then | |
29949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29950 | else | |
29951 | ||
29952 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
29953 | /* confdefs.h. */ |
29954 | _ACEOF | |
29955 | cat confdefs.h >>conftest.$ac_ext | |
29956 | cat >>conftest.$ac_ext <<_ACEOF | |
29957 | /* end confdefs.h. */ | |
29958 | ||
29959 | #define INCL_PM | |
29960 | #include <os2.h> | |
29961 | ||
29962 | int | |
29963 | main () | |
29964 | { | |
29965 | ||
29966 | SPBCDATA test; | |
29967 | ||
29968 | ; | |
29969 | return 0; | |
29970 | } | |
29971 | _ACEOF | |
29972 | rm -f conftest.$ac_objext | |
29973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29974 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 29975 | ac_status=$? |
ac1cb8d3 VS |
29976 | grep -v '^ *+' conftest.er1 >conftest.err |
29977 | rm -f conftest.er1 | |
29978 | cat conftest.err >&5 | |
de59c161 RD |
29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29980 | (exit $ac_status); } && | |
dee1a63f MB |
29981 | { ac_try='test -z "$ac_c_werror_flag" |
29982 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29984 | (eval $ac_try) 2>&5 | |
29985 | ac_status=$? | |
29986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29987 | (exit $ac_status); }; } && | |
29988 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
29989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29990 | (eval $ac_try) 2>&5 | |
29991 | ac_status=$? | |
29992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29993 | (exit $ac_status); }; }; then | |
29994 | wx_cv_spbcdata=yes | |
29995 | else | |
29996 | echo "$as_me: failed program was:" >&5 | |
29997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29998 | ||
29999 | wx_cv_spbcdata=no | |
30000 | ||
30001 | fi | |
ac1cb8d3 | 30002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30003 | |
30004 | ||
30005 | fi | |
30006 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30007 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30008 | ||
30009 | if test $wx_cv_spbcdata = "yes"; then | |
30010 | cat >>confdefs.h <<\_ACEOF | |
30011 | #define HAVE_SPBCDATA 1 | |
30012 | _ACEOF | |
30013 | ||
30014 | fi | |
a848cd7e SC |
30015 | fi |
30016 | ||
30017 | if test "$TOOLKIT" = "PM" ; then | |
30018 | TOOLKIT_DIR="os2" | |
30019 | else | |
30020 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30021 | fi | |
30022 | ||
a848cd7e | 30023 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30024 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30025 | WIDGET_SET=univ | |
a848cd7e SC |
30026 | fi |
30027 | ||
30028 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30029 | DISTDIR="wx\$(TOOLKIT)" | |
30030 | else | |
30031 | USE_GUI=0 | |
30032 | ||
30033 | TOOLKIT_DIR="base" | |
30034 | ||
30035 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30036 | TOOLKIT="MSW" |
a848cd7e SC |
30037 | fi |
30038 | ||
a848cd7e SC |
30039 | GUIDIST="BASE_DIST" |
30040 | DISTDIR="wxBase" | |
30041 | fi | |
30042 | ||
30043 | ||
d12aef51 VZ |
30044 | if test "$wxUSE_GUI" = "yes"; then |
30045 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30046 | ||
30047 | for ac_header in X11/Xlib.h | |
30048 | do | |
30049 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30050 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30055 | fi | |
30056 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30057 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30058 | else | |
30059 | # Is the header compilable? | |
30060 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30061 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30062 | cat >conftest.$ac_ext <<_ACEOF | |
30063 | /* confdefs.h. */ | |
30064 | _ACEOF | |
30065 | cat confdefs.h >>conftest.$ac_ext | |
30066 | cat >>conftest.$ac_ext <<_ACEOF | |
30067 | /* end confdefs.h. */ | |
30068 | $ac_includes_default | |
30069 | #include <$ac_header> | |
30070 | _ACEOF | |
30071 | rm -f conftest.$ac_objext | |
30072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30073 | (eval $ac_compile) 2>conftest.er1 | |
30074 | ac_status=$? | |
30075 | grep -v '^ *+' conftest.er1 >conftest.err | |
30076 | rm -f conftest.er1 | |
30077 | cat conftest.err >&5 | |
30078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30079 | (exit $ac_status); } && | |
dee1a63f MB |
30080 | { ac_try='test -z "$ac_c_werror_flag" |
30081 | || test ! -s conftest.err' | |
d12aef51 VZ |
30082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30083 | (eval $ac_try) 2>&5 | |
30084 | ac_status=$? | |
30085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30086 | (exit $ac_status); }; } && | |
30087 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
30093 | ac_header_compiler=yes | |
30094 | else | |
30095 | echo "$as_me: failed program was:" >&5 | |
30096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30097 | ||
30098 | ac_header_compiler=no | |
30099 | fi | |
30100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30102 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30103 | ||
30104 | # Is the header present? | |
30105 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30106 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30107 | cat >conftest.$ac_ext <<_ACEOF | |
30108 | /* confdefs.h. */ | |
30109 | _ACEOF | |
30110 | cat confdefs.h >>conftest.$ac_ext | |
30111 | cat >>conftest.$ac_ext <<_ACEOF | |
30112 | /* end confdefs.h. */ | |
30113 | #include <$ac_header> | |
30114 | _ACEOF | |
30115 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30116 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30117 | ac_status=$? | |
30118 | grep -v '^ *+' conftest.er1 >conftest.err | |
30119 | rm -f conftest.er1 | |
30120 | cat conftest.err >&5 | |
30121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30122 | (exit $ac_status); } >/dev/null; then | |
30123 | if test -s conftest.err; then | |
30124 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30125 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30126 | else | |
30127 | ac_cpp_err= | |
30128 | fi | |
30129 | else | |
30130 | ac_cpp_err=yes | |
30131 | fi | |
30132 | if test -z "$ac_cpp_err"; then | |
30133 | ac_header_preproc=yes | |
30134 | else | |
30135 | echo "$as_me: failed program was:" >&5 | |
30136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30137 | ||
30138 | ac_header_preproc=no | |
30139 | fi | |
30140 | rm -f conftest.err conftest.$ac_ext | |
30141 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30142 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30143 | ||
30144 | # So? What about this header? | |
30145 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30146 | yes:no: ) | |
30147 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30148 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30150 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30151 | ac_header_preproc=yes | |
30152 | ;; | |
30153 | no:yes:* ) | |
30154 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30155 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30156 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30157 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30158 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30159 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30160 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30161 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30163 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30164 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30165 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30166 | ( | |
30167 | cat <<\_ASBOX | |
30168 | ## ----------------------------------------- ## | |
30169 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30170 | ## ----------------------------------------- ## | |
30171 | _ASBOX | |
30172 | ) | | |
30173 | sed "s/^/$as_me: WARNING: /" >&2 | |
30174 | ;; | |
30175 | esac | |
30176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30180 | else | |
30181 | eval "$as_ac_Header=\$ac_header_preproc" | |
30182 | fi | |
30183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30185 | ||
30186 | fi | |
30187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30188 | cat >>confdefs.h <<_ACEOF | |
30189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30190 | _ACEOF | |
30191 | ||
30192 | fi | |
30193 | ||
30194 | done | |
30195 | ||
30196 | ||
30197 | for ac_header in X11/XKBlib.h | |
30198 | do | |
30199 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30204 | else | |
30205 | cat >conftest.$ac_ext <<_ACEOF | |
30206 | /* confdefs.h. */ | |
30207 | _ACEOF | |
30208 | cat confdefs.h >>conftest.$ac_ext | |
30209 | cat >>conftest.$ac_ext <<_ACEOF | |
30210 | /* end confdefs.h. */ | |
30211 | ||
30212 | #if HAVE_X11_XLIB_H | |
30213 | #include <X11/Xlib.h> | |
30214 | #endif | |
30215 | ||
30216 | ||
30217 | #include <$ac_header> | |
30218 | _ACEOF | |
30219 | rm -f conftest.$ac_objext | |
30220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30221 | (eval $ac_compile) 2>conftest.er1 | |
30222 | ac_status=$? | |
30223 | grep -v '^ *+' conftest.er1 >conftest.err | |
30224 | rm -f conftest.er1 | |
30225 | cat conftest.err >&5 | |
30226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30227 | (exit $ac_status); } && | |
dee1a63f MB |
30228 | { ac_try='test -z "$ac_c_werror_flag" |
30229 | || test ! -s conftest.err' | |
d12aef51 VZ |
30230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30231 | (eval $ac_try) 2>&5 | |
30232 | ac_status=$? | |
30233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30234 | (exit $ac_status); }; } && | |
30235 | { ac_try='test -s conftest.$ac_objext' | |
30236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30237 | (eval $ac_try) 2>&5 | |
30238 | ac_status=$? | |
30239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30240 | (exit $ac_status); }; }; then | |
30241 | eval "$as_ac_Header=yes" | |
30242 | else | |
30243 | echo "$as_me: failed program was:" >&5 | |
30244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30245 | ||
30246 | eval "$as_ac_Header=no" | |
30247 | fi | |
30248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30249 | fi | |
30250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30251 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30253 | cat >>confdefs.h <<_ACEOF | |
30254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30255 | _ACEOF | |
30256 | ||
30257 | fi | |
30258 | ||
30259 | done | |
30260 | ||
30261 | fi | |
30262 | fi | |
30263 | ||
a848cd7e SC |
30264 | |
30265 | ||
30266 | IODBC_C_SRC="" | |
30267 | ||
30268 | ||
30269 | if test "$TOOLKIT" != "MSW" ; then | |
30270 | ||
30271 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30272 | ||
30273 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30274 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30275 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30276 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30278 | fi | |
30279 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30280 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30281 | else | |
30282 | # Is the header compilable? | |
30283 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30284 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30285 | cat >conftest.$ac_ext <<_ACEOF | |
30286 | /* confdefs.h. */ | |
30287 | _ACEOF | |
30288 | cat confdefs.h >>conftest.$ac_ext | |
30289 | cat >>conftest.$ac_ext <<_ACEOF | |
30290 | /* end confdefs.h. */ | |
30291 | $ac_includes_default | |
30292 | #include <sql.h> | |
30293 | _ACEOF | |
30294 | rm -f conftest.$ac_objext | |
30295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30296 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30297 | ac_status=$? |
ac1cb8d3 VS |
30298 | grep -v '^ *+' conftest.er1 >conftest.err |
30299 | rm -f conftest.er1 | |
30300 | cat conftest.err >&5 | |
a848cd7e SC |
30301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30302 | (exit $ac_status); } && | |
dee1a63f MB |
30303 | { ac_try='test -z "$ac_c_werror_flag" |
30304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30306 | (eval $ac_try) 2>&5 | |
30307 | ac_status=$? | |
30308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30309 | (exit $ac_status); }; } && | |
30310 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30312 | (eval $ac_try) 2>&5 | |
30313 | ac_status=$? | |
30314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30315 | (exit $ac_status); }; }; then | |
30316 | ac_header_compiler=yes | |
30317 | else | |
30318 | echo "$as_me: failed program was:" >&5 | |
30319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30320 | ||
30321 | ac_header_compiler=no | |
30322 | fi | |
ac1cb8d3 | 30323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30324 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30325 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30326 | ||
30327 | # Is the header present? | |
30328 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30329 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30330 | cat >conftest.$ac_ext <<_ACEOF | |
30331 | /* confdefs.h. */ | |
30332 | _ACEOF | |
30333 | cat confdefs.h >>conftest.$ac_ext | |
30334 | cat >>conftest.$ac_ext <<_ACEOF | |
30335 | /* end confdefs.h. */ | |
30336 | #include <sql.h> | |
30337 | _ACEOF | |
30338 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30339 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30340 | ac_status=$? | |
30341 | grep -v '^ *+' conftest.er1 >conftest.err | |
30342 | rm -f conftest.er1 | |
30343 | cat conftest.err >&5 | |
30344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30345 | (exit $ac_status); } >/dev/null; then | |
30346 | if test -s conftest.err; then | |
30347 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30348 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30349 | else |
30350 | ac_cpp_err= | |
30351 | fi | |
30352 | else | |
30353 | ac_cpp_err=yes | |
30354 | fi | |
30355 | if test -z "$ac_cpp_err"; then | |
30356 | ac_header_preproc=yes | |
30357 | else | |
30358 | echo "$as_me: failed program was:" >&5 | |
30359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30360 | ||
30361 | ac_header_preproc=no | |
30362 | fi | |
30363 | rm -f conftest.err conftest.$ac_ext | |
30364 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30365 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30366 | ||
30367 | # So? What about this header? | |
ac1cb8d3 VS |
30368 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30369 | yes:no: ) | |
a848cd7e SC |
30370 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30371 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30372 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30373 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30374 | ac_header_preproc=yes | |
a848cd7e | 30375 | ;; |
ac1cb8d3 | 30376 | no:yes:* ) |
a848cd7e SC |
30377 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30378 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30379 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30380 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30381 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30382 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30383 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30384 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30385 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30386 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30387 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30388 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30389 | ( |
30390 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30391 | ## ----------------------------------------- ## |
30392 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30393 | ## ----------------------------------------- ## | |
a848cd7e SC |
30394 | _ASBOX |
30395 | ) | | |
30396 | sed "s/^/$as_me: WARNING: /" >&2 | |
30397 | ;; | |
30398 | esac | |
30399 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30400 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30401 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30403 | else | |
30404 | ac_cv_header_sql_h=$ac_header_preproc | |
30405 | fi | |
30406 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30407 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30408 | ||
30409 | fi | |
30410 | if test $ac_cv_header_sql_h = yes; then | |
30411 | found_sql_h=1 | |
30412 | fi | |
30413 | ||
30414 | ||
30415 | if test "x$found_sql_h" = "x1" ; then | |
30416 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30417 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30418 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30420 | else | |
30421 | ac_check_lib_save_LIBS=$LIBS | |
30422 | LIBS="-liodbc $LIBS" | |
30423 | cat >conftest.$ac_ext <<_ACEOF | |
30424 | /* confdefs.h. */ | |
30425 | _ACEOF | |
30426 | cat confdefs.h >>conftest.$ac_ext | |
30427 | cat >>conftest.$ac_ext <<_ACEOF | |
30428 | /* end confdefs.h. */ | |
30429 | ||
30430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30431 | #ifdef __cplusplus | |
30432 | extern "C" | |
30433 | #endif | |
30434 | /* We use char because int might match the return type of a gcc2 | |
30435 | builtin and then its argument prototype would still apply. */ | |
30436 | char SQLAllocEnv (); | |
30437 | int | |
30438 | main () | |
30439 | { | |
30440 | SQLAllocEnv (); | |
30441 | ; | |
30442 | return 0; | |
30443 | } | |
30444 | _ACEOF | |
30445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30448 | ac_status=$? |
ac1cb8d3 VS |
30449 | grep -v '^ *+' conftest.er1 >conftest.err |
30450 | rm -f conftest.er1 | |
30451 | cat conftest.err >&5 | |
a848cd7e SC |
30452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30453 | (exit $ac_status); } && | |
dee1a63f MB |
30454 | { ac_try='test -z "$ac_c_werror_flag" |
30455 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30457 | (eval $ac_try) 2>&5 | |
30458 | ac_status=$? | |
30459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30460 | (exit $ac_status); }; } && | |
30461 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30463 | (eval $ac_try) 2>&5 | |
30464 | ac_status=$? | |
30465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30466 | (exit $ac_status); }; }; then | |
30467 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30468 | else | |
30469 | echo "$as_me: failed program was:" >&5 | |
30470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30471 | ||
30472 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30473 | fi | |
ac1cb8d3 VS |
30474 | rm -f conftest.err conftest.$ac_objext \ |
30475 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30476 | LIBS=$ac_check_lib_save_LIBS |
30477 | fi | |
30478 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30479 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30480 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30481 | ODBC_LINK=" -liodbc" | |
30482 | else | |
30483 | ||
30484 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30485 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30486 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30488 | else | |
30489 | ac_check_lib_save_LIBS=$LIBS | |
30490 | LIBS="-lunixodbc $LIBS" | |
30491 | cat >conftest.$ac_ext <<_ACEOF | |
30492 | /* confdefs.h. */ | |
30493 | _ACEOF | |
30494 | cat confdefs.h >>conftest.$ac_ext | |
30495 | cat >>conftest.$ac_ext <<_ACEOF | |
30496 | /* end confdefs.h. */ | |
30497 | ||
30498 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30499 | #ifdef __cplusplus | |
30500 | extern "C" | |
30501 | #endif | |
30502 | /* We use char because int might match the return type of a gcc2 | |
30503 | builtin and then its argument prototype would still apply. */ | |
30504 | char SQLAllocEnv (); | |
30505 | int | |
30506 | main () | |
30507 | { | |
30508 | SQLAllocEnv (); | |
30509 | ; | |
30510 | return 0; | |
30511 | } | |
30512 | _ACEOF | |
30513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30515 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30516 | ac_status=$? |
ac1cb8d3 VS |
30517 | grep -v '^ *+' conftest.er1 >conftest.err |
30518 | rm -f conftest.er1 | |
30519 | cat conftest.err >&5 | |
a848cd7e SC |
30520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30521 | (exit $ac_status); } && | |
dee1a63f MB |
30522 | { ac_try='test -z "$ac_c_werror_flag" |
30523 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30525 | (eval $ac_try) 2>&5 | |
30526 | ac_status=$? | |
30527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30528 | (exit $ac_status); }; } && | |
30529 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30531 | (eval $ac_try) 2>&5 | |
30532 | ac_status=$? | |
30533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30534 | (exit $ac_status); }; }; then | |
30535 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30536 | else | |
30537 | echo "$as_me: failed program was:" >&5 | |
30538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30539 | ||
30540 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30541 | fi | |
ac1cb8d3 VS |
30542 | rm -f conftest.err conftest.$ac_objext \ |
30543 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30544 | LIBS=$ac_check_lib_save_LIBS |
30545 | fi | |
30546 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30547 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30548 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30549 | ODBC_LINK=" -lunixodbc" | |
30550 | else | |
30551 | ||
30552 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30553 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30554 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30556 | else | |
30557 | ac_check_lib_save_LIBS=$LIBS | |
30558 | LIBS="-lodbc $LIBS" | |
30559 | cat >conftest.$ac_ext <<_ACEOF | |
30560 | /* confdefs.h. */ | |
30561 | _ACEOF | |
30562 | cat confdefs.h >>conftest.$ac_ext | |
30563 | cat >>conftest.$ac_ext <<_ACEOF | |
30564 | /* end confdefs.h. */ | |
30565 | ||
30566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30567 | #ifdef __cplusplus | |
30568 | extern "C" | |
30569 | #endif | |
30570 | /* We use char because int might match the return type of a gcc2 | |
30571 | builtin and then its argument prototype would still apply. */ | |
30572 | char SQLAllocEnv (); | |
30573 | int | |
30574 | main () | |
30575 | { | |
30576 | SQLAllocEnv (); | |
30577 | ; | |
30578 | return 0; | |
30579 | } | |
30580 | _ACEOF | |
30581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30583 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30584 | ac_status=$? |
ac1cb8d3 VS |
30585 | grep -v '^ *+' conftest.er1 >conftest.err |
30586 | rm -f conftest.er1 | |
30587 | cat conftest.err >&5 | |
a848cd7e SC |
30588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30589 | (exit $ac_status); } && | |
dee1a63f MB |
30590 | { ac_try='test -z "$ac_c_werror_flag" |
30591 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30593 | (eval $ac_try) 2>&5 | |
30594 | ac_status=$? | |
30595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30596 | (exit $ac_status); }; } && | |
30597 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30599 | (eval $ac_try) 2>&5 | |
30600 | ac_status=$? | |
30601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30602 | (exit $ac_status); }; }; then | |
30603 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
30604 | else | |
30605 | echo "$as_me: failed program was:" >&5 | |
30606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30607 | ||
30608 | ac_cv_lib_odbc_SQLAllocEnv=no | |
30609 | fi | |
ac1cb8d3 VS |
30610 | rm -f conftest.err conftest.$ac_objext \ |
30611 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30612 | LIBS=$ac_check_lib_save_LIBS |
30613 | fi | |
30614 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
30615 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
30616 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
30617 | ODBC_LINK=" -lodbc" | |
30618 | fi | |
30619 | ||
30620 | ||
30621 | fi | |
30622 | ||
30623 | ||
30624 | fi | |
30625 | ||
30626 | fi | |
30627 | if test "x$ODBC_LINK" = "x" ; then | |
30628 | if test "$wxUSE_ODBC" = "sys" ; then | |
30629 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
30630 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
30631 | { (exit 1); exit 1; }; } | |
30632 | else | |
30633 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
30634 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
30635 | wxUSE_ODBC=builtin | |
30636 | fi | |
30637 | else | |
30638 | wxUSE_ODBC=sys | |
30639 | fi | |
30640 | fi | |
a848cd7e | 30641 | |
2da0c077 RD |
30642 | if test "$wxUSE_ODBC" = "builtin" ; then |
30643 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30644 | #define wxUSE_BUILTIN_IODBC 1 |
30645 | _ACEOF | |
30646 | ||
a848cd7e SC |
30647 | fi |
30648 | fi | |
30649 | ||
2da0c077 RD |
30650 | if test "$wxUSE_ODBC" != "no" ; then |
30651 | cat >>confdefs.h <<\_ACEOF | |
30652 | #define wxUSE_ODBC 1 | |
30653 | _ACEOF | |
30654 | ||
30655 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
30656 | ||
30657 | WXODBCFLAG="-D_IODBC_" | |
30658 | fi | |
a848cd7e | 30659 | |
01cb68df | 30660 | |
a848cd7e | 30661 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 30662 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
30663 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
30664 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
30665 | ||
0ad5d837 VZ |
30666 | ac_find_libraries= |
30667 | for ac_dir in $SEARCH_LIB; | |
30668 | do | |
30669 | for ac_extension in a so sl dylib dll.a; do | |
30670 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
30671 | ac_find_libraries=$ac_dir | |
30672 | break 2 | |
30673 | fi | |
30674 | done | |
30675 | done | |
30676 | ||
a848cd7e SC |
30677 | if test "$ac_find_libraries" != "" ; then |
30678 | ||
0ad5d837 | 30679 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30680 | ac_path_to_link="" |
30681 | else | |
0ad5d837 VZ |
30682 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30683 | result=$? | |
30684 | if test $result = 0; then | |
30685 | ac_path_to_link="" | |
30686 | else | |
30687 | ac_path_to_link=" -L$ac_find_libraries" | |
30688 | fi | |
a848cd7e SC |
30689 | fi |
30690 | ||
30691 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30692 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
30693 | fi | |
30694 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
30695 | echo "$as_me:$LINENO: result: yes" >&5 | |
30696 | echo "${ECHO_T}yes" >&6 | |
30697 | ||
30698 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
30699 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
30700 | ||
0ad5d837 VZ |
30701 | ac_find_libraries= |
30702 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30703 | do |
3eca31dc | 30704 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30705 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
30706 | ac_find_libraries=$ac_dir | |
30707 | break 2 | |
30708 | fi | |
30709 | done | |
30710 | done | |
30711 | ||
30712 | if test "$ac_find_libraries" != "" ; then | |
30713 | echo "$as_me:$LINENO: result: yes" >&5 | |
30714 | echo "${ECHO_T}yes" >&6 | |
30715 | ||
30716 | for ac_header in X11/extensions/xf86vmode.h | |
30717 | do | |
30718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30719 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30720 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30723 | else | |
30724 | cat >conftest.$ac_ext <<_ACEOF | |
30725 | /* confdefs.h. */ | |
30726 | _ACEOF | |
30727 | cat confdefs.h >>conftest.$ac_ext | |
30728 | cat >>conftest.$ac_ext <<_ACEOF | |
30729 | /* end confdefs.h. */ | |
30730 | ||
30731 | #if HAVE_X11_XLIB_H | |
30732 | #include <X11/Xlib.h> | |
30733 | #endif | |
30734 | ||
30735 | ||
30736 | #include <$ac_header> | |
30737 | _ACEOF | |
30738 | rm -f conftest.$ac_objext | |
30739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30740 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30741 | ac_status=$? |
ac1cb8d3 VS |
30742 | grep -v '^ *+' conftest.er1 >conftest.err |
30743 | rm -f conftest.er1 | |
30744 | cat conftest.err >&5 | |
a848cd7e SC |
30745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30746 | (exit $ac_status); } && | |
dee1a63f MB |
30747 | { ac_try='test -z "$ac_c_werror_flag" |
30748 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30750 | (eval $ac_try) 2>&5 | |
30751 | ac_status=$? | |
30752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30753 | (exit $ac_status); }; } && | |
30754 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30756 | (eval $ac_try) 2>&5 | |
30757 | ac_status=$? | |
30758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30759 | (exit $ac_status); }; }; then | |
30760 | eval "$as_ac_Header=yes" | |
30761 | else | |
30762 | echo "$as_me: failed program was:" >&5 | |
30763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30764 | ||
30765 | eval "$as_ac_Header=no" | |
30766 | fi | |
ac1cb8d3 | 30767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30768 | fi |
30769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30772 | cat >>confdefs.h <<_ACEOF | |
30773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30774 | _ACEOF | |
30775 | ||
30776 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
30777 | ||
30778 | fi | |
30779 | ||
30780 | done | |
30781 | ||
30782 | else | |
30783 | echo "$as_me:$LINENO: result: no" >&5 | |
30784 | echo "${ECHO_T}no" >&6 | |
30785 | fi | |
30786 | ||
30787 | else | |
30788 | echo "$as_me:$LINENO: result: no" >&5 | |
30789 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
30790 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
30791 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
30792 | wxUSE_DISPLAY="no" |
30793 | fi | |
01cb68df RG |
30794 | elif test "$wxUSE_MSW" = 1; then |
30795 | ||
30796 | ||
30797 | for ac_header in multimon.h ddraw.h | |
30798 | do | |
30799 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 30800 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
30801 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
30802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 30804 | else |
5294a27e | 30805 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
30806 | /* confdefs.h. */ |
30807 | _ACEOF | |
30808 | cat confdefs.h >>conftest.$ac_ext | |
30809 | cat >>conftest.$ac_ext <<_ACEOF | |
30810 | /* end confdefs.h. */ | |
5294a27e VZ |
30811 | #include <windows.h> |
30812 | ||
01cb68df RG |
30813 | #include <$ac_header> |
30814 | _ACEOF | |
30815 | rm -f conftest.$ac_objext | |
30816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30817 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 30818 | ac_status=$? |
ac1cb8d3 VS |
30819 | grep -v '^ *+' conftest.er1 >conftest.err |
30820 | rm -f conftest.er1 | |
30821 | cat conftest.err >&5 | |
01cb68df RG |
30822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30823 | (exit $ac_status); } && | |
dee1a63f MB |
30824 | { ac_try='test -z "$ac_c_werror_flag" |
30825 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30827 | (eval $ac_try) 2>&5 | |
30828 | ac_status=$? | |
30829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30830 | (exit $ac_status); }; } && | |
30831 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
30832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30833 | (eval $ac_try) 2>&5 | |
30834 | ac_status=$? | |
30835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30836 | (exit $ac_status); }; }; then | |
5294a27e | 30837 | eval "$as_ac_Header=yes" |
01cb68df RG |
30838 | else |
30839 | echo "$as_me: failed program was:" >&5 | |
30840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30841 | ||
5294a27e | 30842 | eval "$as_ac_Header=no" |
01cb68df | 30843 | fi |
ac1cb8d3 | 30844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
30845 | fi |
30846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
30848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30849 | cat >>confdefs.h <<_ACEOF | |
30850 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30851 | _ACEOF | |
30852 | ||
30853 | else | |
30854 | ||
5294a27e VZ |
30855 | wxUSE_DISPLAY="no" |
30856 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 30857 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
30858 | |
30859 | fi | |
30860 | ||
30861 | done | |
30862 | ||
a848cd7e SC |
30863 | fi |
30864 | fi | |
30865 | ||
30866 | ||
30867 | USE_OPENGL=0 | |
30868 | if test "$wxUSE_OPENGL" = "yes"; then | |
30869 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
30870 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
30871 | elif test "$wxUSE_MSW" = 1; then | |
30872 | OPENGL_LIBS="-lopengl32 -lglu32" | |
30873 | else | |
30874 | ||
30875 | ||
30876 | ac_find_includes= | |
30877 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30878 | do | |
30879 | if test -f "$ac_dir/GL/gl.h"; then | |
30880 | ac_find_includes=$ac_dir | |
30881 | break | |
30882 | fi | |
30883 | done | |
30884 | ||
30885 | if test "$ac_find_includes" != "" ; then | |
30886 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30887 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30888 | ||
30889 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30890 | ac_path_to_include="" | |
30891 | else | |
30892 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
30893 | result=$? | |
30894 | if test $result = 0; then | |
30895 | ac_path_to_include="" | |
30896 | else | |
30897 | ac_path_to_include=" -I$ac_find_includes" | |
30898 | fi | |
30899 | fi | |
30900 | ||
30901 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
30902 | fi | |
30903 | ||
30904 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30905 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30906 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30907 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30909 | fi | |
30910 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30911 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30912 | else | |
30913 | # Is the header compilable? | |
30914 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
30915 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
30916 | cat >conftest.$ac_ext <<_ACEOF | |
30917 | /* confdefs.h. */ | |
30918 | _ACEOF | |
30919 | cat confdefs.h >>conftest.$ac_ext | |
30920 | cat >>conftest.$ac_ext <<_ACEOF | |
30921 | /* end confdefs.h. */ | |
30922 | $ac_includes_default | |
30923 | #include <GL/gl.h> | |
30924 | _ACEOF | |
30925 | rm -f conftest.$ac_objext | |
30926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30927 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30928 | ac_status=$? |
ac1cb8d3 VS |
30929 | grep -v '^ *+' conftest.er1 >conftest.err |
30930 | rm -f conftest.er1 | |
30931 | cat conftest.err >&5 | |
a848cd7e SC |
30932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30933 | (exit $ac_status); } && | |
dee1a63f MB |
30934 | { ac_try='test -z "$ac_c_werror_flag" |
30935 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30937 | (eval $ac_try) 2>&5 | |
30938 | ac_status=$? | |
30939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30940 | (exit $ac_status); }; } && | |
30941 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30943 | (eval $ac_try) 2>&5 | |
30944 | ac_status=$? | |
30945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30946 | (exit $ac_status); }; }; then | |
30947 | ac_header_compiler=yes | |
30948 | else | |
30949 | echo "$as_me: failed program was:" >&5 | |
30950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30951 | ||
30952 | ac_header_compiler=no | |
30953 | fi | |
ac1cb8d3 | 30954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30955 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30956 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30957 | ||
30958 | # Is the header present? | |
30959 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
30960 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
30961 | cat >conftest.$ac_ext <<_ACEOF | |
30962 | /* confdefs.h. */ | |
30963 | _ACEOF | |
30964 | cat confdefs.h >>conftest.$ac_ext | |
30965 | cat >>conftest.$ac_ext <<_ACEOF | |
30966 | /* end confdefs.h. */ | |
30967 | #include <GL/gl.h> | |
30968 | _ACEOF | |
30969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30971 | ac_status=$? | |
30972 | grep -v '^ *+' conftest.er1 >conftest.err | |
30973 | rm -f conftest.er1 | |
30974 | cat conftest.err >&5 | |
30975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30976 | (exit $ac_status); } >/dev/null; then | |
30977 | if test -s conftest.err; then | |
30978 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30980 | else |
30981 | ac_cpp_err= | |
30982 | fi | |
30983 | else | |
30984 | ac_cpp_err=yes | |
30985 | fi | |
30986 | if test -z "$ac_cpp_err"; then | |
30987 | ac_header_preproc=yes | |
30988 | else | |
30989 | echo "$as_me: failed program was:" >&5 | |
30990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30991 | ||
30992 | ac_header_preproc=no | |
30993 | fi | |
30994 | rm -f conftest.err conftest.$ac_ext | |
30995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30996 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30997 | ||
30998 | # So? What about this header? | |
ac1cb8d3 VS |
30999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31000 | yes:no: ) | |
a848cd7e SC |
31001 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31002 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31003 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31004 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31005 | ac_header_preproc=yes | |
a848cd7e | 31006 | ;; |
ac1cb8d3 | 31007 | no:yes:* ) |
a848cd7e SC |
31008 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31009 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31010 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31011 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31012 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31013 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31014 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31015 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31016 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31017 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31018 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31019 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31020 | ( |
31021 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31022 | ## ----------------------------------------- ## |
31023 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31024 | ## ----------------------------------------- ## | |
a848cd7e SC |
31025 | _ASBOX |
31026 | ) | | |
31027 | sed "s/^/$as_me: WARNING: /" >&2 | |
31028 | ;; | |
31029 | esac | |
31030 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31031 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31032 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31034 | else | |
31035 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31036 | fi | |
31037 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31038 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31039 | ||
31040 | fi | |
31041 | if test $ac_cv_header_GL_gl_h = yes; then | |
31042 | ||
31043 | found_gl=0 | |
31044 | ||
31045 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31046 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31047 | ||
0ad5d837 VZ |
31048 | ac_find_libraries= |
31049 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31050 | do |
3eca31dc | 31051 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31052 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31053 | ac_find_libraries=$ac_dir | |
31054 | break 2 | |
31055 | fi | |
31056 | done | |
31057 | done | |
31058 | ||
31059 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31060 | echo "$as_me:$LINENO: result: yes" >&5 |
31061 | echo "${ECHO_T}yes" >&6 | |
31062 | ||
a848cd7e | 31063 | |
0ad5d837 | 31064 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31065 | ac_path_to_link="" |
31066 | else | |
0ad5d837 VZ |
31067 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31068 | result=$? | |
31069 | if test $result = 0; then | |
31070 | ac_path_to_link="" | |
31071 | else | |
31072 | ac_path_to_link=" -L$ac_find_libraries" | |
31073 | fi | |
a848cd7e SC |
31074 | fi |
31075 | ||
31076 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31077 | LDFLAGS_GL="$ac_path_to_link" | |
31078 | fi | |
31079 | ||
69120ee4 VZ |
31080 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31081 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31082 | |
0ad5d837 VZ |
31083 | ac_find_libraries= |
31084 | for ac_dir in $SEARCH_LIB; | |
31085 | do | |
31086 | for ac_extension in a so sl dylib dll.a; do | |
31087 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31088 | ac_find_libraries=$ac_dir | |
31089 | break 2 | |
31090 | fi | |
31091 | done | |
31092 | done | |
31093 | ||
a848cd7e SC |
31094 | if test "$ac_find_libraries" != "" ; then |
31095 | ||
0ad5d837 | 31096 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31097 | ac_path_to_link="" |
31098 | else | |
0ad5d837 VZ |
31099 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31100 | result=$? | |
31101 | if test $result = 0; then | |
31102 | ac_path_to_link="" | |
31103 | else | |
31104 | ac_path_to_link=" -L$ac_find_libraries" | |
31105 | fi | |
a848cd7e SC |
31106 | fi |
31107 | ||
31108 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31109 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31110 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31111 | fi | |
31112 | ||
31113 | found_gl=1 | |
31114 | OPENGL_LIBS="-lGL -lGLU" | |
31115 | echo "$as_me:$LINENO: result: yes" >&5 | |
31116 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31117 | else |
31118 | echo "$as_me:$LINENO: result: no" >&5 | |
31119 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31120 | fi |
69120ee4 VZ |
31121 | else |
31122 | echo "$as_me:$LINENO: result: no" >&5 | |
31123 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31124 | fi |
31125 | ||
31126 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31127 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31128 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31129 | ||
0ad5d837 VZ |
31130 | ac_find_libraries= |
31131 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31132 | do |
3eca31dc | 31133 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31134 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31135 | ac_find_libraries=$ac_dir | |
31136 | break 2 | |
31137 | fi | |
31138 | done | |
31139 | done | |
31140 | ||
31141 | if test "$ac_find_libraries" != "" ; then | |
31142 | ||
0ad5d837 | 31143 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31144 | ac_path_to_link="" |
31145 | else | |
0ad5d837 VZ |
31146 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31147 | result=$? | |
31148 | if test $result = 0; then | |
31149 | ac_path_to_link="" | |
31150 | else | |
31151 | ac_path_to_link=" -L$ac_find_libraries" | |
31152 | fi | |
a848cd7e SC |
31153 | fi |
31154 | ||
31155 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31156 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31157 | echo "$as_me:$LINENO: result: yes" >&5 | |
31158 | echo "${ECHO_T}yes" >&6 | |
31159 | else | |
31160 | echo "$as_me:$LINENO: result: no" >&5 | |
31161 | echo "${ECHO_T}no" >&6 | |
31162 | fi | |
31163 | fi | |
31164 | ||
31165 | fi | |
31166 | ||
31167 | ||
31168 | ||
31169 | if test "x$OPENGL_LIBS" = "x"; then | |
31170 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31171 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31172 | { (exit 1); exit 1; }; } | |
31173 | fi | |
31174 | fi | |
31175 | ||
31176 | if test "$wxUSE_OPENGL" = "yes"; then | |
31177 | USE_OPENGL=1 | |
31178 | cat >>confdefs.h <<\_ACEOF | |
31179 | #define wxUSE_OPENGL 1 | |
31180 | _ACEOF | |
31181 | ||
31182 | cat >>confdefs.h <<\_ACEOF | |
31183 | #define wxUSE_GLCANVAS 1 | |
31184 | _ACEOF | |
31185 | ||
31186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31187 | fi | |
31188 | fi | |
31189 | ||
a848cd7e SC |
31190 | |
31191 | if test -n "$TOOLKIT" ; then | |
31192 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31193 | fi | |
31194 | ||
a848cd7e SC |
31195 | |
31196 | ||
31197 | if test "$wxUSE_SHARED" = "yes"; then | |
31198 | case "${host}" in | |
31199 | *-pc-msdosdjgpp ) | |
31200 | wxUSE_SHARED=no | |
31201 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31202 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31203 | ;; | |
31204 | esac | |
31205 | fi | |
31206 | ||
a848cd7e | 31207 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31208 | |
31209 | ||
31210 | found_versioning=no | |
31211 | ||
31212 | ||
31213 | if test $found_versioning = no ; then | |
31214 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31215 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31216 | if test "${wx_cv_version_script+set}" = set; then | |
31217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31218 | else | |
31219 | ||
31220 | echo "VER_1 { *; };" >conftest.sym | |
31221 | echo "int main() { return 0; }" >conftest.cpp | |
31222 | ||
31223 | if { ac_try=' | |
31224 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31225 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31227 | (eval $ac_try) 2>&5 | |
31228 | ac_status=$? | |
31229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31230 | (exit $ac_status); }; } ; then | |
31231 | if test -s conftest.stderr ; then | |
31232 | wx_cv_version_script=no | |
31233 | else | |
31234 | wx_cv_version_script=yes | |
31235 | fi | |
31236 | else | |
31237 | wx_cv_version_script=no | |
31238 | fi | |
e5d4b470 MW |
31239 | |
31240 | if test $wx_cv_version_script = yes | |
31241 | then | |
31242 | echo "struct B { virtual ~B() { } }; \ | |
31243 | struct D : public B { }; \ | |
31244 | void F() { D d; }" > conftest.cpp | |
31245 | ||
31246 | if { ac_try=' | |
31247 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31248 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31250 | (eval $ac_try) 2>&5 | |
31251 | ac_status=$? | |
31252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31253 | (exit $ac_status); }; } && | |
31254 | { ac_try=' | |
31255 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31256 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
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 | then | |
31263 | if { ac_try=' | |
31264 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31265 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31267 | (eval $ac_try) 2>&5 | |
31268 | ac_status=$? | |
31269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31270 | (exit $ac_status); }; } | |
31271 | then | |
31272 | wx_cv_version_script=yes | |
31273 | else | |
31274 | wx_cv_version_script=no | |
31275 | fi | |
31276 | fi | |
31277 | fi | |
31278 | ||
a848cd7e | 31279 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31280 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31281 | |
31282 | fi | |
31283 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31284 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31285 | if test $wx_cv_version_script = yes ; then | |
31286 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31287 | fi | |
31288 | fi | |
31289 | ||
31290 | ||
31291 | case "${host}" in | |
31292 | *-*-linux* | *-*-gnu* ) | |
31293 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31294 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31295 | ;; |
a848cd7e SC |
31296 | |
31297 | *-*-solaris2* ) | |
31298 | if test "$GCC" = yes ; then | |
31299 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
31300 | ||
31301 | saveLdflags="$LDFLAGS" | |
31302 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31303 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31304 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31305 | cat >conftest.$ac_ext <<_ACEOF | |
31306 | /* confdefs.h. */ | |
31307 | _ACEOF | |
31308 | cat confdefs.h >>conftest.$ac_ext | |
31309 | cat >>conftest.$ac_ext <<_ACEOF | |
31310 | /* end confdefs.h. */ | |
31311 | ||
31312 | int | |
31313 | main () | |
31314 | { | |
31315 | ||
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); } && | |
dee1a63f MB |
31329 | { ac_try='test -z "$ac_c_werror_flag" |
31330 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31332 | (eval $ac_try) 2>&5 | |
31333 | ac_status=$? | |
31334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31335 | (exit $ac_status); }; } && | |
31336 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31338 | (eval $ac_try) 2>&5 | |
31339 | ac_status=$? | |
31340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31341 | (exit $ac_status); }; }; then | |
31342 | ||
31343 | echo "$as_me:$LINENO: result: yes" >&5 | |
31344 | echo "${ECHO_T}yes" >&6 | |
31345 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31346 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31347 | |
31348 | else | |
31349 | echo "$as_me: failed program was:" >&5 | |
31350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31351 | ||
31352 | ||
31353 | echo "$as_me:$LINENO: result: no" >&5 | |
31354 | echo "${ECHO_T}no" >&6 | |
31355 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31356 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31357 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31358 | cat >conftest.$ac_ext <<_ACEOF | |
31359 | /* confdefs.h. */ | |
31360 | _ACEOF | |
31361 | cat confdefs.h >>conftest.$ac_ext | |
31362 | cat >>conftest.$ac_ext <<_ACEOF | |
31363 | /* end confdefs.h. */ | |
31364 | ||
31365 | int | |
31366 | main () | |
31367 | { | |
31368 | ||
31369 | ; | |
31370 | return 0; | |
31371 | } | |
31372 | _ACEOF | |
31373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31375 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31376 | ac_status=$? |
ac1cb8d3 VS |
31377 | grep -v '^ *+' conftest.er1 >conftest.err |
31378 | rm -f conftest.er1 | |
31379 | cat conftest.err >&5 | |
a848cd7e SC |
31380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31381 | (exit $ac_status); } && | |
dee1a63f MB |
31382 | { ac_try='test -z "$ac_c_werror_flag" |
31383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31385 | (eval $ac_try) 2>&5 | |
31386 | ac_status=$? | |
31387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31388 | (exit $ac_status); }; } && | |
31389 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31391 | (eval $ac_try) 2>&5 | |
31392 | ac_status=$? | |
31393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31394 | (exit $ac_status); }; }; then | |
31395 | ||
ffa0583f | 31396 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31397 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31398 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31399 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31400 | ||
a848cd7e SC |
31401 | else |
31402 | echo "$as_me: failed program was:" >&5 | |
31403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31404 | ||
31405 | ||
31406 | echo "$as_me:$LINENO: result: no" >&5 | |
31407 | echo "${ECHO_T}no" >&6 | |
31408 | ||
31409 | fi | |
ac1cb8d3 VS |
31410 | rm -f conftest.err conftest.$ac_objext \ |
31411 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31412 | |
31413 | fi | |
ac1cb8d3 VS |
31414 | rm -f conftest.err conftest.$ac_objext \ |
31415 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31416 | LDFLAGS="$saveLdflags" |
31417 | else | |
a848cd7e | 31418 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31419 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31420 | fi |
31421 | ;; | |
31422 | ||
cfda0ea8 | 31423 | *-*-darwin* ) |
0caebc27 MW |
31424 | install_name_tool=`which install_name_tool` |
31425 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31426 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31427 | cat <<EOF >change-install-names | |
a848cd7e SC |
31428 | #!/bin/sh |
31429 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31430 | inst_cmd="install_name_tool " | |
31431 | for i in \${libnames} ; do | |
31432 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31433 | done | |
31434 | \${inst_cmd} \${3} | |
31435 | EOF | |
0caebc27 MW |
31436 | chmod +x change-install-names |
31437 | fi | |
a848cd7e SC |
31438 | ;; |
31439 | ||
31440 | *-*-cygwin* | *-*-mingw32* ) | |
31441 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
31442 | ;; | |
31443 | ||
81f90336 MW |
31444 | *-*-hpux* ) |
31445 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31446 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
31447 | ;; | |
31448 | ||
a848cd7e | 31449 | esac |
ceec2216 | 31450 | |
ffa0583f RL |
31451 | if test $wxUSE_RPATH = "no"; then |
31452 | SAMPLES_RPATH_FLAG='' | |
31453 | SAMPLES_RPATH_POSTLINK='' | |
31454 | WXCONFIG_RPATH='' | |
31455 | fi | |
31456 | ||
31457 | SHARED=1 | |
31458 | ||
31459 | else | |
31460 | ||
ceec2216 RL |
31461 | config_linkage_component="-static" |
31462 | SHARED=0 | |
ffa0583f | 31463 | |
ceec2216 | 31464 | fi |
a848cd7e | 31465 | |
a848cd7e | 31466 | |
ceec2216 RL |
31467 | UNICODE=0 |
31468 | lib_unicode_suffix= | |
31469 | WX_CHARTYPE="ansi" | |
31470 | if test "$wxUSE_UNICODE" = "yes"; then | |
31471 | lib_unicode_suffix=u | |
31472 | WX_CHARTYPE="unicode" | |
31473 | UNICODE=1 | |
a848cd7e SC |
31474 | fi |
31475 | ||
ceec2216 RL |
31476 | lib_debug_suffix= |
31477 | WX_DEBUGTYPE="release" | |
31478 | DEBUG_FLAG=0 | |
31479 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31480 | lib_debug_suffix=d | |
31481 | WX_DEBUGTYPE="debug" | |
31482 | DEBUG_FLAG=1 | |
31483 | fi | |
a848cd7e | 31484 | |
ceec2216 RL |
31485 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31486 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31487 | |
ceec2216 RL |
31488 | DEBUG_INFO=0 |
31489 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31490 | DEBUG_INFO=1 | |
31491 | fi | |
a848cd7e | 31492 | |
ceec2216 | 31493 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31494 | |
ceec2216 | 31495 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31496 | |
ceec2216 | 31497 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31498 | |
ceec2216 RL |
31499 | if test "$cross_compiling" = "yes"; then |
31500 | HOST_SUFFIX="-$host_alias" | |
31501 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31502 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31503 | fi |
31504 | ||
dd21ced8 | 31505 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31506 | if test "${TOOLKIT_DIR}" = "os2"; then |
31507 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31508 | else | |
31509 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31510 | fi | |
ceec2216 RL |
31511 | |
31512 | ||
31513 | ||
1d1af5ea DE |
31514 | if test "$wxUSE_COCOA" = 1; then |
31515 | ||
31516 | ||
31517 | ac_ext=c | |
31518 | ac_cpp='$CPP $CPPFLAGS' | |
31519 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31520 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31521 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31522 | ||
31523 | ac_ext=m | |
31524 | ||
31525 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31526 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31527 | cat >conftest.$ac_ext <<_ACEOF | |
31528 | /* confdefs.h. */ | |
31529 | _ACEOF | |
31530 | cat confdefs.h >>conftest.$ac_ext | |
31531 | cat >>conftest.$ac_ext <<_ACEOF | |
31532 | /* end confdefs.h. */ | |
31533 | #include <AppKit/NSEvent.h> | |
31534 | #include <CoreFoundation/CoreFoundation.h> | |
31535 | ||
31536 | int | |
31537 | main () | |
31538 | { | |
31539 | ||
31540 | ; | |
31541 | return 0; | |
31542 | } | |
31543 | _ACEOF | |
31544 | rm -f conftest.$ac_objext | |
31545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31546 | (eval $ac_compile) 2>conftest.er1 | |
31547 | ac_status=$? | |
31548 | grep -v '^ *+' conftest.er1 >conftest.err | |
31549 | rm -f conftest.er1 | |
31550 | cat conftest.err >&5 | |
31551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31552 | (exit $ac_status); } && | |
dee1a63f MB |
31553 | { ac_try='test -z "$ac_c_werror_flag" |
31554 | || test ! -s conftest.err' | |
1d1af5ea DE |
31555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31556 | (eval $ac_try) 2>&5 | |
31557 | ac_status=$? | |
31558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31559 | (exit $ac_status); }; } && | |
31560 | { ac_try='test -s conftest.$ac_objext' | |
31561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31562 | (eval $ac_try) 2>&5 | |
31563 | ac_status=$? | |
31564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31565 | (exit $ac_status); }; }; then | |
31566 | echo "$as_me:$LINENO: result: no" >&5 | |
31567 | echo "${ECHO_T}no" >&6 | |
31568 | else | |
31569 | echo "$as_me: failed program was:" >&5 | |
31570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31571 | ||
31572 | echo "$as_me:$LINENO: result: yes" >&5 | |
31573 | echo "${ECHO_T}yes" >&6 | |
31574 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31575 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31576 | cat >conftest.$ac_ext <<_ACEOF | |
31577 | /* confdefs.h. */ | |
31578 | _ACEOF | |
31579 | cat confdefs.h >>conftest.$ac_ext | |
31580 | cat >>conftest.$ac_ext <<_ACEOF | |
31581 | /* end confdefs.h. */ | |
31582 | #define __Point__ 1 | |
31583 | #include <AppKit/NSEvent.h> | |
31584 | #include <CoreFoundation/CoreFoundation.h> | |
31585 | ||
31586 | int | |
31587 | main () | |
31588 | { | |
31589 | ||
31590 | ; | |
31591 | return 0; | |
31592 | } | |
31593 | _ACEOF | |
31594 | rm -f conftest.$ac_objext | |
31595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31596 | (eval $ac_compile) 2>conftest.er1 | |
31597 | ac_status=$? | |
31598 | grep -v '^ *+' conftest.er1 >conftest.err | |
31599 | rm -f conftest.er1 | |
31600 | cat conftest.err >&5 | |
31601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31602 | (exit $ac_status); } && | |
dee1a63f MB |
31603 | { ac_try='test -z "$ac_c_werror_flag" |
31604 | || test ! -s conftest.err' | |
1d1af5ea DE |
31605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31606 | (eval $ac_try) 2>&5 | |
31607 | ac_status=$? | |
31608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31609 | (exit $ac_status); }; } && | |
31610 | { ac_try='test -s conftest.$ac_objext' | |
31611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31612 | (eval $ac_try) 2>&5 | |
31613 | ac_status=$? | |
31614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31615 | (exit $ac_status); }; }; then | |
31616 | echo "$as_me:$LINENO: result: yes" >&5 | |
31617 | echo "${ECHO_T}yes" >&6 | |
31618 | cat >>confdefs.h <<\_ACEOF | |
31619 | #define __Point__ 1 | |
31620 | _ACEOF | |
31621 | ||
31622 | ||
31623 | else | |
31624 | echo "$as_me: failed program was:" >&5 | |
31625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31626 | ||
31627 | { { echo "$as_me:$LINENO: error: no | |
31628 | See \`config.log' for more details." >&5 | |
31629 | echo "$as_me: error: no | |
31630 | See \`config.log' for more details." >&2;} | |
31631 | { (exit 1); exit 1; }; } | |
31632 | ||
31633 | fi | |
31634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31635 | ||
31636 | fi | |
31637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31638 | ac_ext=c | |
31639 | ac_cpp='$CPP $CPPFLAGS' | |
31640 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31641 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31642 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31643 | ||
31644 | fi | |
31645 | ||
a848cd7e | 31646 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
31647 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
31648 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 31649 | |
a848cd7e | 31650 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
31651 | |
31652 | # Extract the first word of "Rez", so it can be a program name with args. | |
31653 | set dummy Rez; ac_word=$2 | |
31654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31656 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
31657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31658 | else | |
31659 | if test -n "$RESCOMP"; then | |
31660 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
31661 | else | |
31662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31663 | for as_dir in $PATH | |
31664 | do | |
31665 | IFS=$as_save_IFS | |
31666 | test -z "$as_dir" && as_dir=. | |
31667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31669 | ac_cv_prog_RESCOMP="Rez" | |
31670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31671 | break 2 | |
31672 | fi | |
31673 | done | |
31674 | done | |
31675 | ||
31676 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
31677 | fi | |
31678 | fi | |
31679 | RESCOMP=$ac_cv_prog_RESCOMP | |
31680 | if test -n "$RESCOMP"; then | |
31681 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
31682 | echo "${ECHO_T}$RESCOMP" >&6 | |
31683 | else | |
31684 | echo "$as_me:$LINENO: result: no" >&5 | |
31685 | echo "${ECHO_T}no" >&6 | |
31686 | fi | |
31687 | ||
31688 | # Extract the first word of "DeRez", so it can be a program name with args. | |
31689 | set dummy DeRez; ac_word=$2 | |
31690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31692 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
31693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31694 | else | |
31695 | if test -n "$DEREZ"; then | |
31696 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
31697 | else | |
31698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31699 | for as_dir in $PATH | |
31700 | do | |
31701 | IFS=$as_save_IFS | |
31702 | test -z "$as_dir" && as_dir=. | |
31703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31705 | ac_cv_prog_DEREZ="DeRez" | |
31706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31707 | break 2 | |
31708 | fi | |
31709 | done | |
31710 | done | |
31711 | ||
31712 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
31713 | fi | |
31714 | fi | |
31715 | DEREZ=$ac_cv_prog_DEREZ | |
31716 | if test -n "$DEREZ"; then | |
31717 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
31718 | echo "${ECHO_T}$DEREZ" >&6 | |
31719 | else | |
31720 | echo "$as_me:$LINENO: result: no" >&5 | |
31721 | echo "${ECHO_T}no" >&6 | |
31722 | fi | |
31723 | ||
31724 | # Extract the first word of "SetFile", so it can be a program name with args. | |
31725 | set dummy SetFile; ac_word=$2 | |
31726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31728 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
31729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31730 | else | |
31731 | if test -n "$SETFILE"; then | |
31732 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
31733 | else | |
31734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31735 | for as_dir in $PATH | |
31736 | do | |
31737 | IFS=$as_save_IFS | |
31738 | test -z "$as_dir" && as_dir=. | |
31739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31741 | ac_cv_prog_SETFILE="SetFile" | |
31742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31743 | break 2 | |
31744 | fi | |
31745 | done | |
31746 | done | |
31747 | ||
31748 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
31749 | fi | |
31750 | fi | |
31751 | SETFILE=$ac_cv_prog_SETFILE | |
31752 | if test -n "$SETFILE"; then | |
31753 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
31754 | echo "${ECHO_T}$SETFILE" >&6 | |
31755 | else | |
31756 | echo "$as_me:$LINENO: result: no" >&5 | |
31757 | echo "${ECHO_T}no" >&6 | |
31758 | fi | |
31759 | ||
31760 | ||
31761 | MACSETFILE="\$(SETFILE)" | |
31762 | ||
31763 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 31764 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 31765 | |
1a79f136 | 31766 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
31767 | else |
31768 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
31769 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
31770 | fi | |
31771 | else | |
ffa0583f RL |
31772 | MACSETFILE="@true" |
31773 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
31774 | |
31775 | if test "$wxUSE_PM" = 1; then | |
31776 | MACRESCOMP="emxbind -ep" | |
31777 | else | |
ffa0583f | 31778 | MACRESCOMP="@true" |
a848cd7e SC |
31779 | fi |
31780 | fi | |
31781 | ||
31782 | ||
31783 | ||
31784 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
31785 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
31786 | if test "${ac_cv_type_mode_t+set}" = set; then | |
31787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31788 | else | |
31789 | cat >conftest.$ac_ext <<_ACEOF | |
31790 | /* confdefs.h. */ | |
31791 | _ACEOF | |
31792 | cat confdefs.h >>conftest.$ac_ext | |
31793 | cat >>conftest.$ac_ext <<_ACEOF | |
31794 | /* end confdefs.h. */ | |
31795 | $ac_includes_default | |
31796 | int | |
31797 | main () | |
31798 | { | |
31799 | if ((mode_t *) 0) | |
31800 | return 0; | |
31801 | if (sizeof (mode_t)) | |
31802 | return 0; | |
31803 | ; | |
31804 | return 0; | |
31805 | } | |
31806 | _ACEOF | |
31807 | rm -f conftest.$ac_objext | |
31808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31809 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31810 | ac_status=$? |
ac1cb8d3 VS |
31811 | grep -v '^ *+' conftest.er1 >conftest.err |
31812 | rm -f conftest.er1 | |
31813 | cat conftest.err >&5 | |
a848cd7e SC |
31814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31815 | (exit $ac_status); } && | |
dee1a63f MB |
31816 | { ac_try='test -z "$ac_c_werror_flag" |
31817 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31819 | (eval $ac_try) 2>&5 | |
31820 | ac_status=$? | |
31821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31822 | (exit $ac_status); }; } && | |
31823 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
31829 | ac_cv_type_mode_t=yes | |
31830 | else | |
31831 | echo "$as_me: failed program was:" >&5 | |
31832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31833 | ||
31834 | ac_cv_type_mode_t=no | |
31835 | fi | |
ac1cb8d3 | 31836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31837 | fi |
31838 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
31839 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
31840 | if test $ac_cv_type_mode_t = yes; then | |
31841 | : | |
31842 | else | |
31843 | ||
31844 | cat >>confdefs.h <<_ACEOF | |
31845 | #define mode_t int | |
31846 | _ACEOF | |
31847 | ||
31848 | fi | |
31849 | ||
31850 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
31851 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
31852 | if test "${ac_cv_type_off_t+set}" = set; then | |
31853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31854 | else | |
31855 | cat >conftest.$ac_ext <<_ACEOF | |
31856 | /* confdefs.h. */ | |
31857 | _ACEOF | |
31858 | cat confdefs.h >>conftest.$ac_ext | |
31859 | cat >>conftest.$ac_ext <<_ACEOF | |
31860 | /* end confdefs.h. */ | |
31861 | $ac_includes_default | |
31862 | int | |
31863 | main () | |
31864 | { | |
31865 | if ((off_t *) 0) | |
31866 | return 0; | |
31867 | if (sizeof (off_t)) | |
31868 | return 0; | |
31869 | ; | |
31870 | return 0; | |
31871 | } | |
31872 | _ACEOF | |
31873 | rm -f conftest.$ac_objext | |
31874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31876 | ac_status=$? |
ac1cb8d3 VS |
31877 | grep -v '^ *+' conftest.er1 >conftest.err |
31878 | rm -f conftest.er1 | |
31879 | cat conftest.err >&5 | |
a848cd7e SC |
31880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31881 | (exit $ac_status); } && | |
dee1a63f MB |
31882 | { ac_try='test -z "$ac_c_werror_flag" |
31883 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31885 | (eval $ac_try) 2>&5 | |
31886 | ac_status=$? | |
31887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31888 | (exit $ac_status); }; } && | |
31889 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31891 | (eval $ac_try) 2>&5 | |
31892 | ac_status=$? | |
31893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31894 | (exit $ac_status); }; }; then | |
31895 | ac_cv_type_off_t=yes | |
31896 | else | |
31897 | echo "$as_me: failed program was:" >&5 | |
31898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31899 | ||
31900 | ac_cv_type_off_t=no | |
31901 | fi | |
ac1cb8d3 | 31902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31903 | fi |
31904 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
31905 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
31906 | if test $ac_cv_type_off_t = yes; then | |
31907 | : | |
31908 | else | |
31909 | ||
31910 | cat >>confdefs.h <<_ACEOF | |
31911 | #define off_t long | |
31912 | _ACEOF | |
31913 | ||
31914 | fi | |
31915 | ||
31916 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
31917 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
31918 | if test "${ac_cv_type_pid_t+set}" = set; then | |
31919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31920 | else | |
31921 | cat >conftest.$ac_ext <<_ACEOF | |
31922 | /* confdefs.h. */ | |
31923 | _ACEOF | |
31924 | cat confdefs.h >>conftest.$ac_ext | |
31925 | cat >>conftest.$ac_ext <<_ACEOF | |
31926 | /* end confdefs.h. */ | |
31927 | $ac_includes_default | |
31928 | int | |
31929 | main () | |
31930 | { | |
31931 | if ((pid_t *) 0) | |
31932 | return 0; | |
31933 | if (sizeof (pid_t)) | |
31934 | return 0; | |
31935 | ; | |
31936 | return 0; | |
31937 | } | |
31938 | _ACEOF | |
31939 | rm -f conftest.$ac_objext | |
31940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31941 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31942 | ac_status=$? |
ac1cb8d3 VS |
31943 | grep -v '^ *+' conftest.er1 >conftest.err |
31944 | rm -f conftest.er1 | |
31945 | cat conftest.err >&5 | |
a848cd7e SC |
31946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31947 | (exit $ac_status); } && | |
dee1a63f MB |
31948 | { ac_try='test -z "$ac_c_werror_flag" |
31949 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31951 | (eval $ac_try) 2>&5 | |
31952 | ac_status=$? | |
31953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31954 | (exit $ac_status); }; } && | |
31955 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31957 | (eval $ac_try) 2>&5 | |
31958 | ac_status=$? | |
31959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31960 | (exit $ac_status); }; }; then | |
31961 | ac_cv_type_pid_t=yes | |
31962 | else | |
31963 | echo "$as_me: failed program was:" >&5 | |
31964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31965 | ||
31966 | ac_cv_type_pid_t=no | |
31967 | fi | |
ac1cb8d3 | 31968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31969 | fi |
31970 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
31971 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
31972 | if test $ac_cv_type_pid_t = yes; then | |
31973 | : | |
31974 | else | |
31975 | ||
31976 | cat >>confdefs.h <<_ACEOF | |
31977 | #define pid_t int | |
31978 | _ACEOF | |
31979 | ||
31980 | fi | |
31981 | ||
31982 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
31983 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
31984 | if test "${ac_cv_type_size_t+set}" = set; then | |
31985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31986 | else | |
31987 | cat >conftest.$ac_ext <<_ACEOF | |
31988 | /* confdefs.h. */ | |
31989 | _ACEOF | |
31990 | cat confdefs.h >>conftest.$ac_ext | |
31991 | cat >>conftest.$ac_ext <<_ACEOF | |
31992 | /* end confdefs.h. */ | |
31993 | $ac_includes_default | |
31994 | int | |
31995 | main () | |
31996 | { | |
31997 | if ((size_t *) 0) | |
31998 | return 0; | |
31999 | if (sizeof (size_t)) | |
32000 | return 0; | |
32001 | ; | |
32002 | return 0; | |
32003 | } | |
32004 | _ACEOF | |
32005 | rm -f conftest.$ac_objext | |
32006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32008 | ac_status=$? |
ac1cb8d3 VS |
32009 | grep -v '^ *+' conftest.er1 >conftest.err |
32010 | rm -f conftest.er1 | |
32011 | cat conftest.err >&5 | |
a848cd7e SC |
32012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32013 | (exit $ac_status); } && | |
dee1a63f MB |
32014 | { ac_try='test -z "$ac_c_werror_flag" |
32015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32017 | (eval $ac_try) 2>&5 | |
32018 | ac_status=$? | |
32019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32020 | (exit $ac_status); }; } && | |
32021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32023 | (eval $ac_try) 2>&5 | |
32024 | ac_status=$? | |
32025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32026 | (exit $ac_status); }; }; then | |
32027 | ac_cv_type_size_t=yes | |
32028 | else | |
32029 | echo "$as_me: failed program was:" >&5 | |
32030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32031 | ||
32032 | ac_cv_type_size_t=no | |
32033 | fi | |
ac1cb8d3 | 32034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32035 | fi |
32036 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32037 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32038 | if test $ac_cv_type_size_t = yes; then | |
32039 | : | |
32040 | else | |
32041 | ||
32042 | cat >>confdefs.h <<_ACEOF | |
32043 | #define size_t unsigned | |
32044 | _ACEOF | |
32045 | ||
32046 | fi | |
32047 | ||
32048 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32049 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32050 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32052 | else | |
32053 | cat >conftest.$ac_ext <<_ACEOF | |
32054 | /* confdefs.h. */ | |
32055 | _ACEOF | |
32056 | cat confdefs.h >>conftest.$ac_ext | |
32057 | cat >>conftest.$ac_ext <<_ACEOF | |
32058 | /* end confdefs.h. */ | |
32059 | #include <sys/types.h> | |
32060 | ||
32061 | _ACEOF | |
32062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32063 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32064 | ac_cv_type_uid_t=yes | |
32065 | else | |
32066 | ac_cv_type_uid_t=no | |
32067 | fi | |
32068 | rm -f conftest* | |
32069 | ||
32070 | fi | |
32071 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32072 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32073 | if test $ac_cv_type_uid_t = no; then | |
32074 | ||
32075 | cat >>confdefs.h <<\_ACEOF | |
32076 | #define uid_t int | |
32077 | _ACEOF | |
32078 | ||
32079 | ||
32080 | cat >>confdefs.h <<\_ACEOF | |
32081 | #define gid_t int | |
32082 | _ACEOF | |
32083 | ||
32084 | fi | |
32085 | ||
32086 | ||
d51253e8 RL |
32087 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32088 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32089 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32091 | else | |
32092 | cat >conftest.$ac_ext <<_ACEOF | |
32093 | /* confdefs.h. */ | |
32094 | _ACEOF | |
32095 | cat confdefs.h >>conftest.$ac_ext | |
32096 | cat >>conftest.$ac_ext <<_ACEOF | |
32097 | /* end confdefs.h. */ | |
32098 | $ac_includes_default | |
32099 | int | |
32100 | main () | |
32101 | { | |
32102 | if ((ssize_t *) 0) | |
32103 | return 0; | |
32104 | if (sizeof (ssize_t)) | |
32105 | return 0; | |
32106 | ; | |
32107 | return 0; | |
32108 | } | |
32109 | _ACEOF | |
32110 | rm -f conftest.$ac_objext | |
32111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32112 | (eval $ac_compile) 2>conftest.er1 | |
32113 | ac_status=$? | |
32114 | grep -v '^ *+' conftest.er1 >conftest.err | |
32115 | rm -f conftest.er1 | |
32116 | cat conftest.err >&5 | |
32117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32118 | (exit $ac_status); } && | |
dee1a63f MB |
32119 | { ac_try='test -z "$ac_c_werror_flag" |
32120 | || test ! -s conftest.err' | |
d51253e8 RL |
32121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32122 | (eval $ac_try) 2>&5 | |
32123 | ac_status=$? | |
32124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32125 | (exit $ac_status); }; } && | |
32126 | { ac_try='test -s conftest.$ac_objext' | |
32127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32128 | (eval $ac_try) 2>&5 | |
32129 | ac_status=$? | |
32130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32131 | (exit $ac_status); }; }; then | |
32132 | ac_cv_type_ssize_t=yes | |
32133 | else | |
32134 | echo "$as_me: failed program was:" >&5 | |
32135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32136 | ||
32137 | ac_cv_type_ssize_t=no | |
32138 | fi | |
32139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32140 | fi | |
32141 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32142 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32143 | if test $ac_cv_type_ssize_t = yes; then | |
32144 | ||
32145 | cat >>confdefs.h <<_ACEOF | |
32146 | #define HAVE_SSIZE_T 1 | |
32147 | _ACEOF | |
32148 | ||
32149 | ||
32150 | fi | |
32151 | ||
32152 | ||
a848cd7e SC |
32153 | |
32154 | ||
32155 | ac_ext=cc | |
32156 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32157 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32158 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32159 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32160 | ||
32161 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32162 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32163 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32165 | else | |
32166 | ||
32167 | cat >conftest.$ac_ext <<_ACEOF | |
32168 | /* confdefs.h. */ | |
32169 | _ACEOF | |
32170 | cat confdefs.h >>conftest.$ac_ext | |
32171 | cat >>conftest.$ac_ext <<_ACEOF | |
32172 | /* end confdefs.h. */ | |
32173 | #include <stddef.h> | |
32174 | int | |
32175 | main () | |
32176 | { | |
32177 | ||
32178 | return 0; } | |
32179 | ||
32180 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32181 | ||
32182 | int bar() { | |
32183 | ||
32184 | ; | |
32185 | return 0; | |
32186 | } | |
32187 | _ACEOF | |
32188 | rm -f conftest.$ac_objext | |
32189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32190 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32191 | ac_status=$? |
ac1cb8d3 VS |
32192 | grep -v '^ *+' conftest.er1 >conftest.err |
32193 | rm -f conftest.er1 | |
32194 | cat conftest.err >&5 | |
a848cd7e SC |
32195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32196 | (exit $ac_status); } && | |
dee1a63f MB |
32197 | { ac_try='test -z "$ac_cxx_werror_flag" |
32198 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32200 | (eval $ac_try) 2>&5 | |
32201 | ac_status=$? | |
32202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32203 | (exit $ac_status); }; } && | |
32204 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32206 | (eval $ac_try) 2>&5 | |
32207 | ac_status=$? | |
32208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32209 | (exit $ac_status); }; }; then | |
32210 | wx_cv_size_t_is_uint=no | |
32211 | else | |
32212 | echo "$as_me: failed program was:" >&5 | |
32213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32214 | ||
32215 | wx_cv_size_t_is_uint=yes | |
32216 | ||
32217 | fi | |
ac1cb8d3 | 32218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32219 | |
32220 | ||
32221 | fi | |
32222 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32223 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32224 | ||
32225 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32226 | cat >>confdefs.h <<\_ACEOF | |
32227 | #define wxSIZE_T_IS_UINT 1 | |
32228 | _ACEOF | |
32229 | ||
32230 | else | |
32231 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32232 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32233 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32235 | else | |
32236 | cat >conftest.$ac_ext <<_ACEOF | |
32237 | /* confdefs.h. */ | |
32238 | _ACEOF | |
32239 | cat confdefs.h >>conftest.$ac_ext | |
32240 | cat >>conftest.$ac_ext <<_ACEOF | |
32241 | /* end confdefs.h. */ | |
32242 | #include <stddef.h> | |
32243 | int | |
32244 | main () | |
32245 | { | |
32246 | ||
32247 | return 0; } | |
32248 | ||
32249 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32250 | ||
32251 | int bar() { | |
32252 | ||
32253 | ; | |
32254 | return 0; | |
32255 | } | |
32256 | _ACEOF | |
32257 | rm -f conftest.$ac_objext | |
32258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32259 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32260 | ac_status=$? |
ac1cb8d3 VS |
32261 | grep -v '^ *+' conftest.er1 >conftest.err |
32262 | rm -f conftest.er1 | |
32263 | cat conftest.err >&5 | |
a848cd7e SC |
32264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32265 | (exit $ac_status); } && | |
dee1a63f MB |
32266 | { ac_try='test -z "$ac_cxx_werror_flag" |
32267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32269 | (eval $ac_try) 2>&5 | |
32270 | ac_status=$? | |
32271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32272 | (exit $ac_status); }; } && | |
32273 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32275 | (eval $ac_try) 2>&5 | |
32276 | ac_status=$? | |
32277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32278 | (exit $ac_status); }; }; then | |
32279 | wx_cv_size_t_is_ulong=no | |
32280 | else | |
32281 | echo "$as_me: failed program was:" >&5 | |
32282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32283 | ||
32284 | wx_cv_size_t_is_ulong=yes | |
32285 | ||
32286 | fi | |
ac1cb8d3 | 32287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32288 | |
32289 | fi | |
32290 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32291 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32292 | ||
32293 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32294 | cat >>confdefs.h <<\_ACEOF | |
32295 | #define wxSIZE_T_IS_ULONG 1 | |
32296 | _ACEOF | |
32297 | ||
32298 | fi | |
32299 | fi | |
32300 | ||
32301 | ac_ext=c | |
32302 | ac_cpp='$CPP $CPPFLAGS' | |
32303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32306 | ||
32307 | ||
32308 | ||
32309 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32310 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32311 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32313 | else | |
32314 | ||
32315 | cat >conftest.$ac_ext <<_ACEOF | |
32316 | /* confdefs.h. */ | |
32317 | _ACEOF | |
32318 | cat confdefs.h >>conftest.$ac_ext | |
32319 | cat >>conftest.$ac_ext <<_ACEOF | |
32320 | /* end confdefs.h. */ | |
32321 | #include <pwd.h> | |
32322 | int | |
32323 | main () | |
32324 | { | |
32325 | ||
32326 | char *p; | |
32327 | struct passwd *pw; | |
32328 | p = pw->pw_gecos; | |
32329 | ||
32330 | ; | |
32331 | return 0; | |
32332 | } | |
32333 | _ACEOF | |
32334 | rm -f conftest.$ac_objext | |
32335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32337 | ac_status=$? |
ac1cb8d3 VS |
32338 | grep -v '^ *+' conftest.er1 >conftest.err |
32339 | rm -f conftest.er1 | |
32340 | cat conftest.err >&5 | |
a848cd7e SC |
32341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32342 | (exit $ac_status); } && | |
dee1a63f MB |
32343 | { ac_try='test -z "$ac_c_werror_flag" |
32344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32346 | (eval $ac_try) 2>&5 | |
32347 | ac_status=$? | |
32348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32349 | (exit $ac_status); }; } && | |
32350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32352 | (eval $ac_try) 2>&5 | |
32353 | ac_status=$? | |
32354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32355 | (exit $ac_status); }; }; then | |
32356 | ||
32357 | wx_cv_struct_pw_gecos=yes | |
32358 | ||
32359 | else | |
32360 | echo "$as_me: failed program was:" >&5 | |
32361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32362 | ||
32363 | ||
32364 | wx_cv_struct_pw_gecos=no | |
32365 | ||
32366 | ||
32367 | fi | |
ac1cb8d3 | 32368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32369 | |
32370 | ||
32371 | fi | |
32372 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32373 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32374 | ||
32375 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32376 | cat >>confdefs.h <<\_ACEOF | |
32377 | #define HAVE_PW_GECOS 1 | |
32378 | _ACEOF | |
32379 | ||
32380 | fi | |
32381 | ||
32382 | ||
47a7e797 | 32383 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32384 | cat >>confdefs.h <<\_ACEOF |
32385 | #define wxUSE_WCHAR_T 1 | |
32386 | _ACEOF | |
32387 | ||
32388 | ||
32389 | WCSLEN_FOUND=0 | |
32390 | WCHAR_LINK= | |
32391 | ||
32392 | for ac_func in wcslen | |
32393 | do | |
32394 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32395 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32396 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32397 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32399 | else | |
32400 | cat >conftest.$ac_ext <<_ACEOF | |
32401 | /* confdefs.h. */ | |
32402 | _ACEOF | |
32403 | cat confdefs.h >>conftest.$ac_ext | |
32404 | cat >>conftest.$ac_ext <<_ACEOF | |
32405 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32406 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32407 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32408 | #define $ac_func innocuous_$ac_func | |
32409 | ||
a848cd7e SC |
32410 | /* System header to define __stub macros and hopefully few prototypes, |
32411 | which can conflict with char $ac_func (); below. | |
32412 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32413 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32414 | |
a848cd7e SC |
32415 | #ifdef __STDC__ |
32416 | # include <limits.h> | |
32417 | #else | |
32418 | # include <assert.h> | |
32419 | #endif | |
ac1cb8d3 VS |
32420 | |
32421 | #undef $ac_func | |
32422 | ||
a848cd7e SC |
32423 | /* Override any gcc2 internal prototype to avoid an error. */ |
32424 | #ifdef __cplusplus | |
32425 | extern "C" | |
32426 | { | |
32427 | #endif | |
32428 | /* We use char because int might match the return type of a gcc2 | |
32429 | builtin and then its argument prototype would still apply. */ | |
32430 | char $ac_func (); | |
32431 | /* The GNU C library defines this for functions which it implements | |
32432 | to always fail with ENOSYS. Some functions are actually named | |
32433 | something starting with __ and the normal name is an alias. */ | |
32434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32435 | choke me | |
32436 | #else | |
32437 | char (*f) () = $ac_func; | |
32438 | #endif | |
32439 | #ifdef __cplusplus | |
32440 | } | |
32441 | #endif | |
32442 | ||
32443 | int | |
32444 | main () | |
32445 | { | |
32446 | return f != $ac_func; | |
32447 | ; | |
32448 | return 0; | |
32449 | } | |
32450 | _ACEOF | |
32451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32453 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32454 | ac_status=$? |
ac1cb8d3 VS |
32455 | grep -v '^ *+' conftest.er1 >conftest.err |
32456 | rm -f conftest.er1 | |
32457 | cat conftest.err >&5 | |
a848cd7e SC |
32458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32459 | (exit $ac_status); } && | |
dee1a63f MB |
32460 | { ac_try='test -z "$ac_c_werror_flag" |
32461 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32463 | (eval $ac_try) 2>&5 | |
32464 | ac_status=$? | |
32465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32466 | (exit $ac_status); }; } && | |
32467 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32469 | (eval $ac_try) 2>&5 | |
32470 | ac_status=$? | |
32471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32472 | (exit $ac_status); }; }; then | |
32473 | eval "$as_ac_var=yes" | |
32474 | else | |
32475 | echo "$as_me: failed program was:" >&5 | |
32476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32477 | ||
32478 | eval "$as_ac_var=no" | |
32479 | fi | |
ac1cb8d3 VS |
32480 | rm -f conftest.err conftest.$ac_objext \ |
32481 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32482 | fi |
32483 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32484 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32485 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32486 | cat >>confdefs.h <<_ACEOF | |
32487 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32488 | _ACEOF | |
32489 | WCSLEN_FOUND=1 | |
32490 | fi | |
32491 | done | |
32492 | ||
32493 | ||
32494 | if test "$WCSLEN_FOUND" = 0; then | |
32495 | if test "$TOOLKIT" = "MSW"; then | |
32496 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32497 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32498 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32500 | else | |
32501 | ac_check_lib_save_LIBS=$LIBS | |
32502 | LIBS="-lmsvcrt $LIBS" | |
32503 | cat >conftest.$ac_ext <<_ACEOF | |
32504 | /* confdefs.h. */ | |
32505 | _ACEOF | |
32506 | cat confdefs.h >>conftest.$ac_ext | |
32507 | cat >>conftest.$ac_ext <<_ACEOF | |
32508 | /* end confdefs.h. */ | |
32509 | ||
32510 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32511 | #ifdef __cplusplus | |
32512 | extern "C" | |
32513 | #endif | |
32514 | /* We use char because int might match the return type of a gcc2 | |
32515 | builtin and then its argument prototype would still apply. */ | |
32516 | char wcslen (); | |
32517 | int | |
32518 | main () | |
32519 | { | |
32520 | wcslen (); | |
32521 | ; | |
32522 | return 0; | |
32523 | } | |
32524 | _ACEOF | |
32525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32527 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32528 | ac_status=$? |
ac1cb8d3 VS |
32529 | grep -v '^ *+' conftest.er1 >conftest.err |
32530 | rm -f conftest.er1 | |
32531 | cat conftest.err >&5 | |
a848cd7e SC |
32532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32533 | (exit $ac_status); } && | |
dee1a63f MB |
32534 | { ac_try='test -z "$ac_c_werror_flag" |
32535 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32537 | (eval $ac_try) 2>&5 | |
32538 | ac_status=$? | |
32539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32540 | (exit $ac_status); }; } && | |
32541 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32543 | (eval $ac_try) 2>&5 | |
32544 | ac_status=$? | |
32545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32546 | (exit $ac_status); }; }; then | |
32547 | ac_cv_lib_msvcrt_wcslen=yes | |
32548 | else | |
32549 | echo "$as_me: failed program was:" >&5 | |
32550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32551 | ||
32552 | ac_cv_lib_msvcrt_wcslen=no | |
32553 | fi | |
ac1cb8d3 VS |
32554 | rm -f conftest.err conftest.$ac_objext \ |
32555 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32556 | LIBS=$ac_check_lib_save_LIBS |
32557 | fi | |
32558 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32559 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32560 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32561 | WCHAR_OK=1 | |
32562 | fi | |
32563 | ||
32564 | else | |
32565 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32566 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32567 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32569 | else | |
32570 | ac_check_lib_save_LIBS=$LIBS | |
32571 | LIBS="-lw $LIBS" | |
32572 | cat >conftest.$ac_ext <<_ACEOF | |
32573 | /* confdefs.h. */ | |
32574 | _ACEOF | |
32575 | cat confdefs.h >>conftest.$ac_ext | |
32576 | cat >>conftest.$ac_ext <<_ACEOF | |
32577 | /* end confdefs.h. */ | |
32578 | ||
32579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32580 | #ifdef __cplusplus | |
32581 | extern "C" | |
32582 | #endif | |
32583 | /* We use char because int might match the return type of a gcc2 | |
32584 | builtin and then its argument prototype would still apply. */ | |
32585 | char wcslen (); | |
32586 | int | |
32587 | main () | |
32588 | { | |
32589 | wcslen (); | |
32590 | ; | |
32591 | return 0; | |
32592 | } | |
32593 | _ACEOF | |
32594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32596 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32597 | ac_status=$? |
ac1cb8d3 VS |
32598 | grep -v '^ *+' conftest.er1 >conftest.err |
32599 | rm -f conftest.er1 | |
32600 | cat conftest.err >&5 | |
a848cd7e SC |
32601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32602 | (exit $ac_status); } && | |
dee1a63f MB |
32603 | { ac_try='test -z "$ac_c_werror_flag" |
32604 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32606 | (eval $ac_try) 2>&5 | |
32607 | ac_status=$? | |
32608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32609 | (exit $ac_status); }; } && | |
32610 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32612 | (eval $ac_try) 2>&5 | |
32613 | ac_status=$? | |
32614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32615 | (exit $ac_status); }; }; then | |
32616 | ac_cv_lib_w_wcslen=yes | |
32617 | else | |
32618 | echo "$as_me: failed program was:" >&5 | |
32619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32620 | ||
32621 | ac_cv_lib_w_wcslen=no | |
32622 | fi | |
ac1cb8d3 VS |
32623 | rm -f conftest.err conftest.$ac_objext \ |
32624 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32625 | LIBS=$ac_check_lib_save_LIBS |
32626 | fi | |
32627 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
32628 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
32629 | if test $ac_cv_lib_w_wcslen = yes; then | |
32630 | ||
32631 | WCHAR_LINK=" -lw" | |
32632 | WCSLEN_FOUND=1 | |
32633 | ||
32634 | fi | |
32635 | ||
32636 | fi | |
32637 | fi | |
32638 | ||
32639 | if test "$WCSLEN_FOUND" = 1; then | |
32640 | cat >>confdefs.h <<\_ACEOF | |
32641 | #define HAVE_WCSLEN 1 | |
32642 | _ACEOF | |
32643 | ||
32644 | fi | |
32645 | ||
efdf6afe | 32646 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
32647 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
32648 | fi | |
32649 | ||
efdf6afe VZ |
32650 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
32651 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
32652 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
32653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32654 | else | |
32655 | cat >conftest.$ac_ext <<_ACEOF | |
32656 | /* confdefs.h. */ | |
32657 | _ACEOF | |
32658 | cat confdefs.h >>conftest.$ac_ext | |
32659 | cat >>conftest.$ac_ext <<_ACEOF | |
32660 | /* end confdefs.h. */ | |
32661 | #include <wchar.h> | |
32662 | ||
32663 | int | |
32664 | main () | |
32665 | { | |
32666 | if ((mbstate_t *) 0) | |
32667 | return 0; | |
32668 | if (sizeof (mbstate_t)) | |
32669 | return 0; | |
32670 | ; | |
32671 | return 0; | |
32672 | } | |
32673 | _ACEOF | |
32674 | rm -f conftest.$ac_objext | |
32675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32676 | (eval $ac_compile) 2>conftest.er1 | |
32677 | ac_status=$? | |
32678 | grep -v '^ *+' conftest.er1 >conftest.err | |
32679 | rm -f conftest.er1 | |
32680 | cat conftest.err >&5 | |
32681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32682 | (exit $ac_status); } && | |
dee1a63f MB |
32683 | { ac_try='test -z "$ac_c_werror_flag" |
32684 | || test ! -s conftest.err' | |
efdf6afe VZ |
32685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32686 | (eval $ac_try) 2>&5 | |
32687 | ac_status=$? | |
32688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32689 | (exit $ac_status); }; } && | |
32690 | { ac_try='test -s conftest.$ac_objext' | |
32691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32692 | (eval $ac_try) 2>&5 | |
32693 | ac_status=$? | |
32694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32695 | (exit $ac_status); }; }; then | |
32696 | ac_cv_type_mbstate_t=yes | |
32697 | else | |
32698 | echo "$as_me: failed program was:" >&5 | |
32699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32700 | ||
32701 | ac_cv_type_mbstate_t=no | |
32702 | fi | |
32703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32704 | fi | |
32705 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
32706 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
32707 | if test $ac_cv_type_mbstate_t = yes; then | |
32708 | ||
32709 | cat >>confdefs.h <<_ACEOF | |
32710 | #define HAVE_MBSTATE_T 1 | |
32711 | _ACEOF | |
32712 | ||
a848cd7e SC |
32713 | |
32714 | for ac_func in wcsrtombs | |
32715 | do | |
32716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32717 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32719 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32721 | else | |
32722 | cat >conftest.$ac_ext <<_ACEOF | |
32723 | /* confdefs.h. */ | |
32724 | _ACEOF | |
32725 | cat confdefs.h >>conftest.$ac_ext | |
32726 | cat >>conftest.$ac_ext <<_ACEOF | |
32727 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32728 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32730 | #define $ac_func innocuous_$ac_func | |
32731 | ||
a848cd7e SC |
32732 | /* System header to define __stub macros and hopefully few prototypes, |
32733 | which can conflict with char $ac_func (); below. | |
32734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32735 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32736 | |
a848cd7e SC |
32737 | #ifdef __STDC__ |
32738 | # include <limits.h> | |
32739 | #else | |
32740 | # include <assert.h> | |
32741 | #endif | |
ac1cb8d3 VS |
32742 | |
32743 | #undef $ac_func | |
32744 | ||
a848cd7e SC |
32745 | /* Override any gcc2 internal prototype to avoid an error. */ |
32746 | #ifdef __cplusplus | |
32747 | extern "C" | |
32748 | { | |
32749 | #endif | |
32750 | /* We use char because int might match the return type of a gcc2 | |
32751 | builtin and then its argument prototype would still apply. */ | |
32752 | char $ac_func (); | |
32753 | /* The GNU C library defines this for functions which it implements | |
32754 | to always fail with ENOSYS. Some functions are actually named | |
32755 | something starting with __ and the normal name is an alias. */ | |
32756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32757 | choke me | |
32758 | #else | |
32759 | char (*f) () = $ac_func; | |
32760 | #endif | |
32761 | #ifdef __cplusplus | |
32762 | } | |
32763 | #endif | |
32764 | ||
32765 | int | |
32766 | main () | |
32767 | { | |
32768 | return f != $ac_func; | |
32769 | ; | |
32770 | return 0; | |
32771 | } | |
32772 | _ACEOF | |
32773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32776 | ac_status=$? |
ac1cb8d3 VS |
32777 | grep -v '^ *+' conftest.er1 >conftest.err |
32778 | rm -f conftest.er1 | |
32779 | cat conftest.err >&5 | |
a848cd7e SC |
32780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32781 | (exit $ac_status); } && | |
dee1a63f MB |
32782 | { ac_try='test -z "$ac_c_werror_flag" |
32783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32785 | (eval $ac_try) 2>&5 | |
32786 | ac_status=$? | |
32787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32788 | (exit $ac_status); }; } && | |
32789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32791 | (eval $ac_try) 2>&5 | |
32792 | ac_status=$? | |
32793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32794 | (exit $ac_status); }; }; then | |
32795 | eval "$as_ac_var=yes" | |
32796 | else | |
32797 | echo "$as_me: failed program was:" >&5 | |
32798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32799 | ||
32800 | eval "$as_ac_var=no" | |
32801 | fi | |
ac1cb8d3 VS |
32802 | rm -f conftest.err conftest.$ac_objext \ |
32803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32804 | fi |
32805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32806 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32807 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32808 | cat >>confdefs.h <<_ACEOF | |
32809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32810 | _ACEOF | |
32811 | ||
32812 | fi | |
32813 | done | |
32814 | ||
efdf6afe VZ |
32815 | fi |
32816 | ||
a848cd7e SC |
32817 | else |
32818 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
32819 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
32820 | fi | |
32821 | ||
32822 | ||
32823 | ||
32824 | ac_ext=cc | |
32825 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32826 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32827 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32828 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32829 | ||
32830 | ||
32831 | ||
4a767dd5 VZ |
32832 | |
32833 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
32834 | do |
32835 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32836 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32837 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32838 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32840 | else | |
32841 | cat >conftest.$ac_ext <<_ACEOF | |
32842 | /* confdefs.h. */ | |
32843 | _ACEOF | |
32844 | cat confdefs.h >>conftest.$ac_ext | |
32845 | cat >>conftest.$ac_ext <<_ACEOF | |
32846 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32849 | #define $ac_func innocuous_$ac_func | |
32850 | ||
a848cd7e SC |
32851 | /* System header to define __stub macros and hopefully few prototypes, |
32852 | which can conflict with char $ac_func (); below. | |
32853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32854 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32855 | |
a848cd7e SC |
32856 | #ifdef __STDC__ |
32857 | # include <limits.h> | |
32858 | #else | |
32859 | # include <assert.h> | |
32860 | #endif | |
ac1cb8d3 VS |
32861 | |
32862 | #undef $ac_func | |
32863 | ||
a848cd7e SC |
32864 | /* Override any gcc2 internal prototype to avoid an error. */ |
32865 | #ifdef __cplusplus | |
32866 | extern "C" | |
32867 | { | |
32868 | #endif | |
32869 | /* We use char because int might match the return type of a gcc2 | |
32870 | builtin and then its argument prototype would still apply. */ | |
32871 | char $ac_func (); | |
32872 | /* The GNU C library defines this for functions which it implements | |
32873 | to always fail with ENOSYS. Some functions are actually named | |
32874 | something starting with __ and the normal name is an alias. */ | |
32875 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32876 | choke me | |
32877 | #else | |
32878 | char (*f) () = $ac_func; | |
32879 | #endif | |
32880 | #ifdef __cplusplus | |
32881 | } | |
32882 | #endif | |
32883 | ||
32884 | int | |
32885 | main () | |
32886 | { | |
32887 | return f != $ac_func; | |
32888 | ; | |
32889 | return 0; | |
32890 | } | |
32891 | _ACEOF | |
32892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32894 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32895 | ac_status=$? |
ac1cb8d3 VS |
32896 | grep -v '^ *+' conftest.er1 >conftest.err |
32897 | rm -f conftest.er1 | |
32898 | cat conftest.err >&5 | |
a848cd7e SC |
32899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32900 | (exit $ac_status); } && | |
dee1a63f MB |
32901 | { ac_try='test -z "$ac_cxx_werror_flag" |
32902 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
32908 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32910 | (eval $ac_try) 2>&5 | |
32911 | ac_status=$? | |
32912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32913 | (exit $ac_status); }; }; then | |
32914 | eval "$as_ac_var=yes" | |
32915 | else | |
32916 | echo "$as_me: failed program was:" >&5 | |
32917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32918 | ||
32919 | eval "$as_ac_var=no" | |
32920 | fi | |
ac1cb8d3 VS |
32921 | rm -f conftest.err conftest.$ac_objext \ |
32922 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32923 | fi |
32924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32925 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32926 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32927 | cat >>confdefs.h <<_ACEOF | |
32928 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32929 | _ACEOF | |
32930 | ||
32931 | fi | |
32932 | done | |
32933 | ||
32934 | ||
32935 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
32936 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
32937 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
32938 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
32939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32940 | else | |
32941 | ||
efdf6afe | 32942 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32943 | /* confdefs.h. */ |
32944 | _ACEOF | |
32945 | cat confdefs.h >>conftest.$ac_ext | |
32946 | cat >>conftest.$ac_ext <<_ACEOF | |
32947 | /* end confdefs.h. */ | |
32948 | ||
32949 | #include <stdio.h> | |
32950 | #include <stdarg.h> | |
efdf6afe VZ |
32951 | #ifdef __MSL__ |
32952 | #if __MSL__ >= 0x6000 | |
32953 | namespace std {} | |
32954 | using namespace std; | |
32955 | #endif | |
32956 | #endif | |
a848cd7e SC |
32957 | |
32958 | int | |
32959 | main () | |
32960 | { | |
32961 | ||
32962 | char *buf; | |
32963 | va_list ap; | |
62fa8b3a | 32964 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
32965 | |
32966 | ; | |
32967 | return 0; | |
32968 | } | |
32969 | _ACEOF | |
32970 | rm -f conftest.$ac_objext | |
32971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32972 | (eval $ac_compile) 2>conftest.er1 | |
32973 | ac_status=$? | |
32974 | grep -v '^ *+' conftest.er1 >conftest.err | |
32975 | rm -f conftest.er1 | |
32976 | cat conftest.err >&5 | |
32977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32978 | (exit $ac_status); } && | |
dee1a63f MB |
32979 | { ac_try='test -z "$ac_cxx_werror_flag" |
32980 | || test ! -s conftest.err' | |
c122b164 DE |
32981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32982 | (eval $ac_try) 2>&5 | |
32983 | ac_status=$? | |
32984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32985 | (exit $ac_status); }; } && | |
32986 | { ac_try='test -s conftest.$ac_objext' | |
32987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32988 | (eval $ac_try) 2>&5 | |
32989 | ac_status=$? | |
32990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32991 | (exit $ac_status); }; }; then | |
32992 | wx_cv_func_vsnprintf_decl=yes | |
32993 | else | |
32994 | echo "$as_me: failed program was:" >&5 | |
32995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32996 | ||
a848cd7e SC |
32997 | wx_cv_func_vsnprintf_decl=no |
32998 | ||
32999 | fi | |
ac1cb8d3 | 33000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33001 | |
33002 | ||
33003 | fi | |
33004 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33005 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33006 | ||
33007 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33008 | cat >>confdefs.h <<\_ACEOF | |
33009 | #define HAVE_VSNPRINTF_DECL 1 | |
33010 | _ACEOF | |
33011 | ||
62fa8b3a MW |
33012 | |
33013 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33014 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33015 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33017 | else | |
33018 | ||
33019 | cat >conftest.$ac_ext <<_ACEOF | |
33020 | /* confdefs.h. */ | |
33021 | _ACEOF | |
33022 | cat confdefs.h >>conftest.$ac_ext | |
33023 | cat >>conftest.$ac_ext <<_ACEOF | |
33024 | /* end confdefs.h. */ | |
33025 | ||
33026 | #include <stdio.h> | |
33027 | #include <stdarg.h> | |
33028 | #ifdef __MSL__ | |
33029 | #if __MSL__ >= 0x6000 | |
33030 | namespace std {} | |
33031 | using namespace std; | |
33032 | #endif | |
33033 | #endif | |
33034 | ||
33035 | int | |
33036 | main () | |
33037 | { | |
33038 | ||
33039 | char *buf; | |
33040 | va_list ap; | |
33041 | const char *fmt = "%s"; | |
33042 | vsnprintf(buf, 10u, fmt, ap); | |
33043 | ||
33044 | ; | |
33045 | return 0; | |
33046 | } | |
33047 | _ACEOF | |
33048 | rm -f conftest.$ac_objext | |
33049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33050 | (eval $ac_compile) 2>conftest.er1 | |
33051 | ac_status=$? | |
33052 | grep -v '^ *+' conftest.er1 >conftest.err | |
33053 | rm -f conftest.er1 | |
33054 | cat conftest.err >&5 | |
33055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33056 | (exit $ac_status); } && | |
dee1a63f MB |
33057 | { ac_try='test -z "$ac_cxx_werror_flag" |
33058 | || test ! -s conftest.err' | |
62fa8b3a MW |
33059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33060 | (eval $ac_try) 2>&5 | |
33061 | ac_status=$? | |
33062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33063 | (exit $ac_status); }; } && | |
33064 | { ac_try='test -s conftest.$ac_objext' | |
33065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33066 | (eval $ac_try) 2>&5 | |
33067 | ac_status=$? | |
33068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33069 | (exit $ac_status); }; }; then | |
33070 | wx_cv_func_broken_vsnprintf_decl=no | |
33071 | else | |
33072 | echo "$as_me: failed program was:" >&5 | |
33073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33074 | ||
33075 | wx_cv_func_broken_vsnprintf_decl=yes | |
33076 | ||
33077 | fi | |
33078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33079 | ||
33080 | ||
33081 | fi | |
33082 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33083 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33084 | ||
33085 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33086 | cat >>confdefs.h <<\_ACEOF | |
33087 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33088 | _ACEOF | |
33089 | ||
33090 | fi | |
a848cd7e SC |
33091 | fi |
33092 | fi | |
33093 | ||
4a767dd5 VZ |
33094 | if test "$ac_cv_func_snprintf" = "yes"; then |
33095 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33096 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33097 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33099 | else | |
33100 | ||
33101 | cat >conftest.$ac_ext <<_ACEOF | |
33102 | /* confdefs.h. */ | |
33103 | _ACEOF | |
33104 | cat confdefs.h >>conftest.$ac_ext | |
33105 | cat >>conftest.$ac_ext <<_ACEOF | |
33106 | /* end confdefs.h. */ | |
33107 | ||
33108 | #include <stdio.h> | |
33109 | #include <stdarg.h> | |
33110 | #ifdef __MSL__ | |
33111 | #if __MSL__ >= 0x6000 | |
33112 | namespace std {} | |
33113 | using namespace std; | |
33114 | #endif | |
33115 | #endif | |
33116 | ||
33117 | int | |
33118 | main () | |
33119 | { | |
33120 | ||
33121 | char *buf; | |
62fa8b3a | 33122 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33123 | |
33124 | ; | |
33125 | return 0; | |
33126 | } | |
33127 | _ACEOF | |
33128 | rm -f conftest.$ac_objext | |
33129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33130 | (eval $ac_compile) 2>conftest.er1 | |
33131 | ac_status=$? | |
33132 | grep -v '^ *+' conftest.er1 >conftest.err | |
33133 | rm -f conftest.er1 | |
33134 | cat conftest.err >&5 | |
33135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33136 | (exit $ac_status); } && | |
dee1a63f MB |
33137 | { ac_try='test -z "$ac_cxx_werror_flag" |
33138 | || test ! -s conftest.err' | |
4a767dd5 VZ |
33139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33140 | (eval $ac_try) 2>&5 | |
33141 | ac_status=$? | |
33142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33143 | (exit $ac_status); }; } && | |
33144 | { ac_try='test -s conftest.$ac_objext' | |
33145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33146 | (eval $ac_try) 2>&5 | |
33147 | ac_status=$? | |
33148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33149 | (exit $ac_status); }; }; then | |
33150 | wx_cv_func_snprintf_decl=yes | |
33151 | else | |
33152 | echo "$as_me: failed program was:" >&5 | |
33153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33154 | ||
33155 | wx_cv_func_snprintf_decl=no | |
33156 | ||
33157 | fi | |
33158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33159 | ||
33160 | ||
33161 | fi | |
33162 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33163 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33164 | ||
33165 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33166 | cat >>confdefs.h <<\_ACEOF | |
33167 | #define HAVE_SNPRINTF_DECL 1 | |
33168 | _ACEOF | |
33169 | ||
62fa8b3a MW |
33170 | |
33171 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33172 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33173 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33175 | else | |
33176 | ||
33177 | cat >conftest.$ac_ext <<_ACEOF | |
33178 | /* confdefs.h. */ | |
33179 | _ACEOF | |
33180 | cat confdefs.h >>conftest.$ac_ext | |
33181 | cat >>conftest.$ac_ext <<_ACEOF | |
33182 | /* end confdefs.h. */ | |
33183 | ||
33184 | #include <stdio.h> | |
33185 | #include <stdarg.h> | |
33186 | #ifdef __MSL__ | |
33187 | #if __MSL__ >= 0x6000 | |
33188 | namespace std {} | |
33189 | using namespace std; | |
33190 | #endif | |
33191 | #endif | |
33192 | ||
33193 | int | |
33194 | main () | |
33195 | { | |
33196 | ||
33197 | char *buf; | |
33198 | const char *fmt = "%s"; | |
33199 | snprintf(buf, 10u, fmt, "wx"); | |
33200 | ||
33201 | ; | |
33202 | return 0; | |
33203 | } | |
33204 | _ACEOF | |
33205 | rm -f conftest.$ac_objext | |
33206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33207 | (eval $ac_compile) 2>conftest.er1 | |
33208 | ac_status=$? | |
33209 | grep -v '^ *+' conftest.er1 >conftest.err | |
33210 | rm -f conftest.er1 | |
33211 | cat conftest.err >&5 | |
33212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33213 | (exit $ac_status); } && | |
dee1a63f MB |
33214 | { ac_try='test -z "$ac_cxx_werror_flag" |
33215 | || test ! -s conftest.err' | |
62fa8b3a MW |
33216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33217 | (eval $ac_try) 2>&5 | |
33218 | ac_status=$? | |
33219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33220 | (exit $ac_status); }; } && | |
33221 | { ac_try='test -s conftest.$ac_objext' | |
33222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33223 | (eval $ac_try) 2>&5 | |
33224 | ac_status=$? | |
33225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33226 | (exit $ac_status); }; }; then | |
33227 | wx_cv_func_broken_snprintf_decl=no | |
33228 | else | |
33229 | echo "$as_me: failed program was:" >&5 | |
33230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33231 | ||
33232 | wx_cv_func_broken_snprintf_decl=yes | |
33233 | ||
33234 | fi | |
33235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33236 | ||
33237 | ||
33238 | fi | |
33239 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33240 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33241 | ||
33242 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33243 | cat >>confdefs.h <<\_ACEOF | |
33244 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33245 | _ACEOF | |
33246 | ||
33247 | fi | |
4a767dd5 VZ |
33248 | fi |
33249 | fi | |
33250 | ||
a848cd7e SC |
33251 | if test "$wxUSE_UNICODE" = yes; then |
33252 | ||
33253 | ||
33254 | ||
fbe47c7b VS |
33255 | |
33256 | ||
33257 | ||
33258 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33259 | do |
33260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33265 | else | |
33266 | cat >conftest.$ac_ext <<_ACEOF | |
33267 | /* confdefs.h. */ | |
33268 | _ACEOF | |
33269 | cat confdefs.h >>conftest.$ac_ext | |
33270 | cat >>conftest.$ac_ext <<_ACEOF | |
33271 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33274 | #define $ac_func innocuous_$ac_func | |
33275 | ||
a848cd7e SC |
33276 | /* System header to define __stub macros and hopefully few prototypes, |
33277 | which can conflict with char $ac_func (); below. | |
33278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33279 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33280 | |
a848cd7e SC |
33281 | #ifdef __STDC__ |
33282 | # include <limits.h> | |
33283 | #else | |
33284 | # include <assert.h> | |
33285 | #endif | |
ac1cb8d3 VS |
33286 | |
33287 | #undef $ac_func | |
33288 | ||
a848cd7e SC |
33289 | /* Override any gcc2 internal prototype to avoid an error. */ |
33290 | #ifdef __cplusplus | |
33291 | extern "C" | |
33292 | { | |
33293 | #endif | |
33294 | /* We use char because int might match the return type of a gcc2 | |
33295 | builtin and then its argument prototype would still apply. */ | |
33296 | char $ac_func (); | |
33297 | /* The GNU C library defines this for functions which it implements | |
33298 | to always fail with ENOSYS. Some functions are actually named | |
33299 | something starting with __ and the normal name is an alias. */ | |
33300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33301 | choke me | |
33302 | #else | |
33303 | char (*f) () = $ac_func; | |
33304 | #endif | |
33305 | #ifdef __cplusplus | |
33306 | } | |
33307 | #endif | |
33308 | ||
33309 | int | |
33310 | main () | |
33311 | { | |
33312 | return f != $ac_func; | |
33313 | ; | |
33314 | return 0; | |
33315 | } | |
33316 | _ACEOF | |
33317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33319 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33320 | ac_status=$? |
ac1cb8d3 VS |
33321 | grep -v '^ *+' conftest.er1 >conftest.err |
33322 | rm -f conftest.er1 | |
33323 | cat conftest.err >&5 | |
a848cd7e SC |
33324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33325 | (exit $ac_status); } && | |
dee1a63f MB |
33326 | { ac_try='test -z "$ac_cxx_werror_flag" |
33327 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33329 | (eval $ac_try) 2>&5 | |
33330 | ac_status=$? | |
33331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33332 | (exit $ac_status); }; } && | |
33333 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33335 | (eval $ac_try) 2>&5 | |
33336 | ac_status=$? | |
33337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33338 | (exit $ac_status); }; }; then | |
33339 | eval "$as_ac_var=yes" | |
33340 | else | |
33341 | echo "$as_me: failed program was:" >&5 | |
33342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33343 | ||
33344 | eval "$as_ac_var=no" | |
33345 | fi | |
ac1cb8d3 VS |
33346 | rm -f conftest.err conftest.$ac_objext \ |
33347 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33348 | fi |
33349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33350 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33351 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33352 | cat >>confdefs.h <<_ACEOF | |
33353 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33354 | _ACEOF | |
33355 | ||
33356 | fi | |
33357 | done | |
33358 | ||
33359 | ||
33360 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33361 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33362 | cat >conftest.$ac_ext <<_ACEOF | |
33363 | /* confdefs.h. */ | |
33364 | _ACEOF | |
33365 | cat confdefs.h >>conftest.$ac_ext | |
33366 | cat >>conftest.$ac_ext <<_ACEOF | |
33367 | /* end confdefs.h. */ | |
33368 | #include <wchar.h> | |
33369 | int | |
33370 | main () | |
33371 | { | |
33372 | &_vsnwprintf; | |
33373 | ; | |
33374 | return 0; | |
33375 | } | |
33376 | _ACEOF | |
33377 | rm -f conftest.$ac_objext | |
33378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33380 | ac_status=$? |
ac1cb8d3 VS |
33381 | grep -v '^ *+' conftest.er1 >conftest.err |
33382 | rm -f conftest.er1 | |
33383 | cat conftest.err >&5 | |
a848cd7e SC |
33384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33385 | (exit $ac_status); } && | |
dee1a63f MB |
33386 | { ac_try='test -z "$ac_cxx_werror_flag" |
33387 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33389 | (eval $ac_try) 2>&5 | |
33390 | ac_status=$? | |
33391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33392 | (exit $ac_status); }; } && | |
33393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33395 | (eval $ac_try) 2>&5 | |
33396 | ac_status=$? | |
33397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33398 | (exit $ac_status); }; }; then | |
33399 | echo "$as_me:$LINENO: result: yes" >&5 | |
33400 | echo "${ECHO_T}yes" >&6 | |
33401 | cat >>confdefs.h <<\_ACEOF | |
33402 | #define HAVE__VSNWPRINTF 1 | |
33403 | _ACEOF | |
33404 | ||
33405 | else | |
33406 | echo "$as_me: failed program was:" >&5 | |
33407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33408 | ||
33409 | echo "$as_me:$LINENO: result: no" >&5 | |
33410 | echo "${ECHO_T}no" >&6 | |
33411 | fi | |
ac1cb8d3 | 33412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33413 | fi |
33414 | ||
33415 | ac_ext=c | |
33416 | ac_cpp='$CPP $CPPFLAGS' | |
33417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33420 | ||
33421 | ||
6ebeb4c7 VZ |
33422 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33423 | ||
33424 | for ac_func in fnmatch | |
33425 | do | |
33426 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33427 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33428 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33429 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33431 | else | |
33432 | cat >conftest.$ac_ext <<_ACEOF | |
33433 | /* confdefs.h. */ | |
33434 | _ACEOF | |
33435 | cat confdefs.h >>conftest.$ac_ext | |
33436 | cat >>conftest.$ac_ext <<_ACEOF | |
33437 | /* end confdefs.h. */ | |
33438 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33440 | #define $ac_func innocuous_$ac_func | |
33441 | ||
33442 | /* System header to define __stub macros and hopefully few prototypes, | |
33443 | which can conflict with char $ac_func (); below. | |
33444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33445 | <limits.h> exists even on freestanding compilers. */ | |
33446 | ||
33447 | #ifdef __STDC__ | |
33448 | # include <limits.h> | |
33449 | #else | |
33450 | # include <assert.h> | |
33451 | #endif | |
33452 | ||
33453 | #undef $ac_func | |
33454 | ||
33455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33456 | #ifdef __cplusplus | |
33457 | extern "C" | |
33458 | { | |
33459 | #endif | |
33460 | /* We use char because int might match the return type of a gcc2 | |
33461 | builtin and then its argument prototype would still apply. */ | |
33462 | char $ac_func (); | |
33463 | /* The GNU C library defines this for functions which it implements | |
33464 | to always fail with ENOSYS. Some functions are actually named | |
33465 | something starting with __ and the normal name is an alias. */ | |
33466 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33467 | choke me | |
33468 | #else | |
33469 | char (*f) () = $ac_func; | |
33470 | #endif | |
33471 | #ifdef __cplusplus | |
33472 | } | |
33473 | #endif | |
33474 | ||
33475 | int | |
33476 | main () | |
33477 | { | |
33478 | return f != $ac_func; | |
33479 | ; | |
33480 | return 0; | |
33481 | } | |
33482 | _ACEOF | |
33483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33485 | (eval $ac_link) 2>conftest.er1 | |
33486 | ac_status=$? | |
33487 | grep -v '^ *+' conftest.er1 >conftest.err | |
33488 | rm -f conftest.er1 | |
33489 | cat conftest.err >&5 | |
33490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33491 | (exit $ac_status); } && | |
dee1a63f MB |
33492 | { ac_try='test -z "$ac_c_werror_flag" |
33493 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
33494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33495 | (eval $ac_try) 2>&5 | |
33496 | ac_status=$? | |
33497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33498 | (exit $ac_status); }; } && | |
33499 | { ac_try='test -s conftest$ac_exeext' | |
33500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33501 | (eval $ac_try) 2>&5 | |
33502 | ac_status=$? | |
33503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33504 | (exit $ac_status); }; }; then | |
33505 | eval "$as_ac_var=yes" | |
33506 | else | |
33507 | echo "$as_me: failed program was:" >&5 | |
33508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33509 | ||
33510 | eval "$as_ac_var=no" | |
33511 | fi | |
33512 | rm -f conftest.err conftest.$ac_objext \ | |
33513 | conftest$ac_exeext conftest.$ac_ext | |
33514 | fi | |
33515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33516 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33517 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33518 | cat >>confdefs.h <<_ACEOF | |
33519 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33520 | _ACEOF | |
33521 | ||
33522 | fi | |
33523 | done | |
33524 | ||
33525 | fi | |
33526 | ||
33527 | if test "$wxUSE_FILE" = "yes"; then | |
33528 | ||
33529 | for ac_func in fsync | |
33530 | do | |
33531 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33532 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33533 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33534 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33536 | else | |
33537 | cat >conftest.$ac_ext <<_ACEOF | |
33538 | /* confdefs.h. */ | |
33539 | _ACEOF | |
33540 | cat confdefs.h >>conftest.$ac_ext | |
33541 | cat >>conftest.$ac_ext <<_ACEOF | |
33542 | /* end confdefs.h. */ | |
33543 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33545 | #define $ac_func innocuous_$ac_func | |
33546 | ||
33547 | /* System header to define __stub macros and hopefully few prototypes, | |
33548 | which can conflict with char $ac_func (); below. | |
33549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33550 | <limits.h> exists even on freestanding compilers. */ | |
33551 | ||
33552 | #ifdef __STDC__ | |
33553 | # include <limits.h> | |
33554 | #else | |
33555 | # include <assert.h> | |
33556 | #endif | |
33557 | ||
33558 | #undef $ac_func | |
33559 | ||
33560 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33561 | #ifdef __cplusplus | |
33562 | extern "C" | |
33563 | { | |
33564 | #endif | |
33565 | /* We use char because int might match the return type of a gcc2 | |
33566 | builtin and then its argument prototype would still apply. */ | |
33567 | char $ac_func (); | |
33568 | /* The GNU C library defines this for functions which it implements | |
33569 | to always fail with ENOSYS. Some functions are actually named | |
33570 | something starting with __ and the normal name is an alias. */ | |
33571 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33572 | choke me | |
33573 | #else | |
33574 | char (*f) () = $ac_func; | |
33575 | #endif | |
33576 | #ifdef __cplusplus | |
33577 | } | |
33578 | #endif | |
33579 | ||
33580 | int | |
33581 | main () | |
33582 | { | |
33583 | return f != $ac_func; | |
33584 | ; | |
33585 | return 0; | |
33586 | } | |
33587 | _ACEOF | |
33588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33590 | (eval $ac_link) 2>conftest.er1 | |
33591 | ac_status=$? | |
33592 | grep -v '^ *+' conftest.er1 >conftest.err | |
33593 | rm -f conftest.er1 | |
33594 | cat conftest.err >&5 | |
33595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33596 | (exit $ac_status); } && | |
dee1a63f MB |
33597 | { ac_try='test -z "$ac_c_werror_flag" |
33598 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
33599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33600 | (eval $ac_try) 2>&5 | |
33601 | ac_status=$? | |
33602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33603 | (exit $ac_status); }; } && | |
33604 | { ac_try='test -s conftest$ac_exeext' | |
33605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33606 | (eval $ac_try) 2>&5 | |
33607 | ac_status=$? | |
33608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33609 | (exit $ac_status); }; }; then | |
33610 | eval "$as_ac_var=yes" | |
33611 | else | |
33612 | echo "$as_me: failed program was:" >&5 | |
33613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33614 | ||
33615 | eval "$as_ac_var=no" | |
33616 | fi | |
33617 | rm -f conftest.err conftest.$ac_objext \ | |
33618 | conftest$ac_exeext conftest.$ac_ext | |
33619 | fi | |
33620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33621 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33622 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33623 | cat >>confdefs.h <<_ACEOF | |
33624 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33625 | _ACEOF | |
33626 | ||
33627 | fi | |
33628 | done | |
33629 | ||
33630 | fi | |
a848cd7e SC |
33631 | |
33632 | ||
33633 | if test "$TOOLKIT" != "MSW"; then | |
33634 | ||
33635 | ||
33636 | ||
33637 | ||
33638 | ac_ext=cc | |
33639 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33643 | ||
33644 | ||
33645 | ||
33646 | ||
33647 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
33648 | if test "${with_libiconv_prefix+set}" = set; then | |
33649 | withval="$with_libiconv_prefix" | |
33650 | ||
33651 | for dir in `echo "$withval" | tr : ' '`; do | |
33652 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
33653 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
33654 | done | |
33655 | ||
33656 | fi; | |
33657 | ||
33658 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
33659 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
33660 | if test "${am_cv_func_iconv+set}" = set; then | |
33661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33662 | else | |
33663 | ||
33664 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
33665 | am_cv_lib_iconv=no | |
33666 | cat >conftest.$ac_ext <<_ACEOF | |
33667 | /* confdefs.h. */ | |
33668 | _ACEOF | |
33669 | cat confdefs.h >>conftest.$ac_ext | |
33670 | cat >>conftest.$ac_ext <<_ACEOF | |
33671 | /* end confdefs.h. */ | |
33672 | #include <stdlib.h> | |
33673 | #include <iconv.h> | |
33674 | int | |
33675 | main () | |
33676 | { | |
33677 | iconv_t cd = iconv_open("",""); | |
33678 | iconv(cd,NULL,NULL,NULL,NULL); | |
33679 | iconv_close(cd); | |
33680 | ; | |
33681 | return 0; | |
33682 | } | |
33683 | _ACEOF | |
33684 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33686 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33687 | ac_status=$? |
ac1cb8d3 VS |
33688 | grep -v '^ *+' conftest.er1 >conftest.err |
33689 | rm -f conftest.er1 | |
33690 | cat conftest.err >&5 | |
a848cd7e SC |
33691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33692 | (exit $ac_status); } && | |
dee1a63f MB |
33693 | { ac_try='test -z "$ac_cxx_werror_flag" |
33694 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33696 | (eval $ac_try) 2>&5 | |
33697 | ac_status=$? | |
33698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33699 | (exit $ac_status); }; } && | |
33700 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33702 | (eval $ac_try) 2>&5 | |
33703 | ac_status=$? | |
33704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33705 | (exit $ac_status); }; }; then | |
33706 | am_cv_func_iconv=yes | |
33707 | else | |
33708 | echo "$as_me: failed program was:" >&5 | |
33709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33710 | ||
33711 | fi | |
ac1cb8d3 VS |
33712 | rm -f conftest.err conftest.$ac_objext \ |
33713 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33714 | if test "$am_cv_func_iconv" != yes; then |
33715 | am_save_LIBS="$LIBS" | |
33716 | LIBS="$LIBS -liconv" | |
33717 | cat >conftest.$ac_ext <<_ACEOF | |
33718 | /* confdefs.h. */ | |
33719 | _ACEOF | |
33720 | cat confdefs.h >>conftest.$ac_ext | |
33721 | cat >>conftest.$ac_ext <<_ACEOF | |
33722 | /* end confdefs.h. */ | |
33723 | #include <stdlib.h> | |
33724 | #include <iconv.h> | |
33725 | int | |
33726 | main () | |
33727 | { | |
33728 | iconv_t cd = iconv_open("",""); | |
33729 | iconv(cd,NULL,NULL,NULL,NULL); | |
33730 | iconv_close(cd); | |
33731 | ; | |
33732 | return 0; | |
33733 | } | |
33734 | _ACEOF | |
33735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33737 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33738 | ac_status=$? |
ac1cb8d3 VS |
33739 | grep -v '^ *+' conftest.er1 >conftest.err |
33740 | rm -f conftest.er1 | |
33741 | cat conftest.err >&5 | |
a848cd7e SC |
33742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33743 | (exit $ac_status); } && | |
dee1a63f MB |
33744 | { ac_try='test -z "$ac_cxx_werror_flag" |
33745 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33747 | (eval $ac_try) 2>&5 | |
33748 | ac_status=$? | |
33749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33750 | (exit $ac_status); }; } && | |
33751 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33753 | (eval $ac_try) 2>&5 | |
33754 | ac_status=$? | |
33755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33756 | (exit $ac_status); }; }; then | |
33757 | am_cv_lib_iconv=yes | |
33758 | am_cv_func_iconv=yes | |
33759 | else | |
33760 | echo "$as_me: failed program was:" >&5 | |
33761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33762 | ||
33763 | fi | |
ac1cb8d3 VS |
33764 | rm -f conftest.err conftest.$ac_objext \ |
33765 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33766 | LIBS="$am_save_LIBS" |
33767 | fi | |
33768 | ||
33769 | fi | |
33770 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
33771 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
33772 | if test "$am_cv_func_iconv" = yes; then | |
33773 | ||
33774 | cat >>confdefs.h <<\_ACEOF | |
33775 | #define HAVE_ICONV 1 | |
33776 | _ACEOF | |
33777 | ||
33778 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
33779 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
33780 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
33781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33782 | else | |
33783 | cat >conftest.$ac_ext <<_ACEOF | |
33784 | /* confdefs.h. */ | |
33785 | _ACEOF | |
33786 | cat confdefs.h >>conftest.$ac_ext | |
33787 | cat >>conftest.$ac_ext <<_ACEOF | |
33788 | /* end confdefs.h. */ | |
33789 | ||
33790 | #include <stdlib.h> | |
33791 | #include <iconv.h> | |
33792 | extern | |
33793 | #ifdef __cplusplus | |
33794 | "C" | |
33795 | #endif | |
33796 | #if defined(__STDC__) || defined(__cplusplus) | |
33797 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
33798 | #else | |
33799 | size_t iconv(); | |
33800 | #endif | |
33801 | ||
33802 | int | |
33803 | main () | |
33804 | { | |
33805 | ||
33806 | ; | |
33807 | return 0; | |
33808 | } | |
33809 | _ACEOF | |
33810 | rm -f conftest.$ac_objext | |
33811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33813 | ac_status=$? |
ac1cb8d3 VS |
33814 | grep -v '^ *+' conftest.er1 >conftest.err |
33815 | rm -f conftest.er1 | |
33816 | cat conftest.err >&5 | |
a848cd7e SC |
33817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33818 | (exit $ac_status); } && | |
dee1a63f MB |
33819 | { ac_try='test -z "$ac_cxx_werror_flag" |
33820 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33822 | (eval $ac_try) 2>&5 | |
33823 | ac_status=$? | |
33824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33825 | (exit $ac_status); }; } && | |
33826 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33828 | (eval $ac_try) 2>&5 | |
33829 | ac_status=$? | |
33830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33831 | (exit $ac_status); }; }; then | |
33832 | wx_cv_func_iconv_const="no" | |
33833 | else | |
33834 | echo "$as_me: failed program was:" >&5 | |
33835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33836 | ||
33837 | wx_cv_func_iconv_const="yes" | |
33838 | ||
33839 | fi | |
ac1cb8d3 | 33840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33841 | |
33842 | fi | |
33843 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
33844 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
33845 | ||
33846 | iconv_const= | |
33847 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
33848 | iconv_const="const" | |
33849 | fi | |
33850 | ||
33851 | ||
33852 | cat >>confdefs.h <<_ACEOF | |
33853 | #define ICONV_CONST $iconv_const | |
33854 | _ACEOF | |
33855 | ||
33856 | fi | |
33857 | LIBICONV= | |
33858 | if test "$am_cv_lib_iconv" = yes; then | |
33859 | LIBICONV="-liconv" | |
33860 | fi | |
33861 | ||
33862 | ||
33863 | LIBS="$LIBICONV $LIBS" | |
33864 | ac_ext=c | |
33865 | ac_cpp='$CPP $CPPFLAGS' | |
33866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33869 | ||
33870 | ||
33871 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
33872 | ||
33873 | for ac_func in sigaction | |
33874 | do | |
33875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33878 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33880 | else | |
33881 | cat >conftest.$ac_ext <<_ACEOF | |
33882 | /* confdefs.h. */ | |
33883 | _ACEOF | |
33884 | cat confdefs.h >>conftest.$ac_ext | |
33885 | cat >>conftest.$ac_ext <<_ACEOF | |
33886 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33887 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33888 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33889 | #define $ac_func innocuous_$ac_func | |
33890 | ||
a848cd7e SC |
33891 | /* System header to define __stub macros and hopefully few prototypes, |
33892 | which can conflict with char $ac_func (); below. | |
33893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33894 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33895 | |
a848cd7e SC |
33896 | #ifdef __STDC__ |
33897 | # include <limits.h> | |
33898 | #else | |
33899 | # include <assert.h> | |
33900 | #endif | |
ac1cb8d3 VS |
33901 | |
33902 | #undef $ac_func | |
33903 | ||
a848cd7e SC |
33904 | /* Override any gcc2 internal prototype to avoid an error. */ |
33905 | #ifdef __cplusplus | |
33906 | extern "C" | |
33907 | { | |
33908 | #endif | |
33909 | /* We use char because int might match the return type of a gcc2 | |
33910 | builtin and then its argument prototype would still apply. */ | |
33911 | char $ac_func (); | |
33912 | /* The GNU C library defines this for functions which it implements | |
33913 | to always fail with ENOSYS. Some functions are actually named | |
33914 | something starting with __ and the normal name is an alias. */ | |
33915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33916 | choke me | |
33917 | #else | |
33918 | char (*f) () = $ac_func; | |
33919 | #endif | |
33920 | #ifdef __cplusplus | |
33921 | } | |
33922 | #endif | |
33923 | ||
33924 | int | |
33925 | main () | |
33926 | { | |
33927 | return f != $ac_func; | |
33928 | ; | |
33929 | return 0; | |
33930 | } | |
33931 | _ACEOF | |
33932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33934 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33935 | ac_status=$? |
ac1cb8d3 VS |
33936 | grep -v '^ *+' conftest.er1 >conftest.err |
33937 | rm -f conftest.er1 | |
33938 | cat conftest.err >&5 | |
a848cd7e SC |
33939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33940 | (exit $ac_status); } && | |
dee1a63f MB |
33941 | { ac_try='test -z "$ac_c_werror_flag" |
33942 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33944 | (eval $ac_try) 2>&5 | |
33945 | ac_status=$? | |
33946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33947 | (exit $ac_status); }; } && | |
33948 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33950 | (eval $ac_try) 2>&5 | |
33951 | ac_status=$? | |
33952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33953 | (exit $ac_status); }; }; then | |
33954 | eval "$as_ac_var=yes" | |
33955 | else | |
33956 | echo "$as_me: failed program was:" >&5 | |
33957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33958 | ||
33959 | eval "$as_ac_var=no" | |
33960 | fi | |
ac1cb8d3 VS |
33961 | rm -f conftest.err conftest.$ac_objext \ |
33962 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33963 | fi |
33964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33965 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33966 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33967 | cat >>confdefs.h <<_ACEOF | |
33968 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33969 | _ACEOF | |
33970 | ||
33971 | fi | |
33972 | done | |
33973 | ||
33974 | ||
33975 | if test "$ac_cv_func_sigaction" = "no"; then | |
33976 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
33977 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
33978 | wxUSE_ON_FATAL_EXCEPTION=no | |
33979 | fi | |
33980 | ||
33981 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
33982 | ||
33983 | ||
33984 | ac_ext=cc | |
33985 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33986 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33987 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33988 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33989 | ||
33990 | ||
33991 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
33992 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
33993 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
33994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33995 | else | |
33996 | ||
33997 | cat >conftest.$ac_ext <<_ACEOF | |
33998 | /* confdefs.h. */ | |
33999 | _ACEOF | |
34000 | cat confdefs.h >>conftest.$ac_ext | |
34001 | cat >>conftest.$ac_ext <<_ACEOF | |
34002 | /* end confdefs.h. */ | |
34003 | #include <signal.h> | |
34004 | int | |
34005 | main () | |
34006 | { | |
34007 | ||
34008 | extern void testSigHandler(int); | |
34009 | ||
34010 | struct sigaction sa; | |
34011 | sa.sa_handler = testSigHandler; | |
34012 | ||
34013 | ; | |
34014 | return 0; | |
34015 | } | |
34016 | _ACEOF | |
34017 | rm -f conftest.$ac_objext | |
34018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34019 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34020 | ac_status=$? |
ac1cb8d3 VS |
34021 | grep -v '^ *+' conftest.er1 >conftest.err |
34022 | rm -f conftest.er1 | |
34023 | cat conftest.err >&5 | |
a848cd7e SC |
34024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34025 | (exit $ac_status); } && | |
dee1a63f MB |
34026 | { ac_try='test -z "$ac_cxx_werror_flag" |
34027 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34029 | (eval $ac_try) 2>&5 | |
34030 | ac_status=$? | |
34031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34032 | (exit $ac_status); }; } && | |
34033 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34035 | (eval $ac_try) 2>&5 | |
34036 | ac_status=$? | |
34037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34038 | (exit $ac_status); }; }; then | |
34039 | ||
34040 | wx_cv_type_sa_handler=int | |
34041 | ||
34042 | else | |
34043 | echo "$as_me: failed program was:" >&5 | |
34044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34045 | ||
34046 | ||
34047 | wx_cv_type_sa_handler=void | |
34048 | ||
34049 | fi | |
ac1cb8d3 | 34050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34051 | |
34052 | fi | |
34053 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34054 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34055 | ||
34056 | ac_ext=c | |
34057 | ac_cpp='$CPP $CPPFLAGS' | |
34058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34061 | ||
34062 | ||
34063 | cat >>confdefs.h <<_ACEOF | |
34064 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34065 | _ACEOF | |
34066 | ||
34067 | fi | |
34068 | fi | |
34069 | ||
eaff0f0d VZ |
34070 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
34071 | ||
34072 | ||
34073 | ac_ext=cc | |
34074 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34075 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34076 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34077 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34078 | ||
34079 | ||
34080 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34081 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34082 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34084 | else | |
34085 | ||
34086 | cat >conftest.$ac_ext <<_ACEOF | |
34087 | /* confdefs.h. */ | |
34088 | _ACEOF | |
34089 | cat confdefs.h >>conftest.$ac_ext | |
34090 | cat >>conftest.$ac_ext <<_ACEOF | |
34091 | /* end confdefs.h. */ | |
34092 | #include <execinfo.h> | |
34093 | int | |
34094 | main () | |
34095 | { | |
34096 | ||
34097 | void *trace[1]; | |
34098 | char **messages; | |
34099 | ||
34100 | backtrace(trace, 1); | |
34101 | messages = backtrace_symbols(trace, 1); | |
34102 | ||
34103 | ; | |
34104 | return 0; | |
34105 | } | |
34106 | _ACEOF | |
34107 | rm -f conftest.$ac_objext | |
34108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34109 | (eval $ac_compile) 2>conftest.er1 | |
34110 | ac_status=$? | |
34111 | grep -v '^ *+' conftest.er1 >conftest.err | |
34112 | rm -f conftest.er1 | |
34113 | cat conftest.err >&5 | |
34114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34115 | (exit $ac_status); } && | |
dee1a63f MB |
34116 | { ac_try='test -z "$ac_cxx_werror_flag" |
34117 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34119 | (eval $ac_try) 2>&5 | |
34120 | ac_status=$? | |
34121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34122 | (exit $ac_status); }; } && | |
34123 | { ac_try='test -s conftest.$ac_objext' | |
34124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34125 | (eval $ac_try) 2>&5 | |
34126 | ac_status=$? | |
34127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34128 | (exit $ac_status); }; }; then | |
34129 | wx_cv_func_backtrace=yes | |
34130 | else | |
34131 | echo "$as_me: failed program was:" >&5 | |
34132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34133 | ||
34134 | wx_cv_func_backtrace=no | |
34135 | ||
34136 | fi | |
34137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34138 | ||
34139 | ||
34140 | fi | |
34141 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34142 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34143 | ||
34144 | ||
34145 | if test "$wx_cv_func_backtrace" = "no"; then | |
34146 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34147 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34148 | wxUSE_STACKWALKER=no | |
34149 | else | |
34150 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34151 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34152 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34154 | else | |
34155 | ||
34156 | cat >conftest.$ac_ext <<_ACEOF | |
34157 | /* confdefs.h. */ | |
34158 | _ACEOF | |
34159 | cat confdefs.h >>conftest.$ac_ext | |
34160 | cat >>conftest.$ac_ext <<_ACEOF | |
34161 | /* end confdefs.h. */ | |
34162 | #include <cxxabi.h> | |
34163 | int | |
34164 | main () | |
34165 | { | |
34166 | ||
34167 | int rc; | |
34168 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34169 | ||
34170 | ; | |
34171 | return 0; | |
34172 | } | |
34173 | _ACEOF | |
dfe0c803 JS |
34174 | rm -f conftest.$ac_objext conftest$ac_exeext |
34175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34176 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34177 | ac_status=$? |
34178 | grep -v '^ *+' conftest.er1 >conftest.err | |
34179 | rm -f conftest.er1 | |
34180 | cat conftest.err >&5 | |
34181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34182 | (exit $ac_status); } && | |
dee1a63f MB |
34183 | { ac_try='test -z "$ac_cxx_werror_flag" |
34184 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34186 | (eval $ac_try) 2>&5 | |
34187 | ac_status=$? | |
34188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34189 | (exit $ac_status); }; } && | |
dfe0c803 | 34190 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34192 | (eval $ac_try) 2>&5 | |
34193 | ac_status=$? | |
34194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34195 | (exit $ac_status); }; }; then | |
34196 | wx_cv_func_cxa_demangle=yes | |
34197 | else | |
34198 | echo "$as_me: failed program was:" >&5 | |
34199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34200 | ||
34201 | wx_cv_func_cxa_demangle=no | |
34202 | ||
34203 | fi | |
dfe0c803 JS |
34204 | rm -f conftest.err conftest.$ac_objext \ |
34205 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34206 | |
34207 | ||
34208 | fi | |
34209 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34210 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34211 | ||
34212 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34213 | cat >>confdefs.h <<\_ACEOF | |
34214 | #define HAVE_CXA_DEMANGLE 1 | |
34215 | _ACEOF | |
34216 | ||
34217 | fi | |
34218 | fi | |
34219 | ||
34220 | ac_ext=c | |
34221 | ac_cpp='$CPP $CPPFLAGS' | |
34222 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34223 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34224 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34225 | ||
34226 | fi | |
34227 | ||
898beab1 DE |
34228 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34229 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34230 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34231 | wxUSE_STACKWALKER=no | |
34232 | fi | |
34233 | ||
34234 | ||
a848cd7e SC |
34235 | |
34236 | ||
34237 | for ac_func in mkstemp mktemp | |
34238 | do | |
34239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34242 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34244 | else | |
34245 | cat >conftest.$ac_ext <<_ACEOF | |
34246 | /* confdefs.h. */ | |
34247 | _ACEOF | |
34248 | cat confdefs.h >>conftest.$ac_ext | |
34249 | cat >>conftest.$ac_ext <<_ACEOF | |
34250 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34251 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34252 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34253 | #define $ac_func innocuous_$ac_func | |
34254 | ||
a848cd7e SC |
34255 | /* System header to define __stub macros and hopefully few prototypes, |
34256 | which can conflict with char $ac_func (); below. | |
34257 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34258 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34259 | |
a848cd7e SC |
34260 | #ifdef __STDC__ |
34261 | # include <limits.h> | |
34262 | #else | |
34263 | # include <assert.h> | |
34264 | #endif | |
ac1cb8d3 VS |
34265 | |
34266 | #undef $ac_func | |
34267 | ||
a848cd7e SC |
34268 | /* Override any gcc2 internal prototype to avoid an error. */ |
34269 | #ifdef __cplusplus | |
34270 | extern "C" | |
34271 | { | |
34272 | #endif | |
34273 | /* We use char because int might match the return type of a gcc2 | |
34274 | builtin and then its argument prototype would still apply. */ | |
34275 | char $ac_func (); | |
34276 | /* The GNU C library defines this for functions which it implements | |
34277 | to always fail with ENOSYS. Some functions are actually named | |
34278 | something starting with __ and the normal name is an alias. */ | |
34279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34280 | choke me | |
34281 | #else | |
34282 | char (*f) () = $ac_func; | |
34283 | #endif | |
34284 | #ifdef __cplusplus | |
34285 | } | |
34286 | #endif | |
34287 | ||
34288 | int | |
34289 | main () | |
34290 | { | |
34291 | return f != $ac_func; | |
34292 | ; | |
34293 | return 0; | |
34294 | } | |
34295 | _ACEOF | |
34296 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34298 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34299 | ac_status=$? |
ac1cb8d3 VS |
34300 | grep -v '^ *+' conftest.er1 >conftest.err |
34301 | rm -f conftest.er1 | |
34302 | cat conftest.err >&5 | |
a848cd7e SC |
34303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34304 | (exit $ac_status); } && | |
dee1a63f MB |
34305 | { ac_try='test -z "$ac_c_werror_flag" |
34306 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34308 | (eval $ac_try) 2>&5 | |
34309 | ac_status=$? | |
34310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34311 | (exit $ac_status); }; } && | |
34312 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34314 | (eval $ac_try) 2>&5 | |
34315 | ac_status=$? | |
34316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34317 | (exit $ac_status); }; }; then | |
34318 | eval "$as_ac_var=yes" | |
34319 | else | |
34320 | echo "$as_me: failed program was:" >&5 | |
34321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34322 | ||
34323 | eval "$as_ac_var=no" | |
34324 | fi | |
ac1cb8d3 VS |
34325 | rm -f conftest.err conftest.$ac_objext \ |
34326 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34327 | fi |
34328 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34329 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34330 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34331 | cat >>confdefs.h <<_ACEOF | |
34332 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34333 | _ACEOF | |
34334 | break | |
34335 | fi | |
34336 | done | |
34337 | ||
34338 | ||
34339 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34340 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34341 | if test "${wx_cv_func_statfs+set}" = set; then | |
34342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34343 | else | |
34344 | cat >conftest.$ac_ext <<_ACEOF | |
34345 | /* confdefs.h. */ | |
34346 | _ACEOF | |
34347 | cat confdefs.h >>conftest.$ac_ext | |
34348 | cat >>conftest.$ac_ext <<_ACEOF | |
34349 | /* end confdefs.h. */ | |
34350 | ||
34351 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34352 | #include <sys/param.h> |
34353 | #include <sys/mount.h> | |
a848cd7e | 34354 | #else |
84ae7ca4 | 34355 | #include <sys/vfs.h> |
a848cd7e SC |
34356 | #endif |
34357 | ||
34358 | int | |
34359 | main () | |
34360 | { | |
34361 | ||
34362 | long l; | |
34363 | struct statfs fs; | |
34364 | statfs("/", &fs); | |
34365 | l = fs.f_bsize; | |
34366 | l += fs.f_blocks; | |
34367 | l += fs.f_bavail; | |
34368 | ||
34369 | ; | |
34370 | return 0; | |
34371 | } | |
34372 | _ACEOF | |
34373 | rm -f conftest.$ac_objext | |
34374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34375 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34376 | ac_status=$? |
ac1cb8d3 VS |
34377 | grep -v '^ *+' conftest.er1 >conftest.err |
34378 | rm -f conftest.er1 | |
34379 | cat conftest.err >&5 | |
a848cd7e SC |
34380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34381 | (exit $ac_status); } && | |
dee1a63f MB |
34382 | { ac_try='test -z "$ac_c_werror_flag" |
34383 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34385 | (eval $ac_try) 2>&5 | |
34386 | ac_status=$? | |
34387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34388 | (exit $ac_status); }; } && | |
34389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34391 | (eval $ac_try) 2>&5 | |
34392 | ac_status=$? | |
34393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34394 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34395 | wx_cv_func_statfs=yes |
a848cd7e SC |
34396 | else |
34397 | echo "$as_me: failed program was:" >&5 | |
34398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34399 | ||
84ae7ca4 | 34400 | wx_cv_func_statfs=no |
a848cd7e SC |
34401 | |
34402 | fi | |
ac1cb8d3 | 34403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34404 | |
34405 | fi | |
34406 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34407 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34408 | ||
34409 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
34410 | |
34411 | ||
34412 | ac_ext=cc | |
34413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34417 | ||
34418 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34419 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34420 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34422 | else | |
0683aca6 VZ |
34423 | cat >conftest.$ac_ext <<_ACEOF |
34424 | /* confdefs.h. */ | |
34425 | _ACEOF | |
34426 | cat confdefs.h >>conftest.$ac_ext | |
34427 | cat >>conftest.$ac_ext <<_ACEOF | |
34428 | /* end confdefs.h. */ | |
84ae7ca4 | 34429 | |
0683aca6 VZ |
34430 | #if defined(__BSD__) |
34431 | #include <sys/param.h> | |
34432 | #include <sys/mount.h> | |
34433 | #else | |
34434 | #include <sys/vfs.h> | |
34435 | #endif | |
34436 | ||
34437 | int | |
34438 | main () | |
34439 | { | |
34440 | ||
34441 | struct statfs fs; | |
34442 | statfs("", &fs); | |
34443 | ||
34444 | ; | |
34445 | return 0; | |
34446 | } | |
34447 | _ACEOF | |
34448 | rm -f conftest.$ac_objext | |
34449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34450 | (eval $ac_compile) 2>conftest.er1 | |
34451 | ac_status=$? | |
34452 | grep -v '^ *+' conftest.er1 >conftest.err | |
34453 | rm -f conftest.er1 | |
34454 | cat conftest.err >&5 | |
34455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34456 | (exit $ac_status); } && | |
dee1a63f MB |
34457 | { ac_try='test -z "$ac_cxx_werror_flag" |
34458 | || test ! -s conftest.err' | |
0683aca6 VZ |
34459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34460 | (eval $ac_try) 2>&5 | |
34461 | ac_status=$? | |
34462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34463 | (exit $ac_status); }; } && | |
34464 | { ac_try='test -s conftest.$ac_objext' | |
34465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34466 | (eval $ac_try) 2>&5 | |
34467 | ac_status=$? | |
34468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34469 | (exit $ac_status); }; }; then | |
34470 | wx_cv_func_statfs_decl=yes | |
34471 | else | |
34472 | echo "$as_me: failed program was:" >&5 | |
34473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34474 | ||
34475 | wx_cv_func_statfs_decl=no | |
34476 | ||
34477 | fi | |
34478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34479 | |
34480 | fi | |
34481 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34482 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34483 | ac_ext=c | |
34484 | ac_cpp='$CPP $CPPFLAGS' | |
34485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34488 | ||
34489 | ||
34490 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34491 | cat >>confdefs.h <<\_ACEOF | |
34492 | #define HAVE_STATFS_DECL 1 | |
34493 | _ACEOF | |
34494 | ||
34495 | fi | |
34496 | ||
a848cd7e SC |
34497 | wx_cv_type_statvfs_t="struct statfs" |
34498 | cat >>confdefs.h <<\_ACEOF | |
34499 | #define HAVE_STATFS 1 | |
34500 | _ACEOF | |
34501 | ||
34502 | else | |
34503 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34504 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34505 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34507 | else | |
34508 | cat >conftest.$ac_ext <<_ACEOF | |
34509 | /* confdefs.h. */ | |
34510 | _ACEOF | |
34511 | cat confdefs.h >>conftest.$ac_ext | |
34512 | cat >>conftest.$ac_ext <<_ACEOF | |
34513 | /* end confdefs.h. */ | |
34514 | ||
34515 | #include <stddef.h> | |
34516 | #include <sys/statvfs.h> | |
34517 | ||
34518 | int | |
34519 | main () | |
34520 | { | |
34521 | ||
34522 | statvfs("/", NULL); | |
34523 | ||
34524 | ; | |
34525 | return 0; | |
34526 | } | |
34527 | _ACEOF | |
34528 | rm -f conftest.$ac_objext | |
34529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34531 | ac_status=$? |
ac1cb8d3 VS |
34532 | grep -v '^ *+' conftest.er1 >conftest.err |
34533 | rm -f conftest.er1 | |
34534 | cat conftest.err >&5 | |
a848cd7e SC |
34535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34536 | (exit $ac_status); } && | |
dee1a63f MB |
34537 | { ac_try='test -z "$ac_c_werror_flag" |
34538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34540 | (eval $ac_try) 2>&5 | |
34541 | ac_status=$? | |
34542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34543 | (exit $ac_status); }; } && | |
34544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34546 | (eval $ac_try) 2>&5 | |
34547 | ac_status=$? | |
34548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34549 | (exit $ac_status); }; }; then | |
34550 | wx_cv_func_statvfs=yes | |
34551 | else | |
34552 | echo "$as_me: failed program was:" >&5 | |
34553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34554 | ||
34555 | wx_cv_func_statvfs=no | |
34556 | ||
34557 | fi | |
ac1cb8d3 | 34558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34559 | |
34560 | fi | |
34561 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34562 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34563 | ||
34564 | if test "$wx_cv_func_statvfs" = "yes"; then | |
34565 | ||
34566 | ||
34567 | ac_ext=cc | |
34568 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34569 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34570 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34571 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34572 | ||
34573 | ||
34574 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34575 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34576 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34578 | else | |
34579 | cat >conftest.$ac_ext <<_ACEOF | |
34580 | /* confdefs.h. */ | |
34581 | _ACEOF | |
34582 | cat confdefs.h >>conftest.$ac_ext | |
34583 | cat >>conftest.$ac_ext <<_ACEOF | |
34584 | /* end confdefs.h. */ | |
34585 | ||
34586 | #include <sys/statvfs.h> | |
34587 | ||
34588 | int | |
34589 | main () | |
34590 | { | |
34591 | ||
34592 | long l; | |
34593 | statvfs_t fs; | |
34594 | statvfs("/", &fs); | |
34595 | l = fs.f_bsize; | |
34596 | l += fs.f_blocks; | |
34597 | l += fs.f_bavail; | |
34598 | ||
34599 | ; | |
34600 | return 0; | |
34601 | } | |
34602 | _ACEOF | |
34603 | rm -f conftest.$ac_objext | |
34604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34605 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34606 | ac_status=$? |
ac1cb8d3 VS |
34607 | grep -v '^ *+' conftest.er1 >conftest.err |
34608 | rm -f conftest.er1 | |
34609 | cat conftest.err >&5 | |
a848cd7e SC |
34610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34611 | (exit $ac_status); } && | |
dee1a63f MB |
34612 | { ac_try='test -z "$ac_cxx_werror_flag" |
34613 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34615 | (eval $ac_try) 2>&5 | |
34616 | ac_status=$? | |
34617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34618 | (exit $ac_status); }; } && | |
34619 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34621 | (eval $ac_try) 2>&5 | |
34622 | ac_status=$? | |
34623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34624 | (exit $ac_status); }; }; then | |
34625 | wx_cv_type_statvfs_t=statvfs_t | |
34626 | else | |
34627 | echo "$as_me: failed program was:" >&5 | |
34628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34629 | ||
34630 | ||
34631 | cat >conftest.$ac_ext <<_ACEOF | |
34632 | /* confdefs.h. */ | |
34633 | _ACEOF | |
34634 | cat confdefs.h >>conftest.$ac_ext | |
34635 | cat >>conftest.$ac_ext <<_ACEOF | |
34636 | /* end confdefs.h. */ | |
34637 | ||
34638 | #include <sys/statvfs.h> | |
34639 | ||
34640 | int | |
34641 | main () | |
34642 | { | |
34643 | ||
34644 | long l; | |
34645 | struct statvfs fs; | |
34646 | statvfs("/", &fs); | |
34647 | l = fs.f_bsize; | |
34648 | l += fs.f_blocks; | |
34649 | l += fs.f_bavail; | |
34650 | ||
34651 | ; | |
34652 | return 0; | |
34653 | } | |
34654 | _ACEOF | |
34655 | rm -f conftest.$ac_objext | |
34656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34657 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34658 | ac_status=$? |
ac1cb8d3 VS |
34659 | grep -v '^ *+' conftest.er1 >conftest.err |
34660 | rm -f conftest.er1 | |
34661 | cat conftest.err >&5 | |
a848cd7e SC |
34662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34663 | (exit $ac_status); } && | |
dee1a63f MB |
34664 | { ac_try='test -z "$ac_cxx_werror_flag" |
34665 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34667 | (eval $ac_try) 2>&5 | |
34668 | ac_status=$? | |
34669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34670 | (exit $ac_status); }; } && | |
34671 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34673 | (eval $ac_try) 2>&5 | |
34674 | ac_status=$? | |
34675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34676 | (exit $ac_status); }; }; then | |
34677 | wx_cv_type_statvfs_t="struct statvfs" | |
34678 | else | |
34679 | echo "$as_me: failed program was:" >&5 | |
34680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34681 | ||
34682 | wx_cv_type_statvfs_t="unknown" | |
34683 | ||
34684 | fi | |
ac1cb8d3 | 34685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34686 | |
34687 | ||
34688 | fi | |
ac1cb8d3 | 34689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34690 | |
34691 | fi | |
34692 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
34693 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
34694 | ||
34695 | ac_ext=c | |
34696 | ac_cpp='$CPP $CPPFLAGS' | |
34697 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34698 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34699 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34700 | ||
34701 | ||
34702 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34703 | cat >>confdefs.h <<\_ACEOF | |
34704 | #define HAVE_STATVFS 1 | |
34705 | _ACEOF | |
34706 | ||
34707 | fi | |
34708 | else | |
34709 | wx_cv_type_statvfs_t="unknown" | |
34710 | fi | |
34711 | fi | |
34712 | ||
34713 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34714 | cat >>confdefs.h <<_ACEOF | |
34715 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
34716 | _ACEOF | |
34717 | ||
34718 | else | |
34719 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
34720 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
34721 | fi | |
34722 | ||
34723 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34724 | ||
34725 | ||
34726 | for ac_func in fcntl flock | |
34727 | do | |
34728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34729 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34731 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34733 | else | |
34734 | cat >conftest.$ac_ext <<_ACEOF | |
34735 | /* confdefs.h. */ | |
34736 | _ACEOF | |
34737 | cat confdefs.h >>conftest.$ac_ext | |
34738 | cat >>conftest.$ac_ext <<_ACEOF | |
34739 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34742 | #define $ac_func innocuous_$ac_func | |
34743 | ||
a848cd7e SC |
34744 | /* System header to define __stub macros and hopefully few prototypes, |
34745 | which can conflict with char $ac_func (); below. | |
34746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34747 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34748 | |
a848cd7e SC |
34749 | #ifdef __STDC__ |
34750 | # include <limits.h> | |
34751 | #else | |
34752 | # include <assert.h> | |
34753 | #endif | |
ac1cb8d3 VS |
34754 | |
34755 | #undef $ac_func | |
34756 | ||
a848cd7e SC |
34757 | /* Override any gcc2 internal prototype to avoid an error. */ |
34758 | #ifdef __cplusplus | |
34759 | extern "C" | |
34760 | { | |
34761 | #endif | |
34762 | /* We use char because int might match the return type of a gcc2 | |
34763 | builtin and then its argument prototype would still apply. */ | |
34764 | char $ac_func (); | |
34765 | /* The GNU C library defines this for functions which it implements | |
34766 | to always fail with ENOSYS. Some functions are actually named | |
34767 | something starting with __ and the normal name is an alias. */ | |
34768 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34769 | choke me | |
34770 | #else | |
34771 | char (*f) () = $ac_func; | |
34772 | #endif | |
34773 | #ifdef __cplusplus | |
34774 | } | |
34775 | #endif | |
34776 | ||
34777 | int | |
34778 | main () | |
34779 | { | |
34780 | return f != $ac_func; | |
34781 | ; | |
34782 | return 0; | |
34783 | } | |
34784 | _ACEOF | |
34785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34787 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34788 | ac_status=$? |
ac1cb8d3 VS |
34789 | grep -v '^ *+' conftest.er1 >conftest.err |
34790 | rm -f conftest.er1 | |
34791 | cat conftest.err >&5 | |
a848cd7e SC |
34792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34793 | (exit $ac_status); } && | |
dee1a63f MB |
34794 | { ac_try='test -z "$ac_c_werror_flag" |
34795 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34797 | (eval $ac_try) 2>&5 | |
34798 | ac_status=$? | |
34799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34800 | (exit $ac_status); }; } && | |
34801 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34803 | (eval $ac_try) 2>&5 | |
34804 | ac_status=$? | |
34805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34806 | (exit $ac_status); }; }; then | |
34807 | eval "$as_ac_var=yes" | |
34808 | else | |
34809 | echo "$as_me: failed program was:" >&5 | |
34810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34811 | ||
34812 | eval "$as_ac_var=no" | |
34813 | fi | |
ac1cb8d3 VS |
34814 | rm -f conftest.err conftest.$ac_objext \ |
34815 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34816 | fi |
34817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34818 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34819 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34820 | cat >>confdefs.h <<_ACEOF | |
34821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34822 | _ACEOF | |
34823 | break | |
34824 | fi | |
34825 | done | |
34826 | ||
34827 | ||
34828 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
34829 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
34830 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
34831 | wxUSE_SNGLINST_CHECKER=no | |
34832 | fi | |
34833 | fi | |
34834 | ||
34835 | ||
34836 | for ac_func in timegm | |
34837 | do | |
34838 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34839 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34840 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34841 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34843 | else | |
34844 | cat >conftest.$ac_ext <<_ACEOF | |
34845 | /* confdefs.h. */ | |
34846 | _ACEOF | |
34847 | cat confdefs.h >>conftest.$ac_ext | |
34848 | cat >>conftest.$ac_ext <<_ACEOF | |
34849 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34850 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34852 | #define $ac_func innocuous_$ac_func | |
34853 | ||
a848cd7e SC |
34854 | /* System header to define __stub macros and hopefully few prototypes, |
34855 | which can conflict with char $ac_func (); below. | |
34856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34857 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34858 | |
a848cd7e SC |
34859 | #ifdef __STDC__ |
34860 | # include <limits.h> | |
34861 | #else | |
34862 | # include <assert.h> | |
34863 | #endif | |
ac1cb8d3 VS |
34864 | |
34865 | #undef $ac_func | |
34866 | ||
a848cd7e SC |
34867 | /* Override any gcc2 internal prototype to avoid an error. */ |
34868 | #ifdef __cplusplus | |
34869 | extern "C" | |
34870 | { | |
34871 | #endif | |
34872 | /* We use char because int might match the return type of a gcc2 | |
34873 | builtin and then its argument prototype would still apply. */ | |
34874 | char $ac_func (); | |
34875 | /* The GNU C library defines this for functions which it implements | |
34876 | to always fail with ENOSYS. Some functions are actually named | |
34877 | something starting with __ and the normal name is an alias. */ | |
34878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34879 | choke me | |
34880 | #else | |
34881 | char (*f) () = $ac_func; | |
34882 | #endif | |
34883 | #ifdef __cplusplus | |
34884 | } | |
34885 | #endif | |
34886 | ||
34887 | int | |
34888 | main () | |
34889 | { | |
34890 | return f != $ac_func; | |
34891 | ; | |
34892 | return 0; | |
34893 | } | |
34894 | _ACEOF | |
34895 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34897 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34898 | ac_status=$? |
ac1cb8d3 VS |
34899 | grep -v '^ *+' conftest.er1 >conftest.err |
34900 | rm -f conftest.er1 | |
34901 | cat conftest.err >&5 | |
a848cd7e SC |
34902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34903 | (exit $ac_status); } && | |
dee1a63f MB |
34904 | { ac_try='test -z "$ac_c_werror_flag" |
34905 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34907 | (eval $ac_try) 2>&5 | |
34908 | ac_status=$? | |
34909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34910 | (exit $ac_status); }; } && | |
34911 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34913 | (eval $ac_try) 2>&5 | |
34914 | ac_status=$? | |
34915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34916 | (exit $ac_status); }; }; then | |
34917 | eval "$as_ac_var=yes" | |
34918 | else | |
34919 | echo "$as_me: failed program was:" >&5 | |
34920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34921 | ||
34922 | eval "$as_ac_var=no" | |
34923 | fi | |
ac1cb8d3 VS |
34924 | rm -f conftest.err conftest.$ac_objext \ |
34925 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34926 | fi |
34927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34928 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34929 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34930 | cat >>confdefs.h <<_ACEOF | |
34931 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34932 | _ACEOF | |
34933 | ||
34934 | fi | |
34935 | done | |
34936 | ||
34937 | ||
34938 | ||
34939 | ||
34940 | for ac_func in putenv setenv | |
34941 | do | |
34942 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34943 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34944 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34945 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34947 | else | |
34948 | cat >conftest.$ac_ext <<_ACEOF | |
34949 | /* confdefs.h. */ | |
34950 | _ACEOF | |
34951 | cat confdefs.h >>conftest.$ac_ext | |
34952 | cat >>conftest.$ac_ext <<_ACEOF | |
34953 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34954 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34955 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34956 | #define $ac_func innocuous_$ac_func | |
34957 | ||
a848cd7e SC |
34958 | /* System header to define __stub macros and hopefully few prototypes, |
34959 | which can conflict with char $ac_func (); below. | |
34960 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34961 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34962 | |
a848cd7e SC |
34963 | #ifdef __STDC__ |
34964 | # include <limits.h> | |
34965 | #else | |
34966 | # include <assert.h> | |
34967 | #endif | |
ac1cb8d3 VS |
34968 | |
34969 | #undef $ac_func | |
34970 | ||
a848cd7e SC |
34971 | /* Override any gcc2 internal prototype to avoid an error. */ |
34972 | #ifdef __cplusplus | |
34973 | extern "C" | |
34974 | { | |
34975 | #endif | |
34976 | /* We use char because int might match the return type of a gcc2 | |
34977 | builtin and then its argument prototype would still apply. */ | |
34978 | char $ac_func (); | |
34979 | /* The GNU C library defines this for functions which it implements | |
34980 | to always fail with ENOSYS. Some functions are actually named | |
34981 | something starting with __ and the normal name is an alias. */ | |
34982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34983 | choke me | |
34984 | #else | |
34985 | char (*f) () = $ac_func; | |
34986 | #endif | |
34987 | #ifdef __cplusplus | |
34988 | } | |
34989 | #endif | |
34990 | ||
34991 | int | |
34992 | main () | |
34993 | { | |
34994 | return f != $ac_func; | |
34995 | ; | |
34996 | return 0; | |
34997 | } | |
34998 | _ACEOF | |
34999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35001 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35002 | ac_status=$? |
ac1cb8d3 VS |
35003 | grep -v '^ *+' conftest.er1 >conftest.err |
35004 | rm -f conftest.er1 | |
35005 | cat conftest.err >&5 | |
a848cd7e SC |
35006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35007 | (exit $ac_status); } && | |
dee1a63f MB |
35008 | { ac_try='test -z "$ac_c_werror_flag" |
35009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35011 | (eval $ac_try) 2>&5 | |
35012 | ac_status=$? | |
35013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35014 | (exit $ac_status); }; } && | |
35015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35017 | (eval $ac_try) 2>&5 | |
35018 | ac_status=$? | |
35019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35020 | (exit $ac_status); }; }; then | |
35021 | eval "$as_ac_var=yes" | |
35022 | else | |
35023 | echo "$as_me: failed program was:" >&5 | |
35024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35025 | ||
35026 | eval "$as_ac_var=no" | |
35027 | fi | |
ac1cb8d3 VS |
35028 | rm -f conftest.err conftest.$ac_objext \ |
35029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35030 | fi |
35031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35032 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35033 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35034 | cat >>confdefs.h <<_ACEOF | |
35035 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35036 | _ACEOF | |
35037 | break | |
35038 | fi | |
35039 | done | |
35040 | ||
35041 | ||
35042 | HAVE_SOME_SLEEP_FUNC=0 | |
35043 | if test "$USE_BEOS" = 1; then | |
35044 | cat >>confdefs.h <<\_ACEOF | |
35045 | #define HAVE_SLEEP 1 | |
35046 | _ACEOF | |
35047 | ||
35048 | HAVE_SOME_SLEEP_FUNC=1 | |
35049 | fi | |
35050 | ||
35051 | if test "$USE_DARWIN" = 1; then | |
35052 | cat >>confdefs.h <<\_ACEOF | |
35053 | #define HAVE_USLEEP 1 | |
35054 | _ACEOF | |
35055 | ||
35056 | HAVE_SOME_SLEEP_FUNC=1 | |
35057 | fi | |
35058 | ||
35059 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35060 | POSIX4_LINK= | |
35061 | ||
35062 | for ac_func in nanosleep | |
35063 | do | |
35064 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35065 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35066 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35067 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35069 | else | |
35070 | cat >conftest.$ac_ext <<_ACEOF | |
35071 | /* confdefs.h. */ | |
35072 | _ACEOF | |
35073 | cat confdefs.h >>conftest.$ac_ext | |
35074 | cat >>conftest.$ac_ext <<_ACEOF | |
35075 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35076 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35077 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35078 | #define $ac_func innocuous_$ac_func | |
35079 | ||
a848cd7e SC |
35080 | /* System header to define __stub macros and hopefully few prototypes, |
35081 | which can conflict with char $ac_func (); below. | |
35082 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35083 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35084 | |
a848cd7e SC |
35085 | #ifdef __STDC__ |
35086 | # include <limits.h> | |
35087 | #else | |
35088 | # include <assert.h> | |
35089 | #endif | |
ac1cb8d3 VS |
35090 | |
35091 | #undef $ac_func | |
35092 | ||
a848cd7e SC |
35093 | /* Override any gcc2 internal prototype to avoid an error. */ |
35094 | #ifdef __cplusplus | |
35095 | extern "C" | |
35096 | { | |
35097 | #endif | |
35098 | /* We use char because int might match the return type of a gcc2 | |
35099 | builtin and then its argument prototype would still apply. */ | |
35100 | char $ac_func (); | |
35101 | /* The GNU C library defines this for functions which it implements | |
35102 | to always fail with ENOSYS. Some functions are actually named | |
35103 | something starting with __ and the normal name is an alias. */ | |
35104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35105 | choke me | |
35106 | #else | |
35107 | char (*f) () = $ac_func; | |
35108 | #endif | |
35109 | #ifdef __cplusplus | |
35110 | } | |
35111 | #endif | |
35112 | ||
35113 | int | |
35114 | main () | |
35115 | { | |
35116 | return f != $ac_func; | |
35117 | ; | |
35118 | return 0; | |
35119 | } | |
35120 | _ACEOF | |
35121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35123 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35124 | ac_status=$? |
ac1cb8d3 VS |
35125 | grep -v '^ *+' conftest.er1 >conftest.err |
35126 | rm -f conftest.er1 | |
35127 | cat conftest.err >&5 | |
a848cd7e SC |
35128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35129 | (exit $ac_status); } && | |
dee1a63f MB |
35130 | { ac_try='test -z "$ac_c_werror_flag" |
35131 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35133 | (eval $ac_try) 2>&5 | |
35134 | ac_status=$? | |
35135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35136 | (exit $ac_status); }; } && | |
35137 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35139 | (eval $ac_try) 2>&5 | |
35140 | ac_status=$? | |
35141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35142 | (exit $ac_status); }; }; then | |
35143 | eval "$as_ac_var=yes" | |
35144 | else | |
35145 | echo "$as_me: failed program was:" >&5 | |
35146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35147 | ||
35148 | eval "$as_ac_var=no" | |
35149 | fi | |
ac1cb8d3 VS |
35150 | rm -f conftest.err conftest.$ac_objext \ |
35151 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35152 | fi |
35153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35154 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35155 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35156 | cat >>confdefs.h <<_ACEOF | |
35157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35158 | _ACEOF | |
35159 | cat >>confdefs.h <<\_ACEOF | |
35160 | #define HAVE_NANOSLEEP 1 | |
35161 | _ACEOF | |
35162 | ||
35163 | else | |
35164 | ||
35165 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35166 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35167 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35169 | else | |
35170 | ac_check_lib_save_LIBS=$LIBS | |
35171 | LIBS="-lposix4 $LIBS" | |
35172 | cat >conftest.$ac_ext <<_ACEOF | |
35173 | /* confdefs.h. */ | |
35174 | _ACEOF | |
35175 | cat confdefs.h >>conftest.$ac_ext | |
35176 | cat >>conftest.$ac_ext <<_ACEOF | |
35177 | /* end confdefs.h. */ | |
35178 | ||
35179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35180 | #ifdef __cplusplus | |
35181 | extern "C" | |
35182 | #endif | |
35183 | /* We use char because int might match the return type of a gcc2 | |
35184 | builtin and then its argument prototype would still apply. */ | |
35185 | char nanosleep (); | |
35186 | int | |
35187 | main () | |
35188 | { | |
35189 | nanosleep (); | |
35190 | ; | |
35191 | return 0; | |
35192 | } | |
35193 | _ACEOF | |
35194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35196 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35197 | ac_status=$? |
ac1cb8d3 VS |
35198 | grep -v '^ *+' conftest.er1 >conftest.err |
35199 | rm -f conftest.er1 | |
35200 | cat conftest.err >&5 | |
a848cd7e SC |
35201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35202 | (exit $ac_status); } && | |
dee1a63f MB |
35203 | { ac_try='test -z "$ac_c_werror_flag" |
35204 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35206 | (eval $ac_try) 2>&5 | |
35207 | ac_status=$? | |
35208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35209 | (exit $ac_status); }; } && | |
35210 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35212 | (eval $ac_try) 2>&5 | |
35213 | ac_status=$? | |
35214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35215 | (exit $ac_status); }; }; then | |
35216 | ac_cv_lib_posix4_nanosleep=yes | |
35217 | else | |
35218 | echo "$as_me: failed program was:" >&5 | |
35219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35220 | ||
35221 | ac_cv_lib_posix4_nanosleep=no | |
35222 | fi | |
ac1cb8d3 VS |
35223 | rm -f conftest.err conftest.$ac_objext \ |
35224 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35225 | LIBS=$ac_check_lib_save_LIBS |
35226 | fi | |
35227 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35228 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35229 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35230 | ||
35231 | cat >>confdefs.h <<\_ACEOF | |
35232 | #define HAVE_NANOSLEEP 1 | |
35233 | _ACEOF | |
35234 | ||
35235 | POSIX4_LINK=" -lposix4" | |
35236 | ||
35237 | else | |
35238 | ||
35239 | ||
35240 | for ac_func in usleep | |
35241 | do | |
35242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35243 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35245 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35247 | else | |
35248 | cat >conftest.$ac_ext <<_ACEOF | |
35249 | /* confdefs.h. */ | |
35250 | _ACEOF | |
35251 | cat confdefs.h >>conftest.$ac_ext | |
35252 | cat >>conftest.$ac_ext <<_ACEOF | |
35253 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35256 | #define $ac_func innocuous_$ac_func | |
35257 | ||
a848cd7e SC |
35258 | /* System header to define __stub macros and hopefully few prototypes, |
35259 | which can conflict with char $ac_func (); below. | |
35260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35261 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35262 | |
a848cd7e SC |
35263 | #ifdef __STDC__ |
35264 | # include <limits.h> | |
35265 | #else | |
35266 | # include <assert.h> | |
35267 | #endif | |
ac1cb8d3 VS |
35268 | |
35269 | #undef $ac_func | |
35270 | ||
a848cd7e SC |
35271 | /* Override any gcc2 internal prototype to avoid an error. */ |
35272 | #ifdef __cplusplus | |
35273 | extern "C" | |
35274 | { | |
35275 | #endif | |
35276 | /* We use char because int might match the return type of a gcc2 | |
35277 | builtin and then its argument prototype would still apply. */ | |
35278 | char $ac_func (); | |
35279 | /* The GNU C library defines this for functions which it implements | |
35280 | to always fail with ENOSYS. Some functions are actually named | |
35281 | something starting with __ and the normal name is an alias. */ | |
35282 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35283 | choke me | |
35284 | #else | |
35285 | char (*f) () = $ac_func; | |
35286 | #endif | |
35287 | #ifdef __cplusplus | |
35288 | } | |
35289 | #endif | |
35290 | ||
35291 | int | |
35292 | main () | |
35293 | { | |
35294 | return f != $ac_func; | |
35295 | ; | |
35296 | return 0; | |
35297 | } | |
35298 | _ACEOF | |
35299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35301 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35302 | ac_status=$? |
ac1cb8d3 VS |
35303 | grep -v '^ *+' conftest.er1 >conftest.err |
35304 | rm -f conftest.er1 | |
35305 | cat conftest.err >&5 | |
a848cd7e SC |
35306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35307 | (exit $ac_status); } && | |
dee1a63f MB |
35308 | { ac_try='test -z "$ac_c_werror_flag" |
35309 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35311 | (eval $ac_try) 2>&5 | |
35312 | ac_status=$? | |
35313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35314 | (exit $ac_status); }; } && | |
35315 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35317 | (eval $ac_try) 2>&5 | |
35318 | ac_status=$? | |
35319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35320 | (exit $ac_status); }; }; then | |
35321 | eval "$as_ac_var=yes" | |
35322 | else | |
35323 | echo "$as_me: failed program was:" >&5 | |
35324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35325 | ||
35326 | eval "$as_ac_var=no" | |
35327 | fi | |
ac1cb8d3 VS |
35328 | rm -f conftest.err conftest.$ac_objext \ |
35329 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35330 | fi |
35331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35332 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35333 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35334 | cat >>confdefs.h <<_ACEOF | |
35335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35336 | _ACEOF | |
35337 | cat >>confdefs.h <<\_ACEOF | |
35338 | #define HAVE_USLEEP 1 | |
35339 | _ACEOF | |
35340 | ||
35341 | else | |
35342 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35343 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35344 | ||
35345 | fi | |
35346 | done | |
35347 | ||
35348 | ||
35349 | ||
35350 | fi | |
35351 | ||
35352 | ||
35353 | ||
35354 | fi | |
35355 | done | |
35356 | ||
35357 | fi | |
35358 | ||
35359 | ||
35360 | ||
35361 | for ac_func in uname gethostname | |
35362 | do | |
35363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35366 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35368 | else | |
35369 | cat >conftest.$ac_ext <<_ACEOF | |
35370 | /* confdefs.h. */ | |
35371 | _ACEOF | |
35372 | cat confdefs.h >>conftest.$ac_ext | |
35373 | cat >>conftest.$ac_ext <<_ACEOF | |
35374 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35375 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35377 | #define $ac_func innocuous_$ac_func | |
35378 | ||
a848cd7e SC |
35379 | /* System header to define __stub macros and hopefully few prototypes, |
35380 | which can conflict with char $ac_func (); below. | |
35381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35382 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35383 | |
a848cd7e SC |
35384 | #ifdef __STDC__ |
35385 | # include <limits.h> | |
35386 | #else | |
35387 | # include <assert.h> | |
35388 | #endif | |
ac1cb8d3 VS |
35389 | |
35390 | #undef $ac_func | |
35391 | ||
a848cd7e SC |
35392 | /* Override any gcc2 internal prototype to avoid an error. */ |
35393 | #ifdef __cplusplus | |
35394 | extern "C" | |
35395 | { | |
35396 | #endif | |
35397 | /* We use char because int might match the return type of a gcc2 | |
35398 | builtin and then its argument prototype would still apply. */ | |
35399 | char $ac_func (); | |
35400 | /* The GNU C library defines this for functions which it implements | |
35401 | to always fail with ENOSYS. Some functions are actually named | |
35402 | something starting with __ and the normal name is an alias. */ | |
35403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35404 | choke me | |
35405 | #else | |
35406 | char (*f) () = $ac_func; | |
35407 | #endif | |
35408 | #ifdef __cplusplus | |
35409 | } | |
35410 | #endif | |
35411 | ||
35412 | int | |
35413 | main () | |
35414 | { | |
35415 | return f != $ac_func; | |
35416 | ; | |
35417 | return 0; | |
35418 | } | |
35419 | _ACEOF | |
35420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35422 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35423 | ac_status=$? |
ac1cb8d3 VS |
35424 | grep -v '^ *+' conftest.er1 >conftest.err |
35425 | rm -f conftest.er1 | |
35426 | cat conftest.err >&5 | |
a848cd7e SC |
35427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35428 | (exit $ac_status); } && | |
dee1a63f MB |
35429 | { ac_try='test -z "$ac_c_werror_flag" |
35430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35432 | (eval $ac_try) 2>&5 | |
35433 | ac_status=$? | |
35434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35435 | (exit $ac_status); }; } && | |
35436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35438 | (eval $ac_try) 2>&5 | |
35439 | ac_status=$? | |
35440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35441 | (exit $ac_status); }; }; then | |
35442 | eval "$as_ac_var=yes" | |
35443 | else | |
35444 | echo "$as_me: failed program was:" >&5 | |
35445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35446 | ||
35447 | eval "$as_ac_var=no" | |
35448 | fi | |
ac1cb8d3 VS |
35449 | rm -f conftest.err conftest.$ac_objext \ |
35450 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35451 | fi |
35452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35453 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35454 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35455 | cat >>confdefs.h <<_ACEOF | |
35456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35457 | _ACEOF | |
35458 | break | |
35459 | fi | |
35460 | done | |
35461 | ||
35462 | ||
35463 | ||
35464 | ||
35465 | ac_ext=cc | |
35466 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35467 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35468 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35469 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35470 | ||
35471 | ||
35472 | ||
35473 | for ac_func in strtok_r | |
35474 | do | |
35475 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35476 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35477 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35478 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35480 | else | |
35481 | cat >conftest.$ac_ext <<_ACEOF | |
35482 | /* confdefs.h. */ | |
35483 | _ACEOF | |
35484 | cat confdefs.h >>conftest.$ac_ext | |
35485 | cat >>conftest.$ac_ext <<_ACEOF | |
35486 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35487 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35488 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35489 | #define $ac_func innocuous_$ac_func | |
35490 | ||
a848cd7e SC |
35491 | /* System header to define __stub macros and hopefully few prototypes, |
35492 | which can conflict with char $ac_func (); below. | |
35493 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35494 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35495 | |
a848cd7e SC |
35496 | #ifdef __STDC__ |
35497 | # include <limits.h> | |
35498 | #else | |
35499 | # include <assert.h> | |
35500 | #endif | |
ac1cb8d3 VS |
35501 | |
35502 | #undef $ac_func | |
35503 | ||
a848cd7e SC |
35504 | /* Override any gcc2 internal prototype to avoid an error. */ |
35505 | #ifdef __cplusplus | |
35506 | extern "C" | |
35507 | { | |
35508 | #endif | |
35509 | /* We use char because int might match the return type of a gcc2 | |
35510 | builtin and then its argument prototype would still apply. */ | |
35511 | char $ac_func (); | |
35512 | /* The GNU C library defines this for functions which it implements | |
35513 | to always fail with ENOSYS. Some functions are actually named | |
35514 | something starting with __ and the normal name is an alias. */ | |
35515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35516 | choke me | |
35517 | #else | |
35518 | char (*f) () = $ac_func; | |
35519 | #endif | |
35520 | #ifdef __cplusplus | |
35521 | } | |
35522 | #endif | |
35523 | ||
35524 | int | |
35525 | main () | |
35526 | { | |
35527 | return f != $ac_func; | |
35528 | ; | |
35529 | return 0; | |
35530 | } | |
35531 | _ACEOF | |
35532 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35534 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35535 | ac_status=$? |
ac1cb8d3 VS |
35536 | grep -v '^ *+' conftest.er1 >conftest.err |
35537 | rm -f conftest.er1 | |
35538 | cat conftest.err >&5 | |
a848cd7e SC |
35539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35540 | (exit $ac_status); } && | |
dee1a63f MB |
35541 | { ac_try='test -z "$ac_cxx_werror_flag" |
35542 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35544 | (eval $ac_try) 2>&5 | |
35545 | ac_status=$? | |
35546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35547 | (exit $ac_status); }; } && | |
35548 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35550 | (eval $ac_try) 2>&5 | |
35551 | ac_status=$? | |
35552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35553 | (exit $ac_status); }; }; then | |
35554 | eval "$as_ac_var=yes" | |
35555 | else | |
35556 | echo "$as_me: failed program was:" >&5 | |
35557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35558 | ||
35559 | eval "$as_ac_var=no" | |
35560 | fi | |
ac1cb8d3 VS |
35561 | rm -f conftest.err conftest.$ac_objext \ |
35562 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35563 | fi |
35564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35566 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35567 | cat >>confdefs.h <<_ACEOF | |
35568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35569 | _ACEOF | |
35570 | ||
35571 | fi | |
35572 | done | |
35573 | ||
35574 | ||
35575 | ac_ext=c | |
35576 | ac_cpp='$CPP $CPPFLAGS' | |
35577 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35578 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35579 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35580 | ||
35581 | ||
35582 | INET_LINK= | |
35583 | ||
35584 | for ac_func in inet_addr | |
35585 | do | |
35586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35589 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35591 | else | |
35592 | cat >conftest.$ac_ext <<_ACEOF | |
35593 | /* confdefs.h. */ | |
35594 | _ACEOF | |
35595 | cat confdefs.h >>conftest.$ac_ext | |
35596 | cat >>conftest.$ac_ext <<_ACEOF | |
35597 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35600 | #define $ac_func innocuous_$ac_func | |
35601 | ||
a848cd7e SC |
35602 | /* System header to define __stub macros and hopefully few prototypes, |
35603 | which can conflict with char $ac_func (); below. | |
35604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35605 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35606 | |
a848cd7e SC |
35607 | #ifdef __STDC__ |
35608 | # include <limits.h> | |
35609 | #else | |
35610 | # include <assert.h> | |
35611 | #endif | |
ac1cb8d3 VS |
35612 | |
35613 | #undef $ac_func | |
35614 | ||
a848cd7e SC |
35615 | /* Override any gcc2 internal prototype to avoid an error. */ |
35616 | #ifdef __cplusplus | |
35617 | extern "C" | |
35618 | { | |
35619 | #endif | |
35620 | /* We use char because int might match the return type of a gcc2 | |
35621 | builtin and then its argument prototype would still apply. */ | |
35622 | char $ac_func (); | |
35623 | /* The GNU C library defines this for functions which it implements | |
35624 | to always fail with ENOSYS. Some functions are actually named | |
35625 | something starting with __ and the normal name is an alias. */ | |
35626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35627 | choke me | |
35628 | #else | |
35629 | char (*f) () = $ac_func; | |
35630 | #endif | |
35631 | #ifdef __cplusplus | |
35632 | } | |
35633 | #endif | |
35634 | ||
35635 | int | |
35636 | main () | |
35637 | { | |
35638 | return f != $ac_func; | |
35639 | ; | |
35640 | return 0; | |
35641 | } | |
35642 | _ACEOF | |
35643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35646 | ac_status=$? |
ac1cb8d3 VS |
35647 | grep -v '^ *+' conftest.er1 >conftest.err |
35648 | rm -f conftest.er1 | |
35649 | cat conftest.err >&5 | |
a848cd7e SC |
35650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35651 | (exit $ac_status); } && | |
dee1a63f MB |
35652 | { ac_try='test -z "$ac_c_werror_flag" |
35653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35655 | (eval $ac_try) 2>&5 | |
35656 | ac_status=$? | |
35657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35658 | (exit $ac_status); }; } && | |
35659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35661 | (eval $ac_try) 2>&5 | |
35662 | ac_status=$? | |
35663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35664 | (exit $ac_status); }; }; then | |
35665 | eval "$as_ac_var=yes" | |
35666 | else | |
35667 | echo "$as_me: failed program was:" >&5 | |
35668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35669 | ||
35670 | eval "$as_ac_var=no" | |
35671 | fi | |
ac1cb8d3 VS |
35672 | rm -f conftest.err conftest.$ac_objext \ |
35673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35674 | fi |
35675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35678 | cat >>confdefs.h <<_ACEOF | |
35679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35680 | _ACEOF | |
35681 | cat >>confdefs.h <<\_ACEOF | |
35682 | #define HAVE_INET_ADDR 1 | |
35683 | _ACEOF | |
35684 | ||
35685 | else | |
35686 | ||
35687 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
35688 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
35689 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
35690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35691 | else | |
35692 | ac_check_lib_save_LIBS=$LIBS | |
35693 | LIBS="-lnsl $LIBS" | |
35694 | cat >conftest.$ac_ext <<_ACEOF | |
35695 | /* confdefs.h. */ | |
35696 | _ACEOF | |
35697 | cat confdefs.h >>conftest.$ac_ext | |
35698 | cat >>conftest.$ac_ext <<_ACEOF | |
35699 | /* end confdefs.h. */ | |
35700 | ||
35701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35702 | #ifdef __cplusplus | |
35703 | extern "C" | |
35704 | #endif | |
35705 | /* We use char because int might match the return type of a gcc2 | |
35706 | builtin and then its argument prototype would still apply. */ | |
35707 | char inet_addr (); | |
35708 | int | |
35709 | main () | |
35710 | { | |
35711 | inet_addr (); | |
35712 | ; | |
35713 | return 0; | |
35714 | } | |
35715 | _ACEOF | |
35716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35718 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35719 | ac_status=$? |
ac1cb8d3 VS |
35720 | grep -v '^ *+' conftest.er1 >conftest.err |
35721 | rm -f conftest.er1 | |
35722 | cat conftest.err >&5 | |
a848cd7e SC |
35723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35724 | (exit $ac_status); } && | |
dee1a63f MB |
35725 | { ac_try='test -z "$ac_c_werror_flag" |
35726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35728 | (eval $ac_try) 2>&5 | |
35729 | ac_status=$? | |
35730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35731 | (exit $ac_status); }; } && | |
35732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35734 | (eval $ac_try) 2>&5 | |
35735 | ac_status=$? | |
35736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35737 | (exit $ac_status); }; }; then | |
35738 | ac_cv_lib_nsl_inet_addr=yes | |
35739 | else | |
35740 | echo "$as_me: failed program was:" >&5 | |
35741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35742 | ||
35743 | ac_cv_lib_nsl_inet_addr=no | |
35744 | fi | |
ac1cb8d3 VS |
35745 | rm -f conftest.err conftest.$ac_objext \ |
35746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35747 | LIBS=$ac_check_lib_save_LIBS |
35748 | fi | |
35749 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
35750 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
35751 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
35752 | INET_LINK="nsl" | |
35753 | else | |
35754 | ||
35755 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
35756 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
35757 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
35758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35759 | else | |
35760 | ac_check_lib_save_LIBS=$LIBS | |
35761 | LIBS="-lresolv $LIBS" | |
35762 | cat >conftest.$ac_ext <<_ACEOF | |
35763 | /* confdefs.h. */ | |
35764 | _ACEOF | |
35765 | cat confdefs.h >>conftest.$ac_ext | |
35766 | cat >>conftest.$ac_ext <<_ACEOF | |
35767 | /* end confdefs.h. */ | |
35768 | ||
35769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35770 | #ifdef __cplusplus | |
35771 | extern "C" | |
35772 | #endif | |
35773 | /* We use char because int might match the return type of a gcc2 | |
35774 | builtin and then its argument prototype would still apply. */ | |
35775 | char inet_addr (); | |
35776 | int | |
35777 | main () | |
35778 | { | |
35779 | inet_addr (); | |
35780 | ; | |
35781 | return 0; | |
35782 | } | |
35783 | _ACEOF | |
35784 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35786 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35787 | ac_status=$? |
ac1cb8d3 VS |
35788 | grep -v '^ *+' conftest.er1 >conftest.err |
35789 | rm -f conftest.er1 | |
35790 | cat conftest.err >&5 | |
a848cd7e SC |
35791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35792 | (exit $ac_status); } && | |
dee1a63f MB |
35793 | { ac_try='test -z "$ac_c_werror_flag" |
35794 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35796 | (eval $ac_try) 2>&5 | |
35797 | ac_status=$? | |
35798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35799 | (exit $ac_status); }; } && | |
35800 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35802 | (eval $ac_try) 2>&5 | |
35803 | ac_status=$? | |
35804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35805 | (exit $ac_status); }; }; then | |
35806 | ac_cv_lib_resolv_inet_addr=yes | |
35807 | else | |
35808 | echo "$as_me: failed program was:" >&5 | |
35809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35810 | ||
35811 | ac_cv_lib_resolv_inet_addr=no | |
35812 | fi | |
ac1cb8d3 VS |
35813 | rm -f conftest.err conftest.$ac_objext \ |
35814 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35815 | LIBS=$ac_check_lib_save_LIBS |
35816 | fi | |
35817 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
35818 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
35819 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
35820 | INET_LINK="resolv" | |
35821 | else | |
35822 | ||
35823 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
35824 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
35825 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
35826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35827 | else | |
35828 | ac_check_lib_save_LIBS=$LIBS | |
35829 | LIBS="-lsocket $LIBS" | |
35830 | cat >conftest.$ac_ext <<_ACEOF | |
35831 | /* confdefs.h. */ | |
35832 | _ACEOF | |
35833 | cat confdefs.h >>conftest.$ac_ext | |
35834 | cat >>conftest.$ac_ext <<_ACEOF | |
35835 | /* end confdefs.h. */ | |
35836 | ||
35837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35838 | #ifdef __cplusplus | |
35839 | extern "C" | |
35840 | #endif | |
35841 | /* We use char because int might match the return type of a gcc2 | |
35842 | builtin and then its argument prototype would still apply. */ | |
35843 | char inet_addr (); | |
35844 | int | |
35845 | main () | |
35846 | { | |
35847 | inet_addr (); | |
35848 | ; | |
35849 | return 0; | |
35850 | } | |
35851 | _ACEOF | |
35852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35854 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35855 | ac_status=$? |
ac1cb8d3 VS |
35856 | grep -v '^ *+' conftest.er1 >conftest.err |
35857 | rm -f conftest.er1 | |
35858 | cat conftest.err >&5 | |
a848cd7e SC |
35859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35860 | (exit $ac_status); } && | |
dee1a63f MB |
35861 | { ac_try='test -z "$ac_c_werror_flag" |
35862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35864 | (eval $ac_try) 2>&5 | |
35865 | ac_status=$? | |
35866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35867 | (exit $ac_status); }; } && | |
35868 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35870 | (eval $ac_try) 2>&5 | |
35871 | ac_status=$? | |
35872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35873 | (exit $ac_status); }; }; then | |
35874 | ac_cv_lib_socket_inet_addr=yes | |
35875 | else | |
35876 | echo "$as_me: failed program was:" >&5 | |
35877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35878 | ||
35879 | ac_cv_lib_socket_inet_addr=no | |
35880 | fi | |
ac1cb8d3 VS |
35881 | rm -f conftest.err conftest.$ac_objext \ |
35882 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35883 | LIBS=$ac_check_lib_save_LIBS |
35884 | fi | |
35885 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
35886 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
35887 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
35888 | INET_LINK="socket" | |
35889 | ||
35890 | fi | |
35891 | ||
35892 | ||
35893 | ||
35894 | fi | |
35895 | ||
35896 | ||
35897 | ||
35898 | fi | |
35899 | ||
35900 | ||
35901 | ||
35902 | fi | |
35903 | done | |
35904 | ||
35905 | ||
35906 | ||
35907 | for ac_func in inet_aton | |
35908 | do | |
35909 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35910 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35911 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35912 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35914 | else | |
35915 | cat >conftest.$ac_ext <<_ACEOF | |
35916 | /* confdefs.h. */ | |
35917 | _ACEOF | |
35918 | cat confdefs.h >>conftest.$ac_ext | |
35919 | cat >>conftest.$ac_ext <<_ACEOF | |
35920 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35921 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35922 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35923 | #define $ac_func innocuous_$ac_func | |
35924 | ||
a848cd7e SC |
35925 | /* System header to define __stub macros and hopefully few prototypes, |
35926 | which can conflict with char $ac_func (); below. | |
35927 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35928 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35929 | |
a848cd7e SC |
35930 | #ifdef __STDC__ |
35931 | # include <limits.h> | |
35932 | #else | |
35933 | # include <assert.h> | |
35934 | #endif | |
ac1cb8d3 VS |
35935 | |
35936 | #undef $ac_func | |
35937 | ||
a848cd7e SC |
35938 | /* Override any gcc2 internal prototype to avoid an error. */ |
35939 | #ifdef __cplusplus | |
35940 | extern "C" | |
35941 | { | |
35942 | #endif | |
35943 | /* We use char because int might match the return type of a gcc2 | |
35944 | builtin and then its argument prototype would still apply. */ | |
35945 | char $ac_func (); | |
35946 | /* The GNU C library defines this for functions which it implements | |
35947 | to always fail with ENOSYS. Some functions are actually named | |
35948 | something starting with __ and the normal name is an alias. */ | |
35949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35950 | choke me | |
35951 | #else | |
35952 | char (*f) () = $ac_func; | |
35953 | #endif | |
35954 | #ifdef __cplusplus | |
35955 | } | |
35956 | #endif | |
35957 | ||
35958 | int | |
35959 | main () | |
35960 | { | |
35961 | return f != $ac_func; | |
35962 | ; | |
35963 | return 0; | |
35964 | } | |
35965 | _ACEOF | |
35966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35968 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35969 | ac_status=$? |
ac1cb8d3 VS |
35970 | grep -v '^ *+' conftest.er1 >conftest.err |
35971 | rm -f conftest.er1 | |
35972 | cat conftest.err >&5 | |
a848cd7e SC |
35973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35974 | (exit $ac_status); } && | |
dee1a63f MB |
35975 | { ac_try='test -z "$ac_c_werror_flag" |
35976 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35978 | (eval $ac_try) 2>&5 | |
35979 | ac_status=$? | |
35980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35981 | (exit $ac_status); }; } && | |
35982 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35984 | (eval $ac_try) 2>&5 | |
35985 | ac_status=$? | |
35986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35987 | (exit $ac_status); }; }; then | |
35988 | eval "$as_ac_var=yes" | |
35989 | else | |
35990 | echo "$as_me: failed program was:" >&5 | |
35991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35992 | ||
35993 | eval "$as_ac_var=no" | |
35994 | fi | |
ac1cb8d3 VS |
35995 | rm -f conftest.err conftest.$ac_objext \ |
35996 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35997 | fi |
35998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35999 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36000 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36001 | cat >>confdefs.h <<_ACEOF | |
36002 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36003 | _ACEOF | |
36004 | cat >>confdefs.h <<\_ACEOF | |
36005 | #define HAVE_INET_ATON 1 | |
36006 | _ACEOF | |
36007 | ||
36008 | else | |
36009 | ||
36010 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36011 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36012 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36013 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36015 | else | |
36016 | ac_check_lib_save_LIBS=$LIBS | |
36017 | LIBS="-l$INET_LINK $LIBS" | |
36018 | cat >conftest.$ac_ext <<_ACEOF | |
36019 | /* confdefs.h. */ | |
36020 | _ACEOF | |
36021 | cat confdefs.h >>conftest.$ac_ext | |
36022 | cat >>conftest.$ac_ext <<_ACEOF | |
36023 | /* end confdefs.h. */ | |
36024 | ||
36025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36026 | #ifdef __cplusplus | |
36027 | extern "C" | |
36028 | #endif | |
36029 | /* We use char because int might match the return type of a gcc2 | |
36030 | builtin and then its argument prototype would still apply. */ | |
36031 | char inet_aton (); | |
36032 | int | |
36033 | main () | |
36034 | { | |
36035 | inet_aton (); | |
36036 | ; | |
36037 | return 0; | |
36038 | } | |
36039 | _ACEOF | |
36040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36042 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36043 | ac_status=$? |
ac1cb8d3 VS |
36044 | grep -v '^ *+' conftest.er1 >conftest.err |
36045 | rm -f conftest.er1 | |
36046 | cat conftest.err >&5 | |
a848cd7e SC |
36047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36048 | (exit $ac_status); } && | |
dee1a63f MB |
36049 | { ac_try='test -z "$ac_c_werror_flag" |
36050 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36052 | (eval $ac_try) 2>&5 | |
36053 | ac_status=$? | |
36054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36055 | (exit $ac_status); }; } && | |
36056 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36058 | (eval $ac_try) 2>&5 | |
36059 | ac_status=$? | |
36060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36061 | (exit $ac_status); }; }; then | |
36062 | eval "$as_ac_Lib=yes" | |
36063 | else | |
36064 | echo "$as_me: failed program was:" >&5 | |
36065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36066 | ||
36067 | eval "$as_ac_Lib=no" | |
36068 | fi | |
ac1cb8d3 VS |
36069 | rm -f conftest.err conftest.$ac_objext \ |
36070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36071 | LIBS=$ac_check_lib_save_LIBS |
36072 | fi | |
36073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36074 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36075 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36076 | cat >>confdefs.h <<\_ACEOF | |
36077 | #define HAVE_INET_ATON 1 | |
36078 | _ACEOF | |
36079 | ||
36080 | fi | |
36081 | ||
36082 | ||
36083 | fi | |
36084 | done | |
36085 | ||
36086 | ||
36087 | if test "x$INET_LINK" != "x"; then | |
36088 | cat >>confdefs.h <<\_ACEOF | |
36089 | #define HAVE_INET_ADDR 1 | |
36090 | _ACEOF | |
36091 | ||
36092 | INET_LINK=" -l$INET_LINK" | |
36093 | fi | |
36094 | ||
36095 | fi | |
36096 | ||
36097 | ||
36098 | ||
36099 | EXTRALIBS_ESD= | |
36100 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36101 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36102 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36104 | else | |
36105 | ac_check_lib_save_LIBS=$LIBS | |
36106 | LIBS="-lesd $LIBS" | |
36107 | cat >conftest.$ac_ext <<_ACEOF | |
36108 | /* confdefs.h. */ | |
36109 | _ACEOF | |
36110 | cat confdefs.h >>conftest.$ac_ext | |
36111 | cat >>conftest.$ac_ext <<_ACEOF | |
36112 | /* end confdefs.h. */ | |
36113 | ||
36114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36115 | #ifdef __cplusplus | |
36116 | extern "C" | |
36117 | #endif | |
36118 | /* We use char because int might match the return type of a gcc2 | |
36119 | builtin and then its argument prototype would still apply. */ | |
36120 | char esd_close (); | |
36121 | int | |
36122 | main () | |
36123 | { | |
36124 | esd_close (); | |
36125 | ; | |
36126 | return 0; | |
36127 | } | |
36128 | _ACEOF | |
36129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36132 | ac_status=$? |
ac1cb8d3 VS |
36133 | grep -v '^ *+' conftest.er1 >conftest.err |
36134 | rm -f conftest.er1 | |
36135 | cat conftest.err >&5 | |
a848cd7e SC |
36136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36137 | (exit $ac_status); } && | |
dee1a63f MB |
36138 | { ac_try='test -z "$ac_c_werror_flag" |
36139 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36141 | (eval $ac_try) 2>&5 | |
36142 | ac_status=$? | |
36143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36144 | (exit $ac_status); }; } && | |
36145 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36147 | (eval $ac_try) 2>&5 | |
36148 | ac_status=$? | |
36149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36150 | (exit $ac_status); }; }; then | |
36151 | ac_cv_lib_esd_esd_close=yes | |
36152 | else | |
36153 | echo "$as_me: failed program was:" >&5 | |
36154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36155 | ||
36156 | ac_cv_lib_esd_esd_close=no | |
36157 | fi | |
ac1cb8d3 VS |
36158 | rm -f conftest.err conftest.$ac_objext \ |
36159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36160 | LIBS=$ac_check_lib_save_LIBS |
36161 | fi | |
36162 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36163 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36164 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36165 | ||
36166 | ||
36167 | for ac_header in esd.h | |
36168 | do | |
36169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36175 | fi | |
36176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36178 | else | |
36179 | # Is the header compilable? | |
36180 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36181 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36182 | cat >conftest.$ac_ext <<_ACEOF | |
36183 | /* confdefs.h. */ | |
36184 | _ACEOF | |
36185 | cat confdefs.h >>conftest.$ac_ext | |
36186 | cat >>conftest.$ac_ext <<_ACEOF | |
36187 | /* end confdefs.h. */ | |
36188 | $ac_includes_default | |
36189 | #include <$ac_header> | |
36190 | _ACEOF | |
36191 | rm -f conftest.$ac_objext | |
36192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36193 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36194 | ac_status=$? |
ac1cb8d3 VS |
36195 | grep -v '^ *+' conftest.er1 >conftest.err |
36196 | rm -f conftest.er1 | |
36197 | cat conftest.err >&5 | |
a848cd7e SC |
36198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36199 | (exit $ac_status); } && | |
dee1a63f MB |
36200 | { ac_try='test -z "$ac_c_werror_flag" |
36201 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36203 | (eval $ac_try) 2>&5 | |
36204 | ac_status=$? | |
36205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36206 | (exit $ac_status); }; } && | |
36207 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36209 | (eval $ac_try) 2>&5 | |
36210 | ac_status=$? | |
36211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36212 | (exit $ac_status); }; }; then | |
36213 | ac_header_compiler=yes | |
36214 | else | |
36215 | echo "$as_me: failed program was:" >&5 | |
36216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36217 | ||
36218 | ac_header_compiler=no | |
36219 | fi | |
ac1cb8d3 | 36220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36221 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36222 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36223 | ||
36224 | # Is the header present? | |
36225 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36226 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36227 | cat >conftest.$ac_ext <<_ACEOF | |
36228 | /* confdefs.h. */ | |
36229 | _ACEOF | |
36230 | cat confdefs.h >>conftest.$ac_ext | |
36231 | cat >>conftest.$ac_ext <<_ACEOF | |
36232 | /* end confdefs.h. */ | |
36233 | #include <$ac_header> | |
36234 | _ACEOF | |
36235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36237 | ac_status=$? | |
36238 | grep -v '^ *+' conftest.er1 >conftest.err | |
36239 | rm -f conftest.er1 | |
36240 | cat conftest.err >&5 | |
36241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36242 | (exit $ac_status); } >/dev/null; then | |
36243 | if test -s conftest.err; then | |
36244 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36245 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36246 | else |
36247 | ac_cpp_err= | |
36248 | fi | |
36249 | else | |
36250 | ac_cpp_err=yes | |
36251 | fi | |
36252 | if test -z "$ac_cpp_err"; then | |
36253 | ac_header_preproc=yes | |
36254 | else | |
36255 | echo "$as_me: failed program was:" >&5 | |
36256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36257 | ||
36258 | ac_header_preproc=no | |
36259 | fi | |
36260 | rm -f conftest.err conftest.$ac_ext | |
36261 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36262 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36263 | ||
36264 | # So? What about this header? | |
ac1cb8d3 VS |
36265 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36266 | yes:no: ) | |
a848cd7e SC |
36267 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36268 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36269 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36270 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36271 | ac_header_preproc=yes | |
a848cd7e | 36272 | ;; |
ac1cb8d3 | 36273 | no:yes:* ) |
a848cd7e SC |
36274 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36275 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36276 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36277 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36278 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36279 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36280 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36281 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36283 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36284 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36285 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36286 | ( |
36287 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36288 | ## ----------------------------------------- ## |
36289 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36290 | ## ----------------------------------------- ## | |
a848cd7e SC |
36291 | _ASBOX |
36292 | ) | | |
36293 | sed "s/^/$as_me: WARNING: /" >&2 | |
36294 | ;; | |
36295 | esac | |
36296 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36300 | else | |
ac1cb8d3 | 36301 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36302 | fi |
36303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36304 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36305 | ||
36306 | fi | |
36307 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36308 | cat >>confdefs.h <<_ACEOF | |
36309 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36310 | _ACEOF | |
36311 | ||
36312 | EXTRALIBS_ESD="-lesd" | |
36313 | ||
36314 | fi | |
36315 | ||
36316 | done | |
36317 | ||
36318 | ||
36319 | fi | |
36320 | ||
36321 | ||
36322 | ||
36323 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36324 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36325 | cat >conftest.$ac_ext <<_ACEOF | |
36326 | /* confdefs.h. */ | |
36327 | _ACEOF | |
36328 | cat confdefs.h >>conftest.$ac_ext | |
36329 | cat >>conftest.$ac_ext <<_ACEOF | |
36330 | /* end confdefs.h. */ | |
36331 | #ifdef __linux__ | |
36332 | #include <linux/cdrom.h> | |
36333 | #else | |
36334 | /* For Solaris */ | |
36335 | #include <sys/cdio.h> | |
36336 | #endif | |
36337 | ||
36338 | int | |
36339 | main () | |
36340 | { | |
36341 | struct cdrom_tocentry entry, old_entry; | |
36342 | ; | |
36343 | return 0; | |
36344 | } | |
36345 | _ACEOF | |
36346 | rm -f conftest.$ac_objext | |
36347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36348 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36349 | ac_status=$? |
ac1cb8d3 VS |
36350 | grep -v '^ *+' conftest.er1 >conftest.err |
36351 | rm -f conftest.er1 | |
36352 | cat conftest.err >&5 | |
a848cd7e SC |
36353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36354 | (exit $ac_status); } && | |
dee1a63f MB |
36355 | { ac_try='test -z "$ac_c_werror_flag" |
36356 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36358 | (eval $ac_try) 2>&5 | |
36359 | ac_status=$? | |
36360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36361 | (exit $ac_status); }; } && | |
36362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36364 | (eval $ac_try) 2>&5 | |
36365 | ac_status=$? | |
36366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36367 | (exit $ac_status); }; }; then | |
36368 | echo "$as_me:$LINENO: result: yes" >&5 | |
36369 | echo "${ECHO_T}yes" >&6 | |
36370 | cat >>confdefs.h <<\_ACEOF | |
36371 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36372 | _ACEOF | |
36373 | ||
36374 | else | |
36375 | echo "$as_me: failed program was:" >&5 | |
36376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36377 | ||
36378 | echo "$as_me:$LINENO: result: no" >&5 | |
36379 | echo "${ECHO_T}no" >&6 | |
36380 | fi | |
ac1cb8d3 | 36381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36382 | |
36383 | ||
36384 | cat >confcache <<\_ACEOF | |
36385 | # This file is a shell script that caches the results of configure | |
36386 | # tests run on this system so they can be shared between configure | |
36387 | # scripts and configure runs, see configure's option --config-cache. | |
36388 | # It is not useful on other systems. If it contains results you don't | |
36389 | # want to keep, you may remove or edit it. | |
36390 | # | |
36391 | # config.status only pays attention to the cache file if you give it | |
36392 | # the --recheck option to rerun configure. | |
36393 | # | |
36394 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36395 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36396 | # following values. | |
36397 | ||
36398 | _ACEOF | |
36399 | ||
36400 | # The following way of writing the cache mishandles newlines in values, | |
36401 | # but we know of no workaround that is simple, portable, and efficient. | |
36402 | # So, don't put newlines in cache variables' values. | |
36403 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36404 | # and sets the high bit in the cache file unless we assign to the vars. | |
36405 | { | |
36406 | (set) 2>&1 | | |
36407 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36408 | *ac_space=\ *) | |
36409 | # `set' does not quote correctly, so add quotes (double-quote | |
36410 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36411 | sed -n \ | |
ac1cb8d3 VS |
36412 | "s/'/'\\\\''/g; |
36413 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36414 | ;; |
36415 | *) | |
36416 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36417 | sed -n \ | |
ac1cb8d3 | 36418 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36419 | ;; |
36420 | esac; | |
36421 | } | | |
36422 | sed ' | |
36423 | t clear | |
36424 | : clear | |
36425 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36426 | t end | |
36427 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36428 | : end' >>confcache | |
36429 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36430 | if test -w $cache_file; then | |
36431 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36432 | cat confcache >$cache_file | |
36433 | else | |
36434 | echo "not updating unwritable cache $cache_file" | |
36435 | fi | |
36436 | fi | |
36437 | rm -f confcache | |
36438 | ||
36439 | ||
36440 | CPP_MT_FLAG= | |
36441 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
36442 | ||
36443 | ||
36444 | THREADS_LINK= | |
36445 | THREADS_CFLAGS= | |
36446 | ||
36447 | if test "$wxUSE_THREADS" = "yes" ; then | |
36448 | if test "$USE_BEOS" = 1; then | |
36449 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36450 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36451 | wxUSE_THREADS="no" | |
36452 | fi | |
36453 | fi | |
36454 | ||
36455 | if test "$wxUSE_THREADS" = "yes" ; then | |
36456 | ||
36457 | ||
36458 | THREAD_OPTS="-pthread" | |
36459 | case "${host}" in | |
36460 | *-*-solaris2* | *-*-sunos4* ) | |
36461 | if test "x$GCC" = "xyes"; then | |
36462 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36463 | else | |
36464 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36465 | fi | |
36466 | ;; | |
36467 | *-*-freebsd*) | |
36468 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36469 | ;; | |
36470 | *-*-darwin* | *-*-cygwin* ) | |
36471 | THREAD_OPTS="" | |
36472 | ;; | |
36473 | *-*-aix*) | |
36474 | THREAD_OPTS="pthreads" | |
36475 | ;; | |
36476 | *-hp-hpux* ) | |
00421666 MW |
36477 | if test "x$GCC" = "xyes"; then |
36478 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36479 | THREAD_OPTS="" | |
36480 | else | |
efdf6afe | 36481 | THREAD_OPTS="" |
a848cd7e SC |
36482 | fi |
36483 | ;; | |
36484 | ||
36485 | *-*-irix* ) | |
36486 | if test "x$GCC" = "xyes"; then | |
36487 | THREAD_OPTS="" | |
36488 | fi | |
36489 | ;; | |
36490 | ||
36491 | *-*-*UnixWare*) | |
36492 | if test "x$GCC" != "xyes"; then | |
36493 | THREAD_OPTS="-Ethread" | |
36494 | fi | |
36495 | ;; | |
36496 | esac | |
36497 | ||
36498 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36499 | ||
36500 | THREADS_OK=no | |
36501 | for flag in $THREAD_OPTS; do | |
36502 | case $flag in | |
36503 | none) | |
36504 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36505 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36506 | ;; | |
36507 | ||
36508 | -*) | |
36509 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36510 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36511 | THREADS_CFLAGS="$flag" | |
36512 | ;; | |
36513 | ||
36514 | *) | |
36515 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36516 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36517 | THREADS_LINK="-l$flag" | |
36518 | ;; | |
36519 | esac | |
36520 | ||
36521 | save_LIBS="$LIBS" | |
36522 | save_CFLAGS="$CFLAGS" | |
36523 | LIBS="$THREADS_LINK $LIBS" | |
36524 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36525 | ||
36526 | cat >conftest.$ac_ext <<_ACEOF | |
36527 | /* confdefs.h. */ | |
36528 | _ACEOF | |
36529 | cat confdefs.h >>conftest.$ac_ext | |
36530 | cat >>conftest.$ac_ext <<_ACEOF | |
36531 | /* end confdefs.h. */ | |
36532 | #include <pthread.h> | |
36533 | int | |
36534 | main () | |
36535 | { | |
36536 | pthread_create(0,0,0,0); | |
36537 | ; | |
36538 | return 0; | |
36539 | } | |
36540 | _ACEOF | |
36541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36543 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36544 | ac_status=$? |
ac1cb8d3 VS |
36545 | grep -v '^ *+' conftest.er1 >conftest.err |
36546 | rm -f conftest.er1 | |
36547 | cat conftest.err >&5 | |
a848cd7e SC |
36548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36549 | (exit $ac_status); } && | |
dee1a63f MB |
36550 | { ac_try='test -z "$ac_c_werror_flag" |
36551 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36553 | (eval $ac_try) 2>&5 | |
36554 | ac_status=$? | |
36555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36556 | (exit $ac_status); }; } && | |
36557 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36559 | (eval $ac_try) 2>&5 | |
36560 | ac_status=$? | |
36561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36562 | (exit $ac_status); }; }; then | |
36563 | THREADS_OK=yes | |
36564 | else | |
36565 | echo "$as_me: failed program was:" >&5 | |
36566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36567 | ||
36568 | fi | |
ac1cb8d3 VS |
36569 | rm -f conftest.err conftest.$ac_objext \ |
36570 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36571 | |
36572 | LIBS="$save_LIBS" | |
36573 | CFLAGS="$save_CFLAGS" | |
36574 | ||
36575 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36576 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36577 | if test "x$THREADS_OK" = "xyes"; then | |
36578 | break; | |
36579 | fi | |
36580 | ||
36581 | THREADS_LINK="" | |
36582 | THREADS_CFLAGS="" | |
36583 | done | |
36584 | ||
36585 | if test "x$THREADS_OK" != "xyes"; then | |
36586 | wxUSE_THREADS=no | |
36587 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36588 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36589 | else | |
36590 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36591 | LIBS="$THREADS_LINK $LIBS" | |
36592 | ||
36593 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36594 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36595 | flag=no | |
36596 | case "${host}" in | |
36597 | *-aix*) | |
36598 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
36599 | flag="-D_THREAD_SAFE" | |
36600 | ;; | |
36601 | *-freebsd*) | |
36602 | flag="-D_THREAD_SAFE" | |
36603 | ;; | |
36604 | *-hp-hpux* ) | |
36605 | flag="-D_REENTRANT" | |
36606 | if test "x$GCC" != "xyes"; then | |
36607 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
36608 | fi | |
36609 | ;; | |
36610 | *solaris* | alpha*-osf*) | |
36611 | flag="-D_REENTRANT" | |
36612 | ;; | |
36613 | esac | |
36614 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
36615 | echo "${ECHO_T}${flag}" >&6 | |
36616 | if test "x$flag" != xno; then | |
36617 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
36618 | fi | |
36619 | ||
36620 | if test "x$THREADS_CFLAGS" != "x"; then | |
36621 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
36622 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
36623 | fi | |
36624 | fi | |
36625 | fi | |
36626 | ||
36627 | if test "$wxUSE_THREADS" = "yes" ; then | |
36628 | ||
36629 | for ac_func in thr_setconcurrency | |
36630 | do | |
36631 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36632 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36633 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36634 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36636 | else | |
36637 | cat >conftest.$ac_ext <<_ACEOF | |
36638 | /* confdefs.h. */ | |
36639 | _ACEOF | |
36640 | cat confdefs.h >>conftest.$ac_ext | |
36641 | cat >>conftest.$ac_ext <<_ACEOF | |
36642 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36643 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36644 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36645 | #define $ac_func innocuous_$ac_func | |
36646 | ||
a848cd7e SC |
36647 | /* System header to define __stub macros and hopefully few prototypes, |
36648 | which can conflict with char $ac_func (); below. | |
36649 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36650 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36651 | |
a848cd7e SC |
36652 | #ifdef __STDC__ |
36653 | # include <limits.h> | |
36654 | #else | |
36655 | # include <assert.h> | |
36656 | #endif | |
ac1cb8d3 VS |
36657 | |
36658 | #undef $ac_func | |
36659 | ||
a848cd7e SC |
36660 | /* Override any gcc2 internal prototype to avoid an error. */ |
36661 | #ifdef __cplusplus | |
36662 | extern "C" | |
36663 | { | |
36664 | #endif | |
36665 | /* We use char because int might match the return type of a gcc2 | |
36666 | builtin and then its argument prototype would still apply. */ | |
36667 | char $ac_func (); | |
36668 | /* The GNU C library defines this for functions which it implements | |
36669 | to always fail with ENOSYS. Some functions are actually named | |
36670 | something starting with __ and the normal name is an alias. */ | |
36671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36672 | choke me | |
36673 | #else | |
36674 | char (*f) () = $ac_func; | |
36675 | #endif | |
36676 | #ifdef __cplusplus | |
36677 | } | |
36678 | #endif | |
36679 | ||
36680 | int | |
36681 | main () | |
36682 | { | |
36683 | return f != $ac_func; | |
36684 | ; | |
36685 | return 0; | |
36686 | } | |
36687 | _ACEOF | |
36688 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36690 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36691 | ac_status=$? |
ac1cb8d3 VS |
36692 | grep -v '^ *+' conftest.er1 >conftest.err |
36693 | rm -f conftest.er1 | |
36694 | cat conftest.err >&5 | |
a848cd7e SC |
36695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36696 | (exit $ac_status); } && | |
dee1a63f MB |
36697 | { ac_try='test -z "$ac_c_werror_flag" |
36698 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36700 | (eval $ac_try) 2>&5 | |
36701 | ac_status=$? | |
36702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36703 | (exit $ac_status); }; } && | |
36704 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36706 | (eval $ac_try) 2>&5 | |
36707 | ac_status=$? | |
36708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36709 | (exit $ac_status); }; }; then | |
36710 | eval "$as_ac_var=yes" | |
36711 | else | |
36712 | echo "$as_me: failed program was:" >&5 | |
36713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36714 | ||
36715 | eval "$as_ac_var=no" | |
36716 | fi | |
ac1cb8d3 VS |
36717 | rm -f conftest.err conftest.$ac_objext \ |
36718 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36719 | fi |
36720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36722 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36723 | cat >>confdefs.h <<_ACEOF | |
36724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36725 | _ACEOF | |
36726 | ||
36727 | fi | |
36728 | done | |
36729 | ||
36730 | ||
6ebeb4c7 VZ |
36731 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
36732 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
36733 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
36734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36735 | else | |
36736 | ||
36737 | cat >conftest.$ac_ext <<_ACEOF | |
36738 | /* confdefs.h. */ | |
36739 | _ACEOF | |
36740 | cat confdefs.h >>conftest.$ac_ext | |
36741 | cat >>conftest.$ac_ext <<_ACEOF | |
36742 | /* end confdefs.h. */ | |
36743 | #include <pthread.h> | |
36744 | void ThreadCleanupFunc(void *p); | |
36745 | ||
36746 | int | |
36747 | main () | |
36748 | { | |
36749 | ||
36750 | void *p; | |
36751 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
36752 | pthread_cleanup_pop(0); | |
36753 | ||
36754 | ; | |
36755 | return 0; | |
36756 | } | |
36757 | _ACEOF | |
36758 | rm -f conftest.$ac_objext | |
36759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36760 | (eval $ac_compile) 2>conftest.er1 | |
36761 | ac_status=$? | |
36762 | grep -v '^ *+' conftest.er1 >conftest.err | |
36763 | rm -f conftest.er1 | |
36764 | cat conftest.err >&5 | |
36765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36766 | (exit $ac_status); } && | |
dee1a63f MB |
36767 | { ac_try='test -z "$ac_c_werror_flag" |
36768 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
36769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36770 | (eval $ac_try) 2>&5 | |
36771 | ac_status=$? | |
36772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36773 | (exit $ac_status); }; } && | |
36774 | { ac_try='test -s conftest.$ac_objext' | |
36775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36776 | (eval $ac_try) 2>&5 | |
36777 | ac_status=$? | |
36778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36779 | (exit $ac_status); }; }; then | |
36780 | ||
36781 | wx_cv_func_pthread_cleanup=yes | |
36782 | ||
36783 | else | |
36784 | echo "$as_me: failed program was:" >&5 | |
36785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36786 | ||
36787 | ||
36788 | wx_cv_func_pthread_cleanup=no | |
36789 | ||
36790 | ||
36791 | fi | |
36792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36793 | ||
36794 | fi | |
36795 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
36796 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
36797 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
36798 | cat >>confdefs.h <<\_ACEOF | |
36799 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
36800 | _ACEOF | |
36801 | ||
36802 | fi | |
36803 | ||
a848cd7e SC |
36804 | |
36805 | for ac_header in sched.h | |
36806 | do | |
36807 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36809 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36813 | fi | |
36814 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36815 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36816 | else | |
36817 | # Is the header compilable? | |
36818 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36819 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36820 | cat >conftest.$ac_ext <<_ACEOF | |
36821 | /* confdefs.h. */ | |
36822 | _ACEOF | |
36823 | cat confdefs.h >>conftest.$ac_ext | |
36824 | cat >>conftest.$ac_ext <<_ACEOF | |
36825 | /* end confdefs.h. */ | |
36826 | $ac_includes_default | |
36827 | #include <$ac_header> | |
36828 | _ACEOF | |
36829 | rm -f conftest.$ac_objext | |
36830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36831 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36832 | ac_status=$? |
ac1cb8d3 VS |
36833 | grep -v '^ *+' conftest.er1 >conftest.err |
36834 | rm -f conftest.er1 | |
36835 | cat conftest.err >&5 | |
a848cd7e SC |
36836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36837 | (exit $ac_status); } && | |
dee1a63f MB |
36838 | { ac_try='test -z "$ac_c_werror_flag" |
36839 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36841 | (eval $ac_try) 2>&5 | |
36842 | ac_status=$? | |
36843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36844 | (exit $ac_status); }; } && | |
36845 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36847 | (eval $ac_try) 2>&5 | |
36848 | ac_status=$? | |
36849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36850 | (exit $ac_status); }; }; then | |
36851 | ac_header_compiler=yes | |
36852 | else | |
36853 | echo "$as_me: failed program was:" >&5 | |
36854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36855 | ||
36856 | ac_header_compiler=no | |
36857 | fi | |
ac1cb8d3 | 36858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36859 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36860 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36861 | ||
36862 | # Is the header present? | |
36863 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36864 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36865 | cat >conftest.$ac_ext <<_ACEOF | |
36866 | /* confdefs.h. */ | |
36867 | _ACEOF | |
36868 | cat confdefs.h >>conftest.$ac_ext | |
36869 | cat >>conftest.$ac_ext <<_ACEOF | |
36870 | /* end confdefs.h. */ | |
36871 | #include <$ac_header> | |
36872 | _ACEOF | |
36873 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36874 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36875 | ac_status=$? | |
36876 | grep -v '^ *+' conftest.er1 >conftest.err | |
36877 | rm -f conftest.er1 | |
36878 | cat conftest.err >&5 | |
36879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36880 | (exit $ac_status); } >/dev/null; then | |
36881 | if test -s conftest.err; then | |
36882 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36883 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36884 | else |
36885 | ac_cpp_err= | |
36886 | fi | |
36887 | else | |
36888 | ac_cpp_err=yes | |
36889 | fi | |
36890 | if test -z "$ac_cpp_err"; then | |
36891 | ac_header_preproc=yes | |
36892 | else | |
36893 | echo "$as_me: failed program was:" >&5 | |
36894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36895 | ||
36896 | ac_header_preproc=no | |
36897 | fi | |
36898 | rm -f conftest.err conftest.$ac_ext | |
36899 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36900 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36901 | ||
36902 | # So? What about this header? | |
ac1cb8d3 VS |
36903 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36904 | yes:no: ) | |
a848cd7e SC |
36905 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36906 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36908 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36909 | ac_header_preproc=yes | |
a848cd7e | 36910 | ;; |
ac1cb8d3 | 36911 | no:yes:* ) |
a848cd7e SC |
36912 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36913 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36914 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36915 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36916 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36917 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36918 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36919 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36920 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36921 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36922 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36923 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36924 | ( |
36925 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36926 | ## ----------------------------------------- ## |
36927 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36928 | ## ----------------------------------------- ## | |
a848cd7e SC |
36929 | _ASBOX |
36930 | ) | | |
36931 | sed "s/^/$as_me: WARNING: /" >&2 | |
36932 | ;; | |
36933 | esac | |
36934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36938 | else | |
ac1cb8d3 | 36939 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36940 | fi |
36941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36943 | ||
36944 | fi | |
36945 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36946 | cat >>confdefs.h <<_ACEOF | |
36947 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36948 | _ACEOF | |
36949 | ||
36950 | fi | |
36951 | ||
36952 | done | |
36953 | ||
36954 | if test "$ac_cv_header_sched_h" = "yes"; then | |
36955 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
36956 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
36957 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
36958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36959 | else | |
36960 | cat >conftest.$ac_ext <<_ACEOF | |
36961 | /* confdefs.h. */ | |
36962 | _ACEOF | |
36963 | cat confdefs.h >>conftest.$ac_ext | |
36964 | cat >>conftest.$ac_ext <<_ACEOF | |
36965 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36966 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
36967 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36968 | #define sched_yield innocuous_sched_yield | |
36969 | ||
a848cd7e SC |
36970 | /* System header to define __stub macros and hopefully few prototypes, |
36971 | which can conflict with char sched_yield (); below. | |
36972 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36973 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36974 | |
a848cd7e SC |
36975 | #ifdef __STDC__ |
36976 | # include <limits.h> | |
36977 | #else | |
36978 | # include <assert.h> | |
36979 | #endif | |
ac1cb8d3 VS |
36980 | |
36981 | #undef sched_yield | |
36982 | ||
a848cd7e SC |
36983 | /* Override any gcc2 internal prototype to avoid an error. */ |
36984 | #ifdef __cplusplus | |
36985 | extern "C" | |
36986 | { | |
36987 | #endif | |
36988 | /* We use char because int might match the return type of a gcc2 | |
36989 | builtin and then its argument prototype would still apply. */ | |
36990 | char sched_yield (); | |
36991 | /* The GNU C library defines this for functions which it implements | |
36992 | to always fail with ENOSYS. Some functions are actually named | |
36993 | something starting with __ and the normal name is an alias. */ | |
36994 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
36995 | choke me | |
36996 | #else | |
36997 | char (*f) () = sched_yield; | |
36998 | #endif | |
36999 | #ifdef __cplusplus | |
37000 | } | |
37001 | #endif | |
37002 | ||
37003 | int | |
37004 | main () | |
37005 | { | |
37006 | return f != sched_yield; | |
37007 | ; | |
37008 | return 0; | |
37009 | } | |
37010 | _ACEOF | |
37011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37013 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37014 | ac_status=$? |
ac1cb8d3 VS |
37015 | grep -v '^ *+' conftest.er1 >conftest.err |
37016 | rm -f conftest.er1 | |
37017 | cat conftest.err >&5 | |
a848cd7e SC |
37018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37019 | (exit $ac_status); } && | |
dee1a63f MB |
37020 | { ac_try='test -z "$ac_c_werror_flag" |
37021 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37023 | (eval $ac_try) 2>&5 | |
37024 | ac_status=$? | |
37025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37026 | (exit $ac_status); }; } && | |
37027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37029 | (eval $ac_try) 2>&5 | |
37030 | ac_status=$? | |
37031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37032 | (exit $ac_status); }; }; then | |
37033 | ac_cv_func_sched_yield=yes | |
37034 | else | |
37035 | echo "$as_me: failed program was:" >&5 | |
37036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37037 | ||
37038 | ac_cv_func_sched_yield=no | |
37039 | fi | |
ac1cb8d3 VS |
37040 | rm -f conftest.err conftest.$ac_objext \ |
37041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37042 | fi |
37043 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37044 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37045 | if test $ac_cv_func_sched_yield = yes; then | |
37046 | cat >>confdefs.h <<\_ACEOF | |
37047 | #define HAVE_SCHED_YIELD 1 | |
37048 | _ACEOF | |
37049 | ||
37050 | else | |
37051 | ||
37052 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37053 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37054 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37056 | else | |
37057 | ac_check_lib_save_LIBS=$LIBS | |
37058 | LIBS="-lposix4 $LIBS" | |
37059 | cat >conftest.$ac_ext <<_ACEOF | |
37060 | /* confdefs.h. */ | |
37061 | _ACEOF | |
37062 | cat confdefs.h >>conftest.$ac_ext | |
37063 | cat >>conftest.$ac_ext <<_ACEOF | |
37064 | /* end confdefs.h. */ | |
37065 | ||
37066 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37067 | #ifdef __cplusplus | |
37068 | extern "C" | |
37069 | #endif | |
37070 | /* We use char because int might match the return type of a gcc2 | |
37071 | builtin and then its argument prototype would still apply. */ | |
37072 | char sched_yield (); | |
37073 | int | |
37074 | main () | |
37075 | { | |
37076 | sched_yield (); | |
37077 | ; | |
37078 | return 0; | |
37079 | } | |
37080 | _ACEOF | |
37081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37083 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37084 | ac_status=$? |
ac1cb8d3 VS |
37085 | grep -v '^ *+' conftest.er1 >conftest.err |
37086 | rm -f conftest.er1 | |
37087 | cat conftest.err >&5 | |
a848cd7e SC |
37088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37089 | (exit $ac_status); } && | |
dee1a63f MB |
37090 | { ac_try='test -z "$ac_c_werror_flag" |
37091 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37093 | (eval $ac_try) 2>&5 | |
37094 | ac_status=$? | |
37095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37096 | (exit $ac_status); }; } && | |
37097 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37099 | (eval $ac_try) 2>&5 | |
37100 | ac_status=$? | |
37101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37102 | (exit $ac_status); }; }; then | |
37103 | ac_cv_lib_posix4_sched_yield=yes | |
37104 | else | |
37105 | echo "$as_me: failed program was:" >&5 | |
37106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37107 | ||
37108 | ac_cv_lib_posix4_sched_yield=no | |
37109 | fi | |
ac1cb8d3 VS |
37110 | rm -f conftest.err conftest.$ac_objext \ |
37111 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37112 | LIBS=$ac_check_lib_save_LIBS |
37113 | fi | |
37114 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37115 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37116 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37117 | cat >>confdefs.h <<\_ACEOF | |
37118 | #define HAVE_SCHED_YIELD 1 | |
37119 | _ACEOF | |
37120 | POSIX4_LINK=" -lposix4" | |
37121 | else | |
37122 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37123 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37124 | ||
37125 | fi | |
37126 | ||
37127 | ||
37128 | ||
37129 | fi | |
37130 | ||
37131 | fi | |
37132 | ||
37133 | HAVE_PRIOR_FUNCS=0 | |
37134 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37135 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37136 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37138 | else | |
37139 | cat >conftest.$ac_ext <<_ACEOF | |
37140 | /* confdefs.h. */ | |
37141 | _ACEOF | |
37142 | cat confdefs.h >>conftest.$ac_ext | |
37143 | cat >>conftest.$ac_ext <<_ACEOF | |
37144 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37145 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37147 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37148 | ||
a848cd7e SC |
37149 | /* System header to define __stub macros and hopefully few prototypes, |
37150 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37152 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37153 | |
a848cd7e SC |
37154 | #ifdef __STDC__ |
37155 | # include <limits.h> | |
37156 | #else | |
37157 | # include <assert.h> | |
37158 | #endif | |
ac1cb8d3 VS |
37159 | |
37160 | #undef pthread_attr_getschedpolicy | |
37161 | ||
a848cd7e SC |
37162 | /* Override any gcc2 internal prototype to avoid an error. */ |
37163 | #ifdef __cplusplus | |
37164 | extern "C" | |
37165 | { | |
37166 | #endif | |
37167 | /* We use char because int might match the return type of a gcc2 | |
37168 | builtin and then its argument prototype would still apply. */ | |
37169 | char pthread_attr_getschedpolicy (); | |
37170 | /* The GNU C library defines this for functions which it implements | |
37171 | to always fail with ENOSYS. Some functions are actually named | |
37172 | something starting with __ and the normal name is an alias. */ | |
37173 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37174 | choke me | |
37175 | #else | |
37176 | char (*f) () = pthread_attr_getschedpolicy; | |
37177 | #endif | |
37178 | #ifdef __cplusplus | |
37179 | } | |
37180 | #endif | |
37181 | ||
37182 | int | |
37183 | main () | |
37184 | { | |
37185 | return f != pthread_attr_getschedpolicy; | |
37186 | ; | |
37187 | return 0; | |
37188 | } | |
37189 | _ACEOF | |
37190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37193 | ac_status=$? |
ac1cb8d3 VS |
37194 | grep -v '^ *+' conftest.er1 >conftest.err |
37195 | rm -f conftest.er1 | |
37196 | cat conftest.err >&5 | |
a848cd7e SC |
37197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37198 | (exit $ac_status); } && | |
dee1a63f MB |
37199 | { ac_try='test -z "$ac_c_werror_flag" |
37200 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37202 | (eval $ac_try) 2>&5 | |
37203 | ac_status=$? | |
37204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37205 | (exit $ac_status); }; } && | |
37206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37208 | (eval $ac_try) 2>&5 | |
37209 | ac_status=$? | |
37210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37211 | (exit $ac_status); }; }; then | |
37212 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37213 | else | |
37214 | echo "$as_me: failed program was:" >&5 | |
37215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37216 | ||
37217 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37218 | fi | |
ac1cb8d3 VS |
37219 | rm -f conftest.err conftest.$ac_objext \ |
37220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37221 | fi |
37222 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37223 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37224 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37225 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37226 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37227 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37229 | else | |
37230 | cat >conftest.$ac_ext <<_ACEOF | |
37231 | /* confdefs.h. */ | |
37232 | _ACEOF | |
37233 | cat confdefs.h >>conftest.$ac_ext | |
37234 | cat >>conftest.$ac_ext <<_ACEOF | |
37235 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37236 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37237 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37238 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37239 | ||
a848cd7e SC |
37240 | /* System header to define __stub macros and hopefully few prototypes, |
37241 | which can conflict with char pthread_attr_setschedparam (); below. | |
37242 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37243 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37244 | |
a848cd7e SC |
37245 | #ifdef __STDC__ |
37246 | # include <limits.h> | |
37247 | #else | |
37248 | # include <assert.h> | |
37249 | #endif | |
ac1cb8d3 VS |
37250 | |
37251 | #undef pthread_attr_setschedparam | |
37252 | ||
a848cd7e SC |
37253 | /* Override any gcc2 internal prototype to avoid an error. */ |
37254 | #ifdef __cplusplus | |
37255 | extern "C" | |
37256 | { | |
37257 | #endif | |
37258 | /* We use char because int might match the return type of a gcc2 | |
37259 | builtin and then its argument prototype would still apply. */ | |
37260 | char pthread_attr_setschedparam (); | |
37261 | /* The GNU C library defines this for functions which it implements | |
37262 | to always fail with ENOSYS. Some functions are actually named | |
37263 | something starting with __ and the normal name is an alias. */ | |
37264 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37265 | choke me | |
37266 | #else | |
37267 | char (*f) () = pthread_attr_setschedparam; | |
37268 | #endif | |
37269 | #ifdef __cplusplus | |
37270 | } | |
37271 | #endif | |
37272 | ||
37273 | int | |
37274 | main () | |
37275 | { | |
37276 | return f != pthread_attr_setschedparam; | |
37277 | ; | |
37278 | return 0; | |
37279 | } | |
37280 | _ACEOF | |
37281 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37283 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37284 | ac_status=$? |
ac1cb8d3 VS |
37285 | grep -v '^ *+' conftest.er1 >conftest.err |
37286 | rm -f conftest.er1 | |
37287 | cat conftest.err >&5 | |
a848cd7e SC |
37288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37289 | (exit $ac_status); } && | |
dee1a63f MB |
37290 | { ac_try='test -z "$ac_c_werror_flag" |
37291 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37293 | (eval $ac_try) 2>&5 | |
37294 | ac_status=$? | |
37295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37296 | (exit $ac_status); }; } && | |
37297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37299 | (eval $ac_try) 2>&5 | |
37300 | ac_status=$? | |
37301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37302 | (exit $ac_status); }; }; then | |
37303 | ac_cv_func_pthread_attr_setschedparam=yes | |
37304 | else | |
37305 | echo "$as_me: failed program was:" >&5 | |
37306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37307 | ||
37308 | ac_cv_func_pthread_attr_setschedparam=no | |
37309 | fi | |
ac1cb8d3 VS |
37310 | rm -f conftest.err conftest.$ac_objext \ |
37311 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37312 | fi |
37313 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37314 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37315 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37316 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37317 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37318 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37320 | else | |
37321 | cat >conftest.$ac_ext <<_ACEOF | |
37322 | /* confdefs.h. */ | |
37323 | _ACEOF | |
37324 | cat confdefs.h >>conftest.$ac_ext | |
37325 | cat >>conftest.$ac_ext <<_ACEOF | |
37326 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37327 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37328 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37329 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37330 | ||
a848cd7e SC |
37331 | /* System header to define __stub macros and hopefully few prototypes, |
37332 | which can conflict with char sched_get_priority_max (); below. | |
37333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37334 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37335 | |
a848cd7e SC |
37336 | #ifdef __STDC__ |
37337 | # include <limits.h> | |
37338 | #else | |
37339 | # include <assert.h> | |
37340 | #endif | |
ac1cb8d3 VS |
37341 | |
37342 | #undef sched_get_priority_max | |
37343 | ||
a848cd7e SC |
37344 | /* Override any gcc2 internal prototype to avoid an error. */ |
37345 | #ifdef __cplusplus | |
37346 | extern "C" | |
37347 | { | |
37348 | #endif | |
37349 | /* We use char because int might match the return type of a gcc2 | |
37350 | builtin and then its argument prototype would still apply. */ | |
37351 | char sched_get_priority_max (); | |
37352 | /* The GNU C library defines this for functions which it implements | |
37353 | to always fail with ENOSYS. Some functions are actually named | |
37354 | something starting with __ and the normal name is an alias. */ | |
37355 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37356 | choke me | |
37357 | #else | |
37358 | char (*f) () = sched_get_priority_max; | |
37359 | #endif | |
37360 | #ifdef __cplusplus | |
37361 | } | |
37362 | #endif | |
37363 | ||
37364 | int | |
37365 | main () | |
37366 | { | |
37367 | return f != sched_get_priority_max; | |
37368 | ; | |
37369 | return 0; | |
37370 | } | |
37371 | _ACEOF | |
37372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37374 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37375 | ac_status=$? |
ac1cb8d3 VS |
37376 | grep -v '^ *+' conftest.er1 >conftest.err |
37377 | rm -f conftest.er1 | |
37378 | cat conftest.err >&5 | |
a848cd7e SC |
37379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37380 | (exit $ac_status); } && | |
dee1a63f MB |
37381 | { ac_try='test -z "$ac_c_werror_flag" |
37382 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37384 | (eval $ac_try) 2>&5 | |
37385 | ac_status=$? | |
37386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37387 | (exit $ac_status); }; } && | |
37388 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37390 | (eval $ac_try) 2>&5 | |
37391 | ac_status=$? | |
37392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37393 | (exit $ac_status); }; }; then | |
37394 | ac_cv_func_sched_get_priority_max=yes | |
37395 | else | |
37396 | echo "$as_me: failed program was:" >&5 | |
37397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37398 | ||
37399 | ac_cv_func_sched_get_priority_max=no | |
37400 | fi | |
ac1cb8d3 VS |
37401 | rm -f conftest.err conftest.$ac_objext \ |
37402 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37403 | fi |
37404 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37405 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37406 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37407 | HAVE_PRIOR_FUNCS=1 | |
37408 | else | |
37409 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37410 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37411 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37413 | else | |
37414 | ac_check_lib_save_LIBS=$LIBS | |
37415 | LIBS="-lposix4 $LIBS" | |
37416 | cat >conftest.$ac_ext <<_ACEOF | |
37417 | /* confdefs.h. */ | |
37418 | _ACEOF | |
37419 | cat confdefs.h >>conftest.$ac_ext | |
37420 | cat >>conftest.$ac_ext <<_ACEOF | |
37421 | /* end confdefs.h. */ | |
37422 | ||
37423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37424 | #ifdef __cplusplus | |
37425 | extern "C" | |
37426 | #endif | |
37427 | /* We use char because int might match the return type of a gcc2 | |
37428 | builtin and then its argument prototype would still apply. */ | |
37429 | char sched_get_priority_max (); | |
37430 | int | |
37431 | main () | |
37432 | { | |
37433 | sched_get_priority_max (); | |
37434 | ; | |
37435 | return 0; | |
37436 | } | |
37437 | _ACEOF | |
37438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37440 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37441 | ac_status=$? |
ac1cb8d3 VS |
37442 | grep -v '^ *+' conftest.er1 >conftest.err |
37443 | rm -f conftest.er1 | |
37444 | cat conftest.err >&5 | |
a848cd7e SC |
37445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37446 | (exit $ac_status); } && | |
dee1a63f MB |
37447 | { ac_try='test -z "$ac_c_werror_flag" |
37448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37450 | (eval $ac_try) 2>&5 | |
37451 | ac_status=$? | |
37452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37453 | (exit $ac_status); }; } && | |
37454 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37456 | (eval $ac_try) 2>&5 | |
37457 | ac_status=$? | |
37458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37459 | (exit $ac_status); }; }; then | |
37460 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37461 | else | |
37462 | echo "$as_me: failed program was:" >&5 | |
37463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37464 | ||
37465 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37466 | fi | |
ac1cb8d3 VS |
37467 | rm -f conftest.err conftest.$ac_objext \ |
37468 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37469 | LIBS=$ac_check_lib_save_LIBS |
37470 | fi | |
37471 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37472 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37473 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37474 | ||
37475 | HAVE_PRIOR_FUNCS=1 | |
37476 | POSIX4_LINK=" -lposix4" | |
37477 | ||
37478 | fi | |
37479 | ||
37480 | ||
37481 | fi | |
37482 | ||
37483 | ||
37484 | fi | |
37485 | ||
37486 | ||
37487 | fi | |
37488 | ||
37489 | ||
37490 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37491 | cat >>confdefs.h <<\_ACEOF | |
37492 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37493 | _ACEOF | |
37494 | ||
37495 | else | |
37496 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37497 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37498 | fi | |
37499 | ||
37500 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37501 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37502 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37504 | else | |
37505 | cat >conftest.$ac_ext <<_ACEOF | |
37506 | /* confdefs.h. */ | |
37507 | _ACEOF | |
37508 | cat confdefs.h >>conftest.$ac_ext | |
37509 | cat >>conftest.$ac_ext <<_ACEOF | |
37510 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37511 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37512 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37513 | #define pthread_cancel innocuous_pthread_cancel | |
37514 | ||
a848cd7e SC |
37515 | /* System header to define __stub macros and hopefully few prototypes, |
37516 | which can conflict with char pthread_cancel (); below. | |
37517 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37518 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37519 | |
a848cd7e SC |
37520 | #ifdef __STDC__ |
37521 | # include <limits.h> | |
37522 | #else | |
37523 | # include <assert.h> | |
37524 | #endif | |
ac1cb8d3 VS |
37525 | |
37526 | #undef pthread_cancel | |
37527 | ||
a848cd7e SC |
37528 | /* Override any gcc2 internal prototype to avoid an error. */ |
37529 | #ifdef __cplusplus | |
37530 | extern "C" | |
37531 | { | |
37532 | #endif | |
37533 | /* We use char because int might match the return type of a gcc2 | |
37534 | builtin and then its argument prototype would still apply. */ | |
37535 | char pthread_cancel (); | |
37536 | /* The GNU C library defines this for functions which it implements | |
37537 | to always fail with ENOSYS. Some functions are actually named | |
37538 | something starting with __ and the normal name is an alias. */ | |
37539 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37540 | choke me | |
37541 | #else | |
37542 | char (*f) () = pthread_cancel; | |
37543 | #endif | |
37544 | #ifdef __cplusplus | |
37545 | } | |
37546 | #endif | |
37547 | ||
37548 | int | |
37549 | main () | |
37550 | { | |
37551 | return f != pthread_cancel; | |
37552 | ; | |
37553 | return 0; | |
37554 | } | |
37555 | _ACEOF | |
37556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37558 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37559 | ac_status=$? |
ac1cb8d3 VS |
37560 | grep -v '^ *+' conftest.er1 >conftest.err |
37561 | rm -f conftest.er1 | |
37562 | cat conftest.err >&5 | |
a848cd7e SC |
37563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37564 | (exit $ac_status); } && | |
dee1a63f MB |
37565 | { ac_try='test -z "$ac_c_werror_flag" |
37566 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37568 | (eval $ac_try) 2>&5 | |
37569 | ac_status=$? | |
37570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37571 | (exit $ac_status); }; } && | |
37572 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37574 | (eval $ac_try) 2>&5 | |
37575 | ac_status=$? | |
37576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37577 | (exit $ac_status); }; }; then | |
37578 | ac_cv_func_pthread_cancel=yes | |
37579 | else | |
37580 | echo "$as_me: failed program was:" >&5 | |
37581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37582 | ||
37583 | ac_cv_func_pthread_cancel=no | |
37584 | fi | |
ac1cb8d3 VS |
37585 | rm -f conftest.err conftest.$ac_objext \ |
37586 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37587 | fi |
37588 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37589 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37590 | if test $ac_cv_func_pthread_cancel = yes; then | |
37591 | cat >>confdefs.h <<\_ACEOF | |
37592 | #define HAVE_PTHREAD_CANCEL 1 | |
37593 | _ACEOF | |
37594 | ||
37595 | else | |
37596 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37597 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37598 | fi | |
37599 | ||
37600 | ||
abc736fd MW |
37601 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
37602 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
37603 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
37604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37605 | else | |
37606 | cat >conftest.$ac_ext <<_ACEOF | |
37607 | /* confdefs.h. */ | |
37608 | _ACEOF | |
37609 | cat confdefs.h >>conftest.$ac_ext | |
37610 | cat >>conftest.$ac_ext <<_ACEOF | |
37611 | /* end confdefs.h. */ | |
37612 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
37613 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37614 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
37615 | ||
37616 | /* System header to define __stub macros and hopefully few prototypes, | |
37617 | which can conflict with char pthread_attr_setstacksize (); below. | |
37618 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37619 | <limits.h> exists even on freestanding compilers. */ | |
37620 | ||
37621 | #ifdef __STDC__ | |
37622 | # include <limits.h> | |
37623 | #else | |
37624 | # include <assert.h> | |
37625 | #endif | |
37626 | ||
37627 | #undef pthread_attr_setstacksize | |
37628 | ||
37629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37630 | #ifdef __cplusplus | |
37631 | extern "C" | |
37632 | { | |
37633 | #endif | |
37634 | /* We use char because int might match the return type of a gcc2 | |
37635 | builtin and then its argument prototype would still apply. */ | |
37636 | char pthread_attr_setstacksize (); | |
37637 | /* The GNU C library defines this for functions which it implements | |
37638 | to always fail with ENOSYS. Some functions are actually named | |
37639 | something starting with __ and the normal name is an alias. */ | |
37640 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
37641 | choke me | |
37642 | #else | |
37643 | char (*f) () = pthread_attr_setstacksize; | |
37644 | #endif | |
37645 | #ifdef __cplusplus | |
37646 | } | |
37647 | #endif | |
37648 | ||
37649 | int | |
37650 | main () | |
37651 | { | |
37652 | return f != pthread_attr_setstacksize; | |
37653 | ; | |
37654 | return 0; | |
37655 | } | |
37656 | _ACEOF | |
37657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37659 | (eval $ac_link) 2>conftest.er1 | |
37660 | ac_status=$? | |
37661 | grep -v '^ *+' conftest.er1 >conftest.err | |
37662 | rm -f conftest.er1 | |
37663 | cat conftest.err >&5 | |
37664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37665 | (exit $ac_status); } && | |
dee1a63f MB |
37666 | { ac_try='test -z "$ac_c_werror_flag" |
37667 | || test ! -s conftest.err' | |
abc736fd MW |
37668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37669 | (eval $ac_try) 2>&5 | |
37670 | ac_status=$? | |
37671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37672 | (exit $ac_status); }; } && | |
37673 | { ac_try='test -s conftest$ac_exeext' | |
37674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37675 | (eval $ac_try) 2>&5 | |
37676 | ac_status=$? | |
37677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37678 | (exit $ac_status); }; }; then | |
37679 | ac_cv_func_pthread_attr_setstacksize=yes | |
37680 | else | |
37681 | echo "$as_me: failed program was:" >&5 | |
37682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37683 | ||
37684 | ac_cv_func_pthread_attr_setstacksize=no | |
37685 | fi | |
37686 | rm -f conftest.err conftest.$ac_objext \ | |
37687 | conftest$ac_exeext conftest.$ac_ext | |
37688 | fi | |
37689 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
37690 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
37691 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
37692 | cat >>confdefs.h <<\_ACEOF | |
37693 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
37694 | _ACEOF | |
37695 | ||
37696 | fi | |
37697 | ||
a848cd7e SC |
37698 | |
37699 | ||
37700 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
37701 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
37702 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
37703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37704 | else | |
37705 | ||
37706 | cat >conftest.$ac_ext <<_ACEOF | |
37707 | /* confdefs.h. */ | |
37708 | _ACEOF | |
37709 | cat confdefs.h >>conftest.$ac_ext | |
37710 | cat >>conftest.$ac_ext <<_ACEOF | |
37711 | /* end confdefs.h. */ | |
37712 | #include <pthread.h> | |
37713 | int | |
37714 | main () | |
37715 | { | |
37716 | ||
37717 | pthread_mutexattr_t attr; | |
37718 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37719 | ||
37720 | ; | |
37721 | return 0; | |
37722 | } | |
37723 | _ACEOF | |
37724 | rm -f conftest.$ac_objext | |
37725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37726 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37727 | ac_status=$? |
ac1cb8d3 VS |
37728 | grep -v '^ *+' conftest.er1 >conftest.err |
37729 | rm -f conftest.er1 | |
37730 | cat conftest.err >&5 | |
a848cd7e SC |
37731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37732 | (exit $ac_status); } && | |
dee1a63f MB |
37733 | { ac_try='test -z "$ac_c_werror_flag" |
37734 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37736 | (eval $ac_try) 2>&5 | |
37737 | ac_status=$? | |
37738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37739 | (exit $ac_status); }; } && | |
37740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37742 | (eval $ac_try) 2>&5 | |
37743 | ac_status=$? | |
37744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37745 | (exit $ac_status); }; }; then | |
123dca7d | 37746 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
37747 | else |
37748 | echo "$as_me: failed program was:" >&5 | |
37749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37750 | ||
123dca7d | 37751 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
37752 | |
37753 | fi | |
ac1cb8d3 | 37754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37755 | |
37756 | fi | |
37757 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
37758 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
37759 | ||
37760 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
37761 | cat >>confdefs.h <<\_ACEOF | |
37762 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
37763 | _ACEOF | |
37764 | ||
123dca7d VZ |
37765 | |
37766 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
37767 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
37768 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
37769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37770 | else | |
37771 | ||
37772 | cat >conftest.$ac_ext <<_ACEOF | |
37773 | /* confdefs.h. */ | |
37774 | _ACEOF | |
37775 | cat confdefs.h >>conftest.$ac_ext | |
37776 | cat >>conftest.$ac_ext <<_ACEOF | |
37777 | /* end confdefs.h. */ | |
37778 | #include <pthread.h> | |
37779 | int | |
37780 | main () | |
37781 | { | |
37782 | ||
37783 | pthread_mutexattr_t attr; | |
37784 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37785 | ||
37786 | ; | |
37787 | return 0; | |
37788 | } | |
37789 | _ACEOF | |
37790 | rm -f conftest.$ac_objext | |
37791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37792 | (eval $ac_compile) 2>conftest.er1 | |
37793 | ac_status=$? | |
37794 | grep -v '^ *+' conftest.er1 >conftest.err | |
37795 | rm -f conftest.er1 | |
37796 | cat conftest.err >&5 | |
37797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37798 | (exit $ac_status); } && | |
dee1a63f MB |
37799 | { ac_try='test -z "$ac_c_werror_flag" |
37800 | || test ! -s conftest.err' | |
123dca7d VZ |
37801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37802 | (eval $ac_try) 2>&5 | |
37803 | ac_status=$? | |
37804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37805 | (exit $ac_status); }; } && | |
37806 | { ac_try='test -s conftest.$ac_objext' | |
37807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37808 | (eval $ac_try) 2>&5 | |
37809 | ac_status=$? | |
37810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37811 | (exit $ac_status); }; }; then | |
37812 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
37813 | else | |
37814 | echo "$as_me: failed program was:" >&5 | |
37815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37816 | ||
37817 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
37818 | ||
37819 | fi | |
37820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37821 | ||
37822 | fi | |
37823 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
37824 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
37825 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
37826 | cat >>confdefs.h <<\_ACEOF | |
37827 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
37828 | _ACEOF | |
37829 | ||
37830 | fi | |
a848cd7e SC |
37831 | else |
37832 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
37833 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
37834 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
37835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37836 | else | |
37837 | ||
37838 | cat >conftest.$ac_ext <<_ACEOF | |
37839 | /* confdefs.h. */ | |
37840 | _ACEOF | |
37841 | cat confdefs.h >>conftest.$ac_ext | |
37842 | cat >>conftest.$ac_ext <<_ACEOF | |
37843 | /* end confdefs.h. */ | |
37844 | #include <pthread.h> | |
37845 | int | |
37846 | main () | |
37847 | { | |
37848 | ||
37849 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
37850 | ||
37851 | ; | |
37852 | return 0; | |
37853 | } | |
37854 | _ACEOF | |
37855 | rm -f conftest.$ac_objext | |
37856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37857 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37858 | ac_status=$? |
ac1cb8d3 VS |
37859 | grep -v '^ *+' conftest.er1 >conftest.err |
37860 | rm -f conftest.er1 | |
37861 | cat conftest.err >&5 | |
a848cd7e SC |
37862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37863 | (exit $ac_status); } && | |
dee1a63f MB |
37864 | { ac_try='test -z "$ac_c_werror_flag" |
37865 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37867 | (eval $ac_try) 2>&5 | |
37868 | ac_status=$? | |
37869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37870 | (exit $ac_status); }; } && | |
37871 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37873 | (eval $ac_try) 2>&5 | |
37874 | ac_status=$? | |
37875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37876 | (exit $ac_status); }; }; then | |
37877 | ||
37878 | wx_cv_type_pthread_rec_mutex_init=yes | |
37879 | ||
37880 | else | |
37881 | echo "$as_me: failed program was:" >&5 | |
37882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37883 | ||
37884 | ||
37885 | wx_cv_type_pthread_rec_mutex_init=no | |
37886 | ||
37887 | ||
37888 | fi | |
ac1cb8d3 | 37889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37890 | |
37891 | fi | |
37892 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
37893 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
37894 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
37895 | cat >>confdefs.h <<\_ACEOF | |
37896 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
37897 | _ACEOF | |
37898 | ||
37899 | else | |
37900 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
37901 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
37902 | fi | |
37903 | fi | |
37904 | fi | |
37905 | ||
37906 | else | |
37907 | if test "$wxUSE_THREADS" = "yes" ; then | |
37908 | case "${host}" in | |
37909 | *-*-mingw32* ) | |
37910 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
37911 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
37912 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
37913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37914 | else | |
37915 | ||
37916 | CFLAGS_OLD="$CFLAGS" | |
37917 | CFLAGS="$CFLAGS -mthreads" | |
37918 | cat >conftest.$ac_ext <<_ACEOF | |
37919 | /* confdefs.h. */ | |
37920 | _ACEOF | |
37921 | cat confdefs.h >>conftest.$ac_ext | |
37922 | cat >>conftest.$ac_ext <<_ACEOF | |
37923 | /* end confdefs.h. */ | |
37924 | ||
37925 | int | |
37926 | main () | |
37927 | { | |
37928 | ||
37929 | ; | |
37930 | return 0; | |
37931 | } | |
37932 | _ACEOF | |
37933 | rm -f conftest.$ac_objext | |
37934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37936 | ac_status=$? |
ac1cb8d3 VS |
37937 | grep -v '^ *+' conftest.er1 >conftest.err |
37938 | rm -f conftest.er1 | |
37939 | cat conftest.err >&5 | |
a848cd7e SC |
37940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37941 | (exit $ac_status); } && | |
dee1a63f MB |
37942 | { ac_try='test -z "$ac_c_werror_flag" |
37943 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37945 | (eval $ac_try) 2>&5 | |
37946 | ac_status=$? | |
37947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37948 | (exit $ac_status); }; } && | |
37949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37951 | (eval $ac_try) 2>&5 | |
37952 | ac_status=$? | |
37953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37954 | (exit $ac_status); }; }; then | |
37955 | wx_cv_cflags_mthread=yes | |
37956 | else | |
37957 | echo "$as_me: failed program was:" >&5 | |
37958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37959 | ||
37960 | wx_cv_cflags_mthread=no | |
37961 | ||
37962 | fi | |
ac1cb8d3 | 37963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37964 | |
37965 | ||
37966 | fi | |
37967 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
37968 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
37969 | ||
37970 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
37971 | CXXFLAGS="$CXXFLAGS -mthreads" | |
37972 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
37973 | LDFLAGS="$LDFLAGS -mthreads" | |
37974 | else | |
37975 | CFLAGS="$CFLAGS_OLD" | |
37976 | fi | |
37977 | ;; | |
37978 | *-pc-os2*emx ) | |
37979 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37980 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37981 | LDFLAGS="$LDFLAGS -Zmt" | |
37982 | ;; | |
37983 | esac | |
37984 | fi | |
37985 | fi | |
37986 | ||
37987 | if test "$wxUSE_THREADS" = "yes"; then | |
37988 | cat >>confdefs.h <<\_ACEOF | |
37989 | #define wxUSE_THREADS 1 | |
37990 | _ACEOF | |
37991 | ||
37992 | ||
37993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
37994 | else | |
37995 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
37996 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
37997 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
37998 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
37999 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
38000 | echo "$as_me:$LINENO: result: yes" >&5 | |
38001 | echo "${ECHO_T}yes" >&6 | |
38002 | else | |
38003 | echo "$as_me:$LINENO: result: no" >&5 | |
38004 | echo "${ECHO_T}no" >&6 | |
38005 | fi | |
38006 | fi | |
38007 | fi | |
38008 | ||
38009 | if test "$WXGTK20" = 1 ; then | |
38010 | cat >>confdefs.h <<_ACEOF | |
38011 | #define __WXGTK20__ $WXGTK20 | |
38012 | _ACEOF | |
38013 | ||
38014 | WXGTK12=1 | |
38015 | fi | |
38016 | ||
38017 | if test "$WXGTK12" = 1 ; then | |
38018 | cat >>confdefs.h <<_ACEOF | |
38019 | #define __WXGTK12__ $WXGTK12 | |
38020 | _ACEOF | |
38021 | ||
38022 | fi | |
38023 | ||
38024 | if test "$WXGTK127" = 1 ; then | |
38025 | cat >>confdefs.h <<_ACEOF | |
38026 | #define __WXGTK127__ $WXGTK127 | |
38027 | _ACEOF | |
38028 | ||
38029 | fi | |
38030 | ||
38031 | if test "$WXGPE" = 1 ; then | |
38032 | cat >>confdefs.h <<_ACEOF | |
38033 | #define __WXGPE__ $WXGPE | |
38034 | _ACEOF | |
38035 | ||
38036 | fi | |
38037 | ||
38038 | WXDEBUG= | |
38039 | ||
38040 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
38041 | WXDEBUG="-g" | |
38042 | wxUSE_OPTIMISE=no | |
38043 | fi | |
38044 | ||
38045 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
38046 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
38047 | if test "$GCC" = yes; then |
38048 | WXDEBUG="-ggdb" | |
38049 | fi | |
a848cd7e SC |
38050 | fi |
38051 | ||
38052 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
38053 | cat >>confdefs.h <<\_ACEOF | |
38054 | #define WXDEBUG 1 | |
38055 | _ACEOF | |
38056 | ||
38057 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
38058 | else | |
38059 | if test "$wxUSE_GTK" = 1 ; then | |
38060 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
38061 | fi | |
38062 | fi | |
38063 | ||
38064 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
38065 | cat >>confdefs.h <<\_ACEOF | |
38066 | #define wxUSE_MEMORY_TRACING 1 | |
38067 | _ACEOF | |
38068 | ||
38069 | cat >>confdefs.h <<\_ACEOF | |
38070 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
38071 | _ACEOF | |
38072 | ||
38073 | cat >>confdefs.h <<\_ACEOF | |
38074 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
38075 | _ACEOF | |
38076 | ||
38077 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
38078 | fi | |
38079 | ||
38080 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 38081 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
38082 | fi |
38083 | ||
38084 | PROFILE= | |
38085 | if test "$wxUSE_PROFILE" = "yes" ; then | |
38086 | PROFILE=" -pg" | |
38087 | fi | |
38088 | ||
38089 | CODE_GEN_FLAGS= | |
38090 | CODE_GEN_FLAGS_CXX= | |
38091 | if test "$GCC" = "yes" ; then | |
38092 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
38093 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
38094 | fi | |
38095 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
38096 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
38097 | fi | |
38098 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
38099 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
38100 | fi | |
38101 | ||
38102 | case "${host}" in | |
38103 | powerpc*-*-aix* ) | |
38104 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
38105 | ;; | |
38106 | *-hppa* ) | |
38107 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
38108 | ;; | |
38109 | esac | |
38110 | fi | |
38111 | ||
38112 | OPTIMISE= | |
38113 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
38114 | if test "$GCC" = yes ; then | |
38115 | OPTIMISE="-O0" | |
38116 | fi | |
38117 | else | |
38118 | if test "$GCC" = yes ; then | |
38119 | OPTIMISE="-O2" | |
38120 | ||
38121 | case "${host}" in | |
38122 | i586-*-*|i686-*-* ) | |
38123 | OPTIMISE="${OPTIMISE} " | |
38124 | ;; | |
38125 | esac | |
38126 | else | |
38127 | OPTIMISE="-O" | |
38128 | fi | |
38129 | fi | |
38130 | ||
38131 | ||
dee1a63f | 38132 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then |
a848cd7e | 38133 | cat >>confdefs.h <<\_ACEOF |
dee1a63f | 38134 | #define WXWIN_COMPATIBILITY_2_4 1 |
a848cd7e SC |
38135 | _ACEOF |
38136 | ||
38137 | ||
dee1a63f | 38138 | WXWIN_COMPATIBILITY_2_6="yes" |
a848cd7e SC |
38139 | fi |
38140 | ||
dee1a63f | 38141 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then |
a848cd7e | 38142 | cat >>confdefs.h <<\_ACEOF |
dee1a63f | 38143 | #define WXWIN_COMPATIBILITY_2_6 1 |
a848cd7e SC |
38144 | _ACEOF |
38145 | ||
38146 | fi | |
38147 | ||
38148 | ||
38149 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 38150 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
38151 | #define wxUSE_GUI 1 |
38152 | _ACEOF | |
38153 | ||
38154 | ||
370fd4c2 | 38155 | fi |
a848cd7e SC |
38156 | |
38157 | ||
38158 | if test "$wxUSE_UNIX" = "yes"; then | |
38159 | cat >>confdefs.h <<\_ACEOF | |
38160 | #define wxUSE_UNIX 1 | |
38161 | _ACEOF | |
38162 | ||
38163 | fi | |
38164 | ||
38165 | ||
38166 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
38167 | ||
38168 | HAVE_DL_FUNCS=0 | |
38169 | HAVE_SHL_FUNCS=0 | |
38170 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38171 | if test "$USE_DARWIN" = 1; then | |
38172 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
38173 | elif test "$USE_DOS" = 1; then |
38174 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
38175 | else |
38176 | ||
38177 | for ac_func in dlopen | |
38178 | do | |
38179 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38180 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38181 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38182 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38184 | else | |
38185 | cat >conftest.$ac_ext <<_ACEOF | |
38186 | /* confdefs.h. */ | |
38187 | _ACEOF | |
38188 | cat confdefs.h >>conftest.$ac_ext | |
38189 | cat >>conftest.$ac_ext <<_ACEOF | |
38190 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38191 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38193 | #define $ac_func innocuous_$ac_func | |
38194 | ||
a848cd7e SC |
38195 | /* System header to define __stub macros and hopefully few prototypes, |
38196 | which can conflict with char $ac_func (); below. | |
38197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38198 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38199 | |
a848cd7e SC |
38200 | #ifdef __STDC__ |
38201 | # include <limits.h> | |
38202 | #else | |
38203 | # include <assert.h> | |
38204 | #endif | |
ac1cb8d3 VS |
38205 | |
38206 | #undef $ac_func | |
38207 | ||
a848cd7e SC |
38208 | /* Override any gcc2 internal prototype to avoid an error. */ |
38209 | #ifdef __cplusplus | |
38210 | extern "C" | |
38211 | { | |
38212 | #endif | |
38213 | /* We use char because int might match the return type of a gcc2 | |
38214 | builtin and then its argument prototype would still apply. */ | |
38215 | char $ac_func (); | |
38216 | /* The GNU C library defines this for functions which it implements | |
38217 | to always fail with ENOSYS. Some functions are actually named | |
38218 | something starting with __ and the normal name is an alias. */ | |
38219 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38220 | choke me | |
38221 | #else | |
38222 | char (*f) () = $ac_func; | |
38223 | #endif | |
38224 | #ifdef __cplusplus | |
38225 | } | |
38226 | #endif | |
38227 | ||
38228 | int | |
38229 | main () | |
38230 | { | |
38231 | return f != $ac_func; | |
38232 | ; | |
38233 | return 0; | |
38234 | } | |
38235 | _ACEOF | |
38236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38238 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38239 | ac_status=$? |
ac1cb8d3 VS |
38240 | grep -v '^ *+' conftest.er1 >conftest.err |
38241 | rm -f conftest.er1 | |
38242 | cat conftest.err >&5 | |
a848cd7e SC |
38243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38244 | (exit $ac_status); } && | |
dee1a63f MB |
38245 | { ac_try='test -z "$ac_c_werror_flag" |
38246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38248 | (eval $ac_try) 2>&5 | |
38249 | ac_status=$? | |
38250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38251 | (exit $ac_status); }; } && | |
38252 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38254 | (eval $ac_try) 2>&5 | |
38255 | ac_status=$? | |
38256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38257 | (exit $ac_status); }; }; then | |
38258 | eval "$as_ac_var=yes" | |
38259 | else | |
38260 | echo "$as_me: failed program was:" >&5 | |
38261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38262 | ||
38263 | eval "$as_ac_var=no" | |
38264 | fi | |
ac1cb8d3 VS |
38265 | rm -f conftest.err conftest.$ac_objext \ |
38266 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38267 | fi |
38268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38269 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38270 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38271 | cat >>confdefs.h <<_ACEOF | |
38272 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38273 | _ACEOF | |
38274 | ||
38275 | cat >>confdefs.h <<\_ACEOF | |
38276 | #define HAVE_DLOPEN 1 | |
38277 | _ACEOF | |
38278 | ||
38279 | HAVE_DL_FUNCS=1 | |
38280 | ||
38281 | else | |
38282 | ||
38283 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
38284 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
38285 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
38286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38287 | else | |
38288 | ac_check_lib_save_LIBS=$LIBS | |
38289 | LIBS="-ldl $LIBS" | |
38290 | cat >conftest.$ac_ext <<_ACEOF | |
38291 | /* confdefs.h. */ | |
38292 | _ACEOF | |
38293 | cat confdefs.h >>conftest.$ac_ext | |
38294 | cat >>conftest.$ac_ext <<_ACEOF | |
38295 | /* end confdefs.h. */ | |
38296 | ||
38297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38298 | #ifdef __cplusplus | |
38299 | extern "C" | |
38300 | #endif | |
38301 | /* We use char because int might match the return type of a gcc2 | |
38302 | builtin and then its argument prototype would still apply. */ | |
38303 | char dlopen (); | |
38304 | int | |
38305 | main () | |
38306 | { | |
38307 | dlopen (); | |
38308 | ; | |
38309 | return 0; | |
38310 | } | |
38311 | _ACEOF | |
38312 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38314 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38315 | ac_status=$? |
ac1cb8d3 VS |
38316 | grep -v '^ *+' conftest.er1 >conftest.err |
38317 | rm -f conftest.er1 | |
38318 | cat conftest.err >&5 | |
a848cd7e SC |
38319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38320 | (exit $ac_status); } && | |
dee1a63f MB |
38321 | { ac_try='test -z "$ac_c_werror_flag" |
38322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38324 | (eval $ac_try) 2>&5 | |
38325 | ac_status=$? | |
38326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38327 | (exit $ac_status); }; } && | |
38328 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38330 | (eval $ac_try) 2>&5 | |
38331 | ac_status=$? | |
38332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38333 | (exit $ac_status); }; }; then | |
38334 | ac_cv_lib_dl_dlopen=yes | |
38335 | else | |
38336 | echo "$as_me: failed program was:" >&5 | |
38337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38338 | ||
38339 | ac_cv_lib_dl_dlopen=no | |
38340 | fi | |
ac1cb8d3 VS |
38341 | rm -f conftest.err conftest.$ac_objext \ |
38342 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38343 | LIBS=$ac_check_lib_save_LIBS |
38344 | fi | |
38345 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
38346 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
38347 | if test $ac_cv_lib_dl_dlopen = yes; then | |
38348 | ||
38349 | cat >>confdefs.h <<\_ACEOF | |
38350 | #define HAVE_DLOPEN 1 | |
38351 | _ACEOF | |
38352 | ||
38353 | HAVE_DL_FUNCS=1 | |
38354 | DL_LINK=" -ldl$DL_LINK" | |
38355 | ||
38356 | else | |
38357 | ||
38358 | ||
38359 | for ac_func in shl_load | |
38360 | do | |
38361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38362 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38364 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38366 | else | |
38367 | cat >conftest.$ac_ext <<_ACEOF | |
38368 | /* confdefs.h. */ | |
38369 | _ACEOF | |
38370 | cat confdefs.h >>conftest.$ac_ext | |
38371 | cat >>conftest.$ac_ext <<_ACEOF | |
38372 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38373 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38375 | #define $ac_func innocuous_$ac_func | |
38376 | ||
a848cd7e SC |
38377 | /* System header to define __stub macros and hopefully few prototypes, |
38378 | which can conflict with char $ac_func (); below. | |
38379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38380 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38381 | |
a848cd7e SC |
38382 | #ifdef __STDC__ |
38383 | # include <limits.h> | |
38384 | #else | |
38385 | # include <assert.h> | |
38386 | #endif | |
ac1cb8d3 VS |
38387 | |
38388 | #undef $ac_func | |
38389 | ||
a848cd7e SC |
38390 | /* Override any gcc2 internal prototype to avoid an error. */ |
38391 | #ifdef __cplusplus | |
38392 | extern "C" | |
38393 | { | |
38394 | #endif | |
38395 | /* We use char because int might match the return type of a gcc2 | |
38396 | builtin and then its argument prototype would still apply. */ | |
38397 | char $ac_func (); | |
38398 | /* The GNU C library defines this for functions which it implements | |
38399 | to always fail with ENOSYS. Some functions are actually named | |
38400 | something starting with __ and the normal name is an alias. */ | |
38401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38402 | choke me | |
38403 | #else | |
38404 | char (*f) () = $ac_func; | |
38405 | #endif | |
38406 | #ifdef __cplusplus | |
38407 | } | |
38408 | #endif | |
38409 | ||
38410 | int | |
38411 | main () | |
38412 | { | |
38413 | return f != $ac_func; | |
38414 | ; | |
38415 | return 0; | |
38416 | } | |
38417 | _ACEOF | |
38418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38420 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38421 | ac_status=$? |
ac1cb8d3 VS |
38422 | grep -v '^ *+' conftest.er1 >conftest.err |
38423 | rm -f conftest.er1 | |
38424 | cat conftest.err >&5 | |
a848cd7e SC |
38425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38426 | (exit $ac_status); } && | |
dee1a63f MB |
38427 | { ac_try='test -z "$ac_c_werror_flag" |
38428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38430 | (eval $ac_try) 2>&5 | |
38431 | ac_status=$? | |
38432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38433 | (exit $ac_status); }; } && | |
38434 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38436 | (eval $ac_try) 2>&5 | |
38437 | ac_status=$? | |
38438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38439 | (exit $ac_status); }; }; then | |
38440 | eval "$as_ac_var=yes" | |
38441 | else | |
38442 | echo "$as_me: failed program was:" >&5 | |
38443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38444 | ||
38445 | eval "$as_ac_var=no" | |
38446 | fi | |
ac1cb8d3 VS |
38447 | rm -f conftest.err conftest.$ac_objext \ |
38448 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38449 | fi |
38450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38452 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38453 | cat >>confdefs.h <<_ACEOF | |
38454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38455 | _ACEOF | |
38456 | ||
38457 | cat >>confdefs.h <<\_ACEOF | |
38458 | #define HAVE_SHL_LOAD 1 | |
38459 | _ACEOF | |
38460 | ||
38461 | HAVE_SHL_FUNCS=1 | |
38462 | ||
38463 | else | |
38464 | ||
38465 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
38466 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
38467 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
38468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38469 | else | |
38470 | ac_check_lib_save_LIBS=$LIBS | |
38471 | LIBS="-lshl_load $LIBS" | |
38472 | cat >conftest.$ac_ext <<_ACEOF | |
38473 | /* confdefs.h. */ | |
38474 | _ACEOF | |
38475 | cat confdefs.h >>conftest.$ac_ext | |
38476 | cat >>conftest.$ac_ext <<_ACEOF | |
38477 | /* end confdefs.h. */ | |
38478 | ||
38479 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38480 | #ifdef __cplusplus | |
38481 | extern "C" | |
38482 | #endif | |
38483 | /* We use char because int might match the return type of a gcc2 | |
38484 | builtin and then its argument prototype would still apply. */ | |
38485 | char dld (); | |
38486 | int | |
38487 | main () | |
38488 | { | |
38489 | dld (); | |
38490 | ; | |
38491 | return 0; | |
38492 | } | |
38493 | _ACEOF | |
38494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38496 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38497 | ac_status=$? |
ac1cb8d3 VS |
38498 | grep -v '^ *+' conftest.er1 >conftest.err |
38499 | rm -f conftest.er1 | |
38500 | cat conftest.err >&5 | |
a848cd7e SC |
38501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38502 | (exit $ac_status); } && | |
dee1a63f MB |
38503 | { ac_try='test -z "$ac_c_werror_flag" |
38504 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38506 | (eval $ac_try) 2>&5 | |
38507 | ac_status=$? | |
38508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38509 | (exit $ac_status); }; } && | |
38510 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38512 | (eval $ac_try) 2>&5 | |
38513 | ac_status=$? | |
38514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38515 | (exit $ac_status); }; }; then | |
38516 | ac_cv_lib_shl_load_dld=yes | |
38517 | else | |
38518 | echo "$as_me: failed program was:" >&5 | |
38519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38520 | ||
38521 | ac_cv_lib_shl_load_dld=no | |
38522 | fi | |
ac1cb8d3 VS |
38523 | rm -f conftest.err conftest.$ac_objext \ |
38524 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38525 | LIBS=$ac_check_lib_save_LIBS |
38526 | fi | |
38527 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
38528 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
38529 | if test $ac_cv_lib_shl_load_dld = yes; then | |
38530 | ||
38531 | HAVE_SHL_FUNCS=1 | |
38532 | DL_LINK=" -ldld$DL_LINK" | |
38533 | ||
38534 | fi | |
38535 | ||
38536 | ||
38537 | fi | |
38538 | done | |
38539 | ||
38540 | ||
38541 | fi | |
38542 | ||
38543 | ||
38544 | fi | |
38545 | done | |
38546 | ||
38547 | ||
38548 | if test "$HAVE_DL_FUNCS" = 1; then | |
38549 | ||
38550 | for ac_func in dlerror | |
38551 | do | |
38552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38553 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38555 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38557 | else | |
38558 | cat >conftest.$ac_ext <<_ACEOF | |
38559 | /* confdefs.h. */ | |
38560 | _ACEOF | |
38561 | cat confdefs.h >>conftest.$ac_ext | |
38562 | cat >>conftest.$ac_ext <<_ACEOF | |
38563 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38566 | #define $ac_func innocuous_$ac_func | |
38567 | ||
a848cd7e SC |
38568 | /* System header to define __stub macros and hopefully few prototypes, |
38569 | which can conflict with char $ac_func (); below. | |
38570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38571 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38572 | |
a848cd7e SC |
38573 | #ifdef __STDC__ |
38574 | # include <limits.h> | |
38575 | #else | |
38576 | # include <assert.h> | |
38577 | #endif | |
ac1cb8d3 VS |
38578 | |
38579 | #undef $ac_func | |
38580 | ||
a848cd7e SC |
38581 | /* Override any gcc2 internal prototype to avoid an error. */ |
38582 | #ifdef __cplusplus | |
38583 | extern "C" | |
38584 | { | |
38585 | #endif | |
38586 | /* We use char because int might match the return type of a gcc2 | |
38587 | builtin and then its argument prototype would still apply. */ | |
38588 | char $ac_func (); | |
38589 | /* The GNU C library defines this for functions which it implements | |
38590 | to always fail with ENOSYS. Some functions are actually named | |
38591 | something starting with __ and the normal name is an alias. */ | |
38592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38593 | choke me | |
38594 | #else | |
38595 | char (*f) () = $ac_func; | |
38596 | #endif | |
38597 | #ifdef __cplusplus | |
38598 | } | |
38599 | #endif | |
38600 | ||
38601 | int | |
38602 | main () | |
38603 | { | |
38604 | return f != $ac_func; | |
38605 | ; | |
38606 | return 0; | |
38607 | } | |
38608 | _ACEOF | |
38609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38611 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38612 | ac_status=$? |
ac1cb8d3 VS |
38613 | grep -v '^ *+' conftest.er1 >conftest.err |
38614 | rm -f conftest.er1 | |
38615 | cat conftest.err >&5 | |
a848cd7e SC |
38616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38617 | (exit $ac_status); } && | |
dee1a63f MB |
38618 | { ac_try='test -z "$ac_c_werror_flag" |
38619 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38621 | (eval $ac_try) 2>&5 | |
38622 | ac_status=$? | |
38623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38624 | (exit $ac_status); }; } && | |
38625 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38627 | (eval $ac_try) 2>&5 | |
38628 | ac_status=$? | |
38629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38630 | (exit $ac_status); }; }; then | |
38631 | eval "$as_ac_var=yes" | |
38632 | else | |
38633 | echo "$as_me: failed program was:" >&5 | |
38634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38635 | ||
38636 | eval "$as_ac_var=no" | |
38637 | fi | |
ac1cb8d3 VS |
38638 | rm -f conftest.err conftest.$ac_objext \ |
38639 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38640 | fi |
38641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38642 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38643 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38644 | cat >>confdefs.h <<_ACEOF | |
38645 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38646 | _ACEOF | |
38647 | cat >>confdefs.h <<\_ACEOF | |
38648 | #define HAVE_DLERROR 1 | |
38649 | _ACEOF | |
38650 | ||
38651 | else | |
38652 | ||
38653 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
38654 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
38655 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
38656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38657 | else | |
38658 | ac_check_lib_save_LIBS=$LIBS | |
38659 | LIBS="-ldl $LIBS" | |
38660 | cat >conftest.$ac_ext <<_ACEOF | |
38661 | /* confdefs.h. */ | |
38662 | _ACEOF | |
38663 | cat confdefs.h >>conftest.$ac_ext | |
38664 | cat >>conftest.$ac_ext <<_ACEOF | |
38665 | /* end confdefs.h. */ | |
38666 | ||
38667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38668 | #ifdef __cplusplus | |
38669 | extern "C" | |
38670 | #endif | |
38671 | /* We use char because int might match the return type of a gcc2 | |
38672 | builtin and then its argument prototype would still apply. */ | |
38673 | char dlerror (); | |
38674 | int | |
38675 | main () | |
38676 | { | |
38677 | dlerror (); | |
38678 | ; | |
38679 | return 0; | |
38680 | } | |
38681 | _ACEOF | |
38682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38685 | ac_status=$? |
ac1cb8d3 VS |
38686 | grep -v '^ *+' conftest.er1 >conftest.err |
38687 | rm -f conftest.er1 | |
38688 | cat conftest.err >&5 | |
a848cd7e SC |
38689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38690 | (exit $ac_status); } && | |
dee1a63f MB |
38691 | { ac_try='test -z "$ac_c_werror_flag" |
38692 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38694 | (eval $ac_try) 2>&5 | |
38695 | ac_status=$? | |
38696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38697 | (exit $ac_status); }; } && | |
38698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38700 | (eval $ac_try) 2>&5 | |
38701 | ac_status=$? | |
38702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38703 | (exit $ac_status); }; }; then | |
38704 | ac_cv_lib_dl_dlerror=yes | |
38705 | else | |
38706 | echo "$as_me: failed program was:" >&5 | |
38707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38708 | ||
38709 | ac_cv_lib_dl_dlerror=no | |
38710 | fi | |
ac1cb8d3 VS |
38711 | rm -f conftest.err conftest.$ac_objext \ |
38712 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38713 | LIBS=$ac_check_lib_save_LIBS |
38714 | fi | |
38715 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
38716 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
38717 | if test $ac_cv_lib_dl_dlerror = yes; then | |
38718 | cat >>confdefs.h <<\_ACEOF | |
38719 | #define HAVE_DLERROR 1 | |
38720 | _ACEOF | |
38721 | ||
38722 | fi | |
38723 | ||
38724 | ||
38725 | ||
38726 | fi | |
38727 | done | |
38728 | ||
38729 | fi | |
38730 | fi | |
38731 | ||
38732 | if test "$HAVE_DL_FUNCS" = 0; then | |
38733 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 38734 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
38735 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
38736 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
38737 | wxUSE_DYNAMIC_LOADER=no | |
38738 | wxUSE_DYNLIB_CLASS=no | |
38739 | else | |
38740 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
38741 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
38742 | fi | |
38743 | fi | |
38744 | fi | |
38745 | fi | |
38746 | fi | |
38747 | ||
38748 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
38749 | cat >>confdefs.h <<\_ACEOF | |
38750 | #define wxUSE_DYNAMIC_LOADER 1 | |
38751 | _ACEOF | |
38752 | ||
38753 | fi | |
38754 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38755 | cat >>confdefs.h <<\_ACEOF | |
38756 | #define wxUSE_DYNLIB_CLASS 1 | |
38757 | _ACEOF | |
38758 | ||
38759 | fi | |
38760 | ||
38761 | ||
38762 | ||
38763 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38764 | if test "$wxUSE_SHARED" = "no" ; then | |
38765 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
38766 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
38767 | wxUSE_PLUGINS=no | |
38768 | fi | |
38769 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
38770 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
38771 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
38772 | wxUSE_PLUGINS=no | |
38773 | fi | |
38774 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
38775 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
38776 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
38777 | wxUSE_PLUGINS=no | |
38778 | fi | |
38779 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38780 | cat >>confdefs.h <<\_ACEOF | |
38781 | #define wxUSE_PLUGINS 1 | |
38782 | _ACEOF | |
38783 | ||
38784 | fi | |
38785 | fi | |
38786 | ||
38787 | ||
38788 | if test "$wxUSE_STL" = "yes"; then | |
38789 | cat >>confdefs.h <<\_ACEOF | |
38790 | #define wxUSE_STL 1 | |
38791 | _ACEOF | |
38792 | ||
38793 | fi | |
38794 | ||
38795 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
38796 | cat >>confdefs.h <<\_ACEOF | |
38797 | #define wxUSE_APPLE_IEEE 1 | |
38798 | _ACEOF | |
38799 | ||
38800 | fi | |
38801 | ||
38802 | if test "$wxUSE_TIMER" = "yes"; then | |
38803 | cat >>confdefs.h <<\_ACEOF | |
38804 | #define wxUSE_TIMER 1 | |
38805 | _ACEOF | |
38806 | ||
38807 | fi | |
38808 | ||
9c112555 | 38809 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
38810 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
38811 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
38812 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 38813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38814 | else |
d12aef51 VZ |
38815 | |
38816 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38817 | /* confdefs.h. */ |
38818 | _ACEOF | |
38819 | cat confdefs.h >>conftest.$ac_ext | |
38820 | cat >>conftest.$ac_ext <<_ACEOF | |
38821 | /* end confdefs.h. */ | |
d12aef51 VZ |
38822 | |
38823 | #include <sys/soundcard.h> | |
38824 | ||
38825 | int | |
38826 | main () | |
38827 | { | |
38828 | ||
38829 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38830 | ||
38831 | ; | |
38832 | return 0; | |
38833 | } | |
a848cd7e | 38834 | _ACEOF |
d12aef51 VZ |
38835 | rm -f conftest.$ac_objext conftest$ac_exeext |
38836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38837 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 38838 | ac_status=$? |
ac1cb8d3 VS |
38839 | grep -v '^ *+' conftest.er1 >conftest.err |
38840 | rm -f conftest.er1 | |
38841 | cat conftest.err >&5 | |
a848cd7e SC |
38842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38843 | (exit $ac_status); } && | |
dee1a63f MB |
38844 | { ac_try='test -z "$ac_c_werror_flag" |
38845 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38847 | (eval $ac_try) 2>&5 | |
38848 | ac_status=$? | |
38849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38850 | (exit $ac_status); }; } && | |
d12aef51 | 38851 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
38852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38853 | (eval $ac_try) 2>&5 | |
38854 | ac_status=$? | |
38855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38856 | (exit $ac_status); }; }; then | |
d12aef51 | 38857 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
38858 | else |
38859 | echo "$as_me: failed program was:" >&5 | |
38860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38861 | ||
a848cd7e | 38862 | |
d12aef51 VZ |
38863 | saveLibs="$LIBS" |
38864 | LIBS="$saveLibs -lossaudio" | |
38865 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38866 | /* confdefs.h. */ |
38867 | _ACEOF | |
38868 | cat confdefs.h >>conftest.$ac_ext | |
38869 | cat >>conftest.$ac_ext <<_ACEOF | |
38870 | /* end confdefs.h. */ | |
d12aef51 VZ |
38871 | |
38872 | #include <sys/soundcard.h> | |
38873 | ||
38874 | int | |
38875 | main () | |
38876 | { | |
38877 | ||
38878 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38879 | ||
38880 | ; | |
38881 | return 0; | |
38882 | } | |
a848cd7e | 38883 | _ACEOF |
d12aef51 VZ |
38884 | rm -f conftest.$ac_objext conftest$ac_exeext |
38885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38886 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
38887 | ac_status=$? |
38888 | grep -v '^ *+' conftest.er1 >conftest.err | |
38889 | rm -f conftest.er1 | |
38890 | cat conftest.err >&5 | |
38891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 38892 | (exit $ac_status); } && |
dee1a63f MB |
38893 | { ac_try='test -z "$ac_c_werror_flag" |
38894 | || test ! -s conftest.err' | |
d12aef51 VZ |
38895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38896 | (eval $ac_try) 2>&5 | |
38897 | ac_status=$? | |
38898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38899 | (exit $ac_status); }; } && | |
38900 | { ac_try='test -s conftest$ac_exeext' | |
38901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38902 | (eval $ac_try) 2>&5 | |
38903 | ac_status=$? | |
38904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38905 | (exit $ac_status); }; }; then | |
38906 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
38907 | else |
38908 | echo "$as_me: failed program was:" >&5 | |
38909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38910 | ||
a848cd7e | 38911 | |
d12aef51 VZ |
38912 | LIBS="$saveLibs" |
38913 | ac_cv_header_sys_soundcard=no | |
38914 | ||
38915 | ||
a848cd7e | 38916 | fi |
d12aef51 VZ |
38917 | rm -f conftest.err conftest.$ac_objext \ |
38918 | conftest$ac_exeext conftest.$ac_ext | |
38919 | ||
a848cd7e SC |
38920 | |
38921 | fi | |
d12aef51 VZ |
38922 | rm -f conftest.err conftest.$ac_objext \ |
38923 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38924 | |
38925 | fi | |
d12aef51 VZ |
38926 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
38927 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 38928 | |
d12aef51 VZ |
38929 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
38930 | cat >>confdefs.h <<\_ACEOF | |
38931 | #define HAVE_SYS_SOUNDCARD_H 1 | |
38932 | _ACEOF | |
a848cd7e | 38933 | |
d12aef51 VZ |
38934 | else |
38935 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
38936 | fi | |
9c112555 MW |
38937 | fi |
38938 | WITH_PLUGIN_SDL=0 | |
38939 | if test "$wxUSE_SOUND" = "yes"; then | |
38940 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
38941 | if test "$wxUSE_LIBSDL" != "no"; then |
38942 | ||
38943 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
38944 | if test "${with_sdl_prefix+set}" = set; then | |
38945 | withval="$with_sdl_prefix" | |
38946 | sdl_prefix="$withval" | |
38947 | else | |
38948 | sdl_prefix="" | |
38949 | fi; | |
38950 | ||
38951 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
38952 | if test "${with_sdl_exec_prefix+set}" = set; then | |
38953 | withval="$with_sdl_exec_prefix" | |
38954 | sdl_exec_prefix="$withval" | |
38955 | else | |
38956 | sdl_exec_prefix="" | |
38957 | fi; | |
38958 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
38959 | if test "${enable_sdltest+set}" = set; then | |
38960 | enableval="$enable_sdltest" | |
38961 | ||
38962 | else | |
38963 | enable_sdltest=yes | |
38964 | fi; | |
38965 | ||
38966 | if test x$sdl_exec_prefix != x ; then | |
38967 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
38968 | if test x${SDL_CONFIG+set} != xset ; then | |
38969 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
38970 | fi | |
38971 | fi | |
38972 | if test x$sdl_prefix != x ; then | |
38973 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
38974 | if test x${SDL_CONFIG+set} != xset ; then | |
38975 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
38976 | fi | |
38977 | fi | |
38978 | ||
38979 | ||
38980 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
38981 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
38982 | set dummy sdl-config; ac_word=$2 | |
38983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38985 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
38986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38987 | else | |
38988 | case $SDL_CONFIG in | |
38989 | [\\/]* | ?:[\\/]*) | |
38990 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
38991 | ;; | |
38992 | *) | |
38993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38994 | for as_dir in $PATH | |
38995 | do | |
38996 | IFS=$as_save_IFS | |
38997 | test -z "$as_dir" && as_dir=. | |
38998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39000 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39002 | break 2 | |
39003 | fi | |
39004 | done | |
39005 | done | |
39006 | ||
39007 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
39008 | ;; | |
39009 | esac | |
39010 | fi | |
39011 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
39012 | ||
39013 | if test -n "$SDL_CONFIG"; then | |
39014 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
39015 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
39016 | else | |
39017 | echo "$as_me:$LINENO: result: no" >&5 | |
39018 | echo "${ECHO_T}no" >&6 | |
39019 | fi | |
39020 | ||
39021 | min_sdl_version=1.2.0 | |
39022 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
39023 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
39024 | no_sdl="" | |
39025 | if test "$SDL_CONFIG" = "no" ; then | |
39026 | no_sdl=yes | |
39027 | else | |
39028 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
39029 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
39030 | ||
39031 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
39032 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
39033 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
39034 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
39035 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
39036 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
39037 | if test "x$enable_sdltest" = "xyes" ; then | |
39038 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 39039 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
39040 | ac_save_LIBS="$LIBS" |
39041 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 39042 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
39043 | LIBS="$LIBS $SDL_LIBS" |
39044 | rm -f conf.sdltest | |
39045 | if test "$cross_compiling" = yes; then | |
39046 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
39047 | else | |
39048 | cat >conftest.$ac_ext <<_ACEOF | |
39049 | /* confdefs.h. */ | |
39050 | _ACEOF | |
39051 | cat confdefs.h >>conftest.$ac_ext | |
39052 | cat >>conftest.$ac_ext <<_ACEOF | |
39053 | /* end confdefs.h. */ | |
39054 | ||
39055 | #include <stdio.h> | |
39056 | #include <stdlib.h> | |
39057 | #include <string.h> | |
39058 | #include "SDL.h" | |
39059 | ||
39060 | char* | |
39061 | my_strdup (char *str) | |
39062 | { | |
39063 | char *new_str; | |
39064 | ||
39065 | if (str) | |
39066 | { | |
39067 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
39068 | strcpy (new_str, str); | |
39069 | } | |
39070 | else | |
39071 | new_str = NULL; | |
39072 | ||
39073 | return new_str; | |
39074 | } | |
39075 | ||
39076 | int main (int argc, char *argv[]) | |
39077 | { | |
39078 | int major, minor, micro; | |
39079 | char *tmp_version; | |
39080 | ||
39081 | /* This hangs on some systems (?) | |
39082 | system ("touch conf.sdltest"); | |
39083 | */ | |
39084 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
39085 | ||
39086 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
39087 | tmp_version = my_strdup("$min_sdl_version"); | |
39088 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
39089 | printf("%s, bad version string\n", "$min_sdl_version"); | |
39090 | exit(1); | |
39091 | } | |
39092 | ||
39093 | if (($sdl_major_version > major) || | |
39094 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
39095 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
39096 | { | |
39097 | return 0; | |
39098 | } | |
39099 | else | |
39100 | { | |
39101 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
39102 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
39103 | printf("*** best to upgrade to the required version.\n"); | |
39104 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
39105 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
39106 | printf("*** config.cache before re-running configure\n"); | |
39107 | return 1; | |
39108 | } | |
39109 | } | |
39110 | ||
39111 | ||
39112 | _ACEOF | |
39113 | rm -f conftest$ac_exeext | |
39114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39115 | (eval $ac_link) 2>&5 | |
39116 | ac_status=$? | |
39117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39118 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
39119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39120 | (eval $ac_try) 2>&5 | |
39121 | ac_status=$? | |
39122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39123 | (exit $ac_status); }; }; then | |
39124 | : | |
39125 | else | |
39126 | echo "$as_me: program exited with status $ac_status" >&5 | |
39127 | echo "$as_me: failed program was:" >&5 | |
39128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39129 | ||
39130 | ( exit $ac_status ) | |
39131 | no_sdl=yes | |
39132 | fi | |
ac1cb8d3 | 39133 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39134 | fi |
39135 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 39136 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
39137 | LIBS="$ac_save_LIBS" |
39138 | fi | |
39139 | fi | |
39140 | if test "x$no_sdl" = x ; then | |
39141 | echo "$as_me:$LINENO: result: yes" >&5 | |
39142 | echo "${ECHO_T}yes" >&6 | |
39143 | ||
39144 | EXTRALIBS_SDL="$SDL_LIBS" | |
39145 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
39146 | cat >>confdefs.h <<\_ACEOF | |
39147 | #define wxUSE_LIBSDL 1 | |
39148 | _ACEOF | |
39149 | ||
39150 | ||
39151 | else | |
39152 | echo "$as_me:$LINENO: result: no" >&5 | |
39153 | echo "${ECHO_T}no" >&6 | |
39154 | if test "$SDL_CONFIG" = "no" ; then | |
39155 | echo "*** The sdl-config script installed by SDL could not be found" | |
39156 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
39157 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
39158 | echo "*** full path to sdl-config." | |
39159 | else | |
39160 | if test -f conf.sdltest ; then | |
39161 | : | |
39162 | else | |
39163 | echo "*** Could not run SDL test program, checking why..." | |
39164 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 39165 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
39166 | LIBS="$LIBS $SDL_LIBS" |
39167 | cat >conftest.$ac_ext <<_ACEOF | |
39168 | /* confdefs.h. */ | |
39169 | _ACEOF | |
39170 | cat confdefs.h >>conftest.$ac_ext | |
39171 | cat >>conftest.$ac_ext <<_ACEOF | |
39172 | /* end confdefs.h. */ | |
39173 | ||
39174 | #include <stdio.h> | |
39175 | #include "SDL.h" | |
39176 | ||
39177 | int main(int argc, char *argv[]) | |
39178 | { return 0; } | |
39179 | #undef main | |
39180 | #define main K_and_R_C_main | |
39181 | ||
39182 | int | |
39183 | main () | |
39184 | { | |
39185 | return 0; | |
39186 | ; | |
39187 | return 0; | |
39188 | } | |
39189 | _ACEOF | |
39190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39193 | ac_status=$? |
ac1cb8d3 VS |
39194 | grep -v '^ *+' conftest.er1 >conftest.err |
39195 | rm -f conftest.er1 | |
39196 | cat conftest.err >&5 | |
a848cd7e SC |
39197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39198 | (exit $ac_status); } && | |
dee1a63f MB |
39199 | { ac_try='test -z "$ac_c_werror_flag" |
39200 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39202 | (eval $ac_try) 2>&5 | |
39203 | ac_status=$? | |
39204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39205 | (exit $ac_status); }; } && | |
39206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39208 | (eval $ac_try) 2>&5 | |
39209 | ac_status=$? | |
39210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39211 | (exit $ac_status); }; }; then | |
39212 | echo "*** The test program compiled, but did not run. This usually means" | |
39213 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
39214 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
39215 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
39216 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
39217 | echo "*** is required on your system" | |
39218 | echo "***" | |
39219 | echo "*** If you have an old version installed, it is best to remove it, although" | |
39220 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
39221 | else | |
39222 | echo "$as_me: failed program was:" >&5 | |
39223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39224 | ||
39225 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
39226 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
39227 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
39228 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
39229 | fi | |
ac1cb8d3 VS |
39230 | rm -f conftest.err conftest.$ac_objext \ |
39231 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 39232 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 39233 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
39234 | LIBS="$ac_save_LIBS" |
39235 | fi | |
39236 | fi | |
39237 | SDL_CFLAGS="" | |
39238 | SDL_LIBS="" | |
39239 | wxUSE_LIBSDL="no" | |
39240 | fi | |
39241 | ||
39242 | ||
39243 | rm -f conf.sdltest | |
39244 | ||
39245 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
39246 | WITH_PLUGIN_SDL=1 | |
39247 | fi | |
39248 | fi | |
39249 | fi | |
39250 | ||
39251 | cat >>confdefs.h <<\_ACEOF | |
39252 | #define wxUSE_SOUND 1 | |
39253 | _ACEOF | |
39254 | ||
39255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
39256 | fi | |
39257 | ||
d1c38808 VZ |
39258 | if test "$WXGTK20" = 1; then |
39259 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
39260 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
39261 | ||
39262 | ||
39263 | succeeded=no | |
39264 | ||
39265 | if test -z "$PKG_CONFIG"; then | |
39266 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39267 | set dummy pkg-config; ac_word=$2 | |
39268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39270 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39272 | else | |
39273 | case $PKG_CONFIG in | |
39274 | [\\/]* | ?:[\\/]*) | |
39275 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39276 | ;; | |
39277 | *) | |
39278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39279 | for as_dir in $PATH | |
39280 | do | |
39281 | IFS=$as_save_IFS | |
39282 | test -z "$as_dir" && as_dir=. | |
39283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39285 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39287 | break 2 | |
39288 | fi | |
39289 | done | |
39290 | done | |
39291 | ||
39292 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39293 | ;; | |
39294 | esac | |
39295 | fi | |
39296 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39297 | ||
39298 | if test -n "$PKG_CONFIG"; then | |
39299 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39300 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39301 | else | |
39302 | echo "$as_me:$LINENO: result: no" >&5 | |
39303 | echo "${ECHO_T}no" >&6 | |
39304 | fi | |
39305 | ||
39306 | fi | |
39307 | ||
39308 | if test "$PKG_CONFIG" = "no" ; then | |
39309 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39310 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39311 | echo "*** to the full path to pkg-config." | |
39312 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39313 | else | |
39314 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39315 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
39316 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
39317 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 39318 | |
ffa762ff | 39319 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
39320 | echo "$as_me:$LINENO: result: yes" >&5 |
39321 | echo "${ECHO_T}yes" >&6 | |
39322 | succeeded=yes | |
39323 | ||
39324 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
39325 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 39326 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39327 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
39328 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
39329 | ||
39330 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
39331 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 39332 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39333 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
39334 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
39335 | else | |
39336 | LIBGNOMEPRINTUI_CFLAGS="" | |
39337 | LIBGNOMEPRINTUI_LIBS="" | |
39338 | ## If we have a custom action on failure, don't print errors, but | |
39339 | ## do set a variable so people can do so. | |
ffa762ff | 39340 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39341 | |
39342 | fi | |
39343 | ||
39344 | ||
39345 | ||
39346 | else | |
39347 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39348 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39349 | fi | |
39350 | fi | |
39351 | ||
39352 | if test $succeeded = yes; then | |
39353 | ||
d1c38808 VZ |
39354 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
39355 | cat >>confdefs.h <<\_ACEOF | |
39356 | #define wxUSE_LIBGNOMEPRINT 1 | |
39357 | _ACEOF | |
39358 | ||
39359 | ||
39360 | else | |
39361 | ||
39362 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
39363 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
39364 | wxUSE_LIBGNOMEPRINT="no" | |
39365 | ||
39366 | ||
39367 | fi | |
39368 | ||
39369 | fi | |
39370 | fi | |
39371 | fi | |
39372 | ||
39373 | ||
a848cd7e SC |
39374 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
39375 | cat >>confdefs.h <<\_ACEOF | |
39376 | #define wxUSE_CMDLINE_PARSER 1 | |
39377 | _ACEOF | |
39378 | ||
39379 | fi | |
39380 | ||
39381 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
39382 | cat >>confdefs.h <<\_ACEOF | |
39383 | #define wxUSE_STOPWATCH 1 | |
39384 | _ACEOF | |
39385 | ||
39386 | fi | |
39387 | ||
39388 | if test "$wxUSE_DATETIME" = "yes"; then | |
39389 | cat >>confdefs.h <<\_ACEOF | |
39390 | #define wxUSE_DATETIME 1 | |
39391 | _ACEOF | |
39392 | ||
39393 | fi | |
39394 | ||
39395 | if test "$wxUSE_FILE" = "yes"; then | |
39396 | cat >>confdefs.h <<\_ACEOF | |
39397 | #define wxUSE_FILE 1 | |
39398 | _ACEOF | |
39399 | ||
39400 | fi | |
39401 | ||
39402 | if test "$wxUSE_FFILE" = "yes"; then | |
39403 | cat >>confdefs.h <<\_ACEOF | |
39404 | #define wxUSE_FFILE 1 | |
39405 | _ACEOF | |
39406 | ||
39407 | fi | |
39408 | ||
39409 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
39410 | cat >>confdefs.h <<\_ACEOF | |
39411 | #define wxUSE_FILESYSTEM 1 | |
39412 | _ACEOF | |
39413 | ||
39414 | fi | |
39415 | ||
39416 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
39417 | cat >>confdefs.h <<\_ACEOF | |
39418 | #define wxUSE_FS_ZIP 1 | |
39419 | _ACEOF | |
39420 | ||
39421 | fi | |
39422 | ||
9e8e867f | 39423 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 39424 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 39425 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
39426 | _ACEOF |
39427 | ||
39428 | fi | |
39429 | ||
39430 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 39431 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
39432 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
39433 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
39434 | elif test "$wxUSE_ZLIB" = "no"; then | |
39435 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
39436 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
39437 | else | |
39438 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39439 | #define wxUSE_ZIPSTREAM 1 |
39440 | _ACEOF | |
39441 | ||
81f90336 | 39442 | fi |
a848cd7e SC |
39443 | fi |
39444 | ||
a848cd7e | 39445 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
39446 | if test "$USE_UNIX" != 1; then |
39447 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
39448 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
39449 | wxUSE_ON_FATAL_EXCEPTION=no | |
39450 | else | |
39451 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39452 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
39453 | _ACEOF | |
39454 | ||
18228ab4 | 39455 | fi |
a848cd7e SC |
39456 | fi |
39457 | ||
eaff0f0d VZ |
39458 | if test "$wxUSE_STACKWALKER" = "yes"; then |
39459 | cat >>confdefs.h <<\_ACEOF | |
39460 | #define wxUSE_STACKWALKER 1 | |
39461 | _ACEOF | |
39462 | ||
39463 | fi | |
39464 | ||
36b6448c | 39465 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
39466 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
39467 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
39468 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
39469 | wxUSE_DEBUGREPORT=no |
39470 | else | |
39471 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
39472 | #define wxUSE_DEBUGREPORT 1 |
39473 | _ACEOF | |
39474 | ||
21dfc162 MW |
39475 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
39476 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
39477 | fi | |
dfe0c803 | 39478 | fi |
36b6448c VZ |
39479 | fi |
39480 | ||
a848cd7e SC |
39481 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
39482 | cat >>confdefs.h <<\_ACEOF | |
39483 | #define wxUSE_SNGLINST_CHECKER 1 | |
39484 | _ACEOF | |
39485 | ||
39486 | fi | |
39487 | ||
39488 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
39489 | cat >>confdefs.h <<\_ACEOF | |
39490 | #define wxUSE_BUSYINFO 1 | |
39491 | _ACEOF | |
39492 | ||
39493 | fi | |
39494 | ||
39495 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
39496 | cat >>confdefs.h <<\_ACEOF | |
39497 | #define wxUSE_STD_IOSTREAM 1 | |
39498 | _ACEOF | |
39499 | ||
39500 | fi | |
39501 | ||
59746b65 MW |
39502 | if test "$wxUSE_STD_STRING" = "yes"; then |
39503 | cat >>confdefs.h <<\_ACEOF | |
39504 | #define wxUSE_STD_STRING 1 | |
39505 | _ACEOF | |
39506 | ||
39507 | fi | |
39508 | ||
07158944 VZ |
39509 | if test "$wxUSE_STDPATHS" = "yes"; then |
39510 | cat >>confdefs.h <<\_ACEOF | |
39511 | #define wxUSE_STDPATHS 1 | |
39512 | _ACEOF | |
39513 | ||
39514 | fi | |
39515 | ||
a848cd7e SC |
39516 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
39517 | cat >>confdefs.h <<\_ACEOF | |
39518 | #define wxUSE_TEXTBUFFER 1 | |
39519 | _ACEOF | |
39520 | ||
39521 | fi | |
39522 | ||
39523 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
39524 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
39525 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
39526 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
39527 | else | |
39528 | cat >>confdefs.h <<\_ACEOF | |
39529 | #define wxUSE_TEXTFILE 1 | |
39530 | _ACEOF | |
39531 | ||
39532 | fi | |
39533 | fi | |
39534 | ||
39535 | if test "$wxUSE_CONFIG" = "yes" ; then | |
39536 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
39537 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
39538 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
39539 | else | |
39540 | cat >>confdefs.h <<\_ACEOF | |
39541 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
39542 | _ACEOF |
39543 | ||
39544 | cat >>confdefs.h <<\_ACEOF | |
39545 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
39546 | _ACEOF |
39547 | ||
39548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
39549 | fi | |
39550 | fi | |
39551 | ||
39552 | if test "$wxUSE_INTL" = "yes" ; then | |
39553 | if test "$wxUSE_FILE" != "yes"; then | |
39554 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
39555 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
39556 | else | |
39557 | cat >>confdefs.h <<\_ACEOF | |
39558 | #define wxUSE_INTL 1 | |
39559 | _ACEOF | |
39560 | ||
39561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
39562 | GUIDIST="$GUIDIST INTL_DIST" | |
39563 | fi | |
39564 | fi | |
39565 | ||
39566 | if test "$wxUSE_LOG" = "yes"; then | |
39567 | cat >>confdefs.h <<\_ACEOF | |
39568 | #define wxUSE_LOG 1 | |
39569 | _ACEOF | |
39570 | ||
39571 | ||
39572 | if test "$wxUSE_LOGGUI" = "yes"; then | |
39573 | cat >>confdefs.h <<\_ACEOF | |
39574 | #define wxUSE_LOGGUI 1 | |
39575 | _ACEOF | |
39576 | ||
39577 | fi | |
39578 | ||
39579 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
39580 | cat >>confdefs.h <<\_ACEOF | |
39581 | #define wxUSE_LOGWINDOW 1 | |
39582 | _ACEOF | |
39583 | ||
39584 | fi | |
39585 | ||
39586 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
39587 | cat >>confdefs.h <<\_ACEOF | |
39588 | #define wxUSE_LOG_DIALOG 1 | |
39589 | _ACEOF | |
39590 | ||
39591 | fi | |
0b78747f MW |
39592 | |
39593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
39594 | fi |
39595 | ||
39596 | if test "$wxUSE_LONGLONG" = "yes"; then | |
39597 | cat >>confdefs.h <<\_ACEOF | |
39598 | #define wxUSE_LONGLONG 1 | |
39599 | _ACEOF | |
39600 | ||
39601 | fi | |
39602 | ||
39603 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
39604 | cat >>confdefs.h <<\_ACEOF | |
39605 | #define wxUSE_GEOMETRY 1 | |
39606 | _ACEOF | |
39607 | ||
39608 | fi | |
39609 | ||
a848cd7e SC |
39610 | if test "$wxUSE_STREAMS" = "yes" ; then |
39611 | cat >>confdefs.h <<\_ACEOF | |
39612 | #define wxUSE_STREAMS 1 | |
39613 | _ACEOF | |
39614 | ||
39615 | fi | |
39616 | ||
39617 | ||
39618 | if test "$wxUSE_DATETIME" = "yes"; then | |
39619 | ||
39620 | for ac_func in strptime | |
39621 | do | |
39622 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39623 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39624 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39625 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39627 | else | |
39628 | cat >conftest.$ac_ext <<_ACEOF | |
39629 | /* confdefs.h. */ | |
39630 | _ACEOF | |
39631 | cat confdefs.h >>conftest.$ac_ext | |
39632 | cat >>conftest.$ac_ext <<_ACEOF | |
39633 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39634 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39635 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39636 | #define $ac_func innocuous_$ac_func | |
39637 | ||
a848cd7e SC |
39638 | /* System header to define __stub macros and hopefully few prototypes, |
39639 | which can conflict with char $ac_func (); below. | |
39640 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39641 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39642 | |
a848cd7e SC |
39643 | #ifdef __STDC__ |
39644 | # include <limits.h> | |
39645 | #else | |
39646 | # include <assert.h> | |
39647 | #endif | |
ac1cb8d3 VS |
39648 | |
39649 | #undef $ac_func | |
39650 | ||
a848cd7e SC |
39651 | /* Override any gcc2 internal prototype to avoid an error. */ |
39652 | #ifdef __cplusplus | |
39653 | extern "C" | |
39654 | { | |
39655 | #endif | |
39656 | /* We use char because int might match the return type of a gcc2 | |
39657 | builtin and then its argument prototype would still apply. */ | |
39658 | char $ac_func (); | |
39659 | /* The GNU C library defines this for functions which it implements | |
39660 | to always fail with ENOSYS. Some functions are actually named | |
39661 | something starting with __ and the normal name is an alias. */ | |
39662 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39663 | choke me | |
39664 | #else | |
39665 | char (*f) () = $ac_func; | |
39666 | #endif | |
39667 | #ifdef __cplusplus | |
39668 | } | |
39669 | #endif | |
39670 | ||
39671 | int | |
39672 | main () | |
39673 | { | |
39674 | return f != $ac_func; | |
39675 | ; | |
39676 | return 0; | |
39677 | } | |
39678 | _ACEOF | |
39679 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39681 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39682 | ac_status=$? |
ac1cb8d3 VS |
39683 | grep -v '^ *+' conftest.er1 >conftest.err |
39684 | rm -f conftest.er1 | |
39685 | cat conftest.err >&5 | |
a848cd7e SC |
39686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39687 | (exit $ac_status); } && | |
dee1a63f MB |
39688 | { ac_try='test -z "$ac_c_werror_flag" |
39689 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39691 | (eval $ac_try) 2>&5 | |
39692 | ac_status=$? | |
39693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39694 | (exit $ac_status); }; } && | |
39695 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39697 | (eval $ac_try) 2>&5 | |
39698 | ac_status=$? | |
39699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39700 | (exit $ac_status); }; }; then | |
39701 | eval "$as_ac_var=yes" | |
39702 | else | |
39703 | echo "$as_me: failed program was:" >&5 | |
39704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39705 | ||
39706 | eval "$as_ac_var=no" | |
39707 | fi | |
ac1cb8d3 VS |
39708 | rm -f conftest.err conftest.$ac_objext \ |
39709 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39710 | fi |
39711 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39712 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39713 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39714 | cat >>confdefs.h <<_ACEOF | |
39715 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39716 | _ACEOF | |
39717 | ||
39718 | fi | |
39719 | done | |
39720 | ||
f536f005 VZ |
39721 | if test "$ac_cv_func_strptime" = "yes"; then |
39722 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
39723 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
39724 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
39725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39726 | else | |
39727 | ||
39728 | ||
39729 | ||
39730 | ac_ext=cc | |
39731 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39732 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39733 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39734 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39735 | ||
39736 | cat >conftest.$ac_ext <<_ACEOF | |
39737 | /* confdefs.h. */ | |
39738 | _ACEOF | |
39739 | cat confdefs.h >>conftest.$ac_ext | |
39740 | cat >>conftest.$ac_ext <<_ACEOF | |
39741 | /* end confdefs.h. */ | |
39742 | ||
39743 | #include <time.h> | |
39744 | ||
39745 | int | |
39746 | main () | |
39747 | { | |
39748 | ||
39749 | struct tm t; | |
39750 | strptime("foo", "bar", &t); | |
39751 | ||
39752 | ; | |
39753 | return 0; | |
39754 | } | |
39755 | _ACEOF | |
39756 | rm -f conftest.$ac_objext | |
39757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39758 | (eval $ac_compile) 2>conftest.er1 | |
39759 | ac_status=$? | |
39760 | grep -v '^ *+' conftest.er1 >conftest.err | |
39761 | rm -f conftest.er1 | |
39762 | cat conftest.err >&5 | |
39763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39764 | (exit $ac_status); } && | |
dee1a63f MB |
39765 | { ac_try='test -z "$ac_cxx_werror_flag" |
39766 | || test ! -s conftest.err' | |
f536f005 VZ |
39767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39768 | (eval $ac_try) 2>&5 | |
39769 | ac_status=$? | |
39770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39771 | (exit $ac_status); }; } && | |
39772 | { ac_try='test -s conftest.$ac_objext' | |
39773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39774 | (eval $ac_try) 2>&5 | |
39775 | ac_status=$? | |
39776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39777 | (exit $ac_status); }; }; then | |
39778 | wx_cv_func_strptime_decl=yes | |
39779 | else | |
39780 | echo "$as_me: failed program was:" >&5 | |
39781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39782 | ||
39783 | wx_cv_func_strptime_decl=no | |
39784 | ||
39785 | fi | |
39786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39787 | ac_ext=c | |
39788 | ac_cpp='$CPP $CPPFLAGS' | |
39789 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39790 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39791 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39792 | ||
39793 | ||
39794 | ||
39795 | fi | |
39796 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
39797 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
39798 | fi | |
39799 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
39800 | cat >>confdefs.h <<\_ACEOF | |
39801 | #define HAVE_STRPTIME_DECL 1 | |
39802 | _ACEOF | |
39803 | ||
39804 | fi | |
a848cd7e SC |
39805 | |
39806 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
39807 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
39808 | if test "${wx_cv_var_timezone+set}" = set; then | |
39809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39810 | else | |
39811 | ||
39812 | cat >conftest.$ac_ext <<_ACEOF | |
39813 | /* confdefs.h. */ | |
39814 | _ACEOF | |
39815 | cat confdefs.h >>conftest.$ac_ext | |
39816 | cat >>conftest.$ac_ext <<_ACEOF | |
39817 | /* end confdefs.h. */ | |
39818 | ||
39819 | #include <time.h> | |
39820 | ||
39821 | int | |
39822 | main () | |
39823 | { | |
39824 | ||
39825 | int tz; | |
39826 | tz = timezone; | |
39827 | ||
39828 | ; | |
39829 | return 0; | |
39830 | } | |
39831 | _ACEOF | |
39832 | rm -f conftest.$ac_objext | |
39833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39835 | ac_status=$? |
ac1cb8d3 VS |
39836 | grep -v '^ *+' conftest.er1 >conftest.err |
39837 | rm -f conftest.er1 | |
39838 | cat conftest.err >&5 | |
a848cd7e SC |
39839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39840 | (exit $ac_status); } && | |
dee1a63f MB |
39841 | { ac_try='test -z "$ac_c_werror_flag" |
39842 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39844 | (eval $ac_try) 2>&5 | |
39845 | ac_status=$? | |
39846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39847 | (exit $ac_status); }; } && | |
39848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39850 | (eval $ac_try) 2>&5 | |
39851 | ac_status=$? | |
39852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39853 | (exit $ac_status); }; }; then | |
39854 | ||
39855 | wx_cv_var_timezone=timezone | |
39856 | ||
39857 | else | |
39858 | echo "$as_me: failed program was:" >&5 | |
39859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39860 | ||
39861 | ||
39862 | cat >conftest.$ac_ext <<_ACEOF | |
39863 | /* confdefs.h. */ | |
39864 | _ACEOF | |
39865 | cat confdefs.h >>conftest.$ac_ext | |
39866 | cat >>conftest.$ac_ext <<_ACEOF | |
39867 | /* end confdefs.h. */ | |
39868 | ||
39869 | #include <time.h> | |
39870 | ||
39871 | int | |
39872 | main () | |
39873 | { | |
39874 | ||
39875 | int tz; | |
39876 | tz = _timezone; | |
39877 | ||
39878 | ; | |
39879 | return 0; | |
39880 | } | |
39881 | _ACEOF | |
39882 | rm -f conftest.$ac_objext | |
39883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39885 | ac_status=$? |
ac1cb8d3 VS |
39886 | grep -v '^ *+' conftest.er1 >conftest.err |
39887 | rm -f conftest.er1 | |
39888 | cat conftest.err >&5 | |
a848cd7e SC |
39889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39890 | (exit $ac_status); } && | |
dee1a63f MB |
39891 | { ac_try='test -z "$ac_c_werror_flag" |
39892 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39894 | (eval $ac_try) 2>&5 | |
39895 | ac_status=$? | |
39896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39897 | (exit $ac_status); }; } && | |
39898 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39900 | (eval $ac_try) 2>&5 | |
39901 | ac_status=$? | |
39902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39903 | (exit $ac_status); }; }; then | |
39904 | ||
39905 | wx_cv_var_timezone=_timezone | |
39906 | ||
39907 | else | |
39908 | echo "$as_me: failed program was:" >&5 | |
39909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39910 | ||
39911 | ||
39912 | cat >conftest.$ac_ext <<_ACEOF | |
39913 | /* confdefs.h. */ | |
39914 | _ACEOF | |
39915 | cat confdefs.h >>conftest.$ac_ext | |
39916 | cat >>conftest.$ac_ext <<_ACEOF | |
39917 | /* end confdefs.h. */ | |
39918 | ||
39919 | #include <time.h> | |
39920 | ||
39921 | int | |
39922 | main () | |
39923 | { | |
39924 | ||
39925 | int tz; | |
39926 | tz = __timezone; | |
39927 | ||
39928 | ; | |
39929 | return 0; | |
39930 | } | |
39931 | _ACEOF | |
39932 | rm -f conftest.$ac_objext | |
39933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39934 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39935 | ac_status=$? |
ac1cb8d3 VS |
39936 | grep -v '^ *+' conftest.er1 >conftest.err |
39937 | rm -f conftest.er1 | |
39938 | cat conftest.err >&5 | |
a848cd7e SC |
39939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39940 | (exit $ac_status); } && | |
dee1a63f MB |
39941 | { ac_try='test -z "$ac_c_werror_flag" |
39942 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39944 | (eval $ac_try) 2>&5 | |
39945 | ac_status=$? | |
39946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39947 | (exit $ac_status); }; } && | |
39948 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39950 | (eval $ac_try) 2>&5 | |
39951 | ac_status=$? | |
39952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39953 | (exit $ac_status); }; }; then | |
39954 | ||
39955 | wx_cv_var_timezone=__timezone | |
39956 | ||
39957 | else | |
39958 | echo "$as_me: failed program was:" >&5 | |
39959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39960 | ||
39961 | ||
39962 | if test "$USE_DOS" = 0 ; then | |
39963 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
39964 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
39965 | fi | |
39966 | ||
39967 | ||
39968 | fi | |
ac1cb8d3 | 39969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39970 | |
39971 | ||
39972 | fi | |
ac1cb8d3 | 39973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39974 | |
39975 | ||
39976 | fi | |
ac1cb8d3 | 39977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39978 | |
39979 | ||
39980 | fi | |
39981 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
39982 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
39983 | ||
39984 | if test "x$wx_cv_var_timezone" != x ; then | |
39985 | cat >>confdefs.h <<_ACEOF | |
39986 | #define WX_TIMEZONE $wx_cv_var_timezone | |
39987 | _ACEOF | |
39988 | ||
39989 | fi | |
39990 | ||
39991 | ||
39992 | for ac_func in localtime | |
39993 | do | |
39994 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39995 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39996 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39997 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39999 | else | |
40000 | cat >conftest.$ac_ext <<_ACEOF | |
40001 | /* confdefs.h. */ | |
40002 | _ACEOF | |
40003 | cat confdefs.h >>conftest.$ac_ext | |
40004 | cat >>conftest.$ac_ext <<_ACEOF | |
40005 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40006 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40007 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40008 | #define $ac_func innocuous_$ac_func | |
40009 | ||
a848cd7e SC |
40010 | /* System header to define __stub macros and hopefully few prototypes, |
40011 | which can conflict with char $ac_func (); below. | |
40012 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40013 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40014 | |
a848cd7e SC |
40015 | #ifdef __STDC__ |
40016 | # include <limits.h> | |
40017 | #else | |
40018 | # include <assert.h> | |
40019 | #endif | |
ac1cb8d3 VS |
40020 | |
40021 | #undef $ac_func | |
40022 | ||
a848cd7e SC |
40023 | /* Override any gcc2 internal prototype to avoid an error. */ |
40024 | #ifdef __cplusplus | |
40025 | extern "C" | |
40026 | { | |
40027 | #endif | |
40028 | /* We use char because int might match the return type of a gcc2 | |
40029 | builtin and then its argument prototype would still apply. */ | |
40030 | char $ac_func (); | |
40031 | /* The GNU C library defines this for functions which it implements | |
40032 | to always fail with ENOSYS. Some functions are actually named | |
40033 | something starting with __ and the normal name is an alias. */ | |
40034 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40035 | choke me | |
40036 | #else | |
40037 | char (*f) () = $ac_func; | |
40038 | #endif | |
40039 | #ifdef __cplusplus | |
40040 | } | |
40041 | #endif | |
40042 | ||
40043 | int | |
40044 | main () | |
40045 | { | |
40046 | return f != $ac_func; | |
40047 | ; | |
40048 | return 0; | |
40049 | } | |
40050 | _ACEOF | |
40051 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40053 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40054 | ac_status=$? |
ac1cb8d3 VS |
40055 | grep -v '^ *+' conftest.er1 >conftest.err |
40056 | rm -f conftest.er1 | |
40057 | cat conftest.err >&5 | |
a848cd7e SC |
40058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40059 | (exit $ac_status); } && | |
dee1a63f MB |
40060 | { ac_try='test -z "$ac_c_werror_flag" |
40061 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40063 | (eval $ac_try) 2>&5 | |
40064 | ac_status=$? | |
40065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40066 | (exit $ac_status); }; } && | |
40067 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40069 | (eval $ac_try) 2>&5 | |
40070 | ac_status=$? | |
40071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40072 | (exit $ac_status); }; }; then | |
40073 | eval "$as_ac_var=yes" | |
40074 | else | |
40075 | echo "$as_me: failed program was:" >&5 | |
40076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40077 | ||
40078 | eval "$as_ac_var=no" | |
40079 | fi | |
ac1cb8d3 VS |
40080 | rm -f conftest.err conftest.$ac_objext \ |
40081 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40082 | fi |
40083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40084 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40085 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40086 | cat >>confdefs.h <<_ACEOF | |
40087 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40088 | _ACEOF | |
40089 | ||
40090 | fi | |
40091 | done | |
40092 | ||
40093 | ||
40094 | if test "$ac_cv_func_localtime" = "yes"; then | |
40095 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
40096 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
40097 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
40098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40099 | else | |
40100 | ||
40101 | cat >conftest.$ac_ext <<_ACEOF | |
40102 | /* confdefs.h. */ | |
40103 | _ACEOF | |
40104 | cat confdefs.h >>conftest.$ac_ext | |
40105 | cat >>conftest.$ac_ext <<_ACEOF | |
40106 | /* end confdefs.h. */ | |
40107 | ||
40108 | #include <time.h> | |
40109 | ||
40110 | int | |
40111 | main () | |
40112 | { | |
40113 | ||
40114 | struct tm tm; | |
40115 | tm.tm_gmtoff++; | |
40116 | ||
40117 | ; | |
40118 | return 0; | |
40119 | } | |
40120 | _ACEOF | |
40121 | rm -f conftest.$ac_objext | |
40122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40123 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40124 | ac_status=$? |
ac1cb8d3 VS |
40125 | grep -v '^ *+' conftest.er1 >conftest.err |
40126 | rm -f conftest.er1 | |
40127 | cat conftest.err >&5 | |
a848cd7e SC |
40128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40129 | (exit $ac_status); } && | |
dee1a63f MB |
40130 | { ac_try='test -z "$ac_c_werror_flag" |
40131 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40133 | (eval $ac_try) 2>&5 | |
40134 | ac_status=$? | |
40135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40136 | (exit $ac_status); }; } && | |
40137 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40139 | (eval $ac_try) 2>&5 | |
40140 | ac_status=$? | |
40141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40142 | (exit $ac_status); }; }; then | |
40143 | ||
40144 | wx_cv_struct_tm_has_gmtoff=yes | |
40145 | ||
40146 | else | |
40147 | echo "$as_me: failed program was:" >&5 | |
40148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40149 | ||
40150 | wx_cv_struct_tm_has_gmtoff=no | |
40151 | ||
40152 | fi | |
ac1cb8d3 | 40153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40154 | |
40155 | fi | |
40156 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
40157 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
40158 | fi | |
40159 | ||
40160 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
40161 | cat >>confdefs.h <<\_ACEOF | |
40162 | #define WX_GMTOFF_IN_TM 1 | |
40163 | _ACEOF | |
40164 | ||
40165 | fi | |
40166 | ||
40167 | ||
40168 | ||
40169 | for ac_func in gettimeofday ftime | |
40170 | do | |
40171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40174 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40176 | else | |
40177 | cat >conftest.$ac_ext <<_ACEOF | |
40178 | /* confdefs.h. */ | |
40179 | _ACEOF | |
40180 | cat confdefs.h >>conftest.$ac_ext | |
40181 | cat >>conftest.$ac_ext <<_ACEOF | |
40182 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40183 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40185 | #define $ac_func innocuous_$ac_func | |
40186 | ||
a848cd7e SC |
40187 | /* System header to define __stub macros and hopefully few prototypes, |
40188 | which can conflict with char $ac_func (); below. | |
40189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40190 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40191 | |
a848cd7e SC |
40192 | #ifdef __STDC__ |
40193 | # include <limits.h> | |
40194 | #else | |
40195 | # include <assert.h> | |
40196 | #endif | |
ac1cb8d3 VS |
40197 | |
40198 | #undef $ac_func | |
40199 | ||
a848cd7e SC |
40200 | /* Override any gcc2 internal prototype to avoid an error. */ |
40201 | #ifdef __cplusplus | |
40202 | extern "C" | |
40203 | { | |
40204 | #endif | |
40205 | /* We use char because int might match the return type of a gcc2 | |
40206 | builtin and then its argument prototype would still apply. */ | |
40207 | char $ac_func (); | |
40208 | /* The GNU C library defines this for functions which it implements | |
40209 | to always fail with ENOSYS. Some functions are actually named | |
40210 | something starting with __ and the normal name is an alias. */ | |
40211 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40212 | choke me | |
40213 | #else | |
40214 | char (*f) () = $ac_func; | |
40215 | #endif | |
40216 | #ifdef __cplusplus | |
40217 | } | |
40218 | #endif | |
40219 | ||
40220 | int | |
40221 | main () | |
40222 | { | |
40223 | return f != $ac_func; | |
40224 | ; | |
40225 | return 0; | |
40226 | } | |
40227 | _ACEOF | |
40228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40230 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40231 | ac_status=$? |
ac1cb8d3 VS |
40232 | grep -v '^ *+' conftest.er1 >conftest.err |
40233 | rm -f conftest.er1 | |
40234 | cat conftest.err >&5 | |
a848cd7e SC |
40235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40236 | (exit $ac_status); } && | |
dee1a63f MB |
40237 | { ac_try='test -z "$ac_c_werror_flag" |
40238 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40240 | (eval $ac_try) 2>&5 | |
40241 | ac_status=$? | |
40242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40243 | (exit $ac_status); }; } && | |
40244 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40246 | (eval $ac_try) 2>&5 | |
40247 | ac_status=$? | |
40248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40249 | (exit $ac_status); }; }; then | |
40250 | eval "$as_ac_var=yes" | |
40251 | else | |
40252 | echo "$as_me: failed program was:" >&5 | |
40253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40254 | ||
40255 | eval "$as_ac_var=no" | |
40256 | fi | |
ac1cb8d3 VS |
40257 | rm -f conftest.err conftest.$ac_objext \ |
40258 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40259 | fi |
40260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40261 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40262 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40263 | cat >>confdefs.h <<_ACEOF | |
40264 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40265 | _ACEOF | |
40266 | break | |
40267 | fi | |
40268 | done | |
40269 | ||
40270 | ||
40271 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
40272 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
40273 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
40274 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
40275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40276 | else | |
40277 | ||
40278 | ||
40279 | ||
40280 | ac_ext=cc | |
40281 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40282 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40283 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40284 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40285 | ||
40286 | ||
40287 | cat >conftest.$ac_ext <<_ACEOF | |
40288 | /* confdefs.h. */ | |
40289 | _ACEOF | |
40290 | cat confdefs.h >>conftest.$ac_ext | |
40291 | cat >>conftest.$ac_ext <<_ACEOF | |
40292 | /* end confdefs.h. */ | |
40293 | ||
40294 | #include <sys/time.h> | |
40295 | #include <unistd.h> | |
40296 | ||
40297 | int | |
40298 | main () | |
40299 | { | |
40300 | ||
40301 | struct timeval tv; | |
40302 | gettimeofday(&tv, NULL); | |
40303 | ||
40304 | ; | |
40305 | return 0; | |
40306 | } | |
40307 | _ACEOF | |
40308 | rm -f conftest.$ac_objext | |
40309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40310 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40311 | ac_status=$? |
ac1cb8d3 VS |
40312 | grep -v '^ *+' conftest.er1 >conftest.err |
40313 | rm -f conftest.er1 | |
40314 | cat conftest.err >&5 | |
a848cd7e SC |
40315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40316 | (exit $ac_status); } && | |
dee1a63f MB |
40317 | { ac_try='test -z "$ac_cxx_werror_flag" |
40318 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40320 | (eval $ac_try) 2>&5 | |
40321 | ac_status=$? | |
40322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40323 | (exit $ac_status); }; } && | |
40324 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40326 | (eval $ac_try) 2>&5 | |
40327 | ac_status=$? | |
40328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40329 | (exit $ac_status); }; }; then | |
40330 | wx_cv_func_gettimeofday_has_2_args=yes | |
40331 | else | |
40332 | echo "$as_me: failed program was:" >&5 | |
40333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40334 | ||
40335 | cat >conftest.$ac_ext <<_ACEOF | |
40336 | /* confdefs.h. */ | |
40337 | _ACEOF | |
40338 | cat confdefs.h >>conftest.$ac_ext | |
40339 | cat >>conftest.$ac_ext <<_ACEOF | |
40340 | /* end confdefs.h. */ | |
40341 | ||
40342 | #include <sys/time.h> | |
40343 | #include <unistd.h> | |
40344 | ||
40345 | int | |
40346 | main () | |
40347 | { | |
40348 | ||
40349 | struct timeval tv; | |
40350 | gettimeofday(&tv); | |
40351 | ||
40352 | ; | |
40353 | return 0; | |
40354 | } | |
40355 | _ACEOF | |
40356 | rm -f conftest.$ac_objext | |
40357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40358 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40359 | ac_status=$? |
ac1cb8d3 VS |
40360 | grep -v '^ *+' conftest.er1 >conftest.err |
40361 | rm -f conftest.er1 | |
40362 | cat conftest.err >&5 | |
a848cd7e SC |
40363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40364 | (exit $ac_status); } && | |
dee1a63f MB |
40365 | { ac_try='test -z "$ac_cxx_werror_flag" |
40366 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40368 | (eval $ac_try) 2>&5 | |
40369 | ac_status=$? | |
40370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40371 | (exit $ac_status); }; } && | |
40372 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40374 | (eval $ac_try) 2>&5 | |
40375 | ac_status=$? | |
40376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40377 | (exit $ac_status); }; }; then | |
40378 | wx_cv_func_gettimeofday_has_2_args=no | |
40379 | else | |
40380 | echo "$as_me: failed program was:" >&5 | |
40381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40382 | ||
40383 | ||
40384 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
40385 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
40386 | wx_cv_func_gettimeofday_has_2_args=unknown | |
40387 | ||
40388 | ||
40389 | fi | |
ac1cb8d3 | 40390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40391 | |
40392 | fi | |
ac1cb8d3 | 40393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40394 | ac_ext=c |
40395 | ac_cpp='$CPP $CPPFLAGS' | |
40396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40399 | ||
40400 | ||
40401 | fi | |
40402 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
40403 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
40404 | ||
40405 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
40406 | cat >>confdefs.h <<\_ACEOF | |
40407 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
40408 | _ACEOF | |
40409 | ||
40410 | fi | |
40411 | fi | |
40412 | ||
40413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
40414 | fi | |
40415 | ||
40416 | ||
40417 | if test "$wxUSE_SOCKETS" = "yes"; then | |
40418 | if test "$wxUSE_MGL" = "1"; then | |
40419 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
40420 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
40421 | wxUSE_SOCKETS="no" | |
40422 | fi | |
40423 | fi | |
40424 | ||
40425 | if test "$wxUSE_SOCKETS" = "yes"; then | |
40426 | if test "$TOOLKIT" != "MSW"; then | |
40427 | echo "$as_me:$LINENO: checking for socket" >&5 | |
40428 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
40429 | if test "${ac_cv_func_socket+set}" = set; then | |
40430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40431 | else | |
40432 | cat >conftest.$ac_ext <<_ACEOF | |
40433 | /* confdefs.h. */ | |
40434 | _ACEOF | |
40435 | cat confdefs.h >>conftest.$ac_ext | |
40436 | cat >>conftest.$ac_ext <<_ACEOF | |
40437 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40438 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
40439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40440 | #define socket innocuous_socket | |
40441 | ||
a848cd7e SC |
40442 | /* System header to define __stub macros and hopefully few prototypes, |
40443 | which can conflict with char socket (); below. | |
40444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40445 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40446 | |
a848cd7e SC |
40447 | #ifdef __STDC__ |
40448 | # include <limits.h> | |
40449 | #else | |
40450 | # include <assert.h> | |
40451 | #endif | |
ac1cb8d3 VS |
40452 | |
40453 | #undef socket | |
40454 | ||
a848cd7e SC |
40455 | /* Override any gcc2 internal prototype to avoid an error. */ |
40456 | #ifdef __cplusplus | |
40457 | extern "C" | |
40458 | { | |
40459 | #endif | |
40460 | /* We use char because int might match the return type of a gcc2 | |
40461 | builtin and then its argument prototype would still apply. */ | |
40462 | char socket (); | |
40463 | /* The GNU C library defines this for functions which it implements | |
40464 | to always fail with ENOSYS. Some functions are actually named | |
40465 | something starting with __ and the normal name is an alias. */ | |
40466 | #if defined (__stub_socket) || defined (__stub___socket) | |
40467 | choke me | |
40468 | #else | |
40469 | char (*f) () = socket; | |
40470 | #endif | |
40471 | #ifdef __cplusplus | |
40472 | } | |
40473 | #endif | |
40474 | ||
40475 | int | |
40476 | main () | |
40477 | { | |
40478 | return f != socket; | |
40479 | ; | |
40480 | return 0; | |
40481 | } | |
40482 | _ACEOF | |
40483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40485 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40486 | ac_status=$? |
ac1cb8d3 VS |
40487 | grep -v '^ *+' conftest.er1 >conftest.err |
40488 | rm -f conftest.er1 | |
40489 | cat conftest.err >&5 | |
a848cd7e SC |
40490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40491 | (exit $ac_status); } && | |
dee1a63f MB |
40492 | { ac_try='test -z "$ac_c_werror_flag" |
40493 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40495 | (eval $ac_try) 2>&5 | |
40496 | ac_status=$? | |
40497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40498 | (exit $ac_status); }; } && | |
40499 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40501 | (eval $ac_try) 2>&5 | |
40502 | ac_status=$? | |
40503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40504 | (exit $ac_status); }; }; then | |
40505 | ac_cv_func_socket=yes | |
40506 | else | |
40507 | echo "$as_me: failed program was:" >&5 | |
40508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40509 | ||
40510 | ac_cv_func_socket=no | |
40511 | fi | |
ac1cb8d3 VS |
40512 | rm -f conftest.err conftest.$ac_objext \ |
40513 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40514 | fi |
40515 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
40516 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
40517 | if test $ac_cv_func_socket = yes; then | |
40518 | : | |
40519 | else | |
40520 | ||
40521 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
40522 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
40523 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
40524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40525 | else | |
40526 | ac_check_lib_save_LIBS=$LIBS | |
40527 | LIBS="-lsocket $LIBS" | |
40528 | cat >conftest.$ac_ext <<_ACEOF | |
40529 | /* confdefs.h. */ | |
40530 | _ACEOF | |
40531 | cat confdefs.h >>conftest.$ac_ext | |
40532 | cat >>conftest.$ac_ext <<_ACEOF | |
40533 | /* end confdefs.h. */ | |
40534 | ||
40535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40536 | #ifdef __cplusplus | |
40537 | extern "C" | |
40538 | #endif | |
40539 | /* We use char because int might match the return type of a gcc2 | |
40540 | builtin and then its argument prototype would still apply. */ | |
40541 | char socket (); | |
40542 | int | |
40543 | main () | |
40544 | { | |
40545 | socket (); | |
40546 | ; | |
40547 | return 0; | |
40548 | } | |
40549 | _ACEOF | |
40550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40552 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40553 | ac_status=$? |
ac1cb8d3 VS |
40554 | grep -v '^ *+' conftest.er1 >conftest.err |
40555 | rm -f conftest.er1 | |
40556 | cat conftest.err >&5 | |
a848cd7e SC |
40557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40558 | (exit $ac_status); } && | |
dee1a63f MB |
40559 | { ac_try='test -z "$ac_c_werror_flag" |
40560 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40562 | (eval $ac_try) 2>&5 | |
40563 | ac_status=$? | |
40564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40565 | (exit $ac_status); }; } && | |
40566 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40568 | (eval $ac_try) 2>&5 | |
40569 | ac_status=$? | |
40570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40571 | (exit $ac_status); }; }; then | |
40572 | ac_cv_lib_socket_socket=yes | |
40573 | else | |
40574 | echo "$as_me: failed program was:" >&5 | |
40575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40576 | ||
40577 | ac_cv_lib_socket_socket=no | |
40578 | fi | |
ac1cb8d3 VS |
40579 | rm -f conftest.err conftest.$ac_objext \ |
40580 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40581 | LIBS=$ac_check_lib_save_LIBS |
40582 | fi | |
40583 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
40584 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
40585 | if test $ac_cv_lib_socket_socket = yes; then | |
40586 | if test "$INET_LINK" != " -lsocket"; then | |
40587 | INET_LINK="$INET_LINK -lsocket" | |
40588 | fi | |
40589 | else | |
40590 | ||
40591 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
40592 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
40593 | wxUSE_SOCKETS=no | |
40594 | ||
40595 | ||
40596 | fi | |
40597 | ||
40598 | ||
40599 | ||
40600 | fi | |
40601 | ||
40602 | fi | |
40603 | fi | |
40604 | ||
40605 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40606 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
40607 | ac_ext=cc |
40608 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40609 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40610 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40611 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40612 | ||
40613 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
40614 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
40615 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
40616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40617 | else | |
40618 | ||
40619 | cat >conftest.$ac_ext <<_ACEOF | |
40620 | /* confdefs.h. */ | |
40621 | _ACEOF | |
40622 | cat confdefs.h >>conftest.$ac_ext | |
40623 | cat >>conftest.$ac_ext <<_ACEOF | |
40624 | /* end confdefs.h. */ | |
40625 | ||
40626 | #include <sys/types.h> | |
40627 | #include <sys/socket.h> | |
40628 | ||
40629 | int | |
40630 | main () | |
40631 | { | |
40632 | ||
40633 | socklen_t len; | |
40634 | getsockname(0, 0, &len); | |
40635 | ||
40636 | ; | |
40637 | return 0; | |
40638 | } | |
40639 | _ACEOF | |
40640 | rm -f conftest.$ac_objext | |
40641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40642 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40643 | ac_status=$? |
ac1cb8d3 VS |
40644 | grep -v '^ *+' conftest.er1 >conftest.err |
40645 | rm -f conftest.er1 | |
40646 | cat conftest.err >&5 | |
a848cd7e SC |
40647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40648 | (exit $ac_status); } && | |
dee1a63f MB |
40649 | { ac_try='test -z "$ac_cxx_werror_flag" |
40650 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40652 | (eval $ac_try) 2>&5 | |
40653 | ac_status=$? | |
40654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40655 | (exit $ac_status); }; } && | |
40656 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40658 | (eval $ac_try) 2>&5 | |
40659 | ac_status=$? | |
40660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40661 | (exit $ac_status); }; }; then | |
40662 | wx_cv_type_getsockname3=socklen_t | |
40663 | else | |
40664 | echo "$as_me: failed program was:" >&5 | |
40665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40666 | ||
40667 | ||
6459a506 | 40668 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 40669 | if test "$GCC" = yes ; then |
6459a506 | 40670 | CXXFLAGS="$CXXFLAGS -Werror" |
a848cd7e SC |
40671 | fi |
40672 | ||
40673 | cat >conftest.$ac_ext <<_ACEOF | |
40674 | /* confdefs.h. */ | |
40675 | _ACEOF | |
40676 | cat confdefs.h >>conftest.$ac_ext | |
40677 | cat >>conftest.$ac_ext <<_ACEOF | |
40678 | /* end confdefs.h. */ | |
40679 | ||
40680 | #include <sys/types.h> | |
40681 | #include <sys/socket.h> | |
40682 | ||
40683 | int | |
40684 | main () | |
40685 | { | |
40686 | ||
40687 | size_t len; | |
40688 | getsockname(0, 0, &len); | |
40689 | ||
40690 | ; | |
40691 | return 0; | |
40692 | } | |
40693 | _ACEOF | |
40694 | rm -f conftest.$ac_objext | |
40695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40697 | ac_status=$? |
ac1cb8d3 VS |
40698 | grep -v '^ *+' conftest.er1 >conftest.err |
40699 | rm -f conftest.er1 | |
40700 | cat conftest.err >&5 | |
a848cd7e SC |
40701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40702 | (exit $ac_status); } && | |
dee1a63f MB |
40703 | { ac_try='test -z "$ac_cxx_werror_flag" |
40704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40706 | (eval $ac_try) 2>&5 | |
40707 | ac_status=$? | |
40708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40709 | (exit $ac_status); }; } && | |
40710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40712 | (eval $ac_try) 2>&5 | |
40713 | ac_status=$? | |
40714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40715 | (exit $ac_status); }; }; then | |
40716 | wx_cv_type_getsockname3=size_t | |
40717 | else | |
40718 | echo "$as_me: failed program was:" >&5 | |
40719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40720 | ||
40721 | cat >conftest.$ac_ext <<_ACEOF | |
40722 | /* confdefs.h. */ | |
40723 | _ACEOF | |
40724 | cat confdefs.h >>conftest.$ac_ext | |
40725 | cat >>conftest.$ac_ext <<_ACEOF | |
40726 | /* end confdefs.h. */ | |
40727 | ||
40728 | #include <sys/types.h> | |
40729 | #include <sys/socket.h> | |
40730 | ||
40731 | int | |
40732 | main () | |
40733 | { | |
40734 | ||
40735 | int len; | |
40736 | getsockname(0, 0, &len); | |
40737 | ||
40738 | ; | |
40739 | return 0; | |
40740 | } | |
40741 | _ACEOF | |
40742 | rm -f conftest.$ac_objext | |
40743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40744 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40745 | ac_status=$? |
ac1cb8d3 VS |
40746 | grep -v '^ *+' conftest.er1 >conftest.err |
40747 | rm -f conftest.er1 | |
40748 | cat conftest.err >&5 | |
a848cd7e SC |
40749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40750 | (exit $ac_status); } && | |
dee1a63f MB |
40751 | { ac_try='test -z "$ac_cxx_werror_flag" |
40752 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40754 | (eval $ac_try) 2>&5 | |
40755 | ac_status=$? | |
40756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40757 | (exit $ac_status); }; } && | |
40758 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40760 | (eval $ac_try) 2>&5 | |
40761 | ac_status=$? | |
40762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40763 | (exit $ac_status); }; }; then | |
40764 | wx_cv_type_getsockname3=int | |
40765 | else | |
40766 | echo "$as_me: failed program was:" >&5 | |
40767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40768 | ||
40769 | wx_cv_type_getsockname3=unknown | |
40770 | ||
40771 | fi | |
ac1cb8d3 | 40772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40773 | |
40774 | fi | |
ac1cb8d3 | 40775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40776 | |
6459a506 | 40777 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
40778 | |
40779 | ||
40780 | fi | |
ac1cb8d3 | 40781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40782 | |
40783 | fi | |
40784 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
40785 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
40786 | ||
40787 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
40788 | wxUSE_SOCKETS=no | |
40789 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40790 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40791 | else | |
40792 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 40793 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
40794 | _ACEOF |
40795 | ||
40796 | fi | |
40797 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
40798 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
40799 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
40800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40801 | else | |
40802 | ||
40803 | cat >conftest.$ac_ext <<_ACEOF | |
40804 | /* confdefs.h. */ | |
40805 | _ACEOF | |
40806 | cat confdefs.h >>conftest.$ac_ext | |
40807 | cat >>conftest.$ac_ext <<_ACEOF | |
40808 | /* end confdefs.h. */ | |
40809 | ||
40810 | #include <sys/types.h> | |
40811 | #include <sys/socket.h> | |
40812 | ||
40813 | int | |
40814 | main () | |
40815 | { | |
40816 | ||
40817 | socklen_t len; | |
40818 | getsockopt(0, 0, 0, 0, &len); | |
40819 | ||
40820 | ; | |
40821 | return 0; | |
40822 | } | |
40823 | _ACEOF | |
40824 | rm -f conftest.$ac_objext | |
40825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40826 | (eval $ac_compile) 2>conftest.er1 | |
40827 | ac_status=$? | |
40828 | grep -v '^ *+' conftest.er1 >conftest.err | |
40829 | rm -f conftest.er1 | |
40830 | cat conftest.err >&5 | |
40831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40832 | (exit $ac_status); } && | |
dee1a63f MB |
40833 | { ac_try='test -z "$ac_cxx_werror_flag" |
40834 | || test ! -s conftest.err' | |
5b674b9d DE |
40835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40836 | (eval $ac_try) 2>&5 | |
40837 | ac_status=$? | |
40838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40839 | (exit $ac_status); }; } && | |
40840 | { ac_try='test -s conftest.$ac_objext' | |
40841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40842 | (eval $ac_try) 2>&5 | |
40843 | ac_status=$? | |
40844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40845 | (exit $ac_status); }; }; then | |
40846 | wx_cv_type_getsockopt5=socklen_t | |
40847 | else | |
40848 | echo "$as_me: failed program was:" >&5 | |
40849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40850 | ||
40851 | ||
6459a506 | 40852 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 40853 | if test "$GCC" = yes ; then |
6459a506 | 40854 | CXXFLAGS="$CXXFLAGS -Werror" |
5b674b9d DE |
40855 | fi |
40856 | ||
40857 | cat >conftest.$ac_ext <<_ACEOF | |
40858 | /* confdefs.h. */ | |
40859 | _ACEOF | |
40860 | cat confdefs.h >>conftest.$ac_ext | |
40861 | cat >>conftest.$ac_ext <<_ACEOF | |
40862 | /* end confdefs.h. */ | |
40863 | ||
40864 | #include <sys/types.h> | |
40865 | #include <sys/socket.h> | |
40866 | ||
40867 | int | |
40868 | main () | |
40869 | { | |
40870 | ||
40871 | size_t len; | |
40872 | getsockopt(0, 0, 0, 0, &len); | |
40873 | ||
40874 | ; | |
40875 | return 0; | |
40876 | } | |
40877 | _ACEOF | |
40878 | rm -f conftest.$ac_objext | |
40879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40880 | (eval $ac_compile) 2>conftest.er1 | |
40881 | ac_status=$? | |
40882 | grep -v '^ *+' conftest.er1 >conftest.err | |
40883 | rm -f conftest.er1 | |
40884 | cat conftest.err >&5 | |
40885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40886 | (exit $ac_status); } && | |
dee1a63f MB |
40887 | { ac_try='test -z "$ac_cxx_werror_flag" |
40888 | || test ! -s conftest.err' | |
5b674b9d DE |
40889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40890 | (eval $ac_try) 2>&5 | |
40891 | ac_status=$? | |
40892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40893 | (exit $ac_status); }; } && | |
40894 | { ac_try='test -s conftest.$ac_objext' | |
40895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40896 | (eval $ac_try) 2>&5 | |
40897 | ac_status=$? | |
40898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40899 | (exit $ac_status); }; }; then | |
40900 | wx_cv_type_getsockopt5=size_t | |
40901 | else | |
40902 | echo "$as_me: failed program was:" >&5 | |
40903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40904 | ||
40905 | cat >conftest.$ac_ext <<_ACEOF | |
40906 | /* confdefs.h. */ | |
40907 | _ACEOF | |
40908 | cat confdefs.h >>conftest.$ac_ext | |
40909 | cat >>conftest.$ac_ext <<_ACEOF | |
40910 | /* end confdefs.h. */ | |
40911 | ||
40912 | #include <sys/types.h> | |
40913 | #include <sys/socket.h> | |
40914 | ||
40915 | int | |
40916 | main () | |
40917 | { | |
40918 | ||
40919 | int len; | |
40920 | getsockopt(0, 0, 0, 0, &len); | |
40921 | ||
40922 | ; | |
40923 | return 0; | |
40924 | } | |
40925 | _ACEOF | |
40926 | rm -f conftest.$ac_objext | |
40927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40928 | (eval $ac_compile) 2>conftest.er1 | |
40929 | ac_status=$? | |
40930 | grep -v '^ *+' conftest.er1 >conftest.err | |
40931 | rm -f conftest.er1 | |
40932 | cat conftest.err >&5 | |
40933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40934 | (exit $ac_status); } && | |
dee1a63f MB |
40935 | { ac_try='test -z "$ac_cxx_werror_flag" |
40936 | || test ! -s conftest.err' | |
5b674b9d DE |
40937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40938 | (eval $ac_try) 2>&5 | |
40939 | ac_status=$? | |
40940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40941 | (exit $ac_status); }; } && | |
40942 | { ac_try='test -s conftest.$ac_objext' | |
40943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40944 | (eval $ac_try) 2>&5 | |
40945 | ac_status=$? | |
40946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40947 | (exit $ac_status); }; }; then | |
40948 | wx_cv_type_getsockopt5=int | |
40949 | else | |
40950 | echo "$as_me: failed program was:" >&5 | |
40951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40952 | ||
40953 | wx_cv_type_getsockopt5=unknown | |
40954 | ||
40955 | fi | |
40956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40957 | ||
40958 | fi | |
40959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40960 | ||
6459a506 | 40961 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
40962 | |
40963 | ||
40964 | fi | |
40965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40966 | ||
40967 | fi | |
40968 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
40969 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
40970 | ||
40971 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
40972 | wxUSE_SOCKETS=no | |
40973 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40974 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40975 | else | |
40976 | cat >>confdefs.h <<_ACEOF | |
40977 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
40978 | _ACEOF |
40979 | ||
40980 | fi | |
4d4ff94c VZ |
40981 | ac_ext=c |
40982 | ac_cpp='$CPP $CPPFLAGS' | |
40983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40986 | ||
a848cd7e SC |
40987 | fi |
40988 | fi | |
40989 | ||
40990 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40991 | cat >>confdefs.h <<\_ACEOF | |
40992 | #define wxUSE_SOCKETS 1 | |
40993 | _ACEOF | |
40994 | ||
40995 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
40996 | fi | |
40997 | ||
40998 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40999 | if test "$wxUSE_SOCKETS" != "yes"; then | |
41000 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
41001 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
41002 | wxUSE_PROTOCOL=no | |
41003 | fi | |
41004 | fi | |
41005 | ||
41006 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
41007 | cat >>confdefs.h <<\_ACEOF | |
41008 | #define wxUSE_PROTOCOL 1 | |
41009 | _ACEOF | |
41010 | ||
41011 | ||
41012 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
41013 | cat >>confdefs.h <<\_ACEOF | |
41014 | #define wxUSE_PROTOCOL_HTTP 1 | |
41015 | _ACEOF | |
41016 | ||
41017 | fi | |
41018 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
41019 | cat >>confdefs.h <<\_ACEOF | |
41020 | #define wxUSE_PROTOCOL_FTP 1 | |
41021 | _ACEOF | |
41022 | ||
41023 | fi | |
41024 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
41025 | cat >>confdefs.h <<\_ACEOF | |
41026 | #define wxUSE_PROTOCOL_FILE 1 | |
41027 | _ACEOF | |
41028 | ||
41029 | fi | |
41030 | else | |
41031 | if test "$wxUSE_FS_INET" = "yes"; then | |
41032 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
41033 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
41034 | wxUSE_FS_INET="no" | |
41035 | fi | |
41036 | fi | |
41037 | ||
41038 | if test "$wxUSE_URL" = "yes"; then | |
41039 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
41040 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
41041 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
41042 | wxUSE_URL=no | |
41043 | fi | |
41044 | if test "$wxUSE_URL" = "yes"; then | |
41045 | cat >>confdefs.h <<\_ACEOF | |
41046 | #define wxUSE_URL 1 | |
41047 | _ACEOF | |
41048 | ||
41049 | fi | |
41050 | fi | |
41051 | ||
41052 | if test "$wxUSE_FS_INET" = "yes"; then | |
41053 | cat >>confdefs.h <<\_ACEOF | |
41054 | #define wxUSE_FS_INET 1 | |
41055 | _ACEOF | |
41056 | ||
41057 | fi | |
41058 | ||
41059 | ||
ee45c548 MW |
41060 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
41061 | wxUSE_JOYSTICK=no | |
41062 | ||
41063 | if test "$TOOLKIT" = "MSW"; then | |
41064 | wxUSE_JOYSTICK=yes | |
41065 | ||
41066 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
41067 | if test "$USE_DARWIN" = 1; then | |
41068 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
41069 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
41070 | ac_ext=cc | |
41071 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41072 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41073 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41074 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41075 | ||
41076 | cat >conftest.$ac_ext <<_ACEOF | |
41077 | /* confdefs.h. */ | |
41078 | _ACEOF | |
41079 | cat confdefs.h >>conftest.$ac_ext | |
41080 | cat >>conftest.$ac_ext <<_ACEOF | |
41081 | /* end confdefs.h. */ | |
41082 | #include <IOKit/hid/IOHIDLib.h> | |
41083 | int | |
41084 | main () | |
41085 | { | |
41086 | IOHIDQueueInterface *qi = NULL; | |
41087 | IOHIDCallbackFunction cb = NULL; | |
41088 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
41089 | ; | |
41090 | return 0; | |
41091 | } | |
41092 | _ACEOF | |
41093 | rm -f conftest.$ac_objext | |
41094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41095 | (eval $ac_compile) 2>conftest.er1 | |
41096 | ac_status=$? | |
41097 | grep -v '^ *+' conftest.er1 >conftest.err | |
41098 | rm -f conftest.er1 | |
41099 | cat conftest.err >&5 | |
41100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41101 | (exit $ac_status); } && | |
dee1a63f MB |
41102 | { ac_try='test -z "$ac_cxx_werror_flag" |
41103 | || test ! -s conftest.err' | |
ee45c548 MW |
41104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41105 | (eval $ac_try) 2>&5 | |
41106 | ac_status=$? | |
41107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41108 | (exit $ac_status); }; } && | |
41109 | { ac_try='test -s conftest.$ac_objext' | |
41110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41111 | (eval $ac_try) 2>&5 | |
41112 | ac_status=$? | |
41113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41114 | (exit $ac_status); }; }; then | |
41115 | wxUSE_JOYSTICK=yes | |
a848cd7e | 41116 | |
ee45c548 MW |
41117 | else |
41118 | echo "$as_me: failed program was:" >&5 | |
41119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41120 | ||
41121 | fi | |
41122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41123 | ac_ext=c | |
41124 | ac_cpp='$CPP $CPPFLAGS' | |
41125 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41126 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41127 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41128 | ||
41129 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
41130 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
41131 | fi | |
41132 | ||
41133 | else | |
a848cd7e SC |
41134 | |
41135 | for ac_header in linux/joystick.h | |
41136 | do | |
41137 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
41138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41139 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41140 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41141 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41143 | fi | |
41144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41146 | else | |
41147 | # Is the header compilable? | |
41148 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
41149 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
41150 | cat >conftest.$ac_ext <<_ACEOF | |
41151 | /* confdefs.h. */ | |
41152 | _ACEOF | |
41153 | cat confdefs.h >>conftest.$ac_ext | |
41154 | cat >>conftest.$ac_ext <<_ACEOF | |
41155 | /* end confdefs.h. */ | |
41156 | $ac_includes_default | |
41157 | #include <$ac_header> | |
41158 | _ACEOF | |
41159 | rm -f conftest.$ac_objext | |
41160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41161 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41162 | ac_status=$? |
ac1cb8d3 VS |
41163 | grep -v '^ *+' conftest.er1 >conftest.err |
41164 | rm -f conftest.er1 | |
41165 | cat conftest.err >&5 | |
a848cd7e SC |
41166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41167 | (exit $ac_status); } && | |
dee1a63f MB |
41168 | { ac_try='test -z "$ac_c_werror_flag" |
41169 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41171 | (eval $ac_try) 2>&5 | |
41172 | ac_status=$? | |
41173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41174 | (exit $ac_status); }; } && | |
41175 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41177 | (eval $ac_try) 2>&5 | |
41178 | ac_status=$? | |
41179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41180 | (exit $ac_status); }; }; then | |
41181 | ac_header_compiler=yes | |
41182 | else | |
41183 | echo "$as_me: failed program was:" >&5 | |
41184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41185 | ||
41186 | ac_header_compiler=no | |
41187 | fi | |
ac1cb8d3 | 41188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41189 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
41190 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
41191 | ||
41192 | # Is the header present? | |
41193 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
41194 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
41195 | cat >conftest.$ac_ext <<_ACEOF | |
41196 | /* confdefs.h. */ | |
41197 | _ACEOF | |
41198 | cat confdefs.h >>conftest.$ac_ext | |
41199 | cat >>conftest.$ac_ext <<_ACEOF | |
41200 | /* end confdefs.h. */ | |
41201 | #include <$ac_header> | |
41202 | _ACEOF | |
41203 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
41204 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
41205 | ac_status=$? | |
41206 | grep -v '^ *+' conftest.er1 >conftest.err | |
41207 | rm -f conftest.er1 | |
41208 | cat conftest.err >&5 | |
41209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41210 | (exit $ac_status); } >/dev/null; then | |
41211 | if test -s conftest.err; then | |
41212 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 41213 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
41214 | else |
41215 | ac_cpp_err= | |
41216 | fi | |
41217 | else | |
41218 | ac_cpp_err=yes | |
41219 | fi | |
41220 | if test -z "$ac_cpp_err"; then | |
41221 | ac_header_preproc=yes | |
41222 | else | |
41223 | echo "$as_me: failed program was:" >&5 | |
41224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41225 | ||
41226 | ac_header_preproc=no | |
41227 | fi | |
41228 | rm -f conftest.err conftest.$ac_ext | |
41229 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
41230 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
41231 | ||
41232 | # So? What about this header? | |
ac1cb8d3 VS |
41233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
41234 | yes:no: ) | |
a848cd7e SC |
41235 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
41236 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
41237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
41238 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
41239 | ac_header_preproc=yes | |
a848cd7e | 41240 | ;; |
ac1cb8d3 | 41241 | no:yes:* ) |
a848cd7e SC |
41242 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
41243 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
41244 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
41245 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
41246 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
41247 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
41248 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
41249 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
41250 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
41251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
41252 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
41253 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
41254 | ( |
41255 | cat <<\_ASBOX | |
ac1cb8d3 VS |
41256 | ## ----------------------------------------- ## |
41257 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
41258 | ## ----------------------------------------- ## | |
a848cd7e SC |
41259 | _ASBOX |
41260 | ) | | |
41261 | sed "s/^/$as_me: WARNING: /" >&2 | |
41262 | ;; | |
41263 | esac | |
41264 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41268 | else | |
ac1cb8d3 | 41269 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
41270 | fi |
41271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41273 | ||
41274 | fi | |
41275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
41276 | cat >>confdefs.h <<_ACEOF | |
41277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
41278 | _ACEOF | |
ee45c548 | 41279 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
41280 | fi |
41281 | ||
41282 | done | |
41283 | ||
ee45c548 | 41284 | fi |
4cb1d3da | 41285 | |
ee45c548 MW |
41286 | if test "$wxUSE_JOYSTICK" = "yes"; then |
41287 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41288 | #define wxUSE_JOYSTICK 1 |
41289 | _ACEOF | |
41290 | ||
ee45c548 MW |
41291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
41292 | else | |
41293 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
41294 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
41295 | fi |
41296 | fi | |
41297 | ||
41298 | ||
41299 | ||
41300 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
41301 | cat >>confdefs.h <<\_ACEOF | |
41302 | #define wxUSE_FONTMAP 1 | |
41303 | _ACEOF | |
41304 | ||
41305 | fi | |
41306 | ||
41307 | if test "$wxUSE_UNICODE" = "yes" ; then | |
41308 | cat >>confdefs.h <<\_ACEOF | |
41309 | #define wxUSE_UNICODE 1 | |
41310 | _ACEOF | |
41311 | ||
41312 | ||
41313 | if test "$USE_WIN32" != 1; then | |
41314 | wxUSE_UNICODE_MSLU=no | |
41315 | fi | |
41316 | ||
41317 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
41318 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
41319 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
41320 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
41321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41322 | else | |
41323 | ac_check_lib_save_LIBS=$LIBS | |
41324 | LIBS="-lunicows $LIBS" | |
41325 | cat >conftest.$ac_ext <<_ACEOF | |
41326 | /* confdefs.h. */ | |
41327 | _ACEOF | |
41328 | cat confdefs.h >>conftest.$ac_ext | |
41329 | cat >>conftest.$ac_ext <<_ACEOF | |
41330 | /* end confdefs.h. */ | |
41331 | ||
41332 | ||
41333 | int | |
41334 | main () | |
41335 | { | |
41336 | main (); | |
41337 | ; | |
41338 | return 0; | |
41339 | } | |
41340 | _ACEOF | |
41341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41343 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41344 | ac_status=$? |
ac1cb8d3 VS |
41345 | grep -v '^ *+' conftest.er1 >conftest.err |
41346 | rm -f conftest.er1 | |
41347 | cat conftest.err >&5 | |
a848cd7e SC |
41348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41349 | (exit $ac_status); } && | |
dee1a63f MB |
41350 | { ac_try='test -z "$ac_c_werror_flag" |
41351 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41353 | (eval $ac_try) 2>&5 | |
41354 | ac_status=$? | |
41355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41356 | (exit $ac_status); }; } && | |
41357 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41359 | (eval $ac_try) 2>&5 | |
41360 | ac_status=$? | |
41361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41362 | (exit $ac_status); }; }; then | |
41363 | ac_cv_lib_unicows_main=yes | |
41364 | else | |
41365 | echo "$as_me: failed program was:" >&5 | |
41366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41367 | ||
41368 | ac_cv_lib_unicows_main=no | |
41369 | fi | |
ac1cb8d3 VS |
41370 | rm -f conftest.err conftest.$ac_objext \ |
41371 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41372 | LIBS=$ac_check_lib_save_LIBS |
41373 | fi | |
41374 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
41375 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
41376 | if test $ac_cv_lib_unicows_main = yes; then | |
41377 | ||
41378 | cat >>confdefs.h <<\_ACEOF | |
41379 | #define wxUSE_UNICODE_MSLU 1 | |
41380 | _ACEOF | |
41381 | ||
41382 | ||
41383 | else | |
41384 | ||
41385 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
41386 | Applications will only run on Windows NT/2000/XP!" >&5 | |
41387 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
41388 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
41389 | wxUSE_UNICODE_MSLU=no | |
41390 | ||
41391 | fi | |
41392 | ||
41393 | fi | |
41394 | fi | |
41395 | ||
41396 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
41397 | cat >>confdefs.h <<\_ACEOF | |
41398 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
41399 | _ACEOF | |
41400 | ||
41401 | fi | |
41402 | ||
41403 | ||
41404 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
41405 | cat >>confdefs.h <<\_ACEOF | |
41406 | #define wxUSE_POSTSCRIPT 1 | |
41407 | _ACEOF | |
41408 | ||
41409 | fi | |
41410 | ||
41411 | cat >>confdefs.h <<\_ACEOF | |
41412 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
41413 | _ACEOF | |
41414 | ||
41415 | ||
41416 | cat >>confdefs.h <<\_ACEOF | |
41417 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
41418 | _ACEOF | |
41419 | ||
41420 | ||
41421 | ||
41422 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
41423 | cat >>confdefs.h <<\_ACEOF | |
41424 | #define wxUSE_CONSTRAINTS 1 | |
41425 | _ACEOF | |
41426 | ||
41427 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
41428 | fi | |
41429 | ||
8a7b1113 VZ |
41430 | if test "$wxUSE_MDI" = "yes"; then |
41431 | cat >>confdefs.h <<\_ACEOF | |
41432 | #define wxUSE_MDI 1 | |
41433 | _ACEOF | |
41434 | ||
41435 | ||
41436 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
41437 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41438 | #define wxUSE_MDI_ARCHITECTURE 1 |
41439 | _ACEOF | |
41440 | ||
8a7b1113 VZ |
41441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
41442 | fi | |
a848cd7e SC |
41443 | fi |
41444 | ||
41445 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
41446 | cat >>confdefs.h <<\_ACEOF | |
41447 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
41448 | _ACEOF | |
41449 | ||
41450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
41451 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
41452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
41453 | fi | |
41454 | fi | |
41455 | ||
41456 | if test "$wxUSE_HELP" = "yes"; then | |
41457 | cat >>confdefs.h <<\_ACEOF | |
41458 | #define wxUSE_HELP 1 | |
41459 | _ACEOF | |
41460 | ||
41461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
41462 | ||
41463 | if test "$wxUSE_MSW" = 1; then | |
41464 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
41465 | cat >>confdefs.h <<\_ACEOF | |
41466 | #define wxUSE_MS_HTML_HELP 1 | |
41467 | _ACEOF | |
41468 | ||
41469 | fi | |
41470 | fi | |
41471 | ||
41472 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
41473 | if test "$wxUSE_HTML" = "yes"; then | |
41474 | cat >>confdefs.h <<\_ACEOF | |
41475 | #define wxUSE_WXHTML_HELP 1 | |
41476 | _ACEOF | |
41477 | ||
41478 | else | |
41479 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
41480 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
41481 | wxUSE_WXHTML_HELP=no | |
41482 | fi | |
41483 | fi | |
41484 | fi | |
41485 | ||
41486 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41487 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41488 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
41489 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
41490 | else | |
41491 | cat >>confdefs.h <<\_ACEOF | |
41492 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
41493 | _ACEOF | |
41494 | ||
41495 | fi | |
41496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
41497 | fi | |
41498 | ||
41499 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
41500 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
41501 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
41502 | { (exit 1); exit 1; }; } | |
41503 | fi | |
41504 | ||
41505 | ||
efdf6afe VZ |
41506 | if test "$wxUSE_METAFILE" = "yes"; then |
41507 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
41508 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
41509 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
41510 | wxUSE_METAFILE=no | |
41511 | fi | |
41512 | fi | |
41513 | ||
41514 | ||
a848cd7e SC |
41515 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
41516 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
41517 | -o "$wxUSE_OLE" = "yes" \ | |
41518 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
41519 | ||
41520 | for ac_header in ole2.h | |
41521 | do | |
41522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
41523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41528 | fi | |
41529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41531 | else | |
41532 | # Is the header compilable? | |
41533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
41534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
41535 | cat >conftest.$ac_ext <<_ACEOF | |
41536 | /* confdefs.h. */ | |
41537 | _ACEOF | |
41538 | cat confdefs.h >>conftest.$ac_ext | |
41539 | cat >>conftest.$ac_ext <<_ACEOF | |
41540 | /* end confdefs.h. */ | |
41541 | $ac_includes_default | |
41542 | #include <$ac_header> | |
41543 | _ACEOF | |
41544 | rm -f conftest.$ac_objext | |
41545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41546 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41547 | ac_status=$? |
ac1cb8d3 VS |
41548 | grep -v '^ *+' conftest.er1 >conftest.err |
41549 | rm -f conftest.er1 | |
41550 | cat conftest.err >&5 | |
a848cd7e SC |
41551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41552 | (exit $ac_status); } && | |
dee1a63f MB |
41553 | { ac_try='test -z "$ac_c_werror_flag" |
41554 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41556 | (eval $ac_try) 2>&5 | |
41557 | ac_status=$? | |
41558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41559 | (exit $ac_status); }; } && | |
41560 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41562 | (eval $ac_try) 2>&5 | |
41563 | ac_status=$? | |
41564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41565 | (exit $ac_status); }; }; then | |
41566 | ac_header_compiler=yes | |
41567 | else | |
41568 | echo "$as_me: failed program was:" >&5 | |
41569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41570 | ||
41571 | ac_header_compiler=no | |
41572 | fi | |
ac1cb8d3 | 41573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
41575 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
41576 | ||
41577 | # Is the header present? | |
41578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
41579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
41580 | cat >conftest.$ac_ext <<_ACEOF | |
41581 | /* confdefs.h. */ | |
41582 | _ACEOF | |
41583 | cat confdefs.h >>conftest.$ac_ext | |
41584 | cat >>conftest.$ac_ext <<_ACEOF | |
41585 | /* end confdefs.h. */ | |
41586 | #include <$ac_header> | |
41587 | _ACEOF | |
41588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
41589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
41590 | ac_status=$? | |
41591 | grep -v '^ *+' conftest.er1 >conftest.err | |
41592 | rm -f conftest.er1 | |
41593 | cat conftest.err >&5 | |
41594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41595 | (exit $ac_status); } >/dev/null; then | |
41596 | if test -s conftest.err; then | |
41597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 41598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
41599 | else |
41600 | ac_cpp_err= | |
41601 | fi | |
41602 | else | |
41603 | ac_cpp_err=yes | |
41604 | fi | |
41605 | if test -z "$ac_cpp_err"; then | |
41606 | ac_header_preproc=yes | |
41607 | else | |
41608 | echo "$as_me: failed program was:" >&5 | |
41609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41610 | ||
41611 | ac_header_preproc=no | |
41612 | fi | |
41613 | rm -f conftest.err conftest.$ac_ext | |
41614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
41615 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
41616 | ||
41617 | # So? What about this header? | |
ac1cb8d3 VS |
41618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
41619 | yes:no: ) | |
a848cd7e SC |
41620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
41621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
41622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
41623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
41624 | ac_header_preproc=yes | |
a848cd7e | 41625 | ;; |
ac1cb8d3 | 41626 | no:yes:* ) |
a848cd7e SC |
41627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
41628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
41629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
41630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
41631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
41632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
41633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
41634 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
41635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
41636 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
41637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
41638 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
41639 | ( |
41640 | cat <<\_ASBOX | |
ac1cb8d3 VS |
41641 | ## ----------------------------------------- ## |
41642 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
41643 | ## ----------------------------------------- ## | |
a848cd7e SC |
41644 | _ASBOX |
41645 | ) | | |
41646 | sed "s/^/$as_me: WARNING: /" >&2 | |
41647 | ;; | |
41648 | esac | |
41649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41653 | else | |
ac1cb8d3 | 41654 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
41655 | fi |
41656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41658 | ||
41659 | fi | |
41660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
41661 | cat >>confdefs.h <<_ACEOF | |
41662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
41663 | _ACEOF | |
41664 | ||
41665 | fi | |
41666 | ||
41667 | done | |
41668 | ||
41669 | ||
41670 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
41671 | if test "$GCC" = yes ; then | |
41672 | ||
41673 | ||
41674 | ac_ext=cc | |
41675 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41679 | ||
41680 | ||
41681 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
41682 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
41683 | cat >conftest.$ac_ext <<_ACEOF | |
41684 | /* confdefs.h. */ | |
41685 | _ACEOF | |
41686 | cat confdefs.h >>conftest.$ac_ext | |
41687 | cat >>conftest.$ac_ext <<_ACEOF | |
41688 | /* end confdefs.h. */ | |
41689 | #include <windows.h> | |
41690 | #include <ole2.h> | |
41691 | int | |
41692 | main () | |
41693 | { | |
41694 | ||
41695 | ; | |
41696 | return 0; | |
41697 | } | |
41698 | _ACEOF | |
41699 | rm -f conftest.$ac_objext | |
41700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41702 | ac_status=$? |
ac1cb8d3 VS |
41703 | grep -v '^ *+' conftest.er1 >conftest.err |
41704 | rm -f conftest.er1 | |
41705 | cat conftest.err >&5 | |
a848cd7e SC |
41706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41707 | (exit $ac_status); } && | |
dee1a63f MB |
41708 | { ac_try='test -z "$ac_cxx_werror_flag" |
41709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41711 | (eval $ac_try) 2>&5 | |
41712 | ac_status=$? | |
41713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41714 | (exit $ac_status); }; } && | |
41715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41717 | (eval $ac_try) 2>&5 | |
41718 | ac_status=$? | |
41719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41720 | (exit $ac_status); }; }; then | |
41721 | echo "$as_me:$LINENO: result: no" >&5 | |
41722 | echo "${ECHO_T}no" >&6 | |
41723 | else | |
41724 | echo "$as_me: failed program was:" >&5 | |
41725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41726 | ||
41727 | echo "$as_me:$LINENO: result: yes" >&5 | |
41728 | echo "${ECHO_T}yes" >&6 | |
41729 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
41730 | fi | |
ac1cb8d3 | 41731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41732 | ac_ext=c |
41733 | ac_cpp='$CPP $CPPFLAGS' | |
41734 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41735 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41736 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41737 | ||
a848cd7e SC |
41738 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
41739 | if test "$wxUSE_OLE" = "yes" ; then | |
41740 | cat >>confdefs.h <<\_ACEOF | |
41741 | #define wxUSE_OLE 1 | |
41742 | _ACEOF | |
41743 | ||
0b78747f | 41744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
41745 | fi |
41746 | fi | |
41747 | ||
41748 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
41749 | cat >>confdefs.h <<\_ACEOF | |
41750 | #define wxUSE_DATAOBJ 1 | |
41751 | _ACEOF | |
41752 | ||
41753 | fi | |
41754 | else | |
41755 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
41756 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
41757 | ||
41758 | wxUSE_CLIPBOARD=no | |
41759 | wxUSE_DRAG_AND_DROP=no | |
41760 | wxUSE_DATAOBJ=no | |
41761 | wxUSE_OLE=no | |
41762 | fi | |
41763 | ||
41764 | if test "$wxUSE_METAFILE" = "yes"; then | |
41765 | cat >>confdefs.h <<\_ACEOF | |
41766 | #define wxUSE_METAFILE 1 | |
41767 | _ACEOF | |
41768 | ||
41769 | ||
41770 | cat >>confdefs.h <<\_ACEOF | |
41771 | #define wxUSE_ENH_METAFILE 1 | |
41772 | _ACEOF | |
41773 | ||
41774 | fi | |
41775 | fi | |
41776 | ||
41777 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 41778 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
41779 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
41780 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 41781 | wxUSE_IPC=no |
a848cd7e SC |
41782 | fi |
41783 | ||
0b78747f MW |
41784 | if test "$wxUSE_IPC" = "yes"; then |
41785 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41786 | #define wxUSE_IPC 1 |
41787 | _ACEOF | |
41788 | ||
0b78747f MW |
41789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
41790 | fi | |
a848cd7e SC |
41791 | fi |
41792 | ||
eb730a0c | 41793 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
41794 | if test "$wxUSE_MGL" = 1; then |
41795 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
41796 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
41797 | wxUSE_DATAOBJ=no | |
41798 | else | |
41799 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
41800 | #define wxUSE_DATAOBJ 1 |
41801 | _ACEOF | |
41802 | ||
2113bc77 | 41803 | fi |
eb730a0c JS |
41804 | else |
41805 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
41806 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
41807 | wxUSE_CLIPBOARD=no | |
41808 | wxUSE_DRAG_AND_DROP=no | |
41809 | fi | |
41810 | ||
a848cd7e SC |
41811 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
41812 | if test "$wxUSE_MGL" = 1; then | |
41813 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
41814 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
41815 | wxUSE_CLIPBOARD=no | |
41816 | fi | |
41817 | ||
41818 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
41819 | cat >>confdefs.h <<\_ACEOF | |
41820 | #define wxUSE_CLIPBOARD 1 | |
41821 | _ACEOF | |
41822 | ||
a848cd7e SC |
41823 | fi |
41824 | fi | |
41825 | ||
41826 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
41827 | if test "$wxUSE_GTK" = 1; then | |
41828 | if test "$WXGTK12" != 1; then | |
41829 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
41830 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
41831 | wxUSE_DRAG_AND_DROP=no | |
41832 | fi | |
41833 | fi | |
41834 | ||
41835 | if test "$wxUSE_MOTIF" = 1; then | |
41836 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
41837 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
41838 | wxUSE_DRAG_AND_DROP=no | |
41839 | fi | |
41840 | ||
41841 | if test "$wxUSE_X11" = 1; then | |
41842 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
41843 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
41844 | wxUSE_DRAG_AND_DROP=no | |
41845 | fi | |
41846 | ||
41847 | if test "$wxUSE_MGL" = 1; then | |
41848 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
41849 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
41850 | wxUSE_DRAG_AND_DROP=no | |
41851 | fi | |
41852 | ||
41853 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
41854 | cat >>confdefs.h <<\_ACEOF | |
41855 | #define wxUSE_DRAG_AND_DROP 1 | |
41856 | _ACEOF | |
41857 | ||
41858 | fi | |
41859 | ||
41860 | fi | |
41861 | ||
41862 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
41863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
41864 | fi | |
41865 | ||
41866 | if test "$wxUSE_SPLINES" = "yes" ; then | |
41867 | cat >>confdefs.h <<\_ACEOF | |
41868 | #define wxUSE_SPLINES 1 | |
41869 | _ACEOF | |
41870 | ||
41871 | fi | |
41872 | ||
fbe2ca43 SN |
41873 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
41874 | cat >>confdefs.h <<\_ACEOF | |
41875 | #define wxUSE_MOUSEWHEEL 1 | |
41876 | _ACEOF | |
41877 | ||
41878 | fi | |
41879 | ||
a848cd7e SC |
41880 | |
41881 | USES_CONTROLS=0 | |
41882 | if test "$wxUSE_CONTROLS" = "yes"; then | |
41883 | USES_CONTROLS=1 | |
41884 | fi | |
41885 | ||
41886 | if test "$wxUSE_ACCEL" = "yes"; then | |
41887 | cat >>confdefs.h <<\_ACEOF | |
41888 | #define wxUSE_ACCEL 1 | |
41889 | _ACEOF | |
41890 | ||
41891 | USES_CONTROLS=1 | |
41892 | fi | |
41893 | ||
41894 | if test "$wxUSE_BUTTON" = "yes"; then | |
41895 | cat >>confdefs.h <<\_ACEOF | |
41896 | #define wxUSE_BUTTON 1 | |
41897 | _ACEOF | |
41898 | ||
41899 | USES_CONTROLS=1 | |
41900 | fi | |
41901 | ||
41902 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
41903 | cat >>confdefs.h <<\_ACEOF | |
41904 | #define wxUSE_BMPBUTTON 1 | |
41905 | _ACEOF | |
41906 | ||
41907 | USES_CONTROLS=1 | |
41908 | fi | |
41909 | ||
41910 | if test "$wxUSE_CALCTRL" = "yes"; then | |
41911 | cat >>confdefs.h <<\_ACEOF | |
41912 | #define wxUSE_CALENDARCTRL 1 | |
41913 | _ACEOF | |
41914 | ||
41915 | USES_CONTROLS=1 | |
41916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
41917 | fi | |
41918 | ||
41919 | if test "$wxUSE_CARET" = "yes"; then | |
41920 | cat >>confdefs.h <<\_ACEOF | |
41921 | #define wxUSE_CARET 1 | |
41922 | _ACEOF | |
41923 | ||
41924 | USES_CONTROLS=1 | |
41925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
41926 | fi | |
41927 | ||
41928 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
41929 | cat >>confdefs.h <<\_ACEOF | |
41930 | #define wxUSE_COMBOBOX 1 | |
41931 | _ACEOF | |
41932 | ||
41933 | USES_CONTROLS=1 | |
41934 | fi | |
41935 | ||
41936 | if test "$wxUSE_CHOICE" = "yes"; then | |
41937 | cat >>confdefs.h <<\_ACEOF | |
41938 | #define wxUSE_CHOICE 1 | |
41939 | _ACEOF | |
41940 | ||
41941 | USES_CONTROLS=1 | |
41942 | fi | |
41943 | ||
92bbdbcd WS |
41944 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
41945 | cat >>confdefs.h <<\_ACEOF | |
41946 | #define wxUSE_CHOICEBOOK 1 | |
41947 | _ACEOF | |
41948 | ||
41949 | USES_CONTROLS=1 | |
41950 | fi | |
41951 | ||
a848cd7e SC |
41952 | if test "$wxUSE_CHECKBOX" = "yes"; then |
41953 | cat >>confdefs.h <<\_ACEOF | |
41954 | #define wxUSE_CHECKBOX 1 | |
41955 | _ACEOF | |
41956 | ||
41957 | USES_CONTROLS=1 | |
41958 | fi | |
41959 | ||
41960 | if test "$wxUSE_CHECKLST" = "yes"; then | |
41961 | cat >>confdefs.h <<\_ACEOF | |
41962 | #define wxUSE_CHECKLISTBOX 1 | |
41963 | _ACEOF | |
41964 | ||
41965 | USES_CONTROLS=1 | |
41966 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
41967 | fi | |
41968 | ||
da98e9be VZ |
41969 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
41970 | cat >>confdefs.h <<\_ACEOF | |
41971 | #define wxUSE_DATEPICKCTRL 1 | |
41972 | _ACEOF | |
41973 | ||
41974 | USES_CONTROLS=1 | |
41975 | fi | |
41976 | ||
a848cd7e SC |
41977 | if test "$wxUSE_DISPLAY" = "yes"; then |
41978 | cat >>confdefs.h <<\_ACEOF | |
41979 | #define wxUSE_DISPLAY 1 | |
41980 | _ACEOF | |
41981 | ||
0b78747f | 41982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
41983 | fi |
41984 | ||
41985 | if test "$wxUSE_GAUGE" = "yes"; then | |
41986 | cat >>confdefs.h <<\_ACEOF | |
41987 | #define wxUSE_GAUGE 1 | |
41988 | _ACEOF | |
41989 | ||
41990 | USES_CONTROLS=1 | |
41991 | fi | |
41992 | ||
41993 | if test "$wxUSE_GRID" = "yes"; then | |
41994 | cat >>confdefs.h <<\_ACEOF | |
41995 | #define wxUSE_GRID 1 | |
41996 | _ACEOF | |
41997 | ||
41998 | USES_CONTROLS=1 | |
41999 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
42000 | fi | |
42001 | ||
42002 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
42003 | cat >>confdefs.h <<\_ACEOF | |
42004 | #define wxUSE_IMAGLIST 1 | |
42005 | _ACEOF | |
42006 | ||
42007 | fi | |
42008 | ||
42009 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
42010 | cat >>confdefs.h <<\_ACEOF | |
42011 | #define wxUSE_LISTBOOK 1 | |
42012 | _ACEOF | |
42013 | ||
42014 | USES_CONTROLS=1 | |
42015 | fi | |
42016 | ||
42017 | if test "$wxUSE_LISTBOX" = "yes"; then | |
42018 | cat >>confdefs.h <<\_ACEOF | |
42019 | #define wxUSE_LISTBOX 1 | |
42020 | _ACEOF | |
42021 | ||
42022 | USES_CONTROLS=1 | |
0b78747f | 42023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
42024 | fi |
42025 | ||
42026 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
42027 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
42028 | cat >>confdefs.h <<\_ACEOF | |
42029 | #define wxUSE_LISTCTRL 1 | |
42030 | _ACEOF | |
42031 | ||
42032 | USES_CONTROLS=1 | |
42033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
42034 | else | |
42035 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
42036 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
42037 | fi | |
42038 | fi | |
42039 | ||
42040 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
42041 | cat >>confdefs.h <<\_ACEOF | |
42042 | #define wxUSE_NOTEBOOK 1 | |
42043 | _ACEOF | |
42044 | ||
42045 | USES_CONTROLS=1 | |
42046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
42047 | fi | |
42048 | ||
42049 | ||
42050 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
42051 | cat >>confdefs.h <<\_ACEOF | |
42052 | #define wxUSE_RADIOBOX 1 | |
42053 | _ACEOF | |
42054 | ||
42055 | USES_CONTROLS=1 | |
42056 | fi | |
42057 | ||
42058 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
42059 | cat >>confdefs.h <<\_ACEOF | |
42060 | #define wxUSE_RADIOBTN 1 | |
42061 | _ACEOF | |
42062 | ||
42063 | USES_CONTROLS=1 | |
42064 | fi | |
42065 | ||
42066 | if test "$wxUSE_SASH" = "yes"; then | |
42067 | cat >>confdefs.h <<\_ACEOF | |
42068 | #define wxUSE_SASH 1 | |
42069 | _ACEOF | |
42070 | ||
42071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
42072 | fi | |
42073 | ||
42074 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
42075 | cat >>confdefs.h <<\_ACEOF | |
42076 | #define wxUSE_SCROLLBAR 1 | |
42077 | _ACEOF | |
42078 | ||
42079 | USES_CONTROLS=1 | |
42080 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
42081 | fi | |
42082 | ||
42083 | if test "$wxUSE_SLIDER" = "yes"; then | |
42084 | cat >>confdefs.h <<\_ACEOF | |
42085 | #define wxUSE_SLIDER 1 | |
42086 | _ACEOF | |
42087 | ||
42088 | USES_CONTROLS=1 | |
42089 | fi | |
42090 | ||
42091 | if test "$wxUSE_SPINBTN" = "yes"; then | |
42092 | cat >>confdefs.h <<\_ACEOF | |
42093 | #define wxUSE_SPINBTN 1 | |
42094 | _ACEOF | |
42095 | ||
42096 | USES_CONTROLS=1 | |
42097 | fi | |
42098 | ||
42099 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
42100 | cat >>confdefs.h <<\_ACEOF | |
42101 | #define wxUSE_SPINCTRL 1 | |
42102 | _ACEOF | |
42103 | ||
42104 | USES_CONTROLS=1 | |
42105 | fi | |
42106 | ||
42107 | if test "$wxUSE_SPLITTER" = "yes"; then | |
42108 | cat >>confdefs.h <<\_ACEOF | |
42109 | #define wxUSE_SPLITTER 1 | |
42110 | _ACEOF | |
42111 | ||
42112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
42113 | fi | |
42114 | ||
42115 | if test "$wxUSE_STATBMP" = "yes"; then | |
42116 | cat >>confdefs.h <<\_ACEOF | |
42117 | #define wxUSE_STATBMP 1 | |
42118 | _ACEOF | |
42119 | ||
42120 | USES_CONTROLS=1 | |
42121 | fi | |
42122 | ||
42123 | if test "$wxUSE_STATBOX" = "yes"; then | |
42124 | cat >>confdefs.h <<\_ACEOF | |
42125 | #define wxUSE_STATBOX 1 | |
42126 | _ACEOF | |
42127 | ||
42128 | USES_CONTROLS=1 | |
42129 | fi | |
42130 | ||
42131 | if test "$wxUSE_STATTEXT" = "yes"; then | |
42132 | cat >>confdefs.h <<\_ACEOF | |
42133 | #define wxUSE_STATTEXT 1 | |
42134 | _ACEOF | |
42135 | ||
42136 | USES_CONTROLS=1 | |
42137 | fi | |
42138 | ||
42139 | if test "$wxUSE_STATLINE" = "yes"; then | |
42140 | cat >>confdefs.h <<\_ACEOF | |
42141 | #define wxUSE_STATLINE 1 | |
42142 | _ACEOF | |
42143 | ||
42144 | USES_CONTROLS=1 | |
42145 | fi | |
42146 | ||
42147 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
42148 | cat >>confdefs.h <<\_ACEOF |
42149 | #define wxUSE_NATIVE_STATUSBAR 1 | |
42150 | _ACEOF | |
42151 | ||
a848cd7e SC |
42152 | cat >>confdefs.h <<\_ACEOF |
42153 | #define wxUSE_STATUSBAR 1 | |
42154 | _ACEOF | |
42155 | ||
42156 | USES_CONTROLS=1 | |
42157 | ||
42158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
42159 | fi | |
42160 | ||
42161 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
42162 | cat >>confdefs.h <<\_ACEOF | |
42163 | #define wxUSE_TAB_DIALOG 1 | |
42164 | _ACEOF | |
42165 | ||
a848cd7e SC |
42166 | fi |
42167 | ||
42168 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
42169 | cat >>confdefs.h <<\_ACEOF | |
42170 | #define wxUSE_TEXTCTRL 1 | |
42171 | _ACEOF | |
42172 | ||
42173 | USES_CONTROLS=1 | |
42174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
42175 | fi | |
42176 | ||
42177 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
42178 | if test "$wxUSE_COCOA" = 1 ; then | |
42179 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
42180 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
42181 | wxUSE_TOGGLEBTN=no | |
42182 | fi | |
42183 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
42184 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
42185 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
42186 | wxUSE_TOGGLEBTN=no | |
42187 | fi | |
42188 | ||
42189 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
42190 | cat >>confdefs.h <<\_ACEOF | |
42191 | #define wxUSE_TOGGLEBTN 1 | |
42192 | _ACEOF | |
42193 | ||
42194 | USES_CONTROLS=1 | |
42195 | fi | |
42196 | fi | |
42197 | ||
42198 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
42199 | cat >>confdefs.h <<\_ACEOF | |
42200 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
42201 | _ACEOF | |
42202 | ||
42203 | wxUSE_TOOLBAR="yes" | |
42204 | USES_CONTROLS=1 | |
42205 | fi | |
42206 | ||
42207 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
42208 | cat >>confdefs.h <<\_ACEOF | |
42209 | #define wxUSE_TOOLBAR 1 | |
42210 | _ACEOF | |
42211 | ||
42212 | USES_CONTROLS=1 | |
42213 | ||
42214 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
42215 | wxUSE_TOOLBAR_NATIVE="yes" | |
42216 | fi | |
42217 | ||
42218 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
42219 | cat >>confdefs.h <<\_ACEOF | |
42220 | #define wxUSE_TOOLBAR_NATIVE 1 | |
42221 | _ACEOF | |
42222 | ||
42223 | USES_CONTROLS=1 | |
42224 | fi | |
42225 | ||
42226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
42227 | fi | |
42228 | ||
42229 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
42230 | if test "$wxUSE_MOTIF" = 1; then | |
42231 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
42232 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
42233 | else | |
42234 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
42235 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
42236 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
42237 | else | |
42238 | cat >>confdefs.h <<\_ACEOF | |
42239 | #define wxUSE_TOOLTIPS 1 | |
42240 | _ACEOF | |
42241 | ||
42242 | fi | |
42243 | fi | |
42244 | fi | |
42245 | ||
42246 | if test "$wxUSE_TREECTRL" = "yes"; then | |
42247 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
42248 | cat >>confdefs.h <<\_ACEOF | |
42249 | #define wxUSE_TREECTRL 1 | |
42250 | _ACEOF | |
42251 | ||
42252 | USES_CONTROLS=1 | |
42253 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
42254 | else | |
42255 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
42256 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
42257 | fi | |
42258 | fi | |
42259 | ||
42260 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
42261 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
42262 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
42263 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
42264 | else | |
42265 | if test "$wxUSE_PM" = 1; then | |
42266 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
42267 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
42268 | else | |
42269 | cat >>confdefs.h <<\_ACEOF | |
42270 | #define wxUSE_POPUPWIN 1 | |
42271 | _ACEOF | |
42272 | ||
0b78747f | 42273 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
42274 | |
42275 | USES_CONTROLS=1 | |
42276 | fi | |
42277 | fi | |
42278 | fi | |
42279 | ||
0dcd06dd | 42280 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
42281 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
42282 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
42283 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
42284 | else | |
42285 | cat >>confdefs.h <<\_ACEOF | |
42286 | #define wxUSE_DIALUP_MANAGER 1 | |
42287 | _ACEOF | |
42288 | ||
42289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
42290 | fi | |
42291 | fi | |
42292 | ||
a848cd7e SC |
42293 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
42294 | if test "$wxUSE_PM" = 1; then | |
42295 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
42296 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
42297 | else | |
42298 | cat >>confdefs.h <<\_ACEOF | |
42299 | #define wxUSE_TIPWINDOW 1 | |
42300 | _ACEOF | |
42301 | ||
42302 | fi | |
42303 | fi | |
42304 | ||
42305 | if test "$USES_CONTROLS" = 1; then | |
42306 | cat >>confdefs.h <<\_ACEOF | |
42307 | #define wxUSE_CONTROLS 1 | |
42308 | _ACEOF | |
42309 | ||
42310 | fi | |
42311 | ||
42312 | ||
42313 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
42314 | cat >>confdefs.h <<\_ACEOF | |
42315 | #define wxUSE_ACCESSIBILITY 1 | |
42316 | _ACEOF | |
42317 | ||
42318 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
42319 | fi | |
42320 | ||
38b4a946 VZ |
42321 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
42322 | cat >>confdefs.h <<\_ACEOF | |
42323 | #define wxUSE_DC_CACHEING 1 | |
42324 | _ACEOF | |
42325 | ||
42326 | fi | |
42327 | ||
a848cd7e SC |
42328 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
42329 | cat >>confdefs.h <<\_ACEOF | |
42330 | #define wxUSE_DRAGIMAGE 1 | |
42331 | _ACEOF | |
42332 | ||
42333 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
42334 | fi | |
42335 | ||
42336 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
42337 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
42338 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
42339 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
42340 | else | |
42341 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42342 | #define wxUSE_EXCEPTIONS 1 |
42343 | _ACEOF | |
42344 | ||
07bea8f0 VS |
42345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
42346 | fi | |
a848cd7e SC |
42347 | fi |
42348 | ||
42349 | USE_HTML=0 | |
42350 | if test "$wxUSE_HTML" = "yes"; then | |
42351 | cat >>confdefs.h <<\_ACEOF | |
42352 | #define wxUSE_HTML 1 | |
42353 | _ACEOF | |
42354 | ||
42355 | USE_HTML=1 | |
42356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
42357 | if test "$wxUSE_MAC" = 1; then |
42358 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
42359 | fi | |
a848cd7e | 42360 | fi |
646b6ec1 | 42361 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 42362 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
42363 | old_CPPFLAGS="$CPPFLAGS" |
42364 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
42365 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
42366 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
42367 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
42368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42369 | else | |
42370 | cat >conftest.$ac_ext <<_ACEOF | |
42371 | /* confdefs.h. */ | |
42372 | _ACEOF | |
42373 | cat confdefs.h >>conftest.$ac_ext | |
42374 | cat >>conftest.$ac_ext <<_ACEOF | |
42375 | /* end confdefs.h. */ | |
42376 | #include <Carbon/Carbon.h> | |
42377 | ||
42378 | #include <WebKit/HIWebView.h> | |
42379 | _ACEOF | |
42380 | rm -f conftest.$ac_objext | |
42381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42382 | (eval $ac_compile) 2>conftest.er1 | |
42383 | ac_status=$? | |
42384 | grep -v '^ *+' conftest.er1 >conftest.err | |
42385 | rm -f conftest.er1 | |
42386 | cat conftest.err >&5 | |
42387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42388 | (exit $ac_status); } && | |
dee1a63f MB |
42389 | { ac_try='test -z "$ac_c_werror_flag" |
42390 | || test ! -s conftest.err' | |
07bea8f0 VS |
42391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42392 | (eval $ac_try) 2>&5 | |
42393 | ac_status=$? | |
42394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42395 | (exit $ac_status); }; } && | |
42396 | { ac_try='test -s conftest.$ac_objext' | |
42397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42398 | (eval $ac_try) 2>&5 | |
42399 | ac_status=$? | |
42400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42401 | (exit $ac_status); }; }; then | |
42402 | ac_cv_header_WebKit_HIWebView_h=yes | |
42403 | else | |
42404 | echo "$as_me: failed program was:" >&5 | |
42405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42406 | ||
42407 | ac_cv_header_WebKit_HIWebView_h=no | |
42408 | fi | |
42409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42410 | fi | |
42411 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
42412 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
42413 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
42414 | ||
42415 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
42416 | #define wxUSE_WEBKIT 1 |
42417 | _ACEOF | |
42418 | ||
07bea8f0 VS |
42419 | WEBKIT_LINK="-framework WebKit" |
42420 | ||
42421 | else | |
42422 | ||
42423 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
42424 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
42425 | wxUSE_WEBKIT=no | |
42426 | ||
646b6ec1 VS |
42427 | fi |
42428 | ||
07bea8f0 VS |
42429 | |
42430 | CPPFLAGS="$old_CPPFLAGS" | |
42431 | elif test "$wxUSE_COCOA" = 1; then | |
42432 | cat >>confdefs.h <<\_ACEOF | |
42433 | #define wxUSE_WEBKIT 1 | |
42434 | _ACEOF | |
42435 | ||
42436 | else | |
42437 | wxUSE_WEBKIT=no | |
42438 | fi | |
42439 | fi | |
42440 | ||
9a8f0513 VS |
42441 | USE_XRC=0 |
42442 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
42443 | if test "$wxUSE_XML" != "yes"; then |
42444 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
42445 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
42446 | wxUSE_XRC=no | |
42447 | else | |
42448 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
42449 | #define wxUSE_XRC 1 |
42450 | _ACEOF | |
42451 | ||
d2ebf0b7 VS |
42452 | USE_XRC=1 |
42453 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
42454 | fi | |
9a8f0513 | 42455 | fi |
07bea8f0 | 42456 | |
a848cd7e SC |
42457 | if test "$wxUSE_MENUS" = "yes"; then |
42458 | cat >>confdefs.h <<\_ACEOF | |
42459 | #define wxUSE_MENUS 1 | |
42460 | _ACEOF | |
42461 | ||
42462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
42463 | fi | |
42464 | ||
42465 | if test "$wxUSE_METAFILE" = "yes"; then | |
42466 | cat >>confdefs.h <<\_ACEOF | |
42467 | #define wxUSE_METAFILE 1 | |
42468 | _ACEOF | |
42469 | ||
42470 | fi | |
42471 | ||
42472 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
42473 | cat >>confdefs.h <<\_ACEOF | |
42474 | #define wxUSE_MIMETYPE 1 | |
42475 | _ACEOF | |
42476 | ||
42477 | fi | |
42478 | ||
42479 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
42480 | cat >>confdefs.h <<\_ACEOF | |
42481 | #define wxUSE_MINIFRAME 1 | |
42482 | _ACEOF | |
42483 | ||
42484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
42485 | fi | |
42486 | ||
42487 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
42488 | cat >>confdefs.h <<\_ACEOF | |
42489 | #define wxUSE_SYSTEM_OPTIONS 1 | |
42490 | _ACEOF | |
42491 | ||
42492 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 42493 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
42494 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
42495 | fi | |
42496 | fi | |
42497 | ||
42498 | ||
42499 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
42500 | cat >>confdefs.h <<\_ACEOF | |
42501 | #define wxUSE_VALIDATORS 1 | |
42502 | _ACEOF | |
42503 | ||
42504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
42505 | fi | |
42506 | ||
42507 | if test "$wxUSE_PALETTE" = "yes" ; then | |
42508 | cat >>confdefs.h <<\_ACEOF | |
42509 | #define wxUSE_PALETTE 1 | |
42510 | _ACEOF | |
42511 | ||
42512 | fi | |
42513 | ||
42514 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
42515 | LIBS=" -lunicows $LIBS" | |
42516 | fi | |
42517 | ||
42518 | ||
42519 | if test "$wxUSE_IMAGE" = "yes" ; then | |
42520 | cat >>confdefs.h <<\_ACEOF | |
42521 | #define wxUSE_IMAGE 1 | |
42522 | _ACEOF | |
42523 | ||
42524 | ||
42525 | if test "$wxUSE_GIF" = "yes" ; then | |
42526 | cat >>confdefs.h <<\_ACEOF | |
42527 | #define wxUSE_GIF 1 | |
42528 | _ACEOF | |
42529 | ||
42530 | fi | |
42531 | ||
42532 | if test "$wxUSE_PCX" = "yes" ; then | |
42533 | cat >>confdefs.h <<\_ACEOF | |
42534 | #define wxUSE_PCX 1 | |
42535 | _ACEOF | |
42536 | ||
42537 | fi | |
42538 | ||
42539 | if test "$wxUSE_IFF" = "yes" ; then | |
42540 | cat >>confdefs.h <<\_ACEOF | |
42541 | #define wxUSE_IFF 1 | |
42542 | _ACEOF | |
42543 | ||
42544 | fi | |
42545 | ||
42546 | if test "$wxUSE_PNM" = "yes" ; then | |
42547 | cat >>confdefs.h <<\_ACEOF | |
42548 | #define wxUSE_PNM 1 | |
42549 | _ACEOF | |
42550 | ||
42551 | fi | |
42552 | ||
42553 | if test "$wxUSE_XPM" = "yes" ; then | |
42554 | cat >>confdefs.h <<\_ACEOF | |
42555 | #define wxUSE_XPM 1 | |
42556 | _ACEOF | |
42557 | ||
42558 | fi | |
42559 | ||
42560 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
42561 | cat >>confdefs.h <<\_ACEOF | |
42562 | #define wxUSE_ICO_CUR 1 | |
42563 | _ACEOF | |
42564 | ||
42565 | fi | |
42566 | fi | |
42567 | ||
42568 | ||
42569 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
42570 | cat >>confdefs.h <<\_ACEOF | |
42571 | #define wxUSE_CHOICEDLG 1 | |
42572 | _ACEOF | |
42573 | ||
42574 | fi | |
42575 | ||
42576 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
42577 | cat >>confdefs.h <<\_ACEOF | |
42578 | #define wxUSE_COLOURDLG 1 | |
42579 | _ACEOF | |
42580 | ||
42581 | fi | |
42582 | ||
42583 | if test "$wxUSE_FILEDLG" = "yes"; then | |
42584 | cat >>confdefs.h <<\_ACEOF | |
42585 | #define wxUSE_FILEDLG 1 | |
42586 | _ACEOF | |
42587 | ||
42588 | fi | |
42589 | ||
42590 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
42591 | cat >>confdefs.h <<\_ACEOF | |
42592 | #define wxUSE_FINDREPLDLG 1 | |
42593 | _ACEOF | |
42594 | ||
42595 | fi | |
42596 | ||
42597 | if test "$wxUSE_FONTDLG" = "yes"; then | |
42598 | cat >>confdefs.h <<\_ACEOF | |
42599 | #define wxUSE_FONTDLG 1 | |
42600 | _ACEOF | |
42601 | ||
42602 | fi | |
42603 | ||
42604 | if test "$wxUSE_DIRDLG" = "yes"; then | |
42605 | if test "$wxUSE_TREECTRL" != "yes"; then | |
42606 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
42607 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
42608 | else | |
42609 | cat >>confdefs.h <<\_ACEOF | |
42610 | #define wxUSE_DIRDLG 1 | |
42611 | _ACEOF | |
42612 | ||
42613 | fi | |
42614 | fi | |
42615 | ||
42616 | if test "$wxUSE_MSGDLG" = "yes"; then | |
42617 | cat >>confdefs.h <<\_ACEOF | |
42618 | #define wxUSE_MSGDLG 1 | |
42619 | _ACEOF | |
42620 | ||
42621 | fi | |
42622 | ||
42623 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
42624 | cat >>confdefs.h <<\_ACEOF | |
42625 | #define wxUSE_NUMBERDLG 1 | |
42626 | _ACEOF | |
42627 | ||
42628 | fi | |
42629 | ||
42630 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
42631 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
42632 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
42633 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
42634 | else | |
42635 | cat >>confdefs.h <<\_ACEOF | |
42636 | #define wxUSE_PROGRESSDLG 1 | |
42637 | _ACEOF | |
42638 | ||
42639 | fi | |
42640 | fi | |
42641 | ||
42642 | if test "$wxUSE_SPLASH" = "yes"; then | |
42643 | cat >>confdefs.h <<\_ACEOF | |
42644 | #define wxUSE_SPLASH 1 | |
42645 | _ACEOF | |
42646 | ||
2057db16 | 42647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
42648 | fi |
42649 | ||
42650 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
42651 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
42652 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
42653 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
42654 | else | |
42655 | cat >>confdefs.h <<\_ACEOF | |
42656 | #define wxUSE_STARTUP_TIPS 1 | |
42657 | _ACEOF | |
42658 | ||
42659 | fi | |
42660 | fi | |
42661 | ||
42662 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
42663 | cat >>confdefs.h <<\_ACEOF | |
42664 | #define wxUSE_TEXTDLG 1 | |
42665 | _ACEOF | |
42666 | ||
42667 | fi | |
42668 | ||
42669 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
42670 | cat >>confdefs.h <<\_ACEOF | |
42671 | #define wxUSE_WIZARDDLG 1 | |
42672 | _ACEOF | |
42673 | ||
42674 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
42675 | fi | |
42676 | ||
42677 | ||
ce756cb0 | 42678 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
42679 | if test "$wxUSE_GTK" = 1; then |
42680 | wxUSE_GSTREAMER="yes" | |
42681 | ||
ce756cb0 | 42682 | |
dae87f93 | 42683 | succeeded=no |
ce756cb0 | 42684 | |
dae87f93 RN |
42685 | if test -z "$PKG_CONFIG"; then |
42686 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
42687 | set dummy pkg-config; ac_word=$2 | |
42688 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42689 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42690 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
42691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42692 | else | |
42693 | case $PKG_CONFIG in | |
42694 | [\\/]* | ?:[\\/]*) | |
42695 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
42696 | ;; | |
42697 | *) | |
42698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42699 | for as_dir in $PATH | |
42700 | do | |
42701 | IFS=$as_save_IFS | |
42702 | test -z "$as_dir" && as_dir=. | |
42703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42705 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42707 | break 2 | |
42708 | fi | |
42709 | done | |
42710 | done | |
42711 | ||
42712 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
42713 | ;; | |
42714 | esac | |
42715 | fi | |
42716 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
42717 | ||
42718 | if test -n "$PKG_CONFIG"; then | |
42719 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
42720 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
42721 | else | |
42722 | echo "$as_me:$LINENO: result: no" >&5 | |
42723 | echo "${ECHO_T}no" >&6 | |
42724 | fi | |
42725 | ||
42726 | fi | |
42727 | ||
42728 | if test "$PKG_CONFIG" = "no" ; then | |
42729 | echo "*** The pkg-config script could not be found. Make sure it is" | |
42730 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
42731 | echo "*** to the full path to pkg-config." | |
42732 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
42733 | else | |
42734 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
42735 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
42736 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
42737 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
42738 | ||
42739 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
42740 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42741 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42742 | succeeded=yes |
ce756cb0 | 42743 | |
dae87f93 RN |
42744 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
42745 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
42746 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
42747 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
42748 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
42749 | ||
42750 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
42751 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
42752 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
42753 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
42754 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
42755 | else | |
42756 | GSTREAMER_CFLAGS="" | |
42757 | GSTREAMER_LIBS="" | |
42758 | ## If we have a custom action on failure, don't print errors, but | |
42759 | ## do set a variable so people can do so. | |
42760 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 42761 | |
dae87f93 RN |
42762 | fi |
42763 | ||
42764 | ||
42765 | ||
42766 | else | |
42767 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
42768 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
42769 | fi | |
42770 | fi | |
42771 | ||
42772 | if test $succeeded = yes; then | |
42773 | ||
42774 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
42775 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 42776 | |
ce756cb0 | 42777 | else |
dae87f93 RN |
42778 | |
42779 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
42780 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
42781 | wxUSE_GSTREAMER="no" | |
42782 | ||
42783 | fi | |
42784 | ||
42785 | ||
42786 | ||
42787 | ||
42788 | ||
42789 | if test "x$GST_INSPECT" == "x"; then | |
42790 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
42791 | set dummy gst-inspect; ac_word=$2 | |
42792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42794 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
42795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42796 | else | |
42797 | if test -n "$GST_INSPECT"; then | |
42798 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
42799 | else | |
42800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42801 | for as_dir in $PATH | |
42802 | do | |
42803 | IFS=$as_save_IFS | |
42804 | test -z "$as_dir" && as_dir=. | |
42805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42807 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
42808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42809 | break 2 | |
ce756cb0 | 42810 | fi |
dae87f93 RN |
42811 | done |
42812 | done | |
42813 | ||
42814 | fi | |
42815 | fi | |
42816 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
42817 | if test -n "$GST_INSPECT"; then | |
42818 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
42819 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
42820 | else | |
42821 | echo "$as_me:$LINENO: result: no" >&5 | |
42822 | echo "${ECHO_T}no" >&6 | |
42823 | fi | |
42824 | ||
42825 | fi | |
42826 | ||
42827 | if test "x$GST_INSPECT" != "x"; then | |
42828 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
42829 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
42830 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
42831 | echo "$as_me:$LINENO: result: found." >&5 | |
42832 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 42833 | |
ce756cb0 | 42834 | else |
dae87f93 RN |
42835 | echo "$as_me:$LINENO: result: not found." >&5 |
42836 | echo "${ECHO_T}not found." >&6 | |
42837 | ||
42838 | wxUSE_GSTREAMER="no" | |
42839 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
42840 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
42841 | ||
42842 | fi | |
42843 | fi | |
42844 | ||
42845 | ||
42846 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
42847 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
42848 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
42849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42850 | else | |
42851 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
42852 | /* confdefs.h. */ |
42853 | _ACEOF | |
42854 | cat confdefs.h >>conftest.$ac_ext | |
42855 | cat >>conftest.$ac_ext <<_ACEOF | |
42856 | /* end confdefs.h. */ | |
dae87f93 | 42857 | #include <gst/gst.h> |
ce756cb0 | 42858 | |
dae87f93 | 42859 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
42860 | _ACEOF |
42861 | rm -f conftest.$ac_objext | |
42862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42863 | (eval $ac_compile) 2>conftest.er1 | |
42864 | ac_status=$? | |
42865 | grep -v '^ *+' conftest.er1 >conftest.err | |
42866 | rm -f conftest.er1 | |
42867 | cat conftest.err >&5 | |
42868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42869 | (exit $ac_status); } && | |
dee1a63f MB |
42870 | { ac_try='test -z "$ac_c_werror_flag" |
42871 | || test ! -s conftest.err' | |
ce756cb0 RN |
42872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42873 | (eval $ac_try) 2>&5 | |
42874 | ac_status=$? | |
42875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42876 | (exit $ac_status); }; } && | |
42877 | { ac_try='test -s conftest.$ac_objext' | |
42878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42879 | (eval $ac_try) 2>&5 | |
42880 | ac_status=$? | |
42881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42882 | (exit $ac_status); }; }; then | |
dae87f93 | 42883 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
42884 | else |
42885 | echo "$as_me: failed program was:" >&5 | |
42886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42887 | ||
dae87f93 | 42888 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
42889 | fi |
42890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
42891 | fi |
42892 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
42893 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
42894 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
42895 | : | |
42896 | else | |
ce756cb0 | 42897 | |
dae87f93 RN |
42898 | wxUSE_GSTREAMER="no" |
42899 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
42900 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 42901 | |
dae87f93 | 42902 | fi |
ce756cb0 | 42903 | |
dae87f93 RN |
42904 | |
42905 | ||
42906 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
42907 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
42908 | ||
0ad5d837 VZ |
42909 | ac_find_libraries= |
42910 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 42911 | do |
3eca31dc | 42912 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
42913 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
42914 | ac_find_libraries=$ac_dir | |
42915 | break 2 | |
42916 | fi | |
42917 | done | |
42918 | done | |
42919 | ||
ce756cb0 | 42920 | |
dae87f93 RN |
42921 | if test "$ac_find_libraries" = "" ; then |
42922 | echo "$as_me:$LINENO: result: no" >&5 | |
42923 | echo "${ECHO_T}no" >&6 | |
42924 | wxUSE_GSTREAMER="no" | |
42925 | else | |
42926 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42927 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42928 | fi |
ce756cb0 | 42929 | |
dae87f93 RN |
42930 | if test "$wxUSE_GSTREAMER" = "yes"; then |
42931 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
42932 | #define wxUSE_GSTREAMER 1 |
42933 | _ACEOF | |
42934 | ||
dae87f93 RN |
42935 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
42936 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
42937 | fi |
42938 | fi | |
42939 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
42940 | cat >>confdefs.h <<\_ACEOF | |
42941 | #define wxUSE_MEDIACTRL 1 | |
42942 | _ACEOF | |
42943 | ||
42944 | fi | |
42945 | ||
42946 | ||
a848cd7e SC |
42947 | if test "$cross_compiling" = "yes"; then |
42948 | OSINFO="\"$host\"" | |
42949 | else | |
42950 | OSINFO=`uname -s -r -m` | |
42951 | OSINFO="\"$OSINFO\"" | |
42952 | fi | |
42953 | ||
42954 | cat >>confdefs.h <<_ACEOF | |
42955 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
42956 | _ACEOF | |
42957 | ||
42958 | ||
42959 | ||
42960 | if test "x$prefix" != "xNONE"; then | |
42961 | wxPREFIX=$prefix | |
42962 | else | |
42963 | wxPREFIX=$ac_default_prefix | |
42964 | fi | |
42965 | ||
42966 | cat >>confdefs.h <<_ACEOF | |
42967 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
42968 | _ACEOF | |
42969 | ||
42970 | ||
a848cd7e SC |
42971 | |
42972 | ||
42973 | CORE_BASE_LIBS="net base" | |
42974 | CORE_GUI_LIBS="adv core" | |
42975 | ||
42976 | if test "$wxUSE_XML" = "yes" ; then | |
42977 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
42978 | fi | |
42979 | if test "$wxUSE_ODBC" != "no" ; then | |
42980 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
42981 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
42982 | fi | |
42983 | if test "$wxUSE_HTML" = "yes" ; then | |
42984 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
42985 | fi | |
61639efb VZ |
42986 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42987 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
42988 | fi | |
9a8f0513 VS |
42989 | if test "$wxUSE_XRC" = "yes" ; then |
42990 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
42991 | fi | |
a848cd7e SC |
42992 | |
42993 | if test "$wxUSE_GUI" != "yes"; then | |
42994 | CORE_GUI_LIBS="" | |
42995 | fi | |
42996 | ||
42997 | ||
42998 | ||
42999 | ||
43000 | ||
43001 | ||
43002 | ||
43003 | ||
43004 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 43005 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
43006 | if test "$USE_DARWIN" = 1; then |
43007 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
43008 | else | |
43009 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
43010 | fi | |
07bea8f0 | 43011 | fi |
5dcf30a0 | 43012 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
43013 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
43014 | else | |
43015 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 43016 | fi |
a848cd7e SC |
43017 | fi |
43018 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 43019 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
43020 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
43021 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
43022 | fi | |
a848cd7e | 43023 | fi |
19b27e78 MW |
43024 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
43025 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
43026 | fi | |
a848cd7e SC |
43027 | |
43028 | ||
43029 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
43030 | ||
43031 | have_cos=0 | |
43032 | have_floor=0 | |
43033 | ||
43034 | for ac_func in cos | |
43035 | do | |
43036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43037 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43039 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43041 | else | |
43042 | cat >conftest.$ac_ext <<_ACEOF | |
43043 | /* confdefs.h. */ | |
43044 | _ACEOF | |
43045 | cat confdefs.h >>conftest.$ac_ext | |
43046 | cat >>conftest.$ac_ext <<_ACEOF | |
43047 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43050 | #define $ac_func innocuous_$ac_func | |
43051 | ||
a848cd7e SC |
43052 | /* System header to define __stub macros and hopefully few prototypes, |
43053 | which can conflict with char $ac_func (); below. | |
43054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43055 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43056 | |
a848cd7e SC |
43057 | #ifdef __STDC__ |
43058 | # include <limits.h> | |
43059 | #else | |
43060 | # include <assert.h> | |
43061 | #endif | |
ac1cb8d3 VS |
43062 | |
43063 | #undef $ac_func | |
43064 | ||
a848cd7e SC |
43065 | /* Override any gcc2 internal prototype to avoid an error. */ |
43066 | #ifdef __cplusplus | |
43067 | extern "C" | |
43068 | { | |
43069 | #endif | |
43070 | /* We use char because int might match the return type of a gcc2 | |
43071 | builtin and then its argument prototype would still apply. */ | |
43072 | char $ac_func (); | |
43073 | /* The GNU C library defines this for functions which it implements | |
43074 | to always fail with ENOSYS. Some functions are actually named | |
43075 | something starting with __ and the normal name is an alias. */ | |
43076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43077 | choke me | |
43078 | #else | |
43079 | char (*f) () = $ac_func; | |
43080 | #endif | |
43081 | #ifdef __cplusplus | |
43082 | } | |
43083 | #endif | |
43084 | ||
43085 | int | |
43086 | main () | |
43087 | { | |
43088 | return f != $ac_func; | |
43089 | ; | |
43090 | return 0; | |
43091 | } | |
43092 | _ACEOF | |
43093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43096 | ac_status=$? |
ac1cb8d3 VS |
43097 | grep -v '^ *+' conftest.er1 >conftest.err |
43098 | rm -f conftest.er1 | |
43099 | cat conftest.err >&5 | |
a848cd7e SC |
43100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43101 | (exit $ac_status); } && | |
dee1a63f MB |
43102 | { ac_try='test -z "$ac_c_werror_flag" |
43103 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43105 | (eval $ac_try) 2>&5 | |
43106 | ac_status=$? | |
43107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43108 | (exit $ac_status); }; } && | |
43109 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43111 | (eval $ac_try) 2>&5 | |
43112 | ac_status=$? | |
43113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43114 | (exit $ac_status); }; }; then | |
43115 | eval "$as_ac_var=yes" | |
43116 | else | |
43117 | echo "$as_me: failed program was:" >&5 | |
43118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43119 | ||
43120 | eval "$as_ac_var=no" | |
43121 | fi | |
ac1cb8d3 VS |
43122 | rm -f conftest.err conftest.$ac_objext \ |
43123 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43124 | fi |
43125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43127 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43128 | cat >>confdefs.h <<_ACEOF | |
43129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43130 | _ACEOF | |
43131 | have_cos=1 | |
43132 | fi | |
43133 | done | |
43134 | ||
43135 | ||
43136 | for ac_func in floor | |
43137 | do | |
43138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43141 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43143 | else | |
43144 | cat >conftest.$ac_ext <<_ACEOF | |
43145 | /* confdefs.h. */ | |
43146 | _ACEOF | |
43147 | cat confdefs.h >>conftest.$ac_ext | |
43148 | cat >>conftest.$ac_ext <<_ACEOF | |
43149 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43150 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43151 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43152 | #define $ac_func innocuous_$ac_func | |
43153 | ||
a848cd7e SC |
43154 | /* System header to define __stub macros and hopefully few prototypes, |
43155 | which can conflict with char $ac_func (); below. | |
43156 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43157 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43158 | |
a848cd7e SC |
43159 | #ifdef __STDC__ |
43160 | # include <limits.h> | |
43161 | #else | |
43162 | # include <assert.h> | |
43163 | #endif | |
ac1cb8d3 VS |
43164 | |
43165 | #undef $ac_func | |
43166 | ||
a848cd7e SC |
43167 | /* Override any gcc2 internal prototype to avoid an error. */ |
43168 | #ifdef __cplusplus | |
43169 | extern "C" | |
43170 | { | |
43171 | #endif | |
43172 | /* We use char because int might match the return type of a gcc2 | |
43173 | builtin and then its argument prototype would still apply. */ | |
43174 | char $ac_func (); | |
43175 | /* The GNU C library defines this for functions which it implements | |
43176 | to always fail with ENOSYS. Some functions are actually named | |
43177 | something starting with __ and the normal name is an alias. */ | |
43178 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43179 | choke me | |
43180 | #else | |
43181 | char (*f) () = $ac_func; | |
43182 | #endif | |
43183 | #ifdef __cplusplus | |
43184 | } | |
43185 | #endif | |
43186 | ||
43187 | int | |
43188 | main () | |
43189 | { | |
43190 | return f != $ac_func; | |
43191 | ; | |
43192 | return 0; | |
43193 | } | |
43194 | _ACEOF | |
43195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43198 | ac_status=$? |
ac1cb8d3 VS |
43199 | grep -v '^ *+' conftest.er1 >conftest.err |
43200 | rm -f conftest.er1 | |
43201 | cat conftest.err >&5 | |
a848cd7e SC |
43202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43203 | (exit $ac_status); } && | |
dee1a63f MB |
43204 | { ac_try='test -z "$ac_c_werror_flag" |
43205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43207 | (eval $ac_try) 2>&5 | |
43208 | ac_status=$? | |
43209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43210 | (exit $ac_status); }; } && | |
43211 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43213 | (eval $ac_try) 2>&5 | |
43214 | ac_status=$? | |
43215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43216 | (exit $ac_status); }; }; then | |
43217 | eval "$as_ac_var=yes" | |
43218 | else | |
43219 | echo "$as_me: failed program was:" >&5 | |
43220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43221 | ||
43222 | eval "$as_ac_var=no" | |
43223 | fi | |
ac1cb8d3 VS |
43224 | rm -f conftest.err conftest.$ac_objext \ |
43225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43226 | fi |
43227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43228 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43230 | cat >>confdefs.h <<_ACEOF | |
43231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43232 | _ACEOF | |
43233 | have_floor=1 | |
43234 | fi | |
43235 | done | |
43236 | ||
43237 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
43238 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
43239 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
43240 | echo "$as_me:$LINENO: result: yes" >&5 | |
43241 | echo "${ECHO_T}yes" >&6 | |
43242 | else | |
43243 | echo "$as_me:$LINENO: result: no" >&5 | |
43244 | echo "${ECHO_T}no" >&6 | |
43245 | LIBS="$LIBS -lm" | |
43246 | # use different functions to avoid configure caching | |
43247 | have_sin=0 | |
43248 | have_ceil=0 | |
43249 | ||
43250 | for ac_func in sin | |
43251 | do | |
43252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43257 | else | |
43258 | cat >conftest.$ac_ext <<_ACEOF | |
43259 | /* confdefs.h. */ | |
43260 | _ACEOF | |
43261 | cat confdefs.h >>conftest.$ac_ext | |
43262 | cat >>conftest.$ac_ext <<_ACEOF | |
43263 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43264 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43265 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43266 | #define $ac_func innocuous_$ac_func | |
43267 | ||
a848cd7e SC |
43268 | /* System header to define __stub macros and hopefully few prototypes, |
43269 | which can conflict with char $ac_func (); below. | |
43270 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43271 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43272 | |
a848cd7e SC |
43273 | #ifdef __STDC__ |
43274 | # include <limits.h> | |
43275 | #else | |
43276 | # include <assert.h> | |
43277 | #endif | |
ac1cb8d3 VS |
43278 | |
43279 | #undef $ac_func | |
43280 | ||
a848cd7e SC |
43281 | /* Override any gcc2 internal prototype to avoid an error. */ |
43282 | #ifdef __cplusplus | |
43283 | extern "C" | |
43284 | { | |
43285 | #endif | |
43286 | /* We use char because int might match the return type of a gcc2 | |
43287 | builtin and then its argument prototype would still apply. */ | |
43288 | char $ac_func (); | |
43289 | /* The GNU C library defines this for functions which it implements | |
43290 | to always fail with ENOSYS. Some functions are actually named | |
43291 | something starting with __ and the normal name is an alias. */ | |
43292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43293 | choke me | |
43294 | #else | |
43295 | char (*f) () = $ac_func; | |
43296 | #endif | |
43297 | #ifdef __cplusplus | |
43298 | } | |
43299 | #endif | |
43300 | ||
43301 | int | |
43302 | main () | |
43303 | { | |
43304 | return f != $ac_func; | |
43305 | ; | |
43306 | return 0; | |
43307 | } | |
43308 | _ACEOF | |
43309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43311 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43312 | ac_status=$? |
ac1cb8d3 VS |
43313 | grep -v '^ *+' conftest.er1 >conftest.err |
43314 | rm -f conftest.er1 | |
43315 | cat conftest.err >&5 | |
a848cd7e SC |
43316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43317 | (exit $ac_status); } && | |
dee1a63f MB |
43318 | { ac_try='test -z "$ac_c_werror_flag" |
43319 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43321 | (eval $ac_try) 2>&5 | |
43322 | ac_status=$? | |
43323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43324 | (exit $ac_status); }; } && | |
43325 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43327 | (eval $ac_try) 2>&5 | |
43328 | ac_status=$? | |
43329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43330 | (exit $ac_status); }; }; then | |
43331 | eval "$as_ac_var=yes" | |
43332 | else | |
43333 | echo "$as_me: failed program was:" >&5 | |
43334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43335 | ||
43336 | eval "$as_ac_var=no" | |
43337 | fi | |
ac1cb8d3 VS |
43338 | rm -f conftest.err conftest.$ac_objext \ |
43339 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43340 | fi |
43341 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43342 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43343 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43344 | cat >>confdefs.h <<_ACEOF | |
43345 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43346 | _ACEOF | |
43347 | have_sin=1 | |
43348 | fi | |
43349 | done | |
43350 | ||
43351 | ||
43352 | for ac_func in ceil | |
43353 | do | |
43354 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43355 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43356 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43357 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43359 | else | |
43360 | cat >conftest.$ac_ext <<_ACEOF | |
43361 | /* confdefs.h. */ | |
43362 | _ACEOF | |
43363 | cat confdefs.h >>conftest.$ac_ext | |
43364 | cat >>conftest.$ac_ext <<_ACEOF | |
43365 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43366 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43368 | #define $ac_func innocuous_$ac_func | |
43369 | ||
a848cd7e SC |
43370 | /* System header to define __stub macros and hopefully few prototypes, |
43371 | which can conflict with char $ac_func (); below. | |
43372 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43373 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43374 | |
a848cd7e SC |
43375 | #ifdef __STDC__ |
43376 | # include <limits.h> | |
43377 | #else | |
43378 | # include <assert.h> | |
43379 | #endif | |
ac1cb8d3 VS |
43380 | |
43381 | #undef $ac_func | |
43382 | ||
a848cd7e SC |
43383 | /* Override any gcc2 internal prototype to avoid an error. */ |
43384 | #ifdef __cplusplus | |
43385 | extern "C" | |
43386 | { | |
43387 | #endif | |
43388 | /* We use char because int might match the return type of a gcc2 | |
43389 | builtin and then its argument prototype would still apply. */ | |
43390 | char $ac_func (); | |
43391 | /* The GNU C library defines this for functions which it implements | |
43392 | to always fail with ENOSYS. Some functions are actually named | |
43393 | something starting with __ and the normal name is an alias. */ | |
43394 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43395 | choke me | |
43396 | #else | |
43397 | char (*f) () = $ac_func; | |
43398 | #endif | |
43399 | #ifdef __cplusplus | |
43400 | } | |
43401 | #endif | |
43402 | ||
43403 | int | |
43404 | main () | |
43405 | { | |
43406 | return f != $ac_func; | |
43407 | ; | |
43408 | return 0; | |
43409 | } | |
43410 | _ACEOF | |
43411 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43413 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43414 | ac_status=$? |
ac1cb8d3 VS |
43415 | grep -v '^ *+' conftest.er1 >conftest.err |
43416 | rm -f conftest.er1 | |
43417 | cat conftest.err >&5 | |
a848cd7e SC |
43418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43419 | (exit $ac_status); } && | |
dee1a63f MB |
43420 | { ac_try='test -z "$ac_c_werror_flag" |
43421 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43423 | (eval $ac_try) 2>&5 | |
43424 | ac_status=$? | |
43425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43426 | (exit $ac_status); }; } && | |
43427 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43429 | (eval $ac_try) 2>&5 | |
43430 | ac_status=$? | |
43431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43432 | (exit $ac_status); }; }; then | |
43433 | eval "$as_ac_var=yes" | |
43434 | else | |
43435 | echo "$as_me: failed program was:" >&5 | |
43436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43437 | ||
43438 | eval "$as_ac_var=no" | |
43439 | fi | |
ac1cb8d3 VS |
43440 | rm -f conftest.err conftest.$ac_objext \ |
43441 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43442 | fi |
43443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43444 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43445 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43446 | cat >>confdefs.h <<_ACEOF | |
43447 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43448 | _ACEOF | |
43449 | have_ceil=1 | |
43450 | fi | |
43451 | done | |
43452 | ||
43453 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
43454 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
43455 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
43456 | echo "$as_me:$LINENO: result: yes" >&5 | |
43457 | echo "${ECHO_T}yes" >&6 | |
43458 | else | |
43459 | echo "$as_me:$LINENO: result: no" >&5 | |
43460 | echo "${ECHO_T}no" >&6 | |
43461 | # not sure we should warn the user, crash, etc. | |
43462 | fi | |
43463 | fi | |
43464 | ||
43465 | if test "$wxUSE_GUI" = "yes"; then | |
43466 | ||
43467 | ||
8bce5cda MW |
43468 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
43469 | dynamic erase event exec font image minimal mobile \ | |
43470 | mobile/wxedit mobile/styles propsize render \ | |
43471 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
43472 | |
43473 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
43474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
43475 | fi | |
0b78747f | 43476 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
43477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
43478 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
43479 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
43480 | fi | |
43481 | fi | |
43482 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
43483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 43484 | fi |
a848cd7e SC |
43485 | else |
43486 | SAMPLES_SUBDIRS="console" | |
43487 | fi | |
43488 | ||
43489 | ||
ceec2216 | 43490 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
43491 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
43492 | ||
48f625bc | 43493 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
43494 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
43495 | elif test "$GCC" = yes ; then | |
43496 | CWARNINGS="-Wall -Wundef" | |
43497 | fi | |
43498 | ||
48f625bc | 43499 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 43500 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
43501 | elif test "$GXX" = yes ; then |
43502 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 43503 | fi |
a848cd7e SC |
43504 | |
43505 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
43506 | ||
0c3c69fc | 43507 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 43508 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 43509 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 43510 | |
95986553 DE |
43511 | if test "x$MWCC" = "xyes"; then |
43512 | ||
43513 | CC="$CC -cwd source -I-" | |
43514 | CXX="$CXX -cwd source -I-" | |
43515 | fi | |
43516 | ||
a848cd7e | 43517 | |
0c3c69fc | 43518 | LIBS=`echo $LIBS` |
a848cd7e SC |
43519 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
43520 | EXTRALIBS_XML="$EXPAT_LINK" | |
43521 | EXTRALIBS_HTML="$MSPACK_LINK" | |
43522 | EXTRALIBS_ODBC="$ODBC_LINK" | |
43523 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 43524 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
43525 | fi |
43526 | if test "$wxUSE_OPENGL" = "yes"; then | |
43527 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
43528 | fi | |
43529 | ||
43530 | LDFLAGS="$LDFLAGS $PROFILE" | |
43531 | ||
43532 | if test "$wxUSE_GTK" = 1; then | |
43533 | WXCONFIG_INCLUDE= | |
43534 | else | |
43535 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
43536 | fi | |
43537 | ||
43538 | WXCONFIG_EXTRALIBS="$LIBS" | |
43539 | ||
43540 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 43541 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
43542 | fi |
43543 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 43544 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
43545 | fi |
43546 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 43547 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
43548 | fi |
43549 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 43550 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
43551 | fi |
43552 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 43553 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
43554 | fi |
43555 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 43556 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
43557 | fi |
43558 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 43559 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
43560 | fi |
43561 | ||
43562 | for i in $wxconfig_3rdparty ; do | |
74802184 | 43563 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
43564 | done |
43565 | ||
43566 | ||
43567 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
43568 | WXUNIV=1 | |
43569 | else | |
43570 | WXUNIV=0 | |
43571 | fi | |
43572 | ||
43573 | ||
43574 | ||
43575 | ||
43576 | ||
43577 | ||
43578 | ||
43579 | ||
43580 | ||
43581 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
43582 | MONOLITHIC=1 | |
43583 | else | |
43584 | MONOLITHIC=0 | |
43585 | fi | |
43586 | ||
43587 | if test $wxUSE_PLUGINS = "yes" ; then | |
43588 | USE_PLUGINS=1 | |
43589 | else | |
43590 | USE_PLUGINS=0 | |
43591 | fi | |
43592 | ||
43593 | if test $wxUSE_ODBC != "no" ; then | |
43594 | USE_ODBC=1 | |
43595 | else | |
43596 | USE_ODBC=0 | |
43597 | fi | |
43598 | ||
16358932 VZ |
43599 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
43600 | USE_QA=1 | |
43601 | else | |
43602 | USE_QA=0 | |
43603 | fi | |
43604 | ||
a848cd7e SC |
43605 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
43606 | OFFICIAL_BUILD=1 | |
43607 | else | |
43608 | OFFICIAL_BUILD=0 | |
43609 | fi | |
43610 | ||
43611 | ||
43612 | ||
43613 | ||
43614 | ||
43615 | ||
43616 | ||
43617 | ||
43618 | ||
43619 | ||
43620 | ||
43621 | ||
43622 | ||
43623 | ||
43624 | ||
43625 | ||
43626 | ||
43627 | ||
43628 | ||
ceec2216 | 43629 | |
d1c38808 | 43630 | |
a848cd7e SC |
43631 | |
43632 | ||
43633 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
43634 | ||
43635 | ||
43636 | ||
43637 | ||
43638 | ||
43639 | ||
43640 | ||
43641 | ||
4d4ff94c VZ |
43642 | case "$TOOLKIT" in |
43643 | GTK) | |
43644 | TOOLKIT_USER="GTK+" | |
43645 | if test "$WXGTK20" = 1; then | |
43646 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
43647 | fi | |
9a8f0513 | 43648 | ;; |
4d4ff94c VZ |
43649 | |
43650 | *) | |
43651 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 43652 | ;; |
4d4ff94c | 43653 | esac |
a848cd7e | 43654 | |
fb00f58d JS |
43655 | if test "$wxUSE_WINE" = "yes"; then |
43656 | BAKEFILE_FORCE_PLATFORM=win32 | |
43657 | fi | |
43658 | ||
9a8f0513 | 43659 | |
1e9e8aba DE |
43660 | |
43661 | ||
a848cd7e SC |
43662 | if test "x$BAKEFILE_HOST" = "x"; then |
43663 | BAKEFILE_HOST="${host}" | |
43664 | fi | |
43665 | ||
43666 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
43667 | ||
43668 | if test -n "$ac_tool_prefix"; then | |
43669 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
43670 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
43671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43673 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
43674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43675 | else | |
43676 | if test -n "$RANLIB"; then | |
43677 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
43678 | else | |
43679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43680 | for as_dir in $PATH | |
43681 | do | |
43682 | IFS=$as_save_IFS | |
43683 | test -z "$as_dir" && as_dir=. | |
43684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43686 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
43687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43688 | break 2 | |
43689 | fi | |
43690 | done | |
43691 | done | |
43692 | ||
43693 | fi | |
43694 | fi | |
43695 | RANLIB=$ac_cv_prog_RANLIB | |
43696 | if test -n "$RANLIB"; then | |
43697 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
43698 | echo "${ECHO_T}$RANLIB" >&6 | |
43699 | else | |
43700 | echo "$as_me:$LINENO: result: no" >&5 | |
43701 | echo "${ECHO_T}no" >&6 | |
43702 | fi | |
43703 | ||
43704 | fi | |
43705 | if test -z "$ac_cv_prog_RANLIB"; then | |
43706 | ac_ct_RANLIB=$RANLIB | |
43707 | # Extract the first word of "ranlib", so it can be a program name with args. | |
43708 | set dummy ranlib; ac_word=$2 | |
43709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43711 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
43712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43713 | else | |
43714 | if test -n "$ac_ct_RANLIB"; then | |
43715 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
43716 | else | |
43717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43718 | for as_dir in $PATH | |
43719 | do | |
43720 | IFS=$as_save_IFS | |
43721 | test -z "$as_dir" && as_dir=. | |
43722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43724 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
43725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43726 | break 2 | |
43727 | fi | |
43728 | done | |
43729 | done | |
43730 | ||
43731 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
43732 | fi | |
43733 | fi | |
43734 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
43735 | if test -n "$ac_ct_RANLIB"; then | |
43736 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
43737 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
43738 | else | |
43739 | echo "$as_me:$LINENO: result: no" >&5 | |
43740 | echo "${ECHO_T}no" >&6 | |
43741 | fi | |
43742 | ||
43743 | RANLIB=$ac_ct_RANLIB | |
43744 | else | |
43745 | RANLIB="$ac_cv_prog_RANLIB" | |
43746 | fi | |
43747 | ||
43748 | # Find a good install program. We prefer a C program (faster), | |
43749 | # so one script is as good as another. But avoid the broken or | |
43750 | # incompatible versions: | |
43751 | # SysV /etc/install, /usr/sbin/install | |
43752 | # SunOS /usr/etc/install | |
43753 | # IRIX /sbin/install | |
43754 | # AIX /bin/install | |
43755 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
43756 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
43757 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
43758 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 43759 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
43760 | # ./install, which can be erroneously created by make from ./install.sh. |
43761 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
43762 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
43763 | if test -z "$INSTALL"; then | |
43764 | if test "${ac_cv_path_install+set}" = set; then | |
43765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43766 | else | |
43767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43768 | for as_dir in $PATH | |
43769 | do | |
43770 | IFS=$as_save_IFS | |
43771 | test -z "$as_dir" && as_dir=. | |
43772 | # Account for people who put trailing slashes in PATH elements. | |
43773 | case $as_dir/ in | |
43774 | ./ | .// | /cC/* | \ | |
43775 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 43776 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
43777 | /usr/ucb/* ) ;; |
43778 | *) | |
43779 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
43780 | # Don't use installbsd from OSF since it installs stuff as root | |
43781 | # by default. | |
43782 | for ac_prog in ginstall scoinst install; do | |
43783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
43784 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
43785 | if test $ac_prog = install && | |
43786 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43787 | # AIX install. It has an incompatible calling convention. | |
43788 | : | |
43789 | elif test $ac_prog = install && | |
43790 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43791 | # program-specific install script used by HP pwplus--don't use. | |
43792 | : | |
43793 | else | |
43794 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
43795 | break 3 | |
43796 | fi | |
43797 | fi | |
a848cd7e SC |
43798 | done |
43799 | done | |
43800 | ;; | |
43801 | esac | |
43802 | done | |
43803 | ||
43804 | ||
43805 | fi | |
43806 | if test "${ac_cv_path_install+set}" = set; then | |
43807 | INSTALL=$ac_cv_path_install | |
43808 | else | |
43809 | # As a last resort, use the slow shell script. We don't cache a | |
43810 | # path for INSTALL within a source directory, because that will | |
43811 | # break other packages using the cache if that directory is | |
43812 | # removed, or if the path is relative. | |
43813 | INSTALL=$ac_install_sh | |
43814 | fi | |
43815 | fi | |
43816 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
43817 | echo "${ECHO_T}$INSTALL" >&6 | |
43818 | ||
43819 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
43820 | # It thinks the first close brace ends the variable substitution. | |
43821 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
43822 | ||
43823 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
43824 | ||
43825 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
43826 | ||
43827 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
43828 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
43829 | LN_S=$as_ln_s | |
43830 | if test "$LN_S" = "ln -s"; then | |
43831 | echo "$as_me:$LINENO: result: yes" >&5 | |
43832 | echo "${ECHO_T}yes" >&6 | |
43833 | else | |
43834 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
43835 | echo "${ECHO_T}no, using $LN_S" >&6 | |
43836 | fi | |
43837 | ||
43838 | ||
43839 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43840 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43841 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43842 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43844 | else | |
43845 | cat >conftest.make <<\_ACEOF | |
43846 | all: | |
43847 | @echo 'ac_maketemp="$(MAKE)"' | |
43848 | _ACEOF | |
43849 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43850 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43851 | if test -n "$ac_maketemp"; then | |
43852 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43853 | else | |
43854 | eval ac_cv_prog_make_${ac_make}_set=no | |
43855 | fi | |
43856 | rm -f conftest.make | |
43857 | fi | |
43858 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43859 | echo "$as_me:$LINENO: result: yes" >&5 | |
43860 | echo "${ECHO_T}yes" >&6 | |
43861 | SET_MAKE= | |
43862 | else | |
43863 | echo "$as_me:$LINENO: result: no" >&5 | |
43864 | echo "${ECHO_T}no" >&6 | |
43865 | SET_MAKE="MAKE=${MAKE-make}" | |
43866 | fi | |
43867 | ||
43868 | ||
43869 | ||
43870 | if test -n "$ac_tool_prefix"; then | |
43871 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
43872 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
43873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43875 | if test "${ac_cv_prog_AR+set}" = set; then | |
43876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43877 | else | |
43878 | if test -n "$AR"; then | |
43879 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
43880 | else | |
43881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43882 | for as_dir in $PATH | |
43883 | do | |
43884 | IFS=$as_save_IFS | |
43885 | test -z "$as_dir" && as_dir=. | |
43886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43888 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
43889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43890 | break 2 | |
43891 | fi | |
43892 | done | |
43893 | done | |
43894 | ||
43895 | fi | |
43896 | fi | |
43897 | AR=$ac_cv_prog_AR | |
43898 | if test -n "$AR"; then | |
43899 | echo "$as_me:$LINENO: result: $AR" >&5 | |
43900 | echo "${ECHO_T}$AR" >&6 | |
43901 | else | |
43902 | echo "$as_me:$LINENO: result: no" >&5 | |
43903 | echo "${ECHO_T}no" >&6 | |
43904 | fi | |
43905 | ||
43906 | fi | |
43907 | if test -z "$ac_cv_prog_AR"; then | |
43908 | ac_ct_AR=$AR | |
43909 | # Extract the first word of "ar", so it can be a program name with args. | |
43910 | set dummy ar; ac_word=$2 | |
43911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43913 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
43914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43915 | else | |
43916 | if test -n "$ac_ct_AR"; then | |
43917 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
43918 | else | |
43919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43920 | for as_dir in $PATH | |
43921 | do | |
43922 | IFS=$as_save_IFS | |
43923 | test -z "$as_dir" && as_dir=. | |
43924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43925 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43926 | ac_cv_prog_ac_ct_AR="ar" | |
43927 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43928 | break 2 | |
43929 | fi | |
43930 | done | |
43931 | done | |
43932 | ||
43933 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
43934 | fi | |
43935 | fi | |
43936 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
43937 | if test -n "$ac_ct_AR"; then | |
43938 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
43939 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
43940 | else | |
43941 | echo "$as_me:$LINENO: result: no" >&5 | |
43942 | echo "${ECHO_T}no" >&6 | |
43943 | fi | |
43944 | ||
43945 | AR=$ac_ct_AR | |
43946 | else | |
43947 | AR="$ac_cv_prog_AR" | |
43948 | fi | |
43949 | ||
43950 | if test -n "$ac_tool_prefix"; then | |
43951 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
43952 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
43953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43955 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
43956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43957 | else | |
43958 | if test -n "$STRIP"; then | |
43959 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
43960 | else | |
43961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43962 | for as_dir in $PATH | |
43963 | do | |
43964 | IFS=$as_save_IFS | |
43965 | test -z "$as_dir" && as_dir=. | |
43966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43968 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
43969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43970 | break 2 | |
43971 | fi | |
43972 | done | |
43973 | done | |
43974 | ||
43975 | fi | |
43976 | fi | |
43977 | STRIP=$ac_cv_prog_STRIP | |
43978 | if test -n "$STRIP"; then | |
43979 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
43980 | echo "${ECHO_T}$STRIP" >&6 | |
43981 | else | |
43982 | echo "$as_me:$LINENO: result: no" >&5 | |
43983 | echo "${ECHO_T}no" >&6 | |
43984 | fi | |
43985 | ||
43986 | fi | |
43987 | if test -z "$ac_cv_prog_STRIP"; then | |
43988 | ac_ct_STRIP=$STRIP | |
43989 | # Extract the first word of "strip", so it can be a program name with args. | |
43990 | set dummy strip; ac_word=$2 | |
43991 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43992 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43993 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
43994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43995 | else | |
43996 | if test -n "$ac_ct_STRIP"; then | |
43997 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
43998 | else | |
43999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44000 | for as_dir in $PATH | |
44001 | do | |
44002 | IFS=$as_save_IFS | |
44003 | test -z "$as_dir" && as_dir=. | |
44004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44005 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44006 | ac_cv_prog_ac_ct_STRIP="strip" | |
44007 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44008 | break 2 | |
44009 | fi | |
44010 | done | |
44011 | done | |
44012 | ||
44013 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
44014 | fi | |
44015 | fi | |
44016 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
44017 | if test -n "$ac_ct_STRIP"; then | |
44018 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
44019 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
44020 | else | |
44021 | echo "$as_me:$LINENO: result: no" >&5 | |
44022 | echo "${ECHO_T}no" >&6 | |
44023 | fi | |
44024 | ||
44025 | STRIP=$ac_ct_STRIP | |
44026 | else | |
44027 | STRIP="$ac_cv_prog_STRIP" | |
44028 | fi | |
44029 | ||
44030 | if test -n "$ac_tool_prefix"; then | |
44031 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
44032 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
44033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44035 | if test "${ac_cv_prog_NM+set}" = set; then | |
44036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44037 | else | |
44038 | if test -n "$NM"; then | |
44039 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
44040 | else | |
44041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44042 | for as_dir in $PATH | |
44043 | do | |
44044 | IFS=$as_save_IFS | |
44045 | test -z "$as_dir" && as_dir=. | |
44046 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44047 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44048 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
44049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44050 | break 2 | |
44051 | fi | |
44052 | done | |
44053 | done | |
44054 | ||
44055 | fi | |
44056 | fi | |
44057 | NM=$ac_cv_prog_NM | |
44058 | if test -n "$NM"; then | |
44059 | echo "$as_me:$LINENO: result: $NM" >&5 | |
44060 | echo "${ECHO_T}$NM" >&6 | |
44061 | else | |
44062 | echo "$as_me:$LINENO: result: no" >&5 | |
44063 | echo "${ECHO_T}no" >&6 | |
44064 | fi | |
44065 | ||
44066 | fi | |
44067 | if test -z "$ac_cv_prog_NM"; then | |
44068 | ac_ct_NM=$NM | |
44069 | # Extract the first word of "nm", so it can be a program name with args. | |
44070 | set dummy nm; ac_word=$2 | |
44071 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44073 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
44074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44075 | else | |
44076 | if test -n "$ac_ct_NM"; then | |
44077 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
44078 | else | |
44079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44080 | for as_dir in $PATH | |
44081 | do | |
44082 | IFS=$as_save_IFS | |
44083 | test -z "$as_dir" && as_dir=. | |
44084 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44085 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44086 | ac_cv_prog_ac_ct_NM="nm" | |
44087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44088 | break 2 | |
44089 | fi | |
44090 | done | |
44091 | done | |
44092 | ||
44093 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
44094 | fi | |
44095 | fi | |
44096 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
44097 | if test -n "$ac_ct_NM"; then | |
44098 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
44099 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
44100 | else | |
44101 | echo "$as_me:$LINENO: result: no" >&5 | |
44102 | echo "${ECHO_T}no" >&6 | |
44103 | fi | |
44104 | ||
44105 | NM=$ac_ct_NM | |
44106 | else | |
44107 | NM="$ac_cv_prog_NM" | |
44108 | fi | |
44109 | ||
44110 | ||
44111 | case ${BAKEFILE_HOST} in | |
44112 | *-hp-hpux* ) | |
1e9e8aba | 44113 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
44114 | ;; |
44115 | *) INSTALL_DIR="$INSTALL -d" | |
44116 | ;; | |
44117 | esac | |
44118 | ||
44119 | ||
44120 | LDFLAGS_GUI= | |
44121 | case ${BAKEFILE_HOST} in | |
44122 | *-*-cygwin* | *-*-mingw32* ) | |
44123 | LDFLAGS_GUI="-mwindows" | |
44124 | esac | |
44125 | ||
44126 | ||
44127 | fi | |
44128 | ||
44129 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
44130 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
44131 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
44132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44133 | else | |
44134 | ||
44135 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
44136 | egrep -s GNU > /dev/null); then | |
44137 | bakefile_cv_prog_makeisgnu="yes" | |
44138 | else | |
44139 | bakefile_cv_prog_makeisgnu="no" | |
44140 | fi | |
44141 | ||
44142 | fi | |
44143 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
44144 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
44145 | ||
44146 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
44147 | IF_GNU_MAKE="" | |
44148 | else | |
44149 | IF_GNU_MAKE="#" | |
44150 | fi | |
44151 | ||
44152 | ||
44153 | ||
44154 | PLATFORM_UNIX=0 | |
44155 | PLATFORM_WIN32=0 | |
44156 | PLATFORM_MSDOS=0 | |
44157 | PLATFORM_MAC=0 | |
1e9e8aba | 44158 | PLATFORM_MACOS=0 |
a848cd7e SC |
44159 | PLATFORM_MACOSX=0 |
44160 | PLATFORM_OS2=0 | |
1e9e8aba | 44161 | PLATFORM_BEOS=0 |
a848cd7e SC |
44162 | |
44163 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
44164 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 44165 | *-*-mingw32* ) |
a848cd7e SC |
44166 | PLATFORM_WIN32=1 |
44167 | ;; | |
44168 | *-pc-msdosdjgpp ) | |
44169 | PLATFORM_MSDOS=1 | |
44170 | ;; | |
44171 | *-pc-os2_emx | *-pc-os2-emx ) | |
44172 | PLATFORM_OS2=1 | |
44173 | ;; | |
47bd5406 | 44174 | *-*-darwin* ) |
a848cd7e SC |
44175 | PLATFORM_MAC=1 |
44176 | PLATFORM_MACOSX=1 | |
44177 | ;; | |
1e9e8aba DE |
44178 | *-*-beos* ) |
44179 | PLATFORM_BEOS=1 | |
44180 | ;; | |
44181 | powerpc-apple-macos* ) | |
44182 | PLATFORM_MAC=1 | |
44183 | PLATFORM_MACOS=1 | |
44184 | ;; | |
a848cd7e SC |
44185 | * ) |
44186 | PLATFORM_UNIX=1 | |
44187 | ;; | |
44188 | esac | |
44189 | else | |
44190 | case "$BAKEFILE_FORCE_PLATFORM" in | |
44191 | win32 ) | |
44192 | PLATFORM_WIN32=1 | |
44193 | ;; | |
44194 | msdos ) | |
44195 | PLATFORM_MSDOS=1 | |
44196 | ;; | |
44197 | os2 ) | |
44198 | PLATFORM_OS2=1 | |
44199 | ;; | |
44200 | darwin ) | |
44201 | PLATFORM_MAC=1 | |
44202 | PLATFORM_MACOSX=1 | |
44203 | ;; | |
44204 | unix ) | |
44205 | PLATFORM_UNIX=1 | |
44206 | ;; | |
1e9e8aba DE |
44207 | beos ) |
44208 | PLATFORM_BEOS=1 | |
44209 | ;; | |
a848cd7e SC |
44210 | * ) |
44211 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
44212 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
44213 | { (exit 1); exit 1; }; } | |
44214 | ;; | |
44215 | esac | |
44216 | fi | |
44217 | ||
44218 | ||
44219 | ||
44220 | ||
44221 | ||
44222 | ||
44223 | ||
44224 | ||
44225 | ||
1e9e8aba DE |
44226 | |
44227 | ||
a848cd7e SC |
44228 | # Check whether --enable-omf or --disable-omf was given. |
44229 | if test "${enable_omf+set}" = set; then | |
44230 | enableval="$enable_omf" | |
44231 | bk_os2_use_omf="$enableval" | |
44232 | fi; | |
44233 | ||
44234 | case "${BAKEFILE_HOST}" in | |
44235 | *-*-darwin* ) | |
47bd5406 VZ |
44236 | if test "x$GCC" = "xyes"; then |
44237 | CFLAGS="$CFLAGS -fno-common" | |
44238 | CXXFLAGS="$CXXFLAGS -fno-common" | |
44239 | fi | |
44240 | if test "x$XLCC" = "xyes"; then | |
44241 | CFLAGS="$CFLAGS -qnocommon" | |
44242 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
44243 | fi | |
a848cd7e SC |
44244 | ;; |
44245 | ||
44246 | *-pc-os2_emx | *-pc-os2-emx ) | |
44247 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
44248 | AR=emxomfar | |
44249 | RANLIB=: | |
44250 | LDFLAGS="-Zomf $LDFLAGS" | |
44251 | CFLAGS="-Zomf $CFLAGS" | |
44252 | CXXFLAGS="-Zomf $CXXFLAGS" | |
44253 | OS2_LIBEXT="lib" | |
44254 | else | |
44255 | OS2_LIBEXT="a" | |
44256 | fi | |
44257 | ;; | |
1e9e8aba DE |
44258 | |
44259 | i*86-*-beos* ) | |
44260 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
44261 | ;; | |
a848cd7e SC |
44262 | esac |
44263 | ||
44264 | ||
44265 | SO_SUFFIX="so" | |
44266 | SO_SUFFIX_MODULE="so" | |
44267 | EXEEXT="" | |
44268 | LIBPREFIX="lib" | |
44269 | LIBEXT=".a" | |
44270 | DLLPREFIX="lib" | |
44271 | DLLPREFIX_MODULE="" | |
44272 | DLLIMP_SUFFIX="" | |
810b94f0 | 44273 | dlldir="$libdir" |
a848cd7e SC |
44274 | |
44275 | case "${BAKEFILE_HOST}" in | |
44276 | *-hp-hpux* ) | |
44277 | SO_SUFFIX="sl" | |
44278 | SO_SUFFIX_MODULE="sl" | |
44279 | ;; | |
44280 | *-*-aix* ) | |
44281 | SO_SUFFIX="a" | |
44282 | SO_SUFFIX_MODULE="a" | |
44283 | ;; | |
810b94f0 MW |
44284 | *-*-cygwin* ) |
44285 | SO_SUFFIX="dll" | |
44286 | SO_SUFFIX_MODULE="dll" | |
44287 | DLLIMP_SUFFIX="dll.a" | |
44288 | EXEEXT=".exe" | |
44289 | DLLPREFIX="cyg" | |
44290 | dlldir="$bindir" | |
44291 | ;; | |
44292 | *-*-mingw32* ) | |
a848cd7e SC |
44293 | SO_SUFFIX="dll" |
44294 | SO_SUFFIX_MODULE="dll" | |
44295 | DLLIMP_SUFFIX="dll.a" | |
44296 | EXEEXT=".exe" | |
44297 | DLLPREFIX="" | |
810b94f0 | 44298 | dlldir="$bindir" |
a848cd7e SC |
44299 | ;; |
44300 | *-pc-msdosdjgpp ) | |
44301 | EXEEXT=".exe" | |
44302 | DLLPREFIX="" | |
810b94f0 | 44303 | dlldir="$bindir" |
a848cd7e SC |
44304 | ;; |
44305 | *-pc-os2_emx | *-pc-os2-emx ) | |
44306 | SO_SUFFIX="dll" | |
44307 | SO_SUFFIX_MODULE="dll" | |
44308 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
44309 | EXEEXT=".exe" | |
44310 | DLLPREFIX="" | |
44311 | LIBPREFIX="" | |
44312 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 44313 | dlldir="$bindir" |
a848cd7e | 44314 | ;; |
47bd5406 | 44315 | *-*-darwin* ) |
a848cd7e SC |
44316 | SO_SUFFIX="dylib" |
44317 | SO_SUFFIX_MODULE="bundle" | |
44318 | ;; | |
44319 | esac | |
44320 | ||
44321 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
44322 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
44323 | fi | |
44324 | ||
44325 | ||
44326 | ||
44327 | ||
44328 | ||
44329 | ||
44330 | ||
44331 | ||
44332 | ||
44333 | ||
44334 | ||
810b94f0 | 44335 | |
1e9e8aba DE |
44336 | PIC_FLAG="" |
44337 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
44338 | PIC_FLAG="-fPIC" |
44339 | fi | |
44340 | ||
1e9e8aba DE |
44341 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
44342 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 44343 | WINDOWS_IMPLIB=0 |
1e9e8aba | 44344 | |
a848cd7e SC |
44345 | case "${BAKEFILE_HOST}" in |
44346 | *-hp-hpux* ) | |
1e9e8aba | 44347 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
44348 | LDFLAGS="$LDFLAGS -L/usr/lib" |
44349 | ||
44350 | SHARED_LD_CC="${CC} -b -o" | |
44351 | SHARED_LD_CXX="${CXX} -b -o" | |
44352 | PIC_FLAG="+Z" | |
44353 | fi | |
44354 | ;; | |
44355 | ||
44356 | *-*-linux* ) | |
44357 | if test "x$GCC" != "xyes"; then | |
44358 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
44359 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
44360 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
44361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44362 | else | |
44363 | ||
44364 | cat >conftest.$ac_ext <<_ACEOF | |
44365 | /* confdefs.h. */ | |
44366 | _ACEOF | |
44367 | cat confdefs.h >>conftest.$ac_ext | |
44368 | cat >>conftest.$ac_ext <<_ACEOF | |
44369 | /* end confdefs.h. */ | |
44370 | ||
44371 | int | |
44372 | main () | |
44373 | { | |
44374 | ||
44375 | #ifndef __INTEL_COMPILER | |
44376 | #error Not icc | |
44377 | #endif | |
44378 | ||
44379 | ; | |
44380 | return 0; | |
44381 | } | |
44382 | _ACEOF | |
44383 | rm -f conftest.$ac_objext | |
44384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44385 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44386 | ac_status=$? |
ac1cb8d3 VS |
44387 | grep -v '^ *+' conftest.er1 >conftest.err |
44388 | rm -f conftest.er1 | |
44389 | cat conftest.err >&5 | |
a848cd7e SC |
44390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44391 | (exit $ac_status); } && | |
dee1a63f MB |
44392 | { ac_try='test -z "$ac_c_werror_flag" |
44393 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44395 | (eval $ac_try) 2>&5 | |
44396 | ac_status=$? | |
44397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44398 | (exit $ac_status); }; } && | |
44399 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44401 | (eval $ac_try) 2>&5 | |
44402 | ac_status=$? | |
44403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44404 | (exit $ac_status); }; }; then | |
44405 | bakefile_cv_prog_icc=yes | |
44406 | else | |
44407 | echo "$as_me: failed program was:" >&5 | |
44408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44409 | ||
44410 | bakefile_cv_prog_icc=no | |
44411 | ||
44412 | fi | |
ac1cb8d3 | 44413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44414 | |
44415 | fi | |
44416 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
44417 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
44418 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
44419 | PIC_FLAG="-KPIC" | |
44420 | fi | |
44421 | fi | |
44422 | ;; | |
44423 | ||
44424 | *-*-solaris2* ) | |
44425 | if test "x$GCC" != xyes ; then | |
44426 | SHARED_LD_CC="${CC} -G -o" | |
44427 | SHARED_LD_CXX="${CXX} -G -o" | |
44428 | PIC_FLAG="-KPIC" | |
44429 | fi | |
44430 | ;; | |
44431 | ||
44432 | *-*-darwin* ) | |
44433 | ||
2eef8513 VZ |
44434 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" |
44435 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
44436 | ||
a848cd7e SC |
44437 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
44438 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
a1aa0349 | 44439 | if test "${bakefile_cv_gcc31+set}" = set; then |
a848cd7e SC |
44440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44441 | else | |
44442 | ||
44443 | cat >conftest.$ac_ext <<_ACEOF | |
44444 | /* confdefs.h. */ | |
44445 | _ACEOF | |
44446 | cat confdefs.h >>conftest.$ac_ext | |
44447 | cat >>conftest.$ac_ext <<_ACEOF | |
44448 | /* end confdefs.h. */ | |
44449 | ||
44450 | int | |
44451 | main () | |
44452 | { | |
44453 | ||
44454 | #if (__GNUC__ < 3) || \ | |
44455 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
44456 | #error old gcc | |
44457 | #endif | |
44458 | ||
44459 | ; | |
44460 | return 0; | |
44461 | } | |
44462 | _ACEOF | |
44463 | rm -f conftest.$ac_objext | |
44464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44465 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44466 | ac_status=$? |
ac1cb8d3 VS |
44467 | grep -v '^ *+' conftest.er1 >conftest.err |
44468 | rm -f conftest.er1 | |
44469 | cat conftest.err >&5 | |
a848cd7e SC |
44470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44471 | (exit $ac_status); } && | |
dee1a63f MB |
44472 | { ac_try='test -z "$ac_c_werror_flag" |
44473 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44475 | (eval $ac_try) 2>&5 | |
44476 | ac_status=$? | |
44477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44478 | (exit $ac_status); }; } && | |
44479 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44481 | (eval $ac_try) 2>&5 | |
44482 | ac_status=$? | |
44483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44484 | (exit $ac_status); }; }; then | |
44485 | ||
a1aa0349 | 44486 | bakefile_cv_gcc31=yes |
a848cd7e SC |
44487 | |
44488 | else | |
44489 | echo "$as_me: failed program was:" >&5 | |
44490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44491 | ||
44492 | ||
a1aa0349 | 44493 | bakefile_cv_gcc31=no |
a848cd7e SC |
44494 | |
44495 | ||
44496 | fi | |
ac1cb8d3 | 44497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44498 | |
44499 | fi | |
a1aa0349 VZ |
44500 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 |
44501 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
44502 | if test "$bakefile_cv_gcc31" = "no"; then | |
473276a9 VS |
44503 | |
44504 | D='$' | |
44505 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
44506 | #!/bin/sh |
44507 | #----------------------------------------------------------------------------- | |
44508 | #-- Name: distrib/mac/shared-ld-sh | |
44509 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
44510 | #-- Author: Gilles Depeyrot | |
44511 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
44512 | #-- Licence: any use permitted | |
44513 | #----------------------------------------------------------------------------- | |
44514 | ||
44515 | verbose=0 | |
44516 | args="" | |
44517 | objects="" | |
44518 | linking_flag="-dynamiclib" | |
810b94f0 | 44519 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 44520 | |
473276a9 VS |
44521 | while test ${D}# -gt 0; do |
44522 | case ${D}1 in | |
a848cd7e SC |
44523 | |
44524 | -v) | |
44525 | verbose=1 | |
44526 | ;; | |
44527 | ||
44528 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
44529 | # collect these options and values | |
473276a9 | 44530 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
44531 | shift |
44532 | ;; | |
44533 | ||
810b94f0 MW |
44534 | -s|-Wl,*) |
44535 | # collect these load args | |
44536 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 44537 | ;; |
810b94f0 MW |
44538 | |
44539 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 44540 | # collect these options |
473276a9 | 44541 | args="${D}{args} ${D}1" |
a848cd7e SC |
44542 | ;; |
44543 | ||
44544 | -dynamiclib|-bundle) | |
473276a9 | 44545 | linking_flag="${D}1" |
a848cd7e SC |
44546 | ;; |
44547 | ||
44548 | -*) | |
473276a9 | 44549 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
44550 | exit 1 |
44551 | ;; | |
44552 | ||
44553 | *.o | *.a | *.dylib) | |
44554 | # collect object files | |
473276a9 | 44555 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
44556 | ;; |
44557 | ||
44558 | *) | |
473276a9 | 44559 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
44560 | exit 1 |
44561 | ;; | |
44562 | ||
44563 | esac | |
44564 | shift | |
44565 | done | |
44566 | ||
810b94f0 MW |
44567 | status=0 |
44568 | ||
a848cd7e SC |
44569 | # |
44570 | # Link one module containing all the others | |
44571 | # | |
473276a9 | 44572 | if test ${D}{verbose} = 1; then |
810b94f0 | 44573 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 44574 | fi |
810b94f0 | 44575 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 44576 | status=${D}? |
a848cd7e SC |
44577 | |
44578 | # | |
810b94f0 MW |
44579 | # Link the shared library from the single module created, but only if the |
44580 | # previous command didn't fail: | |
a848cd7e | 44581 | # |
810b94f0 MW |
44582 | if test ${D}{status} = 0; then |
44583 | if test ${D}{verbose} = 1; then | |
44584 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
44585 | fi | |
44586 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
44587 | status=${D}? | |
a848cd7e SC |
44588 | fi |
44589 | ||
44590 | # | |
44591 | # Remove intermediate module | |
44592 | # | |
473276a9 | 44593 | rm -f master.${D}${D}.o |
a848cd7e | 44594 | |
810b94f0 | 44595 | exit ${D}status |
a848cd7e | 44596 | EOF |
473276a9 | 44597 | |
a848cd7e SC |
44598 | chmod +x shared-ld-sh |
44599 | ||
44600 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
a848cd7e | 44601 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
44602 | else |
44603 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 44604 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
44605 | fi |
44606 | ||
47bd5406 VZ |
44607 | if test "x$GCC" == "xyes"; then |
44608 | PIC_FLAG="-dynamic -fPIC" | |
44609 | fi | |
44610 | if test "x$XLCC" = "xyes"; then | |
44611 | PIC_FLAG="-dynamic -DPIC" | |
44612 | fi | |
a848cd7e SC |
44613 | ;; |
44614 | ||
44615 | *-*-aix* ) | |
f6b50c59 VZ |
44616 | if test "x$GCC" = "xyes"; then |
44617 | PIC_FLAG="" | |
44618 | ||
44619 | case "${BAKEFILE_HOST}" in | |
44620 | *-*-aix5* ) | |
44621 | LD_EXPFULL="-Wl,-bexpfull" | |
44622 | ;; | |
44623 | esac | |
44624 | ||
7b94a67c VZ |
44625 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
44626 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
0ad5d837 | 44627 | else |
f6b50c59 | 44628 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
a848cd7e SC |
44629 | set dummy makeC++SharedLib; ac_word=$2 |
44630 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44632 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
44633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44634 | else | |
44635 | if test -n "$AIX_CXX_LD"; then | |
44636 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
44637 | else | |
44638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44639 | for as_dir in $PATH | |
44640 | do | |
44641 | IFS=$as_save_IFS | |
44642 | test -z "$as_dir" && as_dir=. | |
44643 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44645 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
44646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44647 | break 2 | |
44648 | fi | |
44649 | done | |
44650 | done | |
44651 | ||
44652 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
44653 | fi | |
44654 | fi | |
44655 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
44656 | if test -n "$AIX_CXX_LD"; then | |
44657 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
44658 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
44659 | else | |
44660 | echo "$as_me:$LINENO: result: no" >&5 | |
44661 | echo "${ECHO_T}no" >&6 | |
44662 | fi | |
44663 | ||
f6b50c59 | 44664 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
44665 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
44666 | fi | |
44667 | ;; | |
44668 | ||
44669 | *-*-beos* ) | |
1e9e8aba DE |
44670 | SHARED_LD_CC="${LD} -nostart -o" |
44671 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
44672 | ;; |
44673 | ||
44674 | *-*-irix* ) | |
44675 | if test "x$GCC" != "xyes"; then | |
44676 | PIC_FLAG="-KPIC" | |
44677 | fi | |
44678 | ;; | |
44679 | ||
44680 | *-*-cygwin* | *-*-mingw32* ) | |
44681 | PIC_FLAG="" | |
1e9e8aba DE |
44682 | SHARED_LD_CC="\$(CC) -shared -o" |
44683 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 44684 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
44685 | ;; |
44686 | ||
44687 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
44688 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
44689 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 44690 | PIC_FLAG="" |
473276a9 VS |
44691 | |
44692 | D='$' | |
44693 | cat <<EOF >dllar.sh | |
44694 | #!/bin/sh | |
44695 | # | |
44696 | # dllar - a tool to build both a .dll and an .a file | |
44697 | # from a set of object (.o) files for EMX/OS2. | |
44698 | # | |
44699 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
44700 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
44701 | # | |
44702 | # This script will accept a set of files on the command line. | |
44703 | # All the public symbols from the .o files will be exported into | |
44704 | # a .DEF file, then linker will be run (through gcc) against them to | |
44705 | # build a shared library consisting of all given .o files. All libraries | |
44706 | # (.a) will be first decompressed into component .o files then act as | |
44707 | # described above. You can optionally give a description (-d "description") | |
44708 | # which will be put into .DLL. To see the list of accepted options (as well | |
44709 | # as command-line format) simply run this program without options. The .DLL | |
44710 | # is built to be imported by name (there is no guarantee that new versions | |
44711 | # of the library you build will have same ordinals for same symbols). | |
44712 | # | |
44713 | # dllar is free software; you can redistribute it and/or modify | |
44714 | # it under the terms of the GNU General Public License as published by | |
44715 | # the Free Software Foundation; either version 2, or (at your option) | |
44716 | # any later version. | |
44717 | # | |
44718 | # dllar is distributed in the hope that it will be useful, | |
44719 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
44720 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
44721 | # GNU General Public License for more details. | |
44722 | # | |
44723 | # You should have received a copy of the GNU General Public License | |
44724 | # along with dllar; see the file COPYING. If not, write to the Free | |
44725 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
44726 | # 02111-1307, USA. | |
44727 | ||
44728 | # To successfuly run this program you will need: | |
44729 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
44730 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
44731 | # - gcc | |
44732 | # (used to build the .dll) | |
44733 | # - emxexp | |
44734 | # (used to create .def file from .o files) | |
44735 | # - emximp | |
44736 | # (used to create .a file from .def file) | |
44737 | # - GNU text utilites (cat, sort, uniq) | |
44738 | # used to process emxexp output | |
44739 | # - GNU file utilities (mv, rm) | |
44740 | # - GNU sed | |
44741 | # - lxlite (optional, see flag below) | |
44742 | # (used for general .dll cleanup) | |
44743 | # | |
44744 | ||
44745 | flag_USE_LXLITE=1; | |
44746 | ||
44747 | # | |
44748 | # helper functions | |
44749 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
44750 | # second argument (suffix to remove) is given | |
44751 | basnam(){ | |
44752 | case ${D}# in | |
44753 | 1) | |
1e9e8aba | 44754 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
44755 | ;; |
44756 | 2) | |
44757 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
44758 | ;; | |
44759 | *) | |
44760 | echo "error in basnam ${D}*" | |
44761 | exit 8 | |
44762 | ;; | |
44763 | esac | |
44764 | } | |
44765 | ||
44766 | # Cleanup temporary files and output | |
44767 | CleanUp() { | |
44768 | cd ${D}curDir | |
44769 | for i in ${D}inputFiles ; do | |
44770 | case ${D}i in | |
44771 | *!) | |
44772 | rm -rf \`basnam ${D}i !\` | |
44773 | ;; | |
44774 | *) | |
44775 | ;; | |
44776 | esac | |
44777 | done | |
44778 | ||
44779 | # Kill result in case of failure as there is just to many stupid make/nmake | |
44780 | # things out there which doesn't do this. | |
1e9e8aba | 44781 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
44782 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
44783 | fi | |
44784 | } | |
44785 | ||
44786 | # Print usage and exit script with rc=1. | |
44787 | PrintHelp() { | |
b1d22ded DE |
44788 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
44789 | echo ' [-name-mangler-script script.sh]' | |
44790 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
44791 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
44792 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 44793 | echo ' [*.o] [*.a]' |
473276a9 VS |
44794 | echo '*> "output_file" should have no extension.' |
44795 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
44796 | echo ' The import library name is derived from this and is set to "name".a,' | |
44797 | echo ' unless overridden by -import' | |
44798 | echo '*> "importlib_name" should have no extension.' | |
44799 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
44800 | echo ' This name is used as the import library name and may be longer and' | |
44801 | echo ' more descriptive than the DLL name which has to follow the old ' | |
44802 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
44803 | echo '*> "script.sh may be given to override the output_file name by a' |
44804 | echo ' different name. It is mainly useful if the regular make process' | |
44805 | echo ' of some package does not take into account OS/2 restriction of' | |
44806 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
44807 | echo ' supposed to procude a shorter name as output. The script should' | |
44808 | echo ' expect to get importlib_name without extension and should produce' | |
44809 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
44810 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
44811 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
44812 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
44813 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
44814 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
44815 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
44816 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
44817 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 44818 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 44819 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 44820 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 44821 | echo ' C runtime DLLs.' |
b1d22ded | 44822 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
44823 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
44824 | echo ' unchanged to GCC at the end of command line.' | |
44825 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
44826 | echo ' the basename for DLL and import library will be set to library name,' | |
44827 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
44828 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
44829 | echo ' library will be renamed into gcc_s.a.' | |
44830 | echo '--------' | |
44831 | echo 'Example:' | |
44832 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
44833 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
44834 | CleanUp | |
44835 | exit 1 | |
44836 | } | |
44837 | ||
44838 | # Execute a command. | |
44839 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
44840 | # @Uses Whatever CleanUp() uses. | |
44841 | doCommand() { | |
44842 | echo "${D}*" | |
44843 | eval ${D}* | |
44844 | rcCmd=${D}? | |
44845 | ||
1e9e8aba | 44846 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
44847 | echo "command failed, exit code="${D}rcCmd |
44848 | CleanUp | |
44849 | exit ${D}rcCmd | |
44850 | fi | |
44851 | } | |
44852 | ||
44853 | # main routine | |
44854 | # setup globals | |
44855 | cmdLine=${D}* | |
44856 | outFile="" | |
44857 | outimpFile="" | |
44858 | inputFiles="" | |
b1d22ded | 44859 | renameScript="" |
473276a9 VS |
44860 | description="" |
44861 | CC=gcc.exe | |
44862 | CFLAGS="-s -Zcrtdll" | |
44863 | EXTRA_CFLAGS="" | |
44864 | EXPORT_BY_ORDINALS=0 | |
44865 | exclude_symbols="" | |
44866 | library_flags="" | |
44867 | curDir=\`pwd\` | |
44868 | curDirS=curDir | |
44869 | case ${D}curDirS in | |
44870 | */) | |
44871 | ;; | |
44872 | *) | |
44873 | curDirS=${D}{curDirS}"/" | |
44874 | ;; | |
44875 | esac | |
44876 | # Parse commandline | |
44877 | libsToLink=0 | |
b1d22ded | 44878 | omfLinking=0 |
1e9e8aba | 44879 | while [ ${D}1 ]; do |
473276a9 VS |
44880 | case ${D}1 in |
44881 | -ord*) | |
44882 | EXPORT_BY_ORDINALS=1; | |
44883 | ;; | |
44884 | -o*) | |
44885 | shift | |
44886 | outFile=${D}1 | |
44887 | ;; | |
44888 | -i*) | |
44889 | shift | |
44890 | outimpFile=${D}1 | |
44891 | ;; | |
b1d22ded DE |
44892 | -name-mangler-script) |
44893 | shift | |
44894 | renameScript=${D}1 | |
44895 | ;; | |
473276a9 VS |
44896 | -d*) |
44897 | shift | |
44898 | description=${D}1 | |
44899 | ;; | |
44900 | -f*) | |
44901 | shift | |
44902 | CFLAGS=${D}1 | |
44903 | ;; | |
44904 | -c*) | |
44905 | shift | |
44906 | CC=${D}1 | |
44907 | ;; | |
44908 | -h*) | |
44909 | PrintHelp | |
44910 | ;; | |
44911 | -ex*) | |
44912 | shift | |
44913 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
44914 | ;; | |
44915 | -libf*) | |
44916 | shift | |
44917 | library_flags=${D}{library_flags}${D}1" " | |
44918 | ;; | |
44919 | -nocrt*) | |
44920 | CFLAGS="-s" | |
44921 | ;; | |
44922 | -nolxl*) | |
44923 | flag_USE_LXLITE=0 | |
44924 | ;; | |
44925 | -* | /*) | |
44926 | case ${D}1 in | |
44927 | -L* | -l*) | |
44928 | libsToLink=1 | |
44929 | ;; | |
b1d22ded DE |
44930 | -Zomf) |
44931 | omfLinking=1 | |
44932 | ;; | |
473276a9 VS |
44933 | *) |
44934 | ;; | |
44935 | esac | |
44936 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
44937 | ;; | |
b1d22ded DE |
44938 | *.dll) |
44939 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
44940 | if [ ${D}omfLinking -eq 1 ]; then | |
44941 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
44942 | else | |
44943 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
44944 | fi | |
44945 | ;; | |
473276a9 VS |
44946 | *) |
44947 | found=0; | |
1e9e8aba | 44948 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
44949 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
44950 | else | |
44951 | for file in ${D}1 ; do | |
1e9e8aba | 44952 | if [ -f ${D}file ]; then |
473276a9 VS |
44953 | inputFiles="${D}{inputFiles} ${D}file" |
44954 | found=1 | |
44955 | fi | |
44956 | done | |
1e9e8aba | 44957 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
44958 | echo "ERROR: No file(s) found: "${D}1 |
44959 | exit 8 | |
44960 | fi | |
44961 | fi | |
44962 | ;; | |
44963 | esac | |
44964 | shift | |
44965 | done # iterate cmdline words | |
44966 | ||
44967 | # | |
1e9e8aba | 44968 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
44969 | echo "dllar: no input files" |
44970 | PrintHelp | |
44971 | fi | |
44972 | ||
44973 | # Now extract all .o files from .a files | |
44974 | newInputFiles="" | |
44975 | for file in ${D}inputFiles ; do | |
44976 | case ${D}file in | |
44977 | *.a | *.lib) | |
44978 | case ${D}file in | |
44979 | *.a) | |
44980 | suffix=".a" | |
44981 | AR="ar" | |
44982 | ;; | |
44983 | *.lib) | |
44984 | suffix=".lib" | |
44985 | AR="emxomfar" | |
44986 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
44987 | ;; | |
44988 | *) | |
44989 | ;; | |
44990 | esac | |
44991 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
44992 | mkdir ${D}dirname | |
1e9e8aba | 44993 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
44994 | echo "Failed to create subdirectory ./${D}dirname" |
44995 | CleanUp | |
44996 | exit 8; | |
44997 | fi | |
44998 | # Append '!' to indicate archive | |
44999 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
45000 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
45001 | cd ${D}curDir | |
45002 | found=0; | |
45003 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 45004 | if [ -f ${D}subfile ]; then |
473276a9 | 45005 | found=1 |
1e9e8aba | 45006 | if [ -s ${D}subfile ]; then |
473276a9 VS |
45007 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
45008 | newInputFiles="${D}newInputFiles ${D}subfile" | |
45009 | fi | |
45010 | fi | |
45011 | done | |
1e9e8aba DE |
45012 | if [ ${D}found -eq 0 ]; then |
45013 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
45014 | fi |
45015 | ;; | |
45016 | *) | |
45017 | newInputFiles="${D}{newInputFiles} ${D}file" | |
45018 | ;; | |
45019 | esac | |
45020 | done | |
45021 | inputFiles="${D}newInputFiles" | |
45022 | ||
45023 | # Output filename(s). | |
45024 | do_backup=0; | |
1e9e8aba | 45025 | if [ -z ${D}outFile ]; then |
473276a9 VS |
45026 | do_backup=1; |
45027 | set outFile ${D}inputFiles; outFile=${D}2 | |
45028 | fi | |
45029 | ||
45030 | # If it is an archive, remove the '!' and the '_%' suffixes | |
45031 | case ${D}outFile in | |
45032 | *_%!) | |
45033 | outFile=\`basnam ${D}outFile _%!\` | |
45034 | ;; | |
45035 | *) | |
45036 | ;; | |
45037 | esac | |
45038 | case ${D}outFile in | |
45039 | *.dll) | |
45040 | outFile=\`basnam ${D}outFile .dll\` | |
45041 | ;; | |
45042 | *.DLL) | |
45043 | outFile=\`basnam ${D}outFile .DLL\` | |
45044 | ;; | |
45045 | *.o) | |
45046 | outFile=\`basnam ${D}outFile .o\` | |
45047 | ;; | |
45048 | *.obj) | |
45049 | outFile=\`basnam ${D}outFile .obj\` | |
45050 | ;; | |
45051 | *.a) | |
45052 | outFile=\`basnam ${D}outFile .a\` | |
45053 | ;; | |
45054 | *.lib) | |
45055 | outFile=\`basnam ${D}outFile .lib\` | |
45056 | ;; | |
45057 | *) | |
45058 | ;; | |
45059 | esac | |
45060 | case ${D}outimpFile in | |
45061 | *.a) | |
45062 | outimpFile=\`basnam ${D}outimpFile .a\` | |
45063 | ;; | |
45064 | *.lib) | |
45065 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
45066 | ;; | |
45067 | *) | |
45068 | ;; | |
45069 | esac | |
1e9e8aba | 45070 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
45071 | outimpFile=${D}outFile |
45072 | fi | |
45073 | defFile="${D}{outFile}.def" | |
45074 | arcFile="${D}{outimpFile}.a" | |
45075 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
45076 | |
45077 | #create ${D}dllFile as something matching 8.3 restrictions, | |
45078 | if [ -z ${D}renameScript ] ; then | |
45079 | dllFile="${D}outFile" | |
45080 | else | |
45081 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
45082 | fi | |
473276a9 | 45083 | |
1e9e8aba DE |
45084 | if [ ${D}do_backup -ne 0 ] ; then |
45085 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
45086 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
45087 | fi | |
1e9e8aba | 45088 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
45089 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
45090 | fi | |
45091 | fi | |
45092 | ||
45093 | # Extract public symbols from all the object files. | |
45094 | tmpdefFile=${D}{defFile}_% | |
45095 | rm -f ${D}tmpdefFile | |
45096 | for file in ${D}inputFiles ; do | |
45097 | case ${D}file in | |
45098 | *!) | |
45099 | ;; | |
45100 | *) | |
45101 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
45102 | ;; | |
45103 | esac | |
45104 | done | |
45105 | ||
45106 | # Create the def file. | |
45107 | rm -f ${D}defFile | |
45108 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
45109 | dllFile="${D}{dllFile}.dll" |
45110 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 45111 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
45112 | fi |
45113 | echo "EXPORTS" >> ${D}defFile | |
45114 | ||
45115 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
45116 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
45117 | ||
45118 | # Checks if the export is ok or not. | |
45119 | for word in ${D}exclude_symbols; do | |
45120 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
45121 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
45122 | done | |
45123 | ||
45124 | ||
1e9e8aba DE |
45125 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
45126 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
45127 | sed ' |
45128 | N | |
45129 | : loop | |
1e9e8aba | 45130 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
45131 | t loop |
45132 | ' > ${D}{tmpdefFile}% | |
45133 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
45134 | else | |
45135 | rm -f ${D}{tmpdefFile}% | |
45136 | fi | |
45137 | cat ${D}tmpdefFile >> ${D}defFile | |
45138 | rm -f ${D}tmpdefFile | |
45139 | ||
45140 | # Do linking, create implib, and apply lxlite. | |
45141 | gccCmdl=""; | |
45142 | for file in ${D}inputFiles ; do | |
45143 | case ${D}file in | |
45144 | *!) | |
45145 | ;; | |
45146 | *) | |
45147 | gccCmdl="${D}gccCmdl ${D}file" | |
45148 | ;; | |
45149 | esac | |
45150 | done | |
45151 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
45152 | touch "${D}{outFile}.dll" | |
45153 | ||
45154 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 45155 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 45156 | add_flags=""; |
1e9e8aba | 45157 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
45158 | add_flags="-ynd" |
45159 | fi | |
45160 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
45161 | fi | |
45162 | doCommand "emxomf -s -l ${D}arcFile" | |
45163 | ||
45164 | # Successful exit. | |
45165 | CleanUp 1 | |
45166 | exit 0 | |
45167 | EOF | |
45168 | ||
45169 | chmod +x dllar.sh | |
a848cd7e SC |
45170 | ;; |
45171 | ||
1e9e8aba | 45172 | powerpc-apple-macos* | \ |
0ad5d837 | 45173 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
45174 | *-*-sunos4* | \ |
45175 | *-*-osf* | \ | |
45176 | *-*-dgux5* | \ | |
47a7e797 MW |
45177 | *-*-sysv5* | \ |
45178 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
45179 | ;; |
45180 | ||
45181 | *) | |
45182 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
45183 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
45184 | { (exit 1); exit 1; }; } | |
45185 | esac | |
45186 | ||
2057db16 VS |
45187 | if test "x$PIC_FLAG" != "x" ; then |
45188 | PIC_FLAG="$PIC_FLAG -DPIC" | |
45189 | fi | |
45190 | ||
a848cd7e SC |
45191 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
45192 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
45193 | fi | |
45194 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
45195 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
45196 | fi | |
45197 | ||
45198 | ||
45199 | ||
45200 | ||
45201 | ||
45202 | ||
45203 | ||
45204 | ||
810b94f0 | 45205 | |
a848cd7e SC |
45206 | USE_SOVERSION=0 |
45207 | USE_SOVERLINUX=0 | |
45208 | USE_SOVERSOLARIS=0 | |
810b94f0 | 45209 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
45210 | USE_SOSYMLINKS=0 |
45211 | USE_MACVERSION=0 | |
45212 | SONAME_FLAG= | |
45213 | ||
45214 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 45215 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
45216 | SONAME_FLAG="-Wl,-soname," |
45217 | USE_SOVERSION=1 | |
45218 | USE_SOVERLINUX=1 | |
45219 | USE_SOSYMLINKS=1 | |
45220 | ;; | |
45221 | ||
a848cd7e SC |
45222 | *-*-solaris2* ) |
45223 | SONAME_FLAG="-h " | |
45224 | USE_SOVERSION=1 | |
45225 | USE_SOVERSOLARIS=1 | |
45226 | USE_SOSYMLINKS=1 | |
45227 | ;; | |
45228 | ||
45229 | *-*-darwin* ) | |
45230 | USE_MACVERSION=1 | |
45231 | USE_SOVERSION=1 | |
45232 | USE_SOSYMLINKS=1 | |
45233 | ;; | |
810b94f0 MW |
45234 | |
45235 | *-*-cygwin* ) | |
45236 | USE_SOVERSION=1 | |
45237 | USE_SOVERCYGWIN=1 | |
45238 | ;; | |
a848cd7e SC |
45239 | esac |
45240 | ||
45241 | ||
45242 | ||
45243 | ||
45244 | ||
45245 | ||
45246 | ||
45247 | ||
45248 | ||
810b94f0 | 45249 | |
a848cd7e SC |
45250 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
45251 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 45252 | DEPS_TRACKING=1 |
a848cd7e SC |
45253 | |
45254 | if test "x$GCC" = "xyes"; then | |
45255 | DEPSMODE=gcc | |
a848cd7e | 45256 | case "${BAKEFILE_HOST}" in |
47bd5406 | 45257 | *-*-darwin* ) |
0ad5d837 | 45258 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
45259 | ;; |
45260 | * ) | |
0ad5d837 | 45261 | DEPSFLAG="-MMD" |
a848cd7e SC |
45262 | ;; |
45263 | esac | |
45264 | echo "$as_me:$LINENO: result: gcc" >&5 | |
45265 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 45266 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 45267 | DEPSMODE=mwcc |
0ad5d837 | 45268 | DEPSFLAG="-MM" |
b1d22ded DE |
45269 | echo "$as_me:$LINENO: result: mwcc" >&5 |
45270 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 45271 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
45272 | DEPSMODE=unixcc |
45273 | DEPSFLAG="-xM1" | |
45274 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
45275 | echo "${ECHO_T}Sun cc" >&6 | |
45276 | elif test "x$SGICC" = "xyes"; then | |
45277 | DEPSMODE=unixcc | |
45278 | DEPSFLAG="-M" | |
45279 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
45280 | echo "${ECHO_T}SGI cc" >&6 | |
3006edc0 VZ |
45281 | elif test "x$HPCC" = "xyes"; then |
45282 | DEPSMODE=unixcc | |
45283 | DEPSFLAG="+make" | |
45284 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
45285 | echo "${ECHO_T}HP cc" >&6 | |
a1aa0349 VZ |
45286 | elif test "x$COMPAQCC" = "xyes"; then |
45287 | DEPSMODE=gcc | |
45288 | DEPSFLAG="-MD" | |
45289 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
45290 | echo "${ECHO_T}Compaq cc" >&6 | |
a848cd7e | 45291 | else |
3006edc0 | 45292 | DEPS_TRACKING=0 |
a848cd7e SC |
45293 | echo "$as_me:$LINENO: result: none" >&5 |
45294 | echo "${ECHO_T}none" >&6 | |
45295 | fi | |
45296 | ||
45297 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
45298 | |
45299 | D='$' | |
45300 | cat <<EOF >bk-deps | |
a848cd7e SC |
45301 | #!/bin/sh |
45302 | ||
45303 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
45304 | # script. It is used to track C/C++ files dependencies in portable way. | |
45305 | # | |
45306 | # Permission is given to use this file in any way. | |
45307 | ||
473276a9 | 45308 | DEPSMODE=${DEPSMODE} |
a848cd7e | 45309 | DEPSDIR=.deps |
0ad5d837 | 45310 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 45311 | |
473276a9 | 45312 | mkdir -p ${D}DEPSDIR |
a848cd7e | 45313 | |
473276a9 | 45314 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 45315 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
45316 | status=${D}? |
45317 | if test ${D}{status} != 0 ; then | |
45318 | exit ${D}{status} | |
a848cd7e SC |
45319 | fi |
45320 | # move created file to the location we want it in: | |
473276a9 VS |
45321 | while test ${D}# -gt 0; do |
45322 | case "${D}1" in | |
a848cd7e SC |
45323 | -o ) |
45324 | shift | |
473276a9 | 45325 | objfile=${D}1 |
a848cd7e SC |
45326 | ;; |
45327 | -* ) | |
45328 | ;; | |
45329 | * ) | |
473276a9 | 45330 | srcfile=${D}1 |
a848cd7e SC |
45331 | ;; |
45332 | esac | |
45333 | shift | |
45334 | done | |
1e9e8aba DE |
45335 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
45336 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
45337 | if test -f ${D}depfile ; then |
45338 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
45339 | rm -f ${D}depfile | |
a848cd7e | 45340 | else |
a1aa0349 | 45341 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 45342 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
45343 | if test ! -f ${D}depfile ; then |
45344 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
45345 | depfile="${D}objfile.d" | |
45346 | fi | |
473276a9 VS |
45347 | if test -f ${D}depfile ; then |
45348 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
45349 | rm -f ${D}depfile | |
a848cd7e SC |
45350 | fi |
45351 | fi | |
45352 | exit 0 | |
81f90336 | 45353 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 45354 | ${D}* || exit ${D}? |
81f90336 MW |
45355 | # Run mwcc again with -MM and redirect into the dep file we want |
45356 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
45357 | prevarg= | |
45358 | for arg in ${D}* ; do | |
45359 | if test "${D}prevarg" = "-o"; then | |
45360 | objfile=${D}arg | |
45361 | else | |
45362 | case "${D}arg" in | |
45363 | -* ) | |
45364 | ;; | |
45365 | * ) | |
45366 | srcfile=${D}arg | |
45367 | ;; | |
45368 | esac | |
45369 | fi | |
45370 | prevarg="${D}arg" | |
45371 | done | |
0ad5d837 | 45372 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 45373 | exit 0 |
0ad5d837 | 45374 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 45375 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
45376 | # Run compiler again with deps flag and redirect into the dep file. |
45377 | # It doesn't work if the '-o FILE' option is used, but without it the | |
45378 | # dependency file will contain the wrong name for the object. So it is | |
45379 | # removed from the command line, and the dep file is fixed with sed. | |
45380 | cmd="" | |
45381 | while test ${D}# -gt 0; do | |
45382 | case "${D}1" in | |
45383 | -o ) | |
45384 | shift | |
45385 | objfile=${D}1 | |
45386 | ;; | |
45387 | * ) | |
45388 | eval arg${D}#=\\${D}1 | |
45389 | cmd="${D}cmd \\${D}arg${D}#" | |
45390 | ;; | |
45391 | esac | |
45392 | shift | |
45393 | done | |
0ad5d837 | 45394 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 45395 | exit 0 |
a848cd7e | 45396 | else |
473276a9 VS |
45397 | ${D}* |
45398 | exit ${D}? | |
a848cd7e SC |
45399 | fi |
45400 | EOF | |
473276a9 | 45401 | |
a848cd7e SC |
45402 | chmod +x bk-deps |
45403 | fi | |
45404 | ||
45405 | ||
45406 | ||
45407 | ||
45408 | RESCOMP= | |
45409 | SETFILE= | |
45410 | ||
45411 | case ${BAKEFILE_HOST} in | |
45412 | *-*-cygwin* | *-*-mingw32* ) | |
45413 | if test "$build" != "$host" ; then | |
45414 | RESCOMP=$host_alias-windres | |
45415 | else | |
45416 | # Extract the first word of "windres", so it can be a program name with args. | |
45417 | set dummy windres; ac_word=$2 | |
45418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45420 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
45421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45422 | else | |
45423 | if test -n "$RESCOMP"; then | |
45424 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
45425 | else | |
45426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45427 | for as_dir in $PATH | |
45428 | do | |
45429 | IFS=$as_save_IFS | |
45430 | test -z "$as_dir" && as_dir=. | |
45431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45433 | ac_cv_prog_RESCOMP="windres" | |
45434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45435 | break 2 | |
45436 | fi | |
45437 | done | |
45438 | done | |
45439 | ||
45440 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
45441 | fi | |
45442 | fi | |
45443 | RESCOMP=$ac_cv_prog_RESCOMP | |
45444 | if test -n "$RESCOMP"; then | |
45445 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
45446 | echo "${ECHO_T}$RESCOMP" >&6 | |
45447 | else | |
45448 | echo "$as_me:$LINENO: result: no" >&5 | |
45449 | echo "${ECHO_T}no" >&6 | |
45450 | fi | |
45451 | ||
45452 | fi | |
45453 | ;; | |
45454 | ||
1e9e8aba | 45455 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
45456 | # Extract the first word of "Rez", so it can be a program name with args. |
45457 | set dummy Rez; ac_word=$2 | |
45458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45460 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
45461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45462 | else | |
45463 | if test -n "$RESCOMP"; then | |
45464 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
45465 | else | |
45466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45467 | for as_dir in $PATH | |
45468 | do | |
45469 | IFS=$as_save_IFS | |
45470 | test -z "$as_dir" && as_dir=. | |
45471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45473 | ac_cv_prog_RESCOMP="Rez" | |
45474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45475 | break 2 | |
45476 | fi | |
45477 | done | |
45478 | done | |
45479 | ||
45480 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
45481 | fi | |
45482 | fi | |
45483 | RESCOMP=$ac_cv_prog_RESCOMP | |
45484 | if test -n "$RESCOMP"; then | |
45485 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
45486 | echo "${ECHO_T}$RESCOMP" >&6 | |
45487 | else | |
45488 | echo "$as_me:$LINENO: result: no" >&5 | |
45489 | echo "${ECHO_T}no" >&6 | |
45490 | fi | |
45491 | ||
45492 | # Extract the first word of "SetFile", so it can be a program name with args. | |
45493 | set dummy SetFile; ac_word=$2 | |
45494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45496 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
45497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45498 | else | |
45499 | if test -n "$SETFILE"; then | |
45500 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
45501 | else | |
45502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45503 | for as_dir in $PATH | |
45504 | do | |
45505 | IFS=$as_save_IFS | |
45506 | test -z "$as_dir" && as_dir=. | |
45507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45509 | ac_cv_prog_SETFILE="SetFile" | |
45510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45511 | break 2 | |
45512 | fi | |
45513 | done | |
45514 | done | |
45515 | ||
45516 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
45517 | fi | |
45518 | fi | |
45519 | SETFILE=$ac_cv_prog_SETFILE | |
45520 | if test -n "$SETFILE"; then | |
45521 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
45522 | echo "${ECHO_T}$SETFILE" >&6 | |
45523 | else | |
45524 | echo "$as_me:$LINENO: result: no" >&5 | |
45525 | echo "${ECHO_T}no" >&6 | |
45526 | fi | |
45527 | ||
45528 | ;; | |
45529 | esac | |
45530 | ||
45531 | ||
45532 | ||
45533 | ||
45534 | ||
c9469659 | 45535 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 45536 | |
dcc1b6ad | 45537 | |
c9469659 | 45538 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 45539 | |
646b6ec1 | 45540 | |
74b84332 | 45541 | |
a848cd7e SC |
45542 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
45543 | if test "${enable_precomp_headers+set}" = set; then | |
45544 | enableval="$enable_precomp_headers" | |
45545 | bk_use_pch="$enableval" | |
45546 | fi; | |
45547 | ||
45548 | GCC_PCH=0 | |
45549 | ||
45550 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
45551 | if test "x$GCC" = "xyes"; then | |
45552 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
45553 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
45554 | cat >conftest.$ac_ext <<_ACEOF | |
45555 | /* confdefs.h. */ | |
45556 | _ACEOF | |
45557 | cat confdefs.h >>conftest.$ac_ext | |
45558 | cat >>conftest.$ac_ext <<_ACEOF | |
45559 | /* end confdefs.h. */ | |
45560 | ||
45561 | int | |
45562 | main () | |
45563 | { | |
45564 | ||
45565 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
45566 | #error "no pch support" | |
45567 | #endif | |
45568 | #if (__GNUC__ < 3) | |
45569 | #error "no pch support" | |
45570 | #endif | |
45571 | #if (__GNUC__ == 3) && \ | |
45572 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
45573 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
45574 | #error "no pch support" | |
45575 | #endif | |
45576 | ||
45577 | ; | |
45578 | return 0; | |
45579 | } | |
45580 | _ACEOF | |
45581 | rm -f conftest.$ac_objext | |
45582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45584 | ac_status=$? |
ac1cb8d3 VS |
45585 | grep -v '^ *+' conftest.er1 >conftest.err |
45586 | rm -f conftest.er1 | |
45587 | cat conftest.err >&5 | |
a848cd7e SC |
45588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45589 | (exit $ac_status); } && | |
dee1a63f MB |
45590 | { ac_try='test -z "$ac_c_werror_flag" |
45591 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
45592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45593 | (eval $ac_try) 2>&5 | |
45594 | ac_status=$? | |
45595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45596 | (exit $ac_status); }; } && | |
45597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45599 | (eval $ac_try) 2>&5 | |
45600 | ac_status=$? | |
45601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45602 | (exit $ac_status); }; }; then | |
45603 | ||
45604 | echo "$as_me:$LINENO: result: yes" >&5 | |
45605 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
45606 | GCC_PCH=1 |
45607 | ||
45608 | else | |
45609 | echo "$as_me: failed program was:" >&5 | |
45610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45611 | ||
45612 | ||
45613 | echo "$as_me:$LINENO: result: no" >&5 | |
45614 | echo "${ECHO_T}no" >&6 | |
45615 | ||
45616 | fi | |
ac1cb8d3 | 45617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 45618 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
45619 | |
45620 | D='$' | |
45621 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
45622 | #!/bin/sh |
45623 | ||
45624 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
45625 | # script. It is used to generated precompiled headers. | |
45626 | # | |
45627 | # Permission is given to use this file in any way. | |
45628 | ||
1e9e8aba DE |
45629 | outfile="${D}{1}" |
45630 | header="${D}{2}" | |
a848cd7e SC |
45631 | shift |
45632 | shift | |
45633 | ||
45634 | compiler= | |
45635 | headerfile= | |
1e9e8aba DE |
45636 | while test ${D}{#} -gt 0; do |
45637 | case "${D}{1}" in | |
a848cd7e | 45638 | -I* ) |
1e9e8aba DE |
45639 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
45640 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
45641 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
45642 | fi |
45643 | ;; | |
45644 | esac | |
1e9e8aba | 45645 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
45646 | shift |
45647 | done | |
45648 | ||
1e9e8aba DE |
45649 | if test "x${D}{headerfile}" = "x" ; then |
45650 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 45651 | else |
1e9e8aba DE |
45652 | if test -f ${D}{outfile} ; then |
45653 | rm -f ${D}{outfile} | |
a848cd7e | 45654 | else |
1e9e8aba | 45655 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 45656 | fi |
1e9e8aba | 45657 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
45658 | mkdir -p .deps |
45659 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
45660 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
45661 | exit ${D}{?} | |
a848cd7e SC |
45662 | fi |
45663 | EOF | |
1e9e8aba | 45664 | |
a848cd7e SC |
45665 | chmod +x bk-make-pch |
45666 | fi | |
45667 | fi | |
45668 | fi | |
45669 | ||
45670 | ||
45671 | ||
a848cd7e SC |
45672 | COND_BUILD_DEBUG="#" |
45673 | if test "x$BUILD" = "xdebug" ; then | |
45674 | COND_BUILD_DEBUG="" | |
45675 | fi | |
45676 | ||
45677 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
45678 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
45679 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
45680 | fi | |
45681 | ||
45682 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
45683 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
45684 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
45685 | fi | |
45686 | ||
45687 | COND_BUILD_DEBUG_UNICODE_0="#" | |
45688 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
45689 | COND_BUILD_DEBUG_UNICODE_0="" | |
45690 | fi | |
45691 | ||
45692 | COND_BUILD_DEBUG_UNICODE_1="#" | |
45693 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
45694 | COND_BUILD_DEBUG_UNICODE_1="" | |
45695 | fi | |
45696 | ||
45697 | COND_BUILD_RELEASE="#" | |
45698 | if test "x$BUILD" = "xrelease" ; then | |
45699 | COND_BUILD_RELEASE="" | |
45700 | fi | |
45701 | ||
45702 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
45703 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
45704 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
45705 | fi | |
45706 | ||
45707 | COND_BUILD_RELEASE_UNICODE_0="#" | |
45708 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
45709 | COND_BUILD_RELEASE_UNICODE_0="" | |
45710 | fi | |
45711 | ||
45712 | COND_BUILD_RELEASE_UNICODE_1="#" | |
45713 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
45714 | COND_BUILD_RELEASE_UNICODE_1="" | |
45715 | fi | |
45716 | ||
45717 | COND_DEBUG_FLAG_1="#" | |
45718 | if test "x$DEBUG_FLAG" = "x1" ; then | |
45719 | COND_DEBUG_FLAG_1="" | |
45720 | fi | |
45721 | ||
45722 | COND_DEBUG_INFO_0="#" | |
45723 | if test "x$DEBUG_INFO" = "x0" ; then | |
45724 | COND_DEBUG_INFO_0="" | |
45725 | fi | |
45726 | ||
45727 | COND_DEBUG_INFO_1="#" | |
45728 | if test "x$DEBUG_INFO" = "x1" ; then | |
45729 | COND_DEBUG_INFO_1="" | |
45730 | fi | |
45731 | ||
45732 | COND_DEPS_TRACKING_0="#" | |
45733 | if test "x$DEPS_TRACKING" = "x0" ; then | |
45734 | COND_DEPS_TRACKING_0="" | |
45735 | fi | |
45736 | ||
45737 | COND_DEPS_TRACKING_1="#" | |
45738 | if test "x$DEPS_TRACKING" = "x1" ; then | |
45739 | COND_DEPS_TRACKING_1="" | |
45740 | fi | |
45741 | ||
45742 | COND_GCC_PCH_1="#" | |
45743 | if test "x$GCC_PCH" = "x1" ; then | |
45744 | COND_GCC_PCH_1="" | |
45745 | fi | |
45746 | ||
45747 | COND_MONOLITHIC_0="#" | |
45748 | if test "x$MONOLITHIC" = "x0" ; then | |
45749 | COND_MONOLITHIC_0="" | |
45750 | fi | |
45751 | ||
45752 | COND_MONOLITHIC_0_SHARED_0="#" | |
45753 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
45754 | COND_MONOLITHIC_0_SHARED_0="" | |
45755 | fi | |
45756 | ||
45757 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
45758 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
45759 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
45760 | fi | |
45761 | ||
90970d69 DE |
45762 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
45763 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45764 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
45765 | fi | |
45766 | ||
a848cd7e SC |
45767 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
45768 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45769 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
45770 | fi | |
45771 | ||
6671c68b VZ |
45772 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
45773 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45774 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
45775 | fi | |
45776 | ||
a848cd7e SC |
45777 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
45778 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45779 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
45780 | fi | |
45781 | ||
ceec2216 RL |
45782 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
45783 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45784 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
45785 | fi | |
45786 | ||
a848cd7e SC |
45787 | COND_MONOLITHIC_0_SHARED_1="#" |
45788 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
45789 | COND_MONOLITHIC_0_SHARED_1="" | |
45790 | fi | |
45791 | ||
45792 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
45793 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45794 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
45795 | fi | |
45796 | ||
90970d69 DE |
45797 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
45798 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45799 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
45800 | fi | |
45801 | ||
a848cd7e SC |
45802 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
45803 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45804 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
45805 | fi | |
45806 | ||
6671c68b VZ |
45807 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
45808 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45809 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
45810 | fi | |
45811 | ||
a848cd7e SC |
45812 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
45813 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45814 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
45815 | fi | |
45816 | ||
ceec2216 RL |
45817 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
45818 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45819 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
45820 | fi | |
45821 | ||
a848cd7e SC |
45822 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
45823 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45824 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
45825 | fi | |
45826 | ||
45827 | COND_MONOLITHIC_1="#" | |
45828 | if test "x$MONOLITHIC" = "x1" ; then | |
45829 | COND_MONOLITHIC_1="" | |
45830 | fi | |
45831 | ||
45832 | COND_MONOLITHIC_1_SHARED_0="#" | |
45833 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
45834 | COND_MONOLITHIC_1_SHARED_0="" | |
45835 | fi | |
45836 | ||
45837 | COND_MONOLITHIC_1_SHARED_1="#" | |
45838 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
45839 | COND_MONOLITHIC_1_SHARED_1="" | |
45840 | fi | |
45841 | ||
45842 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
45843 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45844 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
45845 | fi | |
45846 | ||
45847 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
45848 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45849 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
45850 | fi | |
45851 | ||
eb730a0c JS |
45852 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
45853 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45854 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
45855 | fi | |
45856 | ||
a848cd7e SC |
45857 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
45858 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45859 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
45860 | fi | |
45861 | ||
45862 | COND_PLATFORM_MACOSX_1="#" | |
45863 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
45864 | COND_PLATFORM_MACOSX_1="" | |
45865 | fi | |
45866 | ||
a30f955f VS |
45867 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
45868 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
45869 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
45870 | fi | |
45871 | ||
a848cd7e SC |
45872 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
45873 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
45874 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
45875 | fi | |
45876 | ||
45877 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
45878 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
45879 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
45880 | fi | |
45881 | ||
45882 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
45883 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
45884 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
45885 | fi | |
45886 | ||
fc480dc1 DE |
45887 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
45888 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45889 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
45890 | fi | |
45891 | ||
1e9e8aba DE |
45892 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
45893 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45894 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45895 | fi | |
45896 | ||
ebee3cd0 VS |
45897 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
45898 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
45899 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
45900 | fi | |
45901 | ||
45902 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
45903 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
45904 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
45905 | fi | |
45906 | ||
a848cd7e SC |
45907 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
45908 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45909 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
45910 | fi | |
45911 | ||
45912 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
45913 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45914 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
45915 | fi | |
45916 | ||
b48a2016 DE |
45917 | COND_PLATFORM_MACOS_1="#" |
45918 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
45919 | COND_PLATFORM_MACOS_1="" | |
45920 | fi | |
45921 | ||
083508af MW |
45922 | COND_PLATFORM_MAC_1="#" |
45923 | if test "x$PLATFORM_MAC" = "x1" ; then | |
45924 | COND_PLATFORM_MAC_1="" | |
45925 | fi | |
45926 | ||
83d8eb47 MW |
45927 | COND_PLATFORM_MSDOS_1="#" |
45928 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
45929 | COND_PLATFORM_MSDOS_1="" | |
45930 | fi | |
45931 | ||
a848cd7e SC |
45932 | COND_PLATFORM_OS2_1="#" |
45933 | if test "x$PLATFORM_OS2" = "x1" ; then | |
45934 | COND_PLATFORM_OS2_1="" | |
45935 | fi | |
45936 | ||
45937 | COND_PLATFORM_UNIX_0="#" | |
45938 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
45939 | COND_PLATFORM_UNIX_0="" | |
45940 | fi | |
45941 | ||
45942 | COND_PLATFORM_UNIX_1="#" | |
45943 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
45944 | COND_PLATFORM_UNIX_1="" | |
45945 | fi | |
45946 | ||
45947 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
45948 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45949 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
45950 | fi | |
45951 | ||
45952 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
45953 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
45954 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
45955 | fi | |
45956 | ||
45957 | COND_PLATFORM_WIN32_0="#" | |
45958 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
45959 | COND_PLATFORM_WIN32_0="" | |
45960 | fi | |
45961 | ||
45962 | COND_PLATFORM_WIN32_1="#" | |
45963 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
45964 | COND_PLATFORM_WIN32_1="" | |
45965 | fi | |
45966 | ||
45967 | COND_SHARED_0="#" | |
45968 | if test "x$SHARED" = "x0" ; then | |
45969 | COND_SHARED_0="" | |
45970 | fi | |
45971 | ||
083508af MW |
45972 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
45973 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
45974 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
45975 | fi | |
45976 | ||
45977 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
45978 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
45979 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
45980 | fi | |
45981 | ||
45982 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
45983 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
45984 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
45985 | fi | |
45986 | ||
a848cd7e SC |
45987 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
45988 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45989 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
45990 | fi | |
45991 | ||
45992 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45993 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45994 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45995 | fi | |
45996 | ||
45997 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45998 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45999 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
46000 | fi | |
46001 | ||
46002 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
46003 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
46004 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
46005 | fi | |
46006 | ||
083508af MW |
46007 | COND_SHARED_0_USE_XRC_1="#" |
46008 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
46009 | COND_SHARED_0_USE_XRC_1="" | |
46010 | fi | |
46011 | ||
a848cd7e SC |
46012 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
46013 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
46014 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
46015 | fi | |
46016 | ||
46017 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
46018 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
46019 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
46020 | fi | |
46021 | ||
46022 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
46023 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
46024 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
46025 | fi | |
46026 | ||
46027 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
46028 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
46029 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
46030 | fi | |
46031 | ||
46032 | COND_SHARED_1="#" | |
46033 | if test "x$SHARED" = "x1" ; then | |
46034 | COND_SHARED_1="" | |
46035 | fi | |
46036 | ||
46037 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
46038 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
46039 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
46040 | fi | |
46041 | ||
083508af MW |
46042 | COND_SHARED_1_USE_XRC_1="#" |
46043 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
46044 | COND_SHARED_1_USE_XRC_1="" | |
46045 | fi | |
46046 | ||
a30f955f VS |
46047 | COND_TOOLKIT_="#" |
46048 | if test "x$TOOLKIT" = "x" ; then | |
46049 | COND_TOOLKIT_="" | |
46050 | fi | |
46051 | ||
a848cd7e SC |
46052 | COND_TOOLKIT_COCOA="#" |
46053 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
46054 | COND_TOOLKIT_COCOA="" | |
46055 | fi | |
46056 | ||
a49baeab DE |
46057 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
46058 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
46059 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
46060 | fi | |
46061 | ||
a848cd7e SC |
46062 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
46063 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46064 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
46065 | fi | |
46066 | ||
46067 | COND_TOOLKIT_GTK="#" | |
46068 | if test "x$TOOLKIT" = "xGTK" ; then | |
46069 | COND_TOOLKIT_GTK="" | |
46070 | fi | |
46071 | ||
46072 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
46073 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
46074 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
46075 | fi | |
46076 | ||
46077 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
46078 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46079 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
46080 | fi | |
46081 | ||
46082 | COND_TOOLKIT_MAC="#" | |
46083 | if test "x$TOOLKIT" = "xMAC" ; then | |
46084 | COND_TOOLKIT_MAC="" | |
46085 | fi | |
46086 | ||
46087 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
46088 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
46089 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
46090 | fi | |
46091 | ||
46092 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
46093 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46094 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
46095 | fi | |
46096 | ||
46097 | COND_TOOLKIT_MGL="#" | |
46098 | if test "x$TOOLKIT" = "xMGL" ; then | |
46099 | COND_TOOLKIT_MGL="" | |
46100 | fi | |
46101 | ||
46102 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
46103 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
46104 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
46105 | fi | |
46106 | ||
46107 | COND_TOOLKIT_MOTIF="#" | |
46108 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
46109 | COND_TOOLKIT_MOTIF="" | |
46110 | fi | |
46111 | ||
46112 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
46113 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
46114 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
46115 | fi | |
46116 | ||
46117 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
46118 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46119 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
46120 | fi | |
46121 | ||
46122 | COND_TOOLKIT_MSW="#" | |
46123 | if test "x$TOOLKIT" = "xMSW" ; then | |
46124 | COND_TOOLKIT_MSW="" | |
46125 | fi | |
46126 | ||
46127 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
46128 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
46129 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
46130 | fi | |
46131 | ||
46132 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
46133 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46134 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
46135 | fi | |
46136 | ||
0ee4059d DE |
46137 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
46138 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
46139 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
46140 | fi | |
46141 | ||
a848cd7e SC |
46142 | COND_TOOLKIT_PM="#" |
46143 | if test "x$TOOLKIT" = "xPM" ; then | |
46144 | COND_TOOLKIT_PM="" | |
46145 | fi | |
46146 | ||
46147 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
46148 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
46149 | COND_TOOLKIT_PM_USE_GUI_1="" | |
46150 | fi | |
46151 | ||
46152 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
46153 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46154 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
46155 | fi | |
46156 | ||
3fd9c298 DE |
46157 | COND_TOOLKIT_WINCE="#" |
46158 | if test "x$TOOLKIT" = "xWINCE" ; then | |
46159 | COND_TOOLKIT_WINCE="" | |
46160 | fi | |
46161 | ||
46162 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
46163 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
46164 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
46165 | fi | |
46166 | ||
46167 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
46168 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46169 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
46170 | fi | |
46171 | ||
0ee4059d DE |
46172 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
46173 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
46174 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
46175 | fi | |
46176 | ||
a848cd7e SC |
46177 | COND_TOOLKIT_X11="#" |
46178 | if test "x$TOOLKIT" = "xX11" ; then | |
46179 | COND_TOOLKIT_X11="" | |
46180 | fi | |
46181 | ||
46182 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
46183 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
46184 | COND_TOOLKIT_X11_USE_GUI_1="" | |
46185 | fi | |
46186 | ||
46187 | COND_UNICODE_1="#" | |
46188 | if test "x$UNICODE" = "x1" ; then | |
46189 | COND_UNICODE_1="" | |
46190 | fi | |
46191 | ||
46192 | COND_USE_EXCEPTIONS_0="#" | |
46193 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
46194 | COND_USE_EXCEPTIONS_0="" | |
46195 | fi | |
46196 | ||
46197 | COND_USE_EXCEPTIONS_1="#" | |
46198 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
46199 | COND_USE_EXCEPTIONS_1="" | |
46200 | fi | |
46201 | ||
46202 | COND_USE_GUI_0="#" | |
46203 | if test "x$USE_GUI" = "x0" ; then | |
46204 | COND_USE_GUI_0="" | |
46205 | fi | |
46206 | ||
46207 | COND_USE_GUI_1="#" | |
46208 | if test "x$USE_GUI" = "x1" ; then | |
46209 | COND_USE_GUI_1="" | |
46210 | fi | |
46211 | ||
46212 | COND_USE_GUI_1_WXUNIV_0="#" | |
46213 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46214 | COND_USE_GUI_1_WXUNIV_0="" | |
46215 | fi | |
46216 | ||
46217 | COND_USE_GUI_1_WXUNIV_1="#" | |
46218 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
46219 | COND_USE_GUI_1_WXUNIV_1="" | |
46220 | fi | |
46221 | ||
46222 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
46223 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
46224 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
46225 | fi | |
46226 | ||
46227 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
46228 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
46229 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
46230 | fi | |
46231 | ||
46232 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
46233 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
46234 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
46235 | fi | |
46236 | ||
083508af MW |
46237 | COND_USE_ODBC_1="#" |
46238 | if test "x$USE_ODBC" = "x1" ; then | |
46239 | COND_USE_ODBC_1="" | |
46240 | fi | |
46241 | ||
46242 | COND_USE_OPENGL_1="#" | |
46243 | if test "x$USE_OPENGL" = "x1" ; then | |
46244 | COND_USE_OPENGL_1="" | |
46245 | fi | |
46246 | ||
a848cd7e SC |
46247 | COND_USE_PLUGINS_0="#" |
46248 | if test "x$USE_PLUGINS" = "x0" ; then | |
46249 | COND_USE_PLUGINS_0="" | |
46250 | fi | |
46251 | ||
0b78747f MW |
46252 | COND_USE_RTTI_0="#" |
46253 | if test "x$USE_RTTI" = "x0" ; then | |
46254 | COND_USE_RTTI_0="" | |
46255 | fi | |
46256 | ||
46257 | COND_USE_RTTI_1="#" | |
46258 | if test "x$USE_RTTI" = "x1" ; then | |
46259 | COND_USE_RTTI_1="" | |
46260 | fi | |
46261 | ||
a848cd7e SC |
46262 | COND_USE_SOSYMLINKS_1="#" |
46263 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
46264 | COND_USE_SOSYMLINKS_1="" | |
46265 | fi | |
46266 | ||
eb730a0c JS |
46267 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
46268 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
46269 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
46270 | fi | |
46271 | ||
a848cd7e SC |
46272 | COND_USE_SOVERLINUX_1="#" |
46273 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
46274 | COND_USE_SOVERLINUX_1="" | |
46275 | fi | |
46276 | ||
46277 | COND_USE_SOVERSION_0="#" | |
46278 | if test "x$USE_SOVERSION" = "x0" ; then | |
46279 | COND_USE_SOVERSION_0="" | |
46280 | fi | |
46281 | ||
46282 | COND_USE_SOVERSOLARIS_1="#" | |
46283 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
46284 | COND_USE_SOVERSOLARIS_1="" | |
46285 | fi | |
46286 | ||
0b78747f MW |
46287 | COND_USE_THREADS_0="#" |
46288 | if test "x$USE_THREADS" = "x0" ; then | |
46289 | COND_USE_THREADS_0="" | |
46290 | fi | |
46291 | ||
46292 | COND_USE_THREADS_1="#" | |
46293 | if test "x$USE_THREADS" = "x1" ; then | |
46294 | COND_USE_THREADS_1="" | |
46295 | fi | |
46296 | ||
a13a7f89 RL |
46297 | COND_USE_XRC_1="#" |
46298 | if test "x$USE_XRC" = "x1" ; then | |
46299 | COND_USE_XRC_1="" | |
46300 | fi | |
46301 | ||
eb730a0c JS |
46302 | COND_WINDOWS_IMPLIB_1="#" |
46303 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
46304 | COND_WINDOWS_IMPLIB_1="" | |
46305 | fi | |
46306 | ||
a848cd7e SC |
46307 | COND_WITH_PLUGIN_SDL_1="#" |
46308 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
46309 | COND_WITH_PLUGIN_SDL_1="" | |
46310 | fi | |
46311 | ||
1e6eb025 VZ |
46312 | COND_WXUNIV_0="#" |
46313 | if test "x$WXUNIV" = "x0" ; then | |
46314 | COND_WXUNIV_0="" | |
46315 | fi | |
46316 | ||
a848cd7e SC |
46317 | COND_WXUNIV_1="#" |
46318 | if test "x$WXUNIV" = "x1" ; then | |
46319 | COND_WXUNIV_1="" | |
46320 | fi | |
46321 | ||
46322 | COND_WXUSE_EXPAT_BUILTIN="#" | |
46323 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
46324 | COND_WXUSE_EXPAT_BUILTIN="" | |
46325 | fi | |
46326 | ||
46327 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
46328 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
46329 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
46330 | fi | |
46331 | ||
46332 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
46333 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
46334 | COND_WXUSE_LIBPNG_BUILTIN="" | |
46335 | fi | |
46336 | ||
46337 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
46338 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
46339 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
46340 | fi | |
46341 | ||
46342 | COND_WXUSE_ODBC_BUILTIN="#" | |
46343 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
46344 | COND_WXUSE_ODBC_BUILTIN="" | |
46345 | fi | |
46346 | ||
46347 | COND_WXUSE_REGEX_BUILTIN="#" | |
46348 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
46349 | COND_WXUSE_REGEX_BUILTIN="" | |
46350 | fi | |
46351 | ||
46352 | COND_WXUSE_ZLIB_BUILTIN="#" | |
46353 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
46354 | COND_WXUSE_ZLIB_BUILTIN="" | |
46355 | fi | |
46356 | ||
46357 | ||
46358 | ||
810b94f0 MW |
46359 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
46360 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 | |
46361 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
46362 | { (exit 1); exit 1; }; } | |
46363 | fi | |
46364 | ||
2057db16 VS |
46365 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
46366 | { { 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 | |
46367 | 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;} | |
46368 | { (exit 1); exit 1; }; } | |
46369 | fi | |
46370 | ||
a848cd7e | 46371 | |
ceec2216 RL |
46372 | if test "$wxUSE_SHARED" = "yes"; then |
46373 | ||
46374 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
46375 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
46376 | ||
5b674b9d DE |
46377 | case "${host}" in |
46378 | *-pc-os2_emx | *-pc-os2-emx ) | |
46379 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
46380 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
46381 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
46382 | cp -p ${srcdir}/src/os2/dllar.sh . | |
46383 | ;; | |
46384 | esac | |
ceec2216 RL |
46385 | else |
46386 | ||
46387 | EXE_LINKER="$CXX -o" | |
46388 | ||
46389 | fi | |
69120ee4 VZ |
46390 | if test "$wxUSE_OMF" = "yes"; then |
46391 | case "${host}" in | |
46392 | *-pc-os2_emx | *-pc-os2-emx ) | |
46393 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
46394 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
46395 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
46396 | ;; | |
46397 | esac | |
46398 | fi | |
a848cd7e | 46399 | |
c08ebc62 | 46400 | if test $GCC_PCH = 1 ; then |
254e8e29 | 46401 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 46402 | fi |
a848cd7e | 46403 | |
2eef8513 | 46404 | CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
46405 | |
46406 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
46407 | ||
46408 | ||
46409 | ||
46410 | ||
46411 | ||
46412 | ||
46413 | ||
46414 | ||
46415 | ||
46416 | ||
46417 | ||
46418 | ||
46419 | ||
46420 | ||
46421 | ||
46422 | ||
46423 | ||
46424 | ||
46425 | ||
46426 | ||
46427 | ||
46428 | ||
46429 | ||
46430 | ||
46431 | ||
46432 | ||
46433 | ||
46434 | ||
46435 | ||
46436 | ||
46437 | ||
46438 | ||
46439 | ||
46440 | ||
46441 | ||
46442 | ||
46443 | ||
46444 | ||
46445 | ||
46446 | ||
46447 | ||
46448 | ||
a848cd7e SC |
46449 | |
46450 | ||
46451 | ||
46452 | ||
46453 | ||
46454 | ||
46455 | ||
46456 | ||
46457 | ||
46458 | ||
46459 | ||
46460 | ||
46461 | ||
46462 | ||
46463 | ||
46464 | ||
46465 | ||
46466 | ||
ddd14b14 | 46467 | |
a848cd7e SC |
46468 | |
46469 | ||
46470 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
46471 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 46472 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
46473 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
46474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46475 | else | |
46476 | cat >conftest.make <<\_ACEOF | |
46477 | all: | |
46478 | @echo 'ac_maketemp="$(MAKE)"' | |
46479 | _ACEOF | |
46480 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
46481 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
46482 | if test -n "$ac_maketemp"; then | |
46483 | eval ac_cv_prog_make_${ac_make}_set=yes | |
46484 | else | |
46485 | eval ac_cv_prog_make_${ac_make}_set=no | |
46486 | fi | |
46487 | rm -f conftest.make | |
46488 | fi | |
46489 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46490 | echo "$as_me:$LINENO: result: yes" >&5 | |
46491 | echo "${ECHO_T}yes" >&6 | |
46492 | SET_MAKE= | |
46493 | else | |
46494 | echo "$as_me:$LINENO: result: no" >&5 | |
46495 | echo "${ECHO_T}no" >&6 | |
46496 | SET_MAKE="MAKE=${MAKE-make}" | |
46497 | fi | |
46498 | ||
46499 | ||
a848cd7e | 46500 | |
ceec2216 RL |
46501 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
46502 | ||
a848cd7e | 46503 | |
ceec2216 | 46504 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 46505 | |
a848cd7e | 46506 | |
ceec2216 | 46507 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 46508 | |
ceec2216 RL |
46509 | |
46510 | ac_config_files="$ac_config_files version-script Makefile" | |
46511 | ||
46512 | ||
46513 | ac_config_commands="$ac_config_commands wx-config | |
46514 | " | |
a848cd7e SC |
46515 | |
46516 | ||
9103d280 | 46517 | |
1c14217d | 46518 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
46519 | if test "$wxUSE_GUI" = "yes"; then |
46520 | SUBDIRS="samples demos utils contrib" | |
46521 | else SUBDIRS="samples utils" | |
46522 | fi | |
46523 | ||
46524 | ||
46525 | ||
46526 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
46527 | if test "${with_cppunit_prefix+set}" = set; then | |
46528 | withval="$with_cppunit_prefix" | |
46529 | cppunit_config_prefix="$withval" | |
46530 | else | |
46531 | cppunit_config_prefix="" | |
46532 | fi; | |
46533 | ||
46534 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
46535 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
46536 | withval="$with_cppunit_exec_prefix" | |
46537 | cppunit_config_exec_prefix="$withval" | |
46538 | else | |
46539 | cppunit_config_exec_prefix="" | |
46540 | fi; | |
46541 | ||
46542 | if test x$cppunit_config_exec_prefix != x ; then | |
46543 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
46544 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
46545 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
46546 | fi | |
46547 | fi | |
46548 | if test x$cppunit_config_prefix != x ; then | |
46549 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
46550 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
46551 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
46552 | fi | |
46553 | fi | |
46554 | ||
46555 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
46556 | set dummy cppunit-config; ac_word=$2 | |
46557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46559 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
46560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46561 | else | |
46562 | case $CPPUNIT_CONFIG in | |
46563 | [\\/]* | ?:[\\/]*) | |
46564 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
46565 | ;; | |
46566 | *) | |
46567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46568 | for as_dir in $PATH | |
46569 | do | |
46570 | IFS=$as_save_IFS | |
46571 | test -z "$as_dir" && as_dir=. | |
46572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46574 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
46575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46576 | break 2 | |
46577 | fi | |
46578 | done | |
46579 | done | |
46580 | ||
46581 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
46582 | ;; | |
46583 | esac | |
46584 | fi | |
46585 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
46586 | ||
46587 | if test -n "$CPPUNIT_CONFIG"; then | |
46588 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
46589 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
46590 | else | |
46591 | echo "$as_me:$LINENO: result: no" >&5 | |
46592 | echo "${ECHO_T}no" >&6 | |
46593 | fi | |
46594 | ||
46595 | cppunit_version_min=1.8.0 | |
46596 | ||
46597 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
46598 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
46599 | no_cppunit="" | |
46600 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
46601 | no_cppunit=yes | |
46602 | else | |
46603 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
46604 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
46605 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
46606 | ||
46607 | cppunit_major_version=`echo $cppunit_version | \ | |
46608 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
46609 | cppunit_minor_version=`echo $cppunit_version | \ | |
46610 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
46611 | cppunit_micro_version=`echo $cppunit_version | \ | |
46612 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
46613 | ||
46614 | cppunit_major_min=`echo $cppunit_version_min | \ | |
46615 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
46616 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
46617 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
46618 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
46619 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
46620 | ||
46621 | cppunit_version_proper=`expr \ | |
46622 | $cppunit_major_version \> $cppunit_major_min \| \ | |
46623 | $cppunit_major_version \= $cppunit_major_min \& \ | |
46624 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
46625 | $cppunit_major_version \= $cppunit_major_min \& \ | |
46626 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
46627 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
46628 | ||
46629 | if test "$cppunit_version_proper" = "1" ; then | |
46630 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
46631 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
46632 | else | |
46633 | echo "$as_me:$LINENO: result: no" >&5 | |
46634 | echo "${ECHO_T}no" >&6 | |
46635 | no_cppunit=yes | |
46636 | fi | |
46637 | fi | |
46638 | ||
46639 | if test "x$no_cppunit" = x ; then | |
c2218763 | 46640 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
46641 | else |
46642 | CPPUNIT_CFLAGS="" | |
46643 | CPPUNIT_LIBS="" | |
c2218763 | 46644 | : |
a848cd7e SC |
46645 | fi |
46646 | ||
46647 | ||
46648 | ||
46649 | ||
46650 | ||
46651 | for subdir in `echo $SUBDIRS`; do | |
46652 | if test -d ${srcdir}/${subdir} ; then | |
46653 | if test "$wxUSE_GUI" = "yes"; then | |
46654 | if test ${subdir} = "samples"; then | |
46655 | makefiles="samples/Makefile.in $makefiles" | |
46656 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
46657 | if test -d $srcdir/samples/$sample; then | |
46658 | makefiles="samples/$sample/Makefile.in $makefiles" | |
46659 | fi | |
46660 | done | |
9c112555 MW |
46661 | else |
46662 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
46663 | eval "disabled=\$$disabled_var" | |
46664 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
46665 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
46666 | fi |
46667 | else if test ${subdir} = "samples"; then | |
46668 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
46669 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
46670 | makefiles="" |
46671 | for util in HelpGen tex2rtf ; do | |
46672 | if test -d $srcdir/utils/$util ; then | |
46673 | makefiles="utils/$util/Makefile.in \ | |
46674 | utils/$util/src/Makefile.in \ | |
46675 | $makefiles" | |
46676 | fi | |
46677 | done | |
a848cd7e SC |
46678 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
46679 | fi | |
46680 | fi | |
46681 | ||
46682 | for mkin in $makefiles ; do | |
46683 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
46684 | ac_config_files="$ac_config_files $mk" | |
46685 | ||
46686 | done | |
46687 | fi | |
46688 | done | |
1c14217d | 46689 | fi |
a848cd7e SC |
46690 | cat >confcache <<\_ACEOF |
46691 | # This file is a shell script that caches the results of configure | |
46692 | # tests run on this system so they can be shared between configure | |
46693 | # scripts and configure runs, see configure's option --config-cache. | |
46694 | # It is not useful on other systems. If it contains results you don't | |
46695 | # want to keep, you may remove or edit it. | |
46696 | # | |
46697 | # config.status only pays attention to the cache file if you give it | |
46698 | # the --recheck option to rerun configure. | |
46699 | # | |
46700 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
46701 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
46702 | # following values. | |
46703 | ||
46704 | _ACEOF | |
46705 | ||
46706 | # The following way of writing the cache mishandles newlines in values, | |
46707 | # but we know of no workaround that is simple, portable, and efficient. | |
46708 | # So, don't put newlines in cache variables' values. | |
46709 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
46710 | # and sets the high bit in the cache file unless we assign to the vars. | |
46711 | { | |
46712 | (set) 2>&1 | | |
46713 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
46714 | *ac_space=\ *) | |
46715 | # `set' does not quote correctly, so add quotes (double-quote | |
46716 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
46717 | sed -n \ | |
ac1cb8d3 VS |
46718 | "s/'/'\\\\''/g; |
46719 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
46720 | ;; |
46721 | *) | |
46722 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
46723 | sed -n \ | |
ac1cb8d3 | 46724 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
46725 | ;; |
46726 | esac; | |
46727 | } | | |
46728 | sed ' | |
46729 | t clear | |
46730 | : clear | |
46731 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
46732 | t end | |
46733 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
46734 | : end' >>confcache | |
46735 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
46736 | if test -w $cache_file; then | |
46737 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
46738 | cat confcache >$cache_file | |
46739 | else | |
46740 | echo "not updating unwritable cache $cache_file" | |
46741 | fi | |
46742 | fi | |
46743 | rm -f confcache | |
46744 | ||
46745 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
46746 | # Let make expand exec_prefix. | |
46747 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
46748 | ||
46749 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
46750 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
46751 | # trailing colons and then remove the whole line if VPATH becomes empty | |
46752 | # (actually we leave an empty line to preserve line numbers). | |
46753 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 46754 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
46755 | s/:*\$(srcdir):*/:/; |
46756 | s/:*\${srcdir}:*/:/; | |
46757 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 46758 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 46759 | s/:*$//; |
ac1cb8d3 | 46760 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
46761 | }' |
46762 | fi | |
46763 | ||
46764 | DEFS=-DHAVE_CONFIG_H | |
46765 | ||
46766 | ac_libobjs= | |
46767 | ac_ltlibobjs= | |
46768 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
46769 | # 1. Remove the extension, and $U if already installed. | |
46770 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 46771 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
46772 | # 2. Add them. |
46773 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
46774 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
46775 | done | |
46776 | LIBOBJS=$ac_libobjs | |
46777 | ||
46778 | LTLIBOBJS=$ac_ltlibobjs | |
46779 | ||
46780 | ||
46781 | ||
46782 | : ${CONFIG_STATUS=./config.status} | |
46783 | ac_clean_files_save=$ac_clean_files | |
46784 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
46785 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
46786 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
46787 | cat >$CONFIG_STATUS <<_ACEOF | |
46788 | #! $SHELL | |
46789 | # Generated by $as_me. | |
46790 | # Run this file to recreate the current configuration. | |
46791 | # Compiler output produced by configure, useful for debugging | |
46792 | # configure, is in config.log if it exists. | |
46793 | ||
46794 | debug=false | |
46795 | ac_cs_recheck=false | |
46796 | ac_cs_silent=false | |
46797 | SHELL=\${CONFIG_SHELL-$SHELL} | |
46798 | _ACEOF | |
46799 | ||
46800 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46801 | ## --------------------- ## | |
46802 | ## M4sh Initialization. ## | |
46803 | ## --------------------- ## | |
46804 | ||
46805 | # Be Bourne compatible | |
46806 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
46807 | emulate sh | |
46808 | NULLCMD=: | |
46809 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
46810 | # is contrary to our usage. Disable this feature. | |
46811 | alias -g '${1+"$@"}'='"$@"' | |
46812 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
46813 | set -o posix | |
46814 | fi | |
ac1cb8d3 | 46815 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
46816 | |
46817 | # Support unset when possible. | |
ac1cb8d3 | 46818 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
46819 | as_unset=unset |
46820 | else | |
46821 | as_unset=false | |
46822 | fi | |
46823 | ||
46824 | ||
46825 | # Work around bugs in pre-3.0 UWIN ksh. | |
46826 | $as_unset ENV MAIL MAILPATH | |
46827 | PS1='$ ' | |
46828 | PS2='> ' | |
46829 | PS4='+ ' | |
46830 | ||
46831 | # NLS nuisances. | |
46832 | for as_var in \ | |
46833 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
46834 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
46835 | LC_TELEPHONE LC_TIME | |
46836 | do | |
ac1cb8d3 | 46837 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
46838 | eval $as_var=C; export $as_var |
46839 | else | |
46840 | $as_unset $as_var | |
46841 | fi | |
46842 | done | |
46843 | ||
46844 | # Required to use basename. | |
46845 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46846 | as_expr=expr | |
46847 | else | |
46848 | as_expr=false | |
46849 | fi | |
46850 | ||
46851 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
46852 | as_basename=basename | |
46853 | else | |
46854 | as_basename=false | |
46855 | fi | |
46856 | ||
46857 | ||
46858 | # Name of the executable. | |
46859 | as_me=`$as_basename "$0" || | |
46860 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
46861 | X"$0" : 'X\(//\)$' \| \ | |
46862 | X"$0" : 'X\(/\)$' \| \ | |
46863 | . : '\(.\)' 2>/dev/null || | |
46864 | echo X/"$0" | | |
46865 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
46866 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
46867 | /^X\/\(\/\).*/{ s//\1/; q; } | |
46868 | s/.*/./; q'` | |
46869 | ||
46870 | ||
46871 | # PATH needs CR, and LINENO needs CR and PATH. | |
46872 | # Avoid depending upon Character Ranges. | |
46873 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
46874 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
46875 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
46876 | as_cr_digits='0123456789' | |
46877 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
46878 | ||
46879 | # The user is always right. | |
46880 | if test "${PATH_SEPARATOR+set}" != set; then | |
46881 | echo "#! /bin/sh" >conf$$.sh | |
46882 | echo "exit 0" >>conf$$.sh | |
46883 | chmod +x conf$$.sh | |
46884 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46885 | PATH_SEPARATOR=';' | |
46886 | else | |
46887 | PATH_SEPARATOR=: | |
46888 | fi | |
46889 | rm -f conf$$.sh | |
46890 | fi | |
46891 | ||
46892 | ||
46893 | as_lineno_1=$LINENO | |
46894 | as_lineno_2=$LINENO | |
46895 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46896 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46897 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
46898 | # Find who we are. Look in the path if we contain no path at all | |
46899 | # relative or not. | |
46900 | case $0 in | |
46901 | *[\\/]* ) as_myself=$0 ;; | |
46902 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46903 | for as_dir in $PATH | |
46904 | do | |
46905 | IFS=$as_save_IFS | |
46906 | test -z "$as_dir" && as_dir=. | |
46907 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
46908 | done | |
46909 | ||
46910 | ;; | |
46911 | esac | |
46912 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
46913 | # in which case we are not to be found in the path. | |
46914 | if test "x$as_myself" = x; then | |
46915 | as_myself=$0 | |
46916 | fi | |
46917 | if test ! -f "$as_myself"; then | |
46918 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
46919 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
46920 | { (exit 1); exit 1; }; } | |
46921 | fi | |
46922 | case $CONFIG_SHELL in | |
46923 | '') | |
46924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46925 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
46926 | do | |
46927 | IFS=$as_save_IFS | |
46928 | test -z "$as_dir" && as_dir=. | |
46929 | for as_base in sh bash ksh sh5; do | |
46930 | case $as_dir in | |
46931 | /*) | |
46932 | if ("$as_dir/$as_base" -c ' | |
46933 | as_lineno_1=$LINENO | |
46934 | as_lineno_2=$LINENO | |
46935 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46936 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46937 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
46938 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
46939 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
46940 | CONFIG_SHELL=$as_dir/$as_base | |
46941 | export CONFIG_SHELL | |
46942 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
46943 | fi;; | |
46944 | esac | |
46945 | done | |
46946 | done | |
46947 | ;; | |
46948 | esac | |
46949 | ||
46950 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
46951 | # uniformly replaced by the line number. The first 'sed' inserts a | |
46952 | # line-number line before each line; the second 'sed' does the real | |
46953 | # work. The second script uses 'N' to pair each line-number line | |
46954 | # with the numbered line, and appends trailing '-' during | |
46955 | # substitution so that $LINENO is not a special case at line end. | |
46956 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
46957 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
46958 | sed '=' <$as_myself | | |
46959 | sed ' | |
46960 | N | |
46961 | s,$,-, | |
46962 | : loop | |
46963 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
46964 | t loop | |
46965 | s,-$,, | |
46966 | s,^['$as_cr_digits']*\n,, | |
46967 | ' >$as_me.lineno && | |
46968 | chmod +x $as_me.lineno || | |
46969 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
46970 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
46971 | { (exit 1); exit 1; }; } | |
46972 | ||
46973 | # Don't try to exec as it changes $[0], causing all sort of problems | |
46974 | # (the dirname of $[0] is not the place where we might find the | |
46975 | # original and so on. Autoconf is especially sensible to this). | |
46976 | . ./$as_me.lineno | |
46977 | # Exit status is that of the last command. | |
46978 | exit | |
46979 | } | |
46980 | ||
46981 | ||
46982 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
46983 | *c*,-n*) ECHO_N= ECHO_C=' | |
46984 | ' ECHO_T=' ' ;; | |
46985 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
46986 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
46987 | esac | |
46988 | ||
46989 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46990 | as_expr=expr | |
46991 | else | |
46992 | as_expr=false | |
46993 | fi | |
46994 | ||
46995 | rm -f conf$$ conf$$.exe conf$$.file | |
46996 | echo >conf$$.file | |
46997 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
46998 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46999 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
47000 | if test -f conf$$.exe; then | |
47001 | # Don't use ln at all; we don't have any links | |
47002 | as_ln_s='cp -p' | |
47003 | else | |
47004 | as_ln_s='ln -s' | |
47005 | fi | |
47006 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
47007 | as_ln_s=ln | |
47008 | else | |
47009 | as_ln_s='cp -p' | |
47010 | fi | |
47011 | rm -f conf$$ conf$$.exe conf$$.file | |
47012 | ||
47013 | if mkdir -p . 2>/dev/null; then | |
47014 | as_mkdir_p=: | |
47015 | else | |
ac1cb8d3 | 47016 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
47017 | as_mkdir_p=false |
47018 | fi | |
47019 | ||
47020 | as_executable_p="test -f" | |
47021 | ||
47022 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 47023 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
47024 | |
47025 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 47026 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
47027 | |
47028 | ||
47029 | # IFS | |
47030 | # We need space, tab and new line, in precisely that order. | |
47031 | as_nl=' | |
47032 | ' | |
47033 | IFS=" $as_nl" | |
47034 | ||
47035 | # CDPATH. | |
47036 | $as_unset CDPATH | |
47037 | ||
47038 | exec 6>&1 | |
47039 | ||
47040 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
47041 | # report actual input values of CONFIG_FILES etc. instead of their | |
47042 | # values after options handling. Logging --version etc. is OK. | |
47043 | exec 5>>config.log | |
47044 | { | |
47045 | echo | |
47046 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
47047 | ## Running $as_me. ## | |
47048 | _ASBOX | |
47049 | } >&5 | |
47050 | cat >&5 <<_CSEOF | |
47051 | ||
dd8df4fc | 47052 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 47053 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
47054 | |
47055 | CONFIG_FILES = $CONFIG_FILES | |
47056 | CONFIG_HEADERS = $CONFIG_HEADERS | |
47057 | CONFIG_LINKS = $CONFIG_LINKS | |
47058 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
47059 | $ $0 $@ | |
47060 | ||
47061 | _CSEOF | |
47062 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
47063 | echo >&5 | |
47064 | _ACEOF | |
47065 | ||
47066 | # Files that config.status was made for. | |
47067 | if test -n "$ac_config_files"; then | |
47068 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
47069 | fi | |
47070 | ||
47071 | if test -n "$ac_config_headers"; then | |
47072 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
47073 | fi | |
47074 | ||
47075 | if test -n "$ac_config_links"; then | |
47076 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
47077 | fi | |
47078 | ||
47079 | if test -n "$ac_config_commands"; then | |
47080 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
47081 | fi | |
47082 | ||
47083 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47084 | ||
47085 | ac_cs_usage="\ | |
47086 | \`$as_me' instantiates files from templates according to the | |
47087 | current configuration. | |
47088 | ||
47089 | Usage: $0 [OPTIONS] [FILE]... | |
47090 | ||
47091 | -h, --help print this help, then exit | |
47092 | -V, --version print version number, then exit | |
47093 | -q, --quiet do not print progress messages | |
47094 | -d, --debug don't remove temporary files | |
47095 | --recheck update $as_me by reconfiguring in the same conditions | |
47096 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 47097 | instantiate the configuration file FILE |
a848cd7e | 47098 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 47099 | instantiate the configuration header FILE |
a848cd7e SC |
47100 | |
47101 | Configuration files: | |
47102 | $config_files | |
47103 | ||
47104 | Configuration headers: | |
47105 | $config_headers | |
47106 | ||
47107 | Configuration commands: | |
47108 | $config_commands | |
47109 | ||
47110 | Report bugs to <bug-autoconf@gnu.org>." | |
47111 | _ACEOF | |
47112 | ||
47113 | cat >>$CONFIG_STATUS <<_ACEOF | |
47114 | ac_cs_version="\\ | |
dd8df4fc | 47115 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 47116 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
47117 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
47118 | ||
ac1cb8d3 | 47119 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
47120 | This config.status script is free software; the Free Software Foundation |
47121 | gives unlimited permission to copy, distribute and modify it." | |
47122 | srcdir=$srcdir | |
47123 | INSTALL="$INSTALL" | |
47124 | _ACEOF | |
47125 | ||
47126 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47127 | # If no file are specified by the user, then we need to provide default | |
47128 | # value. By we need to know if files were specified by the user. | |
47129 | ac_need_defaults=: | |
47130 | while test $# != 0 | |
47131 | do | |
47132 | case $1 in | |
47133 | --*=*) | |
47134 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
47135 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
47136 | ac_shift=: | |
47137 | ;; | |
47138 | -*) | |
47139 | ac_option=$1 | |
47140 | ac_optarg=$2 | |
47141 | ac_shift=shift | |
47142 | ;; | |
47143 | *) # This is not an option, so the user has probably given explicit | |
47144 | # arguments. | |
47145 | ac_option=$1 | |
47146 | ac_need_defaults=false;; | |
47147 | esac | |
47148 | ||
47149 | case $ac_option in | |
47150 | # Handling of the options. | |
47151 | _ACEOF | |
47152 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47153 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
47154 | ac_cs_recheck=: ;; | |
47155 | --version | --vers* | -V ) | |
47156 | echo "$ac_cs_version"; exit 0 ;; | |
47157 | --he | --h) | |
47158 | # Conflict between --help and --header | |
47159 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
47160 | Try \`$0 --help' for more information." >&5 | |
47161 | echo "$as_me: error: ambiguous option: $1 | |
47162 | Try \`$0 --help' for more information." >&2;} | |
47163 | { (exit 1); exit 1; }; };; | |
47164 | --help | --hel | -h ) | |
47165 | echo "$ac_cs_usage"; exit 0 ;; | |
47166 | --debug | --d* | -d ) | |
47167 | debug=: ;; | |
47168 | --file | --fil | --fi | --f ) | |
47169 | $ac_shift | |
47170 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
47171 | ac_need_defaults=false;; | |
47172 | --header | --heade | --head | --hea ) | |
47173 | $ac_shift | |
47174 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
47175 | ac_need_defaults=false;; | |
47176 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
47177 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
47178 | ac_cs_silent=: ;; | |
47179 | ||
47180 | # This is an error. | |
47181 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
47182 | Try \`$0 --help' for more information." >&5 | |
47183 | echo "$as_me: error: unrecognized option: $1 | |
47184 | Try \`$0 --help' for more information." >&2;} | |
47185 | { (exit 1); exit 1; }; } ;; | |
47186 | ||
47187 | *) ac_config_targets="$ac_config_targets $1" ;; | |
47188 | ||
47189 | esac | |
47190 | shift | |
47191 | done | |
47192 | ||
47193 | ac_configure_extra_args= | |
47194 | ||
47195 | if $ac_cs_silent; then | |
47196 | exec 6>/dev/null | |
47197 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
47198 | fi | |
47199 | ||
47200 | _ACEOF | |
47201 | cat >>$CONFIG_STATUS <<_ACEOF | |
47202 | if \$ac_cs_recheck; then | |
47203 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
47204 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
47205 | fi | |
47206 | ||
47207 | _ACEOF | |
47208 | ||
47209 | cat >>$CONFIG_STATUS <<_ACEOF | |
47210 | # | |
47211 | # INIT-COMMANDS section. | |
47212 | # | |
47213 | ||
ceec2216 RL |
47214 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
47215 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
47216 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
47217 | LN_S="${LN_S}" | |
a848cd7e SC |
47218 | |
47219 | ||
47220 | _ACEOF | |
47221 | ||
47222 | ||
47223 | ||
47224 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47225 | for ac_config_target in $ac_config_targets | |
47226 | do | |
47227 | case "$ac_config_target" in | |
47228 | # Handling of arguments. | |
ceec2216 RL |
47229 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
47230 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
47231 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
47232 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
47233 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
47234 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
47235 | "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 |
47236 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
47237 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
47238 | { (exit 1); exit 1; }; };; | |
47239 | esac | |
47240 | done | |
47241 | ||
47242 | # If the user did not use the arguments to specify the items to instantiate, | |
47243 | # then the envvar interface is used. Set only those that are not. | |
47244 | # We use the long form for the default assignment because of an extremely | |
47245 | # bizarre bug on SunOS 4.1.3. | |
47246 | if $ac_need_defaults; then | |
47247 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
47248 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
47249 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
47250 | fi | |
47251 | ||
47252 | # Have a temporary directory for convenience. Make it in the build tree | |
47253 | # simply because there is no reason to put it here, and in addition, | |
47254 | # creating and moving files from /tmp can sometimes cause problems. | |
47255 | # Create a temporary directory, and hook for its removal unless debugging. | |
47256 | $debug || | |
47257 | { | |
47258 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
47259 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
47260 | } | |
47261 | ||
47262 | # Create a (secure) tmp directory for tmp files. | |
47263 | ||
47264 | { | |
47265 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
47266 | test -n "$tmp" && test -d "$tmp" | |
47267 | } || | |
47268 | { | |
47269 | tmp=./confstat$$-$RANDOM | |
47270 | (umask 077 && mkdir $tmp) | |
47271 | } || | |
47272 | { | |
47273 | echo "$me: cannot create a temporary directory in ." >&2 | |
47274 | { (exit 1); exit 1; } | |
47275 | } | |
47276 | ||
47277 | _ACEOF | |
47278 | ||
47279 | cat >>$CONFIG_STATUS <<_ACEOF | |
47280 | ||
47281 | # | |
47282 | # CONFIG_FILES section. | |
47283 | # | |
47284 | ||
47285 | # No need to generate the scripts if there are no CONFIG_FILES. | |
47286 | # This happens for instance when ./config.status config.h | |
47287 | if test -n "\$CONFIG_FILES"; then | |
47288 | # Protect against being on the right side of a sed subst in config.status. | |
47289 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
47290 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
47291 | s,@SHELL@,$SHELL,;t t | |
47292 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
47293 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
47294 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
47295 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
47296 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
47297 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
47298 | s,@exec_prefix@,$exec_prefix,;t t | |
47299 | s,@prefix@,$prefix,;t t | |
47300 | s,@program_transform_name@,$program_transform_name,;t t | |
47301 | s,@bindir@,$bindir,;t t | |
47302 | s,@sbindir@,$sbindir,;t t | |
47303 | s,@libexecdir@,$libexecdir,;t t | |
47304 | s,@datadir@,$datadir,;t t | |
47305 | s,@sysconfdir@,$sysconfdir,;t t | |
47306 | s,@sharedstatedir@,$sharedstatedir,;t t | |
47307 | s,@localstatedir@,$localstatedir,;t t | |
47308 | s,@libdir@,$libdir,;t t | |
47309 | s,@includedir@,$includedir,;t t | |
47310 | s,@oldincludedir@,$oldincludedir,;t t | |
47311 | s,@infodir@,$infodir,;t t | |
47312 | s,@mandir@,$mandir,;t t | |
47313 | s,@build_alias@,$build_alias,;t t | |
47314 | s,@host_alias@,$host_alias,;t t | |
47315 | s,@target_alias@,$target_alias,;t t | |
47316 | s,@DEFS@,$DEFS,;t t | |
47317 | s,@ECHO_C@,$ECHO_C,;t t | |
47318 | s,@ECHO_N@,$ECHO_N,;t t | |
47319 | s,@ECHO_T@,$ECHO_T,;t t | |
47320 | s,@LIBS@,$LIBS,;t t | |
47321 | s,@build@,$build,;t t | |
47322 | s,@build_cpu@,$build_cpu,;t t | |
47323 | s,@build_vendor@,$build_vendor,;t t | |
47324 | s,@build_os@,$build_os,;t t | |
47325 | s,@host@,$host,;t t | |
47326 | s,@host_cpu@,$host_cpu,;t t | |
47327 | s,@host_vendor@,$host_vendor,;t t | |
47328 | s,@host_os@,$host_os,;t t | |
47329 | s,@target@,$target,;t t | |
47330 | s,@target_cpu@,$target_cpu,;t t | |
47331 | s,@target_vendor@,$target_vendor,;t t | |
47332 | s,@target_os@,$target_os,;t t | |
47333 | s,@CC@,$CC,;t t | |
47334 | s,@CFLAGS@,$CFLAGS,;t t | |
47335 | s,@LDFLAGS@,$LDFLAGS,;t t | |
47336 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
47337 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
47338 | s,@EXEEXT@,$EXEEXT,;t t | |
47339 | s,@OBJEXT@,$OBJEXT,;t t | |
47340 | s,@CPP@,$CPP,;t t | |
47341 | s,@EGREP@,$EGREP,;t t | |
47342 | s,@CXX@,$CXX,;t t | |
47343 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
47344 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
47345 | s,@RANLIB@,$RANLIB,;t t | |
47346 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
47347 | s,@AR@,$AR,;t t | |
8c80d384 | 47348 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
47349 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
47350 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
47351 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
47352 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
47353 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
47354 | s,@RESCOMP@,$RESCOMP,;t t | |
47355 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
47356 | s,@DLLTOOL@,$DLLTOOL,;t t | |
47357 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
47358 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
47359 | s,@LN_S@,$LN_S,;t t | |
47360 | s,@CXXCPP@,$CXXCPP,;t t | |
47361 | s,@subdirs@,$subdirs,;t t | |
47362 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
47363 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
47364 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
47365 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
47366 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
47367 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
47368 | s,@X_LIBS@,$X_LIBS,;t t | |
47369 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
47370 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
47371 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
47372 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
47373 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
47374 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
47375 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
47376 | s,@DEREZ@,$DEREZ,;t t |
47377 | s,@SETFILE@,$SETFILE,;t t | |
47378 | s,@LIBICONV@,$LIBICONV,;t t | |
47379 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
47380 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
47381 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
47382 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
47383 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
47384 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
47385 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
47386 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
47387 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
47388 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
47389 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
47390 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
47391 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
47392 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
47393 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
47394 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
47395 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
47396 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
47397 | s,@VENDOR@,$VENDOR,;t t | |
47398 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
47399 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
47400 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
47401 | s,@WXUNIV@,$WXUNIV,;t t |
47402 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
47403 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
47404 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
47405 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
47406 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
47407 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
47408 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
47409 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
47410 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
47411 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 47412 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
47413 | s,@UNICODE@,$UNICODE,;t t |
47414 | s,@BUILD@,$BUILD,;t t | |
47415 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
47416 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
47417 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
47418 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
47419 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
47420 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
47421 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
47422 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
47423 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
47424 | s,@SET_MAKE@,$SET_MAKE,;t t | |
47425 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
47426 | s,@NM@,$NM,;t t |
47427 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
47428 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
47429 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
47430 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
47431 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
47432 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
47433 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 47434 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
47435 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
47436 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 47437 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
47438 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
47439 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
47440 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
47441 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
47442 | s,@LIBEXT@,$LIBEXT,;t t | |
47443 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
47444 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 47445 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
47446 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
47447 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
47448 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
47449 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
47450 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
47451 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 47452 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
47453 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
47454 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
47455 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 47456 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
47457 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
47458 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
47459 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
47460 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
47461 | s,@GCC_PCH@,$GCC_PCH,;t t | |
47462 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
47463 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
47464 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
47465 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
47466 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
47467 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
47468 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
47469 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
47470 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
47471 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
47472 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
47473 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
47474 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
47475 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
47476 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
47477 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
47478 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
47479 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 47480 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 47481 | 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 |
6671c68b | 47482 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 47483 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 47484 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
47485 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
47486 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 47487 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 47488 | 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 |
6671c68b | 47489 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 47490 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 47491 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
47492 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
47493 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
47494 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
47495 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
47496 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
47497 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 47498 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t |
a848cd7e SC |
47499 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
47500 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 47501 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
47502 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
47503 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
47504 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 47505 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 47506 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
ebee3cd0 VS |
47507 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
47508 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
47509 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
47510 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 47511 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 47512 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 47513 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
47514 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
47515 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
47516 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
47517 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
47518 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
47519 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
47520 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
47521 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
47522 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
47523 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
47524 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
47525 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
47526 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
47527 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
47528 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 47529 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
47530 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
47531 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
47532 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
47533 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
47534 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
47535 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 47536 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 47537 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 47538 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 47539 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
47540 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
47541 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
47542 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
47543 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
47544 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
47545 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
47546 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
47547 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
47548 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
47549 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
47550 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
47551 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
47552 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
47553 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
47554 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 47555 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
47556 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
47557 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
47558 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
47559 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
47560 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
47561 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 47562 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
47563 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
47564 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
47565 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
47566 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
47567 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
47568 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
47569 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
47570 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
47571 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
47572 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
47573 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
47574 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
47575 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
47576 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 47577 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
47578 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
47579 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 47580 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 47581 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
47582 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
47583 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
47584 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
47585 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
47586 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 47587 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 47588 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 47589 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 47590 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
47591 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
47592 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
47593 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
47594 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
47595 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
47596 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
47597 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
47598 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 47599 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
47600 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
47601 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
47602 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
47603 | s,@USE_GUI@,$USE_GUI,;t t | |
47604 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
47605 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
47606 | s,@TOOLKIT@,$TOOLKIT,;t t | |
47607 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 47608 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 47609 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
47610 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
47611 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 47612 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
47613 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
47614 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
47615 | s,@WX_VERSION@,$WX_VERSION,;t t | |
47616 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
47617 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
47618 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 47619 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
47620 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
47621 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
47622 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
47623 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 47624 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
47625 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
47626 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 47627 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 47628 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
47629 | s,@DISTDIR@,$DISTDIR,;t t |
47630 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
47631 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
47632 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
47633 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
47634 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
47635 | s,@RESFLAGS@,$RESFLAGS,;t t | |
47636 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
47637 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
47638 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
47639 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
47640 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
47641 | s,@MACSETFILE@,$MACSETFILE,;t t | |
47642 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
47643 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
47644 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
47645 | s,@LIBOBJS@,$LIBOBJS,;t t | |
47646 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
47647 | CEOF | |
47648 | ||
47649 | _ACEOF | |
47650 | ||
47651 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47652 | # Split the substitutions into bite-sized pieces for seds with | |
47653 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
47654 | ac_max_sed_lines=48 | |
47655 | ac_sed_frag=1 # Number of current file. | |
47656 | ac_beg=1 # First line for current file. | |
47657 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
47658 | ac_more_lines=: | |
47659 | ac_sed_cmds= | |
47660 | while $ac_more_lines; do | |
47661 | if test $ac_beg -gt 1; then | |
47662 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
47663 | else | |
47664 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
47665 | fi | |
47666 | if test ! -s $tmp/subs.frag; then | |
47667 | ac_more_lines=false | |
47668 | else | |
47669 | # The purpose of the label and of the branching condition is to | |
47670 | # speed up the sed processing (if there are no `@' at all, there | |
47671 | # is no need to browse any of the substitutions). | |
47672 | # These are the two extra sed commands mentioned above. | |
47673 | (echo ':t | |
47674 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
47675 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 47676 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 47677 | else |
ac1cb8d3 | 47678 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
47679 | fi |
47680 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
47681 | ac_beg=$ac_end | |
47682 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
47683 | fi | |
47684 | done | |
47685 | if test -z "$ac_sed_cmds"; then | |
47686 | ac_sed_cmds=cat | |
47687 | fi | |
47688 | fi # test -n "$CONFIG_FILES" | |
47689 | ||
47690 | _ACEOF | |
47691 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47692 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
47693 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47694 | case $ac_file in | |
47695 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47696 | cat >$tmp/stdin |
47697 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47698 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47699 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47700 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47701 | * ) ac_file_in=$ac_file.in ;; |
47702 | esac | |
47703 | ||
47704 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
47705 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47706 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47707 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47708 | X"$ac_file" : 'X\(//\)$' \| \ | |
47709 | X"$ac_file" : 'X\(/\)' \| \ | |
47710 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47711 | echo X"$ac_file" | |
47712 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47713 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47714 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47715 | /^X\(\/\).*/{ s//\1/; q; } | |
47716 | s/.*/./; q'` | |
47717 | { if $as_mkdir_p; then | |
47718 | mkdir -p "$ac_dir" | |
47719 | else | |
47720 | as_dir="$ac_dir" | |
47721 | as_dirs= | |
47722 | while test ! -d "$as_dir"; do | |
47723 | as_dirs="$as_dir $as_dirs" | |
47724 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47725 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47726 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47727 | X"$as_dir" : 'X\(//\)$' \| \ | |
47728 | X"$as_dir" : 'X\(/\)' \| \ | |
47729 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47730 | echo X"$as_dir" | |
47731 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47732 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47733 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47734 | /^X\(\/\).*/{ s//\1/; q; } | |
47735 | s/.*/./; q'` | |
47736 | done | |
47737 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47738 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47739 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47740 | { (exit 1); exit 1; }; }; } | |
47741 | ||
47742 | ac_builddir=. | |
47743 | ||
47744 | if test "$ac_dir" != .; then | |
47745 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47746 | # A "../" for each directory in $ac_dir_suffix. | |
47747 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47748 | else | |
47749 | ac_dir_suffix= ac_top_builddir= | |
47750 | fi | |
47751 | ||
47752 | case $srcdir in | |
47753 | .) # No --srcdir option. We are building in place. | |
47754 | ac_srcdir=. | |
47755 | if test -z "$ac_top_builddir"; then | |
47756 | ac_top_srcdir=. | |
47757 | else | |
47758 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47759 | fi ;; | |
47760 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47761 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47762 | ac_top_srcdir=$srcdir ;; | |
47763 | *) # Relative path. | |
47764 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47765 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47766 | esac | |
ac1cb8d3 VS |
47767 | |
47768 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47769 | # the directories may not exist. | |
47770 | case `pwd` in | |
47771 | .) ac_abs_builddir="$ac_dir";; | |
47772 | *) | |
47773 | case "$ac_dir" in | |
47774 | .) ac_abs_builddir=`pwd`;; | |
47775 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47776 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47777 | esac;; | |
47778 | esac | |
47779 | case $ac_abs_builddir in | |
47780 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47781 | *) | |
47782 | case ${ac_top_builddir}. in | |
47783 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47784 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47785 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47786 | esac;; | |
47787 | esac | |
47788 | case $ac_abs_builddir in | |
47789 | .) ac_abs_srcdir=$ac_srcdir;; | |
47790 | *) | |
47791 | case $ac_srcdir in | |
47792 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47793 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47794 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47795 | esac;; | |
47796 | esac | |
47797 | case $ac_abs_builddir in | |
47798 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47799 | *) | |
47800 | case $ac_top_srcdir in | |
47801 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47802 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47803 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47804 | esac;; | |
47805 | esac | |
a848cd7e SC |
47806 | |
47807 | ||
47808 | case $INSTALL in | |
47809 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47810 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
47811 | esac | |
47812 | ||
dee1a63f MB |
47813 | if test x"$ac_file" != x-; then |
47814 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47815 | echo "$as_me: creating $ac_file" >&6;} | |
47816 | rm -f "$ac_file" | |
47817 | fi | |
a848cd7e SC |
47818 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
47819 | # use $as_me), people would be surprised to read: | |
47820 | # /* config.h. Generated by config.status. */ | |
47821 | if test x"$ac_file" = x-; then | |
47822 | configure_input= | |
47823 | else | |
47824 | configure_input="$ac_file. " | |
47825 | fi | |
47826 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 47827 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
47828 | |
47829 | # First look for the input files in the build tree, otherwise in the | |
47830 | # src tree. | |
47831 | ac_file_inputs=`IFS=: | |
47832 | for f in $ac_file_in; do | |
47833 | case $f in | |
47834 | -) echo $tmp/stdin ;; | |
47835 | [\\/$]*) | |
ac1cb8d3 VS |
47836 | # Absolute (can't be DOS-style, as IFS=:) |
47837 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47838 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47839 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47840 | echo "$f";; |
a848cd7e | 47841 | *) # Relative |
ac1cb8d3 VS |
47842 | if test -f "$f"; then |
47843 | # Build tree | |
47844 | echo "$f" | |
47845 | elif test -f "$srcdir/$f"; then | |
47846 | # Source tree | |
47847 | echo "$srcdir/$f" | |
47848 | else | |
47849 | # /dev/null tree | |
47850 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47851 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47852 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47853 | fi;; |
a848cd7e SC |
47854 | esac |
47855 | done` || { (exit 1); exit 1; } | |
47856 | _ACEOF | |
47857 | cat >>$CONFIG_STATUS <<_ACEOF | |
47858 | sed "$ac_vpsub | |
47859 | $extrasub | |
47860 | _ACEOF | |
47861 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47862 | :t | |
47863 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
47864 | s,@configure_input@,$configure_input,;t t | |
47865 | s,@srcdir@,$ac_srcdir,;t t | |
47866 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
47867 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
47868 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
47869 | s,@builddir@,$ac_builddir,;t t | |
47870 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
47871 | s,@top_builddir@,$ac_top_builddir,;t t | |
47872 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
47873 | s,@INSTALL@,$ac_INSTALL,;t t | |
47874 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
47875 | rm -f $tmp/stdin | |
47876 | if test x"$ac_file" != x-; then | |
47877 | mv $tmp/out $ac_file | |
47878 | else | |
47879 | cat $tmp/out | |
47880 | rm -f $tmp/out | |
47881 | fi | |
47882 | ||
ceec2216 RL |
47883 | # Run the commands associated with the file. |
47884 | case $ac_file in | |
47885 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
47886 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
47887 | esac | |
a848cd7e SC |
47888 | done |
47889 | _ACEOF | |
47890 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47891 | ||
47892 | # | |
47893 | # CONFIG_HEADER section. | |
47894 | # | |
47895 | ||
47896 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
47897 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
47898 | # | |
47899 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
47900 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
47901 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
47902 | ac_dC=' ' |
47903 | ac_dD=',;t' | |
47904 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 47905 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
47906 | ac_uB='$,\1#\2define\3' |
47907 | ac_uC=' ' | |
47908 | ac_uD=',;t' | |
47909 | ||
47910 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
47911 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47912 | case $ac_file in | |
47913 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47914 | cat >$tmp/stdin |
47915 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47916 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47917 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47918 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47919 | * ) ac_file_in=$ac_file.in ;; |
47920 | esac | |
47921 | ||
47922 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47923 | echo "$as_me: creating $ac_file" >&6;} | |
47924 | ||
47925 | # First look for the input files in the build tree, otherwise in the | |
47926 | # src tree. | |
47927 | ac_file_inputs=`IFS=: | |
47928 | for f in $ac_file_in; do | |
47929 | case $f in | |
47930 | -) echo $tmp/stdin ;; | |
47931 | [\\/$]*) | |
ac1cb8d3 VS |
47932 | # Absolute (can't be DOS-style, as IFS=:) |
47933 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47934 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47935 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
47936 | # Do quote $f, to prevent DOS paths from being IFS'd. |
47937 | echo "$f";; | |
a848cd7e | 47938 | *) # Relative |
ac1cb8d3 VS |
47939 | if test -f "$f"; then |
47940 | # Build tree | |
47941 | echo "$f" | |
47942 | elif test -f "$srcdir/$f"; then | |
47943 | # Source tree | |
47944 | echo "$srcdir/$f" | |
47945 | else | |
47946 | # /dev/null tree | |
47947 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47948 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47949 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47950 | fi;; |
a848cd7e SC |
47951 | esac |
47952 | done` || { (exit 1); exit 1; } | |
47953 | # Remove the trailing spaces. | |
ac1cb8d3 | 47954 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
47955 | |
47956 | _ACEOF | |
47957 | ||
47958 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
47959 | # `conftest.undefs', that substitutes the proper values into | |
47960 | # config.h.in to produce config.h. The first handles `#define' | |
47961 | # templates, and the second `#undef' templates. | |
47962 | # And first: Protect against being on the right side of a sed subst in | |
47963 | # config.status. Protect against being in an unquoted here document | |
47964 | # in config.status. | |
47965 | rm -f conftest.defines conftest.undefs | |
47966 | # Using a here document instead of a string reduces the quoting nightmare. | |
47967 | # Putting comments in sed scripts is not portable. | |
47968 | # | |
47969 | # `end' is used to avoid that the second main sed command (meant for | |
47970 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
47971 | # See the Autoconf documentation for `clear'. | |
47972 | cat >confdef2sed.sed <<\_ACEOF | |
47973 | s/[\\&,]/\\&/g | |
47974 | s,[\\$`],\\&,g | |
47975 | t clear | |
47976 | : clear | |
ac1cb8d3 | 47977 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 47978 | t end |
ac1cb8d3 | 47979 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
47980 | : end |
47981 | _ACEOF | |
47982 | # If some macros were called several times there might be several times | |
47983 | # the same #defines, which is useless. Nevertheless, we may not want to | |
47984 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
47985 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
47986 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
47987 | rm -f confdef2sed.sed | |
47988 | ||
47989 | # This sed command replaces #undef with comments. This is necessary, for | |
47990 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
47991 | # on some systems where configure will not decide to define it. | |
47992 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 47993 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
47994 | _ACEOF |
47995 | ||
47996 | # Break up conftest.defines because some shells have a limit on the size | |
47997 | # of here documents, and old seds have small limits too (100 cmds). | |
47998 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 47999 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
48000 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
48001 | echo ' :' >>$CONFIG_STATUS | |
48002 | rm -f conftest.tail | |
48003 | while grep . conftest.defines >/dev/null | |
48004 | do | |
48005 | # Write a limited-size here document to $tmp/defines.sed. | |
48006 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
48007 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 48008 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
48009 | # Work around the forget-to-reset-the-flag bug. |
48010 | echo 't clr' >>$CONFIG_STATUS | |
48011 | echo ': clr' >>$CONFIG_STATUS | |
48012 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
48013 | echo 'CEOF | |
48014 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
48015 | rm -f $tmp/in | |
48016 | mv $tmp/out $tmp/in | |
48017 | ' >>$CONFIG_STATUS | |
48018 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
48019 | rm -f conftest.defines | |
48020 | mv conftest.tail conftest.defines | |
48021 | done | |
48022 | rm -f conftest.defines | |
48023 | echo ' fi # grep' >>$CONFIG_STATUS | |
48024 | echo >>$CONFIG_STATUS | |
48025 | ||
48026 | # Break up conftest.undefs because some shells have a limit on the size | |
48027 | # of here documents, and old seds have small limits too (100 cmds). | |
48028 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
48029 | rm -f conftest.tail | |
48030 | while grep . conftest.undefs >/dev/null | |
48031 | do | |
48032 | # Write a limited-size here document to $tmp/undefs.sed. | |
48033 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
48034 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 48035 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
48036 | # Work around the forget-to-reset-the-flag bug. |
48037 | echo 't clr' >>$CONFIG_STATUS | |
48038 | echo ': clr' >>$CONFIG_STATUS | |
48039 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
48040 | echo 'CEOF | |
48041 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
48042 | rm -f $tmp/in | |
48043 | mv $tmp/out $tmp/in | |
48044 | ' >>$CONFIG_STATUS | |
48045 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
48046 | rm -f conftest.undefs | |
48047 | mv conftest.tail conftest.undefs | |
48048 | done | |
48049 | rm -f conftest.undefs | |
48050 | ||
48051 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48052 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
48053 | # use $as_me), people would be surprised to read: | |
48054 | # /* config.h. Generated by config.status. */ | |
48055 | if test x"$ac_file" = x-; then | |
48056 | echo "/* Generated by configure. */" >$tmp/config.h | |
48057 | else | |
48058 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
48059 | fi | |
48060 | cat $tmp/in >>$tmp/config.h | |
48061 | rm -f $tmp/in | |
48062 | if test x"$ac_file" != x-; then | |
48063 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
48064 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
48065 | echo "$as_me: $ac_file is unchanged" >&6;} | |
48066 | else | |
48067 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
48068 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48069 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
48070 | X"$ac_file" : 'X\(//\)$' \| \ | |
48071 | X"$ac_file" : 'X\(/\)' \| \ | |
48072 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48073 | echo X"$ac_file" | |
48074 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48075 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48076 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48077 | /^X\(\/\).*/{ s//\1/; q; } | |
48078 | s/.*/./; q'` | |
48079 | { if $as_mkdir_p; then | |
48080 | mkdir -p "$ac_dir" | |
48081 | else | |
48082 | as_dir="$ac_dir" | |
48083 | as_dirs= | |
48084 | while test ! -d "$as_dir"; do | |
48085 | as_dirs="$as_dir $as_dirs" | |
48086 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48087 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48088 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
48089 | X"$as_dir" : 'X\(//\)$' \| \ | |
48090 | X"$as_dir" : 'X\(/\)' \| \ | |
48091 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48092 | echo X"$as_dir" | |
48093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48095 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48096 | /^X\(\/\).*/{ s//\1/; q; } | |
48097 | s/.*/./; q'` | |
48098 | done | |
48099 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48100 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48101 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48102 | { (exit 1); exit 1; }; }; } | |
48103 | ||
48104 | rm -f $ac_file | |
48105 | mv $tmp/config.h $ac_file | |
48106 | fi | |
48107 | else | |
48108 | cat $tmp/config.h | |
48109 | rm -f $tmp/config.h | |
48110 | fi | |
48111 | done | |
48112 | _ACEOF | |
48113 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48114 | ||
48115 | # | |
48116 | # CONFIG_COMMANDS section. | |
48117 | # | |
48118 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
48119 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
48120 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
48121 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
48122 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48123 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
48124 | X"$ac_dest" : 'X\(//\)$' \| \ | |
48125 | X"$ac_dest" : 'X\(/\)' \| \ | |
48126 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48127 | echo X"$ac_dest" | |
48128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48129 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48130 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48131 | /^X\(\/\).*/{ s//\1/; q; } | |
48132 | s/.*/./; q'` | |
ac1cb8d3 VS |
48133 | { if $as_mkdir_p; then |
48134 | mkdir -p "$ac_dir" | |
48135 | else | |
48136 | as_dir="$ac_dir" | |
48137 | as_dirs= | |
48138 | while test ! -d "$as_dir"; do | |
48139 | as_dirs="$as_dir $as_dirs" | |
48140 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48141 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
48142 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
48143 | X"$as_dir" : 'X\(//\)$' \| \ | |
48144 | X"$as_dir" : 'X\(/\)' \| \ | |
48145 | . : '\(.\)' 2>/dev/null || | |
48146 | echo X"$as_dir" | | |
48147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48148 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48149 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48150 | /^X\(\/\).*/{ s//\1/; q; } | |
48151 | s/.*/./; q'` | |
48152 | done | |
48153 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48154 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48155 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48156 | { (exit 1); exit 1; }; }; } | |
48157 | ||
a848cd7e SC |
48158 | ac_builddir=. |
48159 | ||
48160 | if test "$ac_dir" != .; then | |
48161 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
48162 | # A "../" for each directory in $ac_dir_suffix. | |
48163 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
48164 | else | |
48165 | ac_dir_suffix= ac_top_builddir= | |
48166 | fi | |
48167 | ||
48168 | case $srcdir in | |
48169 | .) # No --srcdir option. We are building in place. | |
48170 | ac_srcdir=. | |
48171 | if test -z "$ac_top_builddir"; then | |
48172 | ac_top_srcdir=. | |
48173 | else | |
48174 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
48175 | fi ;; | |
48176 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
48177 | ac_srcdir=$srcdir$ac_dir_suffix; | |
48178 | ac_top_srcdir=$srcdir ;; | |
48179 | *) # Relative path. | |
48180 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
48181 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
48182 | esac | |
ac1cb8d3 VS |
48183 | |
48184 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
48185 | # the directories may not exist. | |
48186 | case `pwd` in | |
48187 | .) ac_abs_builddir="$ac_dir";; | |
48188 | *) | |
48189 | case "$ac_dir" in | |
48190 | .) ac_abs_builddir=`pwd`;; | |
48191 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
48192 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
48193 | esac;; | |
48194 | esac | |
48195 | case $ac_abs_builddir in | |
48196 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48197 | *) | |
48198 | case ${ac_top_builddir}. in | |
48199 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
48200 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48201 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
48202 | esac;; | |
48203 | esac | |
48204 | case $ac_abs_builddir in | |
48205 | .) ac_abs_srcdir=$ac_srcdir;; | |
48206 | *) | |
48207 | case $ac_srcdir in | |
48208 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
48209 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
48210 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
48211 | esac;; | |
48212 | esac | |
48213 | case $ac_abs_builddir in | |
48214 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48215 | *) | |
48216 | case $ac_top_srcdir in | |
48217 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
48218 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48219 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
48220 | esac;; | |
48221 | esac | |
a848cd7e SC |
48222 | |
48223 | ||
48224 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
48225 | echo "$as_me: executing $ac_dest commands" >&6;} | |
48226 | case $ac_dest in | |
ceec2216 RL |
48227 | wx-config ) rm -f wx-config |
48228 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
48229 | ;; | |
a848cd7e SC |
48230 | esac |
48231 | done | |
48232 | _ACEOF | |
48233 | ||
48234 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48235 | ||
48236 | { (exit 0); exit 0; } | |
48237 | _ACEOF | |
48238 | chmod +x $CONFIG_STATUS | |
48239 | ac_clean_files=$ac_clean_files_save | |
48240 | ||
48241 | ||
48242 | # configure is writing to config.log, and then calls config.status. | |
48243 | # config.status does its own redirection, appending to config.log. | |
48244 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
48245 | # by configure, so config.status won't be able to write to it; its | |
48246 | # output is simply discarded. So we exec the FD to /dev/null, | |
48247 | # effectively closing config.log, so it can be properly (re)opened and | |
48248 | # appended to by config.status. When coming back to configure, we | |
48249 | # need to make the FD available again. | |
48250 | if test "$no_create" != yes; then | |
48251 | ac_cs_success=: | |
48252 | ac_config_status_args= | |
48253 | test "$silent" = yes && | |
48254 | ac_config_status_args="$ac_config_status_args --quiet" | |
48255 | exec 5>/dev/null | |
48256 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
48257 | exec 5>>config.log | |
48258 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
48259 | # would make configure fail if this is the last instruction. | |
48260 | $ac_cs_success || { (exit 1); exit 1; } | |
48261 | fi | |
48262 | ||
48263 | # | |
48264 | # CONFIG_SUBDIRS section. | |
48265 | # | |
48266 | if test "$no_recursion" != yes; then | |
48267 | ||
48268 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
48269 | ac_sub_configure_args= | |
48270 | ac_prev= | |
48271 | for ac_arg in $ac_configure_args; do | |
48272 | if test -n "$ac_prev"; then | |
48273 | ac_prev= | |
48274 | continue | |
48275 | fi | |
48276 | case $ac_arg in | |
48277 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
48278 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
48279 | ac_prev=cache_file ;; | |
48280 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
48281 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
48282 | | --c=*) | |
48283 | ;; | |
48284 | --config-cache | -C) | |
48285 | ;; | |
48286 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
48287 | ac_prev=srcdir ;; | |
48288 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
48289 | ;; | |
48290 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
48291 | ac_prev=prefix ;; | |
48292 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
48293 | ;; | |
48294 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
48295 | esac | |
48296 | done | |
48297 | ||
48298 | # Always prepend --prefix to ensure using the same prefix | |
48299 | # in subdir configurations. | |
48300 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
48301 | ||
48302 | ac_popdir=`pwd` | |
48303 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
48304 | ||
48305 | # Do not complain, so a configure script can configure whichever | |
48306 | # parts of a large source tree are present. | |
48307 | test -d $srcdir/$ac_dir || continue | |
48308 | ||
48309 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
48310 | echo "$as_me: configuring in $ac_dir" >&6;} | |
48311 | { if $as_mkdir_p; then | |
48312 | mkdir -p "$ac_dir" | |
48313 | else | |
48314 | as_dir="$ac_dir" | |
48315 | as_dirs= | |
48316 | while test ! -d "$as_dir"; do | |
48317 | as_dirs="$as_dir $as_dirs" | |
48318 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48319 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48320 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
48321 | X"$as_dir" : 'X\(//\)$' \| \ | |
48322 | X"$as_dir" : 'X\(/\)' \| \ | |
48323 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48324 | echo X"$as_dir" | |
48325 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48326 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48327 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48328 | /^X\(\/\).*/{ s//\1/; q; } | |
48329 | s/.*/./; q'` | |
48330 | done | |
48331 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48332 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48333 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48334 | { (exit 1); exit 1; }; }; } | |
48335 | ||
48336 | ac_builddir=. | |
48337 | ||
48338 | if test "$ac_dir" != .; then | |
48339 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
48340 | # A "../" for each directory in $ac_dir_suffix. | |
48341 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
48342 | else | |
48343 | ac_dir_suffix= ac_top_builddir= | |
48344 | fi | |
48345 | ||
48346 | case $srcdir in | |
48347 | .) # No --srcdir option. We are building in place. | |
48348 | ac_srcdir=. | |
48349 | if test -z "$ac_top_builddir"; then | |
48350 | ac_top_srcdir=. | |
48351 | else | |
48352 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
48353 | fi ;; | |
48354 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
48355 | ac_srcdir=$srcdir$ac_dir_suffix; | |
48356 | ac_top_srcdir=$srcdir ;; | |
48357 | *) # Relative path. | |
48358 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
48359 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
48360 | esac | |
ac1cb8d3 VS |
48361 | |
48362 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
48363 | # the directories may not exist. | |
48364 | case `pwd` in | |
48365 | .) ac_abs_builddir="$ac_dir";; | |
48366 | *) | |
48367 | case "$ac_dir" in | |
48368 | .) ac_abs_builddir=`pwd`;; | |
48369 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
48370 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
48371 | esac;; | |
48372 | esac | |
48373 | case $ac_abs_builddir in | |
48374 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48375 | *) | |
48376 | case ${ac_top_builddir}. in | |
48377 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
48378 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48379 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
48380 | esac;; | |
48381 | esac | |
48382 | case $ac_abs_builddir in | |
48383 | .) ac_abs_srcdir=$ac_srcdir;; | |
48384 | *) | |
48385 | case $ac_srcdir in | |
48386 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
48387 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
48388 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
48389 | esac;; | |
48390 | esac | |
48391 | case $ac_abs_builddir in | |
48392 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48393 | *) | |
48394 | case $ac_top_srcdir in | |
48395 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
48396 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48397 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
48398 | esac;; | |
48399 | esac | |
a848cd7e SC |
48400 | |
48401 | ||
48402 | cd $ac_dir | |
48403 | ||
48404 | # Check for guested configure; otherwise get Cygnus style configure. | |
48405 | if test -f $ac_srcdir/configure.gnu; then | |
48406 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
48407 | elif test -f $ac_srcdir/configure; then | |
48408 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
48409 | elif test -f $ac_srcdir/configure.in; then | |
48410 | ac_sub_configure=$ac_configure | |
48411 | else | |
48412 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
48413 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
48414 | ac_sub_configure= | |
48415 | fi | |
48416 | ||
48417 | # The recursion is here. | |
48418 | if test -n "$ac_sub_configure"; then | |
48419 | # Make the cache file name correct relative to the subdirectory. | |
48420 | case $cache_file in | |
48421 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
48422 | *) # Relative path. | |
ac1cb8d3 | 48423 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
48424 | esac |
48425 | ||
48426 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
48427 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
48428 | # The eval makes quoting arguments work. | |
48429 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
48430 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
48431 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
48432 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
48433 | { (exit 1); exit 1; }; } | |
48434 | fi | |
48435 | ||
dee1a63f | 48436 | cd $ac_popdir |
a848cd7e SC |
48437 | done |
48438 | fi | |
48439 | ||
48440 | ||
48441 | echo | |
77ffb593 | 48442 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 48443 | echo "" |
4d4ff94c | 48444 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 48445 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 48446 | |
77ffb593 JS |
48447 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
48448 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
48449 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 48450 | |
77ffb593 | 48451 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
48452 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
48453 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 48454 | |
77ffb593 | 48455 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
48456 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
48457 | echo " png ${wxUSE_LIBPNG-none}" | |
48458 | echo " regex ${wxUSE_REGEX}" | |
48459 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
48460 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
48461 | echo " xpm ${wxUSE_LIBXPM-none}" | |
48462 | fi | |
48463 | echo " zlib ${wxUSE_ZLIB}" | |
48464 | echo " odbc ${wxUSE_ODBC}" | |
48465 | echo " expat ${wxUSE_EXPAT}" | |
48466 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
48467 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 48468 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
48469 | |
48470 | echo "" | |
48471 |